/* handlebars v4.0.11 Copyright (C) 2011-2017 by Yehuda Katz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ if("undefined"!==typeof define&&"undefined"!==typeof define.amd){var amdOriginal=define.amd;define.amd=null} !function(b,m){"object"==typeof module&&"object"==typeof module.exports?module.exports=b.document?m(b,!0):function(b){if(!b.document)throw Error("jQuery requires a window with a document");return m(b)}:m(b)}("undefined"!=typeof window?window:this,function(b,m){function e(a,b,c){var k,g,d=(c=c||ea).createElement("script");if(d.text=a,b)for(k in Sa)(g=b[k]||b.getAttribute&&b.getAttribute(k))&&d.setAttribute(k,g);c.head.appendChild(d).parentNode.removeChild(d)}function f(a){return null==a?a+"":"object"== typeof a||"function"==typeof a?ka[Ta.call(a)]||"object":typeof a}function h(a){var b=!!a&&"length"in a&&a.length,c=f(a);return!aa(a)&&!Ja(a)&&("array"===c||0===b||"number"==typeof b&&0=(1-d)*(1-(d=n()/e||.5))&&(l=0),p/=d;p*=2;s.style(a,b,p+q);c=c||[]}return c&&(p=+p||+e||0,g=c[1]?p+(c[1]+1)*c[2]:+c[2],k&&(k.unit=q,k.start=p,k.end=g)),g}function r(a,b){for(var c,k,g,d,l,n,e,q=[],p=0,h=a.length;pl;l+=2)"margin"===c&& (e+=s.css(a,c+Na[l],!0,g)),k?("content"===c&&(e-=s.css(a,"padding"+Na[l],!0,g)),"margin"!==c&&(e-=s.css(a,"border"+Na[l]+"Width",!0,g))):(e+=s.css(a,"padding"+Na[l],!0,g),"padding"!==c?e+=s.css(a,"border"+Na[l]+"Width",!0,g):n+=s.css(a,"border"+Na[l]+"Width",!0,g));return!k&&0<=d&&(e+=Math.max(0,Math.ceil(a["offset"+b[0].toUpperCase()+b.slice(1)]-d-e-n-.5))||0),e}function I(a,b,c){var k=sa(a),g=(!X.boxSizingReliable()||c)&&"border-box"===s.css(a,"boxSizing",!1,k),l=g,n=z(a,b,k),e="offset"+b[0].toUpperCase()+ b.slice(1);if(ib.test(n)){if(!c)return n;n="auto"}return(!X.boxSizingReliable()&&g||!X.reliableTrDimensions()&&d(a,"tr")||"auto"===n||!parseFloat(n)&&"inline"===s.css(a,"display",!1,k))&&a.getClientRects().length&&(g="border-box"===s.css(a,"boxSizing",!1,k),(l=e in a)&&(n=a[e])),(n=parseFloat(n)||0)+U(a,b,c||(g?"border":"content"),l,k,n)+"px"}function ca(a,b,c,k,g){return new ca.prototype.init(a,b,c,k,g)}function S(){ub&&(!1===ea.hidden&&b.requestAnimationFrame?b.requestAnimationFrame(S):b.setTimeout(S, s.fx.interval),s.fx.tick())}function ia(){return b.setTimeout(function(){ma=void 0}),ma=Date.now()}function J(a,b){var c,k=0,g={height:a};for(b=b?1:0;4>k;k+=2-b)g["margin"+(c=Na[k])]=g["padding"+c]=a;return b&&(g.opacity=g.width=a),g}function N(a,b,c){for(var k,g=(fa.tweeners[b]||[]).concat(fa.tweeners["*"]),d=0,l=g.length;dc&&d?b:(d||l.notifyWith(a,[e,1,0]),l.resolveWith(a,[e]),!1)},e=l.promise({elem:a,props:s.extend({},b),opts:s.extend(!0,{specialEasing:{},easing:s.easing._default},c),originalProperties:b,originalOptions:c,startTime:ma||ia(),duration:c.duration,tweens:[],createTween:function(b,c){var k=s.Tween(a,e.opts,b,c,e.opts.specialEasing[b]||e.opts.easing);return e.tweens.push(k), k},stop:function(b){var c=0,g=b?e.tweens.length:0;if(k)return this;for(k=!0;ca?this[a+this.length]:this[a]},pushStack:function(a){a=s.merge(this.constructor(), a);return a.prevObject=this,a},each:function(a){return s.each(this,a)},map:function(a){return this.pushStack(s.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(oa.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(s.grep(this,function(a,b){return(b+1)%2}))},odd:function(){return this.pushStack(s.grep(this,function(a,b){return b%2}))},eq:function(a){var b=this.length;a=+a+(0>a?b: 0);return this.pushStack(0<=a&&ay.cacheLength&&delete qc[a.shift()], qc[b+" "]=c}}function k(a){return a[C]=!0,a}function g(a){var b=ha.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}function d(a,b){for(var c=a.split("|"),k=c.length;k--;)y.attrHandle[c[k]]=b}function l(a,b){var c=b&&a,k=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(k)return k;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function n(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type=== a}}function e(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function p(a){return function(b){return"form"in b?b.parentNode&&!1===b.disabled?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&aa(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function q(a){return k(function(b){return b=+b,k(function(c,k){for(var g,d=a([],c.length,b),l=d.length;l--;)c[g=d[l]]&&(c[g]=!(k[g]=c[g]))})})} function h(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function f(){}function t(a){for(var b=0,c=a.length,k="";b+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,ya=/[\x20\t\r\n\f]|>/,ga=/:((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, ja=/^(?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+$/,T={ID:/^#((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,CLASS:/^\.((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,TAG:/^((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\]/, PSEUDO:/^:((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i, bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},ia=/HTML$/i,Eb=/^(?:input|select|textarea|button)$/i,Db=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ba=/[+~]/,da=RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),na=function(a, b){var c="0x"+a.slice(1)-65536;return b||(0>c?String.fromCharCode(c+65536):String.fromCharCode(c>>10|55296,1023&c|56320))},oa=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,sb=function(a,b){return b?"\x00"===a?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},qa=function(){F()},aa=A(function(a){return!0===a.disabled&&"fieldset"===a.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{La.apply(K=W.call(Fa.childNodes),Fa.childNodes),K[Fa.childNodes.length].nodeType}catch(X){La= {apply:K.length?function(a,b){I.apply(a,W.call(b))}:function(a,b){for(var c=a.length,k=0;a[c++]=b[k++];);a.length=c-1}}}for(u in z=b.support={},D=b.isXML=function(a){var b=(a.ownerDocument||a).documentElement;return!ia.test(a.namespaceURI||b&&b.nodeName||"HTML")},F=b.setDocument=function(a){var b,c;a=a?a.ownerDocument||a:Fa;return a!=ha&&9===a.nodeType&&a.documentElement&&(s=(ha=a).documentElement,Aa=!D(ha),Fa!=ha&&(c=ha.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",qa, !1):c.attachEvent&&c.attachEvent("onunload",qa)),z.scope=g(function(a){return s.appendChild(a).appendChild(ha.createElement("div")),"undefined"!=typeof a.querySelectorAll&&!a.querySelectorAll(":scope fieldset div").length}),z.attributes=g(function(a){return a.className="i",!a.getAttribute("className")}),z.getElementsByTagName=g(function(a){return a.appendChild(ha.createComment("")),!a.getElementsByTagName("*").length}),z.getElementsByClassName=Z.test(ha.getElementsByClassName),z.getById=g(function(a){return s.appendChild(a).id= C,!ha.getElementsByName||!ha.getElementsByName(C).length}),z.getById?(y.filter.ID=function(a){var b=a.replace(da,na);return function(a){return a.getAttribute("id")===b}},y.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&Aa){var c=b.getElementById(a);return c?[c]:[]}}):(y.filter.ID=function(a){var b=a.replace(da,na);return function(a){return(a="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===b}},y.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&& Aa){var c,k,g,d=b.getElementById(a);if(d){if((c=d.getAttributeNode("id"))&&c.value===a)return[d];g=b.getElementsByName(a);for(k=0;d=g[k++];)if((c=d.getAttributeNode("id"))&&c.value===a)return[d]}return[]}}),y.find.TAG=z.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):z.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,k=[],g=0,d=b.getElementsByTagName(a);if("*"===a){for(;c=d[g++];)1===c.nodeType&&k.push(c);return k}return d},y.find.CLASS= z.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&Aa)return b.getElementsByClassName(a)},B=[],Ba=[],(z.qsa=Z.test(ha.querySelectorAll))&&(g(function(a){var b;s.appendChild(a).innerHTML="\x3ca id\x3d'"+C+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+C+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";a.querySelectorAll("[msallowcapture^\x3d'']").length&&Ba.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length|| Ba.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");a.querySelectorAll("[id~\x3d"+C+"-]").length||Ba.push("~\x3d");(b=ha.createElement("input")).setAttribute("name","");a.appendChild(b);a.querySelectorAll("[name\x3d'']").length||Ba.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll(":checked").length||Ba.push(":checked");a.querySelectorAll("a#"+ C+"+*").length||Ba.push(".#.+[+~]");a.querySelectorAll("\\\f");Ba.push("[\\r\\n\\f]")}),g(function(a){a.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";var b=ha.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name\x3dd]").length&&Ba.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==a.querySelectorAll(":enabled").length&&Ba.push(":enabled",":disabled"); s.appendChild(a).disabled=!0;2!==a.querySelectorAll(":disabled").length&&Ba.push(":enabled",":disabled");a.querySelectorAll("*,:x");Ba.push(",.*:")})),(z.matchesSelector=Z.test(Ea=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&g(function(a){z.disconnectedMatch=Ea.call(a,"*");Ea.call(a,"[s!\x3d'']:x");B.push("!\x3d",":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}), Ba=Ba.length&&new RegExp(Ba.join("|")),B=B.length&&new RegExp(B.join("|")),b=Z.test(s.compareDocumentPosition),Y=b||Z.test(s.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,k=b&&b.parentNode;return a===k||!(!k||1!==k.nodeType||!(c.contains?c.contains(k):a.compareDocumentPosition&&16&a.compareDocumentPosition(k)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},fa=b?function(a,b){if(a===b)return H=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition; return c||(1&(c=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1)||!z.sortDetached&&b.compareDocumentPosition(a)===c?a==ha||a.ownerDocument==Fa&&Y(Fa,a)?-1:b==ha||b.ownerDocument==Fa&&Y(Fa,b)?1:Ia?S(Ia,a)-S(Ia,b):0:4&c?-1:1)}:function(a,b){if(a===b)return H=!0,0;var c,k=0;c=a.parentNode;var g=b.parentNode,d=[a],n=[b];if(!c||!g)return a==ha?-1:b==ha?1:c?-1:g?1:Ia?S(Ia,a)-S(Ia,b):0;if(c===g)return l(a,b);for(c=a;c=c.parentNode;)d.unshift(c);for(c=b;c=c.parentNode;)n.unshift(c); for(;d[k]===n[k];)k++;return k?l(d[k],n[k]):d[k]==Fa?-1:n[k]==Fa?1:0}),ha},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if(F(a),!(!z.matchesSelector||!Aa||ta[c+" "]||B&&B.test(c)||Ba&&Ba.test(c)))try{var k=Ea.call(a,c);if(k||z.disconnectedMatch||a.document&&11!==a.document.nodeType)return k}catch(g){ta(c,!0)}return 0a.nodeType)return!1;return!0},parent:function(a){return!y.pseudos.empty(a)},header:function(a){return Db.test(a.nodeName)},input:function(a){return Eb.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"=== a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:q(function(){return[0]}),last:q(function(a,b){return[b-1]}),eq:q(function(a,b,c){return[0>c?c+b:c]}),even:q(function(a,b){for(var c=0;cc?c+b:bc? c+b:c;++c:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;s.filter=function(a,b,c){var k= b[0];return c&&(a=":not("+a+")"),1===b.length&&1===k.nodeType?s.find.matchesSelector(k,a)?[k]:[]:s.find.matches(a,s.grep(b,function(a){return 1===a.nodeType}))};s.fn.extend({find:function(a){var b,c,k=this.length,g=this;if("string"!=typeof a)return this.pushStack(s(a).filter(function(){for(b=0;b)[^>]*|#([\w-]+))$/;(s.fn.init=function(a,b,c){var k,g;if(!a)return this;if(c=c||A,"string"==typeof a){if(!(k="\x3c"===a[0]&&"\x3e"===a[a.length-1]&&3<=a.length?[null,a,null]:Ia.exec(a))||!k[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(k[1]){if(b=b instanceof s?b[0]:b,s.merge(this,s.parseHTML(k[1],b&&b.nodeType?b.ownerDocument||b:ea,!0)),kb.test(k[1])&& s.isPlainObject(b))for(k in b)aa(this[k])?this[k](b[k]):this.attr(k,b[k]);return this}return(g=ea.getElementById(k[2]))&&(this[0]=g,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):aa(a)?void 0!==c.ready?c.ready(a):a(s):s.makeArray(a,this)}).prototype=s.fn;A=s(ea);var $a=/^(?:parents|prev(?:Until|All))/,ha={children:!0,contents:!0,next:!0,prev:!0};s.fn.extend({has:function(a){var b=s(a,this),c=b.length;return this.filter(function(){for(var a=0;ac.nodeType&&(l?-1=b&&(v(a,d.done(l(c)).resolve,d.reject,!b),"pending"===d.state()||aa(g[c]&&g[c].then)))return d.then();for(;c--;)v(g[c],l(c),d.reject);return d.promise()}});var La=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;s.Deferred.exceptionHook=function(a,c){b.console&&b.console.warn&&a&&La.test(a.name)&&b.console.warn("jQuery.Deferred exception: "+ a.message,a.stack,c)};s.readyException=function(a){b.setTimeout(function(){throw a;})};var ab=s.Deferred();s.fn.ready=function(a){return ab.then(a)["catch"](function(a){s.readyException(a)}),this};s.extend({isReady:!1,readyWait:1,ready:function(a){(!0===a?--s.readyWait:s.isReady)||(s.isReady=!0)!==a&&0<--s.readyWait||ab.resolveWith(ea,[s])}});s.ready.then=ab.then;"complete"===ea.readyState||"loading"!==ea.readyState&&!ea.documentElement.doScroll?b.setTimeout(s.ready):(ea.addEventListener("DOMContentLoaded", p),b.addEventListener("load",p));var Ea=function(a,b,c,k,g,d,l){var n=0,e=a.length,p=null==c;if("object"===f(c))for(n in g=!0,c)Ea(a,b,n,c[n],!0,d,l);else if(void 0!==k&&(g=!0,aa(k)||(l=!0),p&&(l?(b.call(a,k),b=null):(p=b,b=function(a,b,c){return p.call(s(a),c)})),b))for(;n\x20\t\r\n\f]*)/i,eb=/^$|^module$|\/(?:java|ecma)script/i;bb=ea.createDocumentFragment().appendChild(ea.createElement("div"));(vb=ea.createElement("input")).setAttribute("type","radio");vb.setAttribute("checked","checked");vb.setAttribute("name","t");bb.appendChild(vb);X.checkClone=bb.cloneNode(!0).cloneNode(!0).lastChild.checked;bb.innerHTML="\x3ctextarea\x3ex\x3c/textarea\x3e";X.noCloneChecked=!!bb.cloneNode(!0).lastChild.defaultValue;bb.innerHTML="\x3coption\x3e\x3c/option\x3e"; X.option=!!bb.lastChild;var Ma={thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],_default:[0,"",""]};Ma.tbody=Ma.tfoot=Ma.colgroup=Ma.caption=Ma.thead;Ma.th=Ma.td;X.option||(Ma.optgroup=Ma.option=[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"]);var Fb=/<|&#?\w+;/, Yb=/^key/,gc=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jb=/^([^.]*)(?:\.(.+)|)/;s.event={global:{},add:function(a,b,c,k,g){var d,l,n,e,p,q,h,f,t,A;p=W.get(a);if(Ca(a))for(c.handler&&(c=(d=c).handler,g=d.selector),g&&s.find.matchesSelector(fb,g),c.guid||(c.guid=s.guid++),(e=p.events)||(e=p.events=Object.create(null)),(l=p.handle)||(l=p.handle=function(b){return"undefined"!=typeof s&&s.event.triggered!==b.type?s.event.dispatch.apply(a,arguments):void 0}),p=(b=(b||"").match(ta)||[""]).length;p--;)t= A=(n=Jb.exec(b[p])||[])[1],n=(n[2]||"").split(".").sort(),t&&(h=s.event.special[t]||{},t=(g?h.delegateType:h.bindType)||t,h=s.event.special[t]||{},q=s.extend({type:t,origType:A,data:k,handler:c,guid:c.guid,selector:g,needsContext:g&&s.expr.match.needsContext.test(g),namespace:n.join(".")},d),(f=e[t])||((f=e[t]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(a,k,n,l)||a.addEventListener&&a.addEventListener(t,l)),h.add&&(h.add.call(a,q),q.handler.guid||(q.handler.guid=c.guid)),g?f.splice(f.delegateCount++, 0,q):f.push(q),s.event.global[t]=!0)},remove:function(a,b,c,k,g){var d,l,n,e,p,q,h,f,t,A,v,x=W.hasData(a)&&W.get(a);if(x&&(e=x.events)){for(p=(b=(b||"").match(ta)||[""]).length;p--;)if(t=v=(n=Jb.exec(b[p])||[])[1],A=(n[2]||"").split(".").sort(),t){h=s.event.special[t]||{};f=e[t=(k?h.delegateType:h.bindType)||t]||[];n=n[2]&&new RegExp("(^|\\.)"+A.join("\\.(?:.*\\.|)")+"(\\.|$)");for(l=d=f.length;d--;)q=f[d],!g&&v!==q.origType||c&&c.guid!==q.guid||n&&!n.test(q.namespace)||k&&k!==q.selector&&("**"!== k||!q.selector)||(f.splice(d,1),q.selector&&f.delegateCount--,h.remove&&h.remove.call(a,q));l&&!f.length&&(h.teardown&&!1!==h.teardown.call(a,A,x.handle)||s.removeEvent(a,t,x.handle),delete e[t])}else for(t in e)s.event.remove(a,t+b[p],c,k,!0);s.isEmptyObject(e)&&W.remove(a,"handle events")}},dispatch:function(a){var b,c,k,g,d,l,n=Array(arguments.length),e=s.event.fix(a);c=(W.get(this,"events")||Object.create(null))[e.type]||[];var p=s.event.special[e.type]||{};n[0]=e;for(b=1;b\s*$/g; s.extend({htmlPrefilter:function(a){return a},clone:function(a,b,c){var k,g,d,l,n,e,p,q=a.cloneNode(!0),h=pb(a);if(!(X.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||s.isXMLDoc(a)))for(l=w(q),k=0,g=(d=w(a)).length;ks.inArray(this,a)&&(s.cleanData(w(this)),c&&c.replaceChild(b,this))},a)}});s.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){s.fn[a]=function(a){for(var c= [],k=s(a),g=k.length-1,d=0;d<=g;d++)a=d===g?this:this.clone(!0),s(k[d])[b](a),Oa.apply(c,a.get());return this.pushStack(c)}});var ib=new RegExp("^("+sb+")(?!px)[a-z%]+$","i"),sa=function(a){var c=a.ownerDocument.defaultView;return c&&c.opener||(c=b),c.getComputedStyle(a)},Sb=function(a,b,c){var k,g={};for(k in b)g[k]=a.style[k],a.style[k]=b[k];for(k in c=c.call(a),b)a.style[k]=g[k];return c},Gb=new RegExp(Na.join("|"),"i");!function(){function a(){if(p){e.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0"; p.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";fb.appendChild(e).appendChild(p);var l=b.getComputedStyle(p);c="1%"!==l.top;n=12===Math.round(parseFloat(l.marginLeft));p.style.right="60%";d=36===Math.round(parseFloat(l.right));k=36===Math.round(parseFloat(l.width));p.style.position="absolute";g=12===Math.round(parseFloat(p.offsetWidth/3));fb.removeChild(e);p=null}}var c,k,g,d,l,n,e=ea.createElement("div"), p=ea.createElement("div");p.style&&(p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",X.clearCloneStyle="content-box"===p.style.backgroundClip,s.extend(X,{boxSizingReliable:function(){return a(),k},pixelBoxStyles:function(){return a(),d},pixelPosition:function(){return a(),c},reliableMarginLeft:function(){return a(),n},scrollboxSize:function(){return a(),g},reliableTrDimensions:function(){var a,c,k,g;return null==l&&(a=ea.createElement("table"),c=ea.createElement("tr"), k=ea.createElement("div"),a.style.cssText="position:absolute;left:-11111px",c.style.height="1px",k.style.height="9px",fb.appendChild(a).appendChild(c).appendChild(k),g=b.getComputedStyle(c),l=3k;k++)g[a+Na[k]+b]=c[k]||c[k-2]||c[0];return g}};"margin"!==a&&(s.cssHooks[a+b].set=R)});s.fn.extend({css:function(a,b){return Ea(this,function(a,b,c){var k,g={},d=0;if(Array.isArray(b)){c=sa(a);for(k=b.length;dk.indexOf(" "+d+" ")&&(k+=d+" ");g!==(n=ga(k))&&c.setAttribute("class",n)}return this},removeClass:function(a){var b,c,k,g,d,l,n,e=0;if(aa(a))return this.each(function(b){s(this).removeClass(a.call(this,b,Z(this)))});if(!arguments.length)return this.attr("class","");if((b=ba(a)).length)for(;c=this[e++];)if(g=Z(c),k=1===c.nodeType&&" "+ga(g)+" "){for(l=0;d=b[l++];)for(;-1g?e:l?g:0;cA.indexOf(":")&&"on"+A,(a=a[s.expando]?a:new s.Event(A,"object"==typeof a&&a)).isTrigger=g?2:3,a.namespace=d.join("."),a.rnamespace= a.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=k),c=null==c?[a]:s.makeArray(c,[a]),h=s.event.special[A]||{},g||!h.trigger||!1!==h.trigger.apply(k,c))){if(!g&&!h.noBubble&&!Ja(k)){e=h.delegateType||A;for(Mb.test(e+A)||(l=l.parentNode);l;l=l.parentNode)t.push(l),n=l;n===(k.ownerDocument||ea)&&t.push(n.defaultView||n.parentWindow||b)}for(d=0;(l=t[d++])&&!a.isPropagationStopped();)f=l,a.type=1a||304===a,n&&(y=function(a,b,c){for(var k,g,d,l,n=a.contents,e=a.dataTypes;"*"===e[0];)e.shift(),void 0===k&&(k=a.mimeType|| b.getResponseHeader("Content-Type"));if(k)for(g in n)if(n[g]&&n[g].test(k)){e.unshift(g);break}if(e[0]in c)d=e[0];else{for(g in c){if(!e[0]||a.converters[g+" "+e[0]]){d=g;break}l||(l=g)}d=d||l}if(d)return d!==e[0]&&e.unshift(d),c[d]}(A,D,n)),!f&&-1a&&(a=0))),D.status=a,D.statusText=(c||E)+"",f?r.resolveWith(v,[t,E,D]):r.rejectWith(v,[D,E,z]),D.statusCode(u),u=void 0,h&&x.trigger(f?"ajaxSuccess":"ajaxError",[D,A,f?t:z]),m.fireWith(v,[D,E]),h&&(x.trigger("ajaxComplete",[D,A]),--s.active||s.event.trigger("ajaxStop")))}"object"==typeof a&&(c=a,a=void 0); c=c||{};var g,d,l,n,e,p,q,h,f,t,A=s.ajaxSetup({},c),v=A.context||A,x=A.context&&(v.nodeType||v.jquery)?s(v):s.event,r=s.Deferred(),m=s.Callbacks("once memory"),u=A.statusCode||{},z={},y={},E="canceled",D={readyState:0,getResponseHeader:function(a){var b;if(q){if(!n)for(n={};b=$b.exec(l);)n[b[1].toLowerCase()+" "]=(n[b[1].toLowerCase()+" "]||[]).concat(b[2]);b=n[a.toLowerCase()+" "]}return null==b?null:b.join(", ")},getAllResponseHeaders:function(){return q?l:null},setRequestHeader:function(a,b){return null== q&&(a=y[a.toLowerCase()]=y[a.toLowerCase()]||a,z[a]=b),this},overrideMimeType:function(a){return null==q&&(A.mimeType=a),this},statusCode:function(a){var b;if(a)if(q)D.always(a[D.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){a=a||E;return g&&g.abort(a),k(0,a),this}};if(r.promise(D),A.url=((a||A.url||Ga.href)+"").replace(Ob,Ga.protocol+"//"),A.type=c.method||c.type||A.method||A.type,A.dataTypes=(A.dataType||"*").toLowerCase().match(ta)||[""],null==A.crossDomain){p=ea.createElement("a"); try{p.href=A.url,p.href=p.href,A.crossDomain=nb.protocol+"//"+nb.host!=p.protocol+"//"+p.host}catch(G){A.crossDomain=!0}}if(A.data&&A.processData&&"string"!=typeof A.data&&(A.data=s.param(A.data,A.traditional)),ja(bc,A,c,D),q)return D;for(f in(h=s.event&&A.global)&&0==s.active++&&s.event.trigger("ajaxStart"),A.type=A.type.toUpperCase(),A.hasContent=!ac.test(A.type),d=A.url.replace(jc,""),A.hasContent?A.data&&A.processData&&0===(A.contentType||"").indexOf("application/x-www-form-urlencoded")&&(A.data= A.data.replace(ic,"+")):(t=A.url.slice(d.length),A.data&&(A.processData||"string"==typeof A.data)&&(d+=(Qa.test(d)?"\x26":"?")+A.data,delete A.data),!1===A.cache&&(d=d.replace(xa,"$1"),t=(Qa.test(d)?"\x26":"?")+"_\x3d"+Wa++ +t),A.url=d+t),A.ifModified&&(s.lastModified[d]&&D.setRequestHeader("If-Modified-Since",s.lastModified[d]),s.etag[d]&&D.setRequestHeader("If-None-Match",s.etag[d])),(A.data&&A.hasContent&&!1!==A.contentType||c.contentType)&&D.setRequestHeader("Content-Type",A.contentType),D.setRequestHeader("Accept", A.dataTypes[0]&&A.accepts[A.dataTypes[0]]?A.accepts[A.dataTypes[0]]+("*"!==A.dataTypes[0]?", "+ra+"; q\x3d0.01":""):A.accepts["*"]),A.headers)D.setRequestHeader(f,A.headers[f]);if(A.beforeSend&&(!1===A.beforeSend.call(v,D,A)||q))return D.abort();if(E="abort",m.add(A.complete),D.done(A.success),D.fail(A.error),g=ja(Ib,A,c,D)){if(D.readyState=1,h&&x.trigger("ajaxSend",[D,A]),q)return D;A.async&&0"'`=]/g,a=/[&<>"'`=]/,c=Object.prototype.toString;m.toString=c;var n=function(a){return"function"== typeof a};n(/x/)&&(m.isFunction=n=function(a){return"function"==typeof a&&"[object Function]"===c.call(a)});m.isFunction=n;var l=Array.isArray||function(a){return!(!a||"object"!=typeof a)&&"[object Array]"===c.call(a)};m.isArray=l},function(b,m,e){function f(a,b){var n=b&&b.loc,l=void 0,e=void 0;n&&(l=n.start.line,e=n.start.column,a+=" - "+l+":"+e);for(var p=Error.prototype.constructor.call(this,a),g=0;g=arguments.length||void 0===arguments[1]?{}:arguments[1],l=e;return!e||a==e[0]||a===b.nullContext&& null===e[0]||(l=[a].concat(e)),k(b,a,b.helpers,b.partials,c.data||d,n&&[c.blockParams].concat(n),l)}return p=a(k,p,b,e,d,n),p.program=c,p.depth=e?e.length:0,p.blockParams=l||0,p}function h(){return""}function d(a,b){return b&&"root"in b||(b=b?p.createFrame(b):{},b.root=a),b}function a(a,b,c,d,n,e){if(a.decorator){var p={};b=a.decorator(b,p,c,d&&d[0],n,e,d);l.extend(b,p)}return b}var c=e(23)["default"],n=e(3)["default"];b=e(1)["default"];m.__esModule=!0;m.checkRevision=function(a){var b=a&&a[0]||1, c=p.COMPILER_REVISION;if(b!==c){if(b=arguments.length||void 0===arguments[1]?{}:arguments[1],p=n.data;k._setup(n);!n.partial&&b.useData&&(p=d(c,p));var q=void 0,h=b.useBlockParams?[]:void 0;return b.useDepths&&(q=n.depths?c!=n.depths[0]?[c].concat(n.depths):n.depths:[c]),(l=a(b.main,l,e,n.depths||[],p,h))(c,n)}if(!n)throw new v["default"]("No environment passed to template");if(!b||!b.main)throw new v["default"]("Unknown template object: "+typeof b);b.main.decorator=b.main_d;n.VM.checkRevision(b.compiler); var e={strict:function(a,b){if(!(b in a))throw new v["default"]('"'+b+'" not defined in '+a);return a[b]},lookup:function(a,b){for(var c=a.length,k=0;k=arguments.length||void 0===arguments[1]?{}:arguments[1];return c.data=p.createFrame(c.data),c.data["partial-block"]=d,a(b,c)};a.partials&&(c.partials=l.extend({},c.partials,a.partials))}(),void 0===a&&n&&(a=n),void 0===a)throw new v["default"]("The partial "+c.name+" could not be found");if(a instanceof Function)return a(b,c)};m.noop=h;m=e(5);var l=n(m);m=e(6);var v=b(m), p=e(4)},function(b,m,e){b.exports={"default":e(24),__esModule:!0}},function(b,m,e){e(25);b.exports=e(30).Object.seal},function(b,m,e){var f=e(26);e(27)("seal",function(b){return function(d){return b&&f(d)?b(d):d}})},function(b,m){b.exports=function(b){return"object"==typeof b?null!==b:"function"==typeof b}},function(b,m,e){var f=e(28),h=e(30),d=e(33);b.exports=function(a,b){var n=(h.Object||{})[a]||Object[a],l={};l[a]=b(n);f(f.S+f.F*d(function(){n(1)}),"Object",l)}},function(b,m,e){var f=e(29),h= e(30),d=e(31),a=function(b,n,l){var e,p,g=b&a.F,q=b&a.G,k=b&a.S,t=b&a.P,m=b&a.B;b&=a.W;var r=q?h:h[n]||(h[n]={}),k=q?f:k?f[n]:(f[n]||{}).prototype;q&&(l=n);for(e in l)(n=!g&&k&&e in k)&&e in r||(p=n?k[e]:l[e],r[e]=q&&"function"!=typeof k[e]?l[e]:m&&n?d(p,f):b&&k[e]==p?function(a){var b=function(b){return this instanceof a?new a(b):a(b)};return b.prototype=a.prototype,b}(p):t&&"function"==typeof p?d(Function.call,p):p,t&&((r.prototype||(r.prototype={}))[e]=p))};a.F=1;a.G=2;a.S=4;a.P=8;a.B=16;a.W=32; b.exports=a},function(b,m){var e=b.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(b,m){var e=b.exports={version:"1.2.6"};"number"==typeof __e&&(__e=e)},function(b,m,e){var f=e(32);b.exports=function(b,d,a){if(f(b),void 0===d)return b;switch(a){case 1:return function(a){return b.call(d,a)};case 2:return function(a,n){return b.call(d,a,n)};case 3:return function(a,n,l){return b.call(d, a,n,l)}}return function(){return b.apply(d,arguments)}}},function(b,m){b.exports=function(b){if("function"!=typeof b)throw TypeError(b+" is not a function!");return b}},function(b,m){b.exports=function(b){try{return!!b()}catch(f){return!0}}},function(b,m){(function(e){m.__esModule=!0;m["default"]=function(b){var h="undefined"!=typeof e?e:window,d=h.Handlebars;b.noConflict=function(){return h.Handlebars===b&&(h.Handlebars=d),b}};b.exports=m["default"]}).call(m,function(){return this}())},function(b, m){m.__esModule=!0;var e={helpers:{helperExpression:function(b){return"SubExpression"===b.type||("MustacheStatement"===b.type||"BlockStatement"===b.type)&&!!(b.params&&b.params.length||b.hash)},scopedId:function(b){return/^\.|this\b/.test(b.original)},simpleId:function(b){return 1===b.parts.length&&!e.helpers.scopedId(b)&&!b.depth}}};m["default"]=e;b.exports=m["default"]},function(b,m,e){var f=e(1)["default"];b=e(3)["default"];m.__esModule=!0;m.parse=function(b,l){if("Program"===b.type)return b;d["default"].yy= c;c.locInfo=function(a){return new c.SourceLocation(l&&l.srcName,a)};return(new a["default"](l)).accept(d["default"].parse(b))};var h=e(37),d=f(h),h=e(38),a=f(h),f=e(40);b=b(f);e=e(5);m.parser=d["default"];var c={};e.extend(c,b)},function(b,m){m.__esModule=!0;var e=function(){function b(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16, rawBlock_repetition_plus0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41, openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68, hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN", 51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20, 1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,1],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(a,b,d,l, e,p,g){a=p.length-1;switch(e){case 1:return p[a-1];case 2:this.$=l.prepareProgram(p[a]);break;case 3:this.$=p[a];break;case 4:this.$=p[a];break;case 5:this.$=p[a];break;case 6:this.$=p[a];break;case 7:this.$=p[a];break;case 8:this.$=p[a];break;case 9:this.$={type:"CommentStatement",value:l.stripComment(p[a]),strip:l.stripFlags(p[a],p[a]),loc:l.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:p[a],value:p[a],loc:l.locInfo(this._$)};break;case 11:this.$=l.prepareRawBlock(p[a- 2],p[a-1],p[a],this._$);break;case 12:this.$={path:p[a-3],params:p[a-2],hash:p[a-1]};break;case 13:this.$=l.prepareBlock(p[a-3],p[a-2],p[a-1],p[a],!1,this._$);break;case 14:this.$=l.prepareBlock(p[a-3],p[a-2],p[a-1],p[a],!0,this._$);break;case 15:this.$={open:p[a-5],path:p[a-4],params:p[a-3],hash:p[a-2],blockParams:p[a-1],strip:l.stripFlags(p[a-5],p[a])};break;case 16:this.$={path:p[a-4],params:p[a-3],hash:p[a-2],blockParams:p[a-1],strip:l.stripFlags(p[a-5],p[a])};break;case 17:this.$={path:p[a-4], params:p[a-3],hash:p[a-2],blockParams:p[a-1],strip:l.stripFlags(p[a-5],p[a])};break;case 18:this.$={strip:l.stripFlags(p[a-1],p[a-1]),program:p[a]};break;case 19:e=l.prepareBlock(p[a-2],p[a-1],p[a],p[a],!1,this._$);l=l.prepareProgram([e],p[a-1].loc);l.chained=!0;this.$={strip:p[a-2].strip,program:l,chain:!0};break;case 20:this.$=p[a];break;case 21:this.$={path:p[a-1],strip:l.stripFlags(p[a-2],p[a])};break;case 22:this.$=l.prepareMustache(p[a-3],p[a-2],p[a-1],p[a-4],l.stripFlags(p[a-4],p[a]),this._$); break;case 23:this.$=l.prepareMustache(p[a-3],p[a-2],p[a-1],p[a-4],l.stripFlags(p[a-4],p[a]),this._$);break;case 24:this.$={type:"PartialStatement",name:p[a-3],params:p[a-2],hash:p[a-1],indent:"",strip:l.stripFlags(p[a-4],p[a]),loc:l.locInfo(this._$)};break;case 25:this.$=l.preparePartialBlock(p[a-2],p[a-1],p[a],this._$);break;case 26:this.$={path:p[a-3],params:p[a-2],hash:p[a-1],strip:l.stripFlags(p[a-4],p[a])};break;case 27:this.$=p[a];break;case 28:this.$=p[a];break;case 29:this.$={type:"SubExpression", path:p[a-3],params:p[a-2],hash:p[a-1],loc:l.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:p[a],loc:l.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:l.id(p[a-2]),value:p[a],loc:l.locInfo(this._$)};break;case 32:this.$=l.id(p[a-1]);break;case 33:this.$=p[a];break;case 34:this.$=p[a];break;case 35:this.$={type:"StringLiteral",value:p[a],original:p[a],loc:l.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(p[a]),original:Number(p[a]),loc:l.locInfo(this._$)}; break;case 37:this.$={type:"BooleanLiteral",value:"true"===p[a],original:"true"===p[a],loc:l.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:l.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:l.locInfo(this._$)};break;case 40:this.$=p[a];break;case 41:this.$=p[a];break;case 42:this.$=l.preparePath(!0,p[a],this._$);break;case 43:this.$=l.preparePath(!1,p[a],this._$);break;case 44:p[a-2].push({part:l.id(p[a]),original:p[a], separator:p[a-1]});this.$=p[a-2];break;case 45:this.$=[{part:l.id(p[a]),original:p[a]}];break;case 46:this.$=[];break;case 47:p[a-1].push(p[a]);break;case 48:this.$=[p[a]];break;case 49:p[a-1].push(p[a]);break;case 50:this.$=[];break;case 51:p[a-1].push(p[a]);break;case 58:this.$=[];break;case 59:p[a-1].push(p[a]);break;case 64:this.$=[];break;case 65:p[a-1].push(p[a]);break;case 70:this.$=[];break;case 71:p[a-1].push(p[a]);break;case 78:this.$=[];break;case 79:p[a-1].push(p[a]);break;case 82:this.$= [];break;case 83:p[a-1].push(p[a]);break;case 86:this.$=[];break;case 87:p[a-1].push(p[a]);break;case 90:this.$=[];break;case 91:p[a-1].push(p[a]);break;case 94:this.$=[];break;case 95:p[a-1].push(p[a]);break;case 98:this.$=[p[a]];break;case 99:p[a-1].push(p[a]);break;case 100:this.$=[p[a]];break;case 101:p[a-1].push(p[a])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10, 13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2, 4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9], 14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46], 47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{13:40,15:[1,20],17:39},{20:42,56:41,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:45,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30], 83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:48,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:42,56:49,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:50,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2, 33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37], 65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1, 51]},{72:[1,35],86:52},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:53,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:54,38:56,39:[1,58],43:57,44:[1,59],45:55,47:[2,54]},{28:60,43:61,44:[1,59],47:[2,56]},{13:63,15:[1,20],18:[1,62]},{15:[2,48],18:[2,48]},{33:[2,86],57:64,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]}, {33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:65,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:66,47:[1,67]},{30:68,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:69,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64], 85:[2,64]},{21:70,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:71,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:75,33:[2,80],50:72,63:73,64:76,65:[1,44],69:74,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,80]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42], 87:[1,51]},{20:75,53:81,54:[2,84],63:82,64:76,65:[1,44],69:83,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:84,47:[1,67]},{47:[2,55]},{4:85,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:86,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:87,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46], 48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:88,47:[1,67]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:75,33:[2,88],58:89,63:90,64:76,65:[1,44],69:91,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:92,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25], 19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:93,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,31:94,33:[2,60],63:95,64:76,65:[1,44],69:96,70:77,71:78,72:[1,79],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,66],36:97,63:98,64:76,65:[1,44],69:99,70:77,71:78,72:[1,79],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32], 85:[1,34],86:33},{20:75,22:100,23:[2,52],63:101,64:76,65:[1,44],69:102,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,92],62:103,63:104,64:76,65:[1,44],69:105,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,106]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2, 27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:107,72:[1,108],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,109],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44], 33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,110]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:56,39:[1,58],43:57,44:[1,59],45:112,46:111,47:[2,76]},{33:[2,70],40:113,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2, 70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,114]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:75,63:116,64:76,65:[1,44],67:115,68:[2,96],69:117,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,118]},{32:119,33:[2,62],74:120,75:[1, 121]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:122,74:123,75:[1,121]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,124]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,125]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91], 85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,109]},{20:75,63:126,64:76,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]}, {20:75,33:[2,72],41:127,63:128,64:76,65:[1,44],69:129,70:77,71:78,72:[1,79],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,130]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21], 48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,131]},{33:[2,63]},{72:[1,133],76:132},{33:[1,134]},{33:[2,69]},{15:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:135,74:136,75:[1,121]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2, 29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,138],77:[1,137]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,139]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2, 17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],55:[2,55],57:[2,20],61:[2,57],74:[2,81],83:[2,85],87:[2,18],91:[2,89],102:[2,53],105:[2,93],111:[2,19],112:[2,77],117:[2,97],120:[2,63],123:[2,69],124:[2,12],136:[2,75],137:[2,32]},parseError:function(a,b){throw Error(a);},parse:function(a){var b=[0],d=[null],l=[],e=this.table,p="",g=0,q=0,k=0;this.lexer.setInput(a);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;this.yy.parser=this;"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc= {});a=this.lexer.yylloc;l.push(a);var h=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var f,m,w,y,x,E,G,H,F={};;){w=b[b.length-1];if(this.defaultActions[w])y=this.defaultActions[w];else{if(null===f||"undefined"==typeof f)y=void 0,f=(y=this.lexer.lex()||1,"number"!=typeof y&&(y=this.symbols_[y]||y),y);y=e[w]&&e[w][f]}if("undefined"==typeof y||!y.length||!y[0]){var C="";if(!k){H=[];for(E in e[w])this.terminals_[E]&&2a.length&&(a+=this._input.substr(0, 20-a.length)),(a.substr(0,20)+(20b[0].length)||(b=d,e=q,this.options.flex));q++);return b?(p=b[0].match(/(?:\r\n?|\n).*/g), p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],a=this.performAction.call(this, this.yy,this,g[e],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a?a:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return"undefined"!=typeof a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length- 1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return a.options={},a.performAction=function(a,b,d,e){function p(a,c){return b.yytext=b.yytext.substr(a,b.yyleng-c)}switch(d){case 0:if("\\\\"===b.yytext.slice(-2)?(p(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(p(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(), "raw"===this.conditionStack[this.conditionStack.length-1]?15:(b.yytext=b.yytext.substr(5,b.yyleng-9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(b.yytext); this.popState();this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return b.yytext=p(1,2).replace(/\\"/g,'"'),80;case 32:return b.yytext=p(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72; case 42:return b.yytext=b.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/, /^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();return e.lexer=d,b.prototype=e,e.Parser=b,new b}();m["default"]=e;b.exports=m["default"]},function(b,m, e){function f(){this.options=0>=arguments.length||void 0===arguments[0]?{}:arguments[0]}function h(a,b,c){void 0===b&&(b=a.length);var g=a[b-1];a=a[b-2];return g?"ContentStatement"===g.type?(a||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(g.original):void 0:c}function d(a,b,c){void 0===b&&(b=-1);var g=a[b+1];a=a[b+2];return g?"ContentStatement"===g.type?(a||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(g.original):void 0:c}function a(a,b,c){!(a=a[null==b?0:b+1])||"ContentStatement"!==a.type||!c&&a.rightStripped|| (b=a.value,a.value=a.value.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),a.rightStripped=a.value!==b)}function c(a,b,c){if((a=a[null==b?a.length-1:b-1])&&"ContentStatement"===a.type&&(c||!a.leftStripped))return b=a.value,a.value=a.value.replace(c?/\s+$/:/[ \t]+$/,""),a.leftStripped=a.value!==b,a.leftStripped}var n=e(1)["default"];m.__esModule=!0;e=e(39);n=n(e);f.prototype=new n["default"];f.prototype.Program=function(b){var n=!this.options.ignoreStandalone,e=!this.isRootSeen;this.isRootSeen=!0;for(var g=b.body, q=0,k=g.length;qthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;this.inlineStack=[];for(var b= 0,c=a.length;b=arguments.length||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return b instanceof a?b:(b=f(b,this,d),new a(d.start.line,d.start.column,this.srcFile,b))},functionCall:function(a,b,d){return d=this.generateList(d),this.wrap([a,b?"."+b+"(":"(",d,")"])},quotedString:function(a){return'"'+ (a+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var b=[],d;for(d in a)if(a.hasOwnProperty(d)){var e=f(a[d],this);"undefined"!==e&&b.push([this.quotedString(d),":",e])}a=this.generateList(b);return a.prepend("{"),a.add("}"),a},generateList:function(a){for(var b=this.empty(),d=0,e=a.length;d=this._reconnectionAttempts)v("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var c=this.backoff.duration();v("will wait %dms before reconnect attempt",c);this.reconnecting=!0;var d=setTimeout(function(){a.skipReconnect||(v("attempting reconnect"),a.emitAll("reconnect_attempt",a.backoff.attempts),a.emitAll("reconnecting",a.backoff.attempts),a.skipReconnect||a.open(function(c){c?(v("reconnect attempt error"),a.reconnecting= !1,a.reconnect(),a.emitAll("reconnect_error",c.data)):(v("reconnect success"),a.onreconnect())}))},c);this.subs.push({destroy:function(){clearTimeout(d)}})}};h.prototype.onreconnect=function(){var a=this.backoff.attempts;this.reconnecting=!1;this.backoff.reset();this.updateSocketIds();this.emitAll("reconnect",a)}},{"./on":4,"./socket":5,"./url":6,backo2:7,"component-bind":8,"component-emitter":9,debug:10,"engine.io-client":11,indexof:40,"object-component":41,"socket.io-parser":44}],4:[function(m, e,f){e.exports=function(e,d,a){e.on(d,a);return{destroy:function(){e.removeListener(d,a)}}}},{}],5:[function(m,e,f){function h(a,c){this.io=a;this.nsp=c;this.json=this;this.ids=0;this.acks={};this.io.autoConnect&&this.open();this.receiveBuffer=[];this.sendBuffer=[];this.connected=!1;this.disconnected=!0}var d=m("socket.io-parser");f=m("component-emitter");var a=m("to-array"),c=m("./on"),n=m("component-bind"),l=m("debug")("socket.io-client:socket"),v=m("has-binary");e.exports=h;var p={connect:1,connect_error:1, connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1},g=f.prototype.emit;f(h.prototype);h.prototype.subEvents=function(){if(!this.subs){var a=this.io;this.subs=[c(a,"open",n(this,"onopen")),c(a,"packet",n(this,"onpacket")),c(a,"close",n(this,"onclose"))]}};h.prototype.open=h.prototype.connect=function(){if(this.connected)return this;this.subEvents();this.io.open();if("open"==this.io.readyState)this.onopen();return this};h.prototype.send= function(){var c=a(arguments);c.unshift("message");this.emit.apply(this,c);return this};h.prototype.emit=function(c){if(p.hasOwnProperty(c))return g.apply(this,arguments),this;var k=a(arguments),n=d.EVENT;v(k)&&(n=d.BINARY_EVENT);n={type:n,data:k};"function"==typeof k[k.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=k.pop(),n.id=this.ids++);this.connected?this.packet(n):this.sendBuffer.push(n);return this};h.prototype.packet=function(a){a.nsp=this.nsp;this.io.packet(a)}; h.prototype.onopen=function(){l("transport is open - connecting");"/"!=this.nsp&&this.packet({type:d.CONNECT})};h.prototype.onclose=function(a){l("close (%s)",a);this.connected=!1;this.disconnected=!0;delete this.id;this.emit("disconnect",a)};h.prototype.onpacket=function(a){if(a.nsp==this.nsp)switch(a.type){case d.CONNECT:this.onconnect();break;case d.EVENT:this.onevent(a);break;case d.BINARY_EVENT:this.onevent(a);break;case d.ACK:this.onack(a);break;case d.BINARY_ACK:this.onack(a);break;case d.DISCONNECT:this.ondisconnect(); break;case d.ERROR:this.emit("error",a.data)}};h.prototype.onevent=function(a){var c=a.data||[];l("emitting event %j",c);null!=a.id&&(l("attaching ack callback to event"),c.push(this.ack(a.id)));this.connected?g.apply(this,c):this.receiveBuffer.push(c)};h.prototype.ack=function(c){var k=this,g=!1;return function(){if(!g){g=!0;var n=a(arguments);l("sending ack %j",n);var e=v(n)?d.BINARY_ACK:d.ACK;k.packet({type:e,id:c,data:n})}}};h.prototype.onack=function(a){l("calling ack %s with %j",a.id,a.data); this.acks[a.id].apply(this,a.data);delete this.acks[a.id]};h.prototype.onconnect=function(){this.connected=!0;this.disconnected=!1;this.emit("connect");this.emitBuffered()};h.prototype.emitBuffered=function(){var a;for(a=0;a=d.jitter?d.jitter:0;this.attempts=0}e.exports=h;h.prototype.duration=function(){var d=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter)var a=Math.random(),c=Math.floor(a* this.jitter*d),d=0==(Math.floor(10*a)&1)?d-c:d+c;return Math.min(d,this.max)|0};h.prototype.reset=function(){this.attempts=0};h.prototype.setMin=function(d){this.ms=d};h.prototype.setMax=function(d){this.max=d};h.prototype.setJitter=function(d){this.jitter=d}},{}],8:[function(m,e,f){var h=[].slice;e.exports=function(d,a){"string"==typeof a&&(a=d[a]);if("function"!=typeof a)throw Error("bind() requires a function");var c=h.call(arguments,2);return function(){return a.apply(d,c.concat(h.call(arguments)))}}}, {}],9:[function(m,e,f){function h(d){if(d){for(var a in h.prototype)d[a]=h.prototype[a];return d}}e.exports=h;h.prototype.on=h.prototype.addEventListener=function(d,a){this._callbacks=this._callbacks||{};(this._callbacks[d]=this._callbacks[d]||[]).push(a);return this};h.prototype.once=function(d,a){function c(){e.off(d,c);a.apply(this,arguments)}var e=this;this._callbacks=this._callbacks||{};c.fn=a;this.on(d,c);return this};h.prototype.off=h.prototype.removeListener=h.prototype.removeAllListeners= h.prototype.removeEventListener=function(d,a){this._callbacks=this._callbacks||{};if(0==arguments.length)return this._callbacks={},this;var c=this._callbacks[d];if(!c)return this;if(1==arguments.length)return delete this._callbacks[d],this;for(var e,l=0;l=e.count)throw Error("after called too many times");--e.count;d?(l=!0,a(d),a= c):0!==e.count||l||a(null,h)}var l=!1;c=c||h;e.count=d;return 0===d?a():e}},{}],28:[function(m,e,f){e.exports=function(e,d,a){var c=e.byteLength;d=d||0;a=a||c;if(e.slice)return e.slice(d,a);0>d&&(d+=c);0>a&&(a+=c);a>c&&(a=c);if(d>=c||d>=a||0===c)return new ArrayBuffer(0);e=new Uint8Array(e);for(var c=new Uint8Array(a-d),n=0;d>2],n+=e[(d[a]& 3)<<4|d[a+1]>>4],n+=e[(d[a+1]&15)<<2|d[a+2]>>6],n+=e[d[a+2]&63];2===c%3?n=n.substring(0,n.length-1)+"\x3d":1===c%3&&(n=n.substring(0,n.length-2)+"\x3d\x3d");return n};f.decode=function(d){var a=.75*d.length,c=d.length,n=0,l,f,p,g;"\x3d"===d[d.length-1]&&(a--,"\x3d"===d[d.length-2]&&a--);for(var q=new ArrayBuffer(a),k=new Uint8Array(q),a=0;a>4,k[n++]=(f&15)<<4|p>>2,k[n++]=(p&3)<<6|g&63;return q}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")}, {}],30:[function(m,e,f){(function(h){function d(a){for(var c=0;c=e&&d=a)throw Error("Lone surrogate U+"+a.toString(16).toUpperCase()+" is not a scalar value");}function n(){if(u>=t)throw Error("Invalid byte index");var a=k[u]&255;u++;if(128==(a&192))return a&63;throw Error("Invalid continuation byte");}function l(){var a,d,e,g;if(u>t)throw Error("Invalid byte index");if(u==t)return!1;a=k[u]&255;u++;if(0==(a&128))return a;if(192==(a&224)){d=n();a=(a&31)<<6|d;if(128<=a)return a; throw Error("Invalid continuation byte");}if(224==(a&240)){d=n();e=n();a=(a&15)<<12|d<<6|e;if(2048<=a)return c(a),a;throw Error("Invalid continuation byte");}if(240==(a&248)&&(d=n(),e=n(),g=n(),a=(a&15)<<18|d<<12|e<<6|g,65536<=a&&1114111>=a))return a;throw Error("Invalid UTF-8 detected");}var m="object"==typeof f&&f,p="object"==typeof e&&e&&e.exports==m&&e,g="object"==typeof h&&h;if(g.global===g||g.window===g)d=g;var q=String.fromCharCode,k,t,u,g={version:"2.0.0",encode:function(d){d=a(d);for(var k= d.length,e=-1,g,n="";++e>6&31|192):0==(g&4294901760)?(c(g),l=q(g>>12&15|224),l+=q(g>>6&63|128)):0==(g&4292870144)&&(l=q(g>>18&7|240),l+=q(g>>12&63|128),l+=q(g>>6&63|128));g=l+=q(g&63|128)}n+=g}return n},decode:function(c){k=a(c);t=k.length;u=0;c=[];for(var d;!1!==(d=l());)c.push(d);d=c.length;for(var e=-1,g,n="";++e>>10&1023|55296),g=56320|g&1023),n+=q(g);return n}};if(m&&!m.nodeType)if(p)p.exports= g;else{d={}.hasOwnProperty;for(var r in g)d.call(g,r)&&(m[r]=g[r])}else d.utf8=g})(this)}).call(this,"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],32:[function(m,e,f){(function(h){var d=/^[\],:{}\s]*$/,a=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,c=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,n=/(?:^|:|,)(?:\s*\[)+/g,l=/^\s+/,f=/\s+$/;e.exports=function(e){if("string"!=typeof e||!e)return null;e=e.replace(l,"").replace(f,"");if(h.JSON&&JSON.parse)return JSON.parse(e); if(d.test(e.replace(a,"@").replace(c,"]").replace(n,"")))return(new Function("return "+e))()}}).call(this,"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],33:[function(m,e,f){f.encode=function(e){var d="",a;for(a in e)e.hasOwnProperty(a)&&(d.length&&(d+="\x26"),d+=encodeURIComponent(a)+"\x3d"+encodeURIComponent(e[a]));return d};f.decode=function(e){var d={};e=e.split("\x26");for(var a=0,c=e.length;al){c+="\\u00"+x(2,l.toString(16));break}c+=g?n[d]:k?a.charAt(d):a[d]}}return c+'"'},G=function(d,e,k,g,f,h,p){var m,q,v,u,y,D,w,H,F;try{m=e[d]}catch(B){}if("object"==typeof m&&m)if(q=a.call(m),"[object Date]"!=q||c.call(m,"toJSON"))"function"==typeof m.toJSON&&("[object Number]"!=q&&"[object String]"!=q&&"[object Array]"!=q||c.call(m,"toJSON"))&&(m=m.toJSON(d));else if(m>-1/0&&m<1/0){if(r){u=t(m/864E5);for(q=t(u/365.2425)+1970-1;r(q+1,0)<=u;q++);for(v=t((u-r(q,0))/30.42);r(q,v+1)<=u;v++); u=1+u-r(q,v);y=(m%864E5+864E5)%864E5;D=t(y/36E5)%24;w=t(y/6E4)%60;H=t(y/1E3)%60;y%=1E3}else q=m.getUTCFullYear(),v=m.getUTCMonth(),u=m.getUTCDate(),D=m.getUTCHours(),w=m.getUTCMinutes(),H=m.getUTCSeconds(),y=m.getUTCMilliseconds();m=(0>=q||1E4<=q?(0>q?"-":"+")+x(6,0>q?-q:q):x(4,q))+"-"+x(2,v+1)+"-"+x(2,u)+"T"+x(2,D)+":"+x(2,w)+":"+x(2,H)+"."+x(3,y)+"Z"}else m=null;k&&(m=k.call(e,d,m));if(null===m)return"null";q=a.call(m);if("[object Boolean]"==q)return""+m;if("[object Number]"==q)return m>-1/0&&m< 1/0?""+m:"null";if("[object String]"==q)return E(""+m);if("object"==typeof m){for(d=p.length;d--;)if(p[d]===m)throw TypeError();p.push(m);F=[];e=h;h+=f;if("[object Array]"==q){v=0;for(d=m.length;v=e.length?e:e.slice(0,10));return G("",(p={},p[""]=c,p),g,n,k,"",[])}}if(!d("json-parse")){var H=String.fromCharCode, F={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},C,B,L=function(){C=B=null;throw SyntaxError();},O=function(){for(var a=B,c=a.length,d,e,g,n,l;Cl)L();else if(92==l)switch(l=a.charCodeAt(++C),l){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:d+=F[l];C++; break;case 117:e=++C;for(g=C+4;C=l||97<=l&&102>=l||65<=l&&70>=l||L();d+=H("0x"+a.slice(e,C));break;default:L()}else{if(34==l)break;l=a.charCodeAt(C);for(e=C;32<=l&&92!=l&&34!=l;)l=a.charCodeAt(++C);d+=a.slice(e,C)}if(34==a.charCodeAt(C))return C++,d;L();default:e=C;45==l&&(n=!0,l=a.charCodeAt(++C));if(48<=l&&57>=l){for(48==l&&(l=a.charCodeAt(C+1),48<=l&&57>=l)&&L();C=l);C++);if(46==a.charCodeAt(C)){for(g=++C;g=l);g++);g==C&&L();C=g}l=a.charCodeAt(C);if(101==l||69==l){l=a.charCodeAt(++C);43!=l&&45!=l||C++;for(g=C;g=l);g++);g==C&&L();C=g}return+a.slice(e,C)}n&&L();if("true"==a.slice(C,C+4))return C+=4,!0;if("false"==a.slice(C,C+5))return C+=5,!1;if("null"==a.slice(C,C+4))return C+=4,null;L()}return"$"},M=function(a){var c,d;"$"==a&&L();if("string"==typeof a){if("@"==(k?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(c=[];;d||(d=!0)){a=O();if("]"==a)break;d&& (","==a?(a=O(),"]"==a&&L()):L());","==a&&L();c.push(M(a))}return c}if("{"==a){for(c={};;d||(d=!0)){a=O();if("}"==a)break;d&&(","==a?(a=O(),"}"==a&&L()):L());","!=a&&"string"==typeof a&&"@"==(k?a.charAt(0):a[0])&&":"==O()||L();c[a.slice(1)]=M(O())}return c}L()}return a},T=function(a,c,d){d=D(a,c,d);d===l?delete a[c]:a[c]=d},D=function(c,d,e){var k=c[d],g;if("object"==typeof k&&k)if("[object Array]"==a.call(k))for(g=k.length;g--;)T(k,g,e);else n(k,function(a){T(k,a,e)});return e.call(c,d,k)};p.parse= function(c,d){var e,k;C=0;B=""+c;e=M(O());"$"!=O()&&L();C=B=null;return d&&"[object Function]"==a.call(d)?D((k={},k[""]=e,k),"",d):e}}}})(this)},{}],48:[function(m,e,f){e.exports=function(e,d){for(var a=[],c=(d=d||0)||0;ce.websocket.readyState)try{e.websocket.close()}catch(f){e.log(f)}if(e.attempts>=e.reconnectionAttempts-1)e.log("failed to connect via websocket, falling back to sio"),e.timerID&&(window.clearTimeout(e.timerID),e.timerID=0,e.attempts=0),delete e.websocket,e.initializeSocketIO();else if(this.firstConnectionSuccess&&(this.reconnectionFlag=!0),!e.timerID){e.log("setting timerID"); e.timerID=setTimeout(function(){clearTimeout(e.timerID);e.timerID=0;e.connected||e.errorHandler()},e.reconnectionDelay*(e._isNumberAndGreaterThanZero(e.attempts)?e.attempts:1)*10);e._onReconnecting();if(null==navigator||0!=navigator.onLine)e.log("incrementing retry attempts"),e.attempts++;e.initializeSocket()}},initializeSocket:function(){var b=this,e;this.checkCookieSupport(function(f){b.nocookie=f;if(1!=b.clientClose)if(e=b._getQueryParams(f),f=b.generateWsUrl(b.origin,e),null!=window.WebSocket){b.log("creating new socket,", new Date);var h=new WebSocket(f);b.websocket=h;b.websocket.onopen=function(){b.websocket==h&&(b.stableConnectionTimer=setTimeout(function(){b.attempts=0},b.stableConnectionTimeout),b.reconnectionFlag&&b._onReconnect(),b.initializeWebSocket(h))};b.websocket.onerror=function(d){b.websocket==h&&(window.clearTimeout(b.stableConnectionTimer),b.connected=!1,b.errorHandler(d))}}else b.initializeSocketIO()})},initializeWebSocket:function(b){this.log("Initializing websocket connnection...");this.connection_startTime= (new Date).getTime();var e=this,f=null;this.websocket.onmessage=function(d){e.websocket==b&&(d=e._safelyParseJSON(d.data),"PONG"!=d.event&&e.log("Received Data.",d),e._onEvent(d))};this.websocket.onclose=function(d){e.websocket==b&&(window.clearTimeout(e.stableConnectionTimer),e.clientClose?(e.log("websocket closed"),e.websocket.close()):(e.connected&&e._onDisconnect("ping timeout",e),e.log("attempting to reconnect"),e.errorHandler(d)),window.Worker&&e.ping_worker?e.ping_worker.postMessage({type:"stop_interval", intervalReference:null}):clearInterval(f))};this.reconnectionFlag||(this._onConnect(),this.reconnectionFlag=!0);if(window.Worker){var h=function(){this.onmessage=function(b){if(b.data.type!=this.undefined)switch(b.data.type){case "start_interval":var a=this.setInterval(function(){this.postMessage({type:"trigger_callback",intervalReference:a})},b.data.Interval);this.postMessage({type:"initiated",intervalReference:a});break;case "stop_interval":clearInterval(b.data.intervalReference),close()}}}.toString(), h=h.substring(h.indexOf("{")+1,h.lastIndexOf("}")),h=new Blob([h],{type:"application/javascript"});this.ping_worker=new Worker(URL.createObjectURL(h));this.ping_worker.onmessage=function(d){"trigger_callback"==d.data.type?e.websocket==b?1==b.readyState&&b.send("9"):e.ping_worker.postMessage({type:"stop_interval",intervalReference:f}):"initiated"==d.data.type&&(f=d.data.intervalReference)};this.ping_worker.postMessage({type:"start_interval",Interval:e.pingTimerInterval})}else f=setInterval(function(){e.websocket!= b?clearInterval(f):1==b.readyState&&b.send("9")},e.pingTimerInterval)},initializeSocketIO:function(){1!=this.clientClose&&(this.log("Initializing socket connection..."),this.connection_startTime=(new Date).getTime(),this.checkCookieSupport(function(b){this.nocookie=b;this.socket=this.io.Manager(this.generateSioUrl(),{forceBase64:!0,reconnectionAttempts:this.sioReconnectionAttempts,reconnectionDelay:this.reconnectionDelay,reconnectionDelayMax:this.reconnectionDelayMax}).socket("/");this.initializeSocketListeners()}.bind(this)))}, initializeSocketListeners:function(){this.log("Binding the socket listeners...");this.socket.on("connect",function(){this.onFallback();this._onConnect()}.bind(this));this.socket.on("connect_error",this._onConnectError.bind(this));this.socket.on("reconnecting",this._onReconnecting.bind(this));this.socket.on("reconnect",this._onReconnect.bind(this));this.socket.on("disconnect",this._onDisconnect.bind(this));this.socket.on("message",this._onMessage.bind(this))},initializeTokenRefresh:function(){if(null!= this.token&&""!=this.token&&"function"==typeof this.fetchToken){var b=this.getTokenExpiry(decodeURIComponent(this.token));if(Infinity!=b){var e=this,b=b-(new Date).getTime()-this.tokenExpiryBufferPeriod;0>=b&&(b+=this.tokenExpiryBufferPeriod);setTimeout(function(){1!=e.clientClose&&e.fetchToken(function(b){null!=b&&""!=b&&(e.token=encodeURIComponent(b),e.socket&&e.socket.io&&e.socket.io.uri&&(e.socket.io.uri=e.generateSioUrl()),e.connected&&e.grant(b));setTimeout(function(){e.initializeTokenRefresh()}, e.tokenFetchTimeout)})},b)}}},getTokenExpiry:function(b){var e=JSON.parse(atob(b.split(".")[1]));b=Infinity;isNaN(e.exp)||(b=Math.min(b,1E3*parseInt(e.exp)));for(var e=e.credentials,f=0;fthis.status||304===this.status){var a=!0;if("check"==b){a=!1; try{a=JSON.parse(this.responseText).exist}catch(c){}}e(a)}else e(!1)};f.onerror=function(){h.log(f.statusText)};f.withCredentials=!0;f.send()},subscribe:function(b,e,f){f=f||{};"undefined"===typeof f.resubscriptionAttempts&&(f.resubscriptionAttempts=0);"function"!=typeof e&&(e=null);var h=this;this.log("Trying to subscribe to channel: ",b);if(this._connectionCheck(e))if(!f.forceResubscribe&&this._isChannelSubscribed(b))this.log("Already subscribed to channel: "+b),f&&(h.channels[b].options=f),f.messageHandler&& (h.channels[b].onMessage=f.messageHandler),e&&e(null,"Already subscribed to channel: ");else{delete f.forceResubscribe;var d=!1,a=setTimeout(function(){d||(d=!0,f.resubscriptionAttempts++,f.resubscriptionAttempts==h.resubscriptionMaxAttempts?(f.resubscriptionAttempts=0,window.clearTimeout(a),h.log("resubscription timed out, could not subscribe to channel",b),e&&e("subscription failed","tried subscribing"+h.resubscriptionMaxAttempts+" times: resubscription failed"),e=null):h.subscribe(b,e,f))},h.resubscriptionTimeout); this._sendMessage({event:"subscribe",channel:b,serviceId:this.serviceId,token:f.token,ti:f.traceId,hookId:f.hookId,opt:f.opt?f.opt:0},function(c,n){if(null==c){f.resubscriptionAttempts=0;if(d)return;d=!0;window.clearTimeout(a);h.channels[b]={connected:!0,options:f,onMessage:f.messageHandler};h._fireCallback(e,c,n)}c&&h.log("Could not subscribe to channel: ",c,b)})}},__getSocketOpt:function(b){return b=(b?b:0)|64},subscribeSocket:function(b,e,f){f.opt=this.__getSocketOpt(f.opt);this.subscribe(b,e, f)},unsubscribe:function(b,e,f){f=f||{};"function"!=typeof e&&(e=null);var h=this;this._connectionCheck(e)&&this._isChannelSubscribed(b,e)&&this._sendMessage({event:"unsubscribe",channel:b,serviceId:this.serviceId,ti:f.traceId,hookId:f.hookId,opt:f.opt?f.opt:0},function(d,a){d?h.log("Could not unsubscribe from channel: ",d,b):delete h.channels[b];e&&e(d,a)})},unsubscribeSocket:function(b,e,f){f=f||{};f.opt=this.__getSocketOpt(f.opt);this.unsubscribe(b,e,f)},unsubscribeAll:function(b,e){e=e||{};"function"!= typeof b&&(b=null);this._connectionCheck&&(this._sendMessage({event:"unsubscribeall",serviceId:this.serviceId,ti:e.traceId}),this.channels={},b&&b(null,this.channels))},ping:function(b){b=b||{};this.isHealthCheckEnabled&&this._connectionCheck&&this._sendMessage({event:"ping",userId:this.userId,serviceId:this.serviceId,ti:b.traceId})},channelWho:function(b,e,f){f=f||{};"function"!=typeof e&&(e=null);var h=this;this._connectionCheck(e)&&this._sendMessage({event:"channel_who",channel:b,serviceId:this.serviceId, ti:f.traceId,msg:JSON.stringify(f)},function(d,a){d&&h.log("Could not fetch channel_who: ",d,b);e&&e(d,a)})},userWhere:function(b,e){e=e||{};"function"!=typeof b&&(b=null);var f=this;this._connectionCheck(b)&&this._sendMessage({event:"user_where",serviceId:this.serviceId,ti:e.traceId},function(e,d){e&&f.log("Could not fetch user_where: ",e);b&&b(e,d)})},userThere:function(b,e){e=e||{};"function"!=typeof b&&(b=null);var f=this;this._connectionCheck(b)&&this._sendMessage({accId:this.accId,event:"user_there", userid:this.userId,serviceId:this.serviceId,ti:e.traceId},function(e,d){e&&f.log("Could not fetch user_there: ",e);b&&b(e,d)})},grant:function(b,e,f){f=f||{};"function"!=typeof e&&(e=null);var h=this;this._connectionCheck(e)&&this._sendMessage({event:"grant",msg:b,serviceId:this.serviceId,ti:f.traceId},function(b,a){b&&h.log("Could not grant access: ",b);e&&e(b,a)})},revoke:function(b,e,f){f=f||{};"function"!=typeof e&&(e=null);var h=this;this._connectionCheck(e)&&this._sendMessage({event:"revoke", msg:b,serviceId:this.serviceId,ti:f.traceId},function(b,a){b&&h.log("Could not revoke access: ",b);e&&e(b,a)})},save:function(b,e,f,h){h=h||{};"function"!=typeof f&&(f=null);var d=this;this._connectionCheck()&&this._isChannelSubscribed(b)&&this._sendMessage({event:"save",channel:b,serviceId:this.serviceId,ti:h.traceId,msg:JSON.stringify(e)},function(a,b){a?d.log("Could not fetch user_where: ",a):d.log("Saved data.",e);f&&f(a,b)})},fetch:function(b,e,f){f=f||{};"function"!=typeof e&&(e=null);var h= this;this._connectionCheck(e)&&this._isChannelSubscribed(b,e)&&this._sendMessage({event:"fetch",channel:b,userId:this.userId,serviceId:this.serviceId,ti:f.traceId},function(b,a){b&&h.log("Could not fetch user data: ",b);e&&e(b,a)})},publish:function(b,e,f,h){h=h||{};"function"!=typeof f&&(f=null);this._connectionCheck&&this._isChannelSubscribed(b,f)&&(b={event:"send",channel:b,msg:JSON.stringify(e),userid:h.userId,opt:h.opt?h.opt:h.persist?1:0,serviceId:this.serviceId,ti:h.traceId},h.msgType&&(b.msgType= h.msgType),this._sendMessage(b,f),this.log("Message sent",e))},persist:function(b,e,f,h){var d=this;h=h||{};"function"!=typeof f&&(f=null);b=this.origin+"/v1/message/send/"+this.accId+"/"+b+"?token\x3d"+this.token;h=h.persist?1:0;h='{"msg":'+JSON.stringify(e)+',"opt":"'+h+'","senderId":"'+this.userId+'"}';var a=function(a,b){d.log("rest message send callback","Error: ",a," | Message: ",b);null!=f&&(f(a,b),f=null)},c=new XMLHttpRequest;c.onreadystatechange=function(){this.readyState==this.DONE&&(200<= this.status&&300>this.status?(d.log("message sent",e),a(null,c.responseText)):a("Server error, code: "+this.status,c.responseText))};c.ontimeout=function(){a("Timeout",null)};c.onerror=function(){a("Something went wrong",null)};c.timeout=2E4;c.open("POST",b,!0);c.setRequestHeader("Content-Type","application/json");c.send(h)},sendAck:function(b,e,f,h,d){d=d||{};"function"!=typeof h&&(h=null);this._connectionCheck(h)&&this._isChannelSubscribed(b,h)&&(this._sendMessage({accId:this.accId,event:"client_ack", channel:b,msg:e,userId:f,serviceId:this.serviceId,ti:d.traceId,msgPayload:JSON.stringify(d.message)}),h&&h(null,"Sent ack message"))},log:function(){if(!0===this.debug&&this.logger){var b=Array.prototype.slice.call(arguments),e="";b.unshift("RTS:");b.unshift((new Date).toLocaleTimeString());b.forEach(function(b){e=b instanceof Error?e+(b.toString()+" "):"object"===typeof b?e+(JSON.stringify(b)+" "):e+(b+" ")});this.logger.log(e)}},close:function(b,e){this.clientClose=!0;e=e||{};this._connectionCheck(b)&& this._sendMessage({event:"close",serviceId:this.serviceId,hookId:e.hookId,ti:e.traceId});"function"!=typeof b&&(b=null);if(this.websocket){try{this.websocket.close()}catch(f){this.log(f)}var h=this;setTimeout(function(){h._onDisconnect("forced close")},0)}else this.disconnect();window.Worker&&this.ping_worker&&this.ping_worker.postMessage({type:"stop_interval",intervalReference:null});b&&b(null,"Connection Closed")},webhookSend:function(b,e,f,h,d){var a=null;d=d||{};"function"!=typeof h&&(h=null); if(e.length>this.webhookSendCustomDataLimit)return a="Data limit exceeded. Failed to send webhook",null!=h?h(a,null):a;if(!f||0===f.length)return a="Hook id missing in webhook send",null!=h?h(a,null):a;this._sendMessage({data:e,hookId:f,event:"webhooksend",channel:b,token:d.token,traceId:d.traceId,serviceId:this.serviceId,opt:d.opt?d.opt:0},function(a,b){a&&this.log("Could not send webhook: ",a);return null!=h?h(a,b):a})},disconnect:function(){this.socket&&this.socket.io.disconnect()},reconnect:function(b){this.socket.io.connect()}, _fireCallback:function(b){if("function"==typeof b){var e=Array.prototype.slice.call(arguments,1,arguments.length);setTimeout(function(){b.apply(null,e)},0)}},_connectionCheck:function(b){if(this.websocket)return 1!=this.websocket.readyState?(this.log("Not performing action as client is not connected."),b&&b("Not performing action as client is not connected."),!1):!0;!1===this.connected&&(this.log("Not performing action as client is not connected."),b&&b("Not performing action as client is not connected.")); return this.connected},_sendMessage:function(b,e){var f;e&&(f=this._generateUid(),this.callbacks[f]=e,b.clientId=f,this._startTimeoutErrorTimer(f));b.accId=this.accId;this.websocket?(9!=b&&this.log("Sending data",b),this.websocket.send(JSON.stringify(b))):this.socket.emit("message",JSON.stringify(b))},_startTimeoutErrorTimer:function(b){var e=this;e.timeouts[b]=setTimeout(function(){if(e.callbacks[b])e.callbacks[b]("Timeout Error");delete e.timeouts[b]},this.timeoutPeriod)},_generateUid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(b){var e=16*Math.random()|0;return("x"==b?e:e&3|8).toString(16)})},_isNumberAndGreaterThanZero:function(b){return"number"==typeof b&&0=this._reconnectionAttempts)p("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var b=this.backoff.duration();p("will wait %dms before reconnect attempt",b);this.reconnecting=!0;var c=setTimeout(function(){a.skipReconnect||(p("attempting reconnect"),a.emitAll("reconnect_attempt",a.backoff.attempts),a.emitAll("reconnecting",a.backoff.attempts),a.skipReconnect||a.open(function(b){b?(p("reconnect attempt error"),a.reconnecting= !1,a.reconnect(),a.emitAll("reconnect_error",b.data)):(p("reconnect success"),a.onreconnect())}))},b);this.subs.push({destroy:function(){clearTimeout(c)}})}};d.prototype.onreconnect=function(){var a=this.backoff.attempts;this.reconnecting=!1;this.backoff.reset();this.updateSocketIds();this.emitAll("reconnect",a)}},{"./on":4,"./socket":5,"./url":6,backo2:7,"component-bind":8,"component-emitter":9,debug:10,"engine.io-client":11,indexof:40,"object-component":41,"socket.io-parser":44}],4:[function(b, f,h){f.exports=function(b,a,c){b.on(a,c);return{destroy:function(){b.removeListener(a,c)}}}},{}],5:[function(b,f,h){function d(a,b){this.io=a;this.nsp=b;this.json=this;this.ids=0;this.acks={};this.io.autoConnect&&this.open();this.receiveBuffer=[];this.sendBuffer=[];this.connected=!1;this.disconnected=!0}var a=b("socket.io-parser");h=b("component-emitter");var c=b("to-array"),n=b("./on"),l=b("component-bind"),v=b("debug")("socket.io-client:socket"),p=b("has-binary");f.exports=d;var g={connect:1,connect_error:1, connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1},q=h.prototype.emit;h(d.prototype);d.prototype.subEvents=function(){if(!this.subs){var a=this.io;this.subs=[n(a,"open",l(this,"onopen")),n(a,"packet",l(this,"onpacket")),n(a,"close",l(this,"onclose"))]}};d.prototype.open=d.prototype.connect=function(){if(this.connected)return this;this.subEvents();this.io.open();if("open"==this.io.readyState)this.onopen();return this};d.prototype.send= function(){var a=c(arguments);a.unshift("message");this.emit.apply(this,a);return this};d.prototype.emit=function(b){if(g.hasOwnProperty(b))return q.apply(this,arguments),this;var d=c(arguments),e=a.EVENT;p(d)&&(e=a.BINARY_EVENT);e={type:e,data:d};"function"==typeof d[d.length-1]&&(v("emitting packet with ack id %d",this.ids),this.acks[this.ids]=d.pop(),e.id=this.ids++);this.connected?this.packet(e):this.sendBuffer.push(e);return this};d.prototype.packet=function(a){a.nsp=this.nsp;this.io.packet(a)}; d.prototype.onopen=function(){v("transport is open - connecting");"/"!=this.nsp&&this.packet({type:a.CONNECT})};d.prototype.onclose=function(a){v("close (%s)",a);this.connected=!1;this.disconnected=!0;delete this.id;this.emit("disconnect",a)};d.prototype.onpacket=function(b){if(b.nsp==this.nsp)switch(b.type){case a.CONNECT:this.onconnect();break;case a.EVENT:this.onevent(b);break;case a.BINARY_EVENT:this.onevent(b);break;case a.ACK:this.onack(b);break;case a.BINARY_ACK:this.onack(b);break;case a.DISCONNECT:this.ondisconnect(); break;case a.ERROR:this.emit("error",b.data)}};d.prototype.onevent=function(a){var b=a.data||[];v("emitting event %j",b);null!=a.id&&(v("attaching ack callback to event"),b.push(this.ack(a.id)));this.connected?q.apply(this,b):this.receiveBuffer.push(b)};d.prototype.ack=function(b){var d=this,e=!1;return function(){if(!e){e=!0;var g=c(arguments);v("sending ack %j",g);var n=p(g)?a.BINARY_ACK:a.ACK;d.packet({type:n,id:b,data:g})}}};d.prototype.onack=function(a){v("calling ack %s with %j",a.id,a.data); this.acks[a.id].apply(this,a.data);delete this.acks[a.id]};d.prototype.onconnect=function(){this.connected=!0;this.disconnected=!1;this.emit("connect");this.emitBuffered()};d.prototype.emitBuffered=function(){var a;for(a=0;a=a.jitter?a.jitter:0;this.attempts=0}f.exports=d;d.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter)var b=Math.random(),d=Math.floor(b* this.jitter*a),a=0==(Math.floor(10*b)&1)?a-d:a+d;return Math.min(a,this.max)|0};d.prototype.reset=function(){this.attempts=0};d.prototype.setMin=function(a){this.ms=a};d.prototype.setMax=function(a){this.max=a};d.prototype.setJitter=function(a){this.jitter=a}},{}],8:[function(b,f,h){var d=[].slice;f.exports=function(a,b){"string"==typeof b&&(b=a[b]);if("function"!=typeof b)throw Error("bind() requires a function");var e=d.call(arguments,2);return function(){return b.apply(a,e.concat(d.call(arguments)))}}}, {}],9:[function(b,f,h){function d(a){if(a){for(var b in d.prototype)a[b]=d.prototype[b];return a}}f.exports=d;d.prototype.on=d.prototype.addEventListener=function(a,b){this._callbacks=this._callbacks||{};(this._callbacks[a]=this._callbacks[a]||[]).push(b);return this};d.prototype.once=function(a,b){function d(){e.off(a,d);b.apply(this,arguments)}var e=this;this._callbacks=this._callbacks||{};d.fn=b;this.on(a,d);return this};d.prototype.off=d.prototype.removeListener=d.prototype.removeAllListeners= d.prototype.removeEventListener=function(a,b){this._callbacks=this._callbacks||{};if(0==arguments.length)return this._callbacks={},this;var d=this._callbacks[a];if(!d)return this;if(1==arguments.length)return delete this._callbacks[a],this;for(var e,f=0;f=l.count)throw Error("after called too many times");--l.count;a?(f=!0,b(a),b= e):0!==l.count||f||b(null,d)}var f=!1;e=e||d;l.count=a;return 0===a?b():l}},{}],28:[function(b,f,h){f.exports=function(b,a,c){var e=b.byteLength;a=a||0;c=c||e;if(b.slice)return b.slice(a,c);0>a&&(a+=e);0>c&&(c+=e);c>e&&(c=e);if(a>=e||a>=c||0===e)return new ArrayBuffer(0);b=new Uint8Array(b);for(var e=new Uint8Array(c-a),l=0;a>2],l+=b[(a[c]& 3)<<4|a[c+1]>>4],l+=b[(a[c+1]&15)<<2|a[c+2]>>6],l+=b[a[c+2]&63];2===e%3?l=l.substring(0,l.length-1)+"\x3d":1===e%3&&(l=l.substring(0,l.length-2)+"\x3d\x3d");return l};h.decode=function(a){var c=.75*a.length,e=a.length,l=0,f,h,g,q;"\x3d"===a[a.length-1]&&(c--,"\x3d"===a[a.length-2]&&c--);for(var k=new ArrayBuffer(c),t=new Uint8Array(k),c=0;c>4,t[l++]=(h&15)<<4|g>>2,t[l++]=(g&3)<<6|q&63;return k}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")}, {}],30:[function(b,f,h){(function(b){function a(a){for(var b=0;b=e&&c=a)throw Error("Lone surrogate U+"+a.toString(16).toUpperCase()+" is not a scalar value");}function l(){if(r>=u)throw Error("Invalid byte index");var a=t[r]&255;r++;if(128==(a&192))return a&63;throw Error("Invalid continuation byte");}function v(){var a,b,c,d;if(r>u)throw Error("Invalid byte index");if(r==u)return!1;a=t[r]&255;r++;if(0==(a&128))return a;if(192==(a&224)){b=l();a=(a&31)<<6|b;if(128<=a)return a; throw Error("Invalid continuation byte");}if(224==(a&240)){b=l();c=l();a=(a&15)<<12|b<<6|c;if(2048<=a)return e(a),a;throw Error("Invalid continuation byte");}if(240==(a&248)&&(b=l(),c=l(),d=l(),a=(a&15)<<18|b<<12|c<<6|d,65536<=a&&1114111>=a))return a;throw Error("Invalid UTF-8 detected");}var p="object"==typeof h&&h,g="object"==typeof f&&f&&f.exports==p&&f,q="object"==typeof b&&b;if(q.global===q||q.window===q)a=q;var k=String.fromCharCode,t,u,r,q={version:"2.0.0",encode:function(a){a=c(a);for(var b= a.length,d=-1,g,l="";++d>6&31|192):0==(g&4294901760)?(e(g),f=k(g>>12&15|224),f+=k(g>>6&63|128)):0==(g&4292870144)&&(f=k(g>>18&7|240),f+=k(g>>12&63|128),f+=k(g>>6&63|128));g=f+=k(g&63|128)}l+=g}return l},decode:function(a){t=c(a);u=t.length;r=0;a=[];for(var b;!1!==(b=v());)a.push(b);b=a.length;for(var d=-1,e,g="";++d>>10&1023|55296),e=56320|e&1023),g+=k(e);return g}};if(p&&!p.nodeType)if(g)g.exports= q;else{a={}.hasOwnProperty;for(var w in q)a.call(q,w)&&(p[w]=q[w])}else a.utf8=q})(this)}).call(this,"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],32:[function(b,f,h){(function(b){var a=/^[\],:{}\s]*$/,c=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,e=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,l=/(?:^|:|,)(?:\s*\[)+/g,h=/^\s+/,p=/\s+$/;f.exports=function(g){if("string"!=typeof g||!g)return null;g=g.replace(h,"").replace(p,"");if(b.JSON&&JSON.parse)return JSON.parse(g); if(a.test(g.replace(c,"@").replace(e,"]").replace(l,"")))return(new Function("return "+g))()}}).call(this,"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],33:[function(b,f,h){h.encode=function(b){var a="",c;for(c in b)b.hasOwnProperty(c)&&(a.length&&(a+="\x26"),a+=encodeURIComponent(c)+"\x3d"+encodeURIComponent(b[c]));return a};h.decode=function(b){var a={};b=b.split("\x26");for(var c=0,e=b.length;cg){b+="\\u00"+E(2,g.toString(16));break}b+=e?k[c]:t?a.charAt(c):a[c]}}return b+'"'},H=function(a,b,d,k,g,h,p){var q,x,r,z,t,y,D,B,F;try{q=b[a]}catch(C){}if("object"==typeof q&&q)if(x=c.call(q),"[object Date]"!=x||e.call(q,"toJSON"))"function"==typeof q.toJSON&&("[object Number]"!=x&&"[object String]"!=x&&"[object Array]"!=x||e.call(q,"toJSON"))&&(q=q.toJSON(a));else if(q>-1/0&&q<1/0){if(w){z=u(q/864E5);for(x=u(z/365.2425)+1970-1;w(x+1,0)<=z;x++);for(r=u((z-w(x,0))/30.42);w(x,r+1)<=z;r++); z=1+z-w(x,r);t=(q%864E5+864E5)%864E5;y=u(t/36E5)%24;D=u(t/6E4)%60;B=u(t/1E3)%60;t%=1E3}else x=q.getUTCFullYear(),r=q.getUTCMonth(),z=q.getUTCDate(),y=q.getUTCHours(),D=q.getUTCMinutes(),B=q.getUTCSeconds(),t=q.getUTCMilliseconds();q=(0>=x||1E4<=x?(0>x?"-":"+")+E(6,0>x?-x:x):E(4,x))+"-"+E(2,r+1)+"-"+E(2,z)+"T"+E(2,y)+":"+E(2,D)+":"+E(2,B)+"."+E(3,t)+"Z"}else q=null;d&&(q=d.call(b,a,q));if(null===q)return"null";x=c.call(q);if("[object Boolean]"==x)return""+q;if("[object Number]"==x)return q>-1/0&&q< 1/0?""+q:"null";if("[object String]"==x)return G(""+q);if("object"==typeof q){for(a=p.length;a--;)if(p[a]===q)throw TypeError();p.push(q);F=[];b=h;h+=g;if("[object Array]"==x){r=0;for(a=q.length;r=d.length?d:d.slice(0,10));return H("",(h={},h[""]=a,h),k,g,e,"",[])}}if(!a("json-parse")){var F=String.fromCharCode, C={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},B,L,O=function(){B=L=null;throw SyntaxError();},M=function(){for(var a=L,b=a.length,c,d,e,k,g;Bg)O();else if(92==g)switch(g=a.charCodeAt(++B),g){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:c+=C[g];B++; break;case 117:d=++B;for(e=B+4;B=g||97<=g&&102>=g||65<=g&&70>=g||O();c+=F("0x"+a.slice(d,B));break;default:O()}else{if(34==g)break;g=a.charCodeAt(B);for(d=B;32<=g&&92!=g&&34!=g;)g=a.charCodeAt(++B);c+=a.slice(d,B)}if(34==a.charCodeAt(B))return B++,c;O();default:d=B;45==g&&(k=!0,g=a.charCodeAt(++B));if(48<=g&&57>=g){for(48==g&&(g=a.charCodeAt(B+1),48<=g&&57>=g)&&O();B=g);B++);if(46==a.charCodeAt(B)){for(e=++B;e=g);e++);e==B&&O();B=e}g=a.charCodeAt(B);if(101==g||69==g){g=a.charCodeAt(++B);43!=g&&45!=g||B++;for(e=B;e=g);e++);e==B&&O();B=e}return+a.slice(d,B)}k&&O();if("true"==a.slice(B,B+4))return B+=4,!0;if("false"==a.slice(B,B+5))return B+=5,!1;if("null"==a.slice(B,B+4))return B+=4,null;O()}return"$"},T=function(a){var b,c;"$"==a&&O();if("string"==typeof a){if("@"==(t?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(b=[];;c||(c=!0)){a=M();if("]"==a)break;c&& (","==a?(a=M(),"]"==a&&O()):O());","==a&&O();b.push(T(a))}return b}if("{"==a){for(b={};;c||(c=!0)){a=M();if("}"==a)break;c&&(","==a?(a=M(),"}"==a&&O()):O());","!=a&&"string"==typeof a&&"@"==(t?a.charAt(0):a[0])&&":"==M()||O();b[a.slice(1)]=T(M())}return b}O()}return a},D=function(a,b,c){c=z(a,b,c);c===f?delete a[b]:a[b]=c},z=function(a,b,d){var e=a[b],g;if("object"==typeof e&&e)if("[object Array]"==c.call(e))for(g=e.length;g--;)D(e,g,d);else l(e,function(a){D(e,a,d)});return d.call(a,b,e)};g.parse= function(a,b){var d,e;B=0;L=""+a;d=T(M());"$"!=M()&&O();B=L=null;return b&&"[object Function]"==c.call(b)?z((e={},e[""]=d,e),"",b):d}}}})(this)},{}],48:[function(b,f,h){f.exports=function(b,a){for(var c=[],e=(a=a||0)||0;e=b)return 0;d+=b}return d/f}:function(a){for(var b=0,c=0;bb?1:ab?1:b>a?-1:0},e=function(a,b){var d,e,f,h;d=1;for(e=arguments.length;d/g,"\x26gt;").replace(/"/g,"\x26quot;")},p=function(a){return(a+"").replace(/\$/g,"$$$$")},g={before:function(a,b,c){var d=a[b];a[b]=function(){c.apply(a,arguments);return d.apply(a,arguments)}},after:function(a,b,c){var d=a[b]; a[b]=function(){var b=d.apply(a,arguments);c.apply(a,arguments);return b}}},q=function(a){var b=!1;return function(){b||(b=!0,a.apply(this,arguments))}},k=function(a,b){var c;return function(){var d=this,e=arguments;window.clearTimeout(c);c=window.setTimeout(function(){a.apply(d,e)},b)}},t=function(a,b,c){var d,e=a.trigger,g={};a.trigger=function(){var c=arguments[0];if(-1!==b.indexOf(c))g[c]=arguments;else return e.apply(a,arguments)};c.apply(a,[]);a.trigger=e;for(d in g)g.hasOwnProperty(d)&&e.apply(a, g[d])},u=function(a,b,c,d){a.on(b,c,function(b){for(var c=b.target;c&&c.parentNode!==a[0];)c=c.parentNode;b.currentTarget=c;return d.apply(this,[b])})},r=function(a){var b={};if("selectionStart"in a)b.start=a.selectionStart,b.length=a.selectionEnd-b.start;else if(document.selection){a.focus();var c=document.selection.createRange(),d=document.selection.createRange().text.length;c.moveStart("character",-a.value.length);b.start=c.text.length-d;b.length=d}return b},w=function(a,c){var d=null,e=function(e, g){var k,l,f;e=e||window.event||{};g=g||{};if(!e.metaKey&&!e.altKey&&(g.force||!1!==c.data("grow"))){k=c.val();e.type&&"keydown"===e.type.toLowerCase()&&(l=e.keyCode,f=97<=l&&122>=l||65<=l&&90>=l||48<=l&&57>=l||32===l,46===l||8===l?(f=r(c[0]),f.length?k=k.substring(0,f.start)+k.substring(f.start+f.length):8===l&&f.start?k=k.substring(0,f.start-1)+k.substring(f.start+1):46===l&&"undefined"!==typeof f.start&&(k=k.substring(0,f.start)+k.substring(f.start+1))):f&&(l=e.shiftKey,f=String.fromCharCode(e.keyCode), f=l?f.toUpperCase():f.toLowerCase(),k+=f));l=c.attr("placeholder");!k&&l&&(k=l);if("single"==a.settings.mode){if(k){k=b("\x3ctest\x3e").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(k).appendTo("body");l=["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"];var n,h={};if(l)for(f=0,n=l.length;fd&&(g=e,e=d,d=g);for(;e<=d;e++)g=this.$control[0].childNodes[e],-1===this.$activeItems.indexOf(g)&& (b(g).addClass("active"),this.$activeItems.push(g));c.preventDefault()}else"mousedown"===d&&this.isCtrlDown||"keydown"===d&&this.isShiftDown?a.hasClass("active")?(d=this.$activeItems.indexOf(a[0]),this.$activeItems.splice(d,1),a.removeClass("active")):this.$activeItems.push(a.addClass("active")[0]):(b(this.$activeItems).removeClass("active"),this.$activeItems=[a.addClass("active")[0]]);"multi"!==this.settings.mode&&this.hideInput();this.isFocused||this.focus()}else b(this.$activeItems).removeClass("active"), this.$activeItems=[],this.isFocused&&this.showInput()},setActiveOption:function(a,c,d){var e,g,k;this.$activeOption&&(this.$activeOption.removeClass("active"),this.$control_input.attr("aria-activedescendant",""));this.$activeOption=null;a=b(a);a.length&&(this.$activeOption=a.addClass("active"),this.$control_input.attr("aria-activedescendant",this.$activeOption.attr("id")),c||"undefined"===typeof c)&&(a=this.$dropdown_content.height(),e=this.$activeOption.outerHeight(!0),c=this.$dropdown_content.scrollTop()|| 0,g=this.$activeOption.offset().top-this.$dropdown_content.offset().top+c,k=g-a+e,g+e>a+c?this.$dropdown_content.stop().animate({scrollTop:k},d?this.settings.scrollDuration:0):g=this.settings.maxItems},updateOriginalInput:function(a){var b,c,d,e;a=a||{};if(1===this.tagType){d=[];b=0;for(c=this.items.length;bthis.$control[0].offsetWidth-90||b(this.$control).hasClass("generic-caret")?(b(".chat-container .selectize-input div").remove(),a="\x3cdiv class\x3d'item' data-value\x3d''\x3e\x3cdiv class\x3d'caret-text'\x3e"+this.items.length+" "+this.settings.selected_caret_text+"\x3c/div\x3e\x3ca href\x3d'javascript:void(0)' class\x3d'remove remove-all' tabindex\x3d'-1' title\x3d'Remove'\x3e\x26times;\x3c/a\x3e\x3c/div\x3e", b(".chat-container .selectize-input input").before(b(a)),b(this.$control).addClass("generic-caret")):b(this.$control).removeClass("generic-caret");this.caretPos-=1}this.setCaret(c+1)},updateCaretSet:function(){b(".chat-container .selectize-input div").remove();for(var a=0;athis.$control[0].offsetWidth-90?(b(".chat-container .selectize-input div").remove(),c="\x3cdiv class\x3d'item' data-value\x3d''\x3e"+this.items.length+" "+this.settings.selected_caret_text+" \x3ca href\x3d'javascript:void(0)' class\x3d'remove remove-all' tabindex\x3d'-1' title\x3d'Remove'\x3e\x26times;\x3c/a\x3e\x3c/div\x3e",b(".chat-container .selectize-input input").before(b(c)),b(this.$control).addClass("generic-caret")):b(this.$control).removeClass("generic-caret"); this.caretPos-=1},deleteSelection:function(a){var c,d,e,g,k,l;c=a&&8===a.keyCode?-1:1;d=r(this.$control_input[0]);this.$activeOption&&!this.settings.hideSelected&&(k=this.getAdjacentOption(this.$activeOption,-1).attr("data-value"));e=[];if(this.$activeItems.length){l=this.$control.children(".active:"+(0c&&0===d.start&&0===d.length?e.push(this.items[this.caretPos-1]):0a?0===d.start&&0===d.length:d.start===c)&&!c&&this.advanceCaret(a,b)):(d=this.$control.children(".active:"+c),d.length&& (d=this.$control.children(":not(input)").index(d),this.setActiveItem(null),this.setCaret(0]+>\s*)$/);return b.substring(0,c)+d+b.substring(c)}}e.apply(this,arguments);this.$control.on("click","."+a.className,function(a){a.preventDefault(); c.isLocked||(a=b(a.currentTarget).parent(),c.setActiveItem(a),c.deleteSelection()&&c.setCaret(c.items.length))});this.$control.on("click",".remove-all",function(a){c.removeAllItem()})}}()}});y.define("restore_on_backspace",function(a){var b=this;a.text=a.text||function(a){return a[this.settings.labelField]};this.onKeyDown=function(){var c=b.onKeyDown;return function(b){var d;if(8===b.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(d=this.caretPos-1,0<=d&&db.overflow&&!b.empty&&!b.invalidMonth&&!b.invalidWeekday&&!b.nullInput&&!b.invalidFormat&&!b.userInvalidated&&(!b.meridiem||b.meridiem&&c);if(a._strict&&(c=c&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour),null!=Object.isFrozen&&Object.isFrozen(a))return c; a._isValid=c}return a._isValid}function p(a){var b=n(NaN);return null!=a?c(l(b),a):l(b).userInvalidated=!0,b}function g(a){return void 0===a}function q(a,b){var c,d,e;if(g(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),g(b._i)||(a._i=b._i),g(b._f)||(a._f=b._f),g(b._l)||(a._l=b._l),g(b._strict)||(a._strict=b._strict),g(b._tzm)||(a._tzm=b._tzm),g(b._isUTC)||(a._isUTC=b._isUTC),g(b._offset)||(a._offset=b._offset),g(b._pf)||(a._pf=l(b)),g(b._locale)||(a._locale=b._locale),0a?Math.ceil(a)||0:Math.floor(a)}function r(a){a=+a;var b=0;return 0!==a&&isFinite(a)&&(b=u(a)),b}function w(a,b,c){var d,e=Math.min(a.length,b.length),g=Math.abs(a.length-b.length),k=0;for(d=0;db;b++)c= n([2E3,b]),d.push(this.monthsShort(c,"")),e.push(this.months(c,"")),g.push(this.months(c,"")),g.push(this.monthsShort(c,""));d.sort(a);e.sort(a);g.sort(a);for(b=0;12>b;b++)d[b]=ia(d[b]),e[b]=ia(e[b]);for(b=0;24>b;b++)g[b]=ia(g[b]);this._monthsShortRegex=this._monthsRegex=new RegExp("^("+g.join("|")+")","i");this._monthsStrictRegex=new RegExp("^("+e.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")","i")}function V(a){return 0===a%4&&0!==a%100||0===a%400}function K(a,b, c,d,e,g,k){b=new Date(a,b,c,d,e,g,k);return 100>a&&0<=a&&isFinite(b.getFullYear())&&b.setFullYear(a),b}function ja(a){var b=new Date(Date.UTC.apply(null,arguments));return 100>a&&0<=a&&isFinite(b.getUTCFullYear())&&b.setUTCFullYear(a),b}function na(a,b,c){c=7+b-c;return-((7+ja(a,0,c).getUTCDay()-b)%7)+c-1}function da(a,b,c,d,e){var g,k;c=(7+c-d)%7;d=na(a,d,e);b=1+7*(b-1)+c+d;return 0>=b?(g=a-1,k=(V(g)?366:365)+b):b>(V(a)?366:365)?(g=a+1,k=b-(V(a)?366:365)):(g=a,k=b),{year:g,dayOfYear:k}}function qa(a, b,c){var d,e,g=na(a.year(),b,c),g=Math.floor((a.dayOfYear()-g-1)/7)+1;return 1>g?(e=a.year()-1,d=g+oa(e,b,c)):g>oa(a.year(),b,c)?(d=g-oa(a.year(),b,c),e=a.year()+1):(e=a.year(),d=g),{week:d,year:e}}function oa(a,b,c){var d=na(a,b,c);b=na(a+1,b,c);return((V(a)?366:365)-d+b)/7}function Ua(){function a(b,c){return c.length-b.length}var b,c,d,e,g=[],k=[],l=[],f=[];for(b=0;7>b;b++)c=n([2E3,1]).day(b),d=this.weekdaysMin(c,""),e=this.weekdaysShort(c,""),c=this.weekdays(c,""),g.push(d),k.push(e),l.push(c), f.push(d),f.push(e),f.push(c);g.sort(a);k.sort(a);l.sort(a);f.sort(a);for(b=0;7>b;b++)k[b]=ia(k[b]),l[b]=ia(l[b]),f[b]=ia(f[b]);this._weekdaysMinRegex=this._weekdaysShortRegex=this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i");this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+k.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}function Oa(){return this.hours()%12||12}function Xa(a,b){z(a,0,0,function(){return this.localeData().meridiem(this.hours(), this.minutes(),b)})}function ka(a,b){return b._meridiemParse}function Ta(a){return a?a.toLowerCase().replace("_","-"):a}function za(a){var b=null;if(!ra[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=Ob._abbr,require("./locale/"+a),Da(b)}catch(c){}return ra[a]}function Da(a,b){var c;return a&&(c=g(b)?X(a):wa(a,b),c&&(Ob=c)),Ob._abbr}function wa(a,b){if(null!==b){var c=Ib;if(b.abbr=a,null!=ra[a])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."), c=ra[a]._config;else if(null!=b.parentLocale){if(null==ra[b.parentLocale])return nb[b.parentLocale]||(nb[b.parentLocale]=[]),nb[b.parentLocale].push({name:a,config:b}),null;c=ra[b.parentLocale]._config}return ra[a]=new F(H(c,b)),nb[a]&&nb[a].forEach(function(a){wa(a.name,a.config)}),Da(a),ra[a]}return delete ra[a],null}function X(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return Ob;if(!m(a)){if(b=za(a))return b;a=[a]}a:{for(var c,d,e,g=0;g=b&&w(e,c,!0)>=b-1)break;b--}g++}a=null}return a}function aa(a){var b,c=a._a;return c&&-2===l(a).overflow&&(b=0>c[Wa]||11c[Qa]||c[Qa]>fa(c[Ga],c[Wa])?Qa:0>c[va]||24c[Ra]||59c[cb]||59c[mb]||999Qa)&&(b=Qa),l(a)._overflowWeeks&&-1===b&&(b=ic),l(a)._overflowWeekday&& -1===b&&(b=jc),l(a).overflow=b),a}function Ja(a){var b,c,d,e,g,k;b=a._i;var f=kc.exec(b)||zb.exec(b);if(f){l(a).iso=!0;b=0;for(c=Ab.length;bh||7h||6k.e||6n||n>oa(f,p,q)?l(a)._overflowWeeks=!0:null!=m?l(a)._overflowWeekday=!0:(r=da(f,n,h,p,q),a._a[Ga]=r.year,a._dayOfYear=r.dayOfYear)}a._dayOfYear&&(e=Sa(a._a[Ga],d[Ga]),a._dayOfYear>(V(e)?366:365)&&(l(a)._overflowDayOfYear=!0),c=ja(e,0,a._dayOfYear),a._a[Wa]= c.getUTCMonth(),a._a[Qa]=c.getUTCDate());for(c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=d[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];24===a._a[va]&&0===a._a[Ra]&&0===a._a[cb]&&0===a._a[mb]&&(a._nextDay=!0,a._a[va]=0);a._d=(a._useUTC?ja:K).apply(null,g);null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm);a._nextDay&&(a._a[va]=24)}}function ua(c){if(c._f===b.ISO_8601)return void Ja(c);c._a=[];l(c).empty=!0;var d,e,g,k,f,n=""+c._i,h=n.length,A=0;g=U(c._f,c._locale).match(Sb)|| [];for(d=0;d=c._a[va]&&!0===l(c).bigHour&&0f&&(f+=12),q||12!==f||(f=0),f):f;d[g]=n;s(c);aa(c)}function Ka(a){if(!a._d){var b=L(a._i);a._a=d([b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],function(a){return a&&parseInt(a,10)});s(a)}}function Va(a){var b=a._i,d=a._f;a._locale=a._locale||X(a._l);if(null===b||void 0===d&&""===b)a=p({nullInput:!0});else if("string"==typeof b&&(a._i=b= a._locale.preparse(b)),t(b))a=new k(aa(b));else{if(h(b))a._d=b;else if(m(d)){var e,g,f;if(0===a._f.length)l(a).invalidFormat=!0,a._d=new Date(NaN);else{for(b=0;ba? -1*Math.round(-1*a):Math.round(a)}function La(a,b){z(a,0,0,function(){var a=this.utcOffset(),c="+";return 0>a&&(a=-a,c="-"),c+D(~~(a/60),2)+b+D(~~a%60,2)})}function ab(a,b){var c=(b||"").match(a);if(null===c)return null;var c=((c[c.length-1]||[])+"").match(dc)||["-",0,0],d=+(60*c[1])+r(c[2]);return 0===d?0:"+"===c[0]?d:-d}function Ea(a,c){var d,e;return c._isUTC?(d=c.clone(),e=(t(a)||h(a)?a.valueOf():A(a).valueOf())-d.valueOf(),d._d.setTime(d._d.valueOf()+e),b.updateOffset(d,!1),d):A(a).local()}function Fa(a){return 15* -Math.round(a._d.getTimezoneOffset()/15)}function Cb(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Ca(b,c){var d,e,g,k=b;g=null;ha(b)?k={ms:b._milliseconds,d:b._days,M:b._months}:f(b)?(k={},c?k[c]=b:k.milliseconds=b):(g=rc.exec(b))?(d="-"===g[1]?-1:1,k={y:0,d:r(g[Qa])*d,h:r(g[va])*d,m:r(g[Ra])*d,s:r(g[cb])*d,ms:r(ta(1E3*g[mb]))*d}):(g=sc.exec(b))?(d="-"===g[1]?-1:1,k={y:W(g[2],d),M:W(g[3],d),w:W(g[4],d),d:W(g[5],d),h:W(g[6],d),m:W(g[7],d),s:W(g[8],d)}):null==k?k={}:"object"==typeof k&& ("from"in k||"to"in k)&&(g=A(k.from),k=A(k.to),g=g.isValid()&&k.isValid()?(k=Ea(k,g),g.isBefore(k)?d=ya(g,k):(d=ya(k,g),d.milliseconds=-d.milliseconds,d.months=-d.months),d):{milliseconds:0,months:0},k={},k.ms=g.milliseconds,k.M=g.months);return e=new $a(k),ha(b)&&a(b,"_locale")&&(e._locale=b._locale),e}function W(a,b){var c=a&&parseFloat(a.replace(",","."));return(isNaN(c)?0:c)*b}function ya(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months, "M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function Eb(a,b){return function(c,d){var e,g;return null===d||isNaN(+d)||(E(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),g=c,c=d,d=g),c="string"==typeof c?+c:c,e=Ca(c,d),Db(this,e,a),this}}function Db(a,c,d,e){var g=c._milliseconds,k=ta(c._days);c=ta(c._months);a.isValid()&&(e=null==e||e,g&&a._d.setTime(a._d.valueOf()+ g*d),k&&(g=T(a,"Date")+k*d,a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+"Date"](g)),c&&ga(a,T(a,"Month")+c*d),e&&b.updateOffset(a,k||c))}function sb(a){var b;return void 0===a?this._locale._abbr:(b=X(a),null!=b&&(this._locale=b),this)}function ob(){return this._locale}function Na(a,b){z(0,[a,a.length],0,b)}function fb(a,b,c,d,e){var g;null==a?a=qa(this,d,e).year:(g=oa(a,d,e),b>g&&(b=g),a=da(a,b,c,d,e),a=ja(a.year,0,a.dayOfYear),a=(this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()), this));return a}function pb(a,b){b[mb]=r(1E3*("0."+a))}function Xb(a){return a}function hb(a,b,c,d){var e=X();b=n().set(d,b);return e[c](b,a)}function Pb(a,b,c){if(f(a)&&(b=a,a=void 0),a=a||"",null!=b)return hb(a,b,c,"month");var d=[];for(b=0;12>b;b++)d[b]=hb(a,b,c,"month");return d}function bb(a,b,c,d){"boolean"==typeof a?(f(b)&&(c=b,b=void 0),b=b||""):(b=a,c=b,a=!1,f(b)&&(c=b,b=void 0),b=b||"");var e=X();a=a?e._week.dow:0;if(null!=c)return hb(b,(c+a)%7,d,"day");e=[];for(c=0;7>c;c++)e[c]=hb(b,(c+ a)%7,d,"day");return e}function vb(a,b,c,d){b=Ca(b,c);return a._milliseconds+=d*b._milliseconds,a._days+=d*b._days,a._months+=d*b._months,a._bubble()}function tb(a){return 0>a?Math.floor(a):Math.ceil(a)}function Ya(a){return function(){return this.as(a)}}function eb(a){return function(){return this._data[a]}}function Ma(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function Fb(){var a,b,c,d=fc(this._milliseconds)/1E3,e=fc(this._days),g=fc(this._months);a=u(d/60);b=u(a/60);d%=60;a%=60;c=u(g/12);var g= g%12,k=this.asSeconds();return k?(0>k?"-":"")+"P"+(c?c+"Y":"")+(g?g+"M":"")+(e?e+"D":"")+(b||a||d?"T":"")+(b?b+"H":"")+(a?a+"M":"")+(d?d+"S":""):"P0D"}var Yb,gc=Array.prototype.some?Array.prototype.some:function(a){for(var b=Object(this),c=b.length>>>0,d=0;d=a?""+a:"+"+a});z(0,["YY",2],0,function(){return this.year()%100});z(0,["YYYY",4],0,"year");z(0,["YYYYY",5],0,"year");z(0,["YYYYYY",6,!0],0,"year");C("year","y");sa.year=1;I("Y",gb);I("YY",ma,Pa);I("YYYY",Vb,Ub);I("YYYYY",Kb,wb); I("YYYYYY",Kb,wb);J(["YYYYY","YYYYYY"],Ga);J("YYYY",function(a,c){c[Ga]=2===a.length?b.parseTwoDigitYear(a):r(a)});J("YY",function(a,c){c[Ga]=b.parseTwoDigitYear(a)});J("Y",function(a,b){b[Ga]=parseInt(a,10)});b.parseTwoDigitYear=function(a){return r(a)+(68this?this:a:p()});La("Z",":");La("ZZ","");I("Z", Lb);I("ZZ",Lb);J(["Z","ZZ"],function(a,b,c){c._useUTC=!0;c._tzm=ab(Lb,a)});var dc=/([\+\-]|\d\d)/gi;b.updateOffset=function(){};var rc=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,sc=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ca.fn=$a.prototype;var tc=Eb(1,"add"),uc=Eb(-1,"subtract");b.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";b.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oc=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function(a){return void 0===a?this.localeData():this.locale(a)});z(0,["gg",2],0,function(){return this.weekYear()%100});z(0,["GG",2],0,function(){return this.isoWeekYear()%100});Na("gggg","weekYear");Na("ggggg","weekYear");Na("GGGG","isoWeekYear");Na("GGGGG","isoWeekYear");C("weekYear","gg");C("isoWeekYear","GG");sa.weekYear=1;sa.isoWeekYear=1;I("G",gb);I("g",gb);I("GG",ma,Pa);I("gg",ma,Pa);I("GGGG",Vb,Ub);I("gggg",Vb,Ub);I("GGGGG",Kb,wb);I("ggggg",Kb,wb);N(["gggg","ggggg","GGGG","GGGGG"],function(a, b,c,d){b[d.substr(0,2)]=r(a)});N(["gg","GG"],function(a,c,d,e){c[e]=b.parseTwoDigitYear(a)});z("Q",0,"Qo","quarter");C("quarter","Q");sa.quarter=7;I("Q",Qb);J("Q",function(a,b){b[Wa]=3*(r(a)-1)});z("D",["DD",2],"Do","date");C("date","D");sa.date=9;I("D",ma);I("DD",ma,Pa);I("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient});J(["D","DD"],Qa);J("Do",function(a,b){b[Qa]=r(a.match(ma)[0],10)});var pc=M("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear");C("dayOfYear","DDD");sa.dayOfYear= 4;I("DDD",xb);I("DDDD",Tb);J(["DDD","DDDD"],function(a,b,c){c._dayOfYear=r(a)});z("m",["mm",2],0,"minute");C("minute","m");sa.minute=14;I("m",ma);I("mm",ma,Pa);J(["m","mm"],Ra);var vc=M("Minutes",!1);z("s",["ss",2],0,"second");C("second","s");sa.second=15;I("s",ma);I("ss",ma,Pa);J(["s","ss"],cb);var wc=M("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)});z(0,["SS",2],0,function(){return~~(this.millisecond()/10)});z(0,["SSS",3],0,"millisecond");z(0,["SSSS",4],0,function(){return 10* this.millisecond()});z(0,["SSSSS",5],0,function(){return 100*this.millisecond()});z(0,["SSSSSS",6],0,function(){return 1E3*this.millisecond()});z(0,["SSSSSSS",7],0,function(){return 1E4*this.millisecond()});z(0,["SSSSSSSS",8],0,function(){return 1E5*this.millisecond()});z(0,["SSSSSSSSS",9],0,function(){return 1E6*this.millisecond()});C("millisecond","ms");sa.millisecond=16;I("S",xb,Qb);I("SS",xb,Pa);I("SSS",xb,Tb);var db;for(db="SSSS";9>=db.length;db+="S")I(db,Zb);for(db="S";9>=db.length;db+="S")J(db, pb);var xc=M("Milliseconds",!1);z("z",0,0,"zoneAbbr");z("zz",0,0,"zoneName");var P=k.prototype;P.add=tc;P.calendar=function(a,c){var d=a||A(),e=Ea(d,this).startOf("day"),e=b.calendarFormat(this,e)||"sameElse",g=c&&(G(c[e])?c[e].call(this,d):c[e]);return this.format(g||this.localeData().calendar(e,this,A(d)))};P.clone=function(){return new k(this)};P.diff=function(a,b,c){var d,e;if(this.isValid())if(a=Ea(a,this),a.isValid()){d=6E4*(a.utcOffset()-this.utcOffset());b=B(b);if("year"===b||"month"===b|| "quarter"===b){var g;d=12*(a.year()-this.year())+(a.month()-this.month());var k=this.clone().add(d,"months");a=(0>a-k?(e=this.clone().add(d-1,"months"),g=(a-k)/(k-e)):(e=this.clone().add(d+1,"months"),g=(a-k)/(e-k)),-(d+g)||0);"quarter"===b?a/=3:"year"===b&&(a/=12)}else e=this-a,a="second"===b?e/1E3:"minute"===b?e/6E4:"hour"===b?e/36E5:"day"===b?(e-d)/864E5:"week"===b?(e-d)/6048E5:e;b=c?a:u(a)}else b=NaN;else b=NaN;return b};P.endOf=function(a){return a=B(a),void 0===a||"millisecond"===a?this:("date"=== a&&(a="day"),this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms"))};P.format=function(a){a||(a=this.isUtc()?b.defaultFormatUtc:b.defaultFormat);a=R(this,a);return this.localeData().postformat(a)};P.from=function(a,b){return this.isValid()&&(t(a)&&a.isValid()||A(a).isValid())?Ca({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()};P.fromNow=function(a){return this.from(A(),a)};P.to=function(a,b){return this.isValid()&&(t(a)&&a.isValid()||A(a).isValid())?Ca({from:this, to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()};P.toNow=function(a){return this.to(A(),a)};P.get=function(a){return a=B(a),G(this[a])?this[a]():this};P.invalidAt=function(){return l(this).overflow};P.isAfter=function(a,b){var c=t(a)?a:A(a);return!(!this.isValid()||!c.isValid())&&(b=B(g(b)?"millisecond":b),"millisecond"===b?this.valueOf()>c.valueOf():c.valueOf()=a.year()?G(Date.prototype.toISOString)?this.toDate().toISOString():R(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):R(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")};P.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment", b="";this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",b="Z");var a="["+a+'("]',c=0=this.year()?"YYYY":"YYYYYY";return this.format(a+c+"-MM-DD[T]HH:mm:ss.SSS"+(b+'[")]'))};P.toJSON=function(){return this.isValid()?this.toISOString():null};P.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};P.unix=function(){return Math.floor(this.valueOf()/1E3)};P.valueOf=function(){return this._d.valueOf()-6E4*(this._offset|| 0)};P.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};P.year=ac;P.isLeapYear=function(){return V(this.year())};P.weekYear=function(a){return fb.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};P.isoWeekYear=function(a){return fb.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)};P.quarter=P.quarters=function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()% 3)};P.month=Z;P.daysInMonth=function(){return fa(this.year(),this.month())};P.week=P.weeks=function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")};P.isoWeek=P.isoWeeks=function(a){var b=qa(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")};P.weeksInYear=function(){var a=this.localeData()._week;return oa(this.year(),a.dow,a.doy)};P.isoWeeksInYear=function(){return oa(this.year(),1,4)};P.date=pc;P.day=P.days=function(a){if(!this.isValid())return null!=a?this:NaN;var b= this._isUTC?this._d.getUTCDay():this._d.getDay();if(null!=a)var c=a,d=this.localeData(),b=(a="string"!=typeof c?c:isNaN(c)?(c=d.weekdaysParse(c),"number"==typeof c?c:null):parseInt(c,10),this.add(a-b,"d"));return b};P.weekday=function(a){if(!this.isValid())return null!=a?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")};P.isoWeekday=function(a){if(!this.isValid())return null!=a?this:NaN;if(null!=a){var b=this.localeData();a="string"==typeof a?b.weekdaysParse(a)% 7||7:isNaN(a)?null:a;return this.day(this.day()%7?a:a-7)}return this.day()||7};P.dayOfYear=function(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864E5)+1;return null==a?b:this.add(a-b,"d")};P.hour=P.hours=bc;P.minute=P.minutes=vc;P.second=P.seconds=wc;P.millisecond=P.milliseconds=xc;P.utcOffset=function(a,c){var d,e=this._offset||0;if(!this.isValid())return null!=a?this:NaN;if(null!=a){if("string"==typeof a){if(a=ab(Lb,a),null===a)return this}else 16>Math.abs(a)&& (a*=60);return!this._isUTC&&c&&(d=Fa(this)),this._offset=a,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==a&&(!c||this._changeInProgress?Db(this,Ca(a-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,b.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?e:Fa(this)};P.utc=function(a){return this.utcOffset(0,a)};P.local=function(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Fa(this),"m")),this};P.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm); else if("string"==typeof this._i){var a=ab(hc,this._i);null!=a?this.utcOffset(a):this.utcOffset(0,!0)}return this};P.hasAlignedHourOffset=function(a){return!!this.isValid()&&(a=a?A(a).utcOffset():0,0===(this.utcOffset()-a)%60)};P.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};P.isLocal=function(){return!!this.isValid()&&!this._isUTC};P.isUtcOffset=function(){return!!this.isValid()&&this._isUTC};P.isUtc=Cb;P.isUTC=Cb; P.zoneAbbr=function(){return this._isUTC?"UTC":""};P.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};P.dates=x("dates accessor is deprecated. Use date instead.",pc);P.months=x("months accessor is deprecated. Use month instead",Z);P.years=x("years accessor is deprecated. Use year instead",ac);P.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a, b),this):-this.utcOffset()});P.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!g(this._isDSTShifted))return this._isDSTShifted;var a={};if(q(a,this),a=Va(a),a._a){var b=a._isUTC?n(a._a):A(a._a);this._isDSTShifted=this.isValid()&&0a;++a)e=n([2E3,a]),this._shortMonthsParse[a]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(e,"").toLocaleLowerCase();return c?"MMM"===b?(d=xa.call(this._shortMonthsParse,g),-1!==d?d:null): (d=xa.call(this._longMonthsParse,g),-1!==d?d:null):"MMM"===b?(d=xa.call(this._shortMonthsParse,g),-1!==d?d:(d=xa.call(this._longMonthsParse,g),-1!==d?d:null)):(d=xa.call(this._longMonthsParse,g),-1!==d?d:(d=xa.call(this._shortMonthsParse,g),-1!==d?d:null))}this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(d=0;12>d;d++)if((e=n([2E3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]= new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(g="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(g.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))||c&&"MMM"===b&&this._shortMonthsParse[d].test(a)||!c&&this._monthsParse[d].test(a))return d};pa.monthsRegex=function(b){return this._monthsParseExact?(a(this,"_monthsRegex")||ba.call(this),b?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")|| (this._monthsRegex=yb),this._monthsStrictRegex&&b?this._monthsStrictRegex:this._monthsRegex)};pa.monthsShortRegex=function(b){return this._monthsParseExact?(a(this,"_monthsRegex")||ba.call(this),b?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=yb),this._monthsShortStrictRegex&&b?this._monthsShortStrictRegex:this._monthsShortRegex)};pa.week=function(a){return qa(a,this._week.dow,this._week.doy).week};pa.firstDayOfYear=function(){return this._week.doy}; pa.firstDayOfWeek=function(){return this._week.dow};pa.weekdays=function(a,b){return a?m(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(b)?"format":"standalone"][a.day()]:this._weekdays};pa.weekdaysMin=function(a){return a?this._weekdaysMin[a.day()]:this._weekdaysMin};pa.weekdaysShort=function(a){return a?this._weekdaysShort[a.day()]:this._weekdaysShort};pa.weekdaysParse=function(a,b,c){var d,e,g;if(this._weekdaysParseExact){g=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse= [],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;7>a;++a)e=n([2E3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(e,"").toLocaleLowerCase();return c?"dddd"===b?(d=xa.call(this._weekdaysParse,g),-1!==d?d:null):"ddd"===b?(d=xa.call(this._shortWeekdaysParse,g),-1!==d?d:null):(d=xa.call(this._minWeekdaysParse,g),-1!==d?d:null):"dddd"===b?(d=xa.call(this._weekdaysParse, g),-1!==d?d:(d=xa.call(this._shortWeekdaysParse,g),-1!==d?d:(d=xa.call(this._minWeekdaysParse,g),-1!==d?d:null))):"ddd"===b?(d=xa.call(this._shortWeekdaysParse,g),-1!==d?d:(d=xa.call(this._weekdaysParse,g),-1!==d?d:(d=xa.call(this._minWeekdaysParse,g),-1!==d?d:null))):(d=xa.call(this._minWeekdaysParse,g),-1!==d?d:(d=xa.call(this._weekdaysParse,g),-1!==d?d:(d=xa.call(this._shortWeekdaysParse,g),-1!==d?d:null)))}this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse= [],this._fullWeekdaysParse=[]);for(d=0;7>d;d++)if((e=n([2E3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(e,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(e,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(e,"").replace(".",".?")+"$","i")),this._weekdaysParse[d]||(g="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[d]= new RegExp(g.replace(".",""),"i")),c&&"dddd"===b&&this._fullWeekdaysParse[d].test(a))||c&&"ddd"===b&&this._shortWeekdaysParse[d].test(a)||c&&"dd"===b&&this._minWeekdaysParse[d].test(a)||!c&&this._weekdaysParse[d].test(a))return d};pa.weekdaysRegex=function(b){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ua.call(this),b?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=yb),this._weekdaysStrictRegex&&b?this._weekdaysStrictRegex:this._weekdaysRegex)}; pa.weekdaysShortRegex=function(b){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ua.call(this),b?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yb),this._weekdaysShortStrictRegex&&b?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)};pa.weekdaysMinRegex=function(b){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ua.call(this),b?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")|| (this._weekdaysMinRegex=yb),this._weekdaysMinStrictRegex&&b?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)};pa.isPM=function(a){return"p"===(a+"").toLowerCase().charAt(0)};pa.meridiem=function(a,b,c){return 11=g&& 0>=k&&0>=f||(g+=864E5*tb(146097*f/4800+k),k=0,f=0),l.milliseconds=g%1E3,a=u(g/1E3),l.seconds=a%60,b=u(a/60),l.minutes=b%60,c=u(b/60),l.hours=c%24,k+=u(c/24),e=u(4800*k/146097),f+=e,k-=tb(146097*e/4800),d=u(f/12),f%=12,l.days=k,l.months=f,l.years=d,this};la.get=function(a){return a=B(a),this[a+"s"]()};la.milliseconds=Jc;la.seconds=Kc;la.minutes=Bc;la.hours=Lc;la.days=Cc;la.weeks=function(){return u(this.days()/7)};la.months=Hc;la.years=Mc;la.humanize=function(a){var b=this.localeData(),c;c=!a;var d= Ca(this).abs(),e=rb(d.as("s")),g=rb(d.as("m")),k=rb(d.as("h")),f=rb(d.as("d")),l=rb(d.as("M")),d=rb(d.as("y")),e=e=g&&["m"]||g=k&&["h"]||k=f&&["d"]||f=l&&["M"]||l=d&&["y"]||["yy",d];c=(e[2]=c,e[3]=0<+this,e[4]=b,Ma.apply(null,e));return a&&(c=b.pastFuture(+this,c)),b.postformat(c)};la.toISOString=Fb;la.toString=Fb;la.toJSON=Fb;la.locale=sb;la.localeData=ob;la.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", Fb);la.lang=oc;z("X",0,0,"unix");z("x",0,0,"valueOf");I("x",gb);I("X",/[+-]?\d+(\.\d{1,3})?/);J("X",function(a,b,c){c._d=new Date(1E3*parseFloat(a,10))});J("x",function(a,b,c){c._d=new Date(r(a))});b.version="2.17.1";Yb=A;return b.fn=P,b.min=function(){var a=[].slice.call(arguments,0);return Ia("isBefore",a)},b.max=function(){var a=[].slice.call(arguments,0);return Ia("isAfter",a)},b.now=function(){return Date.now?Date.now():+new Date},b.utc=n,b.unix=function(a){return A(1E3*a)},b.months=function(a, b){return Pb(a,b,"months")},b.isDate=h,b.locale=Da,b.invalid=p,b.duration=Ca,b.isMoment=t,b.weekdays=function(a,b,c){return bb(a,b,c,"weekdays")},b.parseZone=function(){return A.apply(null,arguments).parseZone()},b.localeData=X,b.isDuration=ha,b.monthsShort=function(a,b){return Pb(a,b,"monthsShort")},b.weekdaysMin=function(a,b,c){return bb(a,b,c,"weekdaysMin")},b.defineLocale=wa,b.updateLocale=function(a,b){if(null!=b){var c;c=Ib;null!=ra[a]&&(c=ra[a]._config);b=H(c,b);c=new F(b);c.parentLocale=ra[a]; ra[a]=c;Da(a)}else null!=ra[a]&&(null!=ra[a].parentLocale?ra[a]=ra[a].parentLocale:null!=ra[a]&&delete ra[a]);return ra[a]},b.locales=function(){return ec(ra)},b.weekdaysShort=function(a,b,c){return bb(a,b,c,"weekdaysShort")},b.normalizeUnits=B,b.relativeTimeRounding=function(a){return void 0===a?rb:"function"==typeof a&&(rb=a,!0)},b.relativeTimeThreshold=function(a,b){return void 0!==qb[a]&&(void 0===b?qb[a]:(qb[a]=b,!0))},b.calendarFormat=function(a,b){var c=a.diff(b,"days",!0);return-6>c?"sameElse": -1>c?"lastWeek":0>c?"lastDay":1>c?"sameDay":2>c?"nextDay":7>c?"nextWeek":"sameElse"},b.prototype=P,b});var joeMoment=window.moment;window.moment=momentNoConflict;"undefined"!==typeof amdOriginal&&(define.amd=amdOriginal);"undefined"!==typeof define&&"undefined"!==typeof define.amd&&(amdOriginal=define.amd,define.amd=null); !function(b){"object"==typeof module&&"object"==typeof module.exports?b(require("jquery"),window,document):"undefined"!=typeof jQuery&&b(jQuery,window,document)}(function(b,m,e,f){!function(){function f(a,b,d){return Array(d+1-a.length).join(b)+a}function d(){if(1===arguments.length){var a=arguments[0];return"string"==typeof a&&(a=b.fn.timepicker.parseTime(a)),new Date(0,0,0,a.getHours(),a.getMinutes(),a.getSeconds())}return 3===arguments.length?new Date(0,0,0,arguments[0],arguments[1],arguments[2]): 2===arguments.length?new Date(0,0,0,arguments[0],arguments[1],0):new Date(0,0,0)}b.TimePicker=function(){var a=this;a.container=b(".ui-timepicker-container");a.ui=a.container.find(".ui-timepicker");0===a.container.length&&(a.container=b("\x3cdiv\x3e\x3c/div\x3e").addClass("ui-timepicker-container").addClass("ui-timepicker-hidden ui-helper-hidden").appendTo("body").hide(),a.ui=b("\x3cdiv\x3e\x3c/div\x3e").addClass("ui-timepicker").addClass("ui-widget ui-widget-content ui-menu").addClass("ui-corner-all").appendTo(a.container), a.viewport=b("\x3cul\x3e\x3c/ul\x3e").addClass("ui-timepicker-viewport").appendTo(a.ui),"1.4.2"<=b.fn.jquery&&a.ui.delegate("a","mouseenter.timepicker",function(){a.activate(!1,b(this).parent())}).delegate("a","mouseleave.timepicker",function(){a.deactivate(!1)}).delegate("a","click.timepicker",function(c){c.preventDefault();a.select(!1,b(this).parent())}))};b.TimePicker.count=0;b.TimePicker.instance=function(){return b.TimePicker._instance||(b.TimePicker._instance=new b.TimePicker),b.TimePicker._instance}; b.TimePicker.prototype={keyCode:{ALT:18,BLOQ_MAYUS:20,CTRL:17,DOWN:40,END:35,ENTER:13,HOME:36,LEFT:37,NUMPAD_ENTER:108,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SHIFT:16,TAB:9,UP:38},_items:function(a,c){var e,f,h=b("\x3cul\x3e\x3c/ul\x3e"),p=null;-1===a.options.timeFormat.indexOf("m")&&0!==a.options.interval%60&&(a.options.interval=60*Math.max(Math.round(a.options.interval/60),1));e=c?d(c):a.options.startTime?d(a.options.startTime):d(a.options.startHour,a.options.startMinutes);for(f=new Date(e.getTime()+ 864E5);f>e;)this._isValidTime(a,e)&&(p=b("\x3cli\x3e").addClass("ui-menu-item").appendTo(h),b("\x3ca\x3e").addClass("ui-corner-all").text(b.fn.timepicker.formatTime(a.options.timeFormat,e)).appendTo(p),p.data("time-value",e)),e=new Date(e.getTime()+6E4*a.options.interval);return h.children()},_isValidTime:function(a,b){var e=null,f=null;return b=d(b),null!==a.options.minTime?e=d(a.options.minTime):(null!==a.options.minHour||null!==a.options.minMinutes)&&(e=d(a.options.minHour,a.options.minMinutes)), null!==a.options.maxTime?f=d(a.options.maxTime):(null!==a.options.maxHour||null!==a.options.maxMinutes)&&(f=d(a.options.maxHour,a.options.maxMinutes)),null!==e&&null!==f?b>=e&&f>=b:null!==e?b>=e:null!==f?f>=b:!0},_hasScroll:function(){var a="undefined"!=typeof this.ui.prop?"prop":"attr";return this.ui.height()d?this.ui.scrollTop(e+d):d>=f&&this.ui.scrollTop(e+d-f+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-item").end()}},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this.active=null)},next:function(a){return(this.closed()||this.instance===a)&&this._move(a,"next",".ui-menu-item:first"),a.element},previous:function(a){return(this.closed()|| this.instance===a)&&this._move(a,"prev",".ui-menu-item:last"),a.element},first:function(a){return this.instance===a?this.active&&0===this.active.prevAll(".ui-menu-item").length:!1},last:function(a){return this.instance===a?this.active&&0===this.active.nextAll(".ui-menu-item").length:!1},selected:function(a){return this.instance===a&&this.active?this.active:null},open:function(a){var c=this,d=a.getTime(),f=a.options.dynamic&&d;if(!a.options.dropdown)return a.element;switch(a.element.data("timepicker-event-namespace", Math.random()),b(e).bind("click.timepicker-"+a.element.data("timepicker-event-namespace"),function(b){a.element.get(0)===b.target?a.element.data("timepicker-user-clicked-outside",!1):a.element.data("timepicker-user-clicked-outside",!0).blur()}),(a.rebuild||!a.items||f)&&(a.items=c._items(a,f?d:null)),(a.rebuild||c.instance!==a||f)&&("1.4.2">b.fn.jquery?(c.viewport.children().remove(),c.viewport.append(a.items),c.viewport.find("a").bind("mouseover.timepicker",function(){c.activate(a,b(this).parent())}).bind("mouseout.timepicker", function(){c.deactivate(a)}).bind("click.timepicker",function(d){d.preventDefault();c.select(a,b(this).parent())})):(c.viewport.children().detach(),c.viewport.append(a.items))),a.rebuild=!1,c.container.removeClass("ui-helper-hidden ui-timepicker-hidden ui-timepicker-standard ui-timepicker-corners").show(),a.options.theme){case "standard":c.container.addClass("ui-timepicker-standard");break;case "standard-rounded-corners":c.container.addClass("ui-timepicker-standard ui-timepicker-corners")}c.container.hasClass("ui-timepicker-no-scrollbar")|| a.options.scrollbar||(c.container.addClass("ui-timepicker-no-scrollbar"),c.viewport.css({paddingRight:40}));var f=c.container.outerHeight()-c.container.height(),h=a.options.zindex?a.options.zindex:a.element.offsetParent().css("z-index"),p=a.element.offset();c.container.css({top:p.top+a.element.outerHeight(),left:p.left});c.container.show();c.container.css({left:a.element.offset().left,height:c.ui.outerHeight()+f,width:a.element.outerWidth(),zIndex:h,cursor:"default"});f=c.container.width()-(c.ui.outerWidth()- c.ui.width());return c.ui.css({width:f}),c.viewport.css({width:f}),a.items.css({width:f}),c.instance=a,d?a.items.each(function(){var e,f=b(this);return e="1.4.2">b.fn.jquery?b.fn.timepicker.parseTime(f.find("a").text()):f.data("time-value"),e.getTime()===d.getTime()?(c.activate(a,f),!1):!0}):c.deactivate(a),a.element},close:function(a){return this.instance===a&&(this.container.addClass("ui-helper-hidden ui-timepicker-hidden").hide(),this.ui.scrollTop(0),this.ui.children().removeClass("ui-state-hover")), b(e).unbind("click.timepicker-"+a.element.data("timepicker-event-namespace")),a.element},closed:function(){return this.ui.is(":hidden")},destroy:function(a){return this.close(a,!0),a.element.unbind(".timepicker").data("TimePicker",null)},parse:function(a,c){return b.fn.timepicker.parseTime(c)},format:function(a,c,d){return d=d||a.options.timeFormat,b.fn.timepicker.formatTime(d,c)},getTime:function(a){var c=b.fn.timepicker.parseTime(a.element.val());return c instanceof Date&&!this._isValidTime(a,c)? null:c instanceof Date&&a.selectedTime?a.format(c)===a.format(a.selectedTime)?a.selectedTime:c:c instanceof Date?c:null},setTime:function(a,c,e){var f=a.selectedTime;if("string"==typeof c&&(c=a.parse(c)),c&&c.getMinutes&&this._isValidTime(a,c)){if(c=d(c),a.selectedTime=c,a.element.val(a.format(c,a.options.timeFormat)),e)return a}else a.selectedTime=null;return(null!==f||null!==a.selectedTime)&&(a.element.trigger("time-change",[c]),b.isFunction(a.options.change)&&a.options.change.apply(a.element,[c])), a.element},option:function(a,c,d){if("undefined"==typeof d)return a.options[c];var e,f,h=a.getTime();"string"==typeof c?(e={},e[c]=d):e=c;f="minHour minMinutes minTime maxHour maxMinutes maxTime startHour startMinutes startTime timeFormat interval dropdown".split(" ");b.each(e,function(c){a.options[c]=e[c];a.rebuild=a.rebuild||-1m;m+=1)if(a[m][0].test(e)){e=e.replace(a[m][0],a[m][1]);break}return e=e.replace(/:/g,""),1===e.length?g=e:2===e.length?g=e:3===e.length||5===e.length?(g=e.substr(0,1),q=e.substr(1,2),k=e.substr(3,2)):(4===e.length|| 5e.length&&(3>e.length&&(q=0),k=0),!1===g||!1===q||!1===k?!1:(g=parseInt(g,10),q=parseInt(q,10),k=parseInt(k,10),h&&12===g?g=0:p&&12>g&&(g+=12),24p?"20":"19")+h):p;k=!0;break;case "m":case "n":case "M":case "F":if(isNaN(p)){if(!(0< (p=this.getMonth(h))))return null}else if(!(1<=p&&12>=p))return null;r=p;k=!0;break;case "d":case "j":if(!(1<=p&&31>=p))return null;w=p;k=!0;break;case "g":case "h":if(q=e[g=-1=p&&-1=p&&(y=p);else{if(!(0<=p&&23>=p))return null;y=p}q=!0;break;case "G":case "H":if(!(0<=p&&23>=p))return null;y=p;q=!0;break;case "i":if(!(0<=p&&59>=p))return null;x=p;q=!0; break;case "s":if(!(0<=p&&59>=p))return null;E=p;q=!0}if(!0===k&&u&&r&&w)e=new Date(u,r-1,w,y,x,E,0);else{if(!0!==q)return null;e=new Date(0,0,0,y,x,E,0)}return e},guessDate:function(b,a){if("string"!=typeof b)return b;var c,e,f,h,p,g,q=b.replace(this.separators,"\x00").split("\x00"),k=a.match(this.validParts),m=new Date,u=0;if(!/^[djmn]/g.test(k[0]))return b;for(f=0;f(c=p.length)?c:4,!(e=parseInt(4>c?e.toString().substr(0,4-c)+p:p.substr(0,4))))return null;m.setFullYear(e);break;case 3:m.setHours(g);break;case 4:m.setMinutes(g);break;case 5:m.setSeconds(g)}0<(h=p.substr(u)).length&&q.splice(f+1,0,h)}return m},parseFormat:function(b,a){var c,e=this,f=e.dateSettings,h=/\\?(.?)/gi,p=function(a,b){return c[a]?c[a]():b};return c={d:function(){return m(c.j(), 2)},D:function(){return f.daysShort[c.w()]},j:function(){return a.getDate()},l:function(){return f.days[c.w()]},N:function(){return c.w()||7},w:function(){return a.getDay()},z:function(){var a=new Date(c.Y(),c.n()-1,c.j()),b=new Date(c.Y(),0,1);return Math.round((a-b)/864E5)},W:function(){var a=new Date(c.Y(),c.n()-1,c.j()-c.N()+3),b=new Date(a.getFullYear(),0,4);return m(1+Math.round((a-b)/864E5/7),2)},F:function(){return f.months[a.getMonth()]},m:function(){return m(c.n(),2)},M:function(){return f.monthsShort[a.getMonth()]}, n:function(){return a.getMonth()+1},t:function(){return(new Date(c.Y(),c.n(),0)).getDate()},L:function(){var a=c.Y();return 0==a%4&&0!=a%100||0==a%400?1:0},o:function(){var a=c.n(),b=c.W();return c.Y()+(12===a&&9>b?1:1===a&&9c.G()?0:1;return f.meridiem[a]},B:function(){var b=3600*a.getUTCHours(),c=60*a.getUTCMinutes(),d=a.getUTCSeconds();return m(Math.floor((b+ c+d+3600)/86.4)%1E3,3)},g:function(){return c.G()%12||12},G:function(){return a.getHours()},h:function(){return m(c.g(),2)},H:function(){return m(c.G(),2)},i:function(){return m(a.getMinutes(),2)},s:function(){return m(a.getSeconds(),2)},u:function(){return m(1E3*a.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(a))[1]||"Coordinated Universal Time"},I:function(){return new Date(c.Y(),0)-Date.UTC(c.Y(),0)!=new Date(c.Y(),6)-Date.UTC(c.Y(),6)?1:0},O:function(){var b=a.getTimezoneOffset(), c=Math.abs(b);return(0a&&(a=0);a+l[0].offsetHeight>F&&(a=F-l[0].offsetHeight);n.trigger("scroll_element.xdsoft_scroller",[v?a/v:0])},l.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(d){e||n.trigger("resize_scroll.xdsoft_scroller",[c]);G=m(d).y;B=parseInt(l.css("margin-top"), 10);F=h[0].offsetHeight;"mousedown"===d.type||"touchstart"===d.type?(a.ownerDocument&&b(a.ownerDocument.body).addClass("xdsoft_noselect"),b([a.ownerDocument.body,a.contentWindow]).on("touchend mouseup.xdsoft_scroller",function T(){b([a.ownerDocument.body,a.contentWindow]).off("touchend mouseup.xdsoft_scroller",T).off("mousemove.xdsoft_scroller",L).removeClass("xdsoft_noselect")}),b(a.ownerDocument.body).on("mousemove.xdsoft_scroller",L)):(C=!0,d.stopPropagation(),d.preventDefault())}).on("touchmove", function(a){C&&(a.preventDefault(),L(a))}).on("touchend touchcancel",function(){C=!1;B=0}),n.on("scroll_element.xdsoft_scroller",function(a,b){e||n.trigger("resize_scroll.xdsoft_scroller",[b,!0]);b=1b||isNaN(b)?0:b;l.css("margin-top",v*b);setTimeout(function(){d.css("marginTop",-parseInt((d[0].offsetHeight-e)*b,10))},10)}).on("resize_scroll.xdsoft_scroller",function(a,b,c){var g;e=n[0].clientHeight;f=d[0].offsetHeight;g=(a=e/f)*h[0].offsetHeight;1(b-=20*a.deltaY)&&(b=0),n.trigger("scroll_element.xdsoft_scroller",[b/(f-e)]),a.stopPropagation(),!1}),n.on("touchstart",function(a){E=m(a);H=Math.abs(parseInt(d.css("marginTop"),10))}),n.on("touchmove",function(a){E&&(a.preventDefault(),a=m(a),n.trigger("scroll_element.xdsoft_scroller", [(H-(a.y-E.y))/(f-e)]))}),n.on("touchend touchcancel",function(){E=!1;H=0})),n.trigger("resize_scroll.xdsoft_scroller",[c])):n.find(".xdsoft_scrollbar").hide()})};b.fn.datetimepicker=function(a,c){var h,k,l=this,n=!1,r=b.isPlainObject(a)||!a?b.extend(!0,{},e,a):b.extend(!0,{},e),v=0;return h=function(c){function e(){var a,b=!1;return r.startDate?b=t.strToDate(r.startDate):(b=r.value||(c&&c.val&&c.val()?c.val():""))?(b=t.strToDateTime(b),r.yearOffset&&(b=new Date(b.getFullYear()-r.yearOffset,b.getMonth(), b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds()))):r.defaultDate&&(b=t.strToDateTime(r.defaultDate),r.defaultTime&&(a=t.strtotime(r.defaultTime),b.setHours(a.getHours()),b.setMinutes(a.getMinutes()))),b&&t.isValidDate(b)?w.data("changed",!0):b="",b||0}function g(a){var d=function(a,b){var c=a.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}"); return(new RegExp(c)).test(b)},e=function(b,c){if(!(b="string"==typeof b||b instanceof String?a.ownerDocument.getElementById(b):b))return!1;if(b.createTextRange){var d=b.createTextRange();return d.collapse(!0),d.moveEnd("character",c),d.moveStart("character",c),d.select(),!0}return!!b.setSelectionRange&&(b.setSelectionRange(c,c),!0)};a.mask&&c.off("keydown.xdsoft");!0===a.mask&&(f.formatMask?a.mask=f.formatMask(a.format):a.mask=a.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g, "39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59"));"string"===b.type(a.mask)&&(d(a.mask,c.val())||(c.val(a.mask.replace(/[0-9]/g,"_")),e(c[0],0)),c.on("paste.xdsoft",function(g){var k=(g.clipboardData||g.originalEvent.clipboardData||window.clipboardData).getData("text"),f=this.value,h=this.selectionStart;return f=f.substr(0,h)+k+f.substr(h+k.length),h+=k.length,d(a.mask,f)?(this.value=f,e(this,h)):""===b.trim(f)?this.value=a.mask.replace(/[0-9]/g,"_"):c.trigger("error_input.xdsoft"), g.preventDefault(),!1}),c.on("keydown.xdsoft",function(g){var k,f=this.value,h=g.which,l=this.selectionStart,p=this.selectionEnd,q=l!==p;if(48<=h&&57>=h||96<=h&&105>=h||8===h||46===h){k=8===h||46===h?"_":String.fromCharCode(96<=h&&105>=h?h-48:h);for(8===h&&l&&!q&&(l-=1);;){var m=a.mask.substr(l,1),r=lr.touchMovedThreshold&&(this.touchMoved=!0)};D.find(".xdsoft_select").xdsoftScroller(r).on("touchstart mousedown.xdsoft",function(a){var b=a.originalEvent;this.touchMoved=!1;this.touchStartPosition=b.touches?b.touches[0]:b;a.stopPropagation();a.preventDefault()}).on("touchmove",".xdsoft_option",J).on("touchend mousedown.xdsoft", ".xdsoft_option",function(){if(!this.touchMoved){void 0!==t.currentTime&&null!==t.currentTime||(t.currentTime=t.now());var a=t.currentTime.getFullYear();t&&t.currentTime&&t.currentTime[b(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](b(this).data("value"));b(this).parent().parent().hide();w.trigger("xchange.xdsoft");r.onChangeMonth&&b.isFunction(r.onChangeMonth)&&r.onChangeMonth.call(w,t.currentTime,w.data("input"));a!==t.currentTime.getFullYear()&&b.isFunction(r.onChangeYear)&& r.onChangeYear.call(w,t.currentTime,w.data("input"))}});w.getValue=function(){return t.getCurrentTime()};w.setOptions=function(a){var d={};r=b.extend(!0,{},r,a);a.allowTimes&&b.isArray(a.allowTimes)&&a.allowTimes.length&&(r.allowTimes=b.extend(!0,[],a.allowTimes));a.weekends&&b.isArray(a.weekends)&&a.weekends.length&&(r.weekends=b.extend(!0,[],a.weekends));a.allowDates&&b.isArray(a.allowDates)&&a.allowDates.length&&(r.allowDates=b.extend(!0,[],a.allowDates));a.allowDateRe&&"[object String]"===Object.prototype.toString.call(a.allowDateRe)&& (r.allowDateRe=new RegExp(a.allowDateRe));a.highlightedDates&&b.isArray(a.highlightedDates)&&a.highlightedDates.length&&(b.each(a.highlightedDates,function(a,c){var e,g=b.map(c.split(","),b.trim),g=new m(f.parseDate(g[0],r.formatDate),g[1],g[2]),k=f.formatDate(g.date,r.formatDate);void 0!==d[k]?(e=d[k].desc)&&e.length&&g.desc&&g.desc.length&&(d[k].desc=e+"\n"+g.desc):d[k]=g}),r.highlightedDates=b.extend(!0,[],d));a.highlightedPeriods&&b.isArray(a.highlightedPeriods)&&a.highlightedPeriods.length&& (d=b.extend(!0,[],r.highlightedDates),b.each(a.highlightedPeriods,function(a,c){var e,g,k,h,l,n,p;b.isArray(c)?(e=c[0],g=c[1],k=c[2],p=c[3]):(h=b.map(c.split(","),b.trim),e=f.parseDate(h[0],r.formatDate),g=f.parseDate(h[1],r.formatDate),k=h[2],p=h[3]);for(;e<=g;)h=new m(e,k,p),l=f.formatDate(e,r.formatDate),e.setDate(e.getDate()+1),void 0!==d[l]?(n=d[l].desc)&&n.length&&h.desc&&h.desc.length&&(d[l].desc=n+"\n"+h.desc):d[l]=h}),r.highlightedDates=b.extend(!0,[],d));a.disabledDates&&b.isArray(a.disabledDates)&& a.disabledDates.length&&(r.disabledDates=b.extend(!0,[],a.disabledDates));a.disabledWeekDays&&b.isArray(a.disabledWeekDays)&&a.disabledWeekDays.length&&(r.disabledWeekDays=b.extend(!0,[],a.disabledWeekDays));!r.open&&!r.opened||r.inline||c.trigger("open.xdsoft");r.inline&&(S=!0,w.addClass("xdsoft_inline"),c.after(w).hide());r.inverseButton&&(r.next="xdsoft_prev",r.prev="xdsoft_next");r.datepicker?T.addClass("active"):T.removeClass("active");r.timepicker?Q.addClass("active"):Q.removeClass("active"); r.value&&(t.setCurrentTime(r.value),c&&c.val&&c.val(t.str));isNaN(r.dayOfWeekStart)?r.dayOfWeekStart=0:r.dayOfWeekStart=parseInt(r.dayOfWeekStart,10)%7;r.timepickerScrollbar||Y.xdsoftScroller(r,"hide");r.minDate&&/^[\+\-](.*)$/.test(r.minDate)&&(r.minDate=f.formatDate(t.strToDateTime(r.minDate),r.formatDate));r.maxDate&&/^[\+\-](.*)$/.test(r.maxDate)&&(r.maxDate=f.formatDate(t.strToDateTime(r.maxDate),r.formatDate));r.minDateTime&&/^\+(.*)$/.test(r.minDateTime)&&(r.minDateTime=t.strToDateTime(r.minDateTime).dateFormat(r.formatDate)); r.maxDateTime&&/^\+(.*)$/.test(r.maxDateTime)&&(r.maxDateTime=t.strToDateTime(r.maxDateTime).dateFormat(r.formatDate));U.toggle(r.showApplyButton);D.find(".xdsoft_today_button").css("visibility",r.todayButton?"visible":"hidden");D.find("."+r.prev).css("visibility",r.prevButton?"visible":"hidden");D.find("."+r.next).css("visibility",r.nextButton?"visible":"hidden");g(r);r.validateOnBlur&&c.off("blur.xdsoft").on("blur.xdsoft",function(){if(r.allowBlank&&(!b.trim(b(this).val()).length||"string"==typeof r.mask&& b.trim(b(this).val())===r.mask.replace(/[0-9]/g,"_")))b(this).val(null),w.data("xdsoft_datetime").empty();else{var a=f.parseDate(b(this).val(),r.format);if(a)b(this).val(f.formatDate(a,r.format));else{var a=+[b(this).val()[0],b(this).val()[1]].join(""),c=+[b(this).val()[2],b(this).val()[3]].join("");!r.datepicker&&r.timepicker&&0<=a&&24>a&&0<=c&&60>c?b(this).val([a,c].map(function(a){return 9=f?R.css("marginTop","-"+(f+r.timeHeightInTimePicker)+"px"):a.hasClass(r.prev)&&0<=f-r.timeHeightInTimePicker&&R.css("marginTop","-"+(f-r.timeHeightInTimePicker)+"px");Y.trigger("scroll_element.xdsoft_scroller", [Math.abs(parseInt(R[0].style.marginTop,10)/(k-g))]);e=10e;e+=1)v+="\x3cth\x3e"+r.i18n[d].dayOfWeekShort[(e+r.dayOfWeekStart)%7]+"\x3c/th\x3e";v+="\x3c/tr\x3e\x3c/thead\x3e\x3ctbody\x3e";!1!==r.maxDate&&(E=t.strToDate(r.maxDate),E=new Date(E.getFullYear(),E.getMonth(),E.getDate(),23,59,59,999));!1!==r.minDate&&(Y=t.strToDate(r.minDate),Y=new Date(Y.getFullYear(), Y.getMonth(),Y.getDate()));!1!==r.minDateTime&&(G=t.strToDate(r.minDateTime),G=new Date(G.getFullYear(),G.getMonth(),G.getDate(),G.getHours(),G.getMinutes(),G.getSeconds()));!1!==r.maxDateTime&&(F=t.strToDate(r.maxDateTime),F=new Date(F.getFullYear(),F.getMonth(),F.getDate(),F.getHours(),F.getMinutes(),F.getSeconds()));for(!1!==F&&(m=31*(12*F.getFullYear()+F.getMonth())+F.getDate());xe;e+=r.step)N=60*x+e,Nx?"0":"")+x,N=(10>e?"0":"")+e);R.html(L);a="";for(x=parseInt(r.yearStart,10);x<=parseInt(r.yearEnd,10);x+=1)a+='\x3cdiv class\x3d"xdsoft_option '+(t.currentTime.getFullYear()===x?"xdsoft_current":"")+'" data-value\x3d"'+x+'"\x3e'+(x+r.yearOffset)+"\x3c/div\x3e";ca.children().eq(0).html(a);x=parseInt(r.monthStart, 10);for(a="";x<=parseInt(r.monthEnd,10);x+=1)a+='\x3cdiv class\x3d"xdsoft_option '+(t.currentTime.getMonth()===x?"xdsoft_current":"")+'" data-value\x3d"'+x+'"\x3e'+r.i18n[d].months[x]+"\x3c/div\x3e";I.children().eq(0).html(a);b(w).trigger("generate.xdsoft")},10);e.stopPropagation()}).on("afterOpen.xdsoft",function(){var a,b,c,d;r.timepicker&&(R.find(".xdsoft_current").length?a=".xdsoft_current":R.find(".xdsoft_init_time").length&&(a=".xdsoft_init_time"),a?(b=Y[0].clientHeight,(c=R[0].offsetHeight)- b<(d=R.find(a).index()*r.timeHeightInTimePicker+1)&&(d=c-b),Y.trigger("scroll_element.xdsoft_scroller",[parseInt(d,10)/(c-b)])):Y.trigger("scroll_element.xdsoft_scroller",[0]))});h=0;z.on("touchend click.xdsoft","td",function(a){a.stopPropagation();h+=1;var d=b(this),e=t.currentTime;if(null==e&&(t.currentTime=t.now(),e=t.currentTime),d.hasClass("xdsoft_disabled"))return!1;e.setDate(1);e.setFullYear(d.data("year"));e.setMonth(d.data("month"));e.setDate(d.data("date"));w.trigger("select.xdsoft",[e]); c.val(t.str());r.onSelectDate&&b.isFunction(r.onSelectDate)&&r.onSelectDate.call(w,t.currentTime,w.data("input"),a);w.data("changed",!0);w.trigger("xchange.xdsoft");w.trigger("changedatetime.xdsoft");(1a.deltaY?t.nextMonth():t.prevMonth(),!1)});c.on("mousewheel.xdsoft",function(a){return!r.scrollInput||(!r.datepicker&&r.timepicker?(0<=(l=R.find(".xdsoft_current").length?R.find(".xdsoft_current").eq(0).index():0)+a.deltaY&&l+a.deltaYn+p?(l="bottom",d=n+p-a.top):d-=p):d+w[0].offsetHeight>n+p&&(d=a.top-w[0].offsetHeight+1),0>d&&(d=0),e+c.offsetWidth>h&&(e=h-c.offsetWidth));v(w[0],function(a){if("relative"===r.contentWindow.getComputedStyle(a).getPropertyValue("position")&&h>=a.offsetWidth)return e-=(h-a.offsetWidth)/2,!1});a={position:g,left:r.insideParent? c.offsetLeft:e,top:"",bottom:""};r.insideParent?a[l]=c.offsetTop+c.offsetHeight:a[l]=d;w.css(a)};w.on("open.xdsoft",function(a){var c=!0;r.onShow&&b.isFunction(r.onShow)&&(c=r.onShow.call(w,t.currentTime,w.data("input"),a));!1!==c&&(w.show(),q(),b(r.contentWindow).off("resize.xdsoft",q).on("resize.xdsoft",q),r.closeOnWithoutClick&&b([r.ownerDocument.body,r.contentWindow]).on("touchstart mousedown.xdsoft",function Z(){w.trigger("close.xdsoft");b([r.ownerDocument.body,r.contentWindow]).off("touchstart mousedown.xdsoft", Z)}))}).on("close.xdsoft",function(a){var c=!0;D.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide();r.onClose&&b.isFunction(r.onClose)&&(c=r.onClose.call(w,t.currentTime,w.data("input"),a));!1===c||r.opened||r.inline||w.hide();a.stopPropagation()}).on("toggle.xdsoft",function(){w.is(":visible")?w.trigger("close.xdsoft"):w.trigger("open.xdsoft")}).data("input",c);ia=0;w.data("xdsoft_datetime",t);w.setOptions(r);t.setCurrentTime(e());c.data("xdsoft_datetimepicker",w).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart", function(){c.is(":disabled")||c.data("xdsoft_datetimepicker").is(":visible")&&r.closeOnInputClick||r.openOnFocus&&(clearTimeout(ia),ia=setTimeout(function(){c.is(":disabled")||(S=!0,t.setCurrentTime(e(),!0),r.mask&&g(r),w.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(a){var c;a=a.which;return-1!==[13].indexOf(a)&&r.enterLikeTab?(c=b("input:visible,textarea:visible,button:visible,a:visible"),w.trigger("close.xdsoft"),c.eq(c.index(this)+1).focus(),!1):-1!==[9].indexOf(a)?(w.trigger("close.xdsoft"), !0):void 0}).on("blur.xdsoft",function(){w.trigger("close.xdsoft")})},k=function(a){var c=a.data("xdsoft_datetimepicker");c&&(c.data("xdsoft_datetime",null),c.remove(),a.data("xdsoft_datetimepicker",null).off(".xdsoft"),b(r.contentWindow).off("resize.xdsoft"),b([r.contentWindow,r.ownerDocument.body]).off("mousedown.xdsoft touchstart"),a.unmousewheel&&a.unmousewheel())},b(r.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(a){17=== a.keyCode&&(n=!0)}).on("keyup.xdsoftctrl",function(a){17===a.keyCode&&(n=!1)}).on("keydown.xdsoftcmd",function(a){91===a.keyCode&&!0}).on("keyup.xdsoftcmd",function(a){91===a.keyCode&&!1}),this.each(function(){var d,e=b(this).data("xdsoft_datetimepicker");if(e){if("string"===b.type(a))switch(a){case "show":b(this).select().focus();e.trigger("open.xdsoft");break;case "hide":e.trigger("close.xdsoft");break;case "toggle":e.trigger("toggle.xdsoft");break;case "destroy":k(b(this));break;case "reset":(this.value= this.defaultValue)&&e.data("xdsoft_datetime").isValidDate(f.parseDate(this.value,r.format))||e.data("changed",!1);e.data("xdsoft_datetime").setCurrentTime(this.value);break;case "validate":e.data("input").trigger("blur.xdsoft");break;default:e[a]&&b.isFunction(e[a])&&(l=e[a](c))}else e.setOptions(a);return 0}"string"!==b.type(a)&&(!r.lazyInit||r.open||r.inline?h(b(this)):(d=b(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function G(){d.is(":disabled")||d.data("xdsoft_datetimepicker")|| (clearTimeout(v),v=setTimeout(function(){d.data("xdsoft_datetimepicker")||h(d);d.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",G).trigger("open.xdsoft")},100))}))}),l};b.fn.datetimepicker.defaults=e};!function(b){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],b):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(datetimepickerFactory); (function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b:b(jQuery)})(function(b){function m(a){var c,l=a||window.event,k=n.call(arguments,1),m=0,u=0,r=0,w=0,y=0;if((a=b.event.fix(l)).type="mousewheel","detail"in l&&(r=-1*l.detail),"wheelDelta"in l&&(r=l.wheelDelta),"wheelDeltaY"in l&&(r=l.wheelDeltaY),"wheelDeltaX"in l&&(u=-1*l.wheelDeltaX),"axis"in l&&l.axis===l.HORIZONTAL_AXIS&&(u=-1*r,r=0),m=0===r?u:r,"deltaY"in l&&(m=r=-1*l.deltaY),"deltaX"in l&&(u=l.deltaX,0===r&&(m=-1*u)),0!==r||0!==u){if(1===l.deltaMode)var x=b.data(this,"mousewheel-line-height"),m=m*x,r=r*x,u=u*x;else 2===l.deltaMode&&(x=b.data(this,"mousewheel-page-height"),m*=x,r*=x,u*=x);if(c=Math.max(Math.abs(r),Math.abs(u)),(!d||c=b.length?{done:!0}:{done:!1,value:b[f++]}},e:function(a){throw a;},f:h}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var d=!0, a=!1,c;return{s:function(){e=b[Symbol.iterator]()},n:function(){var a=e.next();d=a.done;return a},e:function(b){a=!0;c=b},f:function(){try{if(!d&&null!=e["return"])e["return"]()}finally{if(a)throw c;}}}} function _unsupportedIterableToArray2(b,m){if(b){if("string"===typeof b)return _arrayLikeToArray2(b,m);var e=Object.prototype.toString.call(b).slice(8,-1);"Object"===e&&b.constructor&&(e=b.constructor.name);if("Map"===e||"Set"===e)return Array.from(b);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray2(b,m)}}function _arrayLikeToArray2(b,m){if(null==m||m>b.length)m=b.length;for(var e=0,f=Array(m);e>18&63]+d[b>>12&63]+d[b>>6&63]+d[b&63]);return e.join("")}e.byteLength=function(a){a=f(a);var b=a[1];return 3*(a[0]+b)/4-b};e.toByteArray=function(b){var d,e=f(b);d=e[0];var e=e[1],h=new c(3*(d+e)/4-e),g=0,q=0>16&255,h[g++]=d>>8&255,h[g++]=d&255;2===e&&(d=a[b.charCodeAt(k)]<<2|a[b.charCodeAt(k+1)]>>4,h[g++]=d&255);1===e&&(d=a[b.charCodeAt(k)]<< 10|a[b.charCodeAt(k+1)]<<4|a[b.charCodeAt(k+2)]>>2,h[g++]=d>>8&255,h[g++]=d&255);return h};e.fromByteArray=function(a){for(var b=a.length,c=b%3,e=[],g=0,f=b-c;gf?f:g+16383));1===c?(a=a[b-1],e.push(d[a>>2]+d[a<<4&63]+"\x3d\x3d")):2===c&&(a=(a[b-2]<<8)+a[b-1],e.push(d[a>>10]+d[a>>4&63]+d[a<<2&63]+"\x3d"));return e.join("")};var d=[],a=[],c="undefined"!==typeof Uint8Array?Uint8Array:Array;for(b=0;64>b;++b)d[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[b], a["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(b)]=b;a[45]=62;a[95]=63},{}],2:[function(b,m,e){},{}],3:[function(b,m,e){(function(f){function h(a){if(2147483647b||a.byteLengtha)throw new RangeError('The value "'+a+'" is invalid for option "size"');}function c(b){a(b);return h(0>b?0:m(b)|0)}function n(a){for(var b=0>a.length?0:m(a.length)|0,c=h(b),d=0;d>>1;case "base64":return L.toByteArray(H(a)).length;default:if(e)return d?-1:F(a).length; b=(""+b).toLowerCase();e=!0}}function g(a,b,c){var d=!1;if(void 0===b||0>b)b=0;if(b>this.length)return"";if(void 0===c||c>this.length)c=this.length;if(0>=c)return"";c>>>=0;b>>>=0;if(c<=b)return"";for(a||(a="utf8");;)switch(a){case "hex":a=b;b=this.length;if(!a||0>a)a=0;if(!c||0>c||c>b)c=b;for(b="";ad?"0"+d.toString(16):d.toString(16),b+=d;return b;case "utf8":case "utf-8":return r(this,b,c);case "ascii":a=b;b="";for(c=Math.min(this.length,c);ac&&(c=-2147483648);c=+c;c!==c&&(c=e?0:a.length-1);0>c&&(c=a.length+c);if(c>=a.length){if(e)return-1;c=a.length-1}else if(0>c)if(e)c=0;else return-1;"string"===typeof b&&(b=f.from(b,d));if(f.isBuffer(b))return 0===b.length?-1:t(a,b,c,d,e);if("number"===typeof b)return b&=255,"function"===typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a, b,c):t(a,[b],c,d,e);throw new TypeError("val must be string, number or Buffer");}function t(a,b,c,d,e){function g(a,b){return 1===k?a[b]:a.readUInt16BE(b*k)}var k=1,f=a.length,h=b.length;if(void 0!==d&&(d=String(d).toLowerCase(),"ucs2"===d||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(2>a.length||2>b.length)return-1;k=2;f/=2;h/=2;c/=2}if(e)for(d=-1;cf&&(c=f-h);0<=c;c--){f=!0;for(d= 0;de&&(g=e);break;case 2:f=a[b+1];128===(f&192)&&(e=(e&31)<<6|f&63,127e||57343< e)&&(g=e));break;case 4:f=a[b+1],h=a[b+2],l=a[b+3],128===(f&192)&&128===(h&192)&&128===(l&192)&&(e=(e&15)<<18|(f&63)<<12|(h&63)<<6|l&63,65535e&&(g=e))}}null===g?(g=65533,k=1):65535>>10&1023|55296),g=56320|g&1023);d.push(g);b+=k}a=d.length;if(a<=M)d=String.fromCharCode.apply(String,d);else{c="";for(b=0;ba)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length"); }function y(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>e||ba.length)throw new RangeError("Index out of range");}function x(a,b,c,d,e,g){if(c+d>a.length)throw new RangeError("Index out of range");if(0>c)throw new RangeError("Index out of range");}function E(a,b,c,d,e){b=+b;c>>>=0;e||x(a,b,c,4,3.4028234663852886E38,-3.4028234663852886E38);O.write(a,b,c,d,23,4);return c+4}function G(a, b,c,d,e){b=+b;c>>>=0;e||x(a,b,c,8,1.7976931348623157E308,-1.7976931348623157E308);O.write(a,b,c,d,52,8);return c+8}function H(a){a=a.split("\x3d")[0];a=a.trim().replace(T,"");if(2>a.length)return"";for(;0!==a.length%4;)a+="\x3d";return a}function F(a,b){b=b||Infinity;for(var c,d=a.length,e=null,g=[],k=0;kc){if(!e){if(56319c){-1<(b-= 3)&&g.push(239,191,189);e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&-1<(b-=3)&&g.push(239,191,189);e=null;if(128>c){if(0>(b-=1))break;g.push(c)}else if(2048>c){if(0>(b-=2))break;g.push(c>>6|192,c&63|128)}else if(65536>c){if(0>(b-=3))break;g.push(c>>12|224,c>>6&63|128,c&63|128)}else if(1114112>c){if(0>(b-=4))break;g.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw Error("Invalid code point");}return g}function C(a,b,c,d){for(var e=0;e=b.length||e>=a.length);++e)b[e+c]= a[e];return e}function B(a,b){return a instanceof b||null!=a&&null!=a.constructor&&null!=a.constructor.name&&a.constructor.name===b.name}var L=b("base64-js"),O=b("ieee754");e.Buffer=f;e.SlowBuffer=function(a){+a!=a&&(a=0);return f.alloc(+a)};e.INSPECT_MAX_BYTES=50;e.kMaxLength=2147483647;f.TYPED_ARRAY_SUPPORT=function(){try{var a=new Uint8Array(1);a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return 42===a.foo()}catch(b){return!1}}();f.TYPED_ARRAY_SUPPORT||"undefined"===typeof console|| "function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){return f.isBuffer(this)?this.buffer:void 0}});Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){return f.isBuffer(this)?this.byteOffset:void 0}});"undefined"!==typeof Symbol&&null!=Symbol.species&&f[Symbol.species]=== f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1});f.poolSize=8192;f.from=function(a,b,c){return d(a,b,c)};f.prototype.__proto__=Uint8Array.prototype;f.__proto__=Uint8Array;f.alloc=function(b,c,d){a(b);b=0>=b?h(b):void 0!==c?"string"===typeof d?h(b).fill(c,d):h(b).fill(c):h(b);return b};f.allocUnsafe=function(a){return c(a)};f.allocUnsafeSlow=function(a){return c(a)};f.isBuffer=function(a){return null!=a&&!0===a._isBuffer&&a!==f.prototype};f.compare= function(a,b){B(a,Uint8Array)&&(a=f.from(a,a.offset,a.byteLength));B(b,Uint8Array)&&(b=f.from(b,b.offset,b.byteLength));if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);eb&&(a+=" ... "); return"\x3cBuffer "+a+"\x3e"};f.prototype.compare=function(a,b,c,d,e){B(a,Uint8Array)&&(a=f.from(a,a.offset,a.byteLength));if(!f.isBuffer(a))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+_typeof(a));void 0===b&&(b=0);void 0===c&&(c=a?a.length:0);void 0===d&&(d=0);void 0===e&&(e=this.length);if(0>b||c>a.length||0>d||e>this.length)throw new RangeError("out of range index");if(d>=e&&b>=c)return 0;if(d>=e)return-1;if(b>=c)return 1;b>>>=0;c>>>=0;d>>>= 0;e>>>=0;if(this===a)return 0;var g=e-d,k=c-b,h=Math.min(g,k);d=this.slice(d,e);a=a.slice(b,c);for(b=0;b>>=0,isFinite(c)?(c>>>=0,void 0===d&&(d="utf8")):(d=c,c=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var e=this.length-b;if(void 0===c||c>e)c=e;if(0c||0>b)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");d||(d="utf8");for(e=!1;;)switch(d){case "hex":a:{b=Number(b)||0;d=this.length-b;c?(c=Number(c),c>d&&(c=d)):c=d;d=a.length;c>d/2&&(c=d/2);for(d=0;d(d-=2));++f)g=a.charCodeAt(f),e=g>>8,g%=256,k.push(g),k.push(e);return C(k,this,b,c);default:if(e)throw new TypeError("Unknown encoding: "+ d);d=(""+d).toLowerCase();e=!0}};f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a;b=void 0===b?c:~~b;0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c);0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c);b>>=0;b>>>=0;c||w(a,b,this.length);c=this[a];for(var d=1,e=0;++e>>=0;b>>>=0;c||w(a,b,this.length);c=this[a+--b];for(var d=1;0>>=0;b||w(a,1,this.length);return this[a]};f.prototype.readUInt16LE=function(a,b){a>>>=0;b||w(a,2,this.length);return this[a]|this[a+1]<<8};f.prototype.readUInt16BE=function(a,b){a>>>=0;b||w(a,2,this.length);return this[a]<<8|this[a+1]};f.prototype.readUInt32LE=function(a,b){a>>>=0;b||w(a,4,this.length);return(this[a]|this[a+1]<<8|this[a+2]<< 16)+16777216*this[a+3]};f.prototype.readUInt32BE=function(a,b){a>>>=0;b||w(a,4,this.length);return 16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])};f.prototype.readIntLE=function(a,b,c){a>>>=0;b>>>=0;c||w(a,b,this.length);c=this[a];for(var d=1,e=0;++e=128*d&&(c-=Math.pow(2,8*b));return c};f.prototype.readIntBE=function(a,b,c){a>>>=0;b>>>=0;c||w(a,b,this.length);c=b;for(var d=1,e=this[a+--c];0=128*d&&(e-=Math.pow(2,8*b));return e}; f.prototype.readInt8=function(a,b){a>>>=0;b||w(a,1,this.length);return this[a]&128?-1*(255-this[a]+1):this[a]};f.prototype.readInt16LE=function(a,b){a>>>=0;b||w(a,2,this.length);var c=this[a]|this[a+1]<<8;return c&32768?c|4294901760:c};f.prototype.readInt16BE=function(a,b){a>>>=0;b||w(a,2,this.length);var c=this[a+1]|this[a]<<8;return c&32768?c|4294901760:c};f.prototype.readInt32LE=function(a,b){a>>>=0;b||w(a,4,this.length);return this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24};f.prototype.readInt32BE= function(a,b){a>>>=0;b||w(a,4,this.length);return this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]};f.prototype.readFloatLE=function(a,b){a>>>=0;b||w(a,4,this.length);return O.read(this,a,!0,23,4)};f.prototype.readFloatBE=function(a,b){a>>>=0;b||w(a,4,this.length);return O.read(this,a,!1,23,4)};f.prototype.readDoubleLE=function(a,b){a>>>=0;b||w(a,8,this.length);return O.read(this,a,!0,52,8)};f.prototype.readDoubleBE=function(a,b){a>>>=0;b||w(a,8,this.length);return O.read(this,a,!1,52,8)};f.prototype.writeUIntLE= function(a,b,c,d){a=+a;b>>>=0;c>>>=0;d||(d=Math.pow(2,8*c)-1,y(this,a,b,c,d,0));d=1;var e=0;for(this[b]=a&255;++e>>=0;c>>>=0;d||(d=Math.pow(2,8*c)-1,y(this,a,b,c,d,0));d=c-1;var e=1;for(this[b+d]=a&255;0<=--d&&(e*=256);)this[b+d]=a/e&255;return b+c};f.prototype.writeUInt8=function(a,b,c){a=+a;b>>>=0;c||y(this,a,b,1,255,0);this[b]=a&255;return b+1};f.prototype.writeUInt16LE=function(a,b,c){a=+a;b>>>=0;c||y(this, a,b,2,65535,0);this[b]=a&255;this[b+1]=a>>>8;return b+2};f.prototype.writeUInt16BE=function(a,b,c){a=+a;b>>>=0;c||y(this,a,b,2,65535,0);this[b]=a>>>8;this[b+1]=a&255;return b+2};f.prototype.writeUInt32LE=function(a,b,c){a=+a;b>>>=0;c||y(this,a,b,4,4294967295,0);this[b+3]=a>>>24;this[b+2]=a>>>16;this[b+1]=a>>>8;this[b]=a&255;return b+4};f.prototype.writeUInt32BE=function(a,b,c){a=+a;b>>>=0;c||y(this,a,b,4,4294967295,0);this[b]=a>>>24;this[b+1]=a>>>16;this[b+2]=a>>>8;this[b+3]=a&255;return b+4};f.prototype.writeIntLE= function(a,b,c,d){a=+a;b>>>=0;d||(d=Math.pow(2,8*c-1),y(this,a,b,c,d-1,-d));d=0;var e=1,g=0;for(this[b]=a&255;++da&&0===g&&0!==this[b+d-1]&&(g=1),this[b+d]=(a/e>>0)-g&255;return b+c};f.prototype.writeIntBE=function(a,b,c,d){a=+a;b>>>=0;d||(d=Math.pow(2,8*c-1),y(this,a,b,c,d-1,-d));d=c-1;var e=1,g=0;for(this[b+d]=a&255;0<=--d&&(e*=256);)0>a&&0===g&&0!==this[b+d+1]&&(g=1),this[b+d]=(a/e>>0)-g&255;return b+c};f.prototype.writeInt8=function(a,b,c){a=+a;b>>>=0;c||y(this,a,b,1,127,-128); 0>a&&(a=255+a+1);this[b]=a&255;return b+1};f.prototype.writeInt16LE=function(a,b,c){a=+a;b>>>=0;c||y(this,a,b,2,32767,-32768);this[b]=a&255;this[b+1]=a>>>8;return b+2};f.prototype.writeInt16BE=function(a,b,c){a=+a;b>>>=0;c||y(this,a,b,2,32767,-32768);this[b]=a>>>8;this[b+1]=a&255;return b+2};f.prototype.writeInt32LE=function(a,b,c){a=+a;b>>>=0;c||y(this,a,b,4,2147483647,-2147483648);this[b]=a&255;this[b+1]=a>>>8;this[b+2]=a>>>16;this[b+3]=a>>>24;return b+4};f.prototype.writeInt32BE=function(a,b,c){a= +a;b>>>=0;c||y(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);this[b]=a>>>24;this[b+1]=a>>>16;this[b+2]=a>>>8;this[b+3]=a&255;return b+4};f.prototype.writeFloatLE=function(a,b,c){return E(this,a,b,!0,c)};f.prototype.writeFloatBE=function(a,b,c){return E(this,a,b,!1,c)};f.prototype.writeDoubleLE=function(a,b,c){return G(this,a,b,!0,c)};f.prototype.writeDoubleBE=function(a,b,c){return G(this,a,b,!1,c)};f.prototype.copy=function(a,b,c,d){if(!f.isBuffer(a))throw new TypeError("argument should be a Buffer"); c||(c=0);d||0===d||(d=this.length);b>=a.length&&(b=a.length);b||(b=0);0b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("Index out of range");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length);a.length-be||"latin1"===d)a=e}}else"number"=== typeof a&&(a&=255);if(0>b||this.length>>=0;c=void 0===c?this.length:c>>>0;a||(a=0);if("number"===typeof a)for(d=b;dp.indexOf(e)?m===a?20:4:m===b?10:2}Object.defineProperty(e,"__esModule",{value:!0});e.uniqueSort=e.compareDocumentPosition=e.removeSubsets=void 0;var h=b("./tagtypes");e.removeSubsets=function(b){for(var a=b.length;0<=--a;){var c=b[a];if(0=--h))break;if(e&&a.hasChildren(q)&&0=h))break}return p}function h(b,d,e){void 0===e&&(e=!0);for(var f=null,p=0;p=b||1114111>>10&1023|55296),b=56320|b&1023);return d+=String.fromCharCode(b)}},{"./maps/decode.json":21}],19:[function(b,m,e){function f(a){return Object.keys(a).sort().reduce(function(b,c){b[a[c]]="\x26"+c+";";return b},{})}function h(a){var b=[],c=[],d=0;for(a=Object.keys(a);de||b.splice(d,e,b[d]+"-"+b[a])}c.unshift("["+b.join("")+"]");return new RegExp(c.join("|"),"g")}function d(a){return"\x26#x"+a.codePointAt(0).toString(16).toUpperCase()+";"}function a(a,b){return function(c){return c.replace(b,function(b){return a[b]}).replace(l,d)}}var c=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(e,"__esModule",{value:!0});e.escape=e.encodeHTML=e.encodeXML= void 0;m=c(b("./maps/xml.json"));m=f(m["default"]);var n=h(m);e.encodeXML=a(m,n);b=c(b("./maps/entities.json"));b=f(b["default"]);c=h(b);e.encodeHTML=a(b,c);var l=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=h(m);e.escape=function(a){return a.replace(v,d).replace(l,d)}},{"./maps/entities.json":22,"./maps/xml.json":24}],20:[function(b,m,e){Object.defineProperty(e,"__esModule",{value:!0});e.encode=e.decodeStrict= e.decode=void 0;var f=b("./decode"),h=b("./encode");e.decode=function(a,b){return(!b||0>=b?f.decodeXML:f.decodeHTML)(a)};e.decodeStrict=function(a,b){return(!b||0>=b?f.decodeXML:f.decodeHTMLStrict)(a)};e.encode=function(a,b){return(!b||0>=b?h.encodeXML:h.encodeHTML)(a)};var d=b("./encode");Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return d.encodeXML}});Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return d.encodeHTML}});Object.defineProperty(e,"escape", {enumerable:!0,get:function(){return d.escape}});Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return d.encodeHTML}});Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return d.encodeHTML}});var a=b("./decode");Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}});Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}});Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}); Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}});Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}});Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}});Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}});Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})},{"./decode":17,"./encode":19}], 21:[function(b,m,e){m.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},{}],22:[function(b,m,e){m.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"À",agrave:"à", alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"\x26",AMP:"\x26",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈", approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\ud835\udd05", bfr:"\ud835\udd1f",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"\x3d⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐", boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"\ud835\udcb7",Bscr:"ℬ",bsemi:"⁏", bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"\ud835\udd20", Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁", compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"\ud835\udd54",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅", cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\ud835\udd07",dfr:"\ud835\udd21", dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆", DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞", DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ", efDot:"≒",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕", Equal:"⩵",equals:"\x3d",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl", fltns:"▱",fnof:"ƒ",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\ud835\udcbb",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧", gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\ud835\udca2", gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:"\x3e",GT:"\x3e",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\ud835\udd25",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻", hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\ud835\udd59",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"\ud835\udcbd",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"\ud835\udd26",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ", imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅","in":"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺","int":"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"\ud835\udcbe",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і", Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"ȷ",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴", lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤", lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋", LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\ud835\udd0f", lfr:"\ud835\udd29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹", looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\ud835\udcc1",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"\x3c",LT:"\x3c",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶", ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓", models:"⊧",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"∓",mscr:"\ud835\udcc2",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​", NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎", nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"\ud835\udd5f",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸", notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭", NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛", nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν", nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:"\x3e⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"\x3c⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"˛",Ograve:"Ò",ograve:"ò", ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\ud835\udcaa",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷", otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦", plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"\ud835\udd61",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰", Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"⨌",qopf:"\ud835\udd62",Qopf:"ℚ",qprime:"⁗",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴", Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"\ud835\udd2f",Rfr:"ℜ",rHar:"⥤", rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐", RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\ud835\udd63",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"\ud835\udcc7",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’", rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"⌢",sharp:"♯", SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64", spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ", strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑", supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\ud835\udd17",tfr:"\ud835\udd31", there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴", triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\ud835\udd18", ufr:"\ud835\udd32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖", UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀", vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"∝",vrtri:"⊳",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"⫋︀", vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"⨁",xotime:"⨂",xrarr:"⟶", xrArr:"⟹",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"Ї",yicy:"ї",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"\ud835\udd37", Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"\ud835\udd6b",Zopf:"ℤ",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"‍",zwnj:"‌"}},{}],23:[function(b,m,e){m.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"\x26",AMP:"\x26",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è", ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:"\x3e",GT:"\x3e",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"\x3c",LT:"\x3c",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®", sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},{}],24:[function(b,m,e){m.exports={amp:"\x26",apos:"'",gt:"\x3e",lt:"\x3c",quot:'"'}},{}],25:[function(b,m,e){function f(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=q(null),this._eventsCount=0);this._maxListeners=this._maxListeners||void 0}function h(a, b,c,d){var e,g;if("function"!==typeof c)throw new TypeError('"listener" argument must be a function');(e=a._events)?(e.newListener&&(a.emit("newListener",b,c.listener?c.listener:c),e=a._events),g=e[b]):(e=a._events=q(null),a._eventsCount=0);g?("function"===typeof g?g=e[b]=d?[c,g]:[g,c]:d?g.unshift(c):g.push(c),g.warned||(c=void 0===a._maxListeners?f.defaultMaxListeners:a._maxListeners)&&0c&&(g.warned=!0,c=Error("Possible EventEmitter memory leak detected. "+g.length+' "'+String(b)+'" listeners added. Use emitter.setMaxListeners() to increase limit.'), c.name="MaxListenersExceededWarning",c.emitter=a,c.type=b,c.count=g.length,"object"===("undefined"===typeof console?"undefined":_typeof(console))&&console.warn&&console.warn("%s: %s",c.name,c.message))):(e[b]=c,++a._eventsCount);return a}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target, arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var a=Array(arguments.length),b=0;ba||a!==a)throw new TypeError('"defaultMaxListeners" must be a positive number');u=a}}):f.defaultMaxListeners=u;f.prototype.setMaxListeners=function(a){if("number"!==typeof a|| 0>a||isNaN(a))throw new TypeError('"n" argument must be a positive number');this._maxListeners=a;return this};f.prototype.getMaxListeners=function(){return void 0===this._maxListeners?f.defaultMaxListeners:this._maxListeners};f.prototype.emit=function(a){var b,c,d,e,g;d="error"===a;if(g=this._events)d=d&&null==g.error;else if(!d)return!1;if(d){1e)return this;if(0===e)c.shift();else{g=e+1;for(var f=c.length;gb?a:a.substr(0,b);this._lowerCaseTagNames&&(a=a.toLowerCase());return a};d.prototype.ondeclaration=function(a){if(this._cbs.onprocessinginstruction){var b=this._getInstructionName(a);this._cbs.onprocessinginstruction("!"+b,"!"+a)}};d.prototype.onprocessinginstruction=function(a){if(this._cbs.onprocessinginstruction){var b=this._getInstructionName(a);this._cbs.onprocessinginstruction("?"+b,"?"+a)}};d.prototype.oncomment= function(a){this._updatePosition(4);if(this._cbs.oncomment)this._cbs.oncomment(a);if(this._cbs.oncommentend)this._cbs.oncommentend()};d.prototype.oncdata=function(a){this._updatePosition(1);if(this._options.xmlMode||this._options.recognizeCDATA){if(this._cbs.oncdatastart)this._cbs.oncdatastart();if(this._cbs.ontext)this._cbs.ontext(a);if(this._cbs.oncdataend)this._cbs.oncdataend()}else this.oncomment("[CDATA["+a+"]]")};d.prototype.onerror=function(a){if(this._cbs.onerror)this._cbs.onerror(a)};d.prototype.onend= function(){if(this._cbs.onclosetag)for(var a=this._stack.length;0this._sectionStart)this._cbs.ontext(this._getSection());this._state=2;this._sectionStart=this._index}else if(this._decodeEntities&&1===this._special&&"\x26"===a){if(this._index>this._sectionStart)this._cbs.ontext(this._getSection());this._baseState=1;this._state=51;this._sectionStart=this._index}};b.prototype._stateBeforeTagName=function(a){"/"===a?this._state=5:"\x3c"=== a?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):"\x3e"===a||1!==this._special||f(a)?this._state=1:"!"===a?(this._state=15,this._sectionStart=this._index+1):"?"===a?(this._state=17,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==a&&"S"!==a?3:31,this._sectionStart=this._index)};b.prototype._stateInTagName=function(a){if("/"===a||"\x3e"===a||f(a))this._emitToken("onopentagname"),this._state=8,this._index--};b.prototype._stateBeforeClosingTagName=function(a){f(a)|| ("\x3e"===a?this._state=1:1!==this._special?"s"===a||"S"===a?this._state=32:(this._state=1,this._index--):(this._state=6,this._sectionStart=this._index))};b.prototype._stateInClosingTagName=function(a){if("\x3e"===a||f(a))this._emitToken("onclosetag"),this._state=7,this._index--};b.prototype._stateAfterClosingTagName=function(a){"\x3e"===a&&(this._state=1,this._sectionStart=this._index+1)};b.prototype._stateBeforeAttributeName=function(a){"\x3e"===a?(this._cbs.onopentagend(),this._state=1,this._sectionStart= this._index+1):"/"===a?this._state=4:f(a)||(this._state=9,this._sectionStart=this._index)};b.prototype._stateInSelfClosingTag=function(a){"\x3e"===a?(this._cbs.onselfclosingtag(),this._state=1,this._sectionStart=this._index+1):f(a)||(this._state=8,this._index--)};b.prototype._stateInAttributeName=function(a){if("\x3d"===a||"/"===a||"\x3e"===a||f(a))this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=10,this._index--};b.prototype._stateAfterAttributeName=function(a){"\x3d"=== a?this._state=11:"/"===a||"\x3e"===a?(this._cbs.onattribend(),this._state=8,this._index--):f(a)||(this._cbs.onattribend(),this._state=9,this._sectionStart=this._index)};b.prototype._stateBeforeAttributeValue=function(a){'"'===a?(this._state=12,this._sectionStart=this._index+1):"'"===a?(this._state=13,this._sectionStart=this._index+1):f(a)||(this._state=14,this._sectionStart=this._index,this._index--)};b.prototype._stateInAttributeValueDoubleQuotes=function(a){'"'===a?(this._emitToken("onattribdata"), this._cbs.onattribend(),this._state=8):this._decodeEntities&&"\x26"===a&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)};b.prototype._stateInAttributeValueSingleQuotes=function(a){"'"===a?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"\x26"===a&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)};b.prototype._stateInAttributeValueNoQuotes= function(a){f(a)||"\x3e"===a?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8,this._index--):this._decodeEntities&&"\x26"===a&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)};b.prototype._stateBeforeDeclaration=function(a){this._state="["===a?22:"-"===a?18:16};b.prototype._stateInDeclaration=function(a){"\x3e"===a&&(this._cbs.ondeclaration(this._getSection()),this._state=1,this._sectionStart=this._index+1)};b.prototype._stateInProcessingInstruction= function(a){"\x3e"===a&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=1,this._sectionStart=this._index+1)};b.prototype._stateBeforeComment=function(a){"-"===a?(this._state=19,this._sectionStart=this._index+1):this._state=16};b.prototype._stateInComment=function(a){"-"===a&&(this._state=20)};b.prototype._stateAfterComment1=function(a){this._state="-"===a?21:19};b.prototype._stateAfterComment2=function(a){"\x3e"===a?(this._cbs.oncomment(this._buffer.substring(this._sectionStart, this._index-2)),this._state=1,this._sectionStart=this._index+1):"-"!==a&&(this._state=19)};b.prototype._stateBeforeCdata6=function(a){"["===a?(this._state=28,this._sectionStart=this._index+1):(this._state=16,this._index--)};b.prototype._stateInCdata=function(a){"]"===a&&(this._state=29)};b.prototype._stateAfterCdata1=function(a){this._state="]"===a?30:28};b.prototype._stateAfterCdata2=function(a){"\x3e"===a?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1, this._sectionStart=this._index+1):"]"!==a&&(this._state=28)};b.prototype._stateBeforeSpecial=function(a){"c"===a||"C"===a?this._state=33:"t"===a||"T"===a?this._state=43:(this._state=3,this._index--)};b.prototype._stateBeforeSpecialEnd=function(a){this._state=2!==this._special||"c"!==a&&"C"!==a?3!==this._special||"t"!==a&&"T"!==a?1:47:38};b.prototype._stateBeforeScript5=function(a){if("/"===a||"\x3e"===a||f(a))this._special=2;this._state=3;this._index--};b.prototype._stateAfterScript5=function(a){"\x3e"=== a||f(a)?(this._special=1,this._state=6,this._sectionStart=this._index-6,this._index--):this._state=1};b.prototype._stateBeforeStyle4=function(a){if("/"===a||"\x3e"===a||f(a))this._special=3;this._state=3;this._index--};b.prototype._stateAfterStyle4=function(a){"\x3e"===a||f(a)?(this._special=1,this._state=6,this._sectionStart=this._index-5,this._index--):this._state=1};b.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1a||"z"a||"Z"a||"9"a||"9"a||"f"a||"F"a||"9"this._sectionStart)this._buffer="",this._bufferOffset+=this._index,this._index=0;else if(this._running){if(1===this._state){if(this._sectionStart!==this._index)this._cbs.ontext(this._buffer.substr(this._sectionStart));this._buffer="";this._bufferOffset+=this._index;this._index=0}else this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-= this._sectionStart,this._bufferOffset+=this._sectionStart);this._sectionStart=0}};b.prototype.write=function(a){if(this._ended)this._cbs.onerror(Error(".write() after done!"));this._buffer+=a;this._parse()};b.prototype._parse=function(){for(;this._index>1,p=-7; c=d?c-1:0;var g=d?-1:1,q=b[e+c];c+=g;d=q&(1<<-p)-1;q>>=-p;for(p+=n;0>=-p;for(p+=a;0>1,q=23===c?Math.pow(2,-24)-Math.pow(2,-77):0;n=a?0:n-1;var k=a?1:-1,t=0>e||0===e&&0>1/e?1:0;e=Math.abs(e);isNaN(e)||Infinity===e?(e=isNaN(e)?1:0,a=p):(a=Math.floor(Math.log(e)/ Math.LN2),1>e*(l=Math.pow(2,-a))&&(a--,l*=2),e=1<=a+g?e+q/l:e+q*Math.pow(2,1-g),2<=e*l&&(a++,l/=2),a+g>=p?(e=0,a=p):1<=a+g?(e=(e*l-1)*Math.pow(2,c),a+=g):(e=e*Math.pow(2,g-1)*Math.pow(2,c),a=0));for(;8<=c;b[d+n]=e&255,n+=k,e/=256,c-=8);a=a<f?void 0:m,f=1);for(a=Object(a);++eb)return!1;b==a.length-1?a.pop():h.call(a,b,1);--this.size;return!0}},{"./_assocIndexOf":52}],115:[function(b,m,e){var f=b("./_assocIndexOf");m.exports=function(b){var d=this.__data__;b=f(d,b);return 0>b?void 0:d[b][1]}},{"./_assocIndexOf":52}],116:[function(b,m,e){var f=b("./_assocIndexOf"); m.exports=function(b){return-1c?(++this.size,a.push([b,d])):a[c][1]=d;return this}},{"./_assocIndexOf":52}],118:[function(b,m,e){var f=b("./_Hash"),h=b("./_ListCache"),d=b("./_Map");m.exports=function(){this.size=0;this.__data__={hash:new f,map:new (d||h),string:new f}}},{"./_Hash":34,"./_ListCache":35,"./_Map":36}],119:[function(b,m,e){var f=b("./_getMapData"); m.exports=function(b){b=f(this,b)["delete"](b);this.size-=b?1:0;return b}},{"./_getMapData":92}],120:[function(b,m,e){var f=b("./_getMapData");m.exports=function(b){return f(this,b).get(b)}},{"./_getMapData":92}],121:[function(b,m,e){var f=b("./_getMapData");m.exports=function(b){return f(this,b).has(b)}},{"./_getMapData":92}],122:[function(b,m,e){var f=b("./_getMapData");m.exports=function(b,d){var a=f(this,b),c=a.size;a.set(b,d);this.size+=a.size==c?0:1;return this}},{"./_getMapData":92}],123:[function(b, m,e){b=b("./_getNative")(Object,"create");m.exports=b},{"./_getNative":93}],124:[function(b,m,e){b=b("./_overArg")(Object.keys,Object);m.exports=b},{"./_overArg":128}],125:[function(b,m,e){m.exports=function(b){var e=[];if(null!=b)for(var d in Object(b))e.push(d);return e}},{}],126:[function(b,m,e){b=b("./_freeGlobal");var f="object"==_typeof(e)&&e&&!e.nodeType&&e;b=(e=f&&"object"==_typeof(m)&&m&&!m.nodeType&&m)&&e.exports===f&&b.process;var h;a:{try{var d=e&&e.require&&e.require("util").types;if(d){h= d;break a}h=b&&b.binding&&b.binding("util");break a}catch(a){}h=void 0}m.exports=h},{"./_freeGlobal":89}],127:[function(b,m,e){var f=Object.prototype.toString;m.exports=function(b){return f.call(b)}},{}],128:[function(b,m,e){m.exports=function(b,e){return function(d){return b(e(d))}}},{}],129:[function(b,m,e){var f=b("./_apply"),h=Math.max;m.exports=function(b,a,c){a=h(void 0===a?b.length-1:a,0);return function(){for(var e=arguments,l=-1,m=h(e.length-a,0),p=Array(m);++ll.length)return l.push([a,b]),this.size=++e.size,this;e=this.__data__=new d(l)}e.set(a,b);this.size=e.size;return this}},{"./_ListCache":35,"./_Map":36,"./_MapCache":37}],139:[function(b,m,e){var f=Function.prototype.toString;m.exports=function(b){if(null!= b){try{return f.call(b)}catch(d){}return b+""}return""}},{}],140:[function(b,m,e){var f=b("./_baseClone");m.exports=function(b){return f(b,5)}},{"./_baseClone":56}],141:[function(b,m,e){m.exports=function(b){return function(){return b}}},{}],142:[function(b,m,e){m.exports=function(b,e){return b===e||b!==b&&e!==e}},{}],143:[function(b,m,e){var f=b("./toString"),h=/[\\^$.*+?()[\]{}|]/g,d=RegExp(h.source);m.exports=function(a){return(a=f(a))&&d.test(a)?a.replace(h,"\\$\x26"):a}},{"./toString":166}], 144:[function(b,m,e){m.exports=function(b){return b}},{}],145:[function(b,m,e){e=b("./_baseIsArguments");var f=b("./isObjectLike");b=Object.prototype;var h=b.hasOwnProperty,d=b.propertyIsEnumerable;b=e(function(){return arguments}())?e:function(a){return f(a)&&h.call(a,"callee")&&!d.call(a,"callee")};m.exports=b},{"./_baseIsArguments":61,"./isObjectLike":154}],146:[function(b,m,e){m.exports=Array.isArray},{}],147:[function(b,m,e){var f=b("./isFunction"),h=b("./isLength");m.exports=function(b){return null!= b&&h(b.length)&&!f(b)}},{"./isFunction":150,"./isLength":151}],148:[function(b,m,e){var f=b("./isArrayLike"),h=b("./isObjectLike");m.exports=function(b){return h(b)&&f(b)}},{"./isArrayLike":147,"./isObjectLike":154}],149:[function(b,m,e){var f=b("./_root");b=b("./stubFalse");var h=(e="object"==_typeof(e)&&e&&!e.nodeType&&e)&&"object"==_typeof(m)&&m&&!m.nodeType&&m,f=h&&h.exports===e?f.Buffer:void 0;m.exports=(f?f.isBuffer:void 0)||b},{"./_root":130,"./stubFalse":164}],150:[function(b,m,e){var f=b("./_baseGetTag"), h=b("./isObject");m.exports=function(b){if(!h(b))return!1;b=f(b);return"[object Function]"==b||"[object GeneratorFunction]"==b||"[object AsyncFunction]"==b||"[object Proxy]"==b}},{"./_baseGetTag":60,"./isObject":153}],151:[function(b,m,e){m.exports=function(b){return"number"==typeof b&&-1=b}},{}],152:[function(b,m,e){e=b("./_baseIsMap");var f=b("./_baseUnary");e=(b=(b=b("./_nodeUtil"))&&b.isMap)?f(b):e;m.exports=e},{"./_baseIsMap":62,"./_baseUnary":74,"./_nodeUtil":126}], 153:[function(b,m,e){m.exports=function(b){var e=_typeof(b);return null!=b&&("object"==e||"function"==e)}},{}],154:[function(b,m,e){m.exports=function(b){return null!=b&&"object"==_typeof(b)}},{}],155:[function(b,m,e){var f=b("./_baseGetTag"),h=b("./_getPrototype"),d=b("./isObjectLike"),a=Function.prototype.toString,c=Object.prototype.hasOwnProperty,n=a.call(Object);m.exports=function(b){if(!d(b)||"[object Object]"!=f(b))return!1;b=h(b);if(null===b)return!0;b=c.call(b,"constructor")&&b.constructor; return"function"==typeof b&&b instanceof b&&a.call(b)==n}},{"./_baseGetTag":60,"./_getPrototype":94,"./isObjectLike":154}],156:[function(b,m,e){e=b("./_baseIsSet");var f=b("./_baseUnary");e=(b=(b=b("./_nodeUtil"))&&b.isSet)?f(b):e;m.exports=e},{"./_baseIsSet":64,"./_baseUnary":74,"./_nodeUtil":126}],157:[function(b,m,e){var f=b("./_baseGetTag"),h=b("./isArray"),d=b("./isObjectLike");m.exports=function(a){return"string"==typeof a||!h(a)&&d(a)&&"[object String]"==f(a)}},{"./_baseGetTag":60,"./isArray":146, "./isObjectLike":154}],158:[function(b,m,e){var f=b("./_baseGetTag"),h=b("./isObjectLike");m.exports=function(b){return"symbol"==_typeof(b)||h(b)&&"[object Symbol]"==f(b)}},{"./_baseGetTag":60,"./isObjectLike":154}],159:[function(b,m,e){e=b("./_baseIsTypedArray");var f=b("./_baseUnary");e=(b=(b=b("./_nodeUtil"))&&b.isTypedArray)?f(b):e;m.exports=e},{"./_baseIsTypedArray":65,"./_baseUnary":74,"./_nodeUtil":126}],160:[function(b,m,e){var f=b("./_arrayLikeKeys"),h=b("./_baseKeys"),d=b("./isArrayLike"); m.exports=function(a){return d(a)?f(a):h(a)}},{"./_arrayLikeKeys":47,"./_baseKeys":66,"./isArrayLike":147}],161:[function(b,m,e){var f=b("./_arrayLikeKeys"),h=b("./_baseKeysIn"),d=b("./isArrayLike");m.exports=function(a){return d(a)?f(a,!0):h(a)}},{"./_arrayLikeKeys":47,"./_baseKeysIn":67,"./isArrayLike":147}],162:[function(b,m,e){var f=b("./_baseMerge");b=b("./_createAssigner")(function(b,d,a,c){f(b,d,a,c)});m.exports=b},{"./_baseMerge":68,"./_createAssigner":86}],163:[function(b,m,e){m.exports= function(){return[]}},{}],164:[function(b,m,e){m.exports=function(){return!1}},{}],165:[function(b,m,e){var f=b("./_copyObject"),h=b("./keysIn");m.exports=function(b){return f(b,h(b))}},{"./_copyObject":82,"./keysIn":161}],166:[function(b,m,e){var f=b("./_baseToString");m.exports=function(b){return null==b?"":f(b)}},{"./_baseToString":73}],167:[function(b,m,e){(function(b,e){"object"===_typeof(m)&&m.exports?m.exports=e():b.parseSrcset=e()})(this,function(){return function(b){function e(a){return" "=== a||"\t"===a||"\n"===a||"\f"===a||"\r"===a}function d(a){if(a=a.exec(b.substring(y)))return a=a[0],y+=a.length,a}function a(){var a=!1,c,d,e,l,h={},n,m,p,r,u;for(l=0;lu?a=!0:d=u}else if(g.test(p)&&"h"===m){if(e||d)a=!0;0===r?a=!0:e=r}else a=!0;a?console&&console.log&&console.log("Invalid srcset descriptor found in '"+ b+"' at '"+n+"'."):(h.url=k,c&&(h.w=c),d&&(h.d=d),e&&(h.h=e),x.push(h))}for(var c=b.length,n=/^[ \t\n\r\u000c]+/,l=/^[, \t\n\r\u000c]+/,m=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,g=/^\d+$/,q=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,k,t,u,r,w,y=0,x=[];;){d(l);if(y>=c)return x;k=d(m);t=[];if(","===k.slice(-1))k=k.replace(p,""),a();else for(d(n),u="",r="in descriptor";;){w=b.charAt(y);if("in descriptor"===r)if(e(w))u&&(t.push(u),u="",r="after descriptor");else if(","===w){y+=1;u&&t.push(u);a();break}else if("("=== w)u+=w,r="in parens";else if(""===w){u&&t.push(u);a();break}else u+=w;else if("in parens"===r)if(")"===w)u+=w,r="in descriptor";else if(""===w){t.push(u);a();break}else u+=w;else if("after descriptor"===r&&!e(w))if(""===w){a();break}else r="in descriptor",y-=1;y+=1}}}})},{}],168:[function(b,m,e){(function(b){function h(a,b){for(var d=0,e=a.length-1;0<=e;e--){var f=a[e];"."===f?a.splice(e,1):".."===f?(a.splice(e,1),d++):d&&(a.splice(e,1),d--)}if(b)for(;d--;d)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b); for(var d=[],e=0;ec?[]:a.slice(b,c-b+1)}a=e.resolve(a).substr(1);b=e.resolve(b).substr(1); for(var f=d(a.split("/")),h=d(b.split("/")),g=Math.min(f.length,h.length),m=g,k=0;kb&&(b=a.length+b);return a.substr(b,d)}}).call(this,b("_process"))},{_process:193}],169:[function(b,m,e){function f(b,d){b.prototype=Object.create(d.prototype);b.prototype.constructor=b;b.__proto__=d}e.__esModule=!0;e["default"]=void 0;b=function(b){function d(a){a=b.call(this,a)||this;a.type="atrule";return a}f(d,b);var a=d.prototype;a.append=function(){var a;this.nodes|| (this.nodes=[]);for(var d=arguments.length,e=Array(d),f=0;f=a.length?{done:!0}:{done:!1,value:a[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}c=a[Symbol.iterator]();return c.next.bind(c)}function d(b,c){if(b){if("string"===typeof b)return a(b,c);var d=Object.prototype.toString.call(b).slice(8,-1);"Object"===d&&b.constructor&&(d=b.constructor.name);if("Map"=== d||"Set"===d)return Array.from(b);if("Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return a(b,c)}}function a(a,b){if(null==b||b>a.length)b=a.length;for(var c=0,d=Array(b);c=a&&(this.indexes[c]=b-1);return this};d.removeAll=function(){for(var a=h(this.nodes),b;!(b=a()).done;)b.value.parent=void 0;this.nodes=[];return this};d.replaceValues=function(a,b,c){c||(c=b,b={});this.walkDecls(function(d){b.props&&-1===b.props.indexOf(d.prop)||b.fast&&-1===d.value.indexOf(b.fast)||(d.value=d.value.replace(a,c))});return this};d.every=function(a){return this.nodes.every(a)};d.some= function(a){return this.nodes.some(a)};d.index=function(a){return"number"===typeof a?a:this.nodes.indexOf(a)};d.normalize=function(a,c){var d=this;if("string"===typeof a){var e=b("./parse");a=v(e(a).nodes)}else if(Array.isArray(a)){a=a.slice(0);for(var e=h(a),k;!(k=e()).done;)k=k.value,k.parent&&k.parent.removeChild(k,"ignore")}else if("root"===a.type)for(a=a.nodes.slice(0),e=h(a);!(k=e()).done;)k=k.value,k.parent&&k.parent.removeChild(k,"ignore");else if(a.type)a=[a];else if(a.prop){if("undefined"=== typeof a.value)throw Error("Value field is missed in node creation");"string"!==typeof a.value&&(a.value=String(a.value));a=[new p["default"](a)]}else if(a.selector)a=[new (b("./rule"))(a)];else if(a.name)a=[new (b("./at-rule"))(a)];else if(a.text)a=[new g["default"](a)];else throw Error("Unknown node type in node creation");return a.map(function(a){a.parent&&a.parent.removeChild(a);"undefined"===typeof a.raws.before&&c&&"undefined"!==typeof c.raws.before&&(a.raws.before=c.raws.before.replace(/[^\s]/g, ""));a.parent=d;return a})};n(c,[{key:"first",get:function(){return this.nodes?this.nodes[0]:void 0}},{key:"last",get:function(){return this.nodes?this.nodes[this.nodes.length-1]:void 0}}]);return c}(f(b("./node"))["default"]);e["default"]=q;m.exports=e["default"]},{"./at-rule":169,"./comment":170,"./declaration":173,"./node":178,"./parse":179,"./rule":186}],172:[function(b,m,e){function f(a){return a&&a.__esModule?a:{"default":a}}function h(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return a}function d(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a;a.__proto__=b}function a(b){var d="function"===typeof Map?new Map:void 0;a=function(a){function b(){return c(a,arguments,v(this).constructor)}if(null===a||-1===Function.toString.call(a).indexOf("[native code]"))return a;if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof d){if(d.has(a))return d.get(a);d.set(a,b)}b.prototype=Object.create(a.prototype, {constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});return l(b,a)};return a(b)}function c(a,b,d){c=n()?Reflect.construct:function(a,b,c){var d=[null];d.push.apply(d,b);a=new (Function.bind.apply(a,d));c&&l(a,c.prototype);return a};return c.apply(null,arguments)}function n(){if("undefined"===typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}} function l(a,b){l=Object.setPrototypeOf||function(a,b){a.__proto__=b;return a};return l(a,b)}function v(a){v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)};return v(a)}e.__esModule=!0;e["default"]=void 0;var p=f(b("supports-color")),g=f(b("chalk")),q=f(b("./terminal-highlight"));b=function(a){function b(c,d,e,g,f,l){var n;n=a.call(this,c)||this;n.name="CssSyntaxError";n.reason=c;f&&(n.file=f);g&&(n.source=g);l&&(n.plugin=l);"undefined"!==typeof d&& "undefined"!==typeof e&&(n.line=d,n.column=e);n.setMessage();Error.captureStackTrace&&Error.captureStackTrace(h(n),b);return n}d(b,a);var c=b.prototype;c.setMessage=function(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"\x3ccss input\x3e";"undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column);this.message+=": "+this.reason};c.showSourceCode=function(a){function b(c){return a&&g["default"].red?g["default"].red.bold(c):c}function c(b){return a&& g["default"].gray?g["default"].gray(b):b}var d=this;if(!this.source)return"";var e=this.source;q["default"]&&("undefined"===typeof a&&(a=p["default"].stdout),a&&(e=(0,q["default"])(e)));var e=e.split(/\r?\n/),k=Math.max(this.line-3,0),f=Math.min(this.line+2,e.length),l=String(f).length;return e.slice(k,f).map(function(a,e){var g=k+1+e,f=" "+(" "+g).slice(-l)+" | ";return g===d.line?(g=c(f.replace(/\d/g," "))+a.slice(0,d.column-1).replace(/[^\t]/g," "),b("\x3e")+c(f)+a+"\n "+g+b("^")):" "+c(f)+a}).join("\n")}; c.toString=function(){var a=this.showSourceCode();a&&(a="\n\n"+a+"\n");return this.name+": "+this.message+a};return b}(a(Error));e["default"]=b;m.exports=e["default"]},{"./terminal-highlight":2,chalk:2,"supports-color":2}],173:[function(b,m,e){function f(b,d){b.prototype=Object.create(d.prototype);b.prototype.constructor=b;b.__proto__=d}e.__esModule=!0;e["default"]=void 0;b=function(b){function d(a){a=b.call(this,a)||this;a.type="decl";return a}f(d,b);return d}(function(b){return b&&b.__esModule? b:{"default":b}}(b("./node"))["default"]);e["default"]=b;m.exports=e["default"]},{"./node":178}],174:[function(b,m,e){function f(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){for(var c=0;c=b.length?{done:!0}:{done:!1,value:b[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}d=b[Symbol.iterator]();return d.next.bind(d)}function a(a,b){if(a){if("string"===typeof a)return c(a, b);var d=Object.prototype.toString.call(a).slice(8,-1);"Object"===d&&a.constructor&&(d=a.constructor.name);if("Map"===d||"Set"===d)return Array.from(a);if("Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return c(a,b)}}function c(a,b){if(null==b||b>a.length)b=a.length;for(var c=0,d=Array(b);cparseInt(k[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+ e+", but "+c+" uses "+d+". Perhaps this is the source of the error below.")}}catch(l){console&&console.error&&console.error(l)}};b.asyncTick=function(a,b){var c=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,a();try{var d=this.processor.plugins[this.plugin],e=this.run(d);this.plugin+=1;if(v(e))e.then(function(){c.asyncTick(a,b)})["catch"](function(a){c.handleError(a,d);c.processed=!0;b(a)});else this.asyncTick(a,b)}catch(g){this.processed=!0,b(g)}};b.async=function(){var a= this;return this.processed?new Promise(function(b,c){a.error?c(a.error):b(a.stringify())}):this.processing?this.processing:this.processing=(new Promise(function(b,c){if(a.error)return c(a.error);a.plugin=0;a.asyncTick(b,c)})).then(function(){a.processed=!0;return a.stringify()})};b.sync=function(){if(this.processed)return this.result;this.processed=!0;if(this.processing)throw Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;for(var a=d(this.result.processor.plugins), b;!(b=a()).done;)if(b=this.run(b.value),v(b))throw Error("Use process(css).then(cb) to work with async plugins");return this.result};b.run=function(a){this.result.lastPlugin=a;try{return a(this.result.root,this.result)}catch(b){throw this.handleError(b,a),b;}};b.stringify=function(){if(this.stringified)return this.result;this.stringified=!0;this.sync();var a=this.result.opts,b=g["default"];a.syntax&&(b=a.syntax.stringify);a.stringifier&&(b=a.stringifier);b.stringify&&(b=b.stringify);a=(new p["default"](b, this.result.root,this.result.opts)).generate();this.result.css=a[0];this.result.map=a[1];return this.result};l(a,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]); return a}();e["default"]=u;m.exports=e["default"]}).call(this,b("_process"))},{"./map-generator":177,"./parse":179,"./result":184,"./stringify":188,"./warn-once":191,_process:193}],176:[function(b,m,e){e.__esModule=!0;e["default"]=void 0;var f={split:function(b,d,a){for(var c=[],e="",f=!1,m=0,p=!1,g=!1,q=0;q=b.length?{done:!0}:{done:!1,value:b[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }d=b[Symbol.iterator]();return d.next.bind(d)}function a(a,b){if(a){if("string"===typeof a)return c(a,b);var d=Object.prototype.toString.call(a).slice(8,-1);"Object"===d&&a.constructor&&(d=a.constructor.name);if("Map"===d||"Set"===d)return Array.from(a);if("Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return c(a,b)}}function c(a,b){if(null==b||b>a.length)b=a.length;for(var c=0,d=Array(b);c=a.length?{done:!0}:{done:!1,value:a[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }c=a[Symbol.iterator]();return c.next.bind(c)}function d(b,c){if(b){if("string"===typeof b)return a(b,c);var d=Object.prototype.toString.call(b).slice(8,-1);"Object"===d&&b.constructor&&(d=b.constructor.name);if("Map"===d||"Set"===d)return Array.from(b);if("Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return a(b,c)}}function a(a,b){if(null==b||b>a.length)b=a.length;for(var c=0,d=Array(b);c=a.length?{done:!0}:{done:!1,value:a[d++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}c=a[Symbol.iterator](); return c.next.bind(c)}function h(a,b){if(a){if("string"===typeof a)return d(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);"Object"===c&&a.constructor&&(c=a.constructor.name);if("Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return d(a,b)}}function d(a,b){if(null==b||b>a.length)b=a.length;for(var c=0,d=Array(b);c=Z)){b=b?b.ignoreUnclosed:!1;D=M.charCodeAt(K);if(D===c||D===l||D===p&&M.charCodeAt(K+1)!==c)ba=K,V+=1;switch(D){case c:case n:case v:case p:case l:z=K;do z+=1,D=M.charCodeAt(z),D===c&&(ba=z,V+=1);while(D===n||D===c||D===v||D===p||D===l);ga=["space",M.slice(K,z)];K=z-1; break;case g:case q:case u:case r:case x:case w:case t:b=String.fromCharCode(D);ga=[b,b,V,K-ba];break;case k:N=ja.length?ja.pop()[1]:"";fa=M.charCodeAt(K+1);if("url"===N&&fa!==f&&fa!==h&&fa!==n&&fa!==c&&fa!==v&&fa!==l&&fa!==p){z=K;do{ia=!1;z=M.indexOf(")",z+1);if(-1===z)if(T||b){z=K;break}else m("bracket");for(J=z;M.charCodeAt(J-1)===d;)J-=1,ia=!ia}while(ia);ga=["brackets",M.slice(K,z+1),V,K-ba,V,z-ba];K=z}else z=M.indexOf(")",K+1),U=M.slice(K,z+1),-1===z||F.test(U)?ga=["(","(",V,K-ba]:(ga=["brackets", U,V,K-ba,V,z-ba],K=z);break;case f:case h:Q=D===f?"'":'"';z=K;do{ia=!1;z=M.indexOf(Q,z+1);if(-1===z)if(T||b){z=K+1;break}else m("string");for(J=z;M.charCodeAt(J-1)===d;)J-=1,ia=!ia}while(ia);U=M.slice(K,z+1);Y=U.split("\n");R=Y.length-1;0=Z},position:function(){return K}}};var f=39,h=34,d=92,a=47,c=10,n=32,l=12,v=9,p=13,g=91,q=93,k=40,t=41,u=123,r=125,w=59,y=42,x=58,E=64,G=/[ \n\t\r\f{}()'"\\;/[\]#]/g,H=/[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g,F=/.[\\/("'\n]/,C=/[a-f0-9]/i;m.exports=e["default"]},{}],190:[function(b,m,e){e.__esModule=!0;e["default"]=void 0;e["default"]={prefix:function(b){return(b= b.match(/^(-\w+-)/))?b[0]:""},unprefixed:function(b){return b.replace(/^-\w+-/,"")}};m.exports=e["default"]},{}],191:[function(b,m,e){e.__esModule=!0;e["default"]=function(b){f[b]||(f[b]=!0,"undefined"!==typeof console&&console.warn&&console.warn(b))};var f={};m.exports=e["default"]},{}],192:[function(b,m,e){e.__esModule=!0;e["default"]=void 0;b=function(){function b(e,d){void 0===d&&(d={});this.type="warning";this.text=e;if(d.node&&d.node.source){var a=d.node.positionBy(d);this.line=a.line;this.column= a.column}for(var c in d)this[c]=d[c]}b.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text};return b}();e["default"]=b;m.exports=e["default"]},{}],193:[function(b,m,e){function f(){throw Error("setTimeout has not been defined");}function h(){throw Error("clearTimeout has not been defined");}function d(a){if(p===setTimeout)return setTimeout(a,0);if((p===f||!p)&&setTimeout)return p= setTimeout,setTimeout(a,0);try{return p(a,0)}catch(b){try{return p.call(null,a,0)}catch(c){return p.call(this,a,0)}}}function a(a){if(g===clearTimeout)return clearTimeout(a);if((g===h||!g)&&clearTimeout)return g=clearTimeout,clearTimeout(a);try{return g(a)}catch(b){try{return g.call(null,a)}catch(c){return g.call(this,a)}}}function c(){u&&r&&(u=!1,r.length?t=r.concat(t):w=-1,t.length&&n())}function n(){if(!u){var b=d(c);u=!0;for(var e=t.length;e;){r=t;for(t=[];++w=e&&c>>10&1023|55296),a= 56320|a&1023);return b+=G(a)}).join("")}function v(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function p(a,b,c){var d=0;a=c?E(a/700):a>>1;for(a+=E(a/b);455h&&(h=0);for(n=0;n=c&&d("invalid-input");q=a.charCodeAt(h++);q=10>q-48?q-22:26>q-65?q-65:26>q-97?q-97:36;(36<= q||q>E((2147483647-g)/e))&&d("overflow");g+=q*e;r=m<=k?1:m>=k+26?26:m-k;if(qE(2147483647/q)&&d("overflow");e*=q}e=b.length+1;k=p(g-n,e,0==n);E(g/e)>2147483647-f&&d("overflow");f+=E(g/e);g%=e;b.splice(g++,0,f)}return l(b)}function q(a){var b,c,e,g,f,k,h,l,m,q=[],r,t,u;a=n(a);r=a.length;b=128;c=0;f=72;for(k=0;km&&q.push(G(m));for((e=g=q.length)&&q.push("-");e=b&&mE((2147483647-c)/t)&&d("overflow");c+= (h-b)*t;b=h;for(k=0;k=f+26?26:h-f;if(ld&&(c=d);for(d=0;db?(-b<<1)+1:(b<<1)+0;do b=a&31,a>>>=5,0=c)throw Error("Expected more digits in base 64 VLQ value.");p=f.decode(b.charCodeAt(d++));if(-1===p)throw Error("Invalid base64 digit: "+b.charAt(d-1));m=!!(p&32);p&=31;e+=p<>1;a.value=1===(e&1)?-b:b;a.rest=d}},{"./base64":200}],200:[function(b,m,e){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(b){if(0<=b&&b=b?b-65:97<=b&&122>=b?b-97+26:48<=b&&57>=b?b-48+52:43==b?62:47==b?63:-1}},{}],201:[function(b,m,e){function f(b,d,a,c,n,l){var m=Math.floor((d-b)/2)+b,p=n(a,c[m],!0);return 0===p?m:0b?-1:b}e.GREATEST_LOWER_BOUND=1;e.LEAST_UPPER_BOUND=2;e.search=function(b,d,a,c){if(0===d.length)return-1;b=f(-1,d.length,b,d,a,c||e.GREATEST_LOWER_BOUND);if(0>b)return-1;for(;0<=b-1&&0===a(d[b],d[b-1],!0);)--b;return b}},{}],202:[function(b,m,e){function f(){this._array=[];this._sorted=!0;this._last={generatedLine:-1,generatedColumn:0}}var h=b("./util");f.prototype.unsortedForEach=function(b,a){this._array.forEach(b, a)};f.prototype.add=function(b){var a=this._last,c=a.generatedLine,e=b.generatedLine,f=a.generatedColumn,m=b.generatedColumn;e>c||e==c&&m>=f||0>=h.compareByGeneratedPositionsInflated(a,b)?this._last=b:this._sorted=!1;this._array.push(b)};f.prototype.toArray=function(){this._sorted||(this._array.sort(h.compareByGeneratedPositionsInflated),this._sorted=!0);return this._array};e.MappingList=f},{"./util":207}],203:[function(b,m,e){function f(b,a,c){var e=b[a];b[a]=b[c];b[c]=e}function h(b,a,c,e){if(c< e){var l;l=Math.round(c+Math.random()*(e-c));var m=c-1;f(b,l,e);l=b[e];for(var p=c;p=a(b[p],l)&&(m+=1,f(b,m,p));f(b,m+1,p);m+=1;h(b,a,c,m-1);h(b,a,m+1,e)}}e.quickSort=function(b,a){h(b,a,0,b.length-1)}},{}],204:[function(b,m,e){function f(b,d){var e=b;"string"===typeof b&&(e=c.parseSourceMapInput(b));return null!=e.sections?new a(e,d):new h(e,d)}function h(a,b){var d=a;"string"===typeof a&&(d=c.parseSourceMapInput(a));var e=c.getArg(d,"version"),f=c.getArg(d,"sources"),h=c.getArg(d,"names", []),n=c.getArg(d,"sourceRoot",null),m=c.getArg(d,"sourcesContent",null),p=c.getArg(d,"mappings"),d=c.getArg(d,"file",null);if(e!=this._version)throw Error("Unsupported version: "+e);n&&(n=c.normalize(n));f=f.map(String).map(c.normalize).map(function(a){return n&&c.isAbsolute(n)&&c.isAbsolute(a)?c.relative(n,a):a});this._names=l.fromArray(h.map(String),!0);this._sources=l.fromArray(f,!0);this._absoluteSources=this._sources.toArray().map(function(a){return c.computeSourceURL(n,a,b)});this.sourceRoot= n;this.sourcesContent=m;this._mappings=p;this._sourceMapURL=b;this.file=d}function d(){this.generatedColumn=this.generatedLine=0;this.name=this.originalColumn=this.originalLine=this.source=null}function a(a,b){var d=a;"string"===typeof a&&(d=c.parseSourceMapInput(a));var e=c.getArg(d,"version"),d=c.getArg(d,"sections");if(e!=this._version)throw Error("Unsupported version: "+e);this._sources=new l;this._names=new l;var h={line:-1,column:0};this._sections=d.map(function(a){if(a.url)throw Error("Support for url field in sections not implemented."); var d=c.getArg(a,"offset"),e=c.getArg(d,"line"),g=c.getArg(d,"column");if(ed.source)return[];var e=[],d=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",c.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(0<=d){var f=this._originalMappings[d];if(void 0===a.column)for(b=f.originalLine;f&&f.originalLine===b;)e.push({line:c.getArg(f,"generatedLine",null),column:c.getArg(f,"generatedColumn",null),lastColumn:c.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++d];else for(a=f.originalColumn;f&&f.originalLine===b&&f.originalColumn== a;)e.push({line:c.getArg(f,"generatedLine",null),column:c.getArg(f,"generatedColumn",null),lastColumn:c.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++d]}return e};e.SourceMapConsumer=f;h.prototype=Object.create(f.prototype);h.prototype.consumer=f;h.prototype._findSourceIndex=function(a){var b=a;null!=this.sourceRoot&&(b=c.relative(this.sourceRoot,b));if(this._sources.has(b))return this._sources.indexOf(b);for(b=0;b=a[c])throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(0>a[d])throw new TypeError("Column must be greater than or equal to 0, got "+ a[d]);return n.search(a,b,e,f)};h.prototype.computeColumnSpans=function(){for(var a=0;a=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}):!1};h.prototype.sourceContentFor=function(a,b){if(!this.sourcesContent)return null;var d=this._findSourceIndex(a);if(0<=d)return this.sourcesContent[d];d=a;null!=this.sourceRoot&&(d=c.relative(this.sourceRoot,d));var e;if(null!=this.sourceRoot&&(e=c.urlParse(this.sourceRoot))){var f=d.replace(/^file:\/\//, "");if("file"==e.scheme&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!e.path||"/"==e.path)&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(b)return null;throw Error('"'+d+'" is not in the SourceMap.');};h.prototype.generatedPositionFor=function(a){var b=c.getArg(a,"source"),b=this._findSourceIndex(b);if(0>b)return{line:null,column:null,lastColumn:null};b={source:b,originalLine:c.getArg(a,"line"),originalColumn:c.getArg(a,"column")}; a=this._findMapping(b,this._originalMappings,"originalLine","originalColumn",c.compareByOriginalPositions,c.getArg(a,"bias",f.GREATEST_LOWER_BOUND));return 0<=a&&(a=this._originalMappings[a],a.source===b.source)?{line:c.getArg(a,"generatedLine",null),column:c.getArg(a,"generatedColumn",null),lastColumn:c.getArg(a,"lastGeneratedColumn",null)}:{line:null,column:null,lastColumn:null}};e.BasicSourceMapConsumer=h;a.prototype=Object.create(f.prototype);a.prototype.constructor=f;a.prototype._version=3;Object.defineProperty(a.prototype, "sources",{get:function(){for(var a=[],b=0;bb||95!==a.charCodeAt(b-1)||95!==a.charCodeAt(b-2)||111!==a.charCodeAt(b-3)||116!==a.charCodeAt(b-4)||111!==a.charCodeAt(b-5)||114!==a.charCodeAt(b-6)||112!==a.charCodeAt(b-7)||95!==a.charCodeAt(b-8)||95!==a.charCodeAt(b-9))return!1;for(b-=10;0<=b;b--)if(36!==a.charCodeAt(b))return!1;return!0}function p(a,b){return a===b?0:null===a?1:null===b?-1:a>b?1:-1}e.getArg=function(a,b,c){if(b in a)return a[b];if(3===arguments.length)return c;throw Error('"'+b+'" is a required argument.');};var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,q=/^data:.+\,.+$/;e.urlParse=f;e.urlGenerate=h;e.normalize=d;e.join=a;e.isAbsolute=function(a){return"/"===a.charAt(0)||g.test(a)};e.relative=function(a,b){""===a&&(a=".");a=a.replace(/\/$/,"");for(var c=0;0!==b.indexOf(a+"/");){var d=a.lastIndexOf("/");if(0>d)return b;a=a.slice(0,d);if(a.match(/^([^\/]+:\/)?\/*$/))return b;++c}return Array(c+ 1).join("../")+b.substr(a.length+1)};b=!("__proto__"in Object.create(null));e.toSetString=b?c:n;e.fromSetString=b?c:l;e.compareByOriginalPositions=function(a,b,c){var d=p(a.source,b.source);if(0!==d)return d;d=a.originalLine-b.originalLine;if(0!==d)return d;d=a.originalColumn-b.originalColumn;if(0!==d||c)return d;d=a.generatedColumn-b.generatedColumn;if(0!==d)return d;d=a.generatedLine-b.generatedLine;return 0!==d?d:p(a.name,b.name)};e.compareByGeneratedPositionsDeflated=function(a,b,c){var d=a.generatedLine- b.generatedLine;if(0!==d)return d;d=a.generatedColumn-b.generatedColumn;if(0!==d||c)return d;d=p(a.source,b.source);if(0!==d)return d;d=a.originalLine-b.originalLine;if(0!==d)return d;d=a.originalColumn-b.originalColumn;return 0!==d?d:p(a.name,b.name)};e.compareByGeneratedPositionsInflated=function(a,b){var c=a.generatedLine-b.generatedLine;if(0!==c)return c;c=a.generatedColumn-b.generatedColumn;if(0!==c)return c;c=p(a.source,b.source);if(0!==c)return c;c=a.originalLine-b.originalLine;if(0!==c)return c; c=a.originalColumn-b.originalColumn;return 0!==c?c:p(a.name,b.name)};e.parseSourceMapInput=function(a){return JSON.parse(a.replace(/^\)]}'[^\n]*\n/,""))};e.computeSourceURL=function(b,c,e){c=c||"";b&&("/"!==b[b.length-1]&&"/"!==c[0]&&(b+="/"),c=b+c);if(e){b=f(e);if(!b)throw Error("sourceMapURL could not be parsed");b.path&&(e=b.path.lastIndexOf("/"),0<=e&&(b.path=b.path.substring(0,e+1)));c=a(h(b),c)}return d(c)}},{}],208:[function(b,m,e){e.SourceMapGenerator=b("./lib/source-map-generator").SourceMapGenerator; e.SourceMapConsumer=b("./lib/source-map-consumer").SourceMapConsumer;e.SourceNode=b("./lib/source-node").SourceNode},{"./lib/source-map-consumer":204,"./lib/source-map-generator":205,"./lib/source-node":206}],209:[function(b,m,e){function f(){this.href=this.path=this.pathname=this.query=this.search=this.hash=this.hostname=this.port=this.host=this.auth=this.slashes=this.protocol=null}function h(b,c,d){if(b&&a.isObject(b)&&b instanceof f)return b;var e=new f;e.parse(b,c,d);return e}var d=b("punycode"), a=b("./util");e.parse=h;e.resolve=function(a,b){return h(a,!1,!0).resolve(b)};e.resolveObject=function(a,b){return a?h(a,!1,!0).resolveObject(b):b};e.format=function(b){a.isString(b)&&(b=h(b));return b instanceof f?b.format():f.prototype.format.call(b)};e.Url=f;var c=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/;m="{}|\\^`".split("").concat('\x3c\x3e"` \r\n\t'.split(""));var v=["'"].concat(m),p=["%","/","?",";","#"].concat(v),g=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,k= /^([+a-z0-9A-Z_-]{0,63})(.*)$/,t={javascript:!0,"javascript:":!0},u={javascript:!0,"javascript:":!0},r={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=b("querystring");f.prototype.parse=function(b,e,f){if(!a.isString(b))throw new TypeError("Parameter 'url' must be a string, not "+_typeof(b));var h=b.indexOf("?"),h=-1!==h&&hk.length&&k.unshift("");c.pathname=k.join("/")}c.search=b.search;c.query=b.query;c.host=b.host||"";c.auth=b.auth;c.hostname=b.hostname||b.host;c.port=b.port;if(c.pathname||c.search)c.path=(c.pathname||"")+(c.search||"");c.slashes=c.slashes||b.slashes;c.href=c.format();return c}var d=c.pathname&&"/"===c.pathname.charAt(0),h=b.host||b.pathname&&"/"===b.pathname.charAt(0),l=d=h||d||c.host&&b.pathname,e=c.pathname&& c.pathname.split("/")||[],k=b.pathname&&b.pathname.split("/")||[];if(g=c.protocol&&!r[c.protocol])c.hostname="",c.port=null,c.host&&(""===e[0]?e[0]=c.host:e.unshift(c.host)),c.host="",b.protocol&&(b.hostname=null,b.port=null,b.host&&(""===k[0]?k[0]=b.host:k.unshift(b.host)),b.host=null),d=d&&(""===k[0]||""===e[0]);if(h)c.host=b.host||""===b.host?b.host:c.host,c.hostname=b.hostname||""===b.hostname?b.hostname:c.hostname,c.search=b.search,c.query=b.query,e=k;else if(k.length)e||(e=[]),e.pop(),e=e.concat(k), c.search=b.search,c.query=b.query;else if(!a.isNullOrUndefined(b.search))return g&&(c.hostname=c.host=e.shift(),g=c.host&&0/g,"\x26gt;"),b&&(a=a.replace(/\"/g,"\x26quot;")));a=a.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"\x26amp;").replace(//g,"\x26gt;");b&&(a=a.replace(/\"/g,"\x26quot;"));return a}function O(a,b){b=b.replace(/[\x00-\x20]+/g,"");b=b.replace(/<\!\-\-.*?\-\-\>/g,"");var c=b.match(/^([a-zA-Z]+)\:/);if(!c)return b.match(/^[\/\\]{2}/)?!e.allowProtocolRelative:!1;c=c[1].toLowerCase(); return h(e.allowedSchemesByTag,a)?-1===e.allowedSchemesByTag[a].indexOf(c):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(c)}function M(a,b){if(!b)return a;var c=p(a),d=a.nodes[0],e;if(e=b[d.selector]&&b["*"]?g(p(b[d.selector]),b["*"],function(a,b){if(Array.isArray(a))return a.concat(b)}):b[d.selector]||b["*"])c.nodes[0].nodes=d.nodes.reduce(D(e),[]);return c}function T(a){return a.nodes[0].nodes.reduce(function(a,b){a.push(b.prop+":"+b.value);return a},[]).join(";")}function D(a){return function(b, c){h(a,c.prop)&&a[c.prop].some(function(a){return a.test(c.value)})&&b.push(c);return b}}function z(a,b){if(!b)return a;a=a.split(/\s+/);return a.filter(function(a){return-1!==b.indexOf(a)}).join(" ")}var Q="",Y="";e?(e=Object.assign({},n.defaults,e),e.parser=e.parser?Object.assign({},E,e.parser):E):(e=n.defaults,e.parser=E);y.forEach(function(a){e.allowedTags&&-1]+$/,E={decodeEntities:!0};n.defaults={allowedTags:"h3 h4 h5 h6 blockquote p a ul ol nl li b i strong em strike abbr code hr br div table thead caption tbody tr th td pre iframe".split(" "),disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:"img br hr area base basefont input link meta".split(" "),allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href", "src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1};n.simpleTransform=function(a,b,c){c=void 0===c?!0:c;b=b||{};return function(d,e){var f;if(c)for(f in b)e[f]=b[f];else e=b;return{tagName:a,attribs:e}}}},{htmlparser2:31,"lodash/cloneDeep":140,"lodash/escapeRegExp":143,"lodash/isPlainObject":155,"lodash/isString":157,"lodash/mergeWith":162,"parse-srcset":167,postcss:181,url:209}]},{},[211])(211)});"undefined"!==typeof amdOriginal&&(define.amd=amdOriginal); !function(b){var m,e=b.Uint8Array,f=(b=b.HTMLCanvasElement)&&b.prototype,h=/\s*;\s*base64\s*(?:;|$)/i,d="toDataURL";e&&(m=new e([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]));!b||f.toBlob&&f.toBlobHD||(f.toBlob||(f.toBlob=function(a,b){if(b||(b="image/png"),this.mozGetAsFile)a(this.mozGetAsFile("canvas",b));else if(this.msToBlob&& /^\s*image\/png\s*(?:$|;)/i.test(b))a(this.msToBlob());else{var f,l=Array.prototype.slice.call(arguments,1),v=this[d].apply(this,l),p=v.indexOf(","),l=v.substring(p+1),v=h.test(v.substring(0,p));if(Blob.fake)(f=new Blob).encoding=v?"base64":"URI",f.data=l,f.size=l.length;else if(e){var g;if(v){f=Blob;for(var p=l.length,q=new e(p/4*3|0),k=0,t=0,u=[0,0],r=0,w=0;p--;)v=l.charCodeAt(k++),255!==(g=m[v-43])&&void 0!==g&&(u[1]=u[0],u[0]=v,w=w<<6|g,4===++r&&(q[t++]=w>>>16,61!==u[1]&&(q[t++]=w>>>8),61!==u[0]&& (q[t++]=w),r=0));g=new f([q],{type:b})}else g=new Blob([decodeURIComponent(l)],{type:b});f=g}a(f)}}),!f.toBlobHD&&f.toDataURLHD?f.toBlobHD=function(){d="toDataURLHD";var a=this.toBlob();return d="toDataURL",a}:f.toBlobHD=f.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this);"undefined"!==typeof define&&"undefined"!==typeof define.amd&&(amdOriginal=define.amd,define.amd=null); (function(b){"object"===typeof module&&module.exports?module.exports=b():window.fbWebIntlTelInput=b()})(function(b){return function(){function m(a,b){for(var c=0;cthis.dialCodeMaxLen&&(this.dialCodeMaxLen=c.length);this.countryCodes.hasOwnProperty(c)||(this.countryCodes[c]=[]);for(var e=0;eb?a.substr(0,b):a}},{key:"_initBlurListeners",value:function(){var a=this;this._handleSubmitOrBlurEvent=function(){a._removeEmptyDialCode()};this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent);this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var a=this._getNumeric(this.telInput.value);a&&this.selectedCountryData.dialCode!== a||(this.telInput.value="")}}},{key:"_getNumeric",value:function(a){return a.replace(/\D/g,"")}},{key:"_trigger",value:function(a){var b=document.createEvent("Event");b.initEvent(a,!0,!0);this.telInput.dispatchEvent(b)}},{key:"_showDropdown",value:function(){this.searchByCountryInput.focus();this.searchByCountryContainer.classList.remove("iti__hide");this.countryList.classList.remove("iti__hide");this.selectedFlag.setAttribute("aria-expanded","true");this._setDropdownPosition();this.activeItem&&(this._highlightListItem(this.activeItem, !1),this._scrollTo(this.activeItem,!0));this._bindDropdownListeners();this.dropdownArrow.classList.add("iti__arrow--up");this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(a,b,c){c&&!a.classList.contains(b)?a.classList.add(b):!c&&a.classList.contains(b)&&a.classList.remove(b)}},{key:"_setDropdownPosition",value:function(){var a=this;this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown);var b=this.telInput.getBoundingClientRect(),c=window.pageYOffset|| document.documentElement.scrollTop,d=b.top+c,e=this.countryList.offsetHeight,f=d+this.telInput.offsetHeight+ec;this._toggleClass(this.countryList,"iti__country-list--dropup",!f&&c);this.options.dropdownContainer&&(this.dropdown.style.top="".concat(d+(!f&&c?0:this.telInput.offsetHeight),"px"),this.dropdown.style.left="".concat(b.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return a._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll))}}, {key:"_getClosestListItem",value:function(a){for(;a&&a!==this.countryList&&!a.classList.contains("iti__country");)a=a.parentNode;return a===this.countryList?null:a}},{key:"_bindDropdownListeners",value:function(){var a=this;this._handleMouseoverCountryList=function(b){(b=a._getClosestListItem(b.target))&&a._highlightListItem(b,!1)};this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList);this._handleClickCountryList=function(b){(b=a._getClosestListItem(b.target))&&a._selectListItem(b)}; this.countryList.addEventListener("click",this._handleClickCountryList);var b=!0;this._handleSearchByCountryFocus=function(b){if(b=a._getClosestListItem(b.target))a._highlightListItem(b,!1),a._scrollTo(b,!0)};this._handleSearchByCountryClick=function(){b=!0};this.searchByCountryContainer.addEventListener("focus",this._handleSearchByCountryFocus);this.searchByCountryContainer.addEventListener("click",this._handleSearchByCountryClick);this._handleClickOffToClose=function(){b||a._closeDropdown();b=!1}; document.documentElement.addEventListener("click",this._handleClickOffToClose);var c="";this._handleKeydownOnDropdown=function(b){"ArrowUp"===b.key||"Up"===b.key||"ArrowDown"===b.key||"Down"===b.key?a._handleUpDownKey(b.key):"Enter"===b.key?a._handleEnterKey():"Escape"===b.key&&a._closeDropdown()};document.addEventListener("keydown",this._handleKeydownOnDropdown);this._handleKeyupOnSearchInput=function(b){c=b.target.value.toLowerCase();a._searchForCountry(c)};this.searchByCountryInput.addEventListener("input", this._handleKeyupOnSearchInput)}},{key:"_handleUpDownKey",value:function(a){var b="ArrowUp"===a||"Up"===a?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;b&&(b.classList.contains("iti__divider")&&(b="ArrowUp"===a||"Up"===a?b.previousElementSibling:b.nextElementSibling),this._highlightListItem(b,!0))}},{key:"_handleEnterKey",value:function(){this.noResultFoundContainer.classList.contains("hide")||(this.highlightedItem=null);this.highlightedItem&&this._selectListItem(this.highlightedItem)}}, {key:"_searchForCountry",value:function(a){if(window.document.querySelector("#fbots-country-code")){this._showPreferredCountries(""===a&&!this.showPreferredCountries);for(var b=!1,c=0;cg&&(b&&(l+=m),c.scrollTop=l-(e-h))}},{key:"_updateDialCode",value:function(a,b){var c=this.telInput.value,d="+".concat(a);if("+"===c.charAt(0))var e=this._getDialCode(c),c=e?c.replace(e,d):d;else{if(this.options.nationalMode||this.options.separateDialCode)return;if(c)c=d+c;else if(b||!this.options.autoHideDialCode)c=d;else return}this.telInput.value= c}},{key:"_getDialCode",value:function(a){var b="";if("+"===a.charAt(0))for(var c="",d=0;db?1:aa.length?!1:da(La,a)}function T(a){return da(ha,a)?Q(a, Va):Q(a,Ka)}function D(a){var b=T(a.toString());a.c="";a.a(b)}function z(a){return null!=a&&(1!=t(a,9)||-1!=k(a,9)[0])}function Q(a,b){for(var c=new G,d,e=a.length,f=0;fb?2:h[h.length-1]=b.c.length)throw Error("Phone number too short after IDD");a:{a=b.toString();if(0!=a.length&&"0"!=a.charAt(0))for(e= a.length,b=1;3>=b&&b<=e;++b)if(c=parseInt(a.substring(0,b),10),c in s){d.a(a.substring(b));d=c;break a}d=0}if(0!=d)return u(f,1,d),d;throw Error("Invalid country calling code");}if(null!=c&&(h=q(c,10),k=""+h,A=b.toString(),0==A.lastIndexOf(k,0)&&(k=new G(A.substring(k.length)),A=g(c,1),A=new RegExp(q(A,2)),K(k,c,null),k=k.toString(),!da(A,b.toString())&&da(A,k)||3==Z(a,b.toString(),c,-1))))return d.a(k),e&&u(f,6,10),u(f,1,h),h;u(f,1,0);return 0}function K(a,b,c){var d=a.toString(),e=d.length,f=g(b, 15);if(0!=e&&null!=f&&0!=f.length){var h=new RegExp("^(?:"+f+")");if(e=h.exec(d)){var f=new RegExp(q(g(b,1),2)),k=da(f,d),A=e.length-1;b=g(b,16);if(null==b||0==b.length||null==e[A]||0==e[A].length){if(!k||da(f,d.substring(e[0].length)))null!=c&&0b.c.length)throw Error("The string supplied is too short to be a phone number");null!=g&&(c=new G,e=new G(b.toString()),K(e,g,c),a=Z(a,e.toString(),g,-1),2!=a&&4!=a&&5!=a&&(b=e,d&&0a)throw Error("The string supplied is too short to be a phone number");if(17d?Math.max(0,a.length+d):d;if(b(a))return b(c)&&1==c.length?a.indexOf(c,d):-1;for(;dthis.length?!1:-1!==this.indexOf(a,b)});String.prototype.startsWith||(String.prototype.startsWith=function(a,b){return this.substr(b||0,a.length)===a});String.prototype.endsWith||(String.prototype.endsWith=function(a,b){b=b>2,c= (c&3)<<4|d>>4,g=(d&15)<<2|e>>6,h=e&63,isNaN(d)?g=h=64:isNaN(e)&&(h=64),b=b+this._keyStr.charAt(f)+this._keyStr.charAt(c)+this._keyStr.charAt(g)+this._keyStr.charAt(h);return b},decode:function(a){var b="",c,d,e,f,g,h=0;for(a=a.replace(/[^A-Za-z0-9+/=]/g,"");h>4,d=(d&15)<<4|f>>2,e=(f&3)<<6|g,b+=String.fromCharCode(c),64!=f&&(b+= String.fromCharCode(d)),64!=g&&(b+=String.fromCharCode(e));return b=Base64._utf8_decode(b)},_utf8_encode:function(a){a=a.replace(/rn/g,"n");for(var b="",c=0;cd?b+=String.fromCharCode(d):(127d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){for(var b="",c=0,d,e,f=0;cf?(b+=String.fromCharCode(f), c++):191f?(d=a.charCodeAt(c+1),b+=String.fromCharCode((f&31)<<6|d&63),c+=2):(d=a.charCodeAt(c+1),e=a.charCodeAt(c+2),b+=String.fromCharCode((f&15)<<12|(d&63)<<6|e&63),c+=3);return b}},Log:function(){return{logMessage:function(a,b,c){b||(b=!1);if(!b||ca||"prod"!==z)b=new Date,c?console.log("["+b.getTime()+"] "+a,c):console.log("["+b.getTime()+"] "+a)}}}(),getCustomTemplate:function(){return{errorMessageIcon:'\x3cspan class\x3d"fa fa-exclamation-triangle icon-error" aria-hidden\x3d"true"\x3e\x3c/span\x3e\x26nbsp;\x26nbsp;', fileUploadError:'\x3cspan class\x3d"font-sm post_message_error_span"\x3e\x3cimg height\x3d"12px" width\x3d"12px" class\x3d"info_icon_chat_container" src\x3d"'+J+'/assets/imgs/g3_icons/info_icon_red.svg"/\x3e\x26nbsp;'+N.file_upload_failure_error+'\x26nbsp;| \x3cdiv class\x3d"file_upload_retry retry_button"\x3e\x26nbsp; '+N.retry+"\x3c/div\x3e\x3c/span\x3e",messageSendError:'\x3cspan class\x3d"font-sm post_message_error_span"\x3e\x3cimg height\x3d"12px" width\x3d"12px" class\x3d"info_icon_chat_container" src\x3d"'+ J+'/assets/imgs/g3_icons/info_icon_red.svg"/\x3e\x26nbsp'+N.message_post_failure_error+'\x26nbsp;| \x3cdiv class\x3d"message_send_retry retry_button"\x3e\x26nbsp; '+N.retry+"\x3c/div\x3e\x3c/span\x3e"}},Ajax:function(){return{getJson:function(a,c,d,e,f,g,h,k){null==g&&(g=!0);null==h&&(h=!0);null==k&&(k=6E4);null==c?c={"X-TimezoneOffset":Da}:c["X-TimezoneOffset"]=Da;c["Client-Id"]=q;b.ajax({type:"GET",url:a,headers:c,data:d,dataType:"json",async:g,cache:h,timeout:k,success:function(a){"function"=== typeof e&&e.call(this,a)},error:function(a,b){var c;"function"===typeof f?f.call(this,a,b):"error"===b?404==a.status?c=" This request does not exist.":500==a.status&&(c="An unexpected error occured on server while processing this request. Try Again."):"timeout"===b?c="Stay the patient course. Of little worth is your ire. The network is down.":"parsererror"===b&&(c="Yesterday it worked. Today it is not working. The response from server couldn't be processed properly.");c&&console.log(c)},beforeSend:function(a){a&& a.setRequestHeader("Accept","application/json")}})},postJson:function(a,c,d,e,f){if(Array&&Array.prototype&&Array.prototype.toJSON){var g=Array.prototype.toJSON;delete Array.prototype.toJSON;c=JSON.stringify(c);Array.prototype.toJSON=g}else c=JSON.stringify(c);d?d["X-TimezoneOffset"]=Da:d={"X-TimezoneOffset":Da};d["Client-Id"]=q;d.sn&&(d.sn=encodeURIComponent(d.sn));b.ajax({type:"POST",contentType:"application/json; charset\x3dutf-8",url:a,data:c,headers:d,dataType:"json",success:function(a){"function"=== typeof e&&e.call(this,a)},error:function(a,b){"function"===typeof f?f.call(this,a,b):"error"===b?404==a.status?console.log("You step in the stream, but the water has moved on. This request does not exist."):500==a.status&&console.log("An unexpected error occured on server while processing this request. Try Again."):"timeout"===b?console.log("Stay the patient course. Of little worth is your ire. The network is down."):"parsererror"===b&&console.log("Yesterday it worked. Today it is not working. The response from server couldn't be processed properly.")}, beforeSend:function(a){a&&a.setRequestHeader("Accept","application/json")}})},postFile:function(a,c,d,e,f){null==d?d={"X-TimezoneOffset":Da}:d["X-TimezoneOffset"]=Da;d["Client-Id"]=q;b.ajax({type:"POST",processData:!1,contentType:!1,url:a,data:c,headers:d,dataType:"json",success:function(a){"function"===typeof e&&e.call(this,a)},error:function(a,b){"function"===typeof f?f.call(this,a,b):"error"===b?404==a.status?console.log("You step in the stream, but the water has moved on. This request does not exist."): 500==a.status&&console.log("An unexpected error occured on server while processing this request. Try Again."):"timeout"===b?console.log("Stay the patient course. Of little worth is your ire. The network is down."):"parsererror"===b&&console.log("Yesterday it worked. Today it is not working. The response from server couldn't be processed properly.")},beforeSend:function(a){a&&a.setRequestHeader("Accept","application/json")}})}}}(),Audio:function(){var b=null;return{setAudioFile:function(a){b=new Audio(J+ "/assets/share/audio/ping.mp3")},playMessagePing:function(c){if(b&&null!==b){var d=!0,e=0,f={};if(null!=c)if(qa){var g=da.getItem("msg-ping-details");a.String.isNotBlank(g)&&(f=JSON.parse(g),null!=f&&null!=f.date&&null!=f.ctr&&(new Date).toDateString()==(new Date(f.date)).toDateString()&&(e=parseInt(f.ctr)));e>=c&&(d=!1)}else console.log("Local storage not supported!");d&&((d=b.play())&&d["catch"](function(a){"NotAllowedError"!==a.name&&"NotSupportedError"!==a.name||console.log(a.name)}),qa&&null!= c&&(f.date=new Date,f.ctr=e+1,da.setItem("msg-ping-details",JSON.stringify(f))))}else a.Log.logMessage("No audio file found!",!0)}}}(),Validation:function(){return{validateEmail:function(a){return/^([a-zA-Z0-9_!#$%&'*+\/=?`{|}~^-]\.?)+@([A-Za-z0-9-]\.?)*[A-Za-z0-9-]+\.[A-Za-z]{2,10}$/.test(a)},validatePhone:function(b){return a.chatInstance.intlTel?a.chatInstance.intlTel.isValidNumber():/^\+?(-?[0-9]){9,15}$/.test(b)},validateDecimal:function(a){return/^[-+]?[0-9]+\.[0-9]+$/.test(a)},validateNumber:function(a){return/^[-+]?[0-9]+(\.?[0-9]+)*$/.test(a)}, validatePincode:function(a){return/^\d{6}$/.test(a)},validateTimeFormat:function(a){return/\d/.test(a)},validateMaxLength:function(a,b){return a<=parseInt(b)},validateMinLength:function(a,b){return a>=parseInt(b)},validateEqualLength:function(a,b){return a==parseInt(b)},validationEvent:function(c){var d=!0,e=!0;c=b(c).find("input[fieldType]");for(var f=0;fa?e.push("0"+a):e.push(a);return e},getCurrentTime:function(){var a=new Date;a.getDay();var b=a.getHours(),c=a.getMinutes();a.getSeconds();10>c&&(c="0"+c);var d=12>b?"am":"pm";a.getDate();a.getMonth();a.getFullYear();0==b&&(b=12);return N.today+" "+b+":"+c+" "+d},getDateString:function(a,b,c){b||(b="Do MMM");c||(c= "h:mm a");a=parseInt(a);return joeMoment().isSame(joeMoment(a),"day")?joeMoment(a-1E3).fromNow():joeMoment(a).format(b+", "+c)},getDateStringForMessageGrouping:function(a,b){var c=parseInt(a);return joeMoment(c).format(b)},isDateStringRelative:function(a){var b=!1;a.endsWith(N.ago)&&(b=!0);return b}}}(),openUrlInNewTab:function(a){(a=m.open(a,"_blank"))&&a.focus()},getNewUrl:function(a){var b=/:\/\//i;"/"==a.charAt(0)||b.test(a)||(a=ia+"//"+a);return a},getValueFromPage:function(c,d){var e=null,f= "";c&&(c.startsWith("css:")?(f=c.replace("css:",""),0>b/4).toString(16):(b^16*Math.random()>>b/4).toString(16)})},isNotBlank:function(a){return a&&null!== a&&"undefined"!==a&&""!==a.trim()},isBlank:function(b){return!a.String.isNotBlank(b)},sanitizeHTML:function(b){return a.String.isNotBlank(b)?sanitizeHtml(b,{allowedTags:sanitizeHtml.defaults.allowedTags.concat("address article aside footer header h1 h2 hgroup main nav section dd dl dt figcaption figure main bdi bdo cite data dfn kbd mark q rb rp rt rtc ruby s samp small span sub sup time u var wbr col colgroup tfoot img".split(" ")),allowedSchemesByTag:{a:["http","https","mailto","tel"]},allowedAttributes:{a:["href", "name","target","rel"],img:"src srcset alt title width height loading".split(" "),iframe:["src"],"*":["class","style"]}}):""}}}(),downloadFileHelper:function(a){if(Ta)m.open(a,"_blank");else{var b=e.createElement("a");b.href=a;b.id="downloadFileJoe";e.body.appendChild(b);b.click();e.body.removeChild(b)}},formatBytes:function(a,b){if(!a)return"0 Bytes";var c=b||2,d=Math.floor(Math.log(a)/Math.log(1024));return parseFloat((a/Math.pow(1024,d)).toFixed(c))+" "+"Bytes KB MB GB TB PB EB ZB YB".split(" ")[d]}, RemoteCall:function(){return{initCombined:function(b,c,d){a.Ajax.postJson(S+"/customer/v3/combined-init/"+(q?"?clientHash\x3d"+q:""),{cstmrHsh:b,botHsh:k,botVrsnNmbr:t,ndGrpHsh:u,chnlCstmrId:ja,pthNm:ba,href:V,usrAgnt:Z,rfrUrl:ga,email:H,idntfr:F,snId:C,prmsStr:B,prms:R,cntMsgToRtrv:1,ordrBy:"desc",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},{"External-Client-Id":y,"Product-Id":x,clntHsh:q,chnlSnId:K,sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData)},c,d)},initCustomer:function(b, c,d){a.Ajax.postJson(S+"/customer/v3/submit/initCustomer/"+(q?"?clientHash\x3d"+q:""),{cstmrHsh:b,botHsh:k,botVrsnNmbr:t,ndGrpHsh:u,chnlCstmrId:ja,pthNm:ba,href:V,usrAgnt:Z,rfrUrl:ga,email:H,idntfr:F,snId:C,prmsStr:B,prms:a.Options.getNewSessionParams()},{clntHsh:q,"External-Client-Id":y,"Product-Id":x,chnlSnId:K,sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData)},c,d)},initChatNextMessages:function(b,c){a.Ajax.postJson(S+"/ticket/v3/initChat/nextMessages/"+(q?"?clientHash\x3d"+q:""), {tcktHsh:a.chatInstance.lastHistoryAndInitChatMessage.tcktHsh,tcktMsgHsh:a.chatInstance.lastHistoryAndInitChatMessage.tcktMsgHsh,chnlSnId:a.chatInstance.lastHistoryAndInitChatMessage.rfChnlSnId},{clntHsh:q},b,c)},downloadFile:function(b,c,d){var e=q?"\x26clientHash\x3d"+q:"",f=a.readCookie("spd-custhash");a.Ajax.getJson(S+"/file/download/"+b+"?clntHsh\x3d"+q+e+(f?"\x26customerHash\x3d"+f:""),{clntHsh:q,"External-Client-Id":y,"Product-Id":x,chnlSnId:K},null,c,d)},sendFileMessage:function(b,c,d,g,h, l){c=new FormData(e.getElementById(c));c.joeAppendIfNotEmpty("fileName",a.chatInstance.uploadFileProp.name||"");c.joeAppendIfNotEmpty("clntHsh",q);c.joeAppendIfNotEmpty("External-Client-Id",y);c.joeAppendIfNotEmpty("Product-Id",x);c.joeAppendIfNotEmpty("cstmrHsh",b);c.joeAppendIfNotEmpty("chnlMsgIdntfr",d);c.joeAppendIfNotEmpty("botHsh",k);c.joeAppendIfNotEmpty("botVrsnNmbr",t);c.joeAppendIfNotEmpty("ndGrpHsh",u);c.joeAppendIfNotEmpty("prms",null==R?R:JSON.stringify(R));c.joeAppendIfNotEmpty("refTcktMsgHsh", g);d=q?"?clientHash\x3d"+q:"";b=f(b,d);a.Ajax.postFile(S+"/ticket/v3/submit/chat/file"+d+b,c,{sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData),chnlSnId:K,ws:"RTS"},h,l)},sendImageMessage:function(b,c,d,g,h,l){var m;c=a.chatInstance.uploadFileProp;var n=c.name||"",p=new FormData,r=e.getElementById("image-preview");m=r.naturalWidth;var s=e.createElement("canvas");3E3=m?.8:720>=m?.7:.6;s.getContext("2d").drawImage(r,0,0,s.width,s.height);s.toBlob(function(c){p.joeAppendIfNotEmpty("file",c);p.joeAppendIfNotEmpty("fileName",n);p.joeAppendIfNotEmpty("clntHsh",q);p.joeAppendIfNotEmpty("External-Client-Id",y);p.joeAppendIfNotEmpty("Product-Id",x);p.joeAppendIfNotEmpty("cstmrHsh",b);p.joeAppendIfNotEmpty("chnlMsgIdntfr",d);p.joeAppendIfNotEmpty("botHsh",k);p.joeAppendIfNotEmpty("botVrsnNmbr",t);p.joeAppendIfNotEmpty("ndGrpHsh", u);p.joeAppendIfNotEmpty("prms",null==R?R:JSON.stringify(R));p.joeAppendIfNotEmpty("refTcktMsgHsh",g);c=q?"?clientHash\x3d"+q:"";var e=f(b,c);a.Ajax.postFile(S+"/ticket/v3/submit/chat/file"+c+e,p,{sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData),chnlSnId:K,ws:"RTS"},h,l)},c.type,m)},postMessageToServer:function(b,c,d,e,g,h,l,m,n,p){d={clntHsh:q,"External-Client-Id":y,"Product-Id":x,botHsh:k,botVrsnNmbr:t,ndGrpHsh:u,cstmrHsh:b,pthNm:ba,href:V,prvt:g,refTcktMsgHsh:d,chnlMsgIdntfr:e,cntntTyp:m, ndId:h,defaultPrms:R,ndIntnt:l};"object"!=typeof c?d.msg=c:d.msgs=c;c=q?"?clientHash\x3d"+q:"";b=f(b,c);a.Ajax.postJson(S+"/ticket/v3/submit/chat/response/"+c+b,d,{sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData),chnlSnId:K,ws:"RTS"},function(a){"function"===typeof n&&n.call(this,a)},function(a){"function"===typeof p&&p.call(this,a)})},processPostDeferment:function(b,c,d,e,f,g,h,l,m,n){b={botHsh:k,botVrsnNmbr:t,chnlMsgIdntfr:e,cntntTyp:l,cntMsgToRtrv:1,chnlCstmrId:ja,cstmrHsh:b,clntHsh:q, email:H,"External-Client-Id":y,href:V,idntfr:F,"Product-Id":x,ndGrpHsh:u,ndId:g,prms:R,ndIntnt:h,ordrBy:"desc",pthNm:ba,defaultPrms:R,prvt:f,prmsStr:B,rfrUrl:ga,snId:C,refTcktMsgHsh:d,usrAgnt:Z};"object"!=typeof c?b.msg=c:b.msgs=c;a.Ajax.postJson(S+"/customer/v3/submit/post-deferment/"+(q?"?clientHash\x3d"+q:""),b,{"External-Client-Id":y,"Product-Id":x,clntHsh:q,sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData),chnlSnId:K,ws:"RTS"},function(a){"function"===typeof m&&m.call(this,a)},function(a){"function"=== typeof n&&n.call(this,a)})},closeChat:function(b,c,d){var e=q?"\x26clientHash\x3d"+q:"",g=f(b,e);a.Ajax.postJson(S+"/ticket/v3/closeChat/"+b+"?pthNm\x3d"+m.location.pathname+e+g,{},{clntHsh:q,"External-Client-Id":y,"Product-Id":x,sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData),chnlSnId:K},c,d)},rateChat:function(b,c,d,e,f){a.Ajax.postJson(S+"/ticket/v3/rateChat/"+(q?"?clientHash\x3d"+q:""),{tcktHsh:b,rtng:c,fdbck:d},{clntHsh:q,"External-Client-Id":y,"Product-Id":x,sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData), chnlSnId:K,ws:"RTS"},e,f)},msgFaqfeedback:function(b,c,d,e,g,h,k,l){var m={};m.cstmrHsh=c;m.tcktMsgHsh=d;m.enty=g;m.tcktMsgOptnId=h;"reviewFeedback"==b?m.rvw=e:"ratingFeedback"==b?m.rtng=e:m.answr=e;b=q?"?clientHash\x3d"+q:"";c=f(c,b);a.Ajax.postJson(S+"/feedback/record"+b+c,m,{sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData),"External-Client-Id":y,"Product-Id":x,clntHsh:q,chnlSnId:K,ws:"RTS"},k,l)},getHistoryAndInitiateChat:function(b,c,d,e,g){var h=q?"?clientHash\x3d"+q:"",l=f(b,h); a.Ajax.postJson(S+"/ticket/v3/getHistoryAndInitChat"+h+l,{cstmrHsh:b,botHsh:k,botVrsnNmbr:t,ndGrpHsh:u,pthNm:m.location.pathname,href:m.location.href,cntMsgToRtrv:c,prms:R,ordrBy:d},{clntHsh:q,"External-Client-Id":y,"Product-Id":x,sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData),chnlSnId:K,ws:"RTS"},e,g)},getPreviousMessages:function(b,c,d,e,g,h,l){var n=q?"?clientHash\x3d"+q:"",p=f(b,n);a.Ajax.getJson(S+"/ticket/v3/groupRsync"+n+p,{clntHsh:q,"External-Client-Id":y,"Product-Id":x,sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData), chnlSnId:K},{cstmrHsh:b,botHsh:k,botVrsnNmbr:t,pthNm:m.location.pathname,href:m.location.href,tcktMsgHsh:c,cntMsgToRtrv:d,xtrnlTcktId:R?R.xtrnlTcktId:null,ordrBy:e,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,event:g},h,l)},getMessageDetails:function(b,c,d){var e=q?"?clientHash\x3d"+q:"",g=a.readCookie("spd-custhash"),g=f(g,e);a.Ajax.getJson(S+"/ticket/v3/message/"+b+"/details"+e+g,{clnthsh:q,"External-Client-Id":y,"Product-Id":x,sn:a.Options.getDataStr(a.Options.reservedOptions.sessionData), chnlSnId:K},null,c,d,!1)},logChatOpen:function(b,c,d,e){var g=q?"?clientHash\x3d"+q:"",h=f(b,g);a.Ajax.getJson(S+"/customer/v3/"+b+"/log/chatOpen"+g+h,{clntHsh:q,"External-Client-Id":y,"Product-Id":x,chnlSnId:K},{pthNm:m.location.pathname,href:m.location.href,lstAgntMsgHsh:c},d,e)},sendInactivityAlert:function(b,c,d){var e=q?"?clientHash\x3d"+q:"",g=f(b,e);a.Ajax.getJson(S+"/customer/v3/inactivityAlert"+e+g,{clntHsh:q,"External-Client-Id":y,"Product-Id":x,chnlSnId:K},{cstmrHsh:b,pthNm:m.location.pathname, href:m.location.href},c,d)},logAction:function(b,c,d,e){a.Ajax.getJson(S+"/ticket/v3/logAction"+(q?"?clientHash\x3d"+q:""),{clntHsh:q,"External-Client-Id":y,"Product-Id":x,chnlSnId:K},{cstmrHsh:b,actnObjct:c,pthNm:m.location.pathname,href:m.location.href},d,e)},postActivity:function(b,c){a.Ajax.getJson(J+"/metrics/events/rts.json?clientHash\x3d"+q+"\x26customerHash\x3d"+b+"\x26event\x3d"+c)},updateTicketInfo:function(b,c,d,e,f){a.Ajax.postJson(S+"/ticket/v3/"+b+"/update/info?tcktMsgHsh\x3d"+c+(q? "\x26clientHash\x3d"+q:""),d,{"External-Client-Id":y,"Product-Id":x,clntHsh:q,ws:"RTS"},function(a){"function"===typeof e&&e.call(this,a)},function(a){"function"===typeof f&&f.call(this,a)})}}}(),joeMapify:function(){b.fn.mapify=function(a,c){var d=b(this).attr("id"),f=e.getElementById(d),g,h=b.extend({address:null,city:null,state:null,longitude:null,latitude:null,postalCode:null},a);if(null!=h.latitude&&null!=h.longitude){b(this).bind("keypress",function(a){if(13==a.which)return!1;g&&g.addClass("joe-pac"); return!0});b(this).bind("focusout",function(a){g&&g.removeClass("joe-pac")});var k=new google.maps.places.Autocomplete(f,c);google.maps.event.addDomListener(f,"focus",function(){g||(g=b(".pac-container").last());g.addClass("joe-pac");k.addListener("place_changed",function(){(new google.maps.Geocoder).geocode({address:f.value},function(b,c){if(c==google.maps.GeocoderStatus.OK){var d={adrs:null,cty:null,st:null,pncd:null,lon:null,lat:null,plcId:null},e=b[0].geometry.location,g=k.getPlace(),l=g.place_id; l&&(d.plcId=l);if(g=g.address_components){for(l=0;l=f&&(b(h).addClass("joe-hide"),b(k).addClass("joe-hide"));a.JoeCarousel.bindEvents(e,l)},bindEvents:function(d,f){b(e.body).on("touchstart",".image_slider"+f,function(d){var e=d.originalEvent.touches[0].clientX;this.ontouchend=function(d){if(0e?(a.JoeCarousel.onClickPrev(),c=b(".image_slider"+f)):d.clientXb?1:-1;l=-1*m*g;a.JoeCarousel.animate({duration:500,delta:function(a){return a},step:function(a){-1*parseInt(l+d*a*g*e)+280c?d.fn(this):d.inverse(this);case "\x3e\x3d":return a>=c?d.fn(this):d.inverse(this);case "\x26\x26":return a&&c?d.fn(this):d.inverse(this);case "||":return a||c?d.fn(this):d.inverse(this);default:return d.inverse(this)}});a.Handlebars.registerHelper("math",function(a,b,c,d){a=parseFloat(a);c=parseFloat(c);return{"+":a+ c,"-":a-c,"*":a*c,"/":a/c,"%":a%c}[b]});a.Handlebars.registerHelper("linkify",function(b,c){b&&(!0===c&&(b=b.replace(/(?:\r\n|\r|\n)/g,"\x3cbr\x3e")),b=b.replace(/^@(\w+)/gi,function(a){return'\x3cspan style\x3d"color:#007ab8;"\x3e'+a+"\x3c/span\x3e"}),0>b.indexOf("\x3c/a\x3e")&&(b=b.replace(/(?!(<((?!>).)*))((?:(http|https|Http|Https|rtsp|Rtsp):\/\/(?:(?:[a-zA-Z0-9\$\-\_\.\+\!\*\'\(\)\,\;\?\&\=]|(?:\%[a-fA-F0-9]{2})){1,64}(?:\:(?:[a-zA-Z0-9\$\-\_\.\+\!\*\'\(\)\,\;\?\&\=]|(?:\%[a-fA-F0-9]{2})){1,25})?\@)?)?((?:(?:[a-zA-Z0-9][a-zA-Z0-9\-]{0,64}\.)+(?:(?:aero|arpa|asia|a[cdefgilmnoqrstuwxz])|(?:biz|b[abdefghijmnorstvwyz])|(?:cat|com|coop|c[acdfghiklmnoruvxyz])|d[ejkmoz]|(?:edu|e[cegrstu])|f[ijkmor]|(?:gov|g[abdefghilmnpqrstuwy])|h[kmnrtu]|(?:info|int|i[delmnoqrst])|(?:jobs|j[emop])|k[eghimnrwyz]|(?:link|live|l[abcikrstuvy])|(?:mil|mobi|museum|m[acdghklmnopqrstuvwxyz])|(?:name|net|n[acefgilopruz])|(?:org|om)|(?:pro|p[aefghklmnrstwy])|qa|r[eouw]|s[abcdeghijklmnortuvyz]|(?:tel|travel|t[cdfghjklmnoprtvwz])|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw]))|(?:(?:25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9][0-9]|[1-9])\.(?:25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9][0-9]|[1-9]|0)\.(?:25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9][0-9]|[1-9]|0)\.(?:25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9][0-9]|[0-9])))(?:\:\d{1,5})?)(\/(?:(?:[a-zA-Z0-9\;\/\?\:\@\&\=\#\~\-\.\+\!\*\'\(\)\,\_])|(?:\%[a-fA-F0-9]{2}))*)?(?:\b|$)(?!(((?!<).)*>))|[\w.-]+@[\w.-]+\.[\w.-]+/gi, function(a){if(5d?(b=b.substring(c,d),new a.Handlebars.SafeString(b+"...")):new a.Handlebars.SafeString(b)});a.Handlebars.registerHelper("getLanguageBasedTerm",function(a){return N[a]});a.Handlebars.registerHelper("isResendOtpClicked",function(a){return"RESEND_OTP"===a&&wa.isResendOTPButtonClicked});a.Handlebars.registerHelper("stringConcatOnCondition",function(a,b,c,d,e){return d.concat(e,a?b:c)});a.Handlebars.registerHelper("getCurrentCounterValue",function(){var a=wa.counter;return 1>a/10? "0"+a:a});a.Handlebars.registerHelper("concat",function(a){return Array.prototype.slice.call(arguments,1,arguments.length-1).join(a)})})();var X=function(){return{setup:function(){var c='\x3cdiv id\x3d"fbots-wdgt" class\x3d"chat-container shadow-box joe-hide"\x3e\x3cdiv class\x3d"chat-header lg-header bg-header color-white font-2x joe-box"\x3e\x3cspan id\x3d\'unread-ctr\' class\x3d\'fa-stack fa-1x\'\x3e\x3ci class\x3d\'fa fa-comment fa-stack-2x\'\x3e\x3c/i\x3e \x3cstrong class\x3d\'fa-stack-1x fa-stack-text fa-inverse\'\x3e\x3c/strong\x3e\x3c/span\x3e\x3cdiv class\x3d"" id\x3d"min"\x3e\x3c/div\x3e\x3ci class\x3d"fa fa-comments fa-1x"\x3e\x3c/i\x3e '+ a.chatInstance.headerText+' \x3cspan id\x3d"o-c-icons"\x3e\x3ci class\x3d"fa fa-minus pull-right"\x3e\x3c/i\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"mobile-chat-container shadow-box joe-animated joe-slideInUp joe-hide" id\x3d"mobile-chat-container"\x3e\x3cdiv class\x3d"joe-msg-bubble-container joe-hide" style\x3d"position:absolute;z-index: 10000; width:100%; right:0; bottom:100%;"\x3e\x3cdiv style\x3d"display:block; padding: 15px; font-size: 12px; text-align:right;"\x3e\x3cdiv class\x3d"joe-msg-hovertext"\x3e\x3cspan class\x3d"msg-bubble-btnclose" style\x3d"position: absolute; right:0px; top:0px;"\x3e\x3ci class\x3d"fa fa-times-circle" aria-hidden\x3d"true"\x3e\x3c/i\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv style\x3d"position:relative; font-family: inherit; font-size:inherit;"\x3e\x3cspan id\x3d"joe-bubble-unread" class\x3d"joe-hide shadow-box"\x3e\x3c/span\x3e\x3ci class\x3d\'fa fa-comments\'\x3e\x3c/i\x3e\x3c/div\x3e\x3c/div\x3e', d='\x3ca href\x3d"'+a.chatInstance.messengerBubbleLink+'" target\x3d"_blank"\x3e\x3cdiv class\x3d"mobile-chat-container joe-fb-messenger" style\x3d"background-color: transparent;" id\x3d"mobile-chat-container"\x3e\x3cdiv class\x3d"joe-msg-bubble-container joe-hide" style\x3d"position:absolute;z-index: 10000; width:100%; right:0; bottom:100%;"\x3e\x3cdiv style\x3d"display:block; padding: 15px; font-size: 12px; text-align:right;"\x3e\x3cdiv class\x3d"joe-msg-hovertext"\x3e\x3cspan class\x3d"msg-bubble-btnclose" style\x3d"position: absolute; right:0px; top:0px;"\x3e\x3ci class\x3d"fa fa-times-circle" aria-hidden\x3d"true"\x3e\x3c/i\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/a\x3e'; a.chatInstance.chatContainerBasicHtml='\x3cdiv id\x3d"fbots-wdgt" class\x3d"chat-container shadow-box"\x3e\x3cdiv class\x3d"joe-msg-bubble-container joe-hide" style\x3d"position:absolute;z-index: 10000; width:100%; right:0; bottom:100%; cursor: pointer;"\x3e\x3cdiv style\x3d"display:block; padding: 15px; font-size: 12px; text-align:right;"\x3e\x3cdiv class\x3d"joe-msg-hovertext"\x3e\x3cspan class\x3d"msg-bubble-btnclose" style\x3d"position: absolute; right:0px; top:0px;"\x3e\x3ci class\x3d"fa fa-times-circle" aria-hidden\x3d"true"\x3e\x3c/i\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"chat-head"\x3e\x3cdiv class\x3d"chat-header lg-header bg-header color-white font-2x joe-box"\x3e\x3cspan id\x3d\'unread-ctr\' class\x3d\'fa-stack fa-1x\'\x3e\x3ci class\x3d\'fa fa-comment fa-stack-2x\'\x3e\x3c/i\x3e \x3cstrong class\x3d\'fa-stack-1x fa-stack-text fa-inverse\'\x3e\x3c/strong\x3e\x3c/span\x3e\x3cul id\x3d"widget-header"\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"chat-body" style\x3d"display:none; background-image: url('+ a.chatInstance.uiSettings.bgImage+')"\x3e\x3cdiv class\x3d"joe-chat-icon-header shadow-box" id\x3d"joe-chat-icon-header"\x3e\x3cul\x3e\x3c/div\x3e\x3cdiv class\x3d"joe-chat-body-overlay joe-hide" id\x3d"joe-chat-body-overlay"\x3e\x3c/div\x3e\x3cdiv class\x3d"chat-history"\x3e\x3cul class\x3d"joe-message-list"\x3e\x3c/ul\x3e\x3c/div\x3e\x3cdiv class\x3d"chat-footer" style\x3d"visibility: hidden;"\x3e\x3cdiv class\x3d"qck-rply-div"\x3e\x3c/div\x3e\x3cdiv class\x3d"" style\x3d"display: none; width:8%; text-align: center; vertical-align: bottom;"\x3e\x3c/div\x3e\x3cdiv class\x3d"fbots-chat-footer-main" id\x3d"agent-msg-submit"\x3e\x3cdiv class\x3d"text-box-wrp"\x3e \x3c/div\x3e\x3c/div\x3e'+ (a.chatInstance.uiSettings.rmvJoeBrndng?"":'\x3cdiv class\x3d"title-tag '+(ka?"in":"")+'" style\x3d"display: block !important;"\x3e\x3ca href\x3d"https://www.freshworks.com/freddy-ai-for-cx/self-service/chatbot-builder/" target\x3d"_blank" style\x3d"display:inline-block !important;"\x3e\x3cspan class\x3d"lt-grsy" style\x3d"display:inline-block !important;" charset\x3d\x3e\x3cspan\x3e\x26#9889;\x3c/span\x3e'+N.by+' \x3c/span style\x3d"display:inline-block !important;"\x3e '+N.freshworks+"\x3c/a\x3e\x3c/div\x3e")+ '\x3cdiv id\x3d"notification-placeholder" class\x3d"notification-placeholder"\x3e\x3c/div\x3e\x3cdiv style\x3d"display:none"\x3e\x3cimg src\x3d"'+J+'/assets/imgs/g3_icons/refresh_icon.svg" width\x3d"16" height\x3d"16" /\x3e\x3cimg src\x3d"'+J+'/assets/imgs/g3_icons/info_icon.svg" width\x3d"16" height\x3d"16" /\x3e\x3cimg src\x3d"'+J+'/assets/imgs/g3_icons/wifi_icon.svg" width\x3d"16" height\x3d"16" /\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e';this.appendStyleInHead(a.chatInstance.uiThemeCss);a.chatInstance.widgetFullScreen&& this.appendStyleInHead(".chat-container { right:0px !important; bottom: 0px !important; max-height: 100% !important;border-radius: 0px !important;} .chat-container .chat-footer, .chat-container .chat-header {border-radius: 0px !important;}");if("embedded"==a.chatInstance.uiSettings.mobileChatBoxStyle.toLowerCase()||"embedded"==a.chatInstance.uiSettings.webChatBoxStyle.toLowerCase())d=".chat-container { position: absolute !important; left:0px !important; top:0 !important; width:100% !important; display:block !important; box-shadow: none !important; border:none !important } .chat-container .chat-body{ display: block !important; } .chat-container #o-c-icons, .chat-container #unread-ctr{ display: none !important; }", a.chatInstance.uiSettings.showChatHeader||(d+=".chat-container .chat-header{ display: none !important; }"),this.appendStyleInHead(d),b(a.chatInstance.uiSettings.chatParentSelector).css("position","relative"),b(a.chatInstance.uiSettings.chatParentSelector).html(c);else{if(a.chatInstance.uiSettings.showMessengerBubble){b("body").append(d);b(".joe-fb-messenger").css("bottom",a.chatInstance.uiSettings.initHeightFromBottom+"px");a.chatInstance.headerText&&(c={response:a.chatInstance.headerText,publicNote:!0}, b(a.chatInstance.selectors.joeMsgBubbleContainer).replaceWith(a.HandlebarsHtml.Template.popupMessage(c)),b(".joe-fb-messenger .joe-msg-bubble-container").css("bottom","85%"),b(a.chatInstance.selectors.joeMsgBubbleContainer).css("width","150px"));this.movableMobileContainerBindEvent();return}b("body").append(c)}this.bindWindowEvents();this.bindDocumentEvents();a.RealTimeConnection.realtimeConnectOnInit&&!a.RealTimeConnection.isRealTimeConnectionPresent()&&"deferred-ticket-customer"!=a.chatInstance.customerHash? this.initiateRealTimeConnection(this.createSessionIfNeededAndShowWidget):this.createSessionIfNeededAndShowWidget();a.chatInstance.timestampUpdateTimeIntervalId=setInterval(function(){b(a.chatInstance.selectors.msgTimeElementWithRelativeTime).each(function(){b(this).text(a.Date.getDateString(b(this).attr(a.chatInstance.dataAttributes.msgTimestamp),a.chatInstance.dateFormat,a.chatInstance.timeFormat))})},a.chatInstance.timestampUpdateTimeIntervalPeriod)},triggerInitChatNextMessages:function(b){a.RemoteCall.initChatNextMessages(function(){a.chatInstance.lastHistoryAndInitChatMessage= null;b()},function(c){a.chatInstance.lastHistoryAndInitChatMessage=null;a.Log.logMessage("Error while initChat nextMessages. response: "+JSON.stringify(c));b()})},addWidgetHeader:function(c,d){var e={headerStngs:c,avatorIcon:d};b("#widget-header").replaceWith(a.HandlebarsHtml.Template.widgetHeader(e))},addWidgetMenu:function(c){c&&(c={menuIcns:c.icns},b("#joe-menu-dropdown").replaceWith(a.HandlebarsHtml.Template.widgetMenu(c)))},refreshChatHistory:function(){a.chatInstance.currConversation&&"deferred-ticket"=== a.chatInstance.currConversation||!b(a.chatInstance.selectors.chatContainer)||(b(a.chatInstance.selectors.joeChatBodyOverlay).removeClass("joe-hide"),b(a.chatInstance.selectors.joeChatBodyOverlay).append('\x3cdiv class\x3d"joe-loader joe-full"\x3e\x3c/div\x3e'),X.loadMorePreviousMsg())},handleMessagesFromSocket:function(c){var d=this;a.chatInstance.remainingTimer=a.chatInstance.timerStep-(Date.now()-a.chatInstance.startTimeInMS);a.chatInstance.timerStep=c&&c.tcktMsg&&c.tcktMsg.publicNote?0>a.chatInstance.remainingTimer? a.chatInstance.defaultMessageTimeGap:a.chatInstance.defaultMessageTimeGap+a.chatInstance.remainingTimer:a.chatInstance.remainingTimer+(Date.now()-a.chatInstance.startTimeInMS);a.chatInstance.startTimeInMS=Date.now();a.chatInstance.timerId=setTimeout(function(){c.cnvrstnHsh===a.chatInstance.currConversation&&d.onRealTimeMessageReceive.apply(d,[c])},a.chatInstance.timerStep+500);var f=c.tcktMsg&&"Customer"===c.tcktMsg.author;c.tcktMsg&&!c.tcktMsg.publicNote&&!c.tcktMsg.isMessageNode||f||setTimeout(function(){c.cnvrstnHsh=== a.chatInstance.currConversation&&d.onTypingMessageReceive.apply(d,[c])},a.chatInstance.timerStep);c.lastMessage&&setTimeout(function(){e.querySelector(".typing-container")&&e.querySelector(".typing-container").remove();var c={quickReplyList:a.chatInstance.lastPublicMessage&&a.chatInstance.lastPublicMessage.rplyMtdt?a.chatInstance.lastPublicMessage.rplyMtdt.qckRplyLst:null};b(".qck-rply-div").replaceWith(a.HandlebarsHtml.Template.quickReplyInputTemplate(c));a.chatInstance.lastPublicMessage&&a.chatInstance.lastPublicMessage.isMessageNode&& !a.chatInstance.lastPublicMessage.rstrctInpt&&!a.chatInstance.lastPublicMessage.assignedToAgent&&(c=a.chatInstance.lastPublicMessage.mtdt?a.chatInstance.lastPublicMessage.mtdt.fdbckStngs:null,Boolean(a.chatInstance.lastPublicMessage.mtdt&&a.chatInstance.lastPublicMessage.mtdt.faq_id&&a.chatInstance.lastPublicMessage.mtdt.faq_id.length&&c&&0 a.maxTextareaCharLength)return this.trimMsgAlert(),!1}}else if(c.type===a.chatInstance.message.type.image||c.type===a.chatInstance.message.type.file)if(!c.input.files||!c.input.files[0])return!1;c.type===a.chatInstance.message.type.text?c=this.appendToBeProcessedTextMessageToChatHistory(c):c.type===a.chatInstance.message.type.image||c.type===a.chatInstance.message.type.file?c=this.appendToBeProcessedFileMessageToChatHistory(c):c.type===a.chatInstance.message.type["private"]?c.refTmHash&&""!==c.refTmHash|| (c.refTmHash=a.chatInstance.latestAgentMessageHash):c.feedback===a.chatInstance.message.type.feedback?c.refTmHash&&""!==c.refTmHash||(c.refTmHash=a.chatInstance.latestAgentMessageHash):c.feedbackTmo!==a.chatInstance.message.type.feedbackTmo||c.refTmHash&&""!==c.refTmHash||(c.refTmHash=a.chatInstance.latestAgentMessageHash);if(!c)return!1;a.chatInstance.pendingMessageQueue.push(c);a.chatInstance.tempMessageObjectToBeSent=c;a.RealTimeConnection.isRealTimeConnectionPresent()||"deferred-ticket-customer"== a.chatInstance.customerHash?this.processPendingMessageQueue():this.initiateRealTimeConnection(this.processPendingMessageQueue)}else b(a.chatInstance.selectors.alertTextFooterInput).removeClass("hide")},processPendingMessageQueue:function(){if("deferred-ticket-customer"==a.chatInstance.customerHash||a.RealTimeConnection.rts.active&&a.RealTimeConnection.rts.connected)for(var c;0a/10?"0"+a:a},p=function(c){a.chatInstance.isButtonEnabled=!0;c.error?(b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+e+'"]').find(a.chatInstance.selectors.msgStatus).html(a.chatInstance.customTemplate.errorMessageIcon),b(a.chatInstance.selectors.inputSectionParent).find("select, input, .optionBtn, button, .selectize-control, .text-center, .joe-radio-list-btn, .joe-quickReplyList").css("visibility", "visible"),b(a.chatInstance.selectors.inputSectionParent).find(".input-widget-loader").addClass("hide"),console.log("Message send failed - ["+JSON.stringify(c.msgs)+"]")):(c=c.data,h.onTextMessageSendSuccess(e,c.ticketMessage.tcktMsgHsh),wa.isResendOTPButtonClicked&&!wa.isTimerRunning()&&m(),1>b(a.chatInstance.selectors.chatHistoryList).find("."+c.ticket.ticketHash).length&&b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+e+'"]').parent("li").before("\x3chr class\x3d'"+c.ticket.ticketHash+ "'/\x3e"))},q=function(c,d,e,f,g,k,l,m){if(c.error)b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+f+'"]').find(a.chatInstance.selectors.msgStatus).html(a.chatInstance.customTemplate.errorMessageIcon),b(a.chatInstance.selectors.inputSectionParent).find("select, input, .optionBtn, button, .selectize-control, .text-center, .joe-radio-list-btn, .joe-quickReplyList").css("visibility","visible"),b(a.chatInstance.selectors.inputSectionParent).find(".input-widget-loader").addClass("hide"), console.log("Message send failed - ["+JSON.stringify(c.msgs)+"]");else{var n=c.data.hstryAndIntCht;a.chatInstance.tempMessageObjectToBeSent.refTmHash=n.refTmHashPostDeferment||"";c=c.data.intCstmr;if(c.cstmr){e=c.cstmr.cstmrHsh;if("local_storage"===c.dtStr.toLowerCase()){if(!qa){console.log("Local storage not supported!");return}da.setItem("spd-custhash",e)}else qa&&da.removeItem("spd-custhash");a.readCookie("spd-custhash")!==e&&a.setCookieWithValidityInDays("spd-custhash",e,365)}a.RealTimeConnection.setConnectionParams(c); a.chatInstance.isButtonEnabled=!0;a.chatInstance.customerHash=c.cstmr.cstmrHsh;a.chatInstance.currConversation=n.cnvrstnHsh;a.chatInstance.shouldTriggerPostMessageToServer=!0;h.onTextMessageSendSuccess(f,n.cnvrstnHsh);1>b(a.chatInstance.selectors.chatHistoryList).find("."+n.cnvrstnHsh).length&&b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+f+'"]').parent("li").before("\x3chr class\x3d'"+n.cnvrstnHsh+"'/\x3e");h.initiateRealTimeConnection(function(){a.chatInstance.shouldTriggerPostMessageToServer&& (console.log("Realtime connection initated post deferment successfully.",!0),a.RemoteCall.postMessageToServer(a.chatInstance.customerHash,d,n.refTmHashPostDeferment,f,g,k,l,m,function(a){p(a)},function(a){s(a)}),console.log("Sent message to processed post deferment."),a.chatInstance.shouldTriggerPostMessageToServer=!1)})}},r=function(c){a.chatInstance.isButtonEnabled=!0;var d=b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+e+'"]');d.find(a.chatInstance.selectors.msgStatus).html(a.chatInstance.customTemplate.messageSendError); d.find(a.chatInstance.selectors.msgTimestamp).addClass("hide");b(a.chatInstance.selectors.inputSectionParent).find("select, input, .optionBtn, button, .selectize-control, .text-center, .joe-radio-list-btn, .joe-quickReplyList").css("visibility","visible");b(a.chatInstance.selectors.inputSectionParent).find(".input-widget-loader").addClass("hide");console.log("Message send failed - ["+JSON.stringify(c)+"]")},s=function(b){b&&b.status&&401==b.status?a.RemoteCall.postMessageToServer(a.chatInstance.customerHash, c,f,e,!1,k,l,g,function(a){p(a)},function(a){r(a)}):r(b)};a.chatInstance.customerHash&&"deferred-ticket-customer"!==a.chatInstance.customerHash?a.RemoteCall.postMessageToServer(a.chatInstance.customerHash,c,f,e,!1,k,l,g,function(a){p(a)},function(a){s(a)}):(a.chatInstance.isPostDefermentApiTriggered=!0,a.RemoteCall.processPostDeferment(a.chatInstance.customerHash,c,f,e,!1,k,l,g,function(a){q(a,c,f,e,!1,k,l,g)},function(b){b&&b.status&&401==b.status?a.RemoteCall.processPostDeferment(a.chatInstance.customerHash, c,f,e,!1,k,l,g,function(a){q(a,c,f,e,!1,k,l,g)},function(a){r(a)}):r(b)}))},onTextMessageSendSuccess:function(c,d){var e=b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+c+'"]');e.find(".msg-status").html(N.delivered+"\x26nbsp;\x26nbsp;");e.find(".msg-status").attr("class","font-sm msg-status fbots-delivered-status");e.attr("ticketMessageHash",d)},addImage:function(c,d,e){var f=this,g=function(c){var e=b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+d+'"]'); c.error?(e.find(a.chatInstance.selectors.msgStatus).html(a.chatInstance.customTemplate.errorMessageIcon),console.log("Message send failed - ["+c.error.msg+"]")):(c=c.data,f.onTextMessageSendSuccess(d,c.ticketMessage.tcktMsgHsh),1>b(a.chatInstance.selectors.chatHistoryList).find("."+c.ticket.ticketHash).length&&b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+d+'"]').parent("li").before("\x3chr class\x3d'"+c.ticket.ticketHash+"'/\x3e"))},h=function(c){b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+ d+'"]').find(a.chatInstance.selectors.msgStatus).html(a.chatInstance.customTemplate.errorMessageIcon);console.log("Error while inactivity call response: "+c)};a.RemoteCall.sendFileMessage(a.chatInstance.customerHash,"fileinfo",d,e,function(a){g(a)},function(b){b&&b.status&&401==b.status?a.RemoteCall.sendFileMessage(a.chatInstance.customerHash,"fileinfo",d,e,function(a){g(a)},function(a){h(a)}):h(b)});b(a.chatInstance.selectors.inputSectionParent).find(".image-preview-container").css("visibility", "hidden");b("#joeImgInp").val("")},addFile:function(c,d,f){var g=this,h=function(c){var f=b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+d+'"]');if(c.excp||c.error)f.find(a.chatInstance.selectors.msgStatus).html(a.chatInstance.customTemplate.errorMessageIcon),f.find(".file_loader").html("\x3cdiv class\x3d'broken_file'\x3e\x3c/div\x3e"),g.scrollToBottom(),console.log("Message send failed - ["+JSON.stringify(c.msgs)+"]"),b(a.chatInstance.selectors.inputSectionParent).find(".qck-rply-div").css("display", "block");else{c=c.data;f.find(".loader-text").replaceWith(c.ticketMessage.message);var h=c.ticketMessage.crtDtTmstmp,k=a.Date.getDateString(h,a.chatInstance.dateFormat,a.chatInstance.timeFormat),l="absolute";a.Date.isDateStringRelative(k)&&(l="relative");h={messageOutput:c.ticketMessage.message,timestampType:l,time:k,crtDtTmstmp:h,publicNote:!0,ticketMessageHash:"",hash:d,msgCntntTyp:c.ticketMessage.messageContentType,mtdt:c.ticketMessage.mtdt};h.mtdt&&h.mtdt.file&&h.mtdt.file.fileMetadata&&h.mtdt.file.fileMetadata.fileSize&& (h.mtdt.file.fileMetadata.fileSize=a.formatBytes(h.mtdt.file.fileMetadata.fileSize));b(f).parent("li.joe-clearfix").replaceWith(a.HandlebarsHtml.Template.customerMessage(h));g.onTextMessageSendSuccess(d,c.ticketMessage.tcktMsgHsh);1>b(a.chatInstance.selectors.chatHistoryList).find("."+c.ticket.ticketHash).length&&b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+d+'"]').parent("li").before("\x3chr class\x3d'"+c.ticket.ticketHash+"'/\x3e");var m=setInterval(function(){var c=e.getElementsByClassName("img-file").length; 0=e)c=f.getDate()+" "+a.LocaleUtils.monthNames[f.getMonth()]+" "+(f.getYear()+1900);else return null}else"time"==b(a.chatInstance.selectors.messageSendButton).attr("fieldType")?c=b("input.timepicker").val():"password"==b(a.chatInstance.selectors.messageTextarea).attr("fieldType")?(d="************",c=b(a.chatInstance.selectors.messageTextarea).val()):c="phone"==b(a.chatInstance.selectors.messageTextarea).attr("fieldType")? a.chatInstance.intlTel?a.chatInstance.intlTel.getNumber():b(a.chatInstance.selectors.messageTextarea).val():b(a.chatInstance.selectors.messageTextarea).val();"/closeChat"==c?this.endChatAlert():"feedback"==b(a.chatInstance.selectors.messageTextarea).attr("fieldType")?(b(a.chatInstance.selectors.messageTextarea).val(""),this.createConnectionIfNeededAndSendMessage({type:a.chatInstance.message.type.reviewFeedback,customerHash:a.chatInstance.customerHash,refTmhash:b(this).attr("ticket-message-hash"), rvw:c,enty:"TICKET_MESSAGE",tcktMsgOptnId:null,inputRef:this})):this.createConnectionIfNeededAndSendMessage({type:a.chatInstance.message.type.text,messageToSend:c,displayText:d})},addMessageOnListClick:function(c,d){b(a.chatInstance.selectors.messageTextarea).val("");this.createConnectionIfNeededAndSendMessage({type:a.chatInstance.message.type.text,messageToSend:c,displayText:d})},addMessageOnRadioClick:function(b){this.createConnectionIfNeededAndSendMessage({type:a.chatInstance.message.type.text, messageToSend:b})},sendMenuItem:function(c){b(a.chatInstance.selectors.messageTextarea).val("");this.createConnectionIfNeededAndSendMessage({type:a.chatInstance.message.type.text,messageToSend:c})},endChatAlert:function(){b(a.chatInstance.selectors.joeChatBodyOverlay).replaceWith(a.HandlebarsHtml.Template.endChatConfirmation({}))},endChat:function(){var c=this;a.RemoteCall.closeChat(a.chatInstance.customerHash,function(d){if(d.excp)console.log("Message send failed - ["+JSON.stringify(d.msgs)+"]"), b(a.chatInstance.selectors.joeChatBodyOverlay).find(".joe-end-chat-alert *").css("display","block"),b(a.chatInstance.selectors.joeChatBodyOverlay).find(".joe-end-chat-alert").children(".input-widget-loader").css("display","none");else{var e={replyContentType:"new_chat",message:"Hi",isMob:ka};b(a.chatInstance.selectors.inputSection).replaceWith(a.HandlebarsHtml.Template.inputSection(e));c.setChatHistoryHeight();d={tcktHsh:d.tcktHsh};b(a.chatInstance.selectors.joeChatBodyOverlay).replaceWith(a.HandlebarsHtml.Template.rateTemplate(d))}})}, sendAppRating:function(c){a.RemoteCall.rateChat(b("#ticket-hash-rate").attr("data-ticket"),c,null,function(b){b.excp?console.log("Ticket rating failed - ["+JSON.stringify(b.msgs)+"]"):a.chatInstance.isRated=!0})},sendMsgFeedback:function(c,d,e,f,g,h,k){var l=this;b(a.chatInstance.selectors.inputSectionParent).find(".qck-rply-div").css("display","none");a.RemoteCall.msgFaqfeedback(c,d,e,f,g,h,function(c){c.excp?(console.log("Ticket rating failed - ["+JSON.stringify(c.msgs)+"]"),b(a.chatInstance.selectors.alertTextFooterInput).removeClass("hide"), b(a.chatInstance.selectors.inputSectionParent).find(".input-widget-loader").addClass("hide"),b(k).parent("div").css("visibility","visible")):(b(a.chatInstance.selectors.alertTextFooterInput).addClass("hide"),b(a.chatInstance.selectors.inputSectionParent).find(".input-widget-loader").addClass("hide"),b(a.chatInstance.selectors.inputSectionParent).find(".feedback-box-wrp").css("display","block").children(".fdbk-msg").html(N.thanks_for_feedback),a.chatInstance.isIntentFdbck?(b(a.chatInstance.selectors.inputSectionParent).find(".fdbk-opt").closest(".text-box-wrp").css("display", "none"),a.chatInstance.isIntentFdbck=null):b(a.chatInstance.selectors.inputSectionParent).find(".text-box-wrp").css("display","none"),l.setChatHistoryHeight())},function(c){b(a.chatInstance.selectors.alertTextFooterInput).removeClass("hide");b(a.chatInstance.selectors.inputSectionParent).find(".input-widget-loader").addClass("hide");b(k).parent("div").css("visibility","visible")})},sendMsgTmoFeedback:function(c,d,e,f,g,h,k){a.RemoteCall.msgFaqfeedback(c,d,e,f,g,h,function(a){a.excp?(console.log("Ticket rating failed - ["+ JSON.stringify(a.msgs)+"]"),b(k).parents(".joe-faq-item-full").find(".tmo-feedback-error").removeClass("hide"),b(k).parent(".tmo-feedback-div").removeClass("hide")):(b(".tmo-feedbadk-error").addClass("hide"),a=b(k).parents(".joe-faq-item-full"),b(k).parents(".joe-faq-item-full").find(".tmo-feedback-div").removeClass("hide").html(N.thanks_for_feedback),a.clone().prependTo(".chat-container"),a.remove(),b(".chat-container .joe-faq-item-full").addClass("joe-hide"))},function(a){b(k).parents(".joe-faq-item-full").find(".tmo-feedback-error").removeClass("hide"); b(k).parent(".tmo-feedback-div").removeClass("hide")})},sendVisitorActionMessage:function(){null!=a.chatInstance.visitorActionMessageHash&&a.chatInstance.visitorActionMessageHash==a.chatInstance.latestAgentMessageHash&&(this.createConnectionIfNeededAndSendMessage({type:a.chatInstance.message.type["private"],messageToSend:"WIDGET_OPENED_BY_VISITOR"}),a.chatInstance.visitorActionMessageHash=null,a.chatInstance.actionType=null)},sendAppFeedback:function(c,d){var e=this;b(a.chatInstance.selectors.inputSection).find(".input-widget-loader").removeClass("hide"); b(a.chatInstance.selectors.inputSection).find("select, input, .optionBtn, button, .selectize-control, .text-center, .joe-radio-list-btn").css("visibility","hidden");a.RemoteCall.rateChat(b("#ticket-hash-rate").attr("data-ticket"),c,d,function(c){c.excp?(console.log("Message send failed - ["+JSON.stringify(c.msgs)+"]"),b(a.chatInstance.selectors.joeChatBodyOverlay).removeClass("hide"),b(a.chatInstance.selectors.inputSection).find(".input-widget-loader").addClass("hide"),b(a.chatInstance.selectors.inputSection).find("select, input, .optionBtn, button, .selectize-control, .text-center, .joe-radio-list-btn").css("visibility", "visible")):(setTimeout(function(){b(a.chatInstance.selectors.joeChatBodyOverlay).addClass("hide");e.toggleChatOpen()},2500),b(a.chatInstance.selectors.inputSection).find(".input-widget-loader").addClass("hide"),b(a.chatInstance.selectors.inputSection).find("select, input, .optionBtn, button, .selectize-control, .text-center, .joe-radio-list-btn").css("visibility","visible"),c={key:"Thanks for your feedback.",translatedValue:N.thanks_for_feedback},b(a.chatInstance.selectors.joeChatBodyOverlay).html(a.HandlebarsHtml.Template.dateTemplate(c)), e.scrollToBottom())})},onEnterPressOnSelect:function(c){if(!a.chatInstance.selectizeRef.isOpen||!a.chatInstance.selectizeRef.$activeOption){var d=b("div.selectize-dropdown-content div.option.selected");null!=a.chatInstance.selectizeDefaultVal&&""!=a.chatInstance.selectizeDefaultVal&&1==d.length&&a.chatInstance.selectizeDefaultVal==d.attr("data-value")?a.chatInstance.selectizeRef[0].selectize.setValue(d.attr("data-value")):(b(c.currentTarget).val(""),"single"===a.chatInstance.selectizeRef[0].selectize.settings.mode&& a.chatInstance.selectizeRef[0].selectize.open())}},frameLooper:function(a){var c=this;0/g,"\x26gt;")},resetMonthSelect:function(c){var d=a.Date.getMonthsForYear(parseInt(c.val()),a.Date.getDateMonthYearTime(b(a.chatInstance.selectors.rangeHiddenInput).attr("data-start-date")), a.Date.getDateMonthYearTime(b(a.chatInstance.selectors.rangeHiddenInput).attr("data-end-date"))),e="";b.each(d,function(a,b){e+="\x3coption\x3e"+d[a]+"\x3c/option\x3e"});b(a.chatInstance.selectors.monthSelect).empty().append(e);this.resetDateSelect(b(a.chatInstance.selectors.monthSelect))},resetDateSelect:function(c){var d=a.Date.getDatesForYearAndMonth(parseInt(b(a.chatInstance.selectors.yearSelect).val()),c.val(),a.Date.getDateMonthYearTime(b(a.chatInstance.selectors.rangeHiddenInput).attr("data-start-date")), a.Date.getDateMonthYearTime(b(a.chatInstance.selectors.rangeHiddenInput).attr("data-end-date"))),e="";b.each(d,function(a,b){e+="\x3coption\x3e"+d[a]+"\x3c/option\x3e"});b(a.chatInstance.selectors.dateSelect).empty().append(e)},addHeaderIcons:function(a){return""},toggleChatOpen:function(){var c=this;b(a.chatInstance.selectors.joeMsgBubbleContainer).addClass("joe-hide");a.chatInstance.forceOpenEnable=!1;c.isChatMinimized()||parent.postMessage({chat_minimized:!0,source:"bot_widget"},"*");c.isChatMinimized()&& "WIDGET_OPENED"===a.chatInstance.actionType&&c.sendVisitorActionMessage();if("embedded"!=a.chatInstance.uiSettings.mobileChatBoxStyle.toLowerCase()&&"embedded"!=a.chatInstance.uiSettings.webChatBoxStyle.toLowerCase()){var d,e={};c.isChatMinimized()?a.setValueForKeyInCookie("wdgtOpnPrf","1","joe-custinfo"):a.setValueForKeyInCookie("wdgtOpnPrf","0","joe-custinfo");if(ka){if(c.isChatMinimized()){if(b(a.chatInstance.selectors.unreadCtr).find("strong").text(""),b(a.chatInstance.selectors.unreadBubbleCtr).text(""), c.resetPageTitle(),b(a.chatInstance.selectors.unreadCtr).addClass("hide"),b(a.chatInstance.selectors.unreadBubbleCtr).addClass("joe-hide"),b(a.chatInstance.selectors.header).find(".fa-ellipsis-v").parents("a").removeClass("hide"),d="100%",b(a.chatInstance.selectors.chatContainer).css({"-webkit-overflow-scrolling":"touch"}),"bubble"==a.chatInstance.uiSettings.mobileChatBoxStyle.toLowerCase()||"bubble"==a.chatInstance.uiSettings.webChatBoxStyle.toLowerCase())b(a.chatInstance.selectors.chatContainer).show(), b("#mobile-chat-container").addClass("joe-hide")}else if(b(a.chatInstance.selectors.header).find(".fa-ellipsis-v").parents("a").addClass("hide"),b(a.chatInstance.selectors.chatContainer).css({"-webkit-overflow-scrolling":"auto"}),d="200px","bubble"==a.chatInstance.uiSettings.mobileChatBoxStyle.toLowerCase()||"bubble"==a.chatInstance.uiSettings.webChatBoxStyle.toLowerCase())b(a.chatInstance.selectors.chatContainer).animate({opacity:"0"},500),b(a.chatInstance.selectors.chatContainer).hide(),b("#mobile-chat-container").removeClass("joe-hide"); e={width:d,maxHeight:"100%",right:0,bottom:0}}else{if(c.isChatMinimized()){b(a.chatInstance.selectors.unreadCtr).find("strong").text("");b(a.chatInstance.selectors.unreadBubbleCtr).text("");c.resetPageTitle();b(a.chatInstance.selectors.unreadCtr).addClass("hide");b(a.chatInstance.selectors.unreadBubbleCtr).addClass("joe-hide");b(a.chatInstance.selectors.header).find(".fa-ellipsis-v").parents("a").removeClass("hide");d="390px";if("bubble"==a.chatInstance.uiSettings.mobileChatBoxStyle.toLowerCase()|| "bubble"==a.chatInstance.uiSettings.webChatBoxStyle.toLowerCase())b(a.chatInstance.selectors.chatContainer).show(),b("#mobile-chat-container").addClass("joe-hide");e="RIGHT"!=a.chatInstance.uiSettings.widgetPosition&&a.chatInstance.uiSettings.widgetPosition?{left:a.chatInstance.uiSettings.widgetMargin?a.chatInstance.uiSettings.widgetMargin:30}:{right:a.chatInstance.uiSettings.widgetMargin?a.chatInstance.uiSettings.widgetMargin:30}}else if(b(a.chatInstance.selectors.header).find(".fa-ellipsis-v").parents("a").addClass("hide"), d="200px","bubble"==a.chatInstance.uiSettings.mobileChatBoxStyle.toLowerCase()||"bubble"==a.chatInstance.uiSettings.webChatBoxStyle.toLowerCase())b(a.chatInstance.selectors.chatContainer).animate({opacity:"0"},500),b(a.chatInstance.selectors.chatContainer).hide(),b("#mobile-chat-container").removeClass("joe-hide");e.width=d;e.bottom=a.chatInstance.uiSettings.widgetBottom}b(a.chatInstance.selectors.chatContainer).css(e);ka&&a.chatInstance.openOnDefault?b(a.chatInstance.selectors.chatContainer).css("opacity", "0").animate({opacity:"1"},0):b(a.chatInstance.selectors.chatContainer).css("opacity","0").animate({opacity:"1"},500);b(".chat-body").toggle(0,function(){c.setChatHistoryHeight();c.isOverlayPresent()||ka||b(a.chatInstance.selectors.inputSection).find("input").focus();c.scrollToBottom();c.removeNewMessageTag()})}},isOverlayPresent:function(){return b(a.chatInstance.selectors.joeChatBodyOverlay).is(":visible")},messageTimediff:function(c,d){var e=0,e=d?parseInt(b(a.chatInstance.selectors.chatHistoryList).find(".joe-message:last .joe-msg-time").attr("data-msg-timestamp")): parseInt(b(a.chatInstance.selectors.chatHistoryList).find(".joe-message:first .joe-msg-time").attr("data-msg-timestamp"));return 6E4a.chatInstance.latestTicketMessageTimeStamp&&(a.chatInstance.isAssignedToAgent=c&&c.assignedToAgent||!1,a.chatInstance.latestTicketMessageTimeStamp= c.crtDtTmstmp),c&&c.messageList&&c.messageList.length?(e.messageOutput=c.messageList,e=a.HandlebarsHtml.Template.customerMultiMessage(e)):(e.messageOutput=this.htmlToString(c.message),c.mtdt&&(e.mtdt=c.mtdt),e.mtdt&&e.mtdt.file&&e.mtdt.file.fileMetadata&&e.mtdt.file.fileMetadata.fileSize&&(e.mtdt.file.fileMetadata.fileSize=a.formatBytes(e.mtdt.file.fileMetadata.fileSize)),e=a.HandlebarsHtml.Template.customerMessage(e));else if("agent"===c.author.toLowerCase()||"bot"===c.author.toLowerCase()){var g= null;c.ticketMessageOptions&&0h&&(h=k.id,m=k,n=k.tcktMsgHsh,p="bot"===k.author.toLowerCase());-1==D.indexOf(k.tcktMsgHsh)?(D.push(k.tcktMsgHsh),f.renderMessageReceivedFromServer.apply(f,[k,g])):a.Log.logMessage("Skip history render message \x3d\x3e hash: "+k.tcktMsgHsh,!0)});c&&(f.addDateInChatHistory(d, !1),fa[d]=d);n&&p&&h>a.chatInstance.latestMessageObject.id&&(a.chatInstance.latestAgentMessageHash=n,a.chatInstance.latestMessageObject=m);a.chatInstance.load=!0}});c||d?(e=0,b(a.chatInstance.selectors.chatHistory).find(".joe-message-list")&&0b(a.chatInstance.selectors.chatHistoryList).find(".joe-new-message").length&& b(a.chatInstance.selectors.chatHistoryList).find(".joe-message-group:last").append(a.HandlebarsHtml.Template.newMessageTemplate({key:"New Messages"}));(!c.publicNote&&!c.isMessageNode||c.publicNote)&&b(a.chatInstance.selectors.chatHistory).find(".joe-typing[typingId\x3d'"+a.chatInstance.typingId+"']").remove();"agent"===c.author.toLowerCase()&&(d.isAgent=!0);b(a.chatInstance.selectors.chatHistoryList).find(".joe-message-group:last").append(a.HandlebarsHtml.Template.agentMessage(d));c.actns&&(!c.rfChnlSnId|| K&&c.rfChnlSnId===K.toString())&&this.handleMessageActions(c);b(a.chatInstance.selectors.sliderContainer).find(".joe-prmry-btn:not(.hide-post-sbmt)").removeClass("joe-hide");c.ticketMessageOptions&&0b(a.chatInstance.selectors.chatHistoryList).find("."+g.tcktHsh).length&&b(a.chatInstance.selectors.chatHistoryList).append("\x3chr class\x3d'"+g.tcktHsh+"'/\x3e"),"customer"===g.author.toLowerCase()){if(g.publicNote&&c.chnlMsgIdntfr){if((f=b(a.chatInstance.selectors.chatHistory).find('.my-message[hash\x3d"'+c.chnlMsgIdntfr+'"]'))&&0Math.round(.9*a.maxTextareaCharLength)&& b(".fbots-chat-footer-main").prepend('\x3cspan id\x3d"joe-text-counter" class\x3d"font-1x lt-grsy" style\x3d"padding-left:15px;"\x3e0/'+a.maxTextareaCharLength+"\x3c/span\x3e");var d=c+"/"+a.maxTextareaCharLength;c>a.maxTextareaCharLength?(b("#joe-text-counter").addClass("joe-text-red"),d=c+"/"+a.maxTextareaCharLength+N.max_character_limit_exceeded):(c===a.maxTextareaCharLength&&(d=c+"/"+a.maxTextareaCharLength+N.max_character_limit_reached),b("#joe-text-counter").removeClass("joe-text-red"),b(a.chatInstance.selectors.messageTextarea).attr("maxlength", a.maxTextareaCharLength));b("#joe-text-counter").html(d)},setChatHistoryHeight:function(c){var d,e;!this.isChatMinimized()&&0d||a.chatInstance.widgetFullScreen?d-f-g-h-e:799-f-g-h-e;c?b(a.chatInstance.selectors.chatHistory).outerHeight(c,!0):b(a.chatInstance.selectors.chatHistory).outerHeight(d,!0);c=(c=b("head").find('meta[author\x3d"freshbots"]'))&&c.length&&0b("#"+a+" li.active").length)&&b(".fbot-bottom-list").addClass("hide")):(b("#"+a).addClass("hide"),b(".fbot-bottom-list").addClass("hide"))},keyNavigation:function(a,c){38===c.keyCode?(c.preventDefault(),b("#"+a+" li.active").prevAll(":not('.hide'):eq(0)").addClass("active"),b("#"+a+" li.active").nextAll().removeClass("active"),b("#"+a).scrollTop(b("#"+a).scrollTop()-b("#"+a).offset().top+b("#"+a+" li.active").offset().top)):40===c.keyCode?(b("#"+ a+" li.active").nextAll(":not('.hide'):eq(0)").addClass("active"),b("#"+a+" li.active").prevAll().removeClass("active"),b("#"+a).scrollTop(b("#"+a).scrollTop()-b("#"+a).offset().top+b("#"+a+" li.active").offset().top)):13===c.keyCode&&(b("#Bots-List-Items").is(":visible")?this.addValueToInput(b("#"+a+" li.active").attr("sendText")):this.addMessageOnListClick(b("#"+a+" li.active").attr("sendText"),b("#Slsh-Cmnds-List-Items li.active").attr("sendText")),b("#"+a).addClass("hide"))},addValueToInput:function(c){b(a.chatInstance.selectors.messageTextarea).val("@"+ c+" ")},movableMobileContainerBindEvent:function(){b(e.body).on("touchstart","#mobile-chat-container",function(){var c=this;c.style.position="fixed";e.ontouchmove=function(d){if(1==d.touches.length){var e=d.touches[0];c.style.position="fixed";e.clientX<=m.innerWidth-25&&26<=e.clientX&&e.clientY<=m.innerHeight-25&&26<=e.clientY&&(c.style.left=e.clientX-25+"px",c.style.bottom=m.innerHeight-e.clientY-25+"px",b(a.chatInstance.selectors.joeMsgBubbleContainer).addClass("joe-hide"));d.preventDefault()}}; c.ontouchend=function(a){0m.innerHeight&&c.setChatHistoryHeight()});b(e.body).on("click",a.chatInstance.selectors.optionRadioButton, function(){c.addMessageOnRadioClick(b(this).find(".option-to-send").attr("value"))});b(e.body).on("click",a.chatInstance.selectors.joeChatBodyOverlay,function(){b(this).hasClass("prevent-hide")||b(a.chatInstance.selectors.joeChatBodyOverlay).addClass("joe-hide")});b(e.body).on("click","#joe-chat-body-overlay \x3e",function(a){a.stopPropagation()});b(e.body).on("click",a.chatInstance.selectors.joeChatFullBodyOverlay,function(){b(a.chatInstance.selectors.joeChatFullBodyOverlay).addClass("joe-hide")}); b(e.body).on("click","#joe-chat-full-body-overlay \x3e",function(a){a.stopPropagation()});b(e.body).on("click",".joe-quickReplyList",function(){c.createConnectionIfNeededAndSendMessage({type:a.chatInstance.message.type.text,messageToSend:b(this).attr("value"),displayText:b(this).text(),quickReplyButtonType:b(this).attr("id"),skipValidation:!0});b(".chat-container .nio-btn").remove();b(".chat-container .carousel-multi-select-btn").remove()});b(e.body).on("click","#strt-new-chat",function(){c.createConnectionIfNeededAndSendMessage({type:a.chatInstance.message.type.text, messageToSend:"Hi"})});b(e.body).on("click",a.chatInstance.selectors.joeChatEndYesBtn,function(){b(a.chatInstance.selectors.joeChatBodyOverlay).find(".joe-end-chat-alert *").css("display","none");b(a.chatInstance.selectors.joeChatBodyOverlay).find(".joe-end-chat-alert").children(".input-widget-loader").css("display","block");c.endChat()});b(e.body).on("click","#joe-star-rate i",function(){b(a.chatInstance.selectors.joeStarRate).find("i").removeClass("joe-star-active");b(a.chatInstance.selectors.joeStarRate).find(".joe-text-div").removeClass("joe-red-alert-text"); b(this).nextAll("i").addClass("joe-star-active");b(this).addClass("joe-star-active");c.sendAppRating(b(a.chatInstance.selectors.joeStarRate).find("i").length-b(this).index()+1)});b(e.body).on("click",a.chatInstance.selectors.joeFeedbackBtn,function(){0d.size&&g;d.name.substring(d.name.lastIndexOf(".")+1).toLowerCase();h?(b(".joe-input-fileSizeError").addClass("joe-hide"),b(".joe-input-imageSizeError").addClass("joe-hide"),b(".joe-input-unsupportedFileError").addClass("joe-hide"),g=new FileReader,g.onload=function(c){var e={fileSrc:d.name};b(a.chatInstance.selectors.fileUploadInputBox).addClass("joe-hide"); b(a.chatInstance.selectors.textBoxWrap).addClass("joe-hide");b(".joe-input-unsupportedFileError").addClass("joe-hide");f?(b("#image-preview").attr("src",c.target.result),b(a.chatInstance.selectors.imagePreviewContainer).removeClass("joe-hide")):(b(a.chatInstance.selectors.filePreviewContainer).removeClass("joe-hide"),b(a.chatInstance.selectors.fileName).text(e&&e.fileSrc),b(a.chatInstance.selectors.fileName).attr("title",e&&e.fileSrc))},g.onloadend=function(a){f?e.getElementById("image-preview").onload= function(){c.setChatHistoryHeight()}:c.setChatHistoryHeight()},g.readAsDataURL(this.files[0])):g?(b(".joe-input-unsupportedFileError").addClass("joe-hide"),f?(b(".joe-input-imageSizeError").removeClass("joe-hide"),b(".joe-input-fileSizeError").addClass("joe-hide")):(b(".joe-input-fileSizeError").removeClass("joe-hide"),b(".joe-input-imageSizeError").addClass("joe-hide"))):(b(".joe-input-fileSizeError").addClass("joe-hide"),b(".joe-input-imageSizeError").addClass("joe-hide"),b(".joe-input-unsupportedFileError").removeClass("joe-hide"))}}); b(e.body).on("click","#joe-chat-send-file-yes",function(){b(a.chatInstance.selectors.inputSectionParent).find(".image-preview-container").addClass("joe-hide");b(a.chatInstance.selectors.inputSectionParent).find(".file-preview-container").addClass("joe-hide");1==a.chatInstance.isAssignedToAgent&&(b(a.chatInstance.selectors.fileUploadInputBox).removeClass("joe-hide"),b(a.chatInstance.selectors.textBoxWrap).removeClass("joe-hide"),c.setChatHistoryHeight());0=b?30:5===b?60:6===b?90:7===b?120:8===b?150:9===b?180:300;c.setChatHistoryHeight();c.scrollToBottom();12<=b||setTimeout(e, d)};setTimeout(function(){e()},30)}catch(f){console.log(f)}})):(b(e.body).on("focusin",d,function(c){a.chatInstance.lastChatHistoryHeight=b(a.chatInstance.selectors.chatHistory).outerHeight(!0)}),b(e.body).on("focusout",d,function(b){c.setChatHistoryHeight(a.chatInstance.lastChatHistoryHeight);c.scrollToBottom()}))}b(e.body).on("click","#joe-trim-yes",function(d){d=b(a.chatInstance.selectors.messageTextarea).val();d=d.slice(0,a.maxTextareaCharLength);b(a.chatInstance.selectors.messageTextarea).val(d.slice(0, a.maxTextareaCharLength));c.setRemainingTextCount(a.maxTextareaCharLength);b(a.chatInstance.selectors.joeChatBodyOverlay).addClass("joe-hide")});b(e.body).on("click","#joe-trim-no",function(c){b(a.chatInstance.selectors.joeChatBodyOverlay).addClass("joe-hide")});b(e.body).on("paste",a.chatInstance.selectors.messageTextarea,function(d){d=(d.clipboardData||d.originalEvent.clipboardData||m.clipboardData).getData("text").length+b(a.chatInstance.selectors.messageTextarea).val().length;b(a.chatInstance.selectors.messageTextarea).attr("maxlength", d);d>=a.maxTextareaCharLength&&(c.trimMsgAlert(),c.setRemainingTextCount(d),c.setChatHistoryHeight(),c.scrollToBottom())});b(e.body).on("keydown",a.chatInstance.selectors.messageTextarea,function(a){if(b("#Slsh-Cmnds-List-Items").is(":visible")||b("#Bots-List-Items").is(":visible"))38!==a.keyCode&&40!==a.keyCode||a.preventDefault()});b(e.body).on("keyup",a.chatInstance.selectors.messageTextarea,function(d){b(a.chatInstance.selectors.alertTextFooterInput).addClass("hide");b(this).removeClass("joe-text-red"); b(this).parents('div[class^\x3d"text-box-wrp"]').removeClass("joe-border-red");if(38!==d.keyCode&&40!==d.keyCode&&13!==d.keyCode){var e=null,f=null;"/"==b(this).val().charAt(0)?(e="Slsh-Cmnds-List-Items",f="/"):"@"==b(this).val().charAt(0)&&(e="Bots-List-Items",f="@");c.slshMsgList(e,this,f,d)}"/"==b(this).val().charAt(0)&&b("#Slsh-Cmnds-List-Items").is(":visible")?c.keyNavigation("Slsh-Cmnds-List-Items",d):"@"==b(this).val().charAt(0)&&b("#Bots-List-Items").is(":visible")?c.keyNavigation("Bots-List-Items", d):(13===d.keyCode&&c.addMessage(),a.chatInstance.cacheMessage=b(a.chatInstance.selectors.messageTextarea).val(),c.setRemainingTextCount(a.chatInstance.cacheMessage.length));c.setChatHistoryHeight();c.scrollToBottom()});e.addEventListener("scroll",function(d){b(d.target).is(".joe-message-list")&&"0"==b(d.target).scrollTop()&&a.chatInstance.load&&b(a.chatInstance.selectors.chatHistory).find(".joe-message-list")[0].scrollHeight>b(a.chatInstance.selectors.chatHistory).find(".joe-message-list").height()+ 20&&(0===e.getElementsByClassName("joe-loader").length&&b(a.chatInstance.selectors.chatHistoryList).prepend('\x3cdiv class\x3d"joe-loader"\x3e\x3c/div\x3e'),a.chatInstance.load=!1,c.loadMorePreviousMsg(b(this).find(".chat-container .joe-message:first").attr("ticketMessageHash")))},!0);m.addEventListener("online",function(b){a.RealTimeConnection.rts.status.isOffline=!1;c.hideNotification();!a.chatInstance.triggerGetMessagesApi||Ua||Oa||(oa=!0,c.loadMorePreviousMsg(null,!1,"ONLINE"),setTimeout(function(){oa= !1},3E3));a.RemoteCall.postActivity(a.chatInstance.customerHash,"ONLINE")});m.addEventListener("offline",function(b){a.RealTimeConnection.rts.status.isOffline=!0;c.showNotification()});b(e.body).on("keyup",a.chatInstance.selectors.searchList,function(){b(a.chatInstance.selectors.optionList).addClass("hide");b(a.chatInstance.selectors.optionList).find(":spdCaseInsensitiveContains("+b(this).val()+")").removeClass("hide");""===b(this).val().trim()&&b(a.chatInstance.selectors.optionList).removeClass("hide")}); b(e.body).on("change",a.chatInstance.selectors.optionSelect,function(){"select-multiple"!==a.chatInstance.selectizeRef[0].type&&(""!=b(this).val()?(c.addMessageOnListClick(b(this).val(),b(this).text()),a.chatInstance.selectizeRef[0].selectize.close(),b(a.chatInstance.selectors.optionSelect).addClass("hide")):a.chatInstance.selectizeDefaultVal=null)});b(e.body).on("click",".multi-dropdown-send-btn",function(){var b=a.chatInstance.selectizeRef[0].selectize.items;if(b&&b.length){for(var d=a.chatInstance.selectizeRef[0].selectize.options, e=[],f=0;fb.offsetHeight;if("touch"===f&&("auto"===g||"scroll"===g)&&h){f=a.touches?a.touches[0].screenY:a.screenY;g=c>=f&&b.scrollHeight-b.scrollTop===d;(c<=f&&0===b.scrollTop||g)&&a.preventDefault();return}b=b.parentNode}a.preventDefault()},g=function(a){c=a.touches? a.touches[0].screenY:a.screenY},h=function(){e.body.removeEventListener("touchstart",g);e.body.removeEventListener("touchmove",f)},k,l=function(){var a=Date.now();k&&clearInterval(k);k=setInterval(function(){try{m.innerHeight>m.visualViewport.height&&(m.scrollTo(0,m.innerHeight-m.visualViewport.height),clearInterval(k)),1E3=b&&l();"focusin"===a.type?(e.body.addEventListener("touchstart",g,{passive:!1}),e.body.addEventListener("touchmove",f,{passive:!1})):h()});b(e.body).on("change",a.chatInstance.selectors.optionSelect,function(){h()})}}}(),aa=function(c){var d={uiSettings:{mobileChatBoxStyle:"",webChatBoxStyle:"",initHeightFromBottom:c.uiStngs.initHghtChtBbl,openOnDefault:!1,openOnDefaultForDesktopAndMobile:!1,showChatHeader:c.shwChtHdr, chatParentSelector:c.chtPrntSlctr,showFullBodyInput:!0,showMessengerBubble:c.shwFbCht,widgetHeaderCnfg:c.uiStngs.wdgtHdr,rmvJoeBrndng:c.uiStngs.rmvJoeBrndng,bgImage:c.uiStngs.bckgrndImgUrl,avatorIcon:c.uiStngs.btIcnUrl,widgetPosition:c.uiStngs.wdgtPostion,widgetBottom:c.uiStngs.initHghtChtBbl,widgetMargin:c.uiStngs.initSdMrgnChtBbl,notificationSoundEnabled:c.uiStngs.notificationSoundEnabled,browserNotificationEnabled:c.uiStngs.wdgtBrwsrNtfctn},uiTheme:{otherMessageColor:"#c1dede"},uiThemeCss:c.uiStngs.wdgtCssV2, dataStore:c.dtStr.toLowerCase(),customerHash:c.cstmr?c.cstmr.cstmrHsh:null,pendingMessageQueue:[],isPostDefermentApiTriggered:!1,tempMessageObjectToBeSent:{},metadataClientParams:c.prmSlctrs,menu:{showIcons:!1,menuNodeList:null,shareMessages:null,slashCommandList:null},bots:null,headerText:"",maxMessagePings:null,updateTitleEnable:c.updtTtl,windowActive:!0,dateFormat:c.dtFrmt,timeFormat:c.tmFrmt,dataAttributes:{msgTimestamp:"data-msg-timestamp"},isRtsAckEnabled:c.rtsAck,triggerGetMessagesApi:c.triggerGetMessagesApiOnWsReconnect, showNotificationOnWsFailure:c.showBannerOnWsFailure,selectors:{chatContainer:".chat-container",widgetContainer:"#fbots-wdgt",header:".chat-container .chat-header",chatHistory:".chat-history",unreadCtr:"#unread-ctr",unreadBubbleCtr:"#joe-bubble-unread",messageSendButton:"#msg-send-btn",messageTextarea:"#message-to-send",optionRadioButton:".optionBtn",optionSelect:"select#listOptions",optionList:"select#listOptions li",searchList:"#input-search",chatHistoryList:".chat-history .joe-message-list",chatHistoryImg:".chat-history .joe-message img", inputSectionParent:".chat-footer",inputSection:"#agent-msg-submit",joeStarRate:"#joe-star-rate",joeChatBodyOverlay:"#joe-chat-body-overlay",imagePreviewContainer:"#image-preview-container",filePreviewFooter:".file-preview-footer",fileName:".file-name",textBoxWrap:".text-box-wrp",filePreviewContainer:"#file-preview-container",fileUploadInputBox:"#fileupload",joeChatFullBodyOverlay:"#joe-chat-full-body-overlay",joeOverlayCrossBtn:"#joe-overlay-cross-btn",joeFullOverlayCrossBtn:"#joe-full-overlay-cross-btn", joeFeedbackTxt:"#joe-feedback-txt",joeFeedbackBtn:"#joe-feedback-btn",joeChatEndYesBtn:"#joe-chat-end-yes",joeChatEndNoBtn:"#joe-chat-end-no",selectizeInputText:".selectize-control input[type\x3dtext]",yearSelect:"select#year-to-send",monthSelect:"select#month-to-send",dateSelect:"select#date-to-send",hourSelect:"#hrs-to-send",minuteSelect:"#mins-to-send",rangeHiddenInput:"#date-rnge",activeStar:".joe-star-active",joeRadioListBtn:".joe-radio-list-btn",joeMsgBubbleContainer:".joe-msg-bubble-container", msgBubbleBtnClose:".joe-msg-bubble-container .msg-bubble-btnclose",sliderContainer:".joe-slider-container",sliderContainerImg:".joe-slider-container img",googlePacContainer:".pac-container",msgStatus:".msg-status",msgTimeElementWithRelativeTime:"div.joe-message span.joe-msg-time[data-timestamp-type\x3drelative]",alertTextFooterInput:".chat-container .chat-footer #alert-text",footerSectionContainer:".footer-section-container",msgTimestamp:".joe-msg-time",notificationPlaceholder:"#notification-placeholder"}, customTemplate:a.getCustomTemplate(),message:{type:{text:"text",file:"file",image:"image","private":"private",optionFeedback:"optionFeedback",ratingFeedback:"ratingFeedback",reviewFeedback:"reviewFeedback",feedbackTmo:"feedbackTmo"}},chatContainerBasicHtml:null,uploadFileProp:{},imageTypesToCompress:["image/png","image/jpeg"],load:!1,isRated:!1,selectizeRef:null,isAssignedToAgent:!1,latestTicketMessageTimeStamp:0,addressInputRef:null,selectizeDefaultVal:null,addressInputDefaultVal:null,logChatOpen:!0, cacheMessage:"",typingId:"",minimumDate:null,maximumDate:null,latestAgentMessageHash:null,latestMessageObject:null,inactivityAlertPeriod:c.inctvtyAlrtPrd,currInactivityTimeoutId:null,inactivityMinAlertPeriod:c.minAftrInctvtyAlrtPrd,currMinInactivityTimeoutId:null,timestampUpdateTimeIntervalPeriod:6E4,timestampUpdateTimeIntervalId:null,visitorActionMessageHash:null,numberOfMessageToBeLoad:ka?20:9,defaultMessageTimeGap:700,forceOpenEnable:!0,actionType:null,lastAuthor:null,currConversation:null,allMessageHash:[], lastInputType:null,lastTicketMessageHash:"",lastChatHistoryHeight:null,widgetPauseTime:c.chtBxShwDly,widgetFullScreen:"fullscreen"===c.uiStngs.chtWdgtSz.toLowerCase(),messengerBubbleLink:c.fbMsngrLnk,overrideClientHtmlMetadata:c.uiStngs.chtWdgtOvrdHtlMtDt,isButtonEnabled:!0,isIntentFdbck:null,lastPublicMessage:null,timerStep:700,timerId:null,startTimeInMS:0,remainingTimer:0};a.String.isNotBlank(c.uiStngs.cstmCssPth)&&a.getCssFile(c.uiStngs.cstmCssPth,!0,function(){a.Object.isNotNull(a.chatInstance)? X.setChatHistoryHeight():a.Log.logMessage("Chat Instance is null custom css",!0)});d.openOnDefault=c.opnChtOnDsktp;var e=m.location.href.split("#");1