(function(){ window.JWT_OBJ={"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NDc4ODczNzksImV4cCI6MTc0Nzk3Mzc3OSwiYXVkIjoiIiwiaXNzIjoiY3MtMTU4NWUzMjUtODVjZS01NTMwLWEyY2QtNzRkMjUwODllYzc2Iiwic3ViIjoiNzE4YTllZmEtMjZmOC00OWYwLThjMTktOWViNmE0ZjJmOTc1OWE5NTVkZDUtODdjOC00OWY3LTk3NmMtOGUwNDJkN2Q3OGU0IiwiaXNBbm9ueW1vdXMiOmZhbHNlfQ.4bJ1RiLakUVB5A897AD4p0weZQWHYtOB9UB7OzWuwxs","koreAPIUrl":"https://bots-gw.kore.ai/","channel":"rtm","botStatus":"published","ak":"2afc607e084841d995026ac3d99102f7e2edb4fba79843aba7f3e9ab47244a5bst13","ity":"718a9efa-26f8-49f0-8c19-9eb6a4f2f9759a955dd5-87c8-49f7-976c-8e042d7d78e4","botInfo":{"name":"Gabby Chat West Virginia","_id":"st-13782264-ac5b-5ffd-8085-dcf98ecdc021","widgetsExists":false,"panelsExists":false}}})();function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,a,o,s,r=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(r.push(i.value),r.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return r}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);function i(){}var a=0;return{s:i,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:i}}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 o,s=!0,r=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){r=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(r)throw o}}}}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(t,e,n){var i=[null];i.push.apply(i,e);i=new(Function.bind.apply(t,i));return n&&_setPrototypeOf(i,n.prototype),i}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){t.KoreSDK=t.KoreSDK||{},t.KoreSDK.dependencies=t.KoreSDK.dependencies||{},t.__PerfectScrollbar=t.PerfectScrollbar,t.__define=t.define,t.__require=t.require,t.define=void 0,t.require=void 0,t.PerfectScrollbar=void 0}(window),function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(I,t){"use strict";function m(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item}function g(t){return null!=t&&t===t.window}var e=[],n=Object.getPrototypeOf,r=e.slice,y=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},l=e.push,a=e.indexOf,i={},o=i.toString,v=i.hasOwnProperty,s=v.toString,c=s.call(Object),D={},M=I.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,n){var i,a,o=(n=n||M).createElement("script");if(o.text=t,e)for(i in u)(a=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,a);n.head.appendChild(o).parentNode.removeChild(o)}function h(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[o.call(t)]||"object":typeof t}var d="3.6.0",w=function(t,e){return new w.fn.init(t,e)};function f(t){var e=!!t&&"length"in t&&t.length,n=h(t);return!m(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}w.fn=w.prototype={jquery:d,constructor:w,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=w.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return w.each(this,t)},map:function(n){return this.pushStack(w.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},w.extend=w.fn.extend=function(){var t,e,n,i,a,o=arguments[0]||{},s=1,r=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||m(o)||(o={}),s===r&&(o=this,s--);s<r;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&o!==n&&(l&&n&&(w.isPlainObject(n)||(i=Array.isArray(n)))?(a=o[e],a=i&&!Array.isArray(a)?[]:i||w.isPlainObject(a)?a:{},i=!1,o[e]=w.extend(l,a,n)):void 0!==n&&(o[e]=n));return o},w.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==o.call(t))&&(!(t=n(t))||"function"==typeof(t=v.call(t,"constructor")&&t.constructor)&&s.call(t)===c)},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,n){b(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(f(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(f(Object(t))?w.merge(e,"string"==typeof t?[t]:t):l.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:a.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,a=t.length;i<n;i++)t[a++]=e[i];return t.length=a,t},grep:function(t,e,n){for(var i=[],a=0,o=t.length,s=!n;a<o;a++)!e(t[a],a)!=s&&i.push(t[a]);return i},map:function(t,e,n){var i,a,o=0,s=[];if(f(t))for(i=t.length;o<i;o++)null!=(a=e(t[o],o,n))&&s.push(a);else for(o in t)null!=(a=e(t[o],o,n))&&s.push(a);return y(s)},guid:1,support:D}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=e[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var p=function(n){function d(t,e){return t="0x"+t.slice(1)-65536,e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))}function f(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function i(){I()}var t,p,b,o,a,h,m,g,A,l,c,I,M,s,w,y,r,u,v,C="sizzle"+ +new Date,D=n.document,_=0,T=0,k=lt(),x=lt(),N=lt(),S=lt(),E=function(t,e){return t===e&&(c=!0),0},j={}.hasOwnProperty,e=[],O=e.pop,L=e.push,z=e.push,P=e.slice,R=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",U="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}"+U+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\["+U+"*("+B+")(?:"+U+"*([*^$|!~]?=)"+U+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+U+"*\\]",Y=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",Q=new RegExp(U+"+","g"),W=new RegExp("^"+U+"+|((?:^|[^\\\\])(?:\\\\.)*)"+U+"+$","g"),V=new RegExp("^"+U+"*,"+U+"*"),G=new RegExp("^"+U+"*([>+~]|"+U+")"+U+"*"),Z=new RegExp(U+"|>"),J=new RegExp(Y),q=new RegExp("^"+B+"$"),K={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+Y),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+U+"*(even|odd|(([+-]|)(\\d*)n|)"+U+"*(?:([+-]|)"+U+"*(\\d+)|))"+U+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+U+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+U+"*((?:-\\d)?\\d*)"+U+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,et=/^[^{]+\{\s*\[native \w/,nt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,it=/[+~]/,at=new RegExp("\\\\[\\da-fA-F]{1,6}"+U+"?|\\\\([^\\r\\n\\f])","g"),ot=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,st=vt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{z.apply(e=P.call(D.childNodes),D.childNodes),e[D.childNodes.length].nodeType}catch(t){z={apply:e.length?function(t,e){L.apply(t,P.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function rt(e,t,n,i){var a,o,s,r,l,c,u=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!i&&(I(t),t=t||M,w)){if(11!==d&&(r=nt.exec(e)))if(c=r[1]){if(9===d){if(!(o=t.getElementById(c)))return n;if(o.id===c)return n.push(o),n}else if(u&&(o=u.getElementById(c))&&v(t,o)&&o.id===c)return n.push(o),n}else{if(r[2])return z.apply(n,t.getElementsByTagName(e)),n;if((c=r[3])&&p.getElementsByClassName&&t.getElementsByClassName)return z.apply(n,t.getElementsByClassName(c)),n}if(p.qsa&&!S[e+" "]&&(!y||!y.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(c=e,u=t,1===d&&(Z.test(e)||G.test(e))){for((u=it.test(e)&&mt(t.parentNode)||t)===t&&p.scope||((s=t.getAttribute("id"))?s=s.replace(ot,f):t.setAttribute("id",s=C)),a=(l=h(e)).length;a--;)l[a]=(s?"#"+s:":scope")+" "+yt(l[a]);c=l.join(",")}try{return z.apply(n,u.querySelectorAll(c)),n}catch(t){S(e,!0)}finally{s===C&&t.removeAttribute("id")}}}return g(e.replace(W,"$1"),t,n,i)}function lt(){var n=[];function i(t,e){return n.push(t+" ")>b.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function ct(t){return t[C]=!0,t}function ut(t){var e=M.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function dt(t,e){for(var n=t.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=e}function ft(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function pt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&st(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ht(s){return ct(function(o){return o=+o,ct(function(t,e){for(var n,i=s([],t.length,o),a=i.length;a--;)t[n=i[a]]&&(t[n]=!(e[n]=t[n]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=rt.support={},a=rt.isXML=function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!X.test(e||t&&t.nodeName||"HTML")},I=rt.setDocument=function(t){var e,t=t?t.ownerDocument||t:D;return t!=M&&9===t.nodeType&&t.documentElement&&(s=(M=t).documentElement,w=!a(M),D!=M&&(e=M.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",i,!1):e.attachEvent&&e.attachEvent("onunload",i)),p.scope=ut(function(t){return s.appendChild(t).appendChild(M.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),p.attributes=ut(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=ut(function(t){return t.appendChild(M.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=et.test(M.getElementsByClassName),p.getById=ut(function(t){return s.appendChild(t).id=C,!M.getElementsByName||!M.getElementsByName(C).length}),p.getById?(b.filter.ID=function(t){var e=t.replace(at,d);return function(t){return t.getAttribute("id")===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&w){t=e.getElementById(t);return t?[t]:[]}}):(b.filter.ID=function(t){var e=t.replace(at,d);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&w){var n,i,a,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(a=e.getElementsByName(t),i=0;o=a[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),b.find.TAG=p.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):p.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],a=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[a++];)1===n.nodeType&&i.push(n);return i},b.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&w)return e.getElementsByClassName(t)},r=[],y=[],(p.qsa=et.test(M.querySelectorAll))&&(ut(function(t){var e;s.appendChild(t).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+U+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\["+U+"*(?:value|"+F+")"),t.querySelectorAll("[id~="+C+"-]").length||y.push("~="),(e=M.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||y.push("\\["+U+"*name"+U+"*="+U+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||y.push(":checked"),t.querySelectorAll("a#"+C+"+*").length||y.push(".#.+[+~]"),t.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ut(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=M.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name"+U+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),s.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")})),(p.matchesSelector=et.test(u=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ut(function(t){p.disconnectedMatch=u.call(t,"*"),u.call(t,"[s!='']:x"),r.push("!=",Y)}),y=y.length&&new RegExp(y.join("|")),r=r.length&&new RegExp(r.join("|")),e=et.test(s.compareDocumentPosition),v=e||et.test(s.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},E=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===n?t==M||t.ownerDocument==D&&v(D,t)?-1:e==M||e.ownerDocument==D&&v(D,e)?1:l?R(l,t)-R(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,i=0,a=t.parentNode,o=e.parentNode,s=[t],r=[e];if(!a||!o)return t==M?-1:e==M?1:a?-1:o?1:l?R(l,t)-R(l,e):0;if(a===o)return ft(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)r.unshift(n);for(;s[i]===r[i];)i++;return i?ft(s[i],r[i]):s[i]==D?-1:r[i]==D?1:0}),M},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if(I(t),p.matchesSelector&&w&&!S[e+" "]&&(!r||!r.test(e))&&(!y||!y.test(e)))try{var n=u.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){S(e,!0)}return 0<rt(e,M,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!=M&&I(t),v(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!=M&&I(t);var n=b.attrHandle[e.toLowerCase()],n=n&&j.call(b.attrHandle,e.toLowerCase())?n(t,e,!w):void 0;return void 0!==n?n:p.attributes||!w?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},rt.escape=function(t){return(t+"").replace(ot,f)},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,n=[],i=0,a=0;if(c=!p.detectDuplicates,l=!p.sortStable&&t.slice(0),t.sort(E),c){for(;e=t[a++];)e===t[a]&&(i=n.push(a));for(;i--;)t.splice(n[i],1)}return l=null,t},o=rt.getText=function(t){var e,n="",i=0,a=t.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===a||4===a)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(b=rt.selectors={cacheLength:50,createPseudo:ct,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(at,d),t[3]=(t[3]||t[4]||t[5]||"").replace(at,d),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return K.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&J.test(n)&&(e=h(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(at,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=k[t+" "];return e||(e=new RegExp("(^|"+U+")"+t+"("+U+"|$)"))&&k(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=rt.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(Q," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,t,e,m,g){var y="nth"!==h.slice(0,3),v="last"!==h.slice(-4),D="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var i,a,o,s,r,l,c=y!=v?"nextSibling":"previousSibling",u=t.parentNode,d=D&&t.nodeName.toLowerCase(),f=!n&&!D,p=!1;if(u){if(y){for(;c;){for(s=t;s=s[c];)if(D?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;l=c="only"===h&&!l&&"nextSibling"}return!0}if(l=[v?u.firstChild:u.lastChild],v&&f){for(p=(r=(i=(a=(o=(s=u)[C]||(s[C]={}))[s.uniqueID]||(o[s.uniqueID]={}))[h]||[])[0]===_&&i[1])&&i[2],s=r&&u.childNodes[r];s=++r&&s&&s[c]||(p=r=0)||l.pop();)if(1===s.nodeType&&++p&&s===t){a[h]=[_,r,p];break}}else if(!1===(p=f?r=(i=(a=(o=(s=t)[C]||(s[C]={}))[s.uniqueID]||(o[s.uniqueID]={}))[h]||[])[0]===_&&i[1]:p))for(;(s=++r&&s&&s[c]||(p=r=0)||l.pop())&&((D?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++p||(f&&((a=(o=s[C]||(s[C]={}))[s.uniqueID]||(o[s.uniqueID]={}))[h]=[_,p]),s!==t)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(t,o){var e,s=b.pseudos[t]||b.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return s[C]?s(o):1<s.length?(e=[t,t,"",o],b.setFilters.hasOwnProperty(t.toLowerCase())?ct(function(t,e){for(var n,i=s(t,o),a=i.length;a--;)t[n=R(t,i[a])]=!(e[n]=i[a])}):function(t){return s(t,0,e)}):s}},pseudos:{not:ct(function(t){var i=[],a=[],r=m(t.replace(W,"$1"));return r[C]?ct(function(t,e,n,i){for(var a,o=r(t,null,i,[]),s=t.length;s--;)(a=o[s])&&(t[s]=!(e[s]=a))}):function(t,e,n){return i[0]=t,r(i,null,n,a),i[0]=null,!a.pop()}}),has:ct(function(e){return function(t){return 0<rt(e,t).length}}),contains:ct(function(e){return e=e.replace(at,d),function(t){return-1<(t.textContent||o(t)).indexOf(e)}}),lang:ct(function(n){return q.test(n||"")||rt.error("unsupported lang: "+n),n=n.replace(at,d).toLowerCase(),function(t){var e;do{if(e=w?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===s},focus:function(t){return t===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:pt(!1),disabled:pt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!b.pseudos.empty(t)},header:function(t){return tt.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[n<0?n+e:n]}),even:ht(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ht(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ht(function(t,e,n){for(var i=n<0?n+e:e<n?e:n;0<=--i;)t.push(i);return t}),gt:ht(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})b.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function gt(){}function yt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function vt(s,t,e){var r=t.dir,l=t.next,c=l||r,u=e&&"parentNode"===c,d=T++;return t.first?function(t,e,n){for(;t=t[r];)if(1===t.nodeType||u)return s(t,e,n);return!1}:function(t,e,n){var i,a,o=[_,d];if(n){for(;t=t[r];)if((1===t.nodeType||u)&&s(t,e,n))return!0}else for(;t=t[r];)if(1===t.nodeType||u)if(i=(a=t[C]||(t[C]={}))[t.uniqueID]||(a[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[r]||t;else{if((a=i[c])&&a[0]===_&&a[1]===d)return o[2]=a[2];if((i[c]=o)[2]=s(t,e,n))return!0}return!1}}function Dt(a){return 1<a.length?function(t,e,n){for(var i=a.length;i--;)if(!a[i](t,e,n))return!1;return!0}:a[0]}function bt(t,e,n,i,a){for(var o,s=[],r=0,l=t.length,c=null!=e;r<l;r++)(o=t[r])&&(n&&!n(o,i,a)||(s.push(o),c&&e.push(r)));return s}function At(p,h,m,g,y,t){return g&&!g[C]&&(g=At(g)),y&&!y[C]&&(y=At(y,t)),ct(function(t,e,n,i){var a,o,s,r=[],l=[],c=e.length,u=t||function(t,e,n){for(var i=0,a=e.length;i<a;i++)rt(t,e[i],n);return n}(h||"*",n.nodeType?[n]:n,[]),d=!p||!t&&h?u:bt(u,r,p,n,i),f=m?y||(t?p:c||g)?[]:e:d;if(m&&m(d,f,n,i),g)for(a=bt(f,l),g(a,[],n,i),o=a.length;o--;)(s=a[o])&&(f[l[o]]=!(d[l[o]]=s));if(t){if(y||p){if(y){for(a=[],o=f.length;o--;)(s=f[o])&&a.push(d[o]=s);y(null,f=[],a,i)}for(o=f.length;o--;)(s=f[o])&&-1<(a=y?R(t,s):r[o])&&(t[a]=!(e[a]=s))}}else f=bt(f===e?f.splice(c,f.length):f),y?y(null,e,f,i):z.apply(e,f)})}function It(g,y){function t(t,e,n,i,a){var o,s,r,l=0,c="0",u=t&&[],d=[],f=A,p=t||D&&b.find.TAG("*",a),h=_+=null==f?1:Math.random()||.1,m=p.length;for(a&&(A=e==M||e||a);c!==m&&null!=(o=p[c]);c++){if(D&&o){for(s=0,e||o.ownerDocument==M||(I(o),n=!w);r=g[s++];)if(r(o,e||M,n)){i.push(o);break}a&&(_=h)}v&&((o=!r&&o)&&l--,t&&u.push(o))}if(l+=c,v&&c!==l){for(s=0;r=y[s++];)r(u,d,e,n);if(t){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=O.call(i));d=bt(d)}z.apply(i,d),a&&!t&&0<d.length&&1<l+y.length&&rt.uniqueSort(i)}return a&&(_=h,A=f),u}var v=0<y.length,D=0<g.length;return v?ct(t):t}return gt.prototype=b.filters=b.pseudos,b.setFilters=new gt,h=rt.tokenize=function(t,e){var n,i,a,o,s,r,l,c=x[t+" "];if(c)return e?0:c.slice(0);for(s=t,r=[],l=b.preFilter;s;){for(o in n&&!(i=V.exec(s))||(i&&(s=s.slice(i[0].length)||s),r.push(a=[])),n=!1,(i=G.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(W," ")}),s=s.slice(n.length)),b.filter)!(i=K[o].exec(s))||l[o]&&!(i=l[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?rt.error(t):x(t,r).slice(0)},m=rt.compile=function(t,e){var n,i=[],a=[],o=N[t+" "];if(!o){for(n=(e=e||h(t)).length;n--;)((o=function t(e){for(var i,n,a,o=e.length,s=b.relative[e[0].type],r=s||b.relative[" "],l=s?1:0,c=vt(function(t){return t===i},r,!0),u=vt(function(t){return-1<R(i,t)},r,!0),d=[function(t,e,n){return n=!s&&(n||e!==A)||((i=e).nodeType?c:u)(t,e,n),i=null,n}];l<o;l++)if(n=b.relative[e[l].type])d=[vt(Dt(d),n)];else{if((n=b.filter[e[l].type].apply(null,e[l].matches))[C]){for(a=++l;a<o&&!b.relative[e[a].type];a++);return At(1<l&&Dt(d),1<l&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<a&&t(e.slice(l,a)),a<o&&t(e=e.slice(a)),a<o&&yt(e))}d.push(n)}return Dt(d)}(e[n]))[C]?i:a).push(o);(o=N(t,It(a,i))).selector=t}return o},g=rt.select=function(t,e,n,i){var a,o,s,r,l,c="function"==typeof t&&t,u=!i&&h(t=c.selector||t);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(s=o[0]).type&&9===e.nodeType&&w&&b.relative[o[1].type]){if(!(e=(b.find.ID(s.matches[0].replace(at,d),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(a=K.needsContext.test(t)?0:o.length;a--&&(s=o[a],!b.relative[r=s.type]);)if((l=b.find[r])&&(i=l(s.matches[0].replace(at,d),it.test(o[0].type)&&mt(e.parentNode)||e))){if(o.splice(a,1),!(t=i.length&&yt(o)))return z.apply(n,i),n;break}}return(c||m(t,u))(i,e,!w,n,!e||it.test(t)&&mt(e.parentNode)||e),n},p.sortStable=C.split("").sort(E).join("")===C,p.detectDuplicates=!!c,I(),p.sortDetached=ut(function(t){return 1&t.compareDocumentPosition(M.createElement("fieldset"))}),ut(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||dt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),p.attributes&&ut(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||dt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ut(function(t){return null==t.getAttribute("disabled")})||dt(F,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(e=t.getAttributeNode(e))&&e.specified?e.value:null}),rt}(I);w.find=p,w.expr=p.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=p.uniqueSort,w.text=p.getText,w.isXMLDoc=p.isXML,w.contains=p.contains,w.escapeSelector=p.escape;function A(t,e,n){for(var i=[],a=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(a&&w(t).is(n))break;i.push(t)}return i}function C(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var _=w.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function x(t,n,i){return m(n)?w.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?w.grep(t,function(t){return t===n!==i}):"string"!=typeof n?w.grep(t,function(t){return-1<a.call(n,t)!==i}):w.filter(n,t,i)}w.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?w.find.matchesSelector(i,t)?[i]:[]:w.find.matches(t,w.grep(e,function(t){return 1===t.nodeType}))},w.fn.extend({find:function(t){var e,n,i=this.length,a=this;if("string"!=typeof t)return this.pushStack(w(t).filter(function(){for(e=0;e<i;e++)if(w.contains(a[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)w.find(t,a[e],n);return 1<i?w.uniqueSort(n):n},filter:function(t){return this.pushStack(x(this,t||[],!1))},not:function(t){return this.pushStack(x(this,t||[],!0))},is:function(t){return!!x(this,"string"==typeof t&&_.test(t)?w(t):t||[],!1).length}});var N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(t,e,n){if(!t)return this;if(n=n||S,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==n.ready?n.ready(t):t(w):w.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:N.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:M,!0)),k.test(i[1])&&w.isPlainObject(e))for(var i in e)m(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(t=M.getElementById(i[2]))&&(this[0]=t,this.length=1),this}).prototype=w.fn;var S=w(M),E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function O(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(w.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,a=this.length,o=[],s="string"!=typeof t&&w(t);if(!_.test(t))for(;i<a;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&w.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?w.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?a.call(w(t),this[0]):a.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return A(t,"parentNode")},parentsUntil:function(t,e,n){return A(t,"parentNode",n)},next:function(t){return O(t,"nextSibling")},prev:function(t){return O(t,"previousSibling")},nextAll:function(t){return A(t,"nextSibling")},prevAll:function(t){return A(t,"previousSibling")},nextUntil:function(t,e,n){return A(t,"nextSibling",n)},prevUntil:function(t,e,n){return A(t,"previousSibling",n)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},function(i,a){w.fn[i]=function(t,e){var n=w.map(this,a,t);return(e="Until"!==i.slice(-5)?t:e)&&"string"==typeof e&&(n=w.filter(e,n)),1<this.length&&(j[i]||w.uniqueSort(n),E.test(i)&&n.reverse()),this.pushStack(n)}});var L=/[^\x20\t\r\n\f]+/g;function z(t){return t}function P(t){throw t}function R(t,e,n,i){var a;try{t&&m(a=t.promise)?a.call(t).done(e).fail(n):t&&m(a=t.then)?a.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}w.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},w.each(t.match(L)||[],function(t,e){n[e]=!0}),n):w.extend({},i);function a(){for(r=r||i.once,s=o=!0;c.length;u=-1)for(e=c.shift();++u<l.length;)!1===l[u].apply(e[0],e[1])&&i.stopOnFalse&&(u=l.length,e=!1);i.memory||(e=!1),o=!1,r&&(l=e?[]:"")}var o,e,s,r,l=[],c=[],u=-1,d={add:function(){return l&&(e&&!o&&(u=l.length-1,c.push(e)),function n(t){w.each(t,function(t,e){m(e)?i.unique&&d.has(e)||l.push(e):e&&e.length&&"string"!==h(e)&&n(e)})}(arguments),e&&!o&&a()),this},remove:function(){return w.each(arguments,function(t,e){for(var n;-1<(n=w.inArray(e,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(t){return t?-1<w.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return r=c=[],l=e="",this},disabled:function(){return!l},lock:function(){return r=c=[],e||o||(l=e=""),this},locked:function(){return!!r},fireWith:function(t,e){return r||(e=[t,(e=e||[]).slice?e.slice():e],c.push(e),o||a()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},w.extend({Deferred:function(t){var o=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],a="pending",s={state:function(){return a},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var a=arguments;return w.Deferred(function(i){w.each(o,function(t,e){var n=m(a[e[4]])&&a[e[4]];r[e[1]](function(){var t=n&&n.apply(this,arguments);t&&m(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,n?[t]:arguments)})}),a=null}).promise()},then:function(e,n,i){var l=0;function c(a,o,s,r){return function(){function t(){var t,e;if(!(a<l)){if((t=s.apply(n,i))===o.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,m(e)?r?e.call(t,c(l,o,z,r),c(l,o,P,r)):(l++,e.call(t,c(l,o,z,r),c(l,o,P,r),c(l,o,z,o.notifyWith))):(s!==z&&(n=void 0,i=[t]),(r||o.resolveWith)(n,i))}}var n=this,i=arguments,e=r?t:function(){try{t()}catch(t){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(t,e.stackTrace),l<=a+1&&(s!==P&&(n=void 0,i=[t]),o.rejectWith(n,i))}};a?e():(w.Deferred.getStackHook&&(e.stackTrace=w.Deferred.getStackHook()),I.setTimeout(e))}}return w.Deferred(function(t){o[0][3].add(c(0,t,m(i)?i:z,t.notifyWith)),o[1][3].add(c(0,t,m(e)?e:z)),o[2][3].add(c(0,t,m(n)?n:P))}).promise()},promise:function(t){return null!=t?w.extend(t,s):s}},r={};return w.each(o,function(t,e){var n=e[2],i=e[5];s[e[1]]=n.add,i&&n.add(function(){a=i},o[3-t][2].disable,o[3-t][3].disable,o[0][2].lock,o[0][3].lock),n.add(e[3].fire),r[e[0]]=function(){return r[e[0]+"With"](this===r?void 0:this,arguments),this},r[e[0]+"With"]=n.fireWith}),s.promise(r),t&&t.call(r,r),r},when:function(t){function e(e){return function(t){a[e]=this,o[e]=1<arguments.length?r.call(arguments):t,--n||s.resolveWith(a,o)}}var n=arguments.length,i=n,a=Array(i),o=r.call(arguments),s=w.Deferred();if(n<=1&&(R(t,s.done(e(i)).resolve,s.reject,!n),"pending"===s.state()||m(o[i]&&o[i].then)))return s.then();for(;i--;)R(o[i],e(i),s.reject);return s.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,e){I.console&&I.console.warn&&t&&F.test(t.name)&&I.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},w.readyException=function(t){I.setTimeout(function(){throw t})};var U=w.Deferred();function B(){M.removeEventListener("DOMContentLoaded",B),I.removeEventListener("load",B),w.ready()}w.fn.ready=function(t){return U.then(t).catch(function(t){w.readyException(t)}),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0)!==t&&0<--w.readyWait||U.resolveWith(M,[w])}}),w.ready.then=U.then,"complete"===M.readyState||"loading"!==M.readyState&&!M.documentElement.doScroll?I.setTimeout(w.ready):(M.addEventListener("DOMContentLoaded",B),I.addEventListener("load",B));function H(t,e,n,i,a,o,s){var r=0,l=t.length,c=null==n;if("object"===h(n))for(r in a=!0,n)H(t,e,r,n[r],!0,o,s);else if(void 0!==i&&(a=!0,m(i)||(s=!0),e=c?s?(e.call(t,i),null):(c=e,function(t,e,n){return c.call(w(t),n)}):e))for(;r<l;r++)e(t[r],n,s?i:i.call(t[r],r,e(t[r],n)));return a?t:c?e.call(t):l?e(t[0],n):o}var Y=/^-ms-/,Q=/-([a-z])/g;function W(t,e){return e.toUpperCase()}function V(t){return t.replace(Y,"ms-").replace(Q,W)}function G(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function Z(){this.expando=w.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(t){var e=t[this.expando];return e||(e={},G(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,a=this.cache(t);if("string"==typeof e)a[V(e)]=n;else for(i in e)a[V(i)]=e[i];return a},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][V(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(V):(e=V(e))in i?[e]:e.match(L)||[]).length;for(;n--;)delete i[e[n]]}void 0!==e&&!w.isEmptyObject(i)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var J=new Z,q=new Z,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,X=/[A-Z]/g;function $(t,e,n){var i,a;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(X,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(a=n)||"false"!==a&&("null"===a?null:a===+a+""?+a:K.test(a)?JSON.parse(a):a)}catch(t){}q.set(t,e,n)}else n=void 0;return n}w.extend({hasData:function(t){return q.hasData(t)||J.hasData(t)},data:function(t,e,n){return q.access(t,e,n)},removeData:function(t,e){q.remove(t,e)},_data:function(t,e,n){return J.access(t,e,n)},_removeData:function(t,e){J.remove(t,e)}}),w.fn.extend({data:function(n,t){var e,i,a,o=this[0],s=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){q.set(this,n)}):H(this,function(t){var e;return o&&void 0===t?void 0!==(e=q.get(o,n))||void 0!==(e=$(o,n))?e:void 0:void this.each(function(){q.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(a=q.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(e=s.length;e--;)s[e]&&0===(i=s[e].name).indexOf("data-")&&(i=V(i.slice(5)),$(o,i,a[i]));J.set(o,"hasDataAttrs",!0)}return a},removeData:function(t){return this.each(function(){q.remove(this,t)})}}),w.extend({queue:function(t,e,n){var i;if(t)return i=J.get(t,e=(e||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=J.access(t,e,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=w.queue(t,e),i=n.length,a=n.shift(),o=w._queueHooks(t,e);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===e&&n.unshift("inprogress"),delete o.stop,a.call(t,function(){w.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return J.get(t,n)||J.access(t,n,{empty:w.Callbacks("once memory").add(function(){J.remove(t,[e+"queue",n])})})}}),w.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?w.queue(this[0],e):void 0===n?this:this.each(function(){var t=w.queue(this,e,n);w._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&w.dequeue(this,e)})},dequeue:function(t){return this.each(function(){w.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--a||o.resolveWith(s,[s])}var i,a=1,o=w.Deferred(),s=this,r=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=J.get(s[r],t+"queueHooks"))&&i.empty&&(a++,i.empty.add(n));return n(),o.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],it=M.documentElement,at=function(t){return w.contains(t.ownerDocument,t)},ot={composed:!0};it.getRootNode&&(at=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});function st(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===w.css(t,"display")}function rt(t,e,n,i){var a,o,s=20,r=i?function(){return i.cur()}:function(){return w.css(t,e,"")},l=r(),c=n&&n[3]||(w.cssNumber[e]?"":"px"),u=t.nodeType&&(w.cssNumber[e]||"px"!==c&&+l)&&et.exec(w.css(t,e));if(u&&u[3]!==c){for(c=c||u[3],u=+(l/=2)||1;s--;)w.style(t,e,u+c),(1-o)*(1-(o=r()/l||.5))<=0&&(s=0),u/=o;w.style(t,e,(u*=2)+c),n=n||[]}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=a)),a}var lt={};function ct(t,e){for(var n,i,a,o,s,r=[],l=0,c=t.length;l<c;l++)(i=t[l]).style&&(n=i.style.display,e?("none"===n&&(r[l]=J.get(i,"display")||null,r[l]||(i.style.display="")),""===i.style.display&&st(i)&&(r[l]=(s=o=void 0,o=(a=i).ownerDocument,s=a.nodeName,(a=lt[s])||(o=o.body.appendChild(o.createElement(s)),a=w.css(o,"display"),o.parentNode.removeChild(o),lt[s]=a="none"===a?"block":a)))):"none"!==n&&(r[l]="none",J.set(i,"display",n)));for(l=0;l<c;l++)null!=r[l]&&(t[l].style.display=r[l]);return t}w.fn.extend({show:function(){return ct(this,!0)},hide:function(){return ct(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){st(this)?w(this).show():w(this).hide()})}});var ut=/^(?:checkbox|radio)$/i,dt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ft=/^$|^module$|\/(?:java|ecma)script/i;d=M.createDocumentFragment().appendChild(M.createElement("div")),(p=M.createElement("input")).setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),d.appendChild(p),D.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked,d.innerHTML="<textarea>x</textarea>",D.noCloneChecked=!!d.cloneNode(!0).lastChild.defaultValue,d.innerHTML="<option></option>",D.option=!!d.lastChild;var pt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ht(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&T(t,e)?w.merge([t],n):n}function mt(t,e){for(var n=0,i=t.length;n<i;n++)J.set(t[n],"globalEval",!e||J.get(e[n],"globalEval"))}pt.tbody=pt.tfoot=pt.colgroup=pt.caption=pt.thead,pt.th=pt.td,D.option||(pt.optgroup=pt.option=[1,"<select multiple='multiple'>","</select>"]);var gt=/<|&#?\w+;/;function yt(t,e,n,i,a){for(var o,s,r,l,c,u=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===h(o))w.merge(d,o.nodeType?[o]:o);else if(gt.test(o)){for(s=s||u.appendChild(e.createElement("div")),r=(dt.exec(o)||["",""])[1].toLowerCase(),r=pt[r]||pt._default,s.innerHTML=r[1]+w.htmlPrefilter(o)+r[2],c=r[0];c--;)s=s.lastChild;w.merge(d,s.childNodes),(s=u.firstChild).textContent=""}else d.push(e.createTextNode(o));for(u.textContent="",f=0;o=d[f++];)if(i&&-1<w.inArray(o,i))a&&a.push(o);else if(l=at(o),s=ht(u.appendChild(o),"script"),l&&mt(s),n)for(c=0;o=s[c++];)ft.test(o.type||"")&&n.push(o);return u}var vt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function bt(){return!1}function At(t,e){return t===function(){try{return M.activeElement}catch(t){}}()==("focus"===e)}function It(t,e,n,i,a,o){var s,r;if("object"==typeof e){for(r in"string"!=typeof n&&(i=i||n,n=void 0),e)It(t,r,n,i,e[r],o);return t}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),!1===a)a=bt;else if(!a)return t;return 1===o&&(s=a,(a=function(t){return w().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=w.guid++)),t.each(function(){w.event.add(this,e,a,i,n)})}function Mt(t,a,o){o?(J.set(t,a,!1),w.event.add(t,a,{namespace:!1,handler:function(t){var e,n,i=J.get(this,a);if(1&t.isTrigger&&this[a]){if(i.length)(w.event.special[a]||{}).delegateType&&t.stopPropagation();else if(i=r.call(arguments),J.set(this,a,i),e=o(this,a),this[a](),i!==(n=J.get(this,a))||e?J.set(this,a,!1):n={},i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n&&n.value}else i.length&&(J.set(this,a,{value:w.event.trigger(w.extend(i[0],w.Event.prototype),i.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===J.get(t,a)&&w.event.add(t,a,Dt)}w.event={global:{},add:function(e,t,n,i,a){var o,s,r,l,c,u,d,f,p,h=J.get(e);if(G(e))for(n.handler&&(n=(o=n).handler,a=o.selector),a&&w.find.matchesSelector(it,a),n.guid||(n.guid=w.guid++),(r=h.events)||(r=h.events=Object.create(null)),(s=h.handle)||(s=h.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(L)||[""]).length;l--;)d=p=(c=vt.exec(t[l])||[])[1],f=(c[2]||"").split(".").sort(),d&&(u=w.event.special[d]||{},d=(a?u.delegateType:u.bindType)||d,u=w.event.special[d]||{},c=w.extend({type:d,origType:p,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&w.expr.match.needsContext.test(a),namespace:f.join(".")},o),(p=r[d])||((p=r[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(d,s)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),a?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)},remove:function(t,e,n,i,a){var o,s,r,l,c,u,d,f,p,h,m,g=J.hasData(t)&&J.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(L)||[""]).length;c--;)if(p=m=(r=vt.exec(e[c])||[])[1],h=(r[2]||"").split(".").sort(),p){for(d=w.event.special[p]||{},f=l[p=(i?d.delegateType:d.bindType)||p]||[],r=r[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)u=f[o],!a&&m!==u.origType||n&&n.guid!==u.guid||r&&!r.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(t,u));s&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,h,g.handle)||w.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)w.event.remove(t,p+e[c],n,i,!0);w.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,n,i,a,o,s=new Array(arguments.length),r=w.event.fix(t),l=(J.get(this,"events")||Object.create(null))[r.type]||[],t=w.event.special[r.type]||{};for(s[0]=r,e=1;e<arguments.length;e++)s[e]=arguments[e];if(r.delegateTarget=this,!t.preDispatch||!1!==t.preDispatch.call(this,r)){for(o=w.event.handlers.call(this,r,l),e=0;(i=o[e++])&&!r.isPropagationStopped();)for(r.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!r.isImmediatePropagationStopped();)r.rnamespace&&!1!==a.namespace&&!r.rnamespace.test(a.namespace)||(r.handleObj=a,r.data=a.data,void 0!==(a=((w.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(r.result=a)&&(r.preventDefault(),r.stopPropagation()));return t.postDispatch&&t.postDispatch.call(this,r),r.result}},handlers:function(t,e){var n,i,a,o,s,r=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[a=(i=e[n]).selector+" "]&&(s[a]=i.needsContext?-1<w(a,this).index(c):w.find(a,this,null,[c]).length),s[a]&&o.push(i);o.length&&r.push({elem:c,handlers:o})}return c=this,l<e.length&&r.push({elem:c,handlers:e.slice(l)}),r},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return ut.test(t.type)&&t.click&&T(t,"input")&&Mt(t,"click",Dt),!1},trigger:function(t){t=this||t;return ut.test(t.type)&&t.click&&T(t,"input")&&Mt(t,"click"),!0},_default:function(t){t=t.target;return ut.test(t.type)&&t.click&&T(t,"input")&&J.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},w.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Dt:bt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:bt,isPropagationStopped:bt,isImmediatePropagationStopped:bt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Dt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Dt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Dt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(t,e){w.event.special[t]={setup:function(){return Mt(this,t,At),!1},trigger:function(){return Mt(this,t),!0},_default:function(){return!0},delegateType:e}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,a){w.event.special[t]={delegateType:a,bindType:a,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||w.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=a),e}}}),w.fn.extend({on:function(t,e,n,i){return It(this,t,e,n,i)},one:function(t,e,n,i){return It(this,t,e,n,i,1)},off:function(t,e,n){var i,a;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,w(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=bt),this.each(function(){w.event.remove(this,t,n,e)});for(a in t)this.off(a,e,t[a]);return this}});var wt=/<script|<style|<link/i,Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,_t=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Tt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function kt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function xt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var n,i,a,o;if(1===e.nodeType){if(J.hasData(t)&&(o=J.get(t).events))for(a in J.remove(e,"handle events"),o)for(n=0,i=o[a].length;n<i;n++)w.event.add(e,a,o[a][n]);q.hasData(t)&&(t=q.access(t),t=w.extend({},t),q.set(e,t))}}function St(n,i,a,o){i=y(i);var t,e,s,r,l,c,u=0,d=n.length,f=d-1,p=i[0],h=m(p);if(h||1<d&&"string"==typeof p&&!D.checkClone&&Ct.test(p))return n.each(function(t){var e=n.eq(t);h&&(i[0]=p.call(this,t,e.html())),St(e,i,a,o)});if(d&&(e=(t=yt(i,n[0].ownerDocument,!1,n,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(r=(s=w.map(ht(t,"script"),kt)).length;u<d;u++)l=t,u!==f&&(l=w.clone(l,!0,!0),r&&w.merge(s,ht(l,"script"))),a.call(n[u],l,u);if(r)for(c=s[s.length-1].ownerDocument,w.map(s,xt),u=0;u<r;u++)l=s[u],ft.test(l.type||"")&&!J.access(l,"globalEval")&&w.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&!l.noModule&&w._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):b(l.textContent.replace(_t,""),l,c))}return n}function Et(t,e,n){for(var i,a=e?w.filter(e,t):t,o=0;null!=(i=a[o]);o++)n||1!==i.nodeType||w.cleanData(ht(i)),i.parentNode&&(n&&at(i)&&mt(ht(i,"script")),i.parentNode.removeChild(i));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,a,o,s,r,l,c,u=t.cloneNode(!0),d=at(t);if(!(D.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(s=ht(u),i=0,a=(o=ht(t)).length;i<a;i++)r=o[i],l=s[i],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&ut.test(r.type)?l.checked=r.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=r.defaultValue);if(e)if(n)for(o=o||ht(t),s=s||ht(u),i=0,a=o.length;i<a;i++)Nt(o[i],s[i]);else Nt(t,u);return 0<(s=ht(u,"script")).length&&mt(s,!d&&ht(t,"script")),u},cleanData:function(t){for(var e,n,i,a=w.event.special,o=0;void 0!==(n=t[o]);o++)if(G(n)){if(e=n[J.expando]){if(e.events)for(i in e.events)a[i]?w.event.remove(n,i):w.removeEvent(n,i,e.handle);n[J.expando]=void 0}n[q.expando]&&(n[q.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Et(this,t,!0)},remove:function(t){return Et(this,t)},text:function(t){return H(this,function(t){return void 0===t?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return St(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Tt(this,t).appendChild(t)})},prepend:function(){return St(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Tt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return St(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return St(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(ht(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return w.clone(this,t,e)})},html:function(t){return H(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!wt.test(t)&&!pt[(dt.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(w.cleanData(ht(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return St(this,arguments,function(t){var e=this.parentNode;w.inArray(this,n)<0&&(w.cleanData(ht(this)),e&&e.replaceChild(t,this))},n)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){w.fn[t]=function(t){for(var e,n=[],i=w(t),a=i.length-1,o=0;o<=a;o++)e=o===a?this:this.clone(!0),w(i[o])[s](e),l.apply(n,e.get());return this.pushStack(n)}});function jt(t){var e=t.ownerDocument.defaultView;return(e=!e||!e.opener?I:e).getComputedStyle(t)}function Ot(t,e,n){var i,a={};for(i in e)a[i]=t.style[i],t.style[i]=e[i];for(i in n=n.call(t),e)t.style[i]=a[i];return n}var Lt,zt,Pt,Rt,Ft,Ut,Bt,Ht,Yt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Qt=new RegExp(nt.join("|"),"i");function Wt(){var t;Ht&&(Bt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ht.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(Bt).appendChild(Ht),t=I.getComputedStyle(Ht),Lt="1%"!==t.top,Ut=12===Vt(t.marginLeft),Ht.style.right="60%",Rt=36===Vt(t.right),zt=36===Vt(t.width),Ht.style.position="absolute",Pt=12===Vt(Ht.offsetWidth/3),it.removeChild(Bt),Ht=null)}function Vt(t){return Math.round(parseFloat(t))}function Gt(t,e,n){var i,a,o=t.style;return(n=n||jt(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||at(t)||(a=w.style(t,e)),!D.pixelBoxStyles()&&Yt.test(a)&&Qt.test(e)&&(i=o.width,t=o.minWidth,e=o.maxWidth,o.minWidth=o.maxWidth=o.width=a,a=n.width,o.width=i,o.minWidth=t,o.maxWidth=e)),void 0!==a?a+"":a}function Zt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Bt=M.createElement("div"),(Ht=M.createElement("div")).style&&(Ht.style.backgroundClip="content-box",Ht.cloneNode(!0).style.backgroundClip="",D.clearCloneStyle="content-box"===Ht.style.backgroundClip,w.extend(D,{boxSizingReliable:function(){return Wt(),zt},pixelBoxStyles:function(){return Wt(),Rt},pixelPosition:function(){return Wt(),Lt},reliableMarginLeft:function(){return Wt(),Ut},scrollboxSize:function(){return Wt(),Pt},reliableTrDimensions:function(){var t,e,n;return null==Ft&&(t=M.createElement("table"),e=M.createElement("tr"),n=M.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",it.appendChild(t).appendChild(e).appendChild(n),n=I.getComputedStyle(e),Ft=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===e.offsetHeight,it.removeChild(t)),Ft}}));var Jt=["Webkit","Moz","ms"],qt=M.createElement("div").style,Kt={};function Xt(t){var e=w.cssProps[t]||Kt[t];return e||(t in qt?t:Kt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Jt.length;n--;)if((t=Jt[n]+e)in qt)return t}(t)||t)}var $t=/^(none|table(?!-c[ea]).+)/,te=/^--/,ee={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"};function ie(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ae(t,e,n,i,a,o){var s="width"===e?1:0,r=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=w.css(t,n+nt[s],!0,a)),i?("content"===n&&(l-=w.css(t,"padding"+nt[s],!0,a)),"margin"!==n&&(l-=w.css(t,"border"+nt[s]+"Width",!0,a))):(l+=w.css(t,"padding"+nt[s],!0,a),"padding"!==n?l+=w.css(t,"border"+nt[s]+"Width",!0,a):r+=w.css(t,"border"+nt[s]+"Width",!0,a));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-r-.5))||0),l}function oe(t,e,n){var i=jt(t),a=(!D.boxSizingReliable()||n)&&"border-box"===w.css(t,"boxSizing",!1,i),o=a,s=Gt(t,e,i),r="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(s)){if(!n)return s;s="auto"}return(!D.boxSizingReliable()&&a||!D.reliableTrDimensions()&&T(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===w.css(t,"display",!1,i))&&t.getClientRects().length&&(a="border-box"===w.css(t,"boxSizing",!1,i),(o=r in t)&&(s=t[r])),(s=parseFloat(s)||0)+ae(t,e,n||(a?"border":"content"),o,i,s)+"px"}function se(t,e,n,i,a){return new se.prototype.init(t,e,n,i,a)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){t=Gt(t,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var a,o,s,r=V(e),l=te.test(e),c=t.style;if(l||(e=Xt(r)),s=w.cssHooks[e]||w.cssHooks[r],void 0===n)return s&&"get"in s&&void 0!==(a=s.get(t,!1,i))?a:c[e];"string"===(o=typeof n)&&(a=et.exec(n))&&a[1]&&(n=rt(t,e,a),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=a&&a[3]||(w.cssNumber[r]?"":"px")),D.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var a,o=V(e);return te.test(e)||(e=Xt(o)),"normal"===(a=void 0===(a=(o=w.cssHooks[e]||w.cssHooks[o])&&"get"in o?o.get(t,!0,n):a)?Gt(t,e,i):a)&&e in ne&&(a=ne[e]),""===n||n?(e=parseFloat(a),!0===n||isFinite(e)?e||0:a):a}}),w.each(["height","width"],function(t,r){w.cssHooks[r]={get:function(t,e,n){if(e)return!$t.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?oe(t,r,n):Ot(t,ee,function(){return oe(t,r,n)})},set:function(t,e,n){var i,a=jt(t),o=!D.scrollboxSize()&&"absolute"===a.position,s=(o||n)&&"border-box"===w.css(t,"boxSizing",!1,a),n=n?ae(t,r,n,s,a):0;return s&&o&&(n-=Math.ceil(t["offset"+r[0].toUpperCase()+r.slice(1)]-parseFloat(a[r])-ae(t,r,"border",!1,a)-.5)),n&&(i=et.exec(e))&&"px"!==(i[3]||"px")&&(t.style[r]=e,e=w.css(t,r)),ie(0,e,n)}}}),w.cssHooks.marginLeft=Zt(D.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Gt(t,"marginLeft"))||t.getBoundingClientRect().left-Ot(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(a,o){w.cssHooks[a+o]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[a+nt[e]+o]=i[e]||i[e-2]||i[0];return n}},"margin"!==a&&(w.cssHooks[a+o].set=ie)}),w.fn.extend({css:function(t,e){return H(this,function(t,e,n){var i,a,o={},s=0;if(Array.isArray(e)){for(i=jt(t),a=e.length;s<a;s++)o[e[s]]=w.css(t,e[s],!1,i);return o}return void 0!==n?w.style(t,e,n):w.css(t,e)},t,e,1<arguments.length)}}),((w.Tween=se).prototype={constructor:se,init:function(t,e,n,i,a,o){this.elem=t,this.prop=n,this.easing=a||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var t=se.propHooks[this.prop];return(t&&t.get?t:se.propHooks._default).get(this)},run:function(t){var e,n=se.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:se.propHooks._default).set(this),this}}).init.prototype=se.prototype,(se.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=w.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[Xt(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=se.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=se.prototype.init,w.fx.step={};var re,le,ce=/^(?:toggle|show|hide)$/,ue=/queueHooks$/;function de(){le&&(!1===M.hidden&&I.requestAnimationFrame?I.requestAnimationFrame(de):I.setTimeout(de,w.fx.interval),w.fx.tick())}function fe(){return I.setTimeout(function(){re=void 0}),re=Date.now()}function pe(t,e){var n,i=0,a={height:t};for(e=e?1:0;i<4;i+=2-e)a["margin"+(n=nt[i])]=a["padding"+n]=t;return e&&(a.opacity=a.width=t),a}function he(t,e,n){for(var i,a=(me.tweeners[e]||[]).concat(me.tweeners["*"]),o=0,s=a.length;o<s;o++)if(i=a[o].call(n,e,t))return i}function me(a,t,e){var n,o,i=0,s=me.prefilters.length,r=w.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=re||fe(),t=Math.max(0,c.startTime+c.duration-t),e=1-(t/c.duration||0),n=0,i=c.tweens.length;n<i;n++)c.tweens[n].run(e);return r.notifyWith(a,[c,e,t]),e<1&&i?t:(i||r.notifyWith(a,[c,1,0]),r.resolveWith(a,[c]),!1)},c=r.promise({elem:a,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},e),originalProperties:t,originalOptions:e,startTime:re||fe(),duration:e.duration,tweens:[],createTween:function(t,e){t=w.Tween(a,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(t),t},stop:function(t){var e=0,n=t?c.tweens.length:0;if(o)return this;for(o=!0;e<n;e++)c.tweens[e].run(1);return t?(r.notifyWith(a,[c,1,0]),r.resolveWith(a,[c,t])):r.rejectWith(a,[c,t]),this}}),u=c.props;for(!function(t,e){var n,i,a,o,s;for(n in t)if(a=e[i=V(n)],o=t[n],Array.isArray(o)&&(a=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=w.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=a);else e[i]=a}(u,c.opts.specialEasing);i<s;i++)if(n=me.prefilters[i].call(c,a,u,c.opts))return m(n.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return w.map(u,he,c),m(c.opts.start)&&c.opts.start.call(a,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:a,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(me,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return rt(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,a=(t=m(t)?(e=t,["*"]):t.match(L)).length;i<a;i++)n=t[i],me.tweeners[n]=me.tweeners[n]||[],me.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,a,o,s,r,l,c,u="width"in e||"height"in e,d=this,f={},p=t.style,h=t.nodeType&&st(t),m=J.get(t,"fxshow");for(i in n.queue||(null==(s=w._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,r=s.empty.fire,s.empty.fire=function(){s.unqueued||r()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,w.queue(t,"fx").length||s.empty.fire()})})),e)if(a=e[i],ce.test(a)){if(delete e[i],o=o||"toggle"===a,a===(h?"hide":"show")){if("show"!==a||!m||void 0===m[i])continue;h=!0}f[i]=m&&m[i]||w.style(t,i)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(f))for(i in u&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=J.get(t,"display")),"none"===(u=w.css(t,"display"))&&(c?u=c:(ct([t],!0),c=t.style.display||c,u=w.css(t,"display"),ct([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===w.css(t,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(h=m.hidden):m=J.access(t,"fxshow",{display:c}),o&&(m.hidden=!h),h&&ct([t],!0),d.done(function(){for(i in h||ct([t]),J.remove(t,"fxshow"),f)w.style(t,i,f[i])})),l=he(h?m[i]:0,i,d),i in m||(m[i]=l.start,h&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?me.prefilters.unshift(t):me.prefilters.push(t)}}),w.speed=function(t,e,n){var i=t&&"object"==typeof t?w.extend({},t):{complete:n||!n&&e||m(t)&&t,duration:t,easing:n&&e||e&&!m(e)&&e};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){m(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(t,e,n,i){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){function a(){var t=me(this,w.extend({},e),s);(o||J.get(this,"finish"))&&t.stop(!0)}var o=w.isEmptyObject(e),s=w.speed(t,n,i);return a.finish=a,o||!1===s.queue?this.each(a):this.queue(s.queue,a)},stop:function(a,t,o){function s(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof a&&(o=t,t=a,a=void 0),t&&this.queue(a||"fx",[]),this.each(function(){var t=!0,e=null!=a&&a+"queueHooks",n=w.timers,i=J.get(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&ue.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=a&&n[e].queue!==a||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||w.dequeue(this,a)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=J.get(this),n=e[s+"queue"],i=e[s+"queueHooks"],a=w.timers,o=n?n.length:0;for(e.finish=!0,w.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===s&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),w.each(["toggle","show","hide"],function(t,i){var a=w.fn[i];w.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?a.apply(this,arguments):this.animate(pe(i,!0),t,e,n)}}),w.each({slideDown:pe("show"),slideUp:pe("hide"),slideToggle:pe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){w.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),w.timers=[],w.fx.tick=function(){var t,e=0,n=w.timers;for(re=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||w.fx.stop(),re=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){le||(le=!0,de())},w.fx.stop=function(){le=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(i,t){return i=w.fx&&w.fx.speeds[i]||i,this.queue(t=t||"fx",function(t,e){var n=I.setTimeout(t,i);e.stop=function(){I.clearTimeout(n)}})},d=M.createElement("input"),tt=M.createElement("select").appendChild(M.createElement("option")),d.type="checkbox",D.checkOn=""!==d.value,D.optSelected=tt.selected,(d=M.createElement("input")).value="t",d.type="radio",D.radioValue="t"===d.value;var ge,ye=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return H(this,w.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){w.removeAttr(this,t)})}}),w.extend({attr:function(t,e,n){var i,a,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?w.prop(t,e,n):(1===o&&w.isXMLDoc(t)||(a=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?ge:void 0)),void 0!==n?null===n?void w.removeAttr(t,e):a&&"set"in a&&void 0!==(i=a.set(t,n,e))?i:(t.setAttribute(e,n+""),n):!(a&&"get"in a&&null!==(i=a.get(t,e)))&&null==(i=w.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!D.radioValue&&"radio"===e&&T(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,a=e&&e.match(L);if(a&&1===t.nodeType)for(;n=a[i++];)t.removeAttribute(n)}}),ge={set:function(t,e,n){return!1===e?w.removeAttr(t,n):t.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(t,e){var s=ye[e]||w.find.attr;ye[e]=function(t,e,n){var i,a,o=e.toLowerCase();return n||(a=ye[o],ye[o]=i,i=null!=s(t,e,n)?o:null,ye[o]=a),i}});var ve=/^(?:input|select|textarea|button)$/i,De=/^(?:a|area)$/i;function be(t){return(t.match(L)||[]).join(" ")}function Ae(t){return t.getAttribute&&t.getAttribute("class")||""}function Ie(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(L)||[]}w.fn.extend({prop:function(t,e){return H(this,w.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[w.propFix[t]||t]})}}),w.extend({prop:function(t,e,n){var i,a,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(t)||(e=w.propFix[e]||e,a=w.propHooks[e]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(t,n,e))?i:t[e]=n:a&&"get"in a&&null!==(i=a.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):ve.test(t.nodeName)||De.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),D.optSelected||(w.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,n,i,a,o,s,r=0;if(m(e))return this.each(function(t){w(this).addClass(e.call(this,t,Ae(this)))});if((t=Ie(e)).length)for(;n=this[r++];)if(s=Ae(n),i=1===n.nodeType&&" "+be(s)+" "){for(o=0;a=t[o++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");s!==(s=be(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,a,o,s,r=0;if(m(e))return this.each(function(t){w(this).removeClass(e.call(this,t,Ae(this)))});if(!arguments.length)return this.attr("class","");if((t=Ie(e)).length)for(;n=this[r++];)if(s=Ae(n),i=1===n.nodeType&&" "+be(s)+" "){for(o=0;a=t[o++];)for(;-1<i.indexOf(" "+a+" ");)i=i.replace(" "+a+" "," ");s!==(s=be(i))&&n.setAttribute("class",s)}return this},toggleClass:function(a,e){var o=typeof a,s="string"==o||Array.isArray(a);return"boolean"==typeof e&&s?e?this.addClass(a):this.removeClass(a):m(a)?this.each(function(t){w(this).toggleClass(a.call(this,t,Ae(this),e),e)}):this.each(function(){var t,e,n,i;if(s)for(e=0,n=w(this),i=Ie(a);t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==a&&"boolean"!=o||((t=Ae(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==a&&J.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,i=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+be(Ae(e))+" ").indexOf(i))return!0;return!1}});var Me=/\r/g;w.fn.extend({val:function(e){var n,t,i,a=this[0];return arguments.length?(i=m(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,w(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=w.map(t,function(t){return null==t?"":t+""})),(n=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):a?(n=w.valHooks[a.type]||w.valHooks[a.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(a,"value"))?t:"string"==typeof(t=a.value)?t.replace(Me,""):null==t?"":t:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:be(w.text(t))}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,a="select-one"===t.type,o=a?null:[],s=a?i+1:n.length,r=i<0?s:a?i:0;r<s;r++)if(((e=n[r]).selected||r===i)&&!e.disabled&&(!e.parentNode.disabled||!T(e.parentNode,"optgroup"))){if(e=w(e).val(),a)return e;o.push(e)}return o},set:function(t,e){for(var n,i,a=t.options,o=w.makeArray(e),s=a.length;s--;)((i=a[s]).selected=-1<w.inArray(w.valHooks.option.get(i),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<w.inArray(w(t).val(),e)}},D.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),D.focusin="onfocusin"in I;function we(t){t.stopPropagation()}var Ce=/^(?:focusinfocus|focusoutblur)$/;w.extend(w.event,{trigger:function(t,e,n,i){var a,o,s,r,l,c,u,d=[n||M],f=v.call(t,"type")?t.type:t,p=v.call(t,"namespace")?t.namespace.split("."):[],h=u=o=n=n||M;if(3!==n.nodeType&&8!==n.nodeType&&!Ce.test(f+w.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),r=f.indexOf(":")<0&&"on"+f,(t=t[w.expando]?t:new w.Event(f,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:w.makeArray(e,[t]),c=w.event.special[f]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!g(n)){for(s=c.delegateType||f,Ce.test(s+f)||(h=h.parentNode);h;h=h.parentNode)d.push(h),o=h;o===(n.ownerDocument||M)&&d.push(o.defaultView||o.parentWindow||I)}for(a=0;(h=d[a++])&&!t.isPropagationStopped();)u=h,t.type=1<a?s:c.bindType||f,(l=(J.get(h,"events")||Object.create(null))[t.type]&&J.get(h,"handle"))&&l.apply(h,e),(l=r&&h[r])&&l.apply&&G(h)&&(t.result=l.apply(h,e),!1===t.result&&t.preventDefault());return t.type=f,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(d.pop(),e)||!G(n)||r&&m(n[f])&&!g(n)&&((o=n[r])&&(n[r]=null),w.event.triggered=f,t.isPropagationStopped()&&u.addEventListener(f,we),n[f](),t.isPropagationStopped()&&u.removeEventListener(f,we),w.event.triggered=void 0,o&&(n[r]=o)),t.result}},simulate:function(t,e,n){t=w.extend(new w.Event,n,{type:t,isSimulated:!0});w.event.trigger(t,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each(function(){w.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return w.event.trigger(t,e,n,!0)}}),D.focusin||w.each({focus:"focusin",blur:"focusout"},function(n,i){function a(t){w.event.simulate(i,t.target,w.event.fix(t))}w.event.special[i]={setup:function(){var t=this.ownerDocument||this.document||this,e=J.access(t,i);e||t.addEventListener(n,a,!0),J.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=J.access(t,i)-1;e?J.access(t,i,e):(t.removeEventListener(n,a,!0),J.remove(t,i))}}});var _e=I.location,Te={guid:Date.now()},ke=/\?/;w.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new I.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||w.error("Invalid XML: "+(n?w.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var xe=/\[\]$/,Ne=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;w.param=function(t,e){function n(t,e){e=m(e)?e():e,a[a.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var i,a=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,function(){n(this.name,this.value)});else for(i in t)!function n(i,t,a,o){if(Array.isArray(t))w.each(t,function(t,e){a||xe.test(i)?o(i,e):n(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,a,o)});else if(a||"object"!==h(t))o(i,t);else for(var e in t)n(i+"["+e+"]",t[e],a,o)}(i,t[i],e,n);return a.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Ee.test(this.nodeName)&&!Se.test(t)&&(this.checked||!ut.test(t))}).map(function(t,e){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}}):{name:e.name,value:n.replace(Ne,"\r\n")}}).get()}});var je=/%20/g,Oe=/#.*$/,Le=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pe=/^(?:GET|HEAD)$/,Re=/^\/\//,Fe={},Ue={},Be="*/".concat("*"),He=M.createElement("a");function Ye(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,a=t.toLowerCase().match(L)||[];if(m(e))for(;n=a[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function Qe(e,i,a,o){var s={},r=e===Ue;function l(t){var n;return s[t]=!0,w.each(e[t]||[],function(t,e){e=e(i,a,o);return"string"!=typeof e||r||s[e]?r?!(n=e):void 0:(i.dataTypes.unshift(e),l(e),!1)}),n}return l(i.dataTypes[0])||!s["*"]&&l("*")}function We(t,e){var n,i,a=w.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((a[n]?t:i=i||{})[n]=e[n]);return i&&w.extend(!0,t,i),t}He.href=_e.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_e.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_e.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?We(We(t,w.ajaxSettings),e):We(w.ajaxSettings,t)},ajaxPrefilter:Ye(Fe),ajaxTransport:Ye(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,c,u,n,d,f,p,i,a,h=w.ajaxSetup({},e=e||{}),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?w(m):w.event,y=w.Deferred(),v=w.Callbacks("once memory"),D=h.statusCode||{},o={},s={},r="canceled",b={readyState:0,getResponseHeader:function(t){var e;if(f){if(!n)for(n={};e=ze.exec(u);)n[e[1].toLowerCase()+" "]=(n[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=n[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return f?u:null},setRequestHeader:function(t,e){return null==f&&(t=s[t.toLowerCase()]=s[t.toLowerCase()]||t,o[t]=e),this},overrideMimeType:function(t){return null==f&&(h.mimeType=t),this},statusCode:function(t){if(t)if(f)b.always(t[b.status]);else for(var e in t)D[e]=[D[e],t[e]];return this},abort:function(t){t=t||r;return l&&l.abort(t),A(0,t),this}};if(y.promise(b),h.url=((t||h.url||_e.href)+"").replace(Re,_e.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){a=M.createElement("a");try{a.href=h.url,a.href=a.href,h.crossDomain=He.protocol+"//"+He.host!=a.protocol+"//"+a.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Qe(Fe,h,e,b),f)return b;for(i in(p=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pe.test(h.type),c=h.url.replace(Oe,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(je,"+")):(a=h.url.slice(c.length),h.data&&(h.processData||"string"==typeof h.data)&&(c+=(ke.test(c)?"&":"?")+h.data,delete h.data),!1===h.cache&&(c=c.replace(Le,"$1"),a=(ke.test(c)?"&":"?")+"_="+Te.guid+++a),h.url=c+a),h.ifModified&&(w.lastModified[c]&&b.setRequestHeader("If-Modified-Since",w.lastModified[c]),w.etag[c]&&b.setRequestHeader("If-None-Match",w.etag[c])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&b.setRequestHeader("Content-Type",h.contentType),b.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Be+"; q=0.01":""):h.accepts["*"]),h.headers)b.setRequestHeader(i,h.headers[i]);if(h.beforeSend&&(!1===h.beforeSend.call(m,b,h)||f))return b.abort();if(r="abort",v.add(h.complete),b.done(h.success),b.fail(h.error),l=Qe(Ue,h,e,b)){if(b.readyState=1,p&&g.trigger("ajaxSend",[b,h]),f)return b;h.async&&0<h.timeout&&(d=I.setTimeout(function(){b.abort("timeout")},h.timeout));try{f=!1,l.send(o,A)}catch(t){if(f)throw t;A(-1,t)}}else A(-1,"No Transport");function A(t,e,n,i){var a,o,s,r=e;f||(f=!0,d&&I.clearTimeout(d),l=void 0,u=i||"",b.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(s=function(t,e,n){for(var i,a,o,s,r=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in r)if(r[a]&&r[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||t.converters[a+" "+l[0]]){o=a;break}s=s||a}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,b,n)),!i&&-1<w.inArray("script",h.dataTypes)&&w.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),s=function(t,e,n,i){var a,o,s,r,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(a in c)if((r=a.split(" "))[1]===o&&(s=c[l+" "+r[0]]||c["* "+r[0]])){!0===s?s=c[a]:!0!==c[a]&&(o=r[0],u.unshift(r[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(h,s,b,i),i?(h.ifModified&&((n=b.getResponseHeader("Last-Modified"))&&(w.lastModified[c]=n),(n=b.getResponseHeader("etag"))&&(w.etag[c]=n)),204===t||"HEAD"===h.type?r="nocontent":304===t?r="notmodified":(r=s.state,a=s.data,i=!(o=s.error))):(o=r,!t&&r||(r="error",t<0&&(t=0))),b.status=t,b.statusText=(e||r)+"",i?y.resolveWith(m,[a,r,b]):y.rejectWith(m,[b,r,o]),b.statusCode(D),D=void 0,p&&g.trigger(i?"ajaxSuccess":"ajaxError",[b,h,i?a:o]),v.fireWith(m,[b,r]),p&&(g.trigger("ajaxComplete",[b,h]),--w.active||w.event.trigger("ajaxStop")))}return b},getJSON:function(t,e,n){return w.get(t,e,n,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],function(t,a){w[a]=function(t,e,n,i){return m(e)&&(i=i||n,n=e,e=void 0),w.ajax(w.extend({url:t,type:a,dataType:i,data:e,success:n},w.isPlainObject(t)&&t))}}),w.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),w._evalUrl=function(t,e,n){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e,n)}})},w.fn.extend({wrapAll:function(t){return this[0]&&(m(t)&&(t=t.call(this[0])),t=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(t){w(this).wrapInner(n.call(this,t))}):this.each(function(){var t=w(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=m(e);return this.each(function(t){w(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new I.XMLHttpRequest}catch(t){}};var Ve={0:200,1223:204},Ge=w.ajaxSettings.xhr();D.cors=!!Ge&&"withCredentials"in Ge,D.ajax=Ge=!!Ge,w.ajaxTransport(function(a){var o,s;if(D.cors||Ge&&!a.crossDomain)return{send:function(t,e){var n,i=a.xhr();if(i.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(n in a.xhrFields)i[n]=a.xhrFields[n];for(n in a.mimeType&&i.overrideMimeType&&i.overrideMimeType(a.mimeType),a.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);o=function(t){return function(){o&&(o=s=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Ve[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),s=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=s:i.onreadystatechange=function(){4===i.readyState&&I.setTimeout(function(){o&&s()})},o=o("abort");try{i.send(a.hasContent&&a.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),w.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),w.ajaxTransport("script",function(n){var i,a;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){i=w("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",a=function(t){i.remove(),a=null,t&&e("error"===t.type?404:200,t.type)}),M.head.appendChild(i[0])},abort:function(){a&&a()}}});var Ze=[],Je=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ze.pop()||w.expando+"_"+Te.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",function(t,e,n){var i,a,o,s=!1!==t.jsonp&&(Je.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Je.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Je,"$1"+i):!1!==t.jsonp&&(t.url+=(ke.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||w.error(i+" was not called"),o[0]},t.dataTypes[0]="json",a=I[i],I[i]=function(){o=arguments},n.always(function(){void 0===a?w(I).removeProp(i):I[i]=a,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ze.push(i)),o&&m(a)&&a(o[0]),o=a=void 0}),"script"}),D.createHTMLDocument=((d=M.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===d.childNodes.length),w.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(D.createHTMLDocument?((i=(e=M.implementation.createHTMLDocument("")).createElement("base")).href=M.location.href,e.head.appendChild(i)):e=M),i=!n&&[],(n=k.exec(t))?[e.createElement(n[1])]:(n=yt([t],e,i),i&&i.length&&w(i).remove(),w.merge([],n.childNodes)));var i},w.fn.load=function(t,e,n){var i,a,o,s=this,r=t.indexOf(" ");return-1<r&&(i=be(t.slice(r)),t=t.slice(0,r)),m(e)?(n=e,e=void 0):e&&"object"==typeof e&&(a="POST"),0<s.length&&w.ajax({url:t,type:a||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?w("<div>").append(w.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(t,e,n){var i,a,o,s,r=w.css(t,"position"),l=w(t),c={};"static"===r&&(t.style.position="relative"),o=l.offset(),i=w.css(t,"top"),s=w.css(t,"left"),s=("absolute"===r||"fixed"===r)&&-1<(i+s).indexOf("auto")?(a=(r=l.position()).top,r.left):(a=parseFloat(i)||0,parseFloat(s)||0),null!=(e=m(e)?e.call(t,n,w.extend({},o)):e).top&&(c.top=e.top-o.top+a),null!=e.left&&(c.left=e.left-o.left+s),"using"in e?e.using.call(t,c):l.css(c)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],a={top:0,left:0};if("fixed"===w.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((a=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),a.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-a.top-w.css(i,"marginTop",!0),left:e.left-a.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||it})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,a){var o="pageYOffset"===a;w.fn[e]=function(t){return H(this,function(t,e,n){var i;return g(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n?i?i[a]:t[e]:void(i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):t[e]=n)},e,t,arguments.length)}}),w.each(["top","left"],function(t,n){w.cssHooks[n]=Zt(D.pixelPosition,function(t,e){if(e)return e=Gt(t,n),Yt.test(e)?w(t).position()[n]+"px":e})}),w.each({Height:"height",Width:"width"},function(s,r){w.each({padding:"inner"+s,content:r,"":"outer"+s},function(i,o){w.fn[o]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),a=i||(!0===t||!0===e?"margin":"border");return H(this,function(t,e,n){var i;return g(t)?0===o.indexOf("outer")?t["inner"+s]:t.document.documentElement["client"+s]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+s],i["scroll"+s],t.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?w.css(t,e,a):w.style(t,e,n,a)},r,n?t:void 0,n)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){w.fn[e]=function(t){return this.on(e,t)}}),w.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){w.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}});var qe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(t,e){var n,i;if("string"==typeof e&&(i=t[e],e=t,t=i),m(t))return n=r.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(r.call(arguments)))}).guid=t.guid=t.guid||w.guid++,i},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=T,w.isFunction=m,w.isWindow=g,w.camelCase=V,w.type=h,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},w.trim=function(t){return null==t?"":(t+"").replace(qe,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var Ke=I.jQuery,Xe=I.$;return w.noConflict=function(t){return I.$===w&&(I.$=Xe),t&&I.jQuery===w&&(I.jQuery=Ke),w},void 0===t&&(I.jQuery=I.$=w),w}),function(c){var l,u=c.fn.domManip,d="_tmplitem",n=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,f={},p={},o={key:0,data:{}},h=0,m=0,a=[];function g(t,e,n,i){i={data:i||0===i||!1===i?i:e?e.data:{},_wrap:e?e._wrap:null,tmpl:null,parent:e||null,nodes:[],calls:b,nest:A,wrap:I,html:M,update:w};return t&&c.extend(i,t,{nodes:[],parent:e}),n&&(i.tmpl=n,i._ctnt=i._ctnt||i.tmpl(c,i),i.key=++h,(a.length?p:f)[h]=i),i}function s(e,t,n){var a,n=n?c.map(n,function(t){return"string"==typeof t?e.key?t.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+d+'="'+e.key+'" $2'):t:s(t,e,t._ctnt)}):e;return t?n:((n=n.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,e,n,i){D(a=c(n).get()),e&&(a=r(e).concat(a)),i&&(a=a.concat(r(i)))}),a||r(n))}function r(t){var e=document.createElement("div");return e.innerHTML=t,c.makeArray(e.childNodes)}function i(t){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+c.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,e,n,i,a,o,s){var r,l=c.tmpl.tag[n];if(!l)throw"Unknown template tag: "+n;return n=l._default||[],o&&!/\w$/.test(a)&&(a+=o,o=""),o=a?(a=v(a),s=s?","+v(s)+")":o?")":"",r=o?-1<a.indexOf(".")?a+v(o):"("+a+").call($item"+s:a,o?r:"(typeof("+a+")==='function'?("+a+").call($item):("+a+"))"):r=n.$1||"null",i=v(i),"');"+l[e?"close":"open"].split("$notnull_1").join(a?"typeof("+a+")!=='undefined' && ("+a+")!=null":"true").split("$1a").join(o).split("$1").join(r).split("$2").join(i||n.$2||"")+"__.push('"})+"');}return __;")}function y(t,e){t._wrap=s(t,!0,c.isArray(e)?e:[n.test(e)?e:c(e).html()]).join("")}function v(t){return t?t.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function D(t){for(var e,n,i,r="_"+m,l={},a=0,o=t.length;a<o;a++)if(1===(e=t[a]).nodeType){for(i=(n=e.getElementsByTagName("*")).length-1;0<=i;i--)s(n[i]);s(e)}function s(t){var e,n,i,a,o=t;if(a=t.getAttribute(d)){for(;o.parentNode&&1===(o=o.parentNode).nodeType&&!(e=o.getAttribute(d)););e!==a&&(o=o.parentNode&&11!==o.nodeType&&o.getAttribute(d)||0,(i=f[a])||((i=g(i=p[a],f[o]||p[o])).key=++h,f[h]=i),m&&s(a)),t.removeAttribute(d)}else m&&(i=c.data(t,"tmplItem"))&&(s(i.key),f[i.key]=i,o=(o=c.data(t.parentNode,"tmplItem"))?o.key:0);if(i){for(n=i;n&&n.key!=o;)n.nodes.push(t),n=n.parent;delete i._ctnt,delete i._wrap,c.data(t,"tmplItem",i)}function s(t){i=l[t+=r]=l[t]||g(i,f[i.parent.key+r]||i.parent)}}}function b(t,e,n,i){if(!t)return a.pop();a.push({_:t,tmpl:e,item:this,data:n,options:i})}function A(t,e,n){return c.tmpl(c.template(t),e,n,this)}function I(t,e){var n=t.options||{};return n.wrapped=e,c.tmpl(c.template(t.tmpl),t.data,n,t.item)}function M(t,n){var e=this._wrap;return c.map(c(c.isArray(e)?e.join(""):e).filter(t||"*"),function(t){return n?t.innerText||t.textContent:t.outerHTML||(e=t,(t=document.createElement("div")).appendChild(e.cloneNode(!0)),t.innerHTML);var e})}function w(){var t=this.nodes;c.tmpl(null,null,null,this).insertBefore(t[0]),c(t).remove()}c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,r){c.fn[s]=function(t){var e,n,i,a=[],o=c(t),t=1===this.length&&this[0].parentNode;if(l=f||{},t&&11===t.nodeType&&1===t.childNodes.length&&1===o.length)o[r](this[0]),a=this;else{for(n=0,i=o.length;n<i;n++)e=(0<(m=n)?this.clone(!0):this).get(),c(o[n])[r](e),a=a.concat(e);m=0,a=this.pushStack(a,s,o.selector)}return t=l,l=null,c.tmpl.complete(t),a}}),c.fn.extend({tmpl:function(t,e,n){return c.tmpl(this[0],t,e,n)},tmplItem:function(){return c.tmplItem(this[0])},template:function(t){return c.template(t,this[0])},domManip:function(t,e,n){if(t[0]&&c.isArray(t[0])){for(var i,a=c.makeArray(arguments),o=t[0],s=o.length,r=0;r<s&&!(i=c.data(o[r++],"tmplItem")););i&&m&&(a[2]=function(t){c.tmpl.afterManip(this,t,n)}),u.apply(this,a)}else u.apply(this,arguments);return m=0,l||c.tmpl.complete(f),this}}),c.extend({tmpl:function(e,t,n,i){var a=!i;if(a)i=o,e=c.template[e]||c.template(null,e),p={};else if(!e)return e=i.tmpl,(f[i.key]=i).nodes=[],i.wrapped&&y(i,i.wrapped),c(s(i,null,i.tmpl(c,i)));return e?("function"==typeof t&&(t=t.call(i||{})),n&&n.wrapped&&y(n,n.wrapped),t=c.isArray(t)?c.map(t,function(t){return t?g(n,i,e,t):null}):[g(n,i,e,t)],a?c(s(i,null,t)):t):[]},tmplItem:function(t){var e;for(t instanceof c&&(t=t[0]);t&&1===t.nodeType&&!(e=c.data(t,"tmplItem"))&&(t=t.parentNode););return e||o},template:function(t,e){return e?("string"==typeof e?e=i(e):e instanceof c&&(e=e[0]||{}),e.nodeType&&(e=c.data(e,"tmpl")||c.data(e,"tmpl",i(e.innerHTML))),"string"==typeof t?c.template[t]=e:e):t?"string"!=typeof t?c.template(null,t):c.template[t]||c.template(null,n.test(t)?t:c(t)):null},encode:function(t){return(""+t).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}}),c.extend(c.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){f={}},afterManip:function(t,e,n){var i=11===e.nodeType?c.makeArray(e.childNodes):1===e.nodeType?[e]:[];n.call(t,e),D(i),m++}})}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(G){"use strict";G.ui=G.ui||{},G.ui.version="x.x.x";var a,i,I,M,o,s,r,l,c,n,u=0,d=Array.prototype.hasOwnProperty,f=Array.prototype.slice;function w(t,e,n){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?n/100:1)]}function C(t,e){return parseInt(G.css(t,e),10)||0}function _(t){return null!=t&&t===t.window}G.cleanData=(a=G.cleanData,function(t){for(var e,n,i=0;null!=(n=t[i]);i++)(e=G._data(n,"events"))&&e.remove&&G(n).triggerHandler("remove");a(t)}),G.widget=function(t,n,e){var i,a,o,s={},r=t.split(".")[0],l=r+"-"+(t=t.split(".")[1]);return e||(e=n,n=G.Widget),Array.isArray(e)&&(e=G.extend.apply(null,[{}].concat(e))),G.expr.pseudos[l.toLowerCase()]=function(t){return!!G.data(t,l)},G[r]=G[r]||{},i=G[r][t],a=G[r][t]=function(t,e){if(!this._createWidget)return new a(t,e);arguments.length&&this._createWidget(t,e)},G.extend(a,i,{version:e.version,_proto:G.extend({},e),_childConstructors:[]}),(o=new n).options=G.widget.extend({},o.options),G.each(e,function(e,i){function a(){return n.prototype[e].apply(this,arguments)}function o(t){return n.prototype[e].apply(this,t)}s[e]="function"==typeof i?function(){var t,e=this._super,n=this._superApply;return this._super=a,this._superApply=o,t=i.apply(this,arguments),this._super=e,this._superApply=n,t}:i}),a.prototype=G.widget.extend(o,{widgetEventPrefix:i&&o.widgetEventPrefix||t},s,{constructor:a,namespace:r,widgetName:t,widgetFullName:l}),i?(G.each(i._childConstructors,function(t,e){var n=e.prototype;G.widget(n.namespace+"."+n.widgetName,a,e._proto)}),delete i._childConstructors):n._childConstructors.push(a),G.widget.bridge(t,a),a},G.widget.extend=function(t){for(var e,n,i=f.call(arguments,1),a=0,o=i.length;a<o;a++)for(e in i[a])n=i[a][e],d.call(i[a],e)&&void 0!==n&&(G.isPlainObject(n)?t[e]=G.isPlainObject(t[e])?G.widget.extend({},t[e],n):G.widget.extend({},n):t[e]=n);return t},G.widget.bridge=function(o,e){var s=e.prototype.widgetFullName||o;G.fn[o]=function(n){var t="string"==typeof n,i=f.call(arguments,1),a=this;return t?this.length||"instance"!==n?this.each(function(){var t,e=G.data(this,s);return"instance"===n?(a=e,!1):e?"function"!=typeof e[n]||"_"===n.charAt(0)?G.error("no such method '"+n+"' for "+o+" widget instance"):(t=e[n].apply(e,i))!==e&&void 0!==t?(a=t&&t.jquery?a.pushStack(t.get()):t,!1):void 0:G.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+n+"'")}):a=void 0:(i.length&&(n=G.widget.extend.apply(null,[n].concat(i))),this.each(function(){var t=G.data(this,s);t?(t.option(n||{}),t._init&&t._init()):G.data(this,s,new e(n,this))})),a}},G.Widget=function(){},G.Widget._childConstructors=[],G.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=G(e||this.defaultElement||this)[0],this.element=G(e),this.uuid=u++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=G(),this.hoverable=G(),this.focusable=G(),this.classesElementLookup={},e!==this&&(G.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=G(e.style?e.ownerDocument:e.document||e),this.window=G(this.document[0].defaultView||this.document[0].parentWindow)),this.options=G.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:G.noop,_create:G.noop,_init:G.noop,destroy:function(){var n=this;this._destroy(),G.each(this.classesElementLookup,function(t,e){n._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:G.noop,widget:function(){return this.element},option:function(t,e){var n,i,a,o=t;if(0===arguments.length)return G.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(n=t.split(".")).shift(),n.length){for(i=o[t]=G.widget.extend({},this.options[t]),a=0;a<n.length-1;a++)i[n[a]]=i[n[a]]||{},i=i[n[a]];if(t=n.pop(),1===arguments.length)return void 0===i[t]?null:i[t];i[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,n,i;for(e in t)i=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&i&&i.length&&(n=G(i.get()),this._removeClass(i,e),n.addClass(this._classes({element:n,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(a){var o=[],s=this;function t(t,e){for(var n,i=0;i<t.length;i++)n=s.classesElementLookup[t[i]]||G(),n=a.add?(a.element.each(function(t,e){G.map(s.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||s._on(G(e),{remove:"_untrackClassesElement"})}),G(G.uniqueSort(n.get().concat(a.element.get())))):G(n.not(a.element).get()),s.classesElementLookup[t[i]]=n,o.push(t[i]),e&&a.classes[t[i]]&&o.push(a.classes[t[i]])}return(a=G.extend({element:this.element,classes:this.options.classes||{}},a)).keys&&t(a.keys.match(/\S+/g)||[],!0),a.extra&&t(a.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(n){var i=this;G.each(i.classesElementLookup,function(t,e){-1!==G.inArray(n.target,e)&&(i.classesElementLookup[t]=G(e.not(n.target).get()))}),this._off(G(n.target))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){var a="string"==typeof t||null===t;return(n={extra:a?e:n,keys:a?t:e,element:a?this.element:t,add:i="boolean"==typeof i?i:n}).element.toggleClass(this._classes(n),i),this},_on:function(a,o,t){var s,r=this;"boolean"!=typeof a&&(t=o,o=a,a=!1),t?(o=s=G(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,s=this.widget()),G.each(t,function(t,e){function n(){if(a||!0!==r.options.disabled&&!G(this).hasClass("ui-state-disabled"))return("string"==typeof e?r[e]:e).apply(r,arguments)}"string"!=typeof e&&(n.guid=e.guid=e.guid||n.guid||G.guid++);var i=t.match(/^([\w:-]*)\s*(.*)$/),t=i[1]+r.eventNamespace;(i=i[2])?s.on(t,i,n):o.on(t,n)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=G(this.bindings.not(t).get()),this.focusable=G(this.focusable.not(t).get()),this.hoverable=G(this.hoverable.not(t).get())},_delay:function(t,e){var n=this;return setTimeout(function(){return("string"==typeof t?n[t]:t).apply(n,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(G(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(G(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(G(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(G(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,n){var i,a,o=this.options[t];if(n=n||{},(e=G.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],a=e.originalEvent)for(i in a)i in e||(e[i]=a[i]);return this.element.trigger(e,n),!("function"==typeof o&&!1===o.apply(this.element[0],[e].concat(n))||e.isDefaultPrevented())}},G.each({show:"fadeIn",hide:"fadeOut"},function(o,s){G.Widget.prototype["_"+o]=function(e,t,n){var i,a=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||s:o;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),i=!G.isEmptyObject(t),t.complete=n,t.delay&&e.delay(t.delay),i&&G.effects&&G.effects.effect[a]?e[o](t):a!==o&&e[a]?e[a](t.duration,t.easing,n):e.queue(function(t){G(this)[o](),n&&n.call(e[0]),t()})}}),G.widget,I=Math.max,M=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,c=/%$/,n=G.fn.position,G.position={scrollbarWidth:function(){if(void 0!==i)return i;var t,e=G("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),n=e.children()[0];return G("body").append(e),t=n.offsetWidth,e.css("overflow","scroll"),t===(n=n.offsetWidth)&&(n=e[0].clientWidth),e.remove(),i=t-n},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?G.position.scrollbarWidth():0,height:e?G.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=G(t||window),n=_(e[0]),i=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:n,isDocument:i,offset:n||i?{left:0,top:0}:G(t).offset(),scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},G.fn.position=function(d){if(!d||!d.of)return n.apply(this,arguments);var f,p,h,m,g,t,y="string"==typeof(d=G.extend({},d)).of?G(document).find(d.of):G(d.of),v=G.position.getWithinInfo(d.within),D=G.position.getScrollInfo(v),b=(d.collision||"flip").split(" "),A={},e=9===(t=(e=y)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:_(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return y[0].preventDefault&&(d.at="left top"),p=e.width,h=e.height,g=G.extend({},m=e.offset),G.each(["my","at"],function(){var t,e,n=(d[this]||"").split(" ");(n=1===n.length?o.test(n[0])?n.concat(["center"]):s.test(n[0])?["center"].concat(n):["center","center"]:n)[0]=o.test(n[0])?n[0]:"center",n[1]=s.test(n[1])?n[1]:"center",t=r.exec(n[0]),e=r.exec(n[1]),A[this]=[t?t[0]:0,e?e[0]:0],d[this]=[l.exec(n[0])[0],l.exec(n[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===d.at[0]?g.left+=p:"center"===d.at[0]&&(g.left+=p/2),"bottom"===d.at[1]?g.top+=h:"center"===d.at[1]&&(g.top+=h/2),f=w(A.at,p,h),g.left+=f[0],g.top+=f[1],this.each(function(){var n,t,s=G(this),r=s.outerWidth(),l=s.outerHeight(),e=C(this,"marginLeft"),i=C(this,"marginTop"),a=r+e+C(this,"marginRight")+D.width,o=l+i+C(this,"marginBottom")+D.height,c=G.extend({},g),u=w(A.my,s.outerWidth(),s.outerHeight());"right"===d.my[0]?c.left-=r:"center"===d.my[0]&&(c.left-=r/2),"bottom"===d.my[1]?c.top-=l:"center"===d.my[1]&&(c.top-=l/2),c.left+=u[0],c.top+=u[1],n={marginLeft:e,marginTop:i},G.each(["left","top"],function(t,e){G.ui.position[b[t]]&&G.ui.position[b[t]][e](c,{targetWidth:p,targetHeight:h,elemWidth:r,elemHeight:l,collisionPosition:n,collisionWidth:a,collisionHeight:o,offset:[f[0]+u[0],f[1]+u[1]],my:d.my,at:d.at,within:v,elem:s})}),d.using&&(t=function(t){var e=m.left-c.left,n=e+p-r,i=m.top-c.top,a=i+h-l,o={target:{element:y,left:m.left,top:m.top,width:p,height:h},element:{element:s,left:c.left,top:c.top,width:r,height:l},horizontal:n<0?"left":0<e?"right":"center",vertical:a<0?"top":0<i?"bottom":"middle"};p<r&&M(e+n)<p&&(o.horizontal="center"),h<l&&M(i+a)<h&&(o.vertical="middle"),I(M(e),M(n))>I(M(i),M(a))?o.important="horizontal":o.important="vertical",d.using.call(this,t,o)}),s.offset(G.extend(c,{using:t}))})},G.ui.position={fit:{left:function(t,e){var n=e.within,i=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,o=t.left-e.collisionPosition.marginLeft,s=i-o,r=o+e.collisionWidth-a-i;e.collisionWidth>a?0<s&&r<=0?(n=t.left+s+e.collisionWidth-a-i,t.left+=s-n):t.left=!(0<r&&s<=0)&&r<s?i+a-e.collisionWidth:i:0<s?t.left+=s:0<r?t.left-=r:t.left=I(t.left-o,t.left)},top:function(t,e){var n=e.within,i=n.isWindow?n.scrollTop:n.offset.top,a=e.within.height,o=t.top-e.collisionPosition.marginTop,s=i-o,r=o+e.collisionHeight-a-i;e.collisionHeight>a?0<s&&r<=0?(n=t.top+s+e.collisionHeight-a-i,t.top+=s-n):t.top=!(0<r&&s<=0)&&r<s?i+a-e.collisionHeight:i:0<s?t.top+=s:0<r?t.top-=r:t.top=I(t.top-o,t.top)}},flip:{left:function(t,e){var n=(l=e.within).offset.left+l.scrollLeft,i=l.width,a=l.isWindow?l.scrollLeft:l.offset.left,o=(c=t.left-e.collisionPosition.marginLeft)-a,s=c+e.collisionWidth-i-a,r="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,l="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,c=-2*e.offset[0];o<0?((n=t.left+r+l+c+e.collisionWidth-i-n)<0||n<M(o))&&(t.left+=r+l+c):0<s&&(0<(a=t.left-e.collisionPosition.marginLeft+r+l+c-a)||M(a)<s)&&(t.left+=r+l+c)},top:function(t,e){var n=(l=e.within).offset.top+l.scrollTop,i=l.height,a=l.isWindow?l.scrollTop:l.offset.top,o=(c=t.top-e.collisionPosition.marginTop)-a,s=c+e.collisionHeight-i-a,r="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,l="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,c=-2*e.offset[1];o<0?((n=t.top+r+l+c+e.collisionHeight-i-n)<0||n<M(o))&&(t.top+=r+l+c):0<s&&(0<(a=t.top-e.collisionPosition.marginTop+r+l+c-a)||M(a)<s)&&(t.top+=r+l+c)}},flipfit:{left:function(){G.ui.position.flip.left.apply(this,arguments),G.ui.position.fit.left.apply(this,arguments)},top:function(){G.ui.position.flip.top.apply(this,arguments),G.ui.position.fit.top.apply(this,arguments)}}},G.ui.position,G.extend(G.expr.pseudos,{data:G.expr.createPseudo?G.expr.createPseudo(function(e){return function(t){return!!G.data(t,e)}}):function(t,e,n){return!!G.data(t,n[3])}}),G.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var t,p=G,h={},e=h.toString,m=/^([\-+])=\s*(\d+\.?\d*)/,g=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],y=p.Color=function(t,e,n,i){return new p.Color.fn.parse(t,e,n,i)},v={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},D={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},b=y.support={},A=p("<p>")[0],T=p.each;function k(t){return null==t?t+"":"object"==typeof t?h[e.call(t)]||"object":typeof t}function x(t,e,n){var i=D[e.type]||{};return null==t?n||!e.def?null:e.def:(t=i.floor?~~t:parseFloat(t),isNaN(t)?e.def:i.mod?(t+i.mod)%i.mod:Math.min(i.max,Math.max(0,t)))}function N(i){var a=y(),o=a._rgba=[];return i=i.toLowerCase(),T(g,function(t,e){var n=(n=e.re.exec(i))&&e.parse(n),e=e.space||"rgba";if(n)return n=a[e](n),a[v[e].cache]=n[v[e].cache],o=a._rgba=n._rgba,!1}),o.length?("0,0,0,0"===o.join()&&p.extend(o,W.transparent),a):W[i]}function S(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}A.style.cssText="background-color:rgba(1,1,1,.5)",b.rgba=-1<A.style.backgroundColor.indexOf("rgba"),T(v,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),p.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){h["[object "+e+"]"]=e.toLowerCase()}),(y.fn=p.extend(y.prototype,{parse:function(a,t,e,n){if(void 0===a)return this._rgba=[null,null,null,null],this;(a.jquery||a.nodeType)&&(a=p(a).css(t),t=void 0);var o=this,i=k(a),s=this._rgba=[];return void 0!==t&&(a=[a,t,e,n],i="array"),"string"===i?this.parse(N(a)||W._default):"array"===i?(T(v.rgba.props,function(t,e){s[e.idx]=x(a[e.idx],e)}),this):"object"===i?(T(v,a instanceof y?function(t,e){a[e.cache]&&(o[e.cache]=a[e.cache].slice())}:function(t,n){var i=n.cache;T(n.props,function(t,e){if(!o[i]&&n.to){if("alpha"===t||null==a[t])return;o[i]=n.to(o._rgba)}o[i][e.idx]=x(a[t],e,!0)}),o[i]&&p.inArray(null,o[i].slice(0,3))<0&&(null==o[i][3]&&(o[i][3]=1),n.from&&(o._rgba=n.from(o[i])))}),this):void 0},is:function(t){var a=y(t),o=!0,s=this;return T(v,function(t,e){var n,i=a[e.cache];return i&&(n=s[e.cache]||e.to&&e.to(s._rgba)||[],T(e.props,function(t,e){if(null!=i[e.idx])return o=i[e.idx]===n[e.idx]})),o}),o},_space:function(){var n=[],i=this;return T(v,function(t,e){i[e.cache]&&n.push(t)}),n.pop()},transition:function(t,s){var e=(c=y(t))._space(),n=v[e],r=(t=0===this.alpha()?y("transparent"):this)[n.cache]||n.to(t._rgba),l=r.slice(),c=c[n.cache];return T(n.props,function(t,e){var n=e.idx,i=r[n],a=c[n],o=D[e.type]||{};null!==a&&(null===i?l[n]=a:(o.mod&&(a-i>o.mod/2?i+=o.mod:i-a>o.mod/2&&(i-=o.mod)),l[n]=x((a-i)*s+i,e)))}),this[e](l)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),n=e.pop(),i=y(t)._rgba;return y(p.map(e,function(t,e){return(1-n)*i[e]+n*t}))},toRgbaString:function(){var t="rgba(",e=p.map(this._rgba,function(t,e){return null!=t?t:2<e?1:0});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=p.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),n=e.pop();return t&&e.push(~~(255*n)),"#"+p.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=y.fn,v.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=t[3],o=Math.max(e,n,i),s=Math.min(e,n,i),r=o-s,t=.5*(l=o+s),n=s===o?0:e===o?60*(n-i)/r+360:n===o?60*(i-e)/r+120:60*(e-n)/r+240,l=0==r?0:t<=.5?r/l:r/(2-l);return[Math.round(n)%360,l,t,null==a?1:a]},v.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],i=t[2],t=t[3],i=2*i-(n=i<=.5?i*(1+n):i+n-i*n);return[Math.round(255*S(i,n,e+1/3)),Math.round(255*S(i,n,e)),Math.round(255*S(i,n,e-1/3)),t]},T(v,function(l,t){var e=t.props,o=t.cache,s=t.to,r=t.from;y.fn[l]=function(t){if(s&&!this[o]&&(this[o]=s(this._rgba)),void 0===t)return this[o].slice();var n=k(t),i="array"===n||"object"===n?t:arguments,a=this[o].slice();return T(e,function(t,e){null==(t=i["object"===n?t:e.idx])&&(t=a[e.idx]),a[e.idx]=x(t,e)}),r?((t=y(r(a)))[o]=a,t):y(a)},T(e,function(s,r){y.fn[s]||(y.fn[s]=function(t){var e,n=k(t),i="alpha"===s?this._hsla?"hsla":"rgba":l,a=this[i](),o=a[r.idx];return"undefined"===n?o:("function"===n&&(n=k(t=t.call(this,o))),null==t&&r.empty?this:("string"===n&&(e=m.exec(t))&&(t=o+parseFloat(e[2])*("+"===e[1]?1:-1)),a[r.idx]=t,this[i](a)))})})}),(y.hook=function(t){t=t.split(" "),T(t,function(t,o){p.cssHooks[o]={set:function(t,e){var n,i,a="";if("transparent"!==e&&("string"!==k(e)||(n=N(e)))){if(e=y(n||e),!b.rgba&&1!==e._rgba[3]){for(i="backgroundColor"===o?t.parentNode:t;(""===a||"transparent"===a)&&i&&i.style;)try{a=p.css(i,"backgroundColor"),i=i.parentNode}catch(t){}e=e.blend(a&&"transparent"!==a?a:"_default")}e=e.toRgbaString()}try{t.style[o]=e}catch(t){}}},p.fx.step[o]=function(t){t.colorInit||(t.start=y(t.elem,o),t.end=y(t.end),t.colorInit=!0),p.cssHooks[o].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),p.cssHooks.borderColor={expand:function(n){var i={};return T(["Top","Right","Bottom","Left"],function(t,e){i["border"+e+"Color"]=n}),i}};var E,j,O,L,z,P,R,F,U,B,H,Y,Q,W=p.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},V="ui-effects-",Z="ui-effects-style",J="ui-effects-animated";function q(t){var e,n,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[e=i[n]]&&(a[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=i[e]);else for(e in i)"string"==typeof i[e]&&(a[e]=i[e]);return a}function K(t,e,n,i){return t={effect:t=G.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(i=e,n=null,e={}),"number"!=typeof e&&!G.fx.speeds[e]||(i=n,n=e,e={}),"function"==typeof n&&(i=n,n=null),e&&G.extend(t,e),n=n||e.duration,t.duration=G.fx.off?0:"number"==typeof n?n:n in G.fx.speeds?G.fx.speeds[n]:G.fx.speeds._default,t.complete=i||e.complete,t}function X(t){return!t||"number"==typeof t||G.fx.speeds[t]||"string"==typeof t&&!G.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function $(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}G.effects={effect:{}},L=["add","remove","toggle"],z={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},G.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){G.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(p.style(t.elem,e,t.end),t.setAttr=!0)}}),G.fn.addBack||(G.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),G.effects.animateClass=function(a,t,e,n){var o=G.speed(t,e,n);return this.queue(function(){function t(){G.each(L,function(t,e){a[e]&&n[e+"Class"](a[e])})}var n=G(this),e=n.attr("class")||"",i=(i=o.children?n.find("*").addBack():n).map(function(){return{el:G(this),start:q(this)}});t(),i=i.map(function(){return this.end=q(this.el[0]),this.diff=function(t,e){var n,i,a={};for(n in e)i=e[n],t[n]!==i&&(z[n]||!G.fx.step[n]&&isNaN(parseFloat(i))||(a[n]=i));return a}(this.start,this.end),this}),n.attr("class",e),i=i.map(function(){var t=this,e=G.Deferred(),n=G.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),G.when.apply(G,i.get()).done(function(){t(),G.each(arguments,function(){var e=this.el;G.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(n[0])})})},G.fn.extend({addClass:(O=G.fn.addClass,function(t,e,n,i){return e?G.effects.animateClass.call(this,{add:t},e,n,i):O.apply(this,arguments)}),removeClass:(j=G.fn.removeClass,function(t,e,n,i){return 1<arguments.length?G.effects.animateClass.call(this,{remove:t},e,n,i):j.apply(this,arguments)}),toggleClass:(E=G.fn.toggleClass,function(t,e,n,i,a){return"boolean"==typeof e||void 0===e?n?G.effects.animateClass.call(this,e?{add:t}:{remove:t},n,i,a):E.apply(this,arguments):G.effects.animateClass.call(this,{toggle:t},e,n,i)}),switchClass:function(t,e,n,i,a){return G.effects.animateClass.call(this,{add:e,remove:t},n,i,a)}}),G.expr&&G.expr.pseudos&&G.expr.pseudos.animated&&(G.expr.pseudos.animated=(P=G.expr.pseudos.animated,function(t){return!!G(t).data(J)||P(t)})),!1!==G.uiBackCompat&&G.extend(G.effects,{save:function(t,e){for(var n=0,i=e.length;n<i;n++)null!==e[n]&&t.data(V+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,i=0,a=e.length;i<a;i++)null!==e[i]&&(n=t.data(V+e[i]),t.css(e[i],n))},setMode:function(t,e){return"toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=G("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},a=document.activeElement;try{a.id}catch(t){a=document.body}return n.wrap(t),n[0]!==a&&!G.contains(n[0],a)||G(a).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(G.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),G.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!G.contains(t[0],e)||G(e).trigger("focus")),t}}),G.extend(G.effects,{version:"x.x.x",define:function(t,e,n){return n||(n=e,e="effect"),G.effects.effect[t]=n,G.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var i="horizontal"!==n?(e||100)/100:1,e="vertical"!==n?(e||100)/100:1;return{height:t.height()*e,width:t.width()*i,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*i}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1<e&&i.splice.apply(i,[1,0].concat(i.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(Z,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(Z)||"",t.removeData(Z)},mode:function(t,e){return t=t.is(":hidden"),"toggle"===e&&(e=t?"show":"hide"),(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createPlaceholder:function(t){var e,n=t.css("position"),i=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",e=G("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(V+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=V+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){G.effects.restoreStyle(t),G.effects.removePlaceholder(t)},setTransition:function(i,t,a,o){return o=o||{},G.each(t,function(t,e){var n=i.cssUnit(e);0<n[0]&&(o[e]=n[0]*a+n[1])}),o}}),G.fn.extend({effect:function(){function t(t){var e=G(this),n=G.effects.mode(e,r)||o;e.data(J,!0),l.push(n),o&&("show"===n||n===o&&"hide"===n)&&e.show(),o&&"none"===n||G.effects.saveStyle(e),"function"==typeof t&&t()}var i=K.apply(this,arguments),a=G.effects.effect[i.effect],o=a.mode,e=i.queue,n=e||"fx",s=i.complete,r=i.mode,l=[];return G.fx.off||!a?r?this[r](i.duration,s):this.each(function(){s&&s.call(this)}):!1===e?this.each(t).each(c):this.queue(n,t).queue(n,c);function c(t){var e=G(this);function n(){"function"==typeof s&&s.call(e[0]),"function"==typeof t&&t()}i.mode=l.shift(),!1===G.uiBackCompat||o?"none"===i.mode?(e[r](),n()):a.call(e[0],i,function(){e.removeData(J),G.effects.cleanUp(e),"hide"===i.mode&&e.hide(),n()}):(e.is(":hidden")?"hide"===r:"show"===r)?(e[r](),n()):a.call(e[0],i,n)}},show:(U=G.fn.show,function(t){return X(t)?U.apply(this,arguments):((t=K.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(F=G.fn.hide,function(t){return X(t)?F.apply(this,arguments):((t=K.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(R=G.fn.toggle,function(t){return X(t)||"boolean"==typeof t?R.apply(this,arguments):((t=K.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var n=this.css(t),i=[];return G.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(i=[parseFloat(n),e])}),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):$(this.css("clip"),this)},transfer:function(t,e){var n=G(this),i="fixed"===(r=G(t.to)).css("position"),a=G("body"),o=i?a.scrollTop():0,s=i?a.scrollLeft():0,a={top:(a=r.offset()).top-o,left:a.left-s,height:r.innerHeight(),width:r.innerWidth()},r=n.offset(),l=G("<div class='ui-effects-transfer'></div>");l.appendTo("body").addClass(t.className).css({top:r.top-o,left:r.left-s,height:n.innerHeight(),width:n.innerWidth(),position:i?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),"function"==typeof e&&e()})}}),G.fx.step.clip=function(t){t.clipInit||(t.start=G(t.elem).cssClip(),"string"==typeof t.end&&(t.end=$(t.end,t.elem)),t.clipInit=!0),G(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},B={},G.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){B[t]=function(t){return Math.pow(t,e+2)}}),G.extend(B,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),G.each(B,function(t,e){G.easing["easeIn"+t]=e,G.easing["easeOut"+t]=function(t){return 1-e(1-t)},G.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),A=G.effects,G.effects.define("blind","hide",function(t,e){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},i=G(this),a=t.direction||"up",o=i.cssClip(),s={clip:G.extend({},o)},r=G.effects.createPlaceholder(i);s.clip[n[a][0]]=s.clip[n[a][1]],"show"===t.mode&&(i.cssClip(s.clip),r&&r.css(G.effects.clipToBox(s)),s.clip=o),r&&r.animate(G.effects.clipToBox(s),t.duration,t.easing),i.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),G.effects.define("bounce",function(t,e){var n,i,a=G(this),o=t.mode,s="hide"===o,r="show"===o,l=t.direction||"up",c=t.distance,u=t.times||5,d=t.duration/(o=2*u+(r||s?1:0)),f=t.easing,p="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l,m=0,t=a.queue().length;for(G.effects.createPlaceholder(a),l=a.css(p),c=c||a["top"==p?"outerHeight":"outerWidth"]()/3,r&&((i={opacity:1})[p]=l,a.css("opacity",0).css(p,h?2*-c:2*c).animate(i,d,f)),s&&(c/=Math.pow(2,u-1)),(i={})[p]=l;m<u;m++)(n={})[p]=(h?"-=":"+=")+c,a.animate(n,d,f).animate(i,d,f),c=s?2*c:c/2;s&&((n={opacity:0})[p]=(h?"-=":"+=")+c,a.animate(n,d,f)),a.queue(e),G.effects.unshift(a,t,1+o)}),G.effects.define("clip","hide",function(t,e){var n={},i=G(this),a=(o="both"===(s=t.direction||"vertical"))||"horizontal"===s,o=o||"vertical"===s,s=i.cssClip();n.clip={top:o?(s.bottom-s.top)/2:s.top,right:a?(s.right-s.left)/2:s.right,bottom:o?(s.bottom-s.top)/2:s.bottom,left:a?(s.right-s.left)/2:s.left},G.effects.createPlaceholder(i),"show"===t.mode&&(i.cssClip(n.clip),n.clip=s),i.animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),G.effects.define("drop","hide",function(t,e){var n=G(this),i="show"===t.mode,a=t.direction||"left",o="up"===a||"down"===a?"top":"left",s="up"===a||"left"===a?"-=":"+=",r="+="==s?"-=":"+=",l={opacity:0};G.effects.createPlaceholder(n),a=t.distance||n["top"==o?"outerHeight":"outerWidth"](!0)/2,l[o]=s+a,i&&(n.css(l),l[o]=r+a,l.opacity=1),n.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),G.effects.define("explode","hide",function(t,e){var n,i,a,o,s,r,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=l,u=G(this),d="show"===t.mode,f=u.show().css("visibility","hidden").offset(),p=Math.ceil(u.outerWidth()/c),h=Math.ceil(u.outerHeight()/l),m=[];function g(){m.push(this),m.length===l*c&&(u.css({visibility:"visible"}),G(m).remove(),e())}for(n=0;n<l;n++)for(o=f.top+n*h,r=n-(l-1)/2,i=0;i<c;i++)a=f.left+i*p,s=i-(c-1)/2,u.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-i*p,top:-n*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:h,left:a+(d?s*p:0),top:o+(d?r*h:0),opacity:d?0:1}).animate({left:a+(d?0:s*p),top:o+(d?0:r*h),opacity:d?1:0},t.duration||500,t.easing,g)}),G.effects.define("fade","toggle",function(t,e){var n="show"===t.mode;G(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),G.effects.define("fold","hide",function(e,t){var n=G(this),i="show"===(h=e.mode),a="hide"===h,o=e.size||15,s=/([0-9]+)%/.exec(o),r=e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,c=G.effects.createPlaceholder(n),u=n.cssClip(),d={clip:G.extend({},u)},f={clip:G.extend({},u)},p=[u[r[0]],u[r[1]]],h=n.queue().length;s&&(o=parseInt(s[1],10)/100*p[a?0:1]),d.clip[r[0]]=o,f.clip[r[0]]=o,f.clip[r[1]]=0,i&&(n.cssClip(f.clip),c&&c.css(G.effects.clipToBox(f)),f.clip=u),n.queue(function(t){c&&c.animate(G.effects.clipToBox(d),l,e.easing).animate(G.effects.clipToBox(f),l,e.easing),t()}).animate(d,l,e.easing).animate(f,l,e.easing).queue(t),G.effects.unshift(n,h,4)}),G.effects.define("highlight","show",function(t,e){var n=G(this),i={backgroundColor:n.css("backgroundColor")};"hide"===t.mode&&(i.opacity=0),G.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),G.effects.define("size",function(i,e){var a,n=G(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=i.mode,l="effect"!==r,c=i.scale||"both",u=i.origin||["middle","center"],d=n.css("position"),f=n.position(),p=G.effects.scaledDimensions(n),h=i.from||p,m=i.to||G.effects.scaledDimensions(n,0);G.effects.createPlaceholder(n),"show"===r&&(r=h,h=m,m=r),a={from:{y:h.height/p.height,x:h.width/p.width},to:{y:m.height/p.height,x:m.width/p.width}},"box"!==c&&"both"!==c||(a.from.y!==a.to.y&&(h=G.effects.setTransition(n,o,a.from.y,h),m=G.effects.setTransition(n,o,a.to.y,m)),a.from.x!==a.to.x&&(h=G.effects.setTransition(n,s,a.from.x,h),m=G.effects.setTransition(n,s,a.to.x,m))),"content"!==c&&"both"!==c||a.from.y!==a.to.y&&(h=G.effects.setTransition(n,t,a.from.y,h),m=G.effects.setTransition(n,t,a.to.y,m)),u&&(u=G.effects.getBaseline(u,p),h.top=(p.outerHeight-h.outerHeight)*u.y+f.top,h.left=(p.outerWidth-h.outerWidth)*u.x+f.left,m.top=(p.outerHeight-m.outerHeight)*u.y+f.top,m.left=(p.outerWidth-m.outerWidth)*u.x+f.left),delete h.outerHeight,delete h.outerWidth,n.css(h),"content"!==c&&"both"!==c||(o=o.concat(["marginTop","marginBottom"]).concat(t),s=s.concat(["marginLeft","marginRight"]),n.find("*[width]").each(function(){var t=G(this),e={height:(n=G.effects.scaledDimensions(t)).height*a.from.y,width:n.width*a.from.x,outerHeight:n.outerHeight*a.from.y,outerWidth:n.outerWidth*a.from.x},n={height:n.height*a.to.y,width:n.width*a.to.x,outerHeight:n.height*a.to.y,outerWidth:n.width*a.to.x};a.from.y!==a.to.y&&(e=G.effects.setTransition(t,o,a.from.y,e),n=G.effects.setTransition(t,o,a.to.y,n)),a.from.x!==a.to.x&&(e=G.effects.setTransition(t,s,a.from.x,e),n=G.effects.setTransition(t,s,a.to.x,n)),l&&G.effects.saveStyle(t),t.css(e),t.animate(n,i.duration,i.easing,function(){l&&G.effects.restoreStyle(t)})})),n.animate(m,{queue:!1,duration:i.duration,easing:i.easing,complete:function(){var t=n.offset();0===m.opacity&&n.css("opacity",h.opacity),l||(n.css("position","static"===d?"relative":d).offset(t),G.effects.saveStyle(n)),e()}})}),G.effects.define("scale",function(t,e){var n=G(this),i=t.mode,i=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==i?0:100),i=G.extend(!0,{from:G.effects.scaledDimensions(n),to:G.effects.scaledDimensions(n,i,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(i.from.opacity=1,i.to.opacity=0),G.effects.effect.size.call(this,i,e)}),G.effects.define("puff","hide",function(t,e){t=G.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150}),G.effects.effect.scale.call(this,t,e)}),G.effects.define("pulsate","show",function(t,e){var n=G(this),i="show"===(l=t.mode),a=2*(t.times||5)+(i||"hide"===l?1:0),o=t.duration/a,s=0,r=1,l=n.queue().length;for(!i&&n.is(":visible")||(n.css("opacity",0).show(),s=1);r<a;r++)n.animate({opacity:s},o,t.easing),s=1-s;n.animate({opacity:s},o,t.easing),n.queue(e),G.effects.unshift(n,l,1+a)}),G.effects.define("shake",function(t,e){var n=1,i=G(this),a=t.direction||"left",o=t.distance||20,s=t.times||3,r=2*s+1,l=Math.round(t.duration/r),c="up"===a||"down"===a?"top":"left",u="up"===a||"left"===a,d={},f={},p={},a=i.queue().length;for(G.effects.createPlaceholder(i),d[c]=(u?"-=":"+=")+o,f[c]=(u?"+=":"-=")+2*o,p[c]=(u?"-=":"+=")+2*o,i.animate(d,l,t.easing);n<s;n++)i.animate(f,l,t.easing).animate(p,l,t.easing);i.animate(f,l,t.easing).animate(d,l/2,t.easing).queue(e),G.effects.unshift(i,a,1+r)}),G.effects.define("slide","show",function(t,e){var n,i,a=G(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=t.mode,r=t.direction||"left",l="up"===r||"down"===r?"top":"left",c="up"===r||"left"===r,u=t.distance||a["top"==l?"outerHeight":"outerWidth"](!0),d={};G.effects.createPlaceholder(a),n=a.cssClip(),i=a.position()[l],d[l]=(c?-1:1)*u+i,d.clip=a.cssClip(),d.clip[o[r][1]]=d.clip[o[r][0]],"show"===s&&(a.cssClip(d.clip),a.css(l,d[l]),d.clip=n,d[l]=i),a.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),A=!1!==G.uiBackCompat?G.effects.define("transfer",function(t,e){G(this).transfer(t,e)}):A,G.ui.focusable=function(t,e){var n,i,a,o,s=t.nodeName.toLowerCase();return"area"===s?(i=(n=t.parentNode).name,!(!t.href||!i||"map"!==n.nodeName.toLowerCase())&&0<(i=G("img[usemap='#"+i+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(a=!t.disabled)&&(o=G(t).closest("fieldset")[0])&&(a=!o.disabled):a="a"===s&&t.href||e,a&&G(t).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"visible"===e}(G(t)))},G.extend(G.expr.pseudos,{focusable:function(t){return G.ui.focusable(t,null!=G.attr(t,"tabindex"))}}),G.ui.focusable,G.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):G(this[0].form)},G.ui.formResetMixin={_formResetHandler:function(){var e=G(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");G.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(G.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},G.expr.pseudos||(G.expr.pseudos=G.expr[":"]),G.uniqueSort||(G.uniqueSort=G.unique),G.escapeSelector||(H=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,Y=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},G.escapeSelector=function(t){return(t+"").replace(H,Y)}),G.fn.even&&G.fn.odd||G.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),G.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},G.fn.labels=function(){var t,e,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(n=(n=this.eq(0).parents().last()).add((n.length?n:this).siblings()),t="label[for='"+G.escapeSelector(t)+"']",e=e.add(n.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},G.fn.scrollParent=function(t){var e=this.css("position"),n="absolute"===e,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=G(this);return(!n||"static"!==t.css("position"))&&i.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:G(this[0].ownerDocument||document)},G.extend(G.expr.pseudos,{tabbable:function(t){var e=G.attr(t,"tabindex"),n=null!=e;return(!n||0<=e)&&G.ui.focusable(t,n)}}),G.fn.extend({uniqueId:(Q=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++Q)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&G(this).removeAttr("id")})}}),G.widget("ui.accordion",{version:"x.x.x",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(t){return t.find("> li > :first-child").add(t.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=G(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():G()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=G("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons())):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=G.ui.keyCode,n=this.headers.length,i=this.headers.index(t.target),a=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:a=this.headers[(i+1)%n];break;case e.LEFT:case e.UP:a=this.headers[(i-1+n)%n];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:a=this.headers[0];break;case e.END:a=this.headers[n-1]}a&&(G(t.target).attr("tabIndex",-1),G(a).attr("tabIndex",0),G(a).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===G.ui.keyCode.UP&&t.ctrlKey&&G(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=G()):!1===t.active?this._activate(0):this.active.length&&!G.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=G()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var n,t=this.options,e=t.heightStyle,i=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=G(this),e=t.uniqueId().attr("id"),n=t.next(),i=n.uniqueId().attr("id");t.attr("aria-controls",i),n.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(n=i.height(),this.element.siblings(":visible").each(function(){var t=G(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(n-=t.outerHeight(!0))}),this.headers.each(function(){n-=G(this).outerHeight(!0)}),this.headers.next().each(function(){G(this).height(Math.max(0,n-G(this).innerHeight()+G(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.headers.next().each(function(){var t=G(this).is(":visible");t||G(this).show(),n=Math.max(n,G(this).css("height","").height()),t||G(this).hide()}).height(n))},_activate:function(t){(t=this._findActive(t)[0])!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:G.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):G()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&G.each(t.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,n=this.active,i=G(t.currentTarget),a=i[0]===n[0],o=a&&e.collapsible,s=o?G():i.next(),r=n.next(),s={oldHeader:n,oldPanel:r,newHeader:o?G():i,newPanel:s};t.preventDefault(),a&&!e.collapsible||!1===this._trigger("beforeActivate",t,s)||(e.active=!o&&this.headers.index(i),this.active=a?G():i,this._toggle(s),this._removeClass(n,"ui-accordion-header-active","ui-state-active"),e.icons&&(n=n.children(".ui-accordion-header-icon"),this._removeClass(n,null,e.icons.activeHeader)._addClass(n,null,e.icons.header)),a||(this._removeClass(i,"ui-accordion-header-collapsed")._addClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(a=i.children(".ui-accordion-header-icon"),this._removeClass(a,null,e.icons.header)._addClass(a,null,e.icons.activeHeader)),this._addClass(i.next(),"ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=n,this.options.animate?this._animate(e,n,t):(n.hide(),e.show(),this._toggleComplete(t)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(G(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,n,e){var i,a=this,o=0,s=t.css("box-sizing"),r=t.length&&(!n.length||t.index()<n.index()),l=this.options.animate||{},c=r&&l.down||l,r=function(){a._toggleComplete(e)},u=(u="string"==typeof c?c:u)||c.easing||l.easing,d=(d="number"==typeof c?c:d)||c.duration||l.duration;return n.length?t.length?(i=t.show().outerHeight(),n.animate(this.hideProps,{duration:d,easing:u,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:d,easing:u,complete:r,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===s&&(o+=e.now):"content"!==a.options.heightStyle&&(e.now=Math.round(i-n.outerHeight()-o),o=0)}})):n.animate(this.hideProps,d,u,r):t.animate(this.showProps,d,u,r)},_toggleComplete:function(t){var e=t.oldPanel,n=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),G.ui.safeActiveElement=function(e){var n;try{n=e.activeElement}catch(t){n=e.body}return(n=n||e.body).nodeName?n:e.body},G.widget("ui.menu",{version:"x.x.x",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=G(t.target),n=G(G.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this._menuItems().first();e||this.focus(t,n)},blur:function(t){this._delay(function(){G.contains(this.element[0],G.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,n;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=G(t.target).closest(".ui-menu-item"),n=G(t.currentTarget),e[0]===n[0]&&(n.is(".ui-state-active")||(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,n))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=G(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,n,i,a=!0;switch(t.keyCode){case G.ui.keyCode.PAGE_UP:this.previousPage(t);break;case G.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case G.ui.keyCode.HOME:this._move("first","first",t);break;case G.ui.keyCode.END:this._move("last","last",t);break;case G.ui.keyCode.UP:this.previous(t);break;case G.ui.keyCode.DOWN:this.next(t);break;case G.ui.keyCode.LEFT:this.collapse(t);break;case G.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case G.ui.keyCode.ENTER:case G.ui.keyCode.SPACE:this._activate(t);break;case G.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",i=a=!1,n=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===e?i=!0:n=e+n,e=this._filterMenuItems(n),(e=i&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(n=String.fromCharCode(t.keyCode),e=this._filterMenuItems(n)),e.length?(this.focus(t,e),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,i=this,a=this.options.icons.submenu,n=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=n.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=G(this),e=t.prev(),n=G("<span>").data("ui-menu-submenu-caret",!0);i._addClass(n,"ui-menu-icon","ui-icon "+a),e.attr("aria-haspopup","true").prepend(n),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=n.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=G(this);i._isDivider(t)&&i._addClass(t,"ui-menu-divider","ui-widget-content")}),n=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!G.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var n;"icons"===t&&(n=this.element.find(".ui-menu-icon"),this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,n,i;this._hasScroll()&&(n=parseFloat(G.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(G.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-n-i,n=this.activeMenu.scrollTop(),i=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(n+e):i<e+t&&this.activeMenu.scrollTop(n+e-i+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=G.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var t=n?this.element:G(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},n?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!G(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,n){var i;(i=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():i)&&i.length&&this.active||(i=this._menuItems(this.activeMenu)[e]()),this.focus(n,i)},nextPage:function(t){var e,n,i;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,i=this.element.innerHeight(),0===G.fn.jquery.indexOf("3.2.")&&(i+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(e=G(this)).offset().top-n-i<0}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,n,i;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,i=this.element.innerHeight(),0===G.fn.jquery.indexOf("3.2.")&&(i+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=G(this)).offset().top-n+i}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||G(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(String.prototype.trim.call(G(this).children(".ui-menu-item-wrapper").text()))})}}),G.widget("ui.autocomplete",{version:"x.x.x",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var n,i,a,t="textarea"===(e=this.element[0].nodeName.toLowerCase()),e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))i=a=n=!0;else{i=a=n=!1;var e=G.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:n=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:n=!0,this._move("nextPage",t);break;case e.UP:n=!0,this._keyEvent("previous",t);break;case e.DOWN:n=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(n=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:i=!0,this._searchTimeout(t)}}},keypress:function(t){if(n)return n=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!i){var e=G.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(a)return a=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=G("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var n;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){G(t.target).trigger(t.originalEvent)});n=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),(n=e.item.attr("aria-label")||n.value)&&String.prototype.trim.call(n).length&&(this.liveRegion.children().hide(),G("<div>").text(n).appendTo(this.liveRegion))},menuselect:function(t,e){var n=e.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==G.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i,this.selectedItem=n})),!1!==this._trigger("select",t,{item:n})&&this._value(n.value),this.term=this._value(),this.close(t),this.selectedItem=n}}),this.liveRegion=G("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||G.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return(t=(t=t&&(t.jquery||t.nodeType?G(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_initSource:function(){var n,i,a=this;Array.isArray(this.options.source)?(n=this.options.source,this.source=function(t,e){e(G.ui.autocomplete.filter(n,t.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,e){a.xhr&&a.xhr.abort(),a.xhr=G.ajax({url:i,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(i){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),n=i.altKey||i.ctrlKey||i.metaKey||i.shiftKey;t&&(e||n)||(this.selectedItem=null,this.search(null,i))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:G.map(t,function(t){return"string"==typeof t?{label:t,value:t}:G.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(G.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(n,t){var i=this;G.each(t,function(t,e){i._renderItemData(n,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return G("<li>").append(G("<div>").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),G.extend(G.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var n=new RegExp(G.ui.autocomplete.escapeRegex(e),"i");return G.grep(t,function(t){return n.test(t.label||t.value||t)})}}),G.widget("ui.autocomplete",G.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),G("<div>").text(t).appendTo(this.liveRegion))}}),G.ui.autocomplete;var tt,et,nt=/ui-corner-([a-z]){2,6}/g;function it(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},G.extend(this._defaults,this.regional[""]),this.regional.en=G.extend(!0,{},this.regional[""]),this.regional["en-US"]=G.extend(!0,{},this.regional.en),this.dpDiv=at(G("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function at(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){G(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&G(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&G(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,ot)}function ot(){G.datepicker._isDisabledDatepicker((et.inline?et.dpDiv.parent():et.input)[0])||(G(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),G(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&G(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&G(this).addClass("ui-datepicker-next-hover"))}function st(t,e){for(var n in G.extend(t,e),e)null==e[n]&&(t[n]=e[n]);return t}G.widget("ui.controlgroup",{version:"x.x.x",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var o=this,s=[];G.each(this.options.items,function(i,t){var e,a;if(t)return"controlgroupLabel"===i?((e=o.element.find(t)).each(function(){var t=G(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(s=s.concat(e.get()))):void(G.fn[i]&&(a=o["_"+i+"Options"]?o["_"+i+"Options"]("middle"):{classes:{}},o.element.find(t).each(function(){var t=G(this),e=t[i]("instance"),n=G.widget.extend({},a);"button"===i&&t.parent(".ui-spinner").length||((e=e||t[i]()[i]("instance"))&&(n.classes=o._resolveClassesValues(n.classes,e)),t[i](n),n=t[i]("widget"),G.data(n[0],"ui-controlgroup-data",e||t[i]("instance")),s.push(n[0]))})))}),this.childWidgets=G(G.uniqueSort(s)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=G(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label,this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var n="vertical"===this.options.direction,i={classes:{}};return i.classes[e]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[t],i},_spinnerOptions:function(t){return(t=this._buildSimpleOptions(t,"ui-spinner")).classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(n,i){var a={};return G.each(n,function(t){var e=i.options.classes[t]||"",e=String.prototype.trim.call(e.replace(nt,""));a[t]=(e+" "+n[t]).replace(/\s+/g," ")}),a},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var a,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),a=this.childWidgets,(a=this.options.onlyVisible?a.filter(":visible"):a).length&&(G.each(["first","last"],function(t,e){var n,i=a[e]().data("ui-controlgroup-data");i&&o["_"+i.widgetName+"Options"]?((n=o["_"+i.widgetName+"Options"](1===a.length?"only":e)).classes=o._resolveClassesValues(n.classes,i),i.element[i.widgetName](n)):o._updateCornerClass(a[e](),e)}),this._callChildMethod("refresh"))}}),G.widget("ui.checkboxradio",[G.ui.formResetMixin,{version:"x.x.x",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=G(t[t.length-1]),this.label.length||G.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){e.originalLabel+=3===this.nodeType?G(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(n.disabled=t),n},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||G.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+G.escapeSelector(t)+"']";return t?(this.form.length?G(this.form[0].elements).filter(e):G(e).filter(function(){return 0===G(this)._form().length})).not(this.element):G([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=G(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=G("<span>"),this.iconSpace=G("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),G.ui.checkboxradio,G.widget("ui.button",{version:"x.x.x",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===G.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var n="iconPosition"!==t,i=n?this.options.iconPosition:e,t="top"===i||"bottom"===i;this.icon?n&&this._removeClass(this.icon,null,this.options.icon):(this.icon=G("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),n&&this._addClass(this.icon,null,e),this._attachIcon(i),t?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=G("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(i))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,n=(void 0===t.icon?this.options:t).icon;e||n||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),(this.element[0].disabled=e)&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==G.uiBackCompat&&(G.widget("ui.button",G.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),G.fn.button=(tt=G.fn.button,function(n){var t="string"==typeof n,i=Array.prototype.slice.call(arguments,1),a=this;return t?this.length||"instance"!==n?this.each(function(){var t=G(this).attr("type"),e=G.data(this,"ui-"+("checkbox"!==t&&"radio"!==t?"button":"checkboxradio"));return"instance"===n?(a=e,!1):e?"function"!=typeof e[n]||"_"===n.charAt(0)?G.error("no such method '"+n+"' for button widget instance"):(t=e[n].apply(e,i))!==e&&void 0!==t?(a=t&&t.jquery?a.pushStack(t.get()):t,!1):void 0:G.error("cannot call methods on button prior to initialization; attempted to call method '"+n+"'")}):a=void 0:(i.length&&(n=G.widget.extend.apply(null,[n].concat(i))),this.each(function(){var t=G(this).attr("type"),e="checkbox"!==t&&"radio"!==t?"button":"checkboxradio";(t=G.data(this,"ui-"+e))?(t.option(n||{}),t._init&&t._init()):"button"!=e?G(this).checkboxradio(G.extend({icon:!1},n)):tt.call(G(this),n)})),a}),G.fn.buttonset=function(){return G.ui.controlgroup||G.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),G.ui.button,G.extend(G.ui,{datepicker:{version:"x.x.x"}}),G.extend(it.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return st(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var n,i=t.nodeName.toLowerCase(),a="div"===i||"span"===i;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(n=this._newInst(G(t),a)).settings=G.extend({},e||{}),"input"===i?this._connectDatepicker(t,n):a&&this._inlineDatepicker(t,n)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?at(G("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var n=G(t);e.append=G([]),e.trigger=G([]),n.hasClass(this.markerClassName)||(this._attachments(n,e),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),G.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var n,i=this._get(e,"appendText"),a=this._get(e,"isRTL");e.append&&e.append.remove(),i&&(e.append=G("<span>").addClass(this._appendClass).text(i),t[a?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(n=this._get(e,"showOn"))&&"both"!==n||t.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(i=this._get(e,"buttonText"),n=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=G("<img>").addClass(this._triggerClass).attr({src:n,alt:i,title:i}):(e.trigger=G("<button type='button'>").addClass(this._triggerClass),n?e.trigger.html(G("<img>").attr({src:n,alt:i,title:i})):e.trigger.text(i)),t[a?"before":"after"](e.trigger),e.trigger.on("click",function(){return G.datepicker._datepickerShowing&&G.datepicker._lastInput===t[0]?G.datepicker._hideDatepicker():(G.datepicker._datepickerShowing&&G.datepicker._lastInput!==t[0]&&G.datepicker._hideDatepicker(),G.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,n,i,a,o,s;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(s=this._get(t,"dateFormat")).match(/[DM]/)&&(o.setMonth((e=function(t){for(a=i=n=0;a<t.length;a++)t[a].length>n&&(n=t[a].length,i=a);return i})(this._get(t,s.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var n=G(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(e.dpDiv),G.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,n,i,a){var o,s=this._dialogInst;return s||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=G("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),G("body").append(this._dialogInput),(s=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},G.data(this._dialogInput[0],"datepicker",s)),st(s.settings,i||{}),e=e&&e.constructor===Date?this._formatDate(s,e):e,this._dialogInput.val(e),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(o=document.documentElement.clientWidth,i=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,a=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+e,i/2-150+a]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),s.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),G.blockUI&&G.blockUI(this.dpDiv),G.data(this._dialogInput[0],"datepicker",s),this},_destroyDatepicker:function(t){var e,n=G(t),i=G.data(t,"datepicker");n.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),G.removeData(t,"datepicker"),"input"===e?(i.append.remove(),i.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||n.removeClass(this.markerClassName).empty(),et===i&&(et=null,this._curInst=null))},_enableDatepicker:function(e){var t,n=G(e),i=G.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((n=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=G.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,n=G(e),i=G.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((n=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=G.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return G.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,n){var i,a,o=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?G.extend({},G.datepicker._defaults):o?"all"===e?G.extend({},o.settings):this._get(o,e):null;i=e||{},"string"==typeof e&&((i={})[e]=n),o&&(this._curInst===o&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(o,"min"),n=this._getMinMaxDate(o,"max"),st(o.settings,i),null!==e&&void 0!==i.dateFormat&&void 0===i.minDate&&(o.settings.minDate=this._formatDate(o,e)),null!==n&&void 0!==i.dateFormat&&void 0===i.maxDate&&(o.settings.maxDate=this._formatDate(o,n)),"disabled"in i&&(i.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(G(t),o),this._autoSize(o),this._setDate(o,a),this._updateAlternate(o),this._updateDatepicker(o))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){(t=this._getInst(t))&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){(t=this._getInst(t))&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){return(t=this._getInst(t))&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,n,i=G.datepicker._getInst(t.target),a=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,G.datepicker._datepickerShowing)switch(t.keyCode){case 9:G.datepicker._hideDatepicker(),a=!1;break;case 13:return(n=G("td."+G.datepicker._dayOverClass+":not(."+G.datepicker._currentClass+")",i.dpDiv))[0]&&G.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,n[0]),(e=G.datepicker._get(i,"onSelect"))?(n=G.datepicker._formatDate(i),e.apply(i.input?i.input[0]:null,[n,i])):G.datepicker._hideDatepicker(),!1;case 27:G.datepicker._hideDatepicker();break;case 33:G.datepicker._adjustDate(t.target,t.ctrlKey?-G.datepicker._get(i,"stepBigMonths"):-G.datepicker._get(i,"stepMonths"),"M");break;case 34:G.datepicker._adjustDate(t.target,t.ctrlKey?+G.datepicker._get(i,"stepBigMonths"):+G.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&G.datepicker._clearDate(t.target),a=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&G.datepicker._gotoToday(t.target),a=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&G.datepicker._adjustDate(t.target,o?1:-1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&G.datepicker._adjustDate(t.target,t.ctrlKey?-G.datepicker._get(i,"stepBigMonths"):-G.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&G.datepicker._adjustDate(t.target,-7,"D"),a=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&G.datepicker._adjustDate(t.target,o?-1:1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&G.datepicker._adjustDate(t.target,t.ctrlKey?+G.datepicker._get(i,"stepBigMonths"):+G.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&G.datepicker._adjustDate(t.target,7,"D"),a=t.ctrlKey||t.metaKey;break;default:a=!1}else 36===t.keyCode&&t.ctrlKey?G.datepicker._showDatepicker(this):a=!1;a&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,n=G.datepicker._getInst(t.target);if(G.datepicker._get(n,"constrainInput"))return e=G.datepicker._possibleChars(G.datepicker._get(n,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!e||-1<e.indexOf(n)},_doKeyUp:function(t){if((t=G.datepicker._getInst(t.target)).input.val()!==t.lastVal)try{G.datepicker.parseDate(G.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,G.datepicker._getFormatConfig(t))&&(G.datepicker._setDateFromField(t),G.datepicker._updateAlternate(t),G.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,n,i,a;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=G("input",t.parentNode)[0]),G.datepicker._isDisabledDatepicker(t)||G.datepicker._lastInput===t||(a=G.datepicker._getInst(t),G.datepicker._curInst&&G.datepicker._curInst!==a&&(G.datepicker._curInst.dpDiv.stop(!0,!0),a&&G.datepicker._datepickerShowing&&G.datepicker._hideDatepicker(G.datepicker._curInst.input[0])),!1!==(n=(i=G.datepicker._get(a,"beforeShow"))?i.apply(t,[t,a]):{})&&(st(a.settings,n),a.lastVal=null,G.datepicker._lastInput=t,G.datepicker._setDateFromField(a),G.datepicker._inDialog&&(t.value=""),G.datepicker._pos||(G.datepicker._pos=G.datepicker._findPos(t),G.datepicker._pos[1]+=t.offsetHeight),e=!1,G(t).parents().each(function(){return!(e|="fixed"===G(this).css("position"))}),i={left:G.datepicker._pos[0],top:G.datepicker._pos[1]},G.datepicker._pos=null,a.dpDiv.empty(),a.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),G.datepicker._updateDatepicker(a),i=G.datepicker._checkOffset(a,i,e),a.dpDiv.css({position:G.datepicker._inDialog&&G.blockUI?"static":e?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),a.inline||(n=G.datepicker._get(a,"showAnim"),i=G.datepicker._get(a,"duration"),a.dpDiv.css("z-index",function(t){for(var e,n;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(n=parseInt(t.css("zIndex"),10),!isNaN(n)&&0!==n))return n;t=t.parent()}return 0}(G(t))+1),G.datepicker._datepickerShowing=!0,G.effects&&G.effects.effect[n]?a.dpDiv.show(n,G.datepicker._get(a,"showOptions"),i):a.dpDiv[n||"show"](n?i:null),G.datepicker._shouldFocusInput(a)&&a.input.trigger("focus"),G.datepicker._curInst=a)))},_updateDatepicker:function(t){this.maxRows=4,(et=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,n=this._getNumberOfMonths(t),i=n[1],a=t.dpDiv.find("."+this._dayOverClass+" a"),o=G.datepicker._get(t,"onUpdateDatepicker");0<a.length&&ot.apply(a.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&t.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),t.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===G.datepicker._curInst&&G.datepicker._datepickerShowing&&G.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),e=t.yearshtml=null},0)),o&&o.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,n){var i=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,r=document.documentElement.clientWidth+(n?0:G(document).scrollLeft()),l=document.documentElement.clientHeight+(n?0:G(document).scrollTop());return e.left-=this._get(t,"isRTL")?i-o:0,e.left-=n&&e.left===t.input.offset().left?G(document).scrollLeft():0,e.top-=n&&e.top===t.input.offset().top+s?G(document).scrollTop():0,e.left-=Math.min(e.left,e.left+i>r&&i<r?Math.abs(e.left+i-r):0),e.top-=Math.min(e.top,e.top+a>l&&a<l?Math.abs(a+s):0),e},_findPos:function(t){for(var e=this._getInst(t),n=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||G.expr.pseudos.hidden(t));)t=t[n?"previousSibling":"nextSibling"];return[(e=G(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,n,i=this._curInst;!i||t&&i!==G.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),n=this._get(i,"duration"),t=function(){G.datepicker._tidyDialog(i)},G.effects&&(G.effects.effect[e]||G.effects[e])?i.dpDiv.hide(e,G.datepicker._get(i,"showOptions"),n,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?n:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(i,"onClose"))&&t.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),G.blockUI&&(G.unblockUI(),G("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;G.datepicker._curInst&&(e=G(t.target),t=G.datepicker._getInst(e[0]),(e[0].id===G.datepicker._mainDivId||0!==e.parents("#"+G.datepicker._mainDivId).length||e.hasClass(G.datepicker.markerClassName)||e.closest("."+G.datepicker._triggerClass).length||!G.datepicker._datepickerShowing||G.datepicker._inDialog&&G.blockUI)&&(!e.hasClass(G.datepicker.markerClassName)||G.datepicker._curInst===t)||G.datepicker._hideDatepicker())},_adjustDate:function(t,e,n){var i=G(t),t=this._getInst(i[0]);this._isDisabledDatepicker(i[0])||(this._adjustInstDate(t,e,n),this._updateDatepicker(t))},_gotoToday:function(t){var e=G(t),n=this._getInst(e[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(t=new Date,n.selectedDay=t.getDate(),n.drawMonth=n.selectedMonth=t.getMonth(),n.drawYear=n.selectedYear=t.getFullYear()),this._notifyChange(n),this._adjustDate(e)},_selectMonthYear:function(t,e,n){var i=G(t);(t=this._getInst(i[0]))["selected"+("M"===n?"Month":"Year")]=t["draw"+("M"===n?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(i)},_selectDay:function(t,e,n,i){var a=G(t);G(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((a=this._getInst(a[0])).selectedDay=a.currentDay=parseInt(G("a",i).attr("data-date")),a.selectedMonth=a.currentMonth=e,a.selectedYear=a.currentYear=n,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){t=G(t),this._selectDate(t,"")},_selectDate:function(t,e){var n=G(t),t=this._getInst(n[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(n=this._get(t,"onSelect"))?n.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,n,i=this._get(t,"altField");i&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),t=this.formatDate(e,n,this._getFormatConfig(t)),G(document).find(i).val(t))},noWeekends:function(t){return[0<(t=t.getDay())&&t<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,a,t){if(null==e||null==a)throw"Invalid arguments";if(""===(a="object"==typeof a?a.toString():a+""))return null;for(var n,i,o,s=0,r="string"!=typeof(r=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff)?r:(new Date).getFullYear()%100+parseInt(r,10),l=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,c=(t?t.dayNames:null)||this._defaults.dayNames,u=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,d=(t?t.monthNames:null)||this._defaults.monthNames,f=-1,p=-1,h=-1,m=-1,g=!1,y=function(t){return(t=A+1<e.length&&e.charAt(A+1)===t)&&A++,t},v=function(t){var e=y(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(!(e=a.substring(s).match(e)))throw"Missing number at position "+s;return s+=e[0].length,parseInt(e[0],10)},D=function(t,e,n){var i=-1,e=G.map(y(t)?n:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(G.each(e,function(t,e){var n=e[1];if(a.substr(s,n.length).toLowerCase()===n.toLowerCase())return i=e[0],s+=n.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+s},b=function(){if(a.charAt(s)!==e.charAt(A))throw"Unexpected literal at position "+s;s++},A=0;A<e.length;A++)if(g)"'"!==e.charAt(A)||y("'")?b():g=!1;else switch(e.charAt(A)){case"d":h=v("d");break;case"D":D("D",l,c);break;case"o":m=v("o");break;case"m":p=v("m");break;case"M":p=D("M",u,d);break;case"y":f=v("y");break;case"@":f=(o=new Date(v("@"))).getFullYear(),p=o.getMonth()+1,h=o.getDate();break;case"!":f=(o=new Date((v("!")-this._ticksTo1970)/1e4)).getFullYear(),p=o.getMonth()+1,h=o.getDate();break;case"'":y("'")?b():g=!0;break;default:b()}if(s<a.length&&(i=a.substr(s),!/^\s+/.test(i)))throw"Extra/unparsed characters found in date: "+i;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=r?0:-100)),-1<m)for(p=1,h=m;!(h<=(n=this._getDaysInMonth(f,p-1)));)p++,h-=n;if((o=this._daylightSavingAdjust(new Date(f,p-1,h))).getFullYear()!==f||o.getMonth()+1!==p||o.getDate()!==h)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";function i(t,e,n){var i=""+e;if(u(t))for(;i.length<n;)i="0"+i;return i}function a(t,e,n,i){return(u(t)?i:n)[e]}var o,s=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,r=(n?n.dayNames:null)||this._defaults.dayNames,l=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,c=(n?n.monthNames:null)||this._defaults.monthNames,u=function(t){return(t=o+1<e.length&&e.charAt(o+1)===t)&&o++,t},d="",f=!1;if(t)for(o=0;o<e.length;o++)if(f)"'"!==e.charAt(o)||u("'")?d+=e.charAt(o):f=!1;else switch(e.charAt(o)){case"d":d+=i("d",t.getDate(),2);break;case"D":d+=a("D",t.getDay(),s,r);break;case"o":d+=i("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=i("m",t.getMonth()+1,2);break;case"M":d+=a("M",t.getMonth(),l,c);break;case"y":d+=u("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":u("'")?d+="'":f=!0;break;default:d+=e.charAt(o)}return d},_possibleChars:function(e){for(var t="",n=!1,i=function(t){return(t=a+1<e.length&&e.charAt(a+1)===t)&&a++,t},a=0;a<e.length;a++)if(n)"'"!==e.charAt(a)||i("'")?t+=e.charAt(a):n=!1;else switch(e.charAt(a)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":i("'")?t+="'":n=!0;break;default:t+=e.charAt(a)}return t},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),i=t.lastVal=t.input?t.input.val():null,a=this._getDefaultDate(t),o=a,s=this._getFormatConfig(t);try{o=this.parseDate(n,i,s)||a}catch(t){i=e?"":i}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=i?o.getDate():0,t.currentMonth=i?o.getMonth():0,t.currentYear=i?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(r,t,e){var n,i;return(t=(t=null==t||""===t?e:"string"==typeof t?function(t){try{return G.datepicker.parseDate(G.datepicker._get(r,"dateFormat"),t,G.datepicker._getFormatConfig(r))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?G.datepicker._getDate(r):null)||new Date,n=e.getFullYear(),i=e.getMonth(),a=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,s=o.exec(t);s;){switch(s[2]||"d"){case"d":case"D":a+=parseInt(s[1],10);break;case"w":case"W":a+=7*parseInt(s[1],10);break;case"m":case"M":i+=parseInt(s[1],10),a=Math.min(a,G.datepicker._getDaysInMonth(n,i));break;case"y":case"Y":n+=parseInt(s[1],10),a=Math.min(a,G.datepicker._getDaysInMonth(n,i))}s=o.exec(t)}return new Date(n,i,a)}(t):"number"==typeof t?isNaN(t)?e:(n=t,(i=new Date).setDate(i.getDate()+n),i):new Date(t.getTime()))&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var i=!e,a=t.selectedMonth,o=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),a===t.selectedMonth&&o===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(i?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){G.datepicker._adjustDate(n,-e,"M")},next:function(){G.datepicker._adjustDate(n,+e,"M")},hide:function(){G.datepicker._hideDatepicker()},today:function(){G.datepicker._gotoToday(n)},selectDay:function(){return G.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return G.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return G.datepicker._selectMonthYear(n,this,"Y"),!1}};G(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,n,i,a,o,s,r,l,c,u,d,f,p,h,m,g,y,v,D,b,A,I,M,w,C,_,T,k,x,N,S,E,j=new Date,O=this._daylightSavingAdjust(new Date(j.getFullYear(),j.getMonth(),j.getDate())),L=this._get(t,"isRTL"),z=this._get(t,"showButtonPanel"),P=this._get(t,"hideIfNoPrevNext"),R=this._get(t,"navigationAsDateFormat"),F=this._getNumberOfMonths(t),U=this._get(t,"showCurrentAtPos"),j=this._get(t,"stepMonths"),B=1!==F[0]||1!==F[1],H=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Y=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),W=t.drawMonth-U,V=t.drawYear;if(W<0&&(W+=12,V--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-F[0]*F[1]+1,Q.getDate())),e=Y&&e<Y?Y:e;this._daylightSavingAdjust(new Date(V,W,1))>e;)--W<0&&(W=11,V--);for(t.drawMonth=W,t.drawYear=V,U=this._get(t,"prevText"),U=R?this.formatDate(U,this._daylightSavingAdjust(new Date(V,W-j,1)),this._getFormatConfig(t)):U,n=this._canAdjustMonth(t,-1,V,W)?G("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:U}).append(G("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(L?"e":"w")).text(U))[0].outerHTML:P?"":G("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:U}).append(G("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(L?"e":"w")).text(U))[0].outerHTML,U=this._get(t,"nextText"),U=R?this.formatDate(U,this._daylightSavingAdjust(new Date(V,W+j,1)),this._getFormatConfig(t)):U,i=this._canAdjustMonth(t,1,V,W)?G("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:U}).append(G("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(L?"w":"e")).text(U))[0].outerHTML:P?"":G("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:U}).append(G("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(L?"w":"e")).text(U))[0].outerHTML,j=this._get(t,"currentText"),P=this._get(t,"gotoCurrent")&&t.currentDay?H:O,j=R?this.formatDate(j,P,this._getFormatConfig(t)):j,U="",t.inline||(U=G("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),R="",z&&(R=G("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(L?U:"").append(this._isInRange(t,P)?G("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(j):"").append(L?"":U)[0].outerHTML),a=parseInt(this._get(t,"firstDay"),10),a=isNaN(a)?0:a,o=this._get(t,"showWeek"),s=this._get(t,"dayNames"),r=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),c=this._get(t,"monthNamesShort"),u=this._get(t,"beforeShowDay"),d=this._get(t,"showOtherMonths"),f=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),h="",g=0;g<F[0];g++){for(y="",this.maxRows=4,v=0;v<F[1];v++){if(D=this._daylightSavingAdjust(new Date(V,W,t.selectedDay)),b=" ui-corner-all",A="",B){if(A+="<div class='ui-datepicker-group",1<F[1])switch(v){case 0:A+=" ui-datepicker-group-first",b=" ui-corner-"+(L?"right":"left");break;case F[1]-1:A+=" ui-datepicker-group-last",b=" ui-corner-"+(L?"left":"right");break;default:A+=" ui-datepicker-group-middle",b=""}A+="'>"}for(A+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+b+"'>"+(/all|left/.test(b)&&0===g?L?i:n:"")+(/all|right/.test(b)&&0===g?L?n:i:"")+this._generateMonthYearHeader(t,W,V,Y,Q,0<g||0<v,l,c)+"</div><table class='ui-datepicker-calendar'><thead><tr>",I=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",m=0;m<7;m++)I+="<th scope='col'"+(5<=(m+a+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+s[M=(m+a)%7]+"'>"+r[M]+"</span></th>";for(A+=I+"</tr></thead><tbody>",C=this._getDaysInMonth(V,W),V===t.selectedYear&&W===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,C)),w=(this._getFirstDayOfMonth(V,W)-a+7)%7,C=Math.ceil((w+C)/7),_=B&&this.maxRows>C?this.maxRows:C,this.maxRows=_,T=this._daylightSavingAdjust(new Date(V,W,1-w)),k=0;k<_;k++){for(A+="<tr>",x=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(T)+"</td>":"",m=0;m<7;m++)N=u?u.apply(t.input?t.input[0]:null,[T]):[!0,""],E=(S=T.getMonth()!==W)&&!f||!N[0]||Y&&T<Y||Q&&Q<T,x+="<td class='"+(5<=(m+a+6)%7?" ui-datepicker-week-end":"")+(S?" ui-datepicker-other-month":"")+(T.getTime()===D.getTime()&&W===t.selectedMonth&&t._keyEvent||p.getTime()===T.getTime()&&p.getTime()===D.getTime()?" "+this._dayOverClass:"")+(E?" "+this._unselectableClass+" ui-state-disabled":"")+(S&&!d?"":" "+N[1]+(T.getTime()===H.getTime()?" "+this._currentClass:"")+(T.getTime()===O.getTime()?" ui-datepicker-today":""))+"'"+(S&&!d||!N[2]?"":" title='"+N[2].replace(/'/g,"&#39;")+"'")+(E?"":" data-handler='selectDay' data-event='click' data-month='"+T.getMonth()+"' data-year='"+T.getFullYear()+"'")+">"+(S&&!d?"&#xa0;":E?"<span class='ui-state-default'>"+T.getDate()+"</span>":"<a class='ui-state-default"+(T.getTime()===O.getTime()?" ui-state-highlight":"")+(T.getTime()===H.getTime()?" ui-state-active":"")+(S?" ui-priority-secondary":"")+"' href='#' aria-current='"+(T.getTime()===H.getTime()?"true":"false")+"' data-date='"+T.getDate()+"'>"+T.getDate()+"</a>")+"</td>",T.setDate(T.getDate()+1),T=this._daylightSavingAdjust(T);A+=x+"</tr>"}11<++W&&(W=0,V++),y+=A+="</tbody></table>"+(B?"</div>"+(0<F[0]&&v===F[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}h+=y}return h+=R,t._keyEvent=!1,h},_generateMonthYearHeader:function(t,e,n,i,a,o,s,r){var l,c,u,d,f,p,h=this._get(t,"changeMonth"),m=this._get(t,"changeYear"),g=this._get(t,"showMonthAfterYear"),y=this._get(t,"selectMonthLabel"),v=this._get(t,"selectYearLabel"),D="<div class='ui-datepicker-title'>",b="";if(o||!h)b+="<span class='ui-datepicker-month'>"+s[e]+"</span>";else{for(l=i&&i.getFullYear()===n,c=a&&a.getFullYear()===n,b+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=i.getMonth())&&(!c||u<=a.getMonth())&&(b+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+r[u]+"</option>");b+="</select>"}if(g||(D+=b+(!o&&h&&m?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!m)D+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(s=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),f=(y=function(t){return t=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10),isNaN(t)?d:t})(s[0]),p=Math.max(f,y(s[1]||"")),f=i?Math.max(f,i.getFullYear()):f,p=a?Math.min(p,a.getFullYear()):p,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+v+"' data-handler='selectYear' data-event='change'>";f<=p;f++)t.yearshtml+="<option value='"+f+"'"+(f===n?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",D+=t.yearshtml,t.yearshtml=null}return D+=this._get(t,"yearSuffix"),g&&(D+=(!o&&h&&m?"":"&#xa0;")+b),D+"</div>"},_adjustInstDate:function(t,e,n){var i=t.selectedYear+("Y"===n?e:0),a=t.selectedMonth+("M"===n?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(i,a))+("D"===n?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(i,a,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),e=n&&e<n?n:e;return(t=this._getMinMaxDate(t,"max"))&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){return null==(t=this._get(t,"numberOfMonths"))?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,i){var a=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(n,i+(e<0?e:a[0]*a[1]),1));return e<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var n=this._getMinMaxDate(t,"min"),i=this._getMinMaxDate(t,"max"),a=null,o=null,s=this._get(t,"yearRange");return s&&(t=s.split(":"),s=(new Date).getFullYear(),a=parseInt(t[0],10),o=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(a+=s),t[1].match(/[+\-].*/)&&(o+=s)),(!n||e.getTime()>=n.getTime())&&(!i||e.getTime()<=i.getTime())&&(!a||e.getFullYear()>=a)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,i){return e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear),e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(i,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay)),this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),G.fn.datepicker=function(t){if(!this.length)return this;G.datepicker.initialized||(G(document).on("mousedown",G.datepicker._checkExternalClick),G.datepicker.initialized=!0),0===G("#"+G.datepicker._mainDivId).length&&G("body").append(G.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?G.datepicker["_"+t+"Datepicker"].apply(G.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?G.datepicker["_"+t+"Datepicker"].apply(G.datepicker,[this].concat(e)):G.datepicker._attachDatepicker(this,t)})},G.datepicker=new it,G.datepicker.initialized=!1,G.datepicker.uuid=(new Date).getTime(),G.datepicker.version="x.x.x",G.datepicker,G.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var rt,lt=!1;function ct(t,e,n){return e<=t&&t<e+n}function ut(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}G(document).on("mouseup",function(){lt=!1}),G.widget("ui.mouse",{version:"x.x.x",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===G.data(t.target,e.widgetName+".preventClickEvent"))return G.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!lt){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,n=1===t.which,i=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&G(t.target).closest(this.options.cancel).length;return!(n&&!i&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===G.data(t.target,this.widgetName+".preventClickEvent")&&G.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),lt=!0))}},_mouseMove:function(t){if(this._mouseMoved){if(G.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&G.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,lt=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),G.ui.plugin={add:function(t,e,n){var i,a=G.ui[t].prototype;for(i in n)a.plugins[i]=a.plugins[i]||[],a.plugins[i].push([e,n[i]])},call:function(t,e,n,i){var a,o=t.plugins[e];if(o&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(a=0;a<o.length;a++)t.options[o[a][0]]&&o[a][1].apply(t.element,n)}},G.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&G(t).trigger("blur")},G.widget("ui.draggable",G.ui.mouse,{version:"x.x.x",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<G(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0)))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=G(this);return G("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=G.ui.safeActiveElement(this.document[0]);G(t.target).closest(e).length||G.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),G.ui.ddmanager&&(G.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===G(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),G.ui.ddmanager&&!e.dropBehaviour&&G.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),G.ui.ddmanager&&G.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){if(e=this._uiHash(),!1===this._trigger("drag",t,e))return this._mouseUp(new G.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",G.ui.ddmanager&&G.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,n=!1;return G.ui.ddmanager&&!this.options.dropBehaviour&&(n=G.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?G(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),G.ui.ddmanager&&G.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),G.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new G.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!G(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,n="function"==typeof e.helper;return(t=n?G(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element).parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),n&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&G.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,n,i=this.options,a=this.document[0];this.relativeContainer=null,i.containment?"window"!==i.containment?"document"!==i.containment?i.containment.constructor!==Array?("parent"===i.containment&&(i.containment=this.helper[0].parentNode),(n=(e=G(i.containment))[0])&&(t=/(scroll|auto)/.test(e.css("overflow")),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=e)):this.containment=i.containment:this.containment=[0,0,G(a).width()-this.helperProportions.width-this.margins.left,(G(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[G(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,G(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,G(window).scrollLeft()+G(window).width()-this.helperProportions.width-this.margins.left,G(window).scrollTop()+(G(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var n="absolute"===t?1:-1,t=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:t?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:t?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,i=this.options,a=this._isRootNode(this.scrollParent[0]),o=t.pageX,s=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(n=this.relativeContainer?(n=this.relativeContainer.offset(),[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):this.containment,t.pageX-this.offset.click.left<n[0]&&(o=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(s=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(o=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(s=n[3]+this.offset.click.top)),i.grid&&(t=i.grid[1]?this.originalPageY+Math.round((s-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY,s=!n||t-this.offset.click.top>=n[1]||t-this.offset.click.top>n[3]?t:t-this.offset.click.top>=n[1]?t-i.grid[1]:t+i.grid[1],t=i.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX,o=!n||t-this.offset.click.left>=n[0]||t-this.offset.click.left>n[2]?t:t-this.offset.click.left>=n[0]?t-i.grid[0]:t+i.grid[0]),"y"===i.axis&&(o=this.originalPageX),"x"===i.axis&&(s=this.originalPageY)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,n){return n=n||this._uiHash(),G.ui.plugin.call(this,t,[e,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),G.Widget.prototype._trigger.call(this,t,e,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),G.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,n){var i=G.extend({},t,{item:n.element});n.sortables=[],G(n.options.connectToSortable).each(function(){var t=G(this).sortable("instance");t&&!t.options.disabled&&(n.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,i))})},stop:function(e,t,n){var i=G.extend({},t,{item:n.element});n.cancelHelperRemoval=!1,G.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))})},drag:function(n,i,a){G.each(a.sortables,function(){var t=!1,e=this;e.positionAbs=a.positionAbs,e.helperProportions=a.helperProportions,e.offset.click=a.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,G.each(a.sortables,function(){return this.positionAbs=a.positionAbs,this.helperProportions=a.helperProportions,this.offset.click=a.offset.click,t=(this===e||!this._intersectsWith(this.containerCache)||!G.contains(e.element[0],this.element[0]))&&t})),t?(e.isOver||(e.isOver=1,a._parent=i.helper.parent(),e.currentItem=i.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return i.helper[0]},n.target=e.currentItem[0],e._mouseCapture(n,!0),e._mouseStart(n,!0,!0),e.offset.click.top=a.offset.click.top,e.offset.click.left=a.offset.click.left,e.offset.parent.left-=a.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=a.offset.parent.top-e.offset.parent.top,a._trigger("toSortable",n),a.dropped=e.element,G.each(a.sortables,function(){this.refreshPositions()}),a.currentItem=a.element,e.fromOutside=a),e.currentItem&&(e._mouseDrag(n),i.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",n,e._uiHash(e)),e._mouseStop(n,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),i.helper.appendTo(a._parent),a._refreshOffsets(n),i.position=a._generatePosition(n,!0),a._trigger("fromSortable",n),a.dropped=!1,G.each(a.sortables,function(){this.refreshPositions()}))})}}),G.ui.plugin.add("draggable","cursor",{start:function(t,e,n){var i=G("body"),n=n.options;i.css("cursor")&&(n._cursor=i.css("cursor")),i.css("cursor",n.cursor)},stop:function(t,e,n){(n=n.options)._cursor&&G("body").css("cursor",n._cursor)}}),G.ui.plugin.add("draggable","opacity",{start:function(t,e,n){e=G(e.helper),n=n.options,e.css("opacity")&&(n._opacity=e.css("opacity")),e.css("opacity",n.opacity)},stop:function(t,e,n){(n=n.options)._opacity&&G(e.helper).css("opacity",n._opacity)}}),G.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,e,n){var i=n.options,a=!1,o=n.scrollParentNotHidden[0],s=n.document[0];o!==s&&"HTML"!==o.tagName?(i.axis&&"x"===i.axis||(n.overflowOffset.top+o.offsetHeight-t.pageY<i.scrollSensitivity?o.scrollTop=a=o.scrollTop+i.scrollSpeed:t.pageY-n.overflowOffset.top<i.scrollSensitivity&&(o.scrollTop=a=o.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(n.overflowOffset.left+o.offsetWidth-t.pageX<i.scrollSensitivity?o.scrollLeft=a=o.scrollLeft+i.scrollSpeed:t.pageX-n.overflowOffset.left<i.scrollSensitivity&&(o.scrollLeft=a=o.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-G(s).scrollTop()<i.scrollSensitivity?a=G(s).scrollTop(G(s).scrollTop()-i.scrollSpeed):G(window).height()-(t.pageY-G(s).scrollTop())<i.scrollSensitivity&&(a=G(s).scrollTop(G(s).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-G(s).scrollLeft()<i.scrollSensitivity?a=G(s).scrollLeft(G(s).scrollLeft()-i.scrollSpeed):G(window).width()-(t.pageX-G(s).scrollLeft())<i.scrollSensitivity&&(a=G(s).scrollLeft(G(s).scrollLeft()+i.scrollSpeed)))),!1!==a&&G.ui.ddmanager&&!i.dropBehaviour&&G.ui.ddmanager.prepareOffsets(n,t)}}),G.ui.plugin.add("draggable","snap",{start:function(t,e,n){var i=n.options;n.snapElements=[],G(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var t=G(this),e=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,n){for(var i,a,o,s,r,l,c,u,d,f=n.options,p=f.snapTolerance,h=e.offset.left,m=h+n.helperProportions.width,g=e.offset.top,y=g+n.helperProportions.height,v=n.snapElements.length-1;0<=v;v--)l=(r=n.snapElements[v].left-n.margins.left)+n.snapElements[v].width,u=(c=n.snapElements[v].top-n.margins.top)+n.snapElements[v].height,m<r-p||l+p<h||y<c-p||u+p<g||!G.contains(n.snapElements[v].item.ownerDocument,n.snapElements[v].item)?(n.snapElements[v].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,G.extend(n._uiHash(),{snapItem:n.snapElements[v].item})),n.snapElements[v].snapping=!1):("inner"!==f.snapMode&&(i=Math.abs(c-y)<=p,a=Math.abs(u-g)<=p,o=Math.abs(r-m)<=p,s=Math.abs(l-h)<=p,i&&(e.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),a&&(e.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),o&&(e.position.left=n._convertPositionTo("relative",{top:0,left:r-n.helperProportions.width}).left),s&&(e.position.left=n._convertPositionTo("relative",{top:0,left:l}).left)),d=i||a||o||s,"outer"!==f.snapMode&&(i=Math.abs(c-g)<=p,a=Math.abs(u-y)<=p,o=Math.abs(r-h)<=p,s=Math.abs(l-m)<=p,i&&(e.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),a&&(e.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),o&&(e.position.left=n._convertPositionTo("relative",{top:0,left:r}).left),s&&(e.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left)),!n.snapElements[v].snapping&&(i||a||o||s||d)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,G.extend(n._uiHash(),{snapItem:n.snapElements[v].item})),n.snapElements[v].snapping=i||a||o||s||d)}}),G.ui.plugin.add("draggable","stack",{start:function(t,e,n){var i,n=n.options;(n=G.makeArray(G(n.stack)).sort(function(t,e){return(parseInt(G(t).css("zIndex"),10)||0)-(parseInt(G(e).css("zIndex"),10)||0)})).length&&(i=parseInt(G(n[0]).css("zIndex"),10)||0,G(n).each(function(t){G(this).css("zIndex",i+t)}),this.css("zIndex",i+n.length))}}),G.ui.plugin.add("draggable","zIndex",{start:function(t,e,n){e=G(e.helper),n=n.options,e.css("zIndex")&&(n._zIndex=e.css("zIndex")),e.css("zIndex",n.zIndex)},stop:function(t,e,n){(n=n.options)._zIndex&&G(e.helper).css("zIndex",n._zIndex)}}),G.ui.draggable,G.widget("ui.resizable",G.ui.mouse,{version:"x.x.x",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){if("hidden"===G(t).css("overflow"))return!1;var n=e&&"left"===e?"scrollLeft":"scrollTop",e=!1;if(0<t[n])return!0;try{t[n]=1,e=0<t[n],t[n]=0}catch(t){}return e},_create:function(){var t,e=this.options,n=this;this._addClass("ui-resizable"),G.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(G("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&G(this.element).on("mouseenter",function(){e.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){e.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){function t(t){G(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var e;return this._mouseDestroy(),this._addedHandles.remove(),this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var t,e,n,i,a,o=this.options,s=this;if(this.handles=o.handles||(G(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=G(),this._addedHandles=G(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},e=0;e<n.length;e++)i="ui-resizable-"+(t=String.prototype.trim.call(n[e])),a=G("<div>"),this._addClass(a,"ui-resizable-handle "+i),a.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(a),this._addedHandles=this._addedHandles.add(a));this._renderAxis=function(t){var e,n,i;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=G(this.handles[e]),this._on(this.handles[e],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=G(this.handles[e],this.element),i=/sw|ne|nw|se|n|s/.test(e)?n.outerHeight():n.outerWidth(),n=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(n,i),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){s.resizing||(this.className&&(a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=a&&a[1]?a[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var e,n,i=!1;for(e in this.handles)(n=G(this.handles[e])[0])!==t.target&&!G.contains(n,t.target)||(i=!0);return!this.options.disabled&&i},_mouseStart:function(t){var e,n,i=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),i.containment&&(e+=G(i.containment).scrollLeft()||0,n+=G(i.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:e,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof i.aspectRatio?i.aspectRatio:this.originalSize.width/this.originalSize.height||1,i=G(".ui-resizable-"+this.axis).css("cursor"),G("body").css("cursor","auto"===i?this.axis+"-resize":i),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,n=this.axis,i=t.pageX-e.left||0,e=t.pageY-e.top||0,n=this._change[n];return this._updatePrevProperties(),n&&(e=n.apply(this,[t,i,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),e=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),G.isEmptyObject(e)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,n,i,a=this.options,o=this;return this._helper&&(i=(e=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:o.sizeDiff.height,n=e?0:o.sizeDiff.width,e={width:o.helper.width()-n,height:o.helper.height()-i},n=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,i=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,a.animate||this.element.css(G.extend(e,{top:i,left:n})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper&&!a.animate&&this._proportionallyResize()),G("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,n,i=this.options,a={minWidth:this._isNumber(i.minWidth)?i.minWidth:0,maxWidth:this._isNumber(i.maxWidth)?i.maxWidth:1/0,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:1/0};(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,n=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,t=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),n>a.minHeight&&(a.minHeight=n),i<a.maxWidth&&(a.maxWidth=i),t<a.maxHeight&&(a.maxHeight=t)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,i=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===i&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===i&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,i=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,a=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,s=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(n),n=/nw|ne|n/.test(n);return o&&(t.width=e.minWidth),s&&(t.height=e.minHeight),i&&(t.width=e.maxWidth),a&&(t.height=e.maxHeight),o&&c&&(t.left=r-e.minWidth),i&&c&&(t.left=r-e.maxWidth),s&&n&&(t.top=l-e.minHeight),a&&n&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],i=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],a=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)n[e]=parseFloat(i[e])||0,n[e]+=parseFloat(a[e])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||G("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize;return{left:this.originalPosition.left+e,width:n.width-e}},n:function(t,e,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(t,e,n){return G.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,n]))},sw:function(t,e,n){return G.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,n]))},ne:function(t,e,n){return G.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,n]))},nw:function(t,e,n){return G.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,n]))}},_propagate:function(t,e){G.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),G.ui.plugin.add("resizable","animate",{stop:function(e){var n=G(this).resizable("instance"),t=n.options,i=n._proportionallyResizeElements,a=(s=i.length&&/textarea/i.test(i[0].nodeName))&&n._hasScroll(i[0],"left")?0:n.sizeDiff.height,o=s?0:n.sizeDiff.width,s={width:n.size.width-o,height:n.size.height-a},o=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,a=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(G.extend(s,a&&o?{top:a,left:o}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};i&&i.length&&G(i[0]).css({width:t.width,height:t.height}),n._updateCache(t),n._propagate("resize",e)}})}}),G.ui.plugin.add("resizable","containment",{start:function(){var n,i,a=G(this).resizable("instance"),t=a.options,e=a.element,o=t.containment,s=o instanceof G?o.get(0):/parent/.test(o)?e.parent().get(0):o;s&&(a.containerElement=G(s),/document/.test(o)||o===document?(a.containerOffset={left:0,top:0},a.containerPosition={left:0,top:0},a.parentData={element:G(document),left:0,top:0,width:G(document).width(),height:G(document).height()||document.body.parentNode.scrollHeight}):(n=G(s),i=[],G(["Top","Right","Left","Bottom"]).each(function(t,e){i[t]=a._num(n.css("padding"+e))}),a.containerOffset=n.offset(),a.containerPosition=n.position(),a.containerSize={height:n.innerHeight()-i[3],width:n.innerWidth()-i[1]},t=a.containerOffset,e=a.containerSize.height,o=a.containerSize.width,o=a._hasScroll(s,"left")?s.scrollWidth:o,e=a._hasScroll(s)?s.scrollHeight:e,a.parentData={element:s,left:t.left,top:t.top,width:o,height:e}))},resize:function(t){var e=G(this).resizable("instance"),n=e.options,i=e.containerOffset,a=e.position,o=e._aspectRatio||t.shiftKey,s={top:0,left:0},r=e.containerElement,t=!0;r[0]!==document&&/static/.test(r.css("position"))&&(s=i),a.left<(e._helper?i.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-i.left:e.position.left-s.left),o&&(e.size.height=e.size.width/e.aspectRatio,t=!1),e.position.left=n.helper?i.left:0),a.top<(e._helper?i.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-i.top:e.position.top),o&&(e.size.width=e.size.height*e.aspectRatio,t=!1),e.position.top=e._helper?i.top:0),n=e.containerElement.get(0)===e.element.parent().get(0),a=/relative|absolute/.test(e.containerElement.css("position")),n&&a?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),a=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-s.left:e.offset.left-i.left)),i=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-s.top:e.offset.top-i.top)),a+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-a,o&&(e.size.height=e.size.width/e.aspectRatio,t=!1)),i+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-i,o&&(e.size.width=e.size.height*e.aspectRatio,t=!1)),t||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=G(this).resizable("instance"),e=t.options,n=t.containerOffset,i=t.containerPosition,a=t.containerElement,o=(r=G(t.helper)).offset(),s=r.outerWidth()-t.sizeDiff.width,r=r.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(a.css("position"))&&G(this).css({left:o.left-i.left-n.left,width:s,height:r}),t._helper&&!e.animate&&/static/.test(a.css("position"))&&G(this).css({left:o.left-i.left-n.left,width:s,height:r})}}),G.ui.plugin.add("resizable","alsoResize",{start:function(){var t=G(this).resizable("instance").options;G(t.alsoResize).each(function(){var t=G(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,n){var e=G(this).resizable("instance"),i=e.options,a=e.originalSize,o=e.originalPosition,s={height:e.size.height-a.height||0,width:e.size.width-a.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};G(i.alsoResize).each(function(){var t=G(this),i=G(this).data("ui-resizable-alsoresize"),a={},e=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];G.each(e,function(t,e){var n=(i[e]||0)+(s[e]||0);n&&0<=n&&(a[e]=n||null)}),t.css(a)})},stop:function(){G(this).removeData("ui-resizable-alsoresize")}}),G.ui.plugin.add("resizable","ghost",{start:function(){var t=G(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==G.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=G(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=G(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),G.ui.plugin.add("resizable","grid",{resize:function(){var t,e=G(this).resizable("instance"),n=e.options,i=e.size,a=e.originalSize,o=e.originalPosition,s=e.axis,r="number"==typeof n.grid?[n.grid,n.grid]:n.grid,l=r[0]||1,c=r[1]||1,u=Math.round((i.width-a.width)/l)*l,d=Math.round((i.height-a.height)/c)*c,f=a.width+u,p=a.height+d,h=n.maxWidth&&n.maxWidth<f,m=n.maxHeight&&n.maxHeight<p,g=n.minWidth&&n.minWidth>f,i=n.minHeight&&n.minHeight>p;n.grid=r,g&&(f+=l),i&&(p+=c),h&&(f-=l),m&&(p-=c),/^(se|s|e)$/.test(s)?(e.size.width=f,e.size.height=p):/^(ne)$/.test(s)?(e.size.width=f,e.size.height=p,e.position.top=o.top-d):/^(sw)$/.test(s)?(e.size.width=f,e.size.height=p,e.position.left=o.left-u):((p-c<=0||f-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<p-c?(e.size.height=p,e.position.top=o.top-d):(p=c-t.height,e.size.height=p,e.position.top=o.top+a.height-p),0<f-l?(e.size.width=f,e.position.left=o.left-u):(f=l-t.width,e.size.width=f,e.position.left=o.left+a.width-f))}}),G.ui.resizable,G.widget("ui.dialog",{version:"x.x.x",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=G(this).css(t).offset().top;e<0&&G(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&G.fn.draggable&&this._makeDraggable(),this.options.resizable&&G.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?G(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:G.noop,enable:G.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||G.ui.safeBlur(G.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var n=!1,i=this.uiDialog.siblings(".ui-front:visible").map(function(){return+G(this).css("z-index")}).get();return(i=Math.max.apply(null,i))>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",i+1),n=!0),n&&!e&&this._trigger("focus",t),n},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=G(G.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=G.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||G.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=G("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===G.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);var e,n,i;t.keyCode!==G.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),n=e.first(),i=e.last(),t.target!==i[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==n[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){i.trigger("focus")}),t.preventDefault()):(this._delay(function(){n.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=G("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){G(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=G("<button type='button'></button>").button({label:G("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=G("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=G("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=G("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),G.isEmptyObject(t)||Array.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(G.each(t,function(t,e){var n;e=G.extend({type:"button"},e="function"==typeof e?{click:e,text:t}:e),n=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,G("<button></button>",e).button(t).appendTo(i.uiButtonSet).on("click",function(){n.apply(i.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var a=this,o=this.options;function s(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){a._addClass(G(this),"ui-dialog-dragging"),a._blockFrames(),a._trigger("dragStart",t,s(e))},drag:function(t,e){a._trigger("drag",t,s(e))},stop:function(t,e){var n=e.offset.left-a.document.scrollLeft(),i=e.offset.top-a.document.scrollTop();o.position={my:"left top",at:"left"+(0<=n?"+":"")+n+" top"+(0<=i?"+":"")+i,of:a.window},a._removeClass(G(this),"ui-dialog-dragging"),a._unblockFrames(),a._trigger("dragStop",t,s(e))}})},_makeResizable:function(){var a=this,o=this.options,t=o.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function s(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){a._addClass(G(this),"ui-dialog-resizing"),a._blockFrames(),a._trigger("resizeStart",t,s(e))},resize:function(t,e){a._trigger("resize",t,s(e))},stop:function(t,e){var n=(i=a.uiDialog.offset()).left-a.document.scrollLeft(),i=i.top-a.document.scrollTop();o.height=a.uiDialog.height(),o.width=a.uiDialog.width(),o.position={my:"left top",at:"left"+(0<=n?"+":"")+n+" top"+(0<=i?"+":"")+i,of:a.window},a._removeClass(G(this),"ui-dialog-resizing"),a._unblockFrames(),a._trigger("resizeStop",t,s(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=G(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=G.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var n=this,i=!1,a={};G.each(t,function(t,e){n._setOption(t,e),t in n.sizeRelatedOptions&&(i=!0),t in n.resizableRelatedOptions&&(a[t]=e)}),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",a)},_setOption:function(t,e){var n,i=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:G("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((n=i.is(":data(ui-draggable)"))&&!e&&i.draggable("destroy"),!n&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((n=i.is(":data(ui-resizable)"))&&!e&&i.resizable("destroy"),n&&"string"==typeof e&&i.resizable("option","handles",e),n||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),t=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),e=Math.max(0,i.minHeight-t),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-t):"none","auto"===i.height?this.element.css({minHeight:e,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=G(this);return G("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!G(t.target).closest(".ui-dialog").length||!!G(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var n,i;this.options.modal&&(n=G.fn.jquery.substring(0,4),i=!0,this._delay(function(){i=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){var e;i||(e=this._trackingInstances()[0])._allowInteraction(t)||(t.preventDefault(),e._focusTabbable(),"3.4."!==n&&"3.5."!==n||e._delay(e._restoreTabbableFocus))}.bind(this)),this.overlay=G("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==G.uiBackCompat&&G.widget("ui.dialog",G.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),G.ui.dialog,G.widget("ui.droppable",{version:"x.x.x",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,n=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof n?n:function(t){return t.is(n)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){G.ui.ddmanager.droppables[t]=G.ui.ddmanager.droppables[t]||[],G.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=G.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var n;"accept"===t?this.accept="function"==typeof e?e:function(t){return t.is(e)}:"scope"===t&&(n=G.ui.ddmanager.droppables[this.options.scope],this._splice(n),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=G.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=G.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=G.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=G.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var n=t||G.ui.ddmanager.current,i=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=G(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===n.options.scope&&t.accept.call(t.element[0],n.currentItem||n.element)&&G.ui.intersect(n,G.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(i=!0)}),!i&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(n)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),G.ui.intersect=function(t,e,n,i){if(!e.offset)return!1;var a=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,s=a+t.helperProportions.width,r=o+t.helperProportions.height,l=e.offset.left,c=e.offset.top,u=l+e.proportions().width,d=c+e.proportions().height;switch(n){case"fit":return l<=a&&s<=u&&c<=o&&r<=d;case"intersect":return l<a+t.helperProportions.width/2&&s-t.helperProportions.width/2<u&&c<o+t.helperProportions.height/2&&r-t.helperProportions.height/2<d;case"pointer":return ct(i.pageY,c,e.proportions().height)&&ct(i.pageX,l,e.proportions().width);case"touch":return(c<=o&&o<=d||c<=r&&r<=d||o<c&&d<r)&&(l<=a&&a<=u||l<=s&&s<=u||a<l&&u<s);default:return!1}},!(G.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var n,i,a=G.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,s=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<a.length;n++)if(!(a[n].options.disabled||t&&!a[n].accept.call(a[n].element[0],t.currentItem||t.element))){for(i=0;i<s.length;i++)if(s[i]===a[n].element[0]){a[n].proportions().height=0;continue t}a[n].visible="none"!==a[n].element.css("display"),a[n].visible&&("mousedown"===o&&a[n]._activate.call(a[n],e),a[n].offset=a[n].element.offset(),a[n].proportions({width:a[n].element[0].offsetWidth,height:a[n].element[0].offsetHeight}))}},drop:function(t,e){var n=!1;return G.each((G.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&G.ui.intersect(t,this,this.options.tolerance,e)&&(n=this._drop.call(this,e)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e)))}),n},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||G.ui.ddmanager.prepareOffsets(t,e)})},drag:function(a,o){a.options.refreshPositions&&G.ui.ddmanager.prepareOffsets(a,o),G.each(G.ui.ddmanager.droppables[a.options.scope]||[],function(){var t,e,n,i;this.options.disabled||this.greedyChild||!this.visible||(i=!(n=G.ui.intersect(a,this,this.options.tolerance,o))&&this.isover?"isout":n&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(n=this.element.parents(":data(ui-droppable)").filter(function(){return G(this).droppable("instance").options.scope===e})).length&&((t=G(n[0]).droppable("instance")).greedyChild="isover"===i)),t&&"isover"===i&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[i]=!0,this["isout"===i?"isover":"isout"]=!1,this["isover"===i?"_over":"_out"].call(this,o),t&&"isout"===i&&(t.isout=!1,t.isover=!0,t._over.call(t,o)))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||G.ui.ddmanager.prepareOffsets(t,e)}})!==G.uiBackCompat&&G.widget("ui.droppable",G.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),G.ui.droppable,G.widget("ui.progressbar",{version:"x.x.x",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=G("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=G("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),G.widget("ui.selectable",G.ui.mouse,{version:"x.x.x",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var n=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){n.elementPos=G(n.element[0]).offset(),n.selectees=G(n.options.filter,n.element[0]),n._addClass(n.selectees,"ui-selectee"),n.selectees.each(function(){var t=G(this),e={left:(e=t.offset()).left-n.elementPos.left,top:e.top-n.elementPos.top};G.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=G("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(n){var i=this,t=this.options;this.opos=[n.pageX,n.pageY],this.elementPos=G(this.element[0]).offset(),this.options.disabled||(this.selectees=G(t.filter,this.element[0]),this._trigger("start",n),G(t.appendTo).append(this.helper),this.helper.css({left:n.pageX,top:n.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=G.data(this,"selectable-item");t.startselected=!0,n.metaKey||n.ctrlKey||(i._removeClass(t.$element,"ui-selected"),t.selected=!1,i._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,i._trigger("unselecting",n,{unselecting:t.element}))}),G(n.target).parents().addBack().each(function(){var t,e=G.data(this,"selectable-item");if(e)return t=!n.metaKey&&!n.ctrlKey||!e.$element.hasClass("ui-selected"),i._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?i._trigger("selecting",n,{selecting:e.element}):i._trigger("unselecting",n,{unselecting:e.element}),!1}))},_mouseDrag:function(i){if(this.dragged=!0,!this.options.disabled){var t,a=this,o=this.options,s=this.opos[0],r=this.opos[1],l=i.pageX,c=i.pageY;return l<s&&(t=l,l=s,s=t),c<r&&(t=c,c=r,r=t),this.helper.css({left:s,top:r,width:l-s,height:c-r}),this.selectees.each(function(){var t=G.data(this,"selectable-item"),e=!1,n={};t&&t.element!==a.element[0]&&(n.left=t.left+a.elementPos.left,n.right=t.right+a.elementPos.left,n.top=t.top+a.elementPos.top,n.bottom=t.bottom+a.elementPos.top,"touch"===o.tolerance?e=!(n.left>l||n.right<s||n.top>c||n.bottom<r):"fit"===o.tolerance&&(e=n.left>s&&n.right<l&&n.top>r&&n.bottom<c),e?(t.selected&&(a._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(a._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(a._addClass(t.$element,"ui-selecting"),t.selecting=!0,a._trigger("selecting",i,{selecting:t.element}))):(t.selecting&&((i.metaKey||i.ctrlKey)&&t.startselected?(a._removeClass(t.$element,"ui-selecting"),t.selecting=!1,a._addClass(t.$element,"ui-selected"),t.selected=!0):(a._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(a._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),a._trigger("unselecting",i,{unselecting:t.element}))),t.selected&&(i.metaKey||i.ctrlKey||t.startselected||(a._removeClass(t.$element,"ui-selected"),t.selected=!1,a._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,a._trigger("unselecting",i,{unselecting:t.element})))))}),!1}},_mouseStop:function(e){var n=this;return this.dragged=!1,G(".ui-unselecting",this.element[0]).each(function(){var t=G.data(this,"selectable-item");n._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,n._trigger("unselected",e,{unselected:t.element})}),G(".ui-selecting",this.element[0]).each(function(){var t=G.data(this,"selectable-item");n._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,n._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),G.widget("ui.selectmenu",[G.ui.formResetMixin,{version:"x.x.x",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=G()},_drawButton:function(){var t,e=this,n=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.trigger("focus"),t.preventDefault()}}),this.element.hide(),this.button=G("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=G("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(n).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var n=this;this.menu=G("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=G("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),n._setSelection(),n._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item"),null!=n.focusIndex&&e.index!==n.focusIndex&&(n._trigger("focus",t,{item:e}),n.isOpen||n._select(e,t)),n.focusIndex=e.index,n.button.attr("aria-activedescendant",n.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(G.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=G("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(i,t){var a=this,o="";G.each(t,function(t,e){var n;e.optgroup!==o&&(n=G("<li>",{text:e.optgroup}),a._addClass(n,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),n.appendTo(i),o=e.optgroup),a._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var n=G("<li>"),i=G("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(i,e.label),n.append(i).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var n,i=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),i+=":not(.ui-state-disabled)"),(i="first"===t||"last"===t?n["first"===t?"prevAll":"nextAll"](i).eq(-1):n[t+"All"](i).eq(0)).length&&this.menuInstance.focus(e,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(G(t.target).closest(".ui-selectmenu-menu, #"+G.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case G.ui.keyCode.TAB:case G.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case G.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case G.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case G.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case G.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case G.ui.keyCode.LEFT:this._move("prev",t);break;case G.ui.keyCode.RIGHT:this._move("next",t);break;case G.ui.keyCode.HOME:case G.ui.keyCode.PAGE_UP:this._move("first",t);break;case G.ui.keyCode.END:case G.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==n&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id"),this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var n;"icons"===t&&(n=this.button.find("span.ui-icon"),this._removeClass(n,null,this.options.icons.button)._addClass(n,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return(t=(t=t&&(t.jquery||t.nodeType?G(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1!==t?(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var n=this,i=[];t.each(function(t,e){e.hidden||i.push(n._parseOption(G(e),t))}),this.items=i},_parseOption:function(t,e){var n=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),G.widget("ui.slider",G.ui.mouse,{version:"x.x.x",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,n=this.element.find(".ui-slider-handle"),i=[],a=e.values&&e.values.length||1;for(n.length>a&&(n.slice(a).remove(),n=n.slice(0,a)),t=n.length;t<a;t++)i.push("<span tabindex='0'></span>");this.handles=n.add(G(i.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){G(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=G("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,i,a,o,e,s,r=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(s),i=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(n-r.values(t));(e<i||i===e&&(t===r._lastChangedValue||r.values(t)===l.min))&&(i=e,a=G(this),o=t)}),!1!==this._start(t,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),e=a.offset(),s=!G(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=s?{left:0,top:0}:{left:t.pageX-e.left-a.width()/2,top:t.pageY-e.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,n),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e;return(t=1<(t=(t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/e)?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),e=this._valueMin()+t*e,this._trimAlignValue(e)},_uiHash:function(t,e,n){var i={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==e?e:this.values(t),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var i,a=this.value(),o=this.values();this._hasMultipleValues()&&(i=this.values(e?0:1),a=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(i,n):Math.max(i,n)),o[e]=n),n!==a&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var n,i,a;if(1<arguments.length)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!Array.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(n=this.options.values,i=t,a=0;a<n.length;a+=1)n[a]=this._trimAlignValue(i[a]),this._change(null,a);this._refreshValue()},_setOption:function(t,e){var n,i=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(i=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=i-1;0<=n;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,n;if(arguments.length)return t=this.options.values[t],this._trimAlignValue(t);if(this._hasMultipleValues()){for(e=this.options.values.slice(),n=0;n<e.length;n+=1)e[n]=this._trimAlignValue(e[n]);return e}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=0<this.options.step?this.options.step:1,n=(t-this._valueMin())%e,t=t-n;return 2*Math.abs(n)>=e&&(t+=0<n?e:-e),parseFloat(t.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString();return-1===(t=e.indexOf("."))?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,t,i,a,o=this.options.range,s=this.options,r=this,l=!this._animateOff&&s.animate,c={};this._hasMultipleValues()?this.handles.each(function(t){n=(r.values(t)-r._valueMin())/(r._valueMax()-r._valueMin())*100,c["horizontal"===r.orientation?"left":"bottom"]=n+"%",G(this).stop(1,1)[l?"animate":"css"](c,s.animate),!0===r.options.range&&("horizontal"===r.orientation?(0===t&&r.range.stop(1,1)[l?"animate":"css"]({left:n+"%"},s.animate),1===t&&r.range[l?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===t&&r.range.stop(1,1)[l?"animate":"css"]({bottom:n+"%"},s.animate),1===t&&r.range[l?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n}):(t=this.value(),i=this._valueMin(),a=this._valueMax(),n=a!==i?(t-i)/(a-i)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[l?"animate":"css"](c,s.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:n+"%"},s.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-n+"%"},s.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:n+"%"},s.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(t){var e,n,i,a=G(t.target).data("ui-slider-handle-index");switch(t.keyCode){case G.ui.keyCode.HOME:case G.ui.keyCode.END:case G.ui.keyCode.PAGE_UP:case G.ui.keyCode.PAGE_DOWN:case G.ui.keyCode.UP:case G.ui.keyCode.RIGHT:case G.ui.keyCode.DOWN:case G.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(G(t.target),null,"ui-state-active"),!1===this._start(t,a)))return}switch(i=this.options.step,e=n=this._hasMultipleValues()?this.values(a):this.value(),t.keyCode){case G.ui.keyCode.HOME:n=this._valueMin();break;case G.ui.keyCode.END:n=this._valueMax();break;case G.ui.keyCode.PAGE_UP:n=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case G.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case G.ui.keyCode.UP:case G.ui.keyCode.RIGHT:if(e===this._valueMax())return;n=this._trimAlignValue(e+i);break;case G.ui.keyCode.DOWN:case G.ui.keyCode.LEFT:if(e===this._valueMin())return;n=this._trimAlignValue(e-i)}this._slide(t,a,n)},keyup:function(t){var e=G(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(G(t.target),null,"ui-state-active"))}}}),G.widget("ui.sortable",G.ui.mouse,{version:"x.x.x",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return e<=t&&t<e+n},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),G.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var n=null,i=!1,a=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),G(t.target).parents().each(function(){if(G.data(this,a.widgetName+"-item")===a)return n=G(this),!1}),!(n=G.data(t.target,a.widgetName+"-item")===a?G(t.target):n)||this.options.handle&&!e&&(G(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(i=!0)}),!i)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,n){var i,a,o=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=G("parent"!==o.appendTo?o.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},G.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),G.extend(this.offset,{parent:this._getParentOffset()}),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",o.cursor),this.storedStylesheet=G("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(a)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(i=this.containers.length-1;0<=i;i--)this.containers[i]._trigger("activate",t,this._uiHash(this));return G.ui.ddmanager&&(G.ui.ddmanager.current=this),G.ui.ddmanager&&!o.dropBehaviour&&G.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,n=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?n=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(n=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?n=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(n=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),n},_mouseDrag:function(t){var e,n,i,a,o=this.options;if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),this._contactContainers(t),null!==this.innermostContainer)for(o.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),G.ui.ddmanager&&!o.dropBehaviour&&G.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(i=(n=this.items[e]).item[0],(a=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(i===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===i||G.contains(this.placeholder[0],i)||"semi-dynamic"===this.options.type&&G.contains(this.element[0],i))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return G.ui.ddmanager&&G.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var n,i,a,o;if(t)return G.ui.ddmanager&&!this.options.dropBehaviour&&G.ui.ddmanager.drop(this,t),this.options.revert?(i=(n=this).placeholder.offset(),o={},(a=this.options.axis)&&"x"!==a||(o.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(o.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,G(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){n._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new G.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),G.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?G(this.domPosition.prev).after(this.currentItem):G(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},G(t).each(function(){var t=(G(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&n.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e.each(function(){n.push(G(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,a=i+this.helperProportions.height,o=t.left,s=o+t.width,r=t.top,l=r+t.height,c=this.offset.click.top,u=this.offset.click.left,c="x"===this.options.axis||r<i+c&&i+c<l,u="y"===this.options.axis||o<e+u&&e+u<s;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?c&&u:o<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<s&&r<i+this.helperProportions.height/2&&a-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,t=this.dragDirection.horizontal;return this.floating&&t?"right"===t&&n||"left"===t&&!n:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,n,i,a,o=[],s=[],r=this._connectWith();if(r&&t)for(e=r.length-1;0<=e;e--)for(n=(i=G(r[e],this.document[0])).length-1;0<=n;n--)(a=G.data(i[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&s.push(["function"==typeof a.options.items?a.options.items.call(a.element):G(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function l(){o.push(this)}for(s.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):G(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=s.length-1;0<=e;e--)s[e][0].each(l);return G(o)},_removeCurrentsFromItems:function(){var n=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=G.grep(this.items,function(t){for(var e=0;e<n.length;e++)if(n[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,n,i,a,o,s,r,l,c=this.items,u=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):G(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(e=d.length-1;0<=e;e--)for(n=(i=G(d[e],this.document[0])).length-1;0<=n;n--)(a=G.data(i[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&(u.push(["function"==typeof a.options.items?a.options.items.call(a.element[0],t,{item:this.currentItem}):G(a.options.items,a.element),a]),this.containers.push(a));for(e=u.length-1;0<=e;e--)for(o=u[e][1],l=(s=u[e][n=0]).length;n<l;n++)(r=G(s[n])).data(this.widgetName+"-item",o),c.push({item:r,instance:o,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,n,i=this.items.length-1;0<=i;i--)e=this.items[i],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?G(this.options.toleranceElement,e.item):e.item,t||(e.width=n.outerWidth(),e.height=n.outerHeight()),n=n.offset(),e.left=n.left,e.top=n.top)},refreshPositions:function(t){var e,n;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),null!==this.innermostContainer&&this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)n=this.containers[e].element.offset(),this.containers[e].containerCache.left=n.left,this.containers[e].containerCache.top=n.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(n){var i,a,o=(n=n||this).options;o.placeholder&&o.placeholder.constructor!==String||(i=o.placeholder,a=n.currentItem[0].nodeName.toLowerCase(),o.placeholder={element:function(){var t=G("<"+a+">",n.document[0]);return n._addClass(t,"ui-sortable-placeholder",i||n.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===a?n._createTrPlaceholder(n.currentItem.find("tr").eq(0),G("<tr>",n.document[0]).appendTo(t)):"tr"===a?n._createTrPlaceholder(n.currentItem,t):"img"===a&&t.attr("src",n.currentItem.attr("src")),i||t.css("visibility","hidden"),t},update:function(t,e){i&&!o.forcePlaceholderSize||(e.height()&&(!o.forcePlaceholderSize||"tbody"!==a&&"tr"!==a)||e.height(n.currentItem.innerHeight()-parseInt(n.currentItem.css("paddingTop")||0,10)-parseInt(n.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(n.currentItem.innerWidth()-parseInt(n.currentItem.css("paddingLeft")||0,10)-parseInt(n.currentItem.css("paddingRight")||0,10)))}}),n.placeholder=G(o.placeholder.element.call(n.element,n.currentItem)),n.currentItem.after(n.placeholder),o.placeholder.update(n,n.placeholder)},_createTrPlaceholder:function(t,e){var n=this;t.children().each(function(){G("<td>&#160;</td>",n.document[0]).attr("colspan",G(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,n,i,a,o,s,r,l,c,u=null,d=null,f=this.containers.length-1;0<=f;f--)G.contains(this.currentItem[0],this.containers[f].element[0])||(this._intersectsWith(this.containers[f].containerCache)?u&&G.contains(this.containers[f].element[0],u.element[0])||(u=this.containers[f],d=f):this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",t,this._uiHash(this)),this.containers[f].containerCache.over=0));if(this.innermostContainer=u)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger("over",t,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(n=1e4,i=null,a=(l=u.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",c=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)G.contains(this.containers[d].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(s=this.items[e].item.offset()[a],r=!1,t[c]-s>this.items[e][o]/2&&(r=!0),Math.abs(t[c]-s)<n&&(n=Math.abs(t[c]-s),i=this.items[e],this.direction=r?"up":"down"));(i||this.options.dropOnEmpty)&&(this.currentContainer!==this.containers[d]?(i?this._rearrange(t,i,null,!0):this._rearrange(t,null,this.containers[d].element,!0),this._trigger("change",t,this._uiHash()),this.containers[d]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[d],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[d]._trigger("over",t,this._uiHash(this)),this.containers[d].containerCache.over=1):this.currentContainer.containerCache.over||(this.containers[d]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1))}},_createHelper:function(t){var e=this.options;return(t="function"==typeof e.helper?G(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem).parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&G.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&G.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),"document"!==n.containment&&"window"!==n.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(t=G(n.containment)[0],e=G(n.containment).offset(),n="hidden"!==G(t).css("overflow"),this.containment=[e.left+(parseInt(G(t).css("borderLeftWidth"),10)||0)+(parseInt(G(t).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(G(t).css("borderTopWidth"),10)||0)+(parseInt(G(t).css("paddingTop"),10)||0)-this.margins.top,e.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(G(t).css("borderLeftWidth"),10)||0)-(parseInt(G(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(G(t).css("borderTopWidth"),10)||0)-(parseInt(G(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var n="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&G.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,t=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():t?0:i.scrollTop())*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():t?0:i.scrollLeft())*n}},_generatePosition:function(t){var e=this.options,n=t.pageX,i=t.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&G.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(n=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(i=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(i=this.containment[3]+this.offset.click.top)),e.grid&&(t=this.originalPageY+Math.round((i-this.originalPageY)/e.grid[1])*e.grid[1],i=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((n-this.originalPageX)/e.grid[0])*e.grid[0],n=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0])),{top:i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:a.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:a.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var a=this.counter;this._delay(function(){a===this.counter&&this.refreshPositions(!i)})},_clear:function(t,e){this.reverting=!1;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function a(e,n,i){return function(t){i._trigger(e,t,n._uiHash(n))}}for(this.fromOutside&&!e&&i.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||i.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(i.push(function(t){this._trigger("remove",t,this._uiHash())}),i.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;0<=n;n--)e||i.push(a("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(i.push(a("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<i.length;n++)i[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===G.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||G([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),G.widget("ui.spinner",{version:"x.x.x",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var i=this._super(),a=this.element;return G.each(["min","max","step"],function(t,e){var n=a.attr(e);null!=n&&n.length&&(i[e]=n)}),i},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){var n=G.ui.safeActiveElement(this.document[0]);if(this.element[0]===n&&e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e;function n(){this.element[0]===G.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e}))}e=this.element[0]===G.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),!1!==this._start(t)&&this._repeat(null,G(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(G(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,G(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,n=G.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,e.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,n)},t),this._spin(e*this.options.step,n)},_spin:function(t,e){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:n})||(this._value(n),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?"function"==typeof e?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString();return-1===(t=e.indexOf("."))?0:e.length-t-1},_adjustValue:function(t){var e=this.options,n=null!==e.min?e.min:0;return t=n+Math.round((t-n)/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var n;if("culture"===t||"numberFormat"===t)return n=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(n));"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,e.down)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:ut(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var n;""!==t&&null!==(n=this._parse(t))&&(e||(n=this._adjustValue(n)),t=this._format(n)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:ut(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:ut(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:ut(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:ut(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());ut(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==G.uiBackCompat&&G.widget("ui.spinner",G.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),G.ui.spinner,G.widget("ui.tabs",{version:"x.x.x",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(rt=/#.*$/,function(t){var e=t.href.replace(rt,""),n=location.href.replace(rt,"");try{e=decodeURIComponent(e)}catch(t){}try{n=decodeURIComponent(n)}catch(t){}return 1<t.hash.length&&e===n}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=G.uniqueSort(t.disabled.concat(G.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=G(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var n=this.options.active,t=this.options.collapsible,i=location.hash.substring(1);return null===n&&(i&&this.tabs.each(function(t,e){if(G(e).attr("aria-controls")===i)return n=t,!1}),null!==(n=null===n?this.tabs.index(this.tabs.filter(".ui-tabs-active")):n)&&-1!==n||(n=!!this.tabs.length&&0)),!1!==n&&-1===(n=this.tabs.index(this.tabs.eq(n)))&&(n=!t&&0),n=!t&&!1===n&&this.anchors.length?0:n},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):G()}},_tabKeydown:function(t){var e=G(G.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(e),i=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case G.ui.keyCode.RIGHT:case G.ui.keyCode.DOWN:n++;break;case G.ui.keyCode.UP:case G.ui.keyCode.LEFT:i=!1,n--;break;case G.ui.keyCode.END:n=this.anchors.length-1;break;case G.ui.keyCode.HOME:n=0;break;case G.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n);case G.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,i),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===G.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===G.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===G.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){for(var n=this.tabs.length-1;-1!==G.inArray(t=(t=n<t?0:t)<0?n:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"!==t?(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=G.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!G.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=G()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=G()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,n=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){G(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){G(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return G("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=G(),this.anchors.each(function(t,e){var n,i,a,o=G(e).uniqueId().attr("id"),s=G(e).closest("li"),r=s.attr("aria-controls");l._isLocal(e)?(a=(n=e.hash).substring(1),i=l.element.find(l._sanitizeSelector(n))):(a=s.attr("aria-controls")||G({}).uniqueId()[0].id,(i=l.element.find(n="#"+a)).length||(i=l._createPanel(a)).insertAfter(l.panels[t-1]||l.tablist),i.attr("aria-live","polite")),i.length&&(l.panels=l.panels.add(i)),r&&s.data("ui-tabs-aria-controls",r),s.attr({"aria-controls":a,"aria-labelledby":o}),i.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return G("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,n;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),n=0;e=this.tabs[n];n++)e=G(e),!0===t||-1!==G.inArray(n,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var n={};t&&G.each(t.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,e=this.element.parent();"fill"===t?(n=e.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=G(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(n-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=G(this).outerHeight(!0)}),this.panels.each(function(){G(this).height(Math.max(0,n-G(this).innerHeight()+G(this).height()))}).css("overflow","auto")):"auto"===t&&(n=0,this.panels.each(function(){n=Math.max(n,G(this).height("").height())}).height(n))},_eventHandler:function(t){var e=this.options,n=this.active,i=G(t.currentTarget).closest("li"),a=i[0]===n[0],o=a&&e.collapsible,s=o?G():this._getPanelForTab(i),r=n.length?this._getPanelForTab(n):G(),n={oldTab:n,oldPanel:r,newTab:o?G():i,newPanel:s};t.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||a&&!e.collapsible||!1===this._trigger("beforeActivate",t,n)||(e.active=!o&&this.tabs.index(i),this.active=a?G():i,this.xhr&&this.xhr.abort(),r.length||s.length||G.error("jQuery UI Tabs: Mismatching fragment identifier."),s.length&&this.load(this.tabs.index(i),t),this._toggle(t,n))},_toggle:function(t,e){var n=this,i=e.newPanel,a=e.oldPanel;function o(){n.running=!1,n._trigger("activate",t,e)}function s(){n._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),i.length&&n.options.show?n._show(i,n.options.show,o):(i.show(),o())}this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){n._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a.hide(),s()),a.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&a.length?e.oldTab.attr("tabIndex",-1):i.length&&this.tabs.filter(function(){return 0===G(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){(t=this._findActive(t))[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:G.noop}))},_findActive:function(t){return!1===t?G():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+G.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){G.data(this,"ui-tabs-destroy")?G(this).remove():G(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=G(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(n){var t=this.options.disabled;!1!==t&&(t=void 0!==n&&(n=this._getIndex(n),Array.isArray(t)?G.map(t,function(t){return t!==n?t:null}):G.map(this.tabs,function(t,e){return e!==n?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==G.inArray(t,e))return;e=Array.isArray(e)?G.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,i){function a(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(n,"ui-tabs-loading"),s.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}t=this._getIndex(t);var o=this,n=this.tabs.eq(t),t=n.find(".ui-tabs-anchor"),s=this._getPanelForTab(n),r={tab:n,panel:s};this._isLocal(t[0])||(this.xhr=G.ajax(this._ajaxSettings(t,i,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(n,"ui-tabs-loading"),s.attr("aria-busy","true"),this.xhr.done(function(t,e,n){setTimeout(function(){s.html(t),o._trigger("load",i,r),a(n,e)},1)}).fail(function(t,e){setTimeout(function(){a(t,e)},1)})))},_ajaxSettings:function(t,n,i){var a=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return a._trigger("beforeLoad",n,G.extend({jqXHR:t,ajaxSettings:e},i))}}},_getPanelForTab:function(t){return t=G(t).attr("aria-controls"),this.element.find(this._sanitizeSelector("#"+t))}}),!1!==G.uiBackCompat&&G.widget("ui.tabs",G.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),G.ui.tabs,G.widget("ui.tooltip",{version:"x.x.x",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=G(this).attr("title");return G("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var n=(t.attr("aria-describedby")||"").split(/\s+/);n.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(n.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),n=(t.attr("aria-describedby")||"").split(/\s+/);-1!==(e=G.inArray(e,n))&&n.splice(e,1),t.removeData("ui-tooltip-id"),(n=String.prototype.trim.call(n.join(" ")))?t.attr("aria-describedby",n):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=G("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=G([])},_setOption:function(t,e){var n=this;this._super(t,e),"content"===t&&G.each(this.tooltips,function(t,e){n._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var i=this;G.each(this.tooltips,function(t,e){var n=G.Event("blur");n.target=n.currentTarget=e.element[0],i.close(n,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=G(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=G(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=G([])},open:function(t){var n=this,e=G(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=G(this);e.data("ui-tooltip-open")&&((t=G.Event("blur")).target=t.currentTarget=this,n.close(t,!0)),e.attr("title")&&(e.uniqueId(),n.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,n){var t=this.options.content,i=this,a=n?n.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(n,e,t);(t=t.call(e[0],function(t){i._delay(function(){e.data("ui-tooltip-open")&&(n&&(n.type=a),this._open(n,e,t))})}))&&this._open(n,e,t)},_open:function(t,e,n){var i,a,o,s=G.extend({},this.options.position);function r(t){s.of=t,a.is(":hidden")||a.position(s)}n&&((i=this._find(e))?i.tooltip.find(".ui-tooltip-content").html(n):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),i=this._tooltip(e),a=i.tooltip,this._addDescribedBy(e,a.attr("id")),a.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),(n=G("<div>").html(a.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),n.removeAttr("id").find("[id]").removeAttr("id"),n.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:r}),r(t)):a.position(G.extend({of:e},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){a.is(":visible")&&(r(s.of),clearInterval(o))},13)),this._trigger("open",t,{tooltip:a})))},_registerCloseHandlers:function(t,e){var n={keyup:function(t){t.keyCode===G.ui.keyCode.ESCAPE&&((t=G.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(e).tooltip)}),t&&"mouseover"!==t.type||(n.mouseleave="close"),t&&"focusin"!==t.type||(n.focusout="close"),this._on(!0,e,n)},close:function(t){var e,n=this,i=G(t?t.currentTarget:this.element),a=this._find(i);a?(e=a.tooltip,a.closing||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),a.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){n._removeTooltip(G(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&G.each(this.parents,function(t,e){G(e.element).attr("title",e.title),delete n.parents[t]}),a.closing=!0,this._trigger("close",t,{tooltip:e}),a.hiding||(a.closing=!1))):i.removeData("ui-tooltip-open")},_tooltip:function(t){var e=G("<div>").attr("role","tooltip"),n=G("<div>").appendTo(e),i=e.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[i]={element:t,tooltip:e}},_find:function(t){return(t=t.data("ui-tooltip-id"))?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){return(t=t.closest(".ui-front, dialog")).length?t:this.document[0].body},_destroy:function(){var i=this;G.each(this.tooltips,function(t,e){var n=G.Event("blur"),e=e.element;n.target=n.currentTarget=e[0],i.close(n,!0),G("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==G.uiBackCompat&&G.widget("ui.tooltip",G.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),G.ui.tooltip}),function(t,e){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).DOMPurify=e()}(this,function(){"use strict";var i,Ht=Object.entries,s=Object.setPrototypeOf,r=Object.isFrozen,a=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,Yt=Object.freeze,t=Object.seal,l=Object.create,e="undefined"!=typeof Reflect&&Reflect,c=(c=e.apply)||function(t,e,n){return t.apply(e,n)},Yt=Yt||function(t){return t},t=t||function(t){return t},u=(u=e.construct)||function(t,e){return _construct(t,_toConsumableArray(e))},Qt=d(Array.prototype.forEach),Wt=d(Array.prototype.pop),Vt=d(Array.prototype.push),Gt=d(String.prototype.toLowerCase),Zt=d(String.prototype.toString),Jt=d(String.prototype.match),qt=d(String.prototype.replace),Kt=d(String.prototype.indexOf),Xt=d(String.prototype.trim),$t=d(RegExp.prototype.test),te=(i=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return u(i,e)});function d(a){return function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return c(a,t,n)}}function ee(t,e,n){n=n||Gt,s&&s(t,null);for(var i=e.length;i--;){var a,o=e[i];"string"!=typeof o||(a=n(o))!==o&&(r(e)||(e[i]=a),o=a),t[o]=!0}return t}function ne(t){var e,n=l(null),i=_createForOfIteratorHelper(Ht(t));try{for(i.s();!(e=i.n()).done;){var a=_slicedToArray(e.value,2),o=a[0],s=a[1];n[o]=s}}catch(t){i.e(t)}finally{i.f()}return n}function ie(t,e){for(;null!==t;){var n=o(t,e);if(n){if(n.get)return d(n.get);if("function"==typeof n.value)return d(n.value)}t=a(t)}return function(t){return console.warn("fallback value for",t),null}}var ae=Yt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),oe=Yt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),se=Yt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),re=Yt(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),le=Yt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ce=Yt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ue=Yt(["#text"]),de=Yt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),fe=Yt(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),pe=Yt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),he=Yt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),n=t(/\{\{[\w\W]*|[\w\W]*\}\}/gm),f=t(/<%[\w\W]*|[\w\W]*%>/gm),p=t(/\${[\w\W]*}/gm),h=t(/^data-[\-\w.\u00B7-\uFFFF]/),m=t(/^aria-[\-\w]+$/),me=t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|Notes|notes):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),g=t(/^(?:\w+script|data):/i),e=t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ge=t(/^html$/i),ye=Object.freeze({__proto__:null,MUSTACHE_EXPR:n,ERB_EXPR:f,TMPLIT_EXPR:p,DATA_ATTR:h,ARIA_ATTR:m,IS_ALLOWED_URI:me,IS_SCRIPT_OR_DATA:g,ATTR_WHITESPACE:e,DOCTYPE_NAME:ge});return function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,c=function(t){return e(t)};if(c.version="3.0.2",c.removed=[],!t||!t.document||9!==t.document.nodeType)return c.isSupported=!1,c;var r=t.document,a=t.document,l=t.DocumentFragment,n=t.HTMLTemplateElement,u=t.Node,s=t.Element,i=t.NodeFilter,o=t.NamedNodeMap,d=void 0===o?t.NamedNodeMap||t.MozNamedAttrMap:o,f=t.HTMLFormElement,p=t.DOMParser,h=t.trustedTypes,t=s.prototype,m=ie(t,"cloneNode"),g=ie(t,"nextSibling"),y=ie(t,"childNodes"),v=ie(t,"parentNode");"function"!=typeof n||(A=a.createElement("template")).content&&A.content.ownerDocument&&(a=A.content.ownerDocument);var D=function(t,e){if("object"!=_typeof(t)||"function"!=typeof t.createPolicy)return null;var n=null,i="data-tt-policy-suffix",n="dompurify"+((n=e.currentScript&&e.currentScript.hasAttribute(i)?e.currentScript.getAttribute(i):n)?"#"+n:"");try{return t.createPolicy(n,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(h,r),b=D?D.createHTML(""):"",A=a,I=A.implementation,M=A.createNodeIterator,w=A.createDocumentFragment,C=A.getElementsByTagName,_=r.importNode,T={};c.isSupported="function"==typeof Ht&&"function"==typeof v&&I&&void 0!==I.createHTMLDocument;function k(t){return t instanceof RegExp||t instanceof Function}function x(t){wt&&wt===t||(t=ne(t=!t||"object"!=_typeof(t)?{}:t),S=-1===Mt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,E="application/xhtml+xml"===S?Zt:Gt,B="ALLOWED_TAGS"in t?ee({},t.ALLOWED_TAGS,E):H,Y="ALLOWED_ATTR"in t?ee({},t.ALLOWED_ATTR,E):Q,At="ALLOWED_NAMESPACES"in t?ee({},t.ALLOWED_NAMESPACES,Zt):It,mt="ADD_URI_SAFE_ATTR"in t?ee(ne(gt),t.ADD_URI_SAFE_ATTR,E):gt,pt="ADD_DATA_URI_TAGS"in t?ee(ne(ht),t.ADD_DATA_URI_TAGS,E):ht,dt="FORBID_CONTENTS"in t?ee({},t.FORBID_CONTENTS,E):ft,V="FORBID_TAGS"in t?ee({},t.FORBID_TAGS,E):{},G="FORBID_ATTR"in t?ee({},t.FORBID_ATTR,E):{},ut="USE_PROFILES"in t&&t.USE_PROFILES,Z=!1!==t.ALLOW_ARIA_ATTR,J=!1!==t.ALLOW_DATA_ATTR,q=t.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,X=t.SAFE_FOR_TEMPLATES||!1,$=t.WHOLE_DOCUMENT||!1,nt=t.RETURN_DOM||!1,it=t.RETURN_DOM_FRAGMENT||!1,at=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,ot=!1!==t.SANITIZE_DOM,st=t.SANITIZE_NAMED_PROPS||!1,lt=!1!==t.KEEP_CONTENT,ct=t.IN_PLACE||!1,U=t.ALLOWED_URI_REGEXP||me,bt=t.NAMESPACE||Dt,W=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&k(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&k(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(J=!1),it&&(nt=!0),ut&&(B=ee({},_toConsumableArray(ue)),Y=[],!0===ut.html&&(ee(B,ae),ee(Y,de)),!0===ut.svg&&(ee(B,oe),ee(Y,fe),ee(Y,he)),!0===ut.svgFilters&&(ee(B,se),ee(Y,fe),ee(Y,he)),!0===ut.mathMl&&(ee(B,le),ee(Y,pe),ee(Y,he))),t.ADD_TAGS&&ee(B=B===H?ne(B):B,t.ADD_TAGS,E),t.ADD_ATTR&&ee(Y=Y===Q?ne(Y):Y,t.ADD_ATTR,E),t.ADD_URI_SAFE_ATTR&&ee(mt,t.ADD_URI_SAFE_ATTR,E),t.FORBID_CONTENTS&&ee(dt=dt===ft?ne(dt):dt,t.FORBID_CONTENTS,E),lt&&(B["#text"]=!0),$&&ee(B,["html","head","body"]),B.table&&(ee(B,["tbody"]),delete V.tbody),Yt&&Yt(t),wt=t)}var N,S,E,j=ye.MUSTACHE_EXPR,O=ye.ERB_EXPR,L=ye.TMPLIT_EXPR,z=ye.DATA_ATTR,P=ye.ARIA_ATTR,R=ye.IS_SCRIPT_OR_DATA,F=ye.ATTR_WHITESPACE,U=ye.IS_ALLOWED_URI,B=null,H=ee({},[].concat(_toConsumableArray(ae),_toConsumableArray(oe),_toConsumableArray(se),_toConsumableArray(le),_toConsumableArray(ue))),Y=null,Q=ee({},[].concat(_toConsumableArray(de),_toConsumableArray(fe),_toConsumableArray(pe),_toConsumableArray(he))),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,G=null,Z=!0,J=!0,q=!1,K=!0,X=!1,$=!1,tt=!1,et=!1,nt=!1,it=!1,at=!1,ot=!0,st=!1,rt="user-content-",lt=!0,ct=!1,ut={},dt=null,ft=ee({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pt=null,ht=ee({},["audio","video","img","source","image","track"]),mt=null,gt=ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yt="http://www.w3.org/1998/Math/MathML",vt="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml",bt=Dt,At=null,It=ee({},[yt,vt,Dt],Zt),Mt=["application/xhtml+xml","text/html"],wt=null,Ct=a.createElement("form"),_t=ee({},["mi","mo","mn","ms","mtext"]),Tt=ee({},["foreignobject","desc","title","annotation-xml"]),kt=ee({},["title","style","font","a","script"]),xt=ee({},oe);ee(xt,se),ee(xt,re);var Nt=ee({},le);ee(Nt,ce);function St(e){Vt(c.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}}function Et(t){var e,n;et?t="<remove></remove>"+t:n=(i=Jt(t,/^[\r\n\t ]+/))&&i[0],"application/xhtml+xml"===S&&bt===Dt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var i=D?D.createHTML(t):t;if(bt===Dt)try{e=(new p).parseFromString(i,S)}catch(t){}if(!e||!e.documentElement){e=I.createDocument(bt,"template",null);try{e.documentElement.innerHTML=N?b:i}catch(t){}}return i=e.body||e.documentElement,t&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),bt===Dt?C.call(e,$?"html":"body")[0]:$?e.documentElement:i}function jt(t){return M.call(t.ownerDocument||t,t,i.SHOW_ELEMENT|i.SHOW_COMMENT|i.SHOW_TEXT,null,!1)}function Ot(t){return"object"==_typeof(u)?t instanceof u:t&&"object"==_typeof(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}function Lt(t){var e;if(Ut("beforeSanitizeElements",t,null),(e=t)instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return St(t),1;var n=E(t.nodeName);if(Ut("uponSanitizeElement",t,{tagName:n,allowedTags:B}),t.hasChildNodes()&&!Ot(t.firstElementChild)&&(!Ot(t.content)||!Ot(t.content.firstElementChild))&&$t(/<[/\w]/g,t.innerHTML)&&$t(/<[/\w]/g,t.textContent))return St(t),1;if(B[n]&&!V[n])return(!(t instanceof s)||function(t){var e=v(t);e&&e.tagName||(e={namespaceURI:bt,tagName:"template"});var n=Gt(t.tagName),i=Gt(e.tagName);return!!At[t.namespaceURI]&&(t.namespaceURI===vt?e.namespaceURI===Dt?"svg"===n:e.namespaceURI===yt?"svg"===n&&("annotation-xml"===i||_t[i]):Boolean(xt[n]):t.namespaceURI===yt?e.namespaceURI===Dt?"math"===n:e.namespaceURI===vt?"math"===n&&Tt[i]:Boolean(Nt[n]):t.namespaceURI===Dt?!(e.namespaceURI===vt&&!Tt[i])&&!(e.namespaceURI===yt&&!_t[i])&&!Nt[n]&&(kt[n]||!xt[n]):!("application/xhtml+xml"!==S||!At[t.namespaceURI]))}(t))&&("noscript"!==n&&"noembed"!==n||!$t(/<\/no(script|embed)/i,t.innerHTML))?(X&&3===t.nodeType&&(e=t.textContent,e=qt(e,j," "),e=qt(e,O," "),e=qt(e,L," "),t.textContent!==e&&(Vt(c.removed,{element:t.cloneNode()}),t.textContent=e)),Ut("afterSanitizeElements",t,null),!1):(St(t),!0);if(!V[n]&&zt(n)){if(W.tagNameCheck instanceof RegExp&&$t(W.tagNameCheck,n))return;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(n))return}if(lt&&!dt[n]){var i=v(t)||t.parentNode,a=y(t)||t.childNodes;if(a&&i)for(var o=a.length-1;0<=o;--o)i.insertBefore(m(a[o],!0),g(t))}return St(t),1}function zt(t){return 0<t.indexOf("-")}function Pt(t){var e,n;Ut("beforeSanitizeAttributes",t,null);var i=t.attributes;if(i){for(var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y},o=i.length;o--;){var s=(l=i[o]).name,r=l.namespaceURI;if((e="value"===s?l.value:Xt(l.value),n=E(s),a.attrName=n,a.attrValue=e,a.keepAttr=!0,a.forceKeepAttr=void 0,Ut("uponSanitizeAttribute",t,a),e=a.attrValue,!a.forceKeepAttr)&&(Ft(s,t),a.keepAttr))if(K||!$t(/\/>/i,e)){X&&(e=qt(e,j," "),e=qt(e,O," "),e=qt(e,L," "));var l=E(t.nodeName);if(Bt(l,n,e)){if(!st||"id"!==n&&"name"!==n||(Ft(s,t),e=rt+e),D&&"object"==_typeof(h)&&"function"==typeof h.getAttributeType&&!r)switch(h.getAttributeType(l,n)){case"TrustedHTML":e=D.createHTML(e);break;case"TrustedScriptURL":e=D.createScriptURL(e)}try{r?t.setAttributeNS(r,s,e):t.setAttribute(s,e),Wt(c.removed)}catch(t){}}}else Ft(s,t)}Ut("afterSanitizeAttributes",t,null)}}function Rt(t){var e,n=jt(t);for(Ut("beforeSanitizeShadowDOM",t,null);e=n.nextNode();)Ut("uponSanitizeShadowNode",e,null),Lt(e)||(e.content instanceof l&&Rt(e.content),Pt(e));Ut("afterSanitizeShadowDOM",t,null)}var Ft=function(t,e){try{Vt(c.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){Vt(c.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Y[t])if(nt||it)try{St(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Ut=function(t,e,n){T[t]&&Qt(T[t],function(t){t.call(c,e,n,wt)})},Bt=function(t,e,n){if(ot&&("id"===e||"name"===e)&&(n in a||n in Ct))return!1;if((!J||G[e]||!$t(z,e))&&(!Z||!$t(P,e)))if(!Y[e]||G[e]){if(!(zt(t)&&(W.tagNameCheck instanceof RegExp&&$t(W.tagNameCheck,t)||W.tagNameCheck instanceof Function&&W.tagNameCheck(t))&&(W.attributeNameCheck instanceof RegExp&&$t(W.attributeNameCheck,e)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(e))||"is"===e&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&$t(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(!mt[e]&&!$t(U,qt(n,F,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Kt(n,"data:")||!pt[t])&&(!q||$t(R,qt(n,F,"")))&&n)return!1;return!0};return c.sanitize=function(t){var e,n,i,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof(t=(N=!t)?"\x3c!--\x3e":t)&&!Ot(t)){if("function"!=typeof t.toString)throw te("toString is not a function");if("string"!=typeof(t=t.toString()))throw te("dirty is not a string, aborting")}if(!c.isSupported)return t;if(tt||x(a),c.removed=[],ct="string"==typeof t?!1:ct){if(t.nodeName){var o=E(t.nodeName);if(!B[o]||V[o])throw te("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)1===(o=(e=Et("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?e=o:e.appendChild(o);else{if(!nt&&!X&&!$&&-1===t.indexOf("<"))return D&&at?D.createHTML(t):t;if(!(e=Et(t)))return nt?null:at?b:""}e&&et&&St(e.firstChild);for(var s=jt(ct?t:e);n=s.nextNode();)Lt(n)||(n.content instanceof l&&Rt(n.content),Pt(n));if(ct)return t;if(nt){if(it)for(i=w.call(e.ownerDocument);e.firstChild;)i.appendChild(e.firstChild);else i=e;return i=Y.shadowroot||Y.shadowrootmod?_.call(r,i,!0):i}t=$?e.outerHTML:e.innerHTML;return $&&B["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&$t(ge,e.ownerDocument.doctype.name)&&(t="<!DOCTYPE "+e.ownerDocument.doctype.name+">\n"+t),X&&(t=qt(t,j," "),t=qt(t,O," "),t=qt(t,L," ")),D&&at?D.createHTML(t):t},c.setConfig=function(t){x(t),tt=!0},c.clearConfig=function(){wt=null,tt=!1},c.isValidAttribute=function(t,e,n){wt||x({});t=E(t),e=E(e);return Bt(t,e,n)},c.addHook=function(t,e){"function"==typeof e&&(T[t]=T[t]||[],Vt(T[t],e))},c.removeHook=function(t){if(T[t])return Wt(T[t])},c.removeHooks=function(t){T[t]&&(T[t]=[])},c.removeAllHooks=function(){T={}},c}()}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var t;function f(){return t.apply(null,arguments)}function s(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function p(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(p(t,e))return;return 1}function c(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){for(var n=[],i=t.length,a=0;a<i;++a)n.push(e(t[a],a));return n}function d(t,e){for(var n in e)p(e,n)&&(t[n]=e[n]);return p(e,"toString")&&(t.toString=e.toString),p(e,"valueOf")&&(t.valueOf=e.valueOf),t}function h(t,e,n,i){return xe(t,e,n,i,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=m(t),n=y.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function o(t){var e=h(NaN);return null!=t?d(m(e),t):m(e).userInvalidated=!0,e}var y=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},v=f.momentProperties=[],e=!1;function D(t,e){var n,i,a,o=v.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=m(e)),c(e._locale)||(t._locale=e._locale),0<o)for(n=0;n<o;n++)c(a=e[i=v[n]])||(t[i]=a);return t}function b(t){D(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===e&&(e=!0,f.updateOffset(this),e=!1)}function A(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function I(t){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function n(o,s){var r=!0;return d(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,o),r){for(var t,e,n=[],i=arguments.length,a=0;a<i;a++){if(t="","object"==typeof arguments[a]){for(e in t+="\n["+a+"] ",arguments[0])p(arguments[0],e)&&(t+=e+": "+arguments[0][e]+", ");t=t.slice(0,-2)}else t=arguments[a];n.push(t)}I(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),r=!1}return s.apply(this,arguments)},s)}var M={};function w(t,e){null!=f.deprecationHandler&&f.deprecationHandler(t,e),M[t]||(I(e),M[t]=!0)}function C(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function _(t,e){var n,i=d({},t);for(n in e)p(e,n)&&(r(t[n])&&r(e[n])?(i[n]={},d(i[n],t[n]),d(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)p(t,n)&&!p(e,n)&&r(t[n])&&(i[n]=d({},i[n]));return i}function T(t){null!=t&&this.set(t)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var k=Object.keys||function(t){var e,n=[];for(e in t)p(t,e)&&n.push(e);return n};function x(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,S=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},j={};function O(t,e,n,i){var a="string"==typeof i?function(){return this[i]()}:i;t&&(j[t]=a),e&&(j[e[0]]=function(){return x(a.apply(this,arguments),e[1],e[2])}),n&&(j[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function L(t,e){return t.isValid()?(e=z(e,t.localeData()),E[e]=E[e]||function(i){for(var t,a=i.match(N),e=0,o=a.length;e<o;e++)j[a[e]]?a[e]=j[a[e]]:a[e]=(t=a[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<o;n++)e+=C(a[n])?a[n].call(t,i):a[n];return e}}(e),E[e](t)):t.localeData().invalidDate()}function z(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(S.lastIndex=0;0<=n&&S.test(t);)t=t.replace(S,i),S.lastIndex=0,--n;return t}var P={};function R(t,e){var n=t.toLowerCase();P[n]=P[n+"s"]=P[e]=t}function F(t){return"string"==typeof t?P[t]||P[t.toLowerCase()]:void 0}function U(t){var e,n,i={};for(n in t)p(t,n)&&(e=F(n))&&(i[e]=t[n]);return i}var B={};function H(t,e){B[t]=e}function Y(t){return t%4==0&&t%100!=0||t%400==0}function Q(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function W(t){var e=+t,t=0;return t=0!=e&&isFinite(e)?Q(e):t}function V(e,n){return function(t){return null!=t?(Z(this,e,t),f.updateOffset(this,n),this):G(this,e)}}function G(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Z(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Y(t.year())&&1===t.month()&&29===t.date()?(n=W(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),kt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var J=/\d/,q=/\d\d/,K=/\d{3}/,X=/\d{4}/,$=/[+-]?\d{6}/,tt=/\d\d?/,et=/\d\d\d\d?/,nt=/\d\d\d\d\d\d?/,it=/\d{1,3}/,at=/\d{1,4}/,ot=/[+-]?\d{1,6}/,st=/\d+/,rt=/[+-]?\d+/,lt=/Z|[+-]\d\d:?\d\d/gi,ct=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function dt(t,n,i){ht[t]=C(n)?n:function(t,e){return t&&i?i:n}}function ft(t,e){return p(ht,t)?ht[t](e._strict,e._locale):new RegExp(pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))}function pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ht={},mt={};function gt(t,n){var e,i,a=n;for("string"==typeof t&&(t=[t]),u(n)&&(a=function(t,e){e[n]=W(t)}),i=t.length,e=0;e<i;e++)mt[t[e]]=a}function yt(t,a){gt(t,function(t,e,n,i){n._w=n._w||{},a(t,n._w,n,i)})}var vt,Dt=0,bt=1,At=2,It=3,Mt=4,wt=5,Ct=6,_t=7,Tt=8;function kt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%(n=12)+n)%n;return t+=(e-n)/12,1==n?Y(t)?29:28:31-n%7%2}vt=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},O("M",["MM",2],"Mo",function(){return this.month()+1}),O("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),O("MMMM",0,0,function(t){return this.localeData().months(this,t)}),R("month","M"),H("month",8),dt("M",tt),dt("MM",tt,q),dt("MMM",function(t,e){return e.monthsShortRegex(t)}),dt("MMMM",function(t,e){return e.monthsRegex(t)}),gt(["M","MM"],function(t,e){e[bt]=W(t)-1}),gt(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[bt]=i:m(n).invalidMonth=t});var xt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),St=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Et=ut,jt=ut;function Ot(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=W(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),kt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Lt(t){return null!=t?(Ot(this,t),f.updateOffset(this,!0),this):G(this,"Month")}function zt(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],a=[],o=0;o<12;o++)e=h([2e3,o]),n.push(this.monthsShort(e,"")),i.push(this.months(e,"")),a.push(this.months(e,"")),a.push(this.monthsShort(e,""));for(n.sort(t),i.sort(t),a.sort(t),o=0;o<12;o++)n[o]=pt(n[o]),i[o]=pt(i[o]);for(o=0;o<24;o++)a[o]=pt(a[o]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Pt(t){return Y(t)?366:365}O("Y",0,0,function(){var t=this.year();return t<=9999?x(t,4):"+"+t}),O(0,["YY",2],0,function(){return this.year()%100}),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,!0],0,"year"),R("year","y"),H("year",1),dt("Y",rt),dt("YY",tt,q),dt("YYYY",at,X),dt("YYYYY",ot,$),dt("YYYYYY",ot,$),gt(["YYYYY","YYYYYY"],Dt),gt("YYYY",function(t,e){e[Dt]=2===t.length?f.parseTwoDigitYear(t):W(t)}),gt("YY",function(t,e){e[Dt]=f.parseTwoDigitYear(t)}),gt("Y",function(t,e){e[Dt]=parseInt(t,10)}),f.parseTwoDigitYear=function(t){return W(t)+(68<W(t)?1900:2e3)};var Rt=V("FullYear",!0);function Ft(t,e,n,i,a,o,s){var r;return t<100&&0<=t?(r=new Date(t+400,e,n,i,a,o,s),isFinite(r.getFullYear())&&r.setFullYear(t)):r=new Date(t,e,n,i,a,o,s),r}function Ut(t){var e;return t<100&&0<=t?((e=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,e)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Bt(t,e,n){n=7+e-n;return n-(7+Ut(t,0,n).getUTCDay()-e)%7-1}function Ht(t,e,n,i,a){var o,a=1+7*(e-1)+(7+n-i)%7+Bt(t,i,a),a=a<=0?Pt(o=t-1)+a:a>Pt(t)?(o=t+1,a-Pt(t)):(o=t,a);return{year:o,dayOfYear:a}}function Yt(t,e,n){var i,a,o=Bt(t.year(),e,n),o=Math.floor((t.dayOfYear()-o-1)/7)+1;return o<1?i=o+Qt(a=t.year()-1,e,n):o>Qt(t.year(),e,n)?(i=o-Qt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=o),{week:i,year:a}}function Qt(t,e,n){var i=Bt(t,e,n),n=Bt(t+1,e,n);return(Pt(t)-i+n)/7}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),H("week",5),H("isoWeek",5),dt("w",tt),dt("ww",tt,q),dt("W",tt),dt("WW",tt,q),yt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=W(t)});function Wt(t,e){return t.slice(e,7).concat(t.slice(0,e))}O("d",0,"do","day"),O("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),O("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),O("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),dt("d",tt),dt("e",tt),dt("E",tt),dt("dd",function(t,e){return e.weekdaysMinRegex(t)}),dt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),dt("dddd",function(t,e){return e.weekdaysRegex(t)}),yt(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:m(n).invalidWeekday=t}),yt(["d","e","E"],function(t,e,n,i){e[i]=W(t)});var Vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Jt=ut,qt=ut,Kt=ut;function Xt(){function t(t,e){return e.length-t.length}for(var e,n,i,a=[],o=[],s=[],r=[],l=0;l<7;l++)i=h([2e3,1]).day(l),e=pt(this.weekdaysMin(i,"")),n=pt(this.weekdaysShort(i,"")),i=pt(this.weekdays(i,"")),a.push(e),o.push(n),s.push(i),r.push(e),r.push(n),r.push(i);a.sort(t),o.sort(t),s.sort(t),r.sort(t),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $t(){return this.hours()%12||12}function te(t,e){O(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ee(t,e){return e._meridiemParse}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,$t),O("k",["kk",2],0,function(){return this.hours()||24}),O("hmm",0,0,function(){return""+$t.apply(this)+x(this.minutes(),2)}),O("hmmss",0,0,function(){return""+$t.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)}),O("Hmm",0,0,function(){return""+this.hours()+x(this.minutes(),2)}),O("Hmmss",0,0,function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)}),te("a",!0),te("A",!1),R("hour","h"),H("hour",13),dt("a",ee),dt("A",ee),dt("H",tt),dt("h",tt),dt("k",tt),dt("HH",tt,q),dt("hh",tt,q),dt("kk",tt,q),dt("hmm",et),dt("hmmss",nt),dt("Hmm",et),dt("Hmmss",nt),gt(["H","HH"],It),gt(["k","kk"],function(t,e,n){t=W(t);e[It]=24===t?0:t}),gt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),gt(["h","hh"],function(t,e,n){e[It]=W(t),m(n).bigHour=!0}),gt("hmm",function(t,e,n){var i=t.length-2;e[It]=W(t.substr(0,i)),e[Mt]=W(t.substr(i)),m(n).bigHour=!0}),gt("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[It]=W(t.substr(0,i)),e[Mt]=W(t.substr(i,2)),e[wt]=W(t.substr(a)),m(n).bigHour=!0}),gt("Hmm",function(t,e,n){var i=t.length-2;e[It]=W(t.substr(0,i)),e[Mt]=W(t.substr(i))}),gt("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[It]=W(t.substr(0,i)),e[Mt]=W(t.substr(i,2)),e[wt]=W(t.substr(a))});var ne=V("Hours",!0);var ie,ae={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xt,monthsShort:Nt,week:{dow:0,doy:6},weekdays:Vt,weekdaysMin:Zt,weekdaysShort:Gt,meridiemParse:/[ap]\.?m?\.?/i},oe={},se={};function re(t){return t&&t.toLowerCase().replace("_","-")}function le(t){for(var e,n,i,a,o=0;o<t.length;){for(e=(a=re(t[o]).split("-")).length,n=(n=re(t[o+1]))?n.split("-"):null;0<e;){if(i=ce(a.slice(0,e).join("-")))return i;if(n&&n.length>=e&&function(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}(a,n)>=e-1)break;e--}o++}return ie}function ce(e){var t;if(void 0===oe[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=ie._abbr,require("./locale/"+e),ue(t)}catch(t){oe[e]=null}return oe[e]}function ue(t,e){return t&&((e=c(e)?fe(t):de(t,e))?ie=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ie._abbr}function de(t,e){if(null===e)return delete oe[t],null;var n,i=ae;if(e.abbr=t,null!=oe[t])w("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."),i=oe[t]._config;else if(null!=e.parentLocale)if(null!=oe[e.parentLocale])i=oe[e.parentLocale]._config;else{if(null==(n=ce(e.parentLocale)))return se[e.parentLocale]||(se[e.parentLocale]=[]),se[e.parentLocale].push({name:t,config:e}),null;i=n._config}return oe[t]=new T(_(i,e)),se[t]&&se[t].forEach(function(t){de(t.name,t.config)}),ue(t),oe[t]}function fe(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return ie;if(!s(t)){if(e=ce(t))return e;t=[t]}return le(t)}function pe(t){var e=t._a;return e&&-2===m(t).overflow&&(e=e[bt]<0||11<e[bt]?bt:e[At]<1||e[At]>kt(e[Dt],e[bt])?At:e[It]<0||24<e[It]||24===e[It]&&(0!==e[Mt]||0!==e[wt]||0!==e[Ct])?It:e[Mt]<0||59<e[Mt]?Mt:e[wt]<0||59<e[wt]?wt:e[Ct]<0||999<e[Ct]?Ct:-1,m(t)._overflowDayOfYear&&(e<Dt||At<e)&&(e=At),m(t)._overflowWeeks&&-1===e&&(e=_t),m(t)._overflowWeekday&&-1===e&&(e=Tt),m(t).overflow=e),t}var he=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ge=/Z|[+-]\d\d(?::?\d\d)?/,ye=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ve=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],De=/^\/?Date\((-?\d+)/i,be=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ae={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ie(t){var e,n,i,a,o,s,r=t._i,l=he.exec(r)||me.exec(r),c=ye.length,r=ve.length;if(l){for(m(t).iso=!0,e=0,n=c;e<n;e++)if(ye[e][1].exec(l[1])){a=ye[e][0],i=!1!==ye[e][2];break}if(null!=a){if(l[3]){for(e=0,n=r;e<n;e++)if(ve[e][1].exec(l[3])){o=(l[2]||" ")+ve[e][0];break}if(null==o)return void(t._isValid=!1)}if(i||null==o){if(l[4]){if(!ge.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=a+(o||"")+(s||""),Te(t)}else t._isValid=!1}else t._isValid=!1}else t._isValid=!1}function Me(t,e,n,i,a,o){a=[function(t){t=parseInt(t,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(t),Nt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return o&&a.push(parseInt(o,10)),a}function we(t){var e,n,i,a,o=be.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(e=Me(o[4],o[3],o[2],o[5],o[6],o[7]),n=o[1],i=e,a=t,n&&Gt.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(m(a).weekdayMismatch=!0,a._isValid=!1):(t._a=e,t._tzm=(a=o[8],e=o[9],o=o[10],a?Ae[a]:e?0:60*(((e=parseInt(o,10))-(o=e%100))/100)+o),t._d=Ut.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0)):t._isValid=!1}function Ce(t,e,n){return null!=t?t:null!=e?e:n}function _e(t){var e,n,i,a,o,s=[];if(!t._d){for(a=t,o=new Date(f.now()),n=a._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()],t._w&&null==t._a[At]&&null==t._a[bt]&&function(t){var e,n,i,a,o,s,r,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,s=4,n=Ce(e.GG,t._a[Dt],Yt(Ne(),1,4).year),i=Ce(e.W,1),((a=Ce(e.E,1))<1||7<a)&&(r=!0)):(o=t._locale._week.dow,s=t._locale._week.doy,l=Yt(Ne(),o,s),n=Ce(e.gg,t._a[Dt],l.year),i=Ce(e.w,l.week),null!=e.d?((a=e.d)<0||6<a)&&(r=!0):null!=e.e?(a=e.e+o,(e.e<0||6<e.e)&&(r=!0)):a=o);i<1||i>Qt(n,o,s)?m(t)._overflowWeeks=!0:null!=r?m(t)._overflowWeekday=!0:(s=Ht(n,i,a,o,s),t._a[Dt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(i=Ce(t._a[Dt],n[Dt]),(t._dayOfYear>Pt(i)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),i=Ut(i,0,t._dayOfYear),t._a[bt]=i.getUTCMonth(),t._a[At]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=n[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[It]&&0===t._a[Mt]&&0===t._a[wt]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[It]=0),t._d=(t._useUTC?Ut:Ft).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[It]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(m(t).weekdayMismatch=!0)}}function Te(t){if(t._f!==f.ISO_8601)if(t._f!==f.RFC_2822){t._a=[],m(t).empty=!0;for(var e,n,i,a,o,s=""+t._i,r=s.length,l=0,c=z(t._f,t._locale).match(N)||[],u=c.length,d=0;d<u;d++)n=c[d],(e=(s.match(ft(n,t))||[])[0])&&(0<(a=s.substr(0,s.indexOf(e))).length&&m(t).unusedInput.push(a),s=s.slice(s.indexOf(e)+e.length),l+=e.length),j[n]?(e?m(t).empty=!1:m(t).unusedTokens.push(n),i=n,o=t,null!=(a=e)&&p(mt,i)&&mt[i](a,o._a,o,i)):t._strict&&!e&&m(t).unusedTokens.push(n);m(t).charsLeftOver=r-l,0<s.length&&m(t).unusedInput.push(s),t._a[It]<=12&&!0===m(t).bigHour&&0<t._a[It]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[It]=function(t,e,n){if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((n=t.isPM(n))&&e<12&&(e+=12),e=n||12!==e?e:0):e}(t._locale,t._a[It],t._meridiem),null!==(r=m(t).era)&&(t._a[Dt]=t._locale.erasConvertYear(r,t._a[Dt])),_e(t),pe(t)}else we(t);else Ie(t)}function ke(t){var e=t._i,n=t._f;return t._locale=t._locale||fe(t._l),null===e||void 0===n&&""===e?o({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new b(pe(e)):(i(e)?t._d=e:s(n)?function(t){var e,n,i,a,o,s,r=!1,l=t._f.length;if(0===l)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(a=0;a<l;a++)o=0,s=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],Te(e),g(e)&&(s=!0),o+=m(e).charsLeftOver,o+=10*m(e).unusedTokens.length,m(e).score=o,r?o<i&&(i=o,n=e):(null==i||o<i||s)&&(i=o,n=e,s&&(r=!0));d(t,n||e)}(t):n?Te(t):c(n=(e=t)._i)?e._d=new Date(f.now()):i(n)?e._d=new Date(n.valueOf()):"string"==typeof n?function(t){var e=De.exec(t._i);null===e?(Ie(t),!1===t._isValid&&(delete t._isValid,we(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:f.createFromInputFallback(t)))):t._d=new Date(+e[1])}(e):s(n)?(e._a=a(n.slice(0),function(t){return parseInt(t,10)}),_e(e)):r(n)?function(t){var e,n;t._d||(n=void 0===(e=U(t._i)).day?e.date:e.day,t._a=a([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),_e(t))}(e):u(n)?e._d=new Date(n):f.createFromInputFallback(e),g(t)||(t._d=null),t))}function xe(t,e,n,i,a){var o={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(r(t)&&l(t)||s(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=n,o._i=t,o._f=e,o._strict=i,(o=new b(pe(ke(o=o))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Ne(t,e,n,i){return xe(t,e,n,i,!1)}f.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};var Se=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ne.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:o()}),Ee=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ne.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:o()});function je(t,e){var n,i;if(!(e=1===e.length&&s(e[0])?e[0]:e).length)return Ne();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Le(t){var e=U(t),n=e.year||0,i=e.quarter||0,a=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,r=e.hour||0,l=e.minute||0,c=e.second||0,t=e.millisecond||0;this._isValid=function(t){var e,n,i=!1,a=Oe.length;for(e in t)if(p(t,e)&&(-1===vt.call(Oe,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<a;++n)if(t[Oe[n]]){if(i)return!1;parseFloat(t[Oe[n]])!==W(t[Oe[n]])&&(i=!0)}return!0}(e),this._milliseconds=+t+1e3*c+6e4*l+1e3*r*60*60,this._days=+s+7*o,this._months=+a+3*i+12*n,this._data={},this._locale=fe(),this._bubble()}function ze(t){return t instanceof Le}function Pe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Re(t,n){O(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+x(~~(t/60),2)+n+x(~~t%60,2)})}Re("Z",":"),Re("ZZ",""),dt("Z",ct),dt("ZZ",ct),gt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ue(ct,t)});var Fe=/([\+\-]|\d\d)/gi;function Ue(t,e){var e=(e||"").match(t);return null===e?null:0===(e=60*(t=((e[e.length-1]||[])+"").match(Fe)||["-",0,0])[1]+W(t[2]))?0:"+"===t[0]?e:-e}function Be(t,e){var n;return e._isUTC?(n=e.clone(),e=(A(t)||i(t)?t:Ne(t)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+e),f.updateOffset(n,!1),n):Ne(t).local()}function He(t){return-Math.round(t._d.getTimezoneOffset())}function Ye(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}f.updateOffset=function(){};var Qe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,We=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ve(t,e){var n,i=t,a=null;return ze(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:u(t)||!isNaN(+t)?(i={},e?i[e]=+t:i.milliseconds=+t):(a=Qe.exec(t))?(n="-"===a[1]?-1:1,i={y:0,d:W(a[At])*n,h:W(a[It])*n,m:W(a[Mt])*n,s:W(a[wt])*n,ms:W(Pe(1e3*a[Ct]))*n}):(a=We.exec(t))?(n="-"===a[1]?-1:1,i={y:Ge(a[2],n),M:Ge(a[3],n),w:Ge(a[4],n),d:Ge(a[5],n),h:Ge(a[6],n),m:Ge(a[7],n),s:Ge(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(n=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Be(e,t),t.isBefore(e)?n=Ze(t,e):((n=Ze(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Ne(i.from),Ne(i.to)),(i={}).ms=n.milliseconds,i.M=n.months),i=new Le(i),ze(t)&&p(t,"_locale")&&(i._locale=t._locale),ze(t)&&p(t,"_isValid")&&(i._isValid=t._isValid),i}function Ge(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function Ze(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Je(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(w(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),qe(this,Ve(t,e),i),this}}function qe(t,e,n,i){var a=e._milliseconds,o=Pe(e._days),e=Pe(e._months);t.isValid()&&(i=null==i||i,e&&Ot(t,G(t,"Month")+e*n),o&&Z(t,"Date",G(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&f.updateOffset(t,o||e))}Ve.fn=Le.prototype,Ve.invalid=function(){return Ve(NaN)};var Ke=Je(1,"add"),ut=Je(-1,"subtract");function Xe(t){return"string"==typeof t||t instanceof String}function $e(t){return A(t)||i(t)||Xe(t)||u(t)||function(e){var t=s(e),n=!1;t&&(n=0===e.filter(function(t){return!u(t)&&Xe(e)}).length);return t&&n}(t)||function(t){var e,n,i=r(t)&&!l(t),a=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(e=0;e<s;e+=1)n=o[e],a=a||p(t,n);return i&&a}(t)||null==t}function tn(t,e){if(t.date()<e.date())return-tn(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months"),i=e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i);return-(n+i)||0}function en(t){return void 0===t?this._locale._abbr:(null!=(t=fe(t))&&(this._locale=t),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";et=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function nn(){return this._locale}var an=126227808e5;function on(t,e){return(t%e+e)%e}function sn(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-an:new Date(t,e,n).valueOf()}function rn(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-an:Date.UTC(t,e,n)}function ln(t,e){return e.erasAbbrRegex(t)}function cn(){for(var t=[],e=[],n=[],i=[],a=this.eras(),o=0,s=a.length;o<s;++o)e.push(pt(a[o].name)),t.push(pt(a[o].abbr)),n.push(pt(a[o].narrow)),i.push(pt(a[o].name)),i.push(pt(a[o].abbr)),i.push(pt(a[o].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function un(t,e){O(0,[t,t.length],0,e)}function dn(t,e,n,i,a){var o;return null==t?Yt(this,i,a).year:(o=Qt(t,i,a),function(t,e,n,i,a){a=Ht(t,e,n,i,a),a=Ut(a.year,0,a.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e=o<e?o:e,n,i,a))}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),dt("N",ln),dt("NN",ln),dt("NNN",ln),dt("NNNN",function(t,e){return e.erasNameRegex(t)}),dt("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),gt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,i){i=n._locale.erasParse(t,i,n._strict);i?m(n).era=i:m(n).invalidEra=t}),dt("y",st),dt("yy",st),dt("yyy",st),dt("yyyy",st),dt("yo",function(t,e){return e._eraYearOrdinalRegex||st}),gt(["y","yy","yyy","yyyy"],Dt),gt(["yo"],function(t,e,n,i){var a;n._locale._eraYearOrdinalRegex&&(a=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Dt]=n._locale.eraYearOrdinalParse(t,a):e[Dt]=parseInt(t,10)}),O(0,["gg",2],0,function(){return this.weekYear()%100}),O(0,["GG",2],0,function(){return this.isoWeekYear()%100}),un("gggg","weekYear"),un("ggggg","weekYear"),un("GGGG","isoWeekYear"),un("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),dt("G",rt),dt("g",rt),dt("GG",tt,q),dt("gg",tt,q),dt("GGGG",at,X),dt("gggg",at,X),dt("GGGGG",ot,$),dt("ggggg",ot,$),yt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=W(t)}),yt(["gg","GG"],function(t,e,n,i){e[i]=f.parseTwoDigitYear(t)}),O("Q",0,"Qo","quarter"),R("quarter","Q"),H("quarter",7),dt("Q",J),gt("Q",function(t,e){e[bt]=3*(W(t)-1)}),O("D",["DD",2],"Do","date"),R("date","D"),H("date",9),dt("D",tt),dt("DD",tt,q),dt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),gt(["D","DD"],At),gt("Do",function(t,e){e[At]=W(t.match(tt)[0])});nt=V("Date",!0);O("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),H("dayOfYear",4),dt("DDD",it),dt("DDDD",K),gt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=W(t)}),O("m",["mm",2],0,"minute"),R("minute","m"),H("minute",14),dt("m",tt),dt("mm",tt,q),gt(["m","mm"],Mt);xt=V("Minutes",!1);O("s",["ss",2],0,"second"),R("second","s"),H("second",15),dt("s",tt),dt("ss",tt,q),gt(["s","ss"],wt);var fn,Vt=V("Seconds",!1);for(O("S",0,0,function(){return~~(this.millisecond()/100)}),O(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,function(){return 10*this.millisecond()}),O(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),O(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),O(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),O(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),O(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),H("millisecond",16),dt("S",it,J),dt("SS",it,q),dt("SSS",it,K),fn="SSSS";fn.length<=9;fn+="S")dt(fn,st);function pn(t,e){e[Ct]=W(1e3*("0."+t))}for(fn="S";fn.length<=9;fn+="S")gt(fn,pn);Zt=V("Milliseconds",!1),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName");at=b.prototype;function hn(t){return t}at.add=Ke,at.calendar=function(t,e){1===arguments.length&&(arguments[0]?$e(arguments[0])?(t=arguments[0],e=void 0):function(t){for(var e=r(t)&&!l(t),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a=0;a<i.length;a+=1)n=n||p(t,i[a]);return e&&n}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var n=t||Ne(),t=Be(n,this).startOf("day"),t=f.calendarFormat(this,t)||"sameElse",e=e&&(C(e[t])?e[t].call(this,n):e[t]);return this.format(e||this.localeData().calendar(t,this,Ne(n)))},at.clone=function(){return new b(this)},at.diff=function(t,e,n){var i,a,o;if(!this.isValid())return NaN;if(!(i=Be(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=F(e)){case"year":o=tn(this,i)/12;break;case"month":o=tn(this,i);break;case"quarter":o=tn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-a)/864e5;break;case"week":o=(this-i-a)/6048e5;break;default:o=this-i}return n?o:Q(o)},at.endOf=function(t){var e,n;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?rn:sn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-on(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-on(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-on(e,1e3)-1}return this._d.setTime(e),f.updateOffset(this,!0),this},at.format=function(t){return t=t||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),t=L(this,t),this.localeData().postformat(t)},at.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Ne(t).isValid())?Ve({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},at.fromNow=function(t){return this.from(Ne(),t)},at.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Ne(t).isValid())?Ve({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},at.toNow=function(t){return this.to(Ne(),t)},at.get=function(t){return C(this[t=F(t)])?this[t]():this},at.invalidAt=function(){return m(this).overflow},at.isAfter=function(t,e){return t=A(t)?t:Ne(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},at.isBefore=function(t,e){return t=A(t)?t:Ne(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},at.isBetween=function(t,e,n,i){return t=A(t)?t:Ne(t),e=A(e)?e:Ne(e),!!(this.isValid()&&t.isValid()&&e.isValid())&&(("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n)))},at.isSame=function(t,e){var t=A(t)?t:Ne(t);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},at.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},at.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},at.isValid=function(){return g(this)},at.lang=et,at.locale=en,at.localeData=nn,at.max=Ee,at.min=Se,at.parsingFlags=function(){return d({},m(this))},at.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)p(t,e)&&n.push({unit:e,priority:B[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=U(t)),i=n.length,a=0;a<i;a++)this[n[a].unit](t[n[a].unit]);else if(C(this[t=F(t)]))return this[t](e);return this},at.startOf=function(t){var e,n;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?rn:sn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=on(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=on(e,6e4);break;case"second":e=this._d.valueOf(),e-=on(e,1e3)}return this._d.setTime(e),f.updateOffset(this,!0),this},at.subtract=ut,at.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},at.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},at.toDate=function(){return new Date(this.valueOf())},at.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t;return(t=e?this.clone().utc():this).year()<0||9999<t.year()?L(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",L(t,"Z")):L(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},at.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e="moment",n="";return this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+e+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(at[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),at.toJSON=function(){return this.isValid()?this.toISOString():null},at.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},at.unix=function(){return Math.floor(this.valueOf()/1e3)},at.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},at.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},at.eraName=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].name;if(e[n].until<=t&&t<=e[n].since)return e[n].name}return""},at.eraNarrow=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].narrow;if(e[n].until<=t&&t<=e[n].since)return e[n].narrow}return""},at.eraAbbr=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].abbr;if(e[n].until<=t&&t<=e[n].since)return e[n].abbr}return""},at.eraYear=function(){for(var t,e,n=this.localeData().eras(),i=0,a=n.length;i<a;++i)if(t=n[i].since<=n[i].until?1:-1,e=this.clone().startOf("day").valueOf(),n[i].since<=e&&e<=n[i].until||n[i].until<=e&&e<=n[i].since)return(this.year()-f(n[i].since).year())*t+n[i].offset;return this.year()},at.year=Rt,at.isLeapYear=function(){return Y(this.year())},at.weekYear=function(t){return dn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},at.isoWeekYear=function(t){return dn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},at.quarter=at.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},at.month=Lt,at.daysInMonth=function(){return kt(this.year(),this.month())},at.week=at.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},at.isoWeek=at.isoWeeks=function(t){var e=Yt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},at.weeksInYear=function(){var t=this.localeData()._week;return Qt(this.year(),t.dow,t.doy)},at.weeksInWeekYear=function(){var t=this.localeData()._week;return Qt(this.weekYear(),t.dow,t.doy)},at.isoWeeksInYear=function(){return Qt(this.year(),1,4)},at.isoWeeksInISOWeekYear=function(){return Qt(this.isoWeekYear(),1,4)},at.date=nt,at.day=at.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},at.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},at.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e=(e=t,t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?e:e-7)},at.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},at.hour=at.hours=ne,at.minute=at.minutes=xt,at.second=at.seconds=Vt,at.millisecond=at.milliseconds=Zt,at.utcOffset=function(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:He(this);if("string"==typeof t){if(null===(t=Ue(ct,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=He(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?qe(this,Ve(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this},at.utc=function(t){return this.utcOffset(0,t)},at.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(He(this),"m")),this},at.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Ue(lt,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},at.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ne(t).utcOffset():0,(this.utcOffset()-t)%60==0)},at.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},at.isLocal=function(){return!!this.isValid()&&!this._isUTC},at.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},at.isUtc=Ye,at.isUTC=Ye,at.zoneAbbr=function(){return this._isUTC?"UTC":""},at.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},at.dates=n("dates accessor is deprecated. Use date instead.",nt),at.months=n("months accessor is deprecated. Use month instead",Lt),at.years=n("years accessor is deprecated. Use year instead",Rt),at.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),at.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return D(e,this),(e=ke(e))._a?(t=(e._isUTC?h:Ne)(e._a),this._isDSTShifted=this.isValid()&&0<function(t,e,n){for(var i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0,s=0;s<i;s++)(n&&t[s]!==e[s]||!n&&W(t[s])!==W(e[s]))&&o++;return o+a}(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted});X=T.prototype;function mn(t,e,n,i){var a=fe(),e=h().set(i,e);return a[n](e,t)}function gn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return mn(t,e,n,"month");for(var i=[],a=0;a<12;a++)i[a]=mn(t,a,n,"month");return i}function yn(t,e,n,i){e=("boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e||"");var a,o=fe(),s=t?o._week.dow:0,r=[];if(null!=n)return mn(e,(n+s)%7,i,"day");for(a=0;a<7;a++)r[a]=mn(e,(a+s)%7,i,"day");return r}X.calendar=function(t,e,n){return C(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},X.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(N).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},X.invalidDate=function(){return this._invalidDate},X.ordinal=function(t){return this._ordinal.replace("%d",t)},X.preparse=hn,X.postformat=hn,X.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return C(a)?a(t,e,n,i):a.replace(/%d/i,t)},X.pastFuture=function(t,e){return C(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},X.set=function(t){var e,n;for(n in t)p(t,n)&&(C(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},X.eras=function(t,e){for(var n,i=this._eras||fe("en")._eras,a=0,o=i.length;a<o;++a)switch("string"==typeof i[a].since&&(n=f(i[a].since).startOf("day"),i[a].since=n.valueOf()),typeof i[a].until){case"undefined":i[a].until=1/0;break;case"string":n=f(i[a].until).startOf("day").valueOf(),i[a].until=n.valueOf()}return i},X.erasParse=function(t,e,n){var i,a,o,s,r,l=this.eras();for(t=t.toUpperCase(),i=0,a=l.length;i<a;++i)if(o=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),r=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[i];break;case"NNNN":if(o===t)return l[i];break;case"NNNNN":if(r===t)return l[i]}else if(0<=[o,s,r].indexOf(t))return l[i]},X.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?f(t.since).year():f(t.since).year()+(e-t.offset)*n},X.erasAbbrRegex=function(t){return p(this,"_erasAbbrRegex")||cn.call(this),t?this._erasAbbrRegex:this._erasRegex},X.erasNameRegex=function(t){return p(this,"_erasNameRegex")||cn.call(this),t?this._erasNameRegex:this._erasRegex},X.erasNarrowRegex=function(t){return p(this,"_erasNarrowRegex")||cn.call(this),t?this._erasNarrowRegex:this._erasRegex},X.months=function(t,e){return t?(s(this._months)?this._months:this._months[(this._months.isFormat||St).test(e)?"format":"standalone"])[t.month()]:s(this._months)?this._months:this._months.standalone},X.monthsShort=function(t,e){return t?(s(this._monthsShort)?this._monthsShort:this._monthsShort[St.test(e)?"format":"standalone"])[t.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},X.monthsParse=function(t,e,n){var i,a;if(this._monthsParseExact)return function(t,e,n){var i,a,o,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=vt.call(this._shortMonthsParse,t))?a:null:-1!==(a=vt.call(this._longMonthsParse,t))?a:null:"MMM"===e?-1!==(a=vt.call(this._shortMonthsParse,t))||-1!==(a=vt.call(this._longMonthsParse,t))?a:null:-1!==(a=vt.call(this._longMonthsParse,t))||-1!==(a=vt.call(this._shortMonthsParse,t))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},X.monthsRegex=function(t){return this._monthsParseExact?(p(this,"_monthsRegex")||zt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=jt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},X.monthsShortRegex=function(t){return this._monthsParseExact?(p(this,"_monthsRegex")||zt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Et),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},X.week=function(t){return Yt(t,this._week.dow,this._week.doy).week},X.firstDayOfYear=function(){return this._week.doy},X.firstDayOfWeek=function(){return this._week.dow},X.weekdays=function(t,e){return e=s(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"],!0===t?Wt(e,this._week.dow):t?e[t.day()]:e},X.weekdaysMin=function(t){return!0===t?Wt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},X.weekdaysShort=function(t){return!0===t?Wt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},X.weekdaysParse=function(t,e,n){var i,a;if(this._weekdaysParseExact)return function(t,e,n){var i,a,o,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=vt.call(this._weekdaysParse,t))?a:null:"ddd"===e?-1!==(a=vt.call(this._shortWeekdaysParse,t))?a:null:-1!==(a=vt.call(this._minWeekdaysParse,t))?a:null:"dddd"===e?-1!==(a=vt.call(this._weekdaysParse,t))||-1!==(a=vt.call(this._shortWeekdaysParse,t))||-1!==(a=vt.call(this._minWeekdaysParse,t))?a:null:"ddd"===e?-1!==(a=vt.call(this._shortWeekdaysParse,t))||-1!==(a=vt.call(this._weekdaysParse,t))||-1!==(a=vt.call(this._minWeekdaysParse,t))?a:null:-1!==(a=vt.call(this._minWeekdaysParse,t))||-1!==(a=vt.call(this._weekdaysParse,t))||-1!==(a=vt.call(this._shortWeekdaysParse,t))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},X.weekdaysRegex=function(t){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Jt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},X.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},X.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},X.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},X.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ue("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===W(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),f.lang=n("moment.lang is deprecated. Use moment.locale instead.",ue),f.langData=n("moment.langData is deprecated. Use moment.localeData instead.",fe);var vn=Math.abs;function Dn(t,e,n,i){n=Ve(e,n);return t._milliseconds+=i*n._milliseconds,t._days+=i*n._days,t._months+=i*n._months,t._bubble()}function bn(t){return t<0?Math.floor(t):Math.ceil(t)}function An(t){return 4800*t/146097}function In(t){return 146097*t/4800}function Mn(t){return function(){return this.as(t)}}ot=Mn("ms"),$=Mn("s"),J=Mn("m"),q=Mn("h"),it=Mn("d"),K=Mn("w"),Ke=Mn("M"),Ee=Mn("Q"),Se=Mn("y");function wn(t){return function(){return this.isValid()?this._data[t]:NaN}}ut=wn("milliseconds"),ne=wn("seconds"),xt=wn("minutes"),Vt=wn("hours"),Zt=wn("days"),nt=wn("months"),Rt=wn("years");var Cn=Math.round,_n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tn(t,e,n,i){var a=Ve(t).abs(),o=Cn(a.as("s")),s=Cn(a.as("m")),r=Cn(a.as("h")),l=Cn(a.as("d")),c=Cn(a.as("M")),u=Cn(a.as("w")),a=Cn(a.as("y")),l=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||s<=1&&["m"]||s<n.m&&["mm",s]||r<=1&&["h"]||r<n.h&&["hh",r]||l<=1&&["d"]||l<n.d&&["dd",l];return(l=(l=null!=n.w?l||u<=1&&["w"]||u<n.w&&["ww",u]:l)||c<=1&&["M"]||c<n.M&&["MM",c]||a<=1&&["y"]||["yy",a])[2]=e,l[3]=0<+t,l[4]=i,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,l)}var kn=Math.abs;function xn(t){return(0<t)-(t<0)||+t}function Nn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,a,o,s,r=kn(this._milliseconds)/1e3,l=kn(this._days),c=kn(this._months),u=this.asSeconds();return u?(t=Q(r/60),e=Q(t/60),r%=60,t%=60,n=Q(c/12),c%=12,i=r?r.toFixed(3).replace(/\.?0+$/,""):"",a=xn(this._months)!==xn(u)?"-":"",o=xn(this._days)!==xn(u)?"-":"",s=xn(this._milliseconds)!==xn(u)?"-":"",(u<0?"-":"")+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(e||t||r?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(r?s+i+"S":"")):"P0D"}X=Le.prototype;return X.isValid=function(){return this._isValid},X.abs=function(){var t=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),t.milliseconds=vn(t.milliseconds),t.seconds=vn(t.seconds),t.minutes=vn(t.minutes),t.hours=vn(t.hours),t.months=vn(t.months),t.years=vn(t.years),this},X.add=function(t,e){return Dn(this,t,e,1)},X.subtract=function(t,e){return Dn(this,t,e,-1)},X.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=F(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+An(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(In(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},X.asMilliseconds=ot,X.asSeconds=$,X.asMinutes=J,X.asHours=q,X.asDays=it,X.asWeeks=K,X.asMonths=Ke,X.asQuarters=Ee,X.asYears=Se,X.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},X._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*bn(In(n)+e),n=e=0),i.milliseconds=t%1e3,t=Q(t/1e3),i.seconds=t%60,t=Q(t/60),i.minutes=t%60,t=Q(t/60),i.hours=t%24,e+=Q(t/24),n+=t=Q(An(e)),e-=bn(In(t)),t=Q(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},X.clone=function(){return Ve(this)},X.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},X.milliseconds=ut,X.seconds=ne,X.minutes=xt,X.hours=Vt,X.days=Zt,X.weeks=function(){return Q(this.days()/7)},X.months=nt,X.years=Rt,X.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,i=_n;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(n=t),"object"==typeof e&&(i=Object.assign({},_n,e),null!=e.s&&null==e.ss&&(i.ss=e.s-1)),e=this.localeData(),i=Tn(this,!n,i,e),n&&(i=e.pastFuture(+this,i)),e.postformat(i)},X.toISOString=Nn,X.toString=Nn,X.toJSON=Nn,X.locale=en,X.localeData=nn,X.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Nn),X.lang=et,O("X",0,0,"unix"),O("x",0,0,"valueOf"),dt("x",rt),dt("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),gt("x",function(t,e,n){n._d=new Date(W(t))}),f.version="2.29.4",t=Ne,f.fn=at,f.min=function(){return je("isBefore",[].slice.call(arguments,0))},f.max=function(){return je("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=h,f.unix=function(t){return Ne(1e3*t)},f.months=function(t,e){return gn(t,e,"months")},f.isDate=i,f.locale=ue,f.invalid=o,f.duration=Ve,f.isMoment=A,f.weekdays=function(t,e,n){return yn(t,e,n,"weekdays")},f.parseZone=function(){return Ne.apply(null,arguments).parseZone()},f.localeData=fe,f.isDuration=ze,f.monthsShort=function(t,e){return gn(t,e,"monthsShort")},f.weekdaysMin=function(t,e,n){return yn(t,e,n,"weekdaysMin")},f.defineLocale=de,f.updateLocale=function(t,e){var n,i;return null!=e?(i=ae,null!=oe[t]&&null!=oe[t].parentLocale?oe[t].set(_(oe[t]._config,e)):(e=_(i=null!=(n=ce(t))?n._config:i,e),null==n&&(e.abbr=t),(e=new T(e)).parentLocale=oe[t],oe[t]=e),ue(t)):null!=oe[t]&&(null!=oe[t].parentLocale?(oe[t]=oe[t].parentLocale,t===ue()&&ue(t)):null!=oe[t]&&delete oe[t]),oe[t]},f.locales=function(){return k(oe)},f.weekdaysShort=function(t,e,n){return yn(t,e,n,"weekdaysShort")},f.normalizeUnits=F,f.relativeTimeRounding=function(t){return void 0===t?Cn:"function"==typeof t&&(Cn=t,!0)},f.relativeTimeThreshold=function(t,e){return void 0!==_n[t]&&(void 0===e?_n[t]:(_n[t]=e,"s"===t&&(_n.ss=e-1),!0))},f.calendarFormat=function(t,e){return(e=t.diff(e,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},f.prototype=at,f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},f}),function(){var Bo,Ho="Expected a function",Yo="__lodash_hash_undefined__",Qo="__lodash_placeholder__",Wo=9007199254740991,Vo=NaN,Go=4294967295,Zo=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],Jo="[object Arguments]",qo="[object Array]",Ko="[object Boolean]",Xo="[object Date]",$o="[object Error]",ts="[object Function]",es="[object GeneratorFunction]",ns="[object Map]",is="[object Number]",as="[object Object]",os="[object Promise]",ss="[object RegExp]",rs="[object Set]",ls="[object String]",cs="[object Symbol]",us="[object WeakMap]",ds="[object ArrayBuffer]",fs="[object DataView]",ps="[object Float32Array]",hs="[object Float64Array]",ms="[object Int8Array]",gs="[object Int16Array]",ys="[object Int32Array]",vs="[object Uint8Array]",Ds="[object Uint8ClampedArray]",bs="[object Uint16Array]",As="[object Uint32Array]",Is=/\b__p \+= '';/g,Ms=/\b(__p \+=) '' \+/g,ws=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cs=/&(?:amp|lt|gt|quot|#39);/g,_s=/[&<>"']/g,Ts=RegExp(Cs.source),ks=RegExp(_s.source),xs=/<%-([\s\S]+?)%>/g,Ns=/<%([\s\S]+?)%>/g,Ss=/<%=([\s\S]+?)%>/g,Es=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,js=/^\w*$/,Os=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ls=/[\\^$.*+?()[\]{}|]/g,zs=RegExp(Ls.source),Ps=/^\s+/,n=/\s/,Rs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fs=/\{\n\/\* \[wrapped with (.+)\] \*/,Us=/,? & /,Bs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hs=/[()=,{}\[\]\/\s]/,Ys=/\\(\\)?/g,Qs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ws=/\w*$/,Vs=/^[-+]0x[0-9a-f]+$/i,Gs=/^0b[01]+$/i,Zs=/^\[object .+?Constructor\]$/,Js=/^0o[0-7]+$/i,qs=/^(?:0|[1-9]\d*)$/,Ks=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xs=/($^)/,$s=/['\n\r\u2028\u2029\\]/g,t="\\ud800-\\udfff",e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",i="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\ufe0e\\ufe0f",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="["+t+"]",c="["+r+"]",u="["+e+"]",d="["+i+"]",f="["+a+"]",p="[^"+t+r+"\\d+"+i+a+o+"]",h="\\ud83c[\\udffb-\\udfff]",m="[^"+t+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",v="["+o+"]",D="(?:"+f+"|"+p+")",r="(?:"+v+"|"+p+")",i="(?:['’](?:d|ll|m|re|s|t|ve))?",a="(?:['’](?:D|LL|M|RE|S|T|VE))?",o="(?:"+u+"|"+h+")"+"?",p="["+s+"]?",o=p+o+("(?:\\u200d(?:"+[m,g,y].join("|")+")"+p+o+")*"),d="(?:"+[d,g,y].join("|")+")"+o,l="(?:"+[m+u+"?",u,g,y,l].join("|")+")",tr=RegExp("['’]","g"),er=RegExp(u,"g"),b=RegExp(h+"(?="+h+")|"+l+o,"g"),nr=RegExp([v+"?"+f+"+"+i+"(?="+[c,v,"$"].join("|")+")",r+"+"+a+"(?="+[c,v+D,"$"].join("|")+")",v+"?"+D+"+"+i,v+"+"+a,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",d].join("|"),"g"),A=RegExp("[\\u200d"+t+e+s+"]"),ir=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ar=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],or=-1,sr={};sr[ps]=sr[hs]=sr[ms]=sr[gs]=sr[ys]=sr[vs]=sr[Ds]=sr[bs]=sr[As]=!0,sr[Jo]=sr[qo]=sr[ds]=sr[Ko]=sr[fs]=sr[Xo]=sr[$o]=sr[ts]=sr[ns]=sr[is]=sr[as]=sr[ss]=sr[rs]=sr[ls]=sr[us]=!1;var rr={};rr[Jo]=rr[qo]=rr[ds]=rr[fs]=rr[Ko]=rr[Xo]=rr[ps]=rr[hs]=rr[ms]=rr[gs]=rr[ys]=rr[ns]=rr[is]=rr[as]=rr[ss]=rr[rs]=rr[ls]=rr[cs]=rr[vs]=rr[Ds]=rr[bs]=rr[As]=!0,rr[$o]=rr[ts]=rr[us]=!1;var I={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lr=parseFloat,cr=parseInt,e="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,ur=e||s||Function("return this")(),s="object"==typeof exports&&exports&&!exports.nodeType&&exports,M=s&&"object"==typeof module&&module&&!module.nodeType&&module,dr=M&&M.exports===s,w=dr&&e.process,e=function(){try{var t=M&&M.require&&M.require("util").types;return t?t:w&&w.binding&&w.binding("util")}catch(t){}}(),fr=e&&e.isArrayBuffer,pr=e&&e.isDate,hr=e&&e.isMap,mr=e&&e.isRegExp,gr=e&&e.isSet,yr=e&&e.isTypedArray;function vr(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Dr(t,e,n,i){for(var a=-1,o=null==t?0:t.length;++a<o;){var s=t[a];e(i,s,n(s),t)}return i}function br(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Ar(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ir(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function Mr(t,e){for(var n=-1,i=null==t?0:t.length,a=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[a++]=s)}return o}function wr(t,e){return!!(null==t?0:t.length)&&-1<jr(t,e,0)}function Cr(t,e,n){for(var i=-1,a=null==t?0:t.length;++i<a;)if(n(e,t[i]))return!0;return!1}function _r(t,e){for(var n=-1,i=null==t?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}function Tr(t,e){for(var n=-1,i=e.length,a=t.length;++n<i;)t[a+n]=e[n];return t}function kr(t,e,n,i){var a=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++a]);++a<o;)n=e(n,t[a],a,t);return n}function xr(t,e,n,i){var a=null==t?0:t.length;for(i&&a&&(n=t[--a]);a--;)n=e(n,t[a],a,t);return n}function Nr(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var C=Pr("length");function Sr(t,i,e){var a;return e(t,function(t,e,n){if(i(t,e,n))return a=e,!1}),a}function Er(t,e,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(e(t[o],o,t))return o;return-1}function jr(t,e,n){return e==e?function(t,e,n){var i=n-1,a=t.length;for(;++i<a;)if(t[i]===e)return i;return-1}(t,e,n):Er(t,Lr,n)}function Or(t,e,n,i){for(var a=n-1,o=t.length;++a<o;)if(i(t[a],e))return a;return-1}function Lr(t){return t!=t}function zr(t,e){var n=null==t?0:t.length;return n?Fr(t,e)/n:Vo}function Pr(e){return function(t){return null==t?Bo:t[e]}}function _(e){return function(t){return null==e?Bo:e[t]}}function Rr(t,i,a,o,e){return e(t,function(t,e,n){a=o?(o=!1,t):i(a,t,e,n)}),a}function Fr(t,e){for(var n,i=-1,a=t.length;++i<a;){var o=e(t[i]);o!==Bo&&(n=n===Bo?o:n+o)}return n}function Ur(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Br(t){return t&&t.slice(0,il(t)+1).replace(Ps,"")}function Hr(e){return function(t){return e(t)}}function Yr(e,t){return _r(t,function(t){return e[t]})}function Qr(t,e){return t.has(e)}function Wr(t,e){for(var n=-1,i=t.length;++n<i&&-1<jr(e,t[n],0););return n}function Vr(t,e){for(var n=t.length;n--&&-1<jr(e,t[n],0););return n}var Gr=_({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Zr=_({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jr(t){return"\\"+I[t]}function qr(t){return A.test(t)}function Kr(t){var n=-1,i=Array(t.size);return t.forEach(function(t,e){i[++n]=[e,t]}),i}function Xr(e,n){return function(t){return e(n(t))}}function $r(t,e){for(var n=-1,i=t.length,a=0,o=[];++n<i;){var s=t[n];s!==e&&s!==Qo||(t[n]=Qo,o[a++]=n)}return o}function tl(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function el(t){return(qr(t)?function(t){var e=b.lastIndex=0;for(;b.test(t);)++e;return e}:C)(t)}function nl(t){return qr(t)?t.match(b)||[]:t.split("")}function il(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}var al=_({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var ol=function t(e){var M=(e=null==e?ur:ol.defaults(ur.Object(),e,ol.pick(ur,ar))).Array,n=e.Date,d=e.Error,f=e.Function,a=e.Math,m=e.Object,p=e.RegExp,u=e.String,v=e.TypeError,o=M.prototype,i=f.prototype,h=m.prototype,s=e["__core-js_shared__"],r=i.toString,D=h.hasOwnProperty,l=0,c=(No=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+No:"",g=h.toString,y=r.call(m),b=ur._,A=p("^"+r.call(D).replace(Ls,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=dr?e.Buffer:Bo,w=e.Symbol,C=e.Uint8Array,_=I?I.allocUnsafe:Bo,T=Xr(m.getPrototypeOf,m),k=m.create,x=h.propertyIsEnumerable,N=o.splice,S=w?w.isConcatSpreadable:Bo,E=w?w.iterator:Bo,j=w?w.toStringTag:Bo,O=function(){try{var t=Hn(m,"defineProperty");return t({},"",{}),t}catch(t){}}(),L=e.clearTimeout!==ur.clearTimeout&&e.clearTimeout,z=n&&n.now!==ur.Date.now&&n.now,P=e.setTimeout!==ur.setTimeout&&e.setTimeout,R=a.ceil,F=a.floor,U=m.getOwnPropertySymbols,B=I?I.isBuffer:Bo,H=e.isFinite,Y=o.join,Q=Xr(m.keys,m),W=a.max,V=a.min,G=n.now,Z=e.parseInt,J=a.random,q=o.reverse,K=Hn(e,"DataView"),X=Hn(e,"Map"),$=Hn(e,"Promise"),tt=Hn(e,"Set"),et=Hn(e,"WeakMap"),nt=Hn(m,"create"),it=et&&new et,at={},ot=mi(K),st=mi(X),rt=mi($),lt=mi(tt),ct=mi(et),ut=w?w.prototype:Bo,dt=ut?ut.valueOf:Bo,ft=ut?ut.toString:Bo;function pt(t){if(Ea(t)&&!Aa(t)&&!(t instanceof vt)){if(t instanceof yt)return t;if(D.call(t,"__wrapped__"))return gi(t)}return new yt(t)}var ht=function(t){if(!Sa(t))return{};if(k)return k(t);mt.prototype=t;t=new mt;return mt.prototype=Bo,t};function mt(){}function gt(){}function yt(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=Bo}function vt(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Go,this.__views__=[]}function Dt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function At(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function It(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new At;++e<n;)this.add(t[e])}function Mt(t){t=this.__data__=new bt(t);this.size=t.size}function wt(t,e){var n,i=Aa(t),a=!i&&ba(t),o=!i&&!a&&Ca(t),s=!i&&!a&&!o&&Ua(t),r=i||a||o||s,l=r?Ur(t.length,u):[],c=l.length;for(n in t)!e&&!D.call(t,n)||r&&("length"==n||o&&("offset"==n||"parent"==n)||s&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||Jn(n,c))||l.push(n);return l}function Ct(t){var e=t.length;return e?t[Ie(0,e-1)]:Bo}function _t(t,e){return di(an(t),Lt(e,0,t.length))}function Tt(t){return di(an(t))}function kt(t,e,n){(n===Bo||ya(t[e],n))&&(n!==Bo||e in t)||jt(t,e,n)}function xt(t,e,n){var i=t[e];D.call(t,e)&&ya(i,n)&&(n!==Bo||e in t)||jt(t,e,n)}function Nt(t,e){for(var n=t.length;n--;)if(ya(t[n][0],e))return n;return-1}function St(t,i,a,o){return Ut(t,function(t,e,n){i(o,t,a(t),n)}),o}function Et(t,e){return t&&on(e,lo(e),t)}function jt(t,e,n){"__proto__"==e&&O?O(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ot(t,e){for(var n=-1,i=e.length,a=M(i),o=null==t;++n<i;)a[n]=o?Bo:io(t,e[n]);return a}function Lt(t,e,n){return t==t&&(n!==Bo&&(t=t<=n?t:n),e!==Bo&&(t=e<=t?t:e)),t}function zt(n,i,a,t,e,o){var s,r=1&i,l=2&i,c=4&i;if((s=a?e?a(n,t,e,o):a(n):s)!==Bo)return s;if(!Sa(n))return n;var u,d,f=Aa(n);if(f){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&D.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(n),!r)return an(n,s)}else{var p=Wn(n),t=p==ts||p==es;if(Ca(n))return Ke(n,r);if(p==as||p==Jo||t&&!e){if(s=l||t?{}:Gn(n),!r)return l?(t=u=n,d=(d=s)&&on(t,co(t),d),on(u,Qn(u),d)):(d=Et(s,u=n),on(u,Yn(u),d))}else{if(!rr[p])return e?n:{};s=function(t,e,n){var i=t.constructor;switch(e){case ds:return Xe(t);case Ko:case Xo:return new i(+t);case fs:return function(t,e){e=e?Xe(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,n);case ps:case hs:case ms:case gs:case ys:case vs:case Ds:case bs:case As:return $e(t,n);case ns:return new i;case is:case ls:return new i(t);case ss:return function(t){var e=new t.constructor(t.source,Ws.exec(t));return e.lastIndex=t.lastIndex,e}(t);case rs:return new i;case cs:return function(t){return dt?m(dt.call(t)):{}}(t)}}(n,p,r)}}r=(o=o||new Mt).get(n);if(r)return r;o.set(n,s),Pa(n)?n.forEach(function(t){s.add(zt(t,i,a,t,n,o))}):ja(n)&&n.forEach(function(t,e){s.set(e,zt(t,i,a,e,n,o))});var h=f?Bo:(c?l?Ln:On:l?co:lo)(n);return br(h||n,function(t,e){h&&(t=n[e=t]),xt(s,e,zt(t,i,a,e,n,o))}),s}function Pt(t,e,n){var i=n.length;if(null==t)return!i;for(t=m(t);i--;){var a=n[i],o=e[a],s=t[a];if(s===Bo&&!(a in t)||!o(s))return!1}return!0}function Rt(t,e,n){if("function"!=typeof t)throw new v(Ho);return ri(function(){t.apply(Bo,n)},e)}function Ft(t,e,n,i){var a=-1,o=wr,s=!0,r=t.length,l=[],c=e.length;if(!r)return l;n&&(e=_r(e,Hr(n))),i?(o=Cr,s=!1):200<=e.length&&(o=Qr,s=!1,e=new It(e));t:for(;++a<r;){var u=t[a],d=null==n?u:n(u),u=i||0!==u?u:0;if(s&&d==d){for(var f=c;f--;)if(e[f]===d)continue t;l.push(u)}else o(e,d,i)||l.push(u)}return l}pt.templateSettings={escape:xs,evaluate:Ns,interpolate:Ss,variable:"",imports:{_:pt}},(pt.prototype=gt.prototype).constructor=pt,(yt.prototype=ht(gt.prototype)).constructor=yt,(vt.prototype=ht(gt.prototype)).constructor=vt,Dt.prototype.clear=function(){this.__data__=nt?nt(null):{},this.size=0},Dt.prototype.delete=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t},Dt.prototype.get=function(t){var e=this.__data__;if(nt){var n=e[t];return n===Yo?Bo:n}return D.call(e,t)?e[t]:Bo},Dt.prototype.has=function(t){var e=this.__data__;return nt?e[t]!==Bo:D.call(e,t)},Dt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nt&&e===Bo?Yo:e,this},bt.prototype.clear=function(){this.__data__=[],this.size=0},bt.prototype.delete=function(t){var e=this.__data__;return!((t=Nt(e,t))<0)&&(t==e.length-1?e.pop():N.call(e,t,1),--this.size,!0)},bt.prototype.get=function(t){var e=this.__data__;return(t=Nt(e,t))<0?Bo:e[t][1]},bt.prototype.has=function(t){return-1<Nt(this.__data__,t)},bt.prototype.set=function(t,e){var n=this.__data__,i=Nt(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},At.prototype.clear=function(){this.size=0,this.__data__={hash:new Dt,map:new(X||bt),string:new Dt}},At.prototype.delete=function(t){return t=Un(this,t).delete(t),this.size-=t?1:0,t},At.prototype.get=function(t){return Un(this,t).get(t)},At.prototype.has=function(t){return Un(this,t).has(t)},At.prototype.set=function(t,e){var n=Un(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},It.prototype.add=It.prototype.push=function(t){return this.__data__.set(t,Yo),this},It.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.clear=function(){this.__data__=new bt,this.size=0},Mt.prototype.delete=function(t){var e=this.__data__,t=e.delete(t);return this.size=e.size,t},Mt.prototype.get=function(t){return this.__data__.get(t)},Mt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof bt){var i=n.__data__;if(!X||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new At(i)}return n.set(t,e),this.size=n.size,this};var Ut=ln(Zt),Bt=ln(Jt,!0);function Ht(t,i){var a=!0;return Ut(t,function(t,e,n){return a=!!i(t,e,n)}),a}function Yt(t,e,n){for(var i=-1,a=t.length;++i<a;){var o,s,r=t[i],l=e(r);null!=l&&(o===Bo?l==l&&!Fa(l):n(l,o))&&(o=l,s=r)}return s}function Qt(t,i){var a=[];return Ut(t,function(t,e,n){i(t,e,n)&&a.push(t)}),a}function Wt(t,e,n,i,a){var o=-1,s=t.length;for(n=n||Zn,a=a||[];++o<s;){var r=t[o];0<e&&n(r)?1<e?Wt(r,e-1,n,i,a):Tr(a,r):i||(a[a.length]=r)}return a}var Vt=cn(),Gt=cn(!0);function Zt(t,e){return t&&Vt(t,e,lo)}function Jt(t,e){return t&&Gt(t,e,lo)}function qt(e,t){return Mr(t,function(t){return ka(e[t])})}function Kt(t,e){for(var n=0,i=(e=Ge(e,t)).length;null!=t&&n<i;)t=t[hi(e[n++])];return n&&n==i?t:Bo}function Xt(t,e,n){e=e(t);return Aa(t)?e:Tr(e,n(t))}function $t(t){return null==t?t===Bo?"[object Undefined]":"[object Null]":j&&j in m(t)?function(t){var e=D.call(t,j),n=t[j];try{t[j]=Bo;var i=!0}catch(t){}var a=g.call(t);i&&(e?t[j]=n:delete t[j]);return a}(t):g.call(t)}function te(t,e){return e<t}function ee(t,e){return null!=t&&D.call(t,e)}function ne(t,e){return null!=t&&e in m(t)}function ie(t,e,n){for(var i=n?Cr:wr,a=t[0].length,o=t.length,s=o,r=M(o),l=1/0,c=[];s--;){var u=t[s];s&&e&&(u=_r(u,Hr(e))),l=V(u.length,l),r[s]=!n&&(e||120<=a&&120<=u.length)?new It(s&&u):Bo}var u=t[0],d=-1,f=r[0];t:for(;++d<a&&c.length<l;){var p=u[d],h=e?e(p):p,p=n||0!==p?p:0;if(!(f?Qr(f,h):i(c,h,n))){for(s=o;--s;){var m=r[s];if(!(m?Qr(m,h):i(t[s],h,n)))continue t}f&&f.push(h),c.push(p)}}return c}function ae(t,e,n){e=null==(t=ai(t,e=Ge(e,t)))?t:t[hi(Ti(e))];return null==e?Bo:vr(e,t,n)}function oe(t){return Ea(t)&&$t(t)==Jo}function se(t,e,n,i,a){return t===e||(null==t||null==e||!Ea(t)&&!Ea(e)?t!=t&&e!=e:function(t,e,n,i,a,o){var s=Aa(t),r=Aa(e),l=s?qo:Wn(t),c=r?qo:Wn(e),u=(l=l==Jo?as:l)==as,r=(c=c==Jo?as:c)==as,c=l==c;if(c&&Ca(t)){if(!Ca(e))return!1;u=!(s=!0)}if(c&&!u)return o=o||new Mt,s||Ua(t)?En(t,e,n,i,a,o):function(t,e,n,i,a,o,s){switch(n){case fs:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ds:return t.byteLength==e.byteLength&&o(new C(t),new C(e))?!0:!1;case Ko:case Xo:case is:return ya(+t,+e);case $o:return t.name==e.name&&t.message==e.message;case ss:case ls:return t==e+"";case ns:var r=Kr;case rs:var l=1&i;if(r=r||tl,t.size!=e.size&&!l)return!1;l=s.get(t);if(l)return l==e;i|=2,s.set(t,e);r=En(r(t),r(e),i,a,o,s);return s.delete(t),r;case cs:if(dt)return dt.call(t)==dt.call(e)}return!1}(t,e,l,n,i,a,o);if(!(1&n)){u=u&&D.call(t,"__wrapped__"),r=r&&D.call(e,"__wrapped__");if(u||r){u=u?t.value():t,r=r?e.value():e;return o=o||new Mt,a(u,r,n,i,o)}}return c&&(o=o||new Mt,function(t,e,n,i,a,o){var s=1&n,r=On(t),l=r.length,c=On(e).length;if(l!=c&&!s)return!1;var u=l;for(;u--;){var d=r[u];if(!(s?d in e:D.call(e,d)))return!1}var f=o.get(t),c=o.get(e);if(f&&c)return f==e&&c==t;var p=!0;o.set(t,e),o.set(e,t);var h=s;for(;++u<l;){d=r[u];var m,g=t[d],y=e[d];if(!((m=i?s?i(y,g,d,e,t,o):i(g,y,d,t,e,o):m)===Bo?g===y||a(g,y,n,i,o):m)){p=!1;break}h=h||"constructor"==d}p&&!h&&(f=t.constructor,c=e.constructor,f!=c&&"constructor"in t&&"constructor"in e&&!("function"==typeof f&&f instanceof f&&"function"==typeof c&&c instanceof c)&&(p=!1));return o.delete(t),o.delete(e),p}(t,e,n,i,a,o))}(t,e,n,i,se,a))}function re(t,e,n,i){var a=n.length,o=a,s=!i;if(null==t)return!o;for(t=m(t);a--;){var r=n[a];if(s&&r[2]?r[1]!==t[r[0]]:!(r[0]in t))return!1}for(;++a<o;){var l=(r=n[a])[0],c=t[l],u=r[1];if(s&&r[2]){if(c===Bo&&!(l in t))return!1}else{var d,f=new Mt;if(!((d=i?i(c,u,l,t,e,f):d)===Bo?se(u,c,3,i,f):d))return!1}}return!0}function le(t){return!(!Sa(t)||(e=t,c&&c in e))&&(ka(t)?A:Zs).test(mi(t));var e}function ce(t){return"function"==typeof t?t:null==t?Eo:"object"==typeof t?Aa(t)?me(t[0],t[1]):he(t):zo(t)}function ue(t){if(!ti(t))return Q(t);var e,n=[];for(e in m(t))D.call(t,e)&&"constructor"!=e&&n.push(e);return n}function de(t){if(!Sa(t))return function(t){var e=[];if(null!=t)for(var n in m(t))e.push(n);return e}(t);var e,n=ti(t),i=[];for(e in t)("constructor"!=e||!n&&D.call(t,e))&&i.push(e);return i}function fe(t,e){return t<e}function pe(t,i){var a=-1,o=Ma(t)?M(t.length):[];return Ut(t,function(t,e,n){o[++a]=i(t,e,n)}),o}function he(e){var n=Bn(e);return 1==n.length&&n[0][2]?ni(n[0][0],n[0][1]):function(t){return t===e||re(t,e,n)}}function me(n,i){return Kn(n)&&ei(i)?ni(hi(n),i):function(t){var e=io(t,n);return e===Bo&&e===i?ao(t,n):se(i,e,3)}}function ge(m,g,y,v,D){m!==g&&Vt(g,function(t,e){var n,i,a,o,s,r,l,c,u,d,f,p,h;D=D||new Mt,Sa(t)?(i=g,o=y,s=ge,r=v,l=D,f=oi(n=m,a=e),p=oi(i,a),(h=l.get(p))?kt(n,a,h):(c=r?r(f,p,a+"",n,i,l):Bo,(u=c===Bo)&&(d=Aa(p),h=!d&&Ca(p),i=!d&&!h&&Ua(p),c=p,d||h||i?c=Aa(f)?f:wa(f)?an(f):h?Ke(p,!(u=!1)):i?$e(p,!(u=!1)):[]:La(p)||ba(p)?ba(c=f)?c=Za(f):Sa(f)&&!ka(f)||(c=Gn(p)):u=!1),u&&(l.set(p,c),s(c,p,o,r,l),l.delete(p)),kt(n,a,c))):(c=v?v(oi(m,e),t,e+"",m,g,D):Bo,kt(m,e,c=c===Bo?t:c))},co)}function ye(t,e){var n=t.length;if(n)return Jn(e+=e<0?n:0,n)?t[e]:Bo}function ve(t,i,n){i=i.length?_r(i,function(e){return Aa(e)?function(t){return Kt(t,1===e.length?e[0]:e)}:e}):[Eo];var a=-1;return i=_r(i,Hr(Fn())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(pe(t,function(e,t,n){return{criteria:_r(i,function(t){return t(e)}),index:++a,value:e}}),function(t,e){return function(t,e,n){var i=-1,a=t.criteria,o=e.criteria,s=a.length,r=n.length;for(;++i<s;){var l=tn(a[i],o[i]);if(l){if(r<=i)return l;var c=n[i];return l*("desc"==c?-1:1)}}return t.index-e.index}(t,e,n)})}function De(t,e,n){for(var i=-1,a=e.length,o={};++i<a;){var s=e[i],r=Kt(t,s);n(r,s)&&Te(o,Ge(s,t),r)}return o}function be(t,e,n,i){var a=i?Or:jr,o=-1,s=e.length,r=t;for(t===e&&(e=an(e)),n&&(r=_r(t,Hr(n)));++o<s;)for(var l=0,c=e[o],u=n?n(c):c;-1<(l=a(r,u,l,i));)r!==t&&N.call(r,l,1),N.call(t,l,1);return t}function Ae(t,e){for(var n=t?e.length:0,i=n-1;n--;){var a,o=e[n];n!=i&&o===a||(Jn(a=o)?N.call(t,o,1):Fe(t,o))}return t}function Ie(t,e){return t+F(J()*(e-t+1))}function Me(t,e){var n="";if(!t||e<1||Wo<e)return n;for(;e%2&&(n+=t),(e=F(e/2))&&(t+=t),e;);return n}function we(t,e){return li(ii(t,e,Eo),t+"")}function Ce(t){return Ct(vo(t))}function _e(t,e){t=vo(t);return di(t,Lt(e,0,t.length))}function Te(t,e,n,i){if(!Sa(t))return t;for(var a=-1,o=(e=Ge(e,t)).length,s=o-1,r=t;null!=r&&++a<o;){var l,c=hi(e[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;a!=s&&(l=r[c],(u=i?i(l,c,r):Bo)===Bo&&(u=Sa(l)?l:Jn(e[a+1])?[]:{})),xt(r,c,u),r=r[c]}return t}var ke=it?function(t,e){return it.set(t,e),t}:Eo,xe=O?function(t,e){return O(t,"toString",{configurable:!0,enumerable:!1,value:So(e),writable:!0})}:Eo;function Ne(t){return di(vo(t))}function Se(t,e,n){var i=-1,a=t.length;(n=a<n?a:n)<0&&(n+=a),a=n<(e=e<0?a<-e?0:a+e:e)?0:n-e>>>0,e>>>=0;for(var o=M(a);++i<a;)o[i]=t[i+e];return o}function Ee(t,i){var a;return Ut(t,function(t,e,n){return!(a=i(t,e,n))}),!!a}function je(t,e,n){var i=0,a=null==t?i:t.length;if("number"==typeof e&&e==e&&a<=2147483647){for(;i<a;){var o=i+a>>>1,s=t[o];null!==s&&!Fa(s)&&(n?s<=e:s<e)?i=1+o:a=o}return a}return Oe(t,e,Eo,n)}function Oe(t,e,n,i){var a=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(e=n(e))!=e,r=null===e,l=Fa(e),c=e===Bo;a<o;){var u=F((a+o)/2),d=n(t[u]),f=d!==Bo,p=null===d,h=d==d,m=Fa(d),d=s?i||h:c?h&&(i||f):r?h&&f&&(i||!p):l?h&&f&&!p&&(i||!m):!p&&!m&&(i?d<=e:d<e);d?a=u+1:o=u}return V(o,4294967294)}function Le(t,e){for(var n=-1,i=t.length,a=0,o=[];++n<i;){var s,r=t[n],l=e?e(r):r;n&&ya(l,s)||(s=l,o[a++]=0===r?0:r)}return o}function ze(t){return"number"==typeof t?t:Fa(t)?Vo:+t}function Pe(t){if("string"==typeof t)return t;if(Aa(t))return _r(t,Pe)+"";if(Fa(t))return ft?ft.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Re(t,e,n){var i=-1,a=wr,o=t.length,s=!0,r=[],l=r;if(n)s=!1,a=Cr;else if(200<=o){var c=e?null:_n(t);if(c)return tl(c);s=!1,a=Qr,l=new It}else l=e?[]:r;t:for(;++i<o;){var u=t[i],d=e?e(u):u,u=n||0!==u?u:0;if(s&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue t;e&&l.push(d),r.push(u)}else a(l,d,n)||(l!==r&&l.push(d),r.push(u))}return r}function Fe(t,e){return null==(t=ai(t,e=Ge(e,t)))||delete t[hi(Ti(e))]}function Ue(t,e,n,i){return Te(t,e,n(Kt(t,e)),i)}function Be(t,e,n,i){for(var a=t.length,o=i?a:-1;(i?o--:++o<a)&&e(t[o],o,t););return n?Se(t,i?0:o,i?o+1:a):Se(t,i?o+1:0,i?a:o)}function He(t,e){var n=t;return kr(e,function(t,e){return e.func.apply(e.thisArg,Tr([t],e.args))},n=t instanceof vt?t.value():n)}function Ye(t,e,n){var i=t.length;if(i<2)return i?Re(t[0]):[];for(var a=-1,o=M(i);++a<i;)for(var s=t[a],r=-1;++r<i;)r!=a&&(o[a]=Ft(o[a]||s,t[r],e,n));return Re(Wt(o,1),e,n)}function Qe(t,e,n){for(var i=-1,a=t.length,o=e.length,s={};++i<a;){var r=i<o?e[i]:Bo;n(s,t[i],r)}return s}function We(t){return wa(t)?t:[]}function Ve(t){return"function"==typeof t?t:Eo}function Ge(t,e){return Aa(t)?t:Kn(t,e)?[t]:pi(Ja(t))}var Ze=we;function Je(t,e,n){var i=t.length;return n=n===Bo?i:n,!e&&i<=n?t:Se(t,e,n)}var qe=L||function(t){return ur.clearTimeout(t)};function Ke(t,e){if(e)return t.slice();e=t.length,e=_?_(e):new t.constructor(e);return t.copy(e),e}function Xe(t){var e=new t.constructor(t.byteLength);return new C(e).set(new C(t)),e}function $e(t,e){e=e?Xe(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function tn(t,e){if(t!==e){var n=t!==Bo,i=null===t,a=t==t,o=Fa(t),s=e!==Bo,r=null===e,l=e==e,c=Fa(e);if(!r&&!c&&!o&&e<t||o&&s&&l&&!r&&!c||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!c&&t<e||c&&n&&a&&!i&&!o||r&&n&&a||!s&&a||!l)return-1}return 0}function en(t,e,n,i){for(var a=-1,o=t.length,s=n.length,r=-1,l=e.length,c=W(o-s,0),u=M(l+c),d=!i;++r<l;)u[r]=e[r];for(;++a<s;)(d||a<o)&&(u[n[a]]=t[a]);for(;c--;)u[r++]=t[a++];return u}function nn(t,e,n,i){for(var a=-1,o=t.length,s=-1,r=n.length,l=-1,c=e.length,u=W(o-r,0),d=M(u+c),f=!i;++a<u;)d[a]=t[a];for(var p=a;++l<c;)d[p+l]=e[l];for(;++s<r;)(f||a<o)&&(d[p+n[s]]=t[a++]);return d}function an(t,e){var n=-1,i=t.length;for(e=e||M(i);++n<i;)e[n]=t[n];return e}function on(t,e,n,i){var a=!n;n=n||{};for(var o=-1,s=e.length;++o<s;){var r=e[o],l=i?i(n[r],t[r],r,n,t):Bo;(a?jt:xt)(n,r,l=l===Bo?t[r]:l)}return n}function sn(a,o){return function(t,e){var n=Aa(t)?Dr:St,i=o?o():{};return n(t,a,Fn(e,2),i)}}function rn(r){return we(function(t,e){var n=-1,i=e.length,a=1<i?e[i-1]:Bo,o=2<i?e[2]:Bo,a=3<r.length&&"function"==typeof a?(i--,a):Bo;for(o&&qn(e[0],e[1],o)&&(a=i<3?Bo:a,i=1),t=m(t);++n<i;){var s=e[n];s&&r(t,s,n,a)}return t})}function ln(o,s){return function(t,e){if(null==t)return t;if(!Ma(t))return o(t,e);for(var n=t.length,i=s?n:-1,a=m(t);(s?i--:++i<n)&&!1!==e(a[i],i,a););return t}}function cn(l){return function(t,e,n){for(var i=-1,a=m(t),o=n(t),s=o.length;s--;){var r=o[l?s:++i];if(!1===e(a[r],r,a))break}return t}}function un(i){return function(t){var e=qr(t=Ja(t))?nl(t):Bo,n=e?e[0]:t.charAt(0),t=e?Je(e,1).join(""):t.slice(1);return n[i]()+t}}function dn(e){return function(t){return kr(ko(Ao(t).replace(tr,"")),e,"")}}function fn(i){return function(){var t=arguments;switch(t.length){case 0:return new i;case 1:return new i(t[0]);case 2:return new i(t[0],t[1]);case 3:return new i(t[0],t[1],t[2]);case 4:return new i(t[0],t[1],t[2],t[3]);case 5:return new i(t[0],t[1],t[2],t[3],t[4]);case 6:return new i(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new i(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=ht(i.prototype),n=i.apply(e,t);return Sa(n)?n:e}}function pn(o,s,r){var l=fn(o);return function t(){for(var e=arguments.length,n=M(e),i=e,a=Rn(t);i--;)n[i]=arguments[i];a=e<3&&n[0]!==a&&n[e-1]!==a?[]:$r(n,a);return(e-=a.length)<r?wn(o,s,gn,t.placeholder,Bo,n,a,Bo,Bo,r-e):vr(this&&this!==ur&&this instanceof t?l:o,this,n)}}function hn(o){return function(t,e,n){var i,a=m(t);Ma(t)||(i=Fn(e,3),t=lo(t),e=function(t){return i(a[t],t,a)});n=o(t,e,n);return-1<n?a[i?t[n]:n]:Bo}}function mn(l){return jn(function(a){var o=a.length,t=o,e=yt.prototype.thru;for(l&&a.reverse();t--;){var n=a[t];if("function"!=typeof n)throw new v(Ho);e&&!r&&"wrapper"==Pn(n)&&(r=new yt([],!0))}for(t=r?t:o;++t<o;)var i=Pn(n=a[t]),s="wrapper"==i?zn(n):Bo,r=s&&Xn(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?r[Pn(s[0])].apply(r,s[3]):1==n.length&&Xn(n)?r[i]():r.thru(n);return function(){var t=arguments,e=t[0];if(r&&1==t.length&&Aa(e))return r.plant(e).value();for(var n=0,i=o?a[n].apply(this,t):e;++n<o;)i=a[n].call(this,i);return i}})}function gn(r,l,c,u,d,f,p,h,m,g){var y=128&l,v=1&l,D=2&l,b=24&l,A=512&l,I=D?Bo:fn(r);return function t(){for(var e,n=M(s=arguments.length),i=s;i--;)n[i]=arguments[i];if(b&&(e=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(n,o=Rn(t))),u&&(n=en(n,u,d,b)),f&&(n=nn(n,f,p,b)),s-=e,b&&s<g){var a=$r(n,o);return wn(r,l,gn,t.placeholder,c,n,a,h,m,g-s)}var o=v?c:this,a=D?o[r]:r,s=n.length;return h?n=function(t,e){for(var n=t.length,i=V(e.length,n),a=an(t);i--;){var o=e[i];t[i]=Jn(o,n)?a[o]:Bo}return t}(n,h):A&&1<s&&n.reverse(),y&&m<s&&(n.length=m),(a=this&&this!==ur&&this instanceof t?I||fn(a):a).apply(o,n)}}function yn(n,s){return function(t,e){return t=t,i=n,a=s(e),o={},Zt(t,function(t,e,n){i(o,a(t),e,n)}),o;var i,a,o}}function vn(i,a){return function(t,e){var n;if(t===Bo&&e===Bo)return a;if(t!==Bo&&(n=t),e!==Bo){if(n===Bo)return e;e="string"==typeof t||"string"==typeof e?(t=Pe(t),Pe(e)):(t=ze(t),ze(e)),n=i(t,e)}return n}}function Dn(i){return jn(function(t){return t=_r(t,Hr(Fn())),we(function(e){var n=this;return i(t,function(t){return vr(t,n,e)})})})}function bn(t,e){var n=(e=e===Bo?" ":Pe(e)).length;if(n<2)return n?Me(e,t):e;n=Me(e,R(t/el(e)));return qr(e)?Je(nl(n),0,t).join(""):n.slice(0,t)}function An(r,t,l,c){var u=1&t,d=fn(r);return function t(){for(var e=-1,n=arguments.length,i=-1,a=c.length,o=M(a+n),s=this&&this!==ur&&this instanceof t?d:r;++i<a;)o[i]=c[i];for(;n--;)o[i++]=arguments[++e];return vr(s,u?l:this,o)}}function In(i){return function(t,e,n){return n&&"number"!=typeof n&&qn(t,e,n)&&(e=n=Bo),t=Qa(t),e===Bo?(e=t,t=0):e=Qa(e),function(t,e,n,i){for(var a=-1,o=W(R((e-t)/(n||1)),0),s=M(o);o--;)s[i?o:++a]=t,t+=n;return s}(t,e,n=n===Bo?t<e?1:-1:Qa(n),i)}}function Mn(n){return function(t,e){return"string"==typeof t&&"string"==typeof e||(t=Ga(t),e=Ga(e)),n(t,e)}}function wn(t,e,n,i,a,o,s,r,l,c){var u=8&e;e|=u?32:64,4&(e&=~(u?64:32))||(e&=-4);c=[t,e,a,u?o:Bo,u?s:Bo,u?Bo:o,u?Bo:s,r,l,c],n=n.apply(Bo,c);return Xn(t)&&si(n,c),n.placeholder=i,ci(n,t,e)}function Cn(t){var i=a[t];return function(t,e){if(t=Ga(t),(e=null==e?0:V(Wa(e),292))&&H(t)){var n=(Ja(t)+"e").split("e");return+((n=(Ja(i(n[0]+"e"+(+n[1]+e)))+"e").split("e"))[0]+"e"+(+n[1]-e))}return i(t)}}var _n=tt&&1/tl(new tt([,-0]))[1]==1/0?function(t){return new tt(t)}:Lo;function Tn(o){return function(t){var e,n,i,a=Wn(t);return a==ns?Kr(t):a==rs?(a=t,e=-1,n=Array(a.size),a.forEach(function(t){n[++e]=[t,t]}),n):_r(o(i=t),function(t){return[t,i[t]]})}}function kn(t,e,n,i,a,o,s,r){var l=2&e;if(!l&&"function"!=typeof t)throw new v(Ho);var c,u,d=i?i.length:0;d||(e&=-97,i=a=Bo),s=s===Bo?s:W(Wa(s),0),r=r===Bo?r:Wa(r),d-=a?a.length:0,64&e&&(c=i,u=a,i=a=Bo);var f,p,h,m,g=l?Bo:zn(t),s=[t,e,n,i,a,c,u,o,s,r];g&&function(t,e){var n=t[1],i=e[1],a=n|i,o=a<131,s=128==i&&8==n||128==i&&256==n&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(!o&&!s)return;1&i&&(t[2]=e[2],a|=1&n?0:4);n=e[3];{var r;n&&(r=t[3],t[3]=r?en(r,n,e[4]):n,t[4]=r?$r(t[3],Qo):e[4])}(n=e[5])&&(r=t[5],t[5]=r?nn(r,n,e[6]):n,t[6]=r?$r(t[5],Qo):e[6]);(n=e[7])&&(t[7]=n);128&i&&(t[8]=null==t[8]?e[8]:V(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=a}(s,g),t=s[0],e=s[1],n=s[2],i=s[3],a=s[4],!(r=s[9]=s[9]===Bo?l?0:t.length:W(s[9]-d,0))&&24&e&&(e&=-25);n=e&&1!=e?8==e||16==e?pn(t,e,r):32!=e&&33!=e||a.length?gn.apply(Bo,s):An(t,e,n,i):(p=n,h=1&e,m=fn(f=t),function t(){return(this&&this!==ur&&this instanceof t?m:f).apply(h?p:this,arguments)});return ci((g?ke:si)(n,s),t,e)}function xn(t,e,n,i){return t===Bo||ya(t,h[n])&&!D.call(i,n)?e:t}function Nn(t,e,n,i,a,o){return Sa(t)&&Sa(e)&&(o.set(e,t),ge(t,e,Bo,Nn,o),o.delete(e)),t}function Sn(t){return La(t)?Bo:t}function En(t,e,n,i,a,o){var s=1&n,r=t.length,l=e.length;if(r!=l&&!(s&&r<l))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,f=2&n?new It:Bo;for(o.set(t,e),o.set(e,t);++u<r;){var p,h=t[u],m=e[u];if((p=i?s?i(m,h,u,e,t,o):i(h,m,u,t,e,o):p)!==Bo){if(p)continue;d=!1;break}if(f){if(!Nr(e,function(t,e){return!Qr(f,e)&&(h===t||a(h,t,n,i,o))&&f.push(e)})){d=!1;break}}else if(h!==m&&!a(h,m,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function jn(t){return li(ii(t,Bo,Ii),t+"")}function On(t){return Xt(t,lo,Yn)}function Ln(t){return Xt(t,co,Qn)}var zn=it?function(t){return it.get(t)}:Lo;function Pn(t){for(var e=t.name+"",n=at[e],i=D.call(at,e)?n.length:0;i--;){var a=n[i],o=a.func;if(null==o||o==t)return a.name}return e}function Rn(t){return(D.call(pt,"placeholder")?pt:t).placeholder}function Fn(){var t=(t=pt.iteratee||jo)===jo?ce:t;return arguments.length?t(arguments[0],arguments[1]):t}function Un(t,e){var n,i=t.__data__;return("string"==(t=typeof(n=e))||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Bn(t){for(var e=lo(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,ei(a)]}return e}function Hn(t,e){e=e,e=null==(t=t)?Bo:t[e];return le(e)?e:Bo}var Yn=U?function(e){return null==e?[]:(e=m(e),Mr(U(e),function(t){return x.call(e,t)}))}:Po,Qn=U?function(t){for(var e=[];t;)Tr(e,Yn(t)),t=T(t);return e}:Po,Wn=$t;function Vn(t,e,n){for(var i=-1,a=(e=Ge(e,t)).length,o=!1;++i<a;){var s=hi(e[i]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++i!=a?o:!!(a=null==t?0:t.length)&&Na(a)&&Jn(s,a)&&(Aa(t)||ba(t))}function Gn(t){return"function"!=typeof t.constructor||ti(t)?{}:ht(T(t))}function Zn(t){return Aa(t)||ba(t)||!!(S&&t&&t[S])}function Jn(t,e){var n=typeof t;return!!(e=null==e?Wo:e)&&("number"==n||"symbol"!=n&&qs.test(t))&&-1<t&&t%1==0&&t<e}function qn(t,e,n){if(Sa(n)){var i=typeof e;return("number"==i?Ma(n)&&Jn(e,n.length):"string"==i&&e in n)&&ya(n[e],t)}}function Kn(t,e){if(!Aa(t)){var n=typeof t;return"number"==n||"symbol"==n||"boolean"==n||null==t||Fa(t)||(js.test(t)||!Es.test(t)||null!=e&&t in m(e))}}function Xn(t){var e=Pn(t),n=pt[e];if("function"==typeof n&&e in vt.prototype){if(t===n)return 1;n=zn(n);return n&&t===n[0]}}(K&&Wn(new K(new ArrayBuffer(1)))!=fs||X&&Wn(new X)!=ns||$&&Wn($.resolve())!=os||tt&&Wn(new tt)!=rs||et&&Wn(new et)!=us)&&(Wn=function(t){var e=$t(t),t=e==as?t.constructor:Bo,t=t?mi(t):"";if(t)switch(t){case ot:return fs;case st:return ns;case rt:return os;case lt:return rs;case ct:return us}return e});var $n=s?ka:Ro;function ti(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||h)}function ei(t){return t==t&&!Sa(t)}function ni(e,n){return function(t){return null!=t&&(t[e]===n&&(n!==Bo||e in m(t)))}}function ii(o,s,r){return s=W(s===Bo?o.length-1:s,0),function(){for(var t=arguments,e=-1,n=W(t.length-s,0),i=M(n);++e<n;)i[e]=t[s+e];for(var e=-1,a=M(s+1);++e<s;)a[e]=t[e];return a[s]=r(i),vr(o,this,a)}}function ai(t,e){return e.length<2?t:Kt(t,Se(e,0,-1))}function oi(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var si=ui(ke),ri=P||function(t,e){return ur.setTimeout(t,e)},li=ui(xe);function ci(t,e,n){var i,a,e=e+"";return li(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(1<n?"& ":"")+e[i],e=e.join(2<n?", ":" "),t.replace(Rs,"{\n/* [wrapped with "+e+"] */\n")}(e,(i=(e=(e=e).match(Fs))?e[1].split(Us):[],a=n,br(Zo,function(t){var e="_."+t[0];a&t[1]&&!wr(i,e)&&i.push(e)}),i.sort())))}function ui(n){var i=0,a=0;return function(){var t=G(),e=16-(t-a);if(a=t,0<e){if(800<=++i)return arguments[0]}else i=0;return n.apply(Bo,arguments)}}function di(t,e){var n=-1,i=t.length,a=i-1;for(e=e===Bo?i:e;++n<e;){var o=Ie(n,a),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}var fi,pi=(fi=(Fo=da(Fo=function(t){var a=[];return 46===t.charCodeAt(0)&&a.push(""),t.replace(Os,function(t,e,n,i){a.push(n?i.replace(Ys,"$1"):e||t)}),a},function(t){return 500===fi.size&&fi.clear(),t})).cache,Fo);function hi(t){if("string"==typeof t||Fa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function mi(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function gi(t){if(t instanceof vt)return t.clone();var e=new yt(t.__wrapped__,t.__chain__);return e.__actions__=an(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var yi=we(function(t,e){return wa(t)?Ft(t,Wt(e,1,wa,!0)):[]}),vi=we(function(t,e){var n=Ti(e);return wa(n)&&(n=Bo),wa(t)?Ft(t,Wt(e,1,wa,!0),Fn(n,2)):[]}),Di=we(function(t,e){var n=Ti(e);return wa(n)&&(n=Bo),wa(t)?Ft(t,Wt(e,1,wa,!0),Bo,n):[]});function bi(t,e,n){var i=null==t?0:t.length;if(!i)return-1;n=null==n?0:Wa(n);return n<0&&(n=W(i+n,0)),Er(t,Fn(e,3),n)}function Ai(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var a=i-1;return n!==Bo&&(a=Wa(n),a=n<0?W(i+a,0):V(a,i-1)),Er(t,Fn(e,3),a,!0)}function Ii(t){return(null==t?0:t.length)?Wt(t,1):[]}function Mi(t){return t&&t.length?t[0]:Bo}var wi=we(function(t){var e=_r(t,We);return e.length&&e[0]===t[0]?ie(e):[]}),Ci=we(function(t){var e=Ti(t),n=_r(t,We);return e===Ti(n)?e=Bo:n.pop(),n.length&&n[0]===t[0]?ie(n,Fn(e,2)):[]}),_i=we(function(t){var e=Ti(t),n=_r(t,We);return(e="function"==typeof e?e:Bo)&&n.pop(),n.length&&n[0]===t[0]?ie(n,Bo,e):[]});function Ti(t){var e=null==t?0:t.length;return e?t[e-1]:Bo}var ki=we(xi);function xi(t,e){return t&&t.length&&e&&e.length?be(t,e):t}var Ni=jn(function(t,e){var n=null==t?0:t.length,i=Ot(t,e);return Ae(t,_r(e,function(t){return Jn(t,n)?+t:t}).sort(tn)),i});function Si(t){return null==t?t:q.call(t)}var Ei=we(function(t){return Re(Wt(t,1,wa,!0))}),ji=we(function(t){var e=Ti(t);return wa(e)&&(e=Bo),Re(Wt(t,1,wa,!0),Fn(e,2))}),Oi=we(function(t){var e="function"==typeof(e=Ti(t))?e:Bo;return Re(Wt(t,1,wa,!0),Bo,e)});function Li(e){if(!e||!e.length)return[];var n=0;return e=Mr(e,function(t){return wa(t)&&(n=W(t.length,n),1)}),Ur(n,function(t){return _r(e,Pr(t))})}function zi(t,e){if(!t||!t.length)return[];t=Li(t);return null==e?t:_r(t,function(t){return vr(e,Bo,t)})}var Pi=we(function(t,e){return wa(t)?Ft(t,e):[]}),Ri=we(function(t){return Ye(Mr(t,wa))}),Fi=we(function(t){var e=Ti(t);return wa(e)&&(e=Bo),Ye(Mr(t,wa),Fn(e,2))}),Ui=we(function(t){var e="function"==typeof(e=Ti(t))?e:Bo;return Ye(Mr(t,wa),Bo,e)}),Bi=we(Li);var Hi=we(function(t){var e=t.length,e="function"==typeof(e=1<e?t[e-1]:Bo)?(t.pop(),e):Bo;return zi(t,e)});function Yi(t){t=pt(t);return t.__chain__=!0,t}function Qi(t,e){return e(t)}var Wi=jn(function(e){function t(t){return Ot(t,e)}var n=e.length,i=n?e[0]:0,a=this.__wrapped__;return!(1<n||this.__actions__.length)&&a instanceof vt&&Jn(i)?((a=a.slice(i,+i+(n?1:0))).__actions__.push({func:Qi,args:[t],thisArg:Bo}),new yt(a,this.__chain__).thru(function(t){return n&&!t.length&&t.push(Bo),t})):this.thru(t)});var Vi=sn(function(t,e,n){D.call(t,n)?++t[n]:jt(t,n,1)});var Gi=hn(bi),Zi=hn(Ai);function Ji(t,e){return(Aa(t)?br:Ut)(t,Fn(e,3))}function qi(t,e){return(Aa(t)?Ar:Bt)(t,Fn(e,3))}var Ki=sn(function(t,e,n){D.call(t,n)?t[n].push(e):jt(t,n,[e])});var Xi=we(function(t,e,n){var i=-1,a="function"==typeof e,o=Ma(t)?M(t.length):[];return Ut(t,function(t){o[++i]=a?vr(e,t,n):ae(t,e,n)}),o}),$i=sn(function(t,e,n){jt(t,n,e)});function ta(t,e){return(Aa(t)?_r:pe)(t,Fn(e,3))}var ea=sn(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var na=we(function(t,e){if(null==t)return[];var n=e.length;return 1<n&&qn(t,e[0],e[1])?e=[]:2<n&&qn(e[0],e[1],e[2])&&(e=[e[0]]),ve(t,Wt(e,1),[])}),ia=z||function(){return ur.Date.now()};function aa(t,e,n){return e=n?Bo:e,e=t&&null==e?t.length:e,kn(t,128,Bo,Bo,Bo,Bo,e)}function oa(t,e){var n;if("function"!=typeof e)throw new v(Ho);return t=Wa(t),function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=Bo),n}}var sa=we(function(t,e,n){var i,a=1;return n.length&&(i=$r(n,Rn(sa)),a|=32),kn(t,a,e,n,i)}),ra=we(function(t,e,n){var i,a=3;return n.length&&(i=$r(n,Rn(ra)),a|=32),kn(e,a,t,n,i)});function la(i,n,t){var a,o,s,r,l,c,u=0,d=!1,f=!1,e=!0;if("function"!=typeof i)throw new v(Ho);function p(t){var e=a,n=o;return a=o=Bo,u=t,r=i.apply(n,e)}function h(t){var e=t-c;return c===Bo||n<=e||e<0||f&&s<=t-u}function m(){var t,e=ia();if(h(e))return g(e);l=ri(m,(e=n-((t=e)-c),f?V(e,s-(t-u)):e))}function g(t){return l=Bo,e&&a?p(t):(a=o=Bo,r)}function y(){var t=ia(),e=h(t);if(a=arguments,o=this,c=t,e){if(l===Bo)return u=e=c,l=ri(m,n),d?p(e):r;if(f)return qe(l),l=ri(m,n),p(c)}return l===Bo&&(l=ri(m,n)),r}return n=Ga(n)||0,Sa(t)&&(d=!!t.leading,f="maxWait"in t,s=f?W(Ga(t.maxWait)||0,n):s,e="trailing"in t?!!t.trailing:e),y.cancel=function(){l!==Bo&&qe(l),u=0,a=c=o=l=Bo},y.flush=function(){return l===Bo?r:g(ia())},y}var ca=we(function(t,e){return Rt(t,1,e)}),ua=we(function(t,e,n){return Rt(t,Ga(e)||0,n)});function da(i,a){if("function"!=typeof i||null!=a&&"function"!=typeof a)throw new v(Ho);function o(){var t=arguments,e=a?a.apply(this,t):t[0],n=o.cache;return n.has(e)?n.get(e):(t=i.apply(this,t),o.cache=n.set(e,t)||n,t)}return o.cache=new(da.Cache||At),o}function fa(e){if("function"!=typeof e)throw new v(Ho);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}da.Cache=At;var pa=Ze(function(i,a){var o=(a=1==a.length&&Aa(a[0])?_r(a[0],Hr(Fn())):_r(Wt(a,1),Hr(Fn()))).length;return we(function(t){for(var e=-1,n=V(t.length,o);++e<n;)t[e]=a[e].call(this,t[e]);return vr(i,this,t)})}),ha=we(function(t,e){var n=$r(e,Rn(ha));return kn(t,32,Bo,e,n)}),ma=we(function(t,e){var n=$r(e,Rn(ma));return kn(t,64,Bo,e,n)}),ga=jn(function(t,e){return kn(t,256,Bo,Bo,Bo,e)});function ya(t,e){return t===e||t!=t&&e!=e}var va=Mn(te),Da=Mn(function(t,e){return e<=t}),ba=oe(function(){return arguments}())?oe:function(t){return Ea(t)&&D.call(t,"callee")&&!x.call(t,"callee")},Aa=M.isArray,Ia=fr?Hr(fr):function(t){return Ea(t)&&$t(t)==ds};function Ma(t){return null!=t&&Na(t.length)&&!ka(t)}function wa(t){return Ea(t)&&Ma(t)}var Ca=B||Ro,_a=pr?Hr(pr):function(t){return Ea(t)&&$t(t)==Xo};function Ta(t){if(!Ea(t))return!1;var e=$t(t);return e==$o||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!La(t)}function ka(t){if(!Sa(t))return!1;t=$t(t);return t==ts||t==es||"[object AsyncFunction]"==t||"[object Proxy]"==t}function xa(t){return"number"==typeof t&&t==Wa(t)}function Na(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=Wo}function Sa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ea(t){return null!=t&&"object"==typeof t}var ja=hr?Hr(hr):function(t){return Ea(t)&&Wn(t)==ns};function Oa(t){return"number"==typeof t||Ea(t)&&$t(t)==is}function La(t){if(!Ea(t)||$t(t)!=as)return!1;t=T(t);if(null===t)return!0;t=D.call(t,"constructor")&&t.constructor;return"function"==typeof t&&t instanceof t&&r.call(t)==y}var za=mr?Hr(mr):function(t){return Ea(t)&&$t(t)==ss};var Pa=gr?Hr(gr):function(t){return Ea(t)&&Wn(t)==rs};function Ra(t){return"string"==typeof t||!Aa(t)&&Ea(t)&&$t(t)==ls}function Fa(t){return"symbol"==typeof t||Ea(t)&&$t(t)==cs}var Ua=yr?Hr(yr):function(t){return Ea(t)&&Na(t.length)&&!!sr[$t(t)]};var Ba=Mn(fe),Ha=Mn(function(t,e){return t<=e});function Ya(t){if(!t)return[];if(Ma(t))return(Ra(t)?nl:an)(t);if(E&&t[E])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[E]());var e=Wn(t);return(e==ns?Kr:e==rs?tl:vo)(t)}function Qa(t){return t?(t=Ga(t))!==1/0&&t!==-1/0?t==t?t:0:17976931348623157e292*(t<0?-1:1):0===t?t:0}function Wa(t){var e=Qa(t),t=e%1;return e==e?t?e-t:e:0}function Va(t){return t?Lt(Wa(t),0,Go):0}function Ga(t){if("number"==typeof t)return t;if(Fa(t))return Vo;if("string"!=typeof(t=Sa(t)?Sa(e="function"==typeof t.valueOf?t.valueOf():t)?e+"":e:t))return 0===t?t:+t;t=Br(t);var e=Gs.test(t);return e||Js.test(t)?cr(t.slice(2),e?2:8):Vs.test(t)?Vo:+t}function Za(t){return on(t,co(t))}function Ja(t){return null==t?"":Pe(t)}var qa=rn(function(t,e){if(ti(e)||Ma(e))on(e,lo(e),t);else for(var n in e)D.call(e,n)&&xt(t,n,e[n])}),Ka=rn(function(t,e){on(e,co(e),t)}),Xa=rn(function(t,e,n,i){on(e,co(e),t,i)}),$a=rn(function(t,e,n,i){on(e,lo(e),t,i)}),to=jn(Ot);var eo=we(function(t,e){t=m(t);var n=-1,i=e.length,a=2<i?e[2]:Bo;for(a&&qn(e[0],e[1],a)&&(i=1);++n<i;)for(var o=e[n],s=co(o),r=-1,l=s.length;++r<l;){var c=s[r],u=t[c];(u===Bo||ya(u,h[c])&&!D.call(t,c))&&(t[c]=o[c])}return t}),no=we(function(t){return t.push(Bo,Nn),vr(fo,Bo,t)});function io(t,e,n){e=null==t?Bo:Kt(t,e);return e===Bo?n:e}function ao(t,e){return null!=t&&Vn(t,e,ne)}var oo=yn(function(t,e,n){t[e=null!=e&&"function"!=typeof e.toString?g.call(e):e]=n},So(Eo)),so=yn(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=g.call(e)),D.call(t,e)?t[e].push(n):t[e]=[n]},Fn),ro=we(ae);function lo(t){return(Ma(t)?wt:ue)(t)}function co(t){return Ma(t)?wt(t,!0):de(t)}var uo=rn(function(t,e,n){ge(t,e,n)}),fo=rn(function(t,e,n,i){ge(t,e,n,i)}),po=jn(function(e,t){var n={};if(null==e)return n;var i=!1;t=_r(t,function(t){return t=Ge(t,e),i=i||1<t.length,t}),on(e,Ln(e),n),i&&(n=zt(n,7,Sn));for(var a=t.length;a--;)Fe(n,t[a]);return n});var ho=jn(function(t,e){return null==t?{}:De(n=t,e,function(t,e){return ao(n,e)});var n});function mo(t,n){if(null==t)return{};var e=_r(Ln(t),function(t){return[t]});return n=Fn(n),De(t,e,function(t,e){return n(t,e[0])})}var go=Tn(lo),yo=Tn(co);function vo(t){return null==t?[]:Yr(t,lo(t))}var Do=dn(function(t,e,n){return e=e.toLowerCase(),t+(n?bo(e):e)});function bo(t){return To(Ja(t).toLowerCase())}function Ao(t){return(t=Ja(t))&&t.replace(Ks,Gr).replace(er,"")}var Io=dn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Mo=dn(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),wo=un("toLowerCase");var Co=dn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var _o=dn(function(t,e,n){return t+(n?" ":"")+To(e)});var i=dn(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),To=un("toUpperCase");function ko(t,e,n){return t=Ja(t),(e=n?Bo:e)===Bo?(n=t,ir.test(n)?t.match(nr)||[]:t.match(Bs)||[]):t.match(e)||[]}var xo=we(function(t,e){try{return vr(t,Bo,e)}catch(t){return Ta(t)?t:new d(t)}}),No=jn(function(e,t){return br(t,function(t){t=hi(t),jt(e,t,sa(e[t],e))}),e});function So(t){return function(){return t}}I=mn(),n=mn(!0);function Eo(t){return t}function jo(t){return ce("function"==typeof t?t:zt(t,1))}e=we(function(e,n){return function(t){return ae(t,e,n)}}),w=we(function(e,n){return function(t){return ae(e,t,n)}});function Oo(i,e,t){var n=lo(e),a=qt(e,n);null!=t||Sa(e)&&(a.length||!n.length)||(t=e,e=i,i=this,a=qt(e,lo(e)));var o=!(Sa(t)&&"chain"in t&&!t.chain),s=ka(i);return br(a,function(t){var n=e[t];i[t]=n,s&&(i.prototype[t]=function(){var t=this.__chain__;if(o||t){var e=i(this.__wrapped__);return(e.__actions__=an(this.__actions__)).push({func:n,args:arguments,thisArg:i}),e.__chain__=t,e}return n.apply(i,Tr([this.value()],arguments))})}),i}function Lo(){}ut=Dn(_r),L=Dn(Ir),K=Dn(Nr);function zo(t){return Kn(t)?Pr(hi(t)):(e=t,function(t){return Kt(t,e)});var e}$=In(),et=In(!0);function Po(){return[]}function Ro(){return!1}var s=vn(function(t,e){return t+e},0),P=Cn("ceil"),xe=vn(function(t,e){return t/e},1),Fo=Cn("floor");var Uo,z=vn(function(t,e){return t*e},1),Ze=Cn("round"),B=vn(function(t,e){return t-e},0);return pt.after=function(t,e){if("function"!=typeof e)throw new v(Ho);return t=Wa(t),function(){if(--t<1)return e.apply(this,arguments)}},pt.ary=aa,pt.assign=qa,pt.assignIn=Ka,pt.assignInWith=Xa,pt.assignWith=$a,pt.at=to,pt.before=oa,pt.bind=sa,pt.bindAll=No,pt.bindKey=ra,pt.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Aa(t)?t:[t]},pt.chain=Yi,pt.chunk=function(t,e,n){e=(n?qn(t,e,n):e===Bo)?1:W(Wa(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,o=0,s=M(R(i/e));a<i;)s[o++]=Se(t,a,a+=e);return s},pt.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,a=[];++e<n;){var o=t[e];o&&(a[i++]=o)}return a},pt.concat=function(){var t=arguments.length;if(!t)return[];for(var e=M(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Tr(Aa(n)?an(n):[n],Wt(e,1))},pt.cond=function(i){var a=null==i?0:i.length,e=Fn();return i=a?_r(i,function(t){if("function"!=typeof t[1])throw new v(Ho);return[e(t[0]),t[1]]}):[],we(function(t){for(var e=-1;++e<a;){var n=i[e];if(vr(n[0],this,t))return vr(n[1],this,t)}})},pt.conforms=function(t){return e=zt(t,1),n=lo(e),function(t){return Pt(t,e,n)};var e,n},pt.constant=So,pt.countBy=Vi,pt.create=function(t,e){return t=ht(t),null==e?t:Et(t,e)},pt.curry=function t(e,n,i){n=kn(e,8,Bo,Bo,Bo,Bo,Bo,n=i?Bo:n);return n.placeholder=t.placeholder,n},pt.curryRight=function t(e,n,i){n=kn(e,16,Bo,Bo,Bo,Bo,Bo,n=i?Bo:n);return n.placeholder=t.placeholder,n},pt.debounce=la,pt.defaults=eo,pt.defaultsDeep=no,pt.defer=ca,pt.delay=ua,pt.difference=yi,pt.differenceBy=vi,pt.differenceWith=Di,pt.drop=function(t,e,n){var i=null==t?0:t.length;return i?Se(t,(e=n||e===Bo?1:Wa(e))<0?0:e,i):[]},pt.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?Se(t,0,(e=i-(e=n||e===Bo?1:Wa(e)))<0?0:e):[]},pt.dropRightWhile=function(t,e){return t&&t.length?Be(t,Fn(e,3),!0,!0):[]},pt.dropWhile=function(t,e){return t&&t.length?Be(t,Fn(e,3),!0):[]},pt.fill=function(t,e,n,i){var a=null==t?0:t.length;return a?(n&&"number"!=typeof n&&qn(t,e,n)&&(n=0,i=a),function(t,e,n,i){var a=t.length;for((n=Wa(n))<0&&(n=a<-n?0:a+n),(i=i===Bo||a<i?a:Wa(i))<0&&(i+=a),i=i<n?0:Va(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},pt.filter=function(t,e){return(Aa(t)?Mr:Qt)(t,Fn(e,3))},pt.flatMap=function(t,e){return Wt(ta(t,e),1)},pt.flatMapDeep=function(t,e){return Wt(ta(t,e),1/0)},pt.flatMapDepth=function(t,e,n){return n=n===Bo?1:Wa(n),Wt(ta(t,e),n)},pt.flatten=Ii,pt.flattenDeep=function(t){return(null==t?0:t.length)?Wt(t,1/0):[]},pt.flattenDepth=function(t,e){return(null==t?0:t.length)?Wt(t,e=e===Bo?1:Wa(e)):[]},pt.flip=function(t){return kn(t,512)},pt.flow=I,pt.flowRight=n,pt.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var a=t[e];i[a[0]]=a[1]}return i},pt.functions=function(t){return null==t?[]:qt(t,lo(t))},pt.functionsIn=function(t){return null==t?[]:qt(t,co(t))},pt.groupBy=Ki,pt.initial=function(t){return(null==t?0:t.length)?Se(t,0,-1):[]},pt.intersection=wi,pt.intersectionBy=Ci,pt.intersectionWith=_i,pt.invert=oo,pt.invertBy=so,pt.invokeMap=Xi,pt.iteratee=jo,pt.keyBy=$i,pt.keys=lo,pt.keysIn=co,pt.map=ta,pt.mapKeys=function(t,i){var a={};return i=Fn(i,3),Zt(t,function(t,e,n){jt(a,i(t,e,n),t)}),a},pt.mapValues=function(t,i){var a={};return i=Fn(i,3),Zt(t,function(t,e,n){jt(a,e,i(t,e,n))}),a},pt.matches=function(t){return he(zt(t,1))},pt.matchesProperty=function(t,e){return me(t,zt(e,1))},pt.memoize=da,pt.merge=uo,pt.mergeWith=fo,pt.method=e,pt.methodOf=w,pt.mixin=Oo,pt.negate=fa,pt.nthArg=function(e){return e=Wa(e),we(function(t){return ye(t,e)})},pt.omit=po,pt.omitBy=function(t,e){return mo(t,fa(Fn(e)))},pt.once=function(t){return oa(2,t)},pt.orderBy=function(t,e,n,i){return null==t?[]:ve(t,e=!Aa(e)?null==e?[]:[e]:e,n=!Aa(n=i?Bo:n)?null==n?[]:[n]:n)},pt.over=ut,pt.overArgs=pa,pt.overEvery=L,pt.overSome=K,pt.partial=ha,pt.partialRight=ma,pt.partition=ea,pt.pick=ho,pt.pickBy=mo,pt.property=zo,pt.propertyOf=function(e){return function(t){return null==e?Bo:Kt(e,t)}},pt.pull=ki,pt.pullAll=xi,pt.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?be(t,e,Fn(n,2)):t},pt.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?be(t,e,Bo,n):t},pt.pullAt=Ni,pt.range=$,pt.rangeRight=et,pt.rearg=ga,pt.reject=function(t,e){return(Aa(t)?Mr:Qt)(t,fa(Fn(e,3)))},pt.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,a=[],o=t.length;for(e=Fn(e,3);++i<o;){var s=t[i];e(s,i,t)&&(n.push(s),a.push(i))}return Ae(t,a),n},pt.rest=function(t,e){if("function"!=typeof t)throw new v(Ho);return we(t,e=e===Bo?e:Wa(e))},pt.reverse=Si,pt.sampleSize=function(t,e,n){return e=(n?qn(t,e,n):e===Bo)?1:Wa(e),(Aa(t)?_t:_e)(t,e)},pt.set=function(t,e,n){return null==t?t:Te(t,e,n)},pt.setWith=function(t,e,n,i){return i="function"==typeof i?i:Bo,null==t?t:Te(t,e,n,i)},pt.shuffle=function(t){return(Aa(t)?Tt:Ne)(t)},pt.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n=n&&"number"!=typeof n&&qn(t,e,n)?(e=0,i):(e=null==e?0:Wa(e),n===Bo?i:Wa(n)),Se(t,e,n)):[]},pt.sortBy=na,pt.sortedUniq=function(t){return t&&t.length?Le(t):[]},pt.sortedUniqBy=function(t,e){return t&&t.length?Le(t,Fn(e,2)):[]},pt.split=function(t,e,n){return n&&"number"!=typeof n&&qn(t,e,n)&&(e=n=Bo),(n=n===Bo?Go:n>>>0)?(t=Ja(t))&&("string"==typeof e||null!=e&&!za(e))&&!(e=Pe(e))&&qr(t)?Je(nl(t),0,n):t.split(e,n):[]},pt.spread=function(n,i){if("function"!=typeof n)throw new v(Ho);return i=null==i?0:W(Wa(i),0),we(function(t){var e=t[i],t=Je(t,0,i);return e&&Tr(t,e),vr(n,this,t)})},pt.tail=function(t){var e=null==t?0:t.length;return e?Se(t,1,e):[]},pt.take=function(t,e,n){return t&&t.length?Se(t,0,(e=n||e===Bo?1:Wa(e))<0?0:e):[]},pt.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Se(t,(e=i-(e=n||e===Bo?1:Wa(e)))<0?0:e,i):[]},pt.takeRightWhile=function(t,e){return t&&t.length?Be(t,Fn(e,3),!1,!0):[]},pt.takeWhile=function(t,e){return t&&t.length?Be(t,Fn(e,3)):[]},pt.tap=function(t,e){return e(t),t},pt.throttle=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new v(Ho);return Sa(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),la(t,e,{leading:i,maxWait:e,trailing:a})},pt.thru=Qi,pt.toArray=Ya,pt.toPairs=go,pt.toPairsIn=yo,pt.toPath=function(t){return Aa(t)?_r(t,hi):Fa(t)?[t]:an(pi(Ja(t)))},pt.toPlainObject=Za,pt.transform=function(t,i,a){var e,n=Aa(t),o=n||Ca(t)||Ua(t);return i=Fn(i,4),null==a&&(e=t&&t.constructor,a=o?n?new e:[]:Sa(t)&&ka(e)?ht(T(t)):{}),(o?br:Zt)(t,function(t,e,n){return i(a,t,e,n)}),a},pt.unary=function(t){return aa(t,1)},pt.union=Ei,pt.unionBy=ji,pt.unionWith=Oi,pt.uniq=function(t){return t&&t.length?Re(t):[]},pt.uniqBy=function(t,e){return t&&t.length?Re(t,Fn(e,2)):[]},pt.uniqWith=function(t,e){return e="function"==typeof e?e:Bo,t&&t.length?Re(t,Bo,e):[]},pt.unset=function(t,e){return null==t||Fe(t,e)},pt.unzip=Li,pt.unzipWith=zi,pt.update=function(t,e,n){return null==t?t:Ue(t,e,Ve(n))},pt.updateWith=function(t,e,n,i){return i="function"==typeof i?i:Bo,null==t?t:Ue(t,e,Ve(n),i)},pt.values=vo,pt.valuesIn=function(t){return null==t?[]:Yr(t,co(t))},pt.without=Pi,pt.words=ko,pt.wrap=function(t,e){return ha(Ve(e),t)},pt.xor=Ri,pt.xorBy=Fi,pt.xorWith=Ui,pt.zip=Bi,pt.zipObject=function(t,e){return Qe(t||[],e||[],xt)},pt.zipObjectDeep=function(t,e){return Qe(t||[],e||[],Te)},pt.zipWith=Hi,pt.entries=go,pt.entriesIn=yo,pt.extend=Ka,pt.extendWith=Xa,Oo(pt,pt),pt.add=s,pt.attempt=xo,pt.camelCase=Do,pt.capitalize=bo,pt.ceil=P,pt.clamp=function(t,e,n){return n===Bo&&(n=e,e=Bo),n!==Bo&&(n=(n=Ga(n))==n?n:0),e!==Bo&&(e=(e=Ga(e))==e?e:0),Lt(Ga(t),e,n)},pt.clone=function(t){return zt(t,4)},pt.cloneDeep=function(t){return zt(t,5)},pt.cloneDeepWith=function(t,e){return zt(t,5,e="function"==typeof e?e:Bo)},pt.cloneWith=function(t,e){return zt(t,4,e="function"==typeof e?e:Bo)},pt.conformsTo=function(t,e){return null==e||Pt(t,e,lo(e))},pt.deburr=Ao,pt.defaultTo=function(t,e){return null==t||t!=t?e:t},pt.divide=xe,pt.endsWith=function(t,e,n){t=Ja(t),e=Pe(e);var i=t.length,i=n=n===Bo?i:Lt(Wa(n),0,i);return 0<=(n-=e.length)&&t.slice(n,i)==e},pt.eq=ya,pt.escape=function(t){return(t=Ja(t))&&ks.test(t)?t.replace(_s,Zr):t},pt.escapeRegExp=function(t){return(t=Ja(t))&&zs.test(t)?t.replace(Ls,"\\$&"):t},pt.every=function(t,e,n){return(Aa(t)?Ir:Ht)(t,Fn(e=n&&qn(t,e,n)?Bo:e,3))},pt.find=Gi,pt.findIndex=bi,pt.findKey=function(t,e){return Sr(t,Fn(e,3),Zt)},pt.findLast=Zi,pt.findLastIndex=Ai,pt.findLastKey=function(t,e){return Sr(t,Fn(e,3),Jt)},pt.floor=Fo,pt.forEach=Ji,pt.forEachRight=qi,pt.forIn=function(t,e){return null==t?t:Vt(t,Fn(e,3),co)},pt.forInRight=function(t,e){return null==t?t:Gt(t,Fn(e,3),co)},pt.forOwn=function(t,e){return t&&Zt(t,Fn(e,3))},pt.forOwnRight=function(t,e){return t&&Jt(t,Fn(e,3))},pt.get=io,pt.gt=va,pt.gte=Da,pt.has=function(t,e){return null!=t&&Vn(t,e,ee)},pt.hasIn=ao,pt.head=Mi,pt.identity=Eo,pt.includes=function(t,e,n,i){return t=Ma(t)?t:vo(t),n=n&&!i?Wa(n):0,i=t.length,n<0&&(n=W(i+n,0)),Ra(t)?n<=i&&-1<t.indexOf(e,n):!!i&&-1<jr(t,e,n)},pt.indexOf=function(t,e,n){var i=null==t?0:t.length;return i?(n=null==n?0:Wa(n),jr(t,e,n=n<0?W(i+n,0):n)):-1},pt.inRange=function(t,e,n){return e=Qa(e),n===Bo?(n=e,e=0):n=Qa(n),(t=t=Ga(t))>=V(e=e,n=n)&&t<W(e,n)},pt.invoke=ro,pt.isArguments=ba,pt.isArray=Aa,pt.isArrayBuffer=Ia,pt.isArrayLike=Ma,pt.isArrayLikeObject=wa,pt.isBoolean=function(t){return!0===t||!1===t||Ea(t)&&$t(t)==Ko},pt.isBuffer=Ca,pt.isDate=_a,pt.isElement=function(t){return Ea(t)&&1===t.nodeType&&!La(t)},pt.isEmpty=function(t){if(null==t)return!0;if(Ma(t)&&(Aa(t)||"string"==typeof t||"function"==typeof t.splice||Ca(t)||Ua(t)||ba(t)))return!t.length;var e,n=Wn(t);if(n==ns||n==rs)return!t.size;if(ti(t))return!ue(t).length;for(e in t)if(D.call(t,e))return!1;return!0},pt.isEqual=function(t,e){return se(t,e)},pt.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:Bo)?n(t,e):Bo;return i===Bo?se(t,e,Bo,n):!!i},pt.isError=Ta,pt.isFinite=function(t){return"number"==typeof t&&H(t)},pt.isFunction=ka,pt.isInteger=xa,pt.isLength=Na,pt.isMap=ja,pt.isMatch=function(t,e){return t===e||re(t,e,Bn(e))},pt.isMatchWith=function(t,e,n){return n="function"==typeof n?n:Bo,re(t,e,Bn(e),n)},pt.isNaN=function(t){return Oa(t)&&t!=+t},pt.isNative=function(t){if($n(t))throw new d("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return le(t)},pt.isNil=function(t){return null==t},pt.isNull=function(t){return null===t},pt.isNumber=Oa,pt.isObject=Sa,pt.isObjectLike=Ea,pt.isPlainObject=La,pt.isRegExp=za,pt.isSafeInteger=function(t){return xa(t)&&-Wo<=t&&t<=Wo},pt.isSet=Pa,pt.isString=Ra,pt.isSymbol=Fa,pt.isTypedArray=Ua,pt.isUndefined=function(t){return t===Bo},pt.isWeakMap=function(t){return Ea(t)&&Wn(t)==us},pt.isWeakSet=function(t){return Ea(t)&&"[object WeakSet]"==$t(t)},pt.join=function(t,e){return null==t?"":Y.call(t,e)},pt.kebabCase=Io,pt.last=Ti,pt.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var a=i;return n!==Bo&&(a=(a=Wa(n))<0?W(i+a,0):V(a,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,a):Er(t,Lr,a,!0)},pt.lowerCase=Mo,pt.lowerFirst=wo,pt.lt=Ba,pt.lte=Ha,pt.max=function(t){return t&&t.length?Yt(t,Eo,te):Bo},pt.maxBy=function(t,e){return t&&t.length?Yt(t,Fn(e,2),te):Bo},pt.mean=function(t){return zr(t,Eo)},pt.meanBy=function(t,e){return zr(t,Fn(e,2))},pt.min=function(t){return t&&t.length?Yt(t,Eo,fe):Bo},pt.minBy=function(t,e){return t&&t.length?Yt(t,Fn(e,2),fe):Bo},pt.stubArray=Po,pt.stubFalse=Ro,pt.stubObject=function(){return{}},pt.stubString=function(){return""},pt.stubTrue=function(){return!0},pt.multiply=z,pt.nth=function(t,e){return t&&t.length?ye(t,Wa(e)):Bo},pt.noConflict=function(){return ur._===this&&(ur._=b),this},pt.noop=Lo,pt.now=ia,pt.pad=function(t,e,n){t=Ja(t);var i=(e=Wa(e))?el(t):0;return!e||e<=i?t:bn(F(i=(e-i)/2),n)+t+bn(R(i),n)},pt.padEnd=function(t,e,n){t=Ja(t);var i=(e=Wa(e))?el(t):0;return e&&i<e?t+bn(e-i,n):t},pt.padStart=function(t,e,n){t=Ja(t);var i=(e=Wa(e))?el(t):0;return e&&i<e?bn(e-i,n)+t:t},pt.parseInt=function(t,e,n){return e=n||null==e?0:e&&+e,Z(Ja(t).replace(Ps,""),e||0)},pt.random=function(t,e,n){var i;if(n&&"boolean"!=typeof n&&qn(t,e,n)&&(e=n=Bo),n===Bo&&("boolean"==typeof e?(n=e,e=Bo):"boolean"==typeof t&&(n=t,t=Bo)),t===Bo&&e===Bo?(t=0,e=1):(t=Qa(t),e===Bo?(e=t,t=0):e=Qa(e)),e<t&&(i=t,t=e,e=i),n||t%1||e%1){n=J();return V(t+n*(e-t+lr("1e-"+((n+"").length-1))),e)}return Ie(t,e)},pt.reduce=function(t,e,n){var i=Aa(t)?kr:Rr,a=arguments.length<3;return i(t,Fn(e,4),n,a,Ut)},pt.reduceRight=function(t,e,n){var i=Aa(t)?xr:Rr,a=arguments.length<3;return i(t,Fn(e,4),n,a,Bt)},pt.repeat=function(t,e,n){return e=(n?qn(t,e,n):e===Bo)?1:Wa(e),Me(Ja(t),e)},pt.replace=function(){var t=arguments,e=Ja(t[0]);return t.length<3?e:e.replace(t[1],t[2])},pt.result=function(t,e,n){var i=-1,a=(e=Ge(e,t)).length;for(a||(a=1,t=Bo);++i<a;){var o=null==t?Bo:t[hi(e[i])];o===Bo&&(i=a,o=n),t=ka(o)?o.call(t):o}return t},pt.round=Ze,pt.runInContext=t,pt.sample=function(t){return(Aa(t)?Ct:Ce)(t)},pt.size=function(t){if(null==t)return 0;if(Ma(t))return Ra(t)?el(t):t.length;var e=Wn(t);return e==ns||e==rs?t.size:ue(t).length},pt.snakeCase=Co,pt.some=function(t,e,n){return(Aa(t)?Nr:Ee)(t,Fn(e=n&&qn(t,e,n)?Bo:e,3))},pt.sortedIndex=function(t,e){return je(t,e)},pt.sortedIndexBy=function(t,e,n){return Oe(t,e,Fn(n,2))},pt.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=je(t,e);if(i<n&&ya(t[i],e))return i}return-1},pt.sortedLastIndex=function(t,e){return je(t,e,!0)},pt.sortedLastIndexBy=function(t,e,n){return Oe(t,e,Fn(n,2),!0)},pt.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=je(t,e,!0)-1;if(ya(t[n],e))return n}return-1},pt.startCase=_o,pt.startsWith=function(t,e,n){return t=Ja(t),n=null==n?0:Lt(Wa(n),0,t.length),e=Pe(e),t.slice(n,n+e.length)==e},pt.subtract=B,pt.sum=function(t){return t&&t.length?Fr(t,Eo):0},pt.sumBy=function(t,e){return t&&t.length?Fr(t,Fn(e,2)):0},pt.template=function(s,t,e){var n=pt.templateSettings;e&&qn(s,t,e)&&(t=Bo),s=Ja(s),t=Xa({},t,n,xn);var r,l,i=lo(n=Xa({},t.imports,n.imports,xn)),a=Yr(n,i),c=0,n=t.interpolate||Xs,u="__p += '",n=p((t.escape||Xs).source+"|"+n.source+"|"+(n===Ss?Qs:Xs).source+"|"+(t.evaluate||Xs).source+"|$","g"),o="//# sourceURL="+(D.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++or+"]")+"\n";if(s.replace(n,function(t,e,n,i,a,o){return n=n||i,u+=s.slice(c,o).replace($s,Jr),e&&(r=!0,u+="' +\n__e("+e+") +\n'"),a&&(l=!0,u+="';\n"+a+";\n__p += '"),n&&(u+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=o+t.length,t}),u+="';\n",t=D.call(t,"variable")&&t.variable){if(Hs.test(t))throw new d("Invalid `variable` option passed into `_.template`")}else u="with (obj) {\n"+u+"\n}\n";if(u=(l?u.replace(Is,""):u).replace(Ms,"$1").replace(ws,"$1;"),u="function("+(t||"obj")+") {\n"+(t?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}",(t=xo(function(){return f(i,o+"return "+u).apply(Bo,a)})).source=u,Ta(t))throw t;return t},pt.times=function(t,e){if((t=Wa(t))<1||Wo<t)return[];var n=Go,i=V(t,Go);for(e=Fn(e),t-=Go,i=Ur(i,e);++n<t;)e(n);return i},pt.toFinite=Qa,pt.toInteger=Wa,pt.toLength=Va,pt.toLower=function(t){return Ja(t).toLowerCase()},pt.toNumber=Ga,pt.toSafeInteger=function(t){return t?Lt(Wa(t),-Wo,Wo):0===t?t:0},pt.toString=Ja,pt.toUpper=function(t){return Ja(t).toUpperCase()},pt.trim=function(t,e,n){return(t=Ja(t))&&(n||e===Bo)?Br(t):t&&(e=Pe(e))?(t=nl(t),e=nl(e),Je(t,Wr(t,e),Vr(t,e)+1).join("")):t},pt.trimEnd=function(t,e,n){return(t=Ja(t))&&(n||e===Bo)?t.slice(0,il(t)+1):t&&(e=Pe(e))?Je(t=nl(t),0,Vr(t,nl(e))+1).join(""):t},pt.trimStart=function(t,e,n){return(t=Ja(t))&&(n||e===Bo)?t.replace(Ps,""):t&&(e=Pe(e))?Je(t=nl(t),Wr(t,nl(e))).join(""):t},pt.truncate=function(t,e){var n,i=30,a="...";Sa(e)&&(n="separator"in e?e.separator:n,i="length"in e?Wa(e.length):i,a="omission"in e?Pe(e.omission):a);var o,e=(t=Ja(t)).length;if((e=qr(t)?(o=nl(t)).length:e)<=i)return t;if((e=i-el(a))<1)return a;if(i=o?Je(o,0,e).join(""):t.slice(0,e),n===Bo)return i+a;if(o&&(e+=i.length-e),za(n)){if(t.slice(e).search(n)){var s,r=i;for((n=!n.global?p(n.source,Ja(Ws.exec(n))+"g"):n).lastIndex=0;s=n.exec(r);)var l=s.index;i=i.slice(0,l===Bo?e:l)}}else t.indexOf(Pe(n),e)==e||-1<(e=i.lastIndexOf(n))&&(i=i.slice(0,e));return i+a},pt.unescape=function(t){return(t=Ja(t))&&Ts.test(t)?t.replace(Cs,al):t},pt.uniqueId=function(t){var e=++l;return Ja(t)+e},pt.upperCase=i,pt.upperFirst=To,pt.each=Ji,pt.eachRight=qi,pt.first=Mi,Oo(pt,(Uo={},Zt(pt,function(t,e){D.call(pt.prototype,e)||(Uo[e]=t)}),Uo),{chain:!1}),pt.VERSION="4.17.21",br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){pt[t].placeholder=pt}),br(["drop","take"],function(n,i){vt.prototype[n]=function(t){t=t===Bo?1:W(Wa(t),0);var e=this.__filtered__&&!i?new vt(this):this.clone();return e.__filtered__?e.__takeCount__=V(t,e.__takeCount__):e.__views__.push({size:V(t,Go),type:n+(e.__dir__<0?"Right":"")}),e},vt.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),br(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;vt.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Fn(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),br(["head","last"],function(t,e){var n="take"+(e?"Right":"");vt.prototype[t]=function(){return this[n](1).value()[0]}}),br(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");vt.prototype[t]=function(){return this.__filtered__?new vt(this):this[n](1)}}),vt.prototype.compact=function(){return this.filter(Eo)},vt.prototype.find=function(t){return this.filter(t).head()},vt.prototype.findLast=function(t){return this.reverse().find(t)},vt.prototype.invokeMap=we(function(e,n){return"function"==typeof e?new vt(this):this.map(function(t){return ae(t,e,n)})}),vt.prototype.reject=function(t){return this.filter(fa(Fn(t)))},vt.prototype.slice=function(t,e){t=Wa(t);var n=this;return n.__filtered__&&(0<t||e<0)?new vt(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==Bo?(e=Wa(e))<0?n.dropRight(-e):n.take(e-t):n)},vt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},vt.prototype.toArray=function(){return this.take(Go)},Zt(vt.prototype,function(c,t){var u=/^(?:filter|find|map|reject)|While$/.test(t),d=/^(?:head|last)$/.test(t),f=pt[d?"take"+("last"==t?"Right":""):t],p=d||/^find/.test(t);f&&(pt.prototype[t]=function(){function t(t){return t=f.apply(pt,Tr([t],n)),d&&s?t[0]:t}var e=this.__wrapped__,n=d?[1]:arguments,i=e instanceof vt,a=n[0],o=i||Aa(e);o&&u&&"function"==typeof a&&1!=a.length&&(i=o=!1);var s=this.__chain__,r=!!this.__actions__.length,a=p&&!s,r=i&&!r;if(p||!o)return a&&r?c.apply(this,n):(l=this.thru(t),a?d?l.value()[0]:l.value():l);var e=r?e:new vt(this),l=c.apply(e,n);return l.__actions__.push({func:Qi,args:[t],thisArg:Bo}),new yt(l,s)})}),br(["pop","push","shift","sort","splice","unshift"],function(t){var n=o[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",a=/^(?:pop|shift)$/.test(t);pt.prototype[t]=function(){var e=arguments;if(!a||this.__chain__)return this[i](function(t){return n.apply(Aa(t)?t:[],e)});var t=this.value();return n.apply(Aa(t)?t:[],e)}}),Zt(vt.prototype,function(t,e){var n,i=pt[e];i&&(n=i.name+"",D.call(at,n)||(at[n]=[]),at[n].push({name:e,func:i}))}),at[gn(Bo,2).name]=[{name:"wrapper",func:Bo}],vt.prototype.clone=function(){var t=new vt(this.__wrapped__);return t.__actions__=an(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=an(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=an(this.__views__),t},vt.prototype.reverse=function(){var t;return this.__filtered__?((t=new vt(this)).__dir__=-1,t.__filtered__=!0):(t=this.clone()).__dir__*=-1,t},vt.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Aa(t),i=e<0,a=n?t.length:0,o=function(t,e,n){var i=-1,a=n.length;for(;++i<a;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=V(e,t+s);break;case"takeRight":t=W(t,e-s)}}return{start:t,end:e}}(0,a,this.__views__),s=o.start,r=(o=o.end)-s,l=i?o:s-1,c=this.__iteratees__,u=c.length,d=0,f=V(r,this.__takeCount__);if(!n||!i&&a==r&&f==r)return He(t,this.__actions__);var p=[];t:for(;r--&&d<f;){for(var h=-1,m=t[l+=e];++h<u;){var g=c[h],y=g.iteratee,g=g.type,y=y(m);if(2==g)m=y;else if(!y){if(1==g)continue t;break t}}p[d++]=m}return p},pt.prototype.at=Wi,pt.prototype.chain=function(){return Yi(this)},pt.prototype.commit=function(){return new yt(this.value(),this.__chain__)},pt.prototype.next=function(){this.__values__===Bo&&(this.__values__=Ya(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?Bo:this.__values__[this.__index__++]}},pt.prototype.plant=function(t){for(var e,n=this;n instanceof gt;){var i=gi(n);i.__index__=0,i.__values__=Bo,e?a.__wrapped__=i:e=i;var a=i,n=n.__wrapped__}return a.__wrapped__=t,e},pt.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof vt){t=t;return(t=(t=this.__actions__.length?new vt(this):t).reverse()).__actions__.push({func:Qi,args:[Si],thisArg:Bo}),new yt(t,this.__chain__)}return this.thru(Si)},pt.prototype.toJSON=pt.prototype.valueOf=pt.prototype.value=function(){return He(this.__wrapped__,this.__actions__)},pt.prototype.first=pt.prototype.head,E&&(pt.prototype[E]=function(){return this}),pt}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ur._=ol,define(function(){return ol})):M?((M.exports=ol)._=ol,s._=ol):ur._=ol}.call(this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.d3=t.d3||{})}(this,function(U){"use strict";function u(t,e){return[t,e]}function c(t,e,n){t=(e-t)/Math.max(0,n),n=Math.floor(Math.log(t)/Math.LN10),t/=Math.pow(10,n);return 0<=n?(kr<=t?10:xr<=t?5:Nr<=t?2:1)*Math.pow(10,n):-Math.pow(10,-n)/(kr<=t?10:xr<=t?5:Nr<=t?2:1)}function w(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),n=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),i=i/n;return kr<=i?n*=10:xr<=i?n*=5:Nr<=i&&(n*=2),e<t?-n:n}function r(t){return t.length}function t(t){return"translate("+(t+.5)+",0)"}function n(t){return"translate(0,"+(t+.5)+")"}function C(e){return function(t){return+e(t)}}function _(e){var n=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(n=Math.round(n)),function(t){return+e(t)+n}}function T(){return!this.__axis}function e(p,h){function e(t){var e=null==g?h.ticks?h.ticks.apply(h,m):h.domain():g,n=null==y?h.tickFormat?h.tickFormat.apply(h,m):vr:y,i=Math.max(v,0)+b,a=h.range(),o=+a[0]+.5,s=+a[a.length-1]+.5,r=(h.bandwidth?_:C)(h.copy()),l=t.selection?t.selection():t,c=l.selectAll(".domain").data([null]),u=(f=l.selectAll(".tick").data(e,h).order()).exit(),d=f.enter().append("g").attr("class","tick"),a=f.select("line"),e=f.select("text"),c=c.merge(c.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),f=f.merge(d),a=a.merge(d.append("line").attr("stroke","#000").attr(I+"2",A*v)),e=e.merge(d.append("text").attr("fill","#000").attr(I,A*i).attr("dy",1===p?"0em":3===p?"0.71em":"0.32em"));t!==l&&(c=c.transition(t),f=f.transition(t),a=a.transition(t),e=e.transition(t),u=u.transition(t).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=r(t))?M(t):this.getAttribute("transform")}),d.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return M(e&&isFinite(e=e(t))?e:r(t))})),u.remove(),c.attr("d",4===p||2==p?"M"+A*D+","+o+"H0.5V"+s+"H"+A*D:"M"+o+","+A*D+"V0.5H"+s+"V"+A*D),f.attr("opacity",1).attr("transform",function(t){return M(r(t))}),a.attr(I+"2",A*v),e.attr(I,A*i).text(n),l.filter(T).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===p?"start":4===p?"end":"middle"),l.each(function(){this.__axis=r})}var m=[],g=null,y=null,v=6,D=6,b=3,A=1===p||4===p?-1:1,I=4===p||2===p?"x":"y",M=1===p||3===p?t:n;return e.scale=function(t){return arguments.length?(h=t,e):h},e.ticks=function(){return m=Er.call(arguments),e},e.tickArguments=function(t){return arguments.length?(m=null==t?[]:Er.call(t),e):m.slice()},e.tickValues=function(t){return arguments.length?(g=null==t?null:Er.call(t),e):g&&g.slice()},e.tickFormat=function(t){return arguments.length?(y=t,e):y},e.tickSize=function(t){return arguments.length?(v=D=+t,e):v},e.tickSizeInner=function(t){return arguments.length?(v=+t,e):v},e.tickSizeOuter=function(t){return arguments.length?(D=+t,e):D},e.tickPadding=function(t){return arguments.length?(b=+t,e):b},e}function j(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new a(i)}function a(t){this._=t}function l(t,e,n){for(var i=0,a=t.length;i<a;++i)if(t[i].name===e){t[i]=jr,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}function i(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===zr&&t.documentElement.namespaceURI===zr?t.createElement(n):t.createElementNS(e,n)}}function o(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(){return new d}function d(){this._="@"+(++Rr).toString(36)}function f(n,t,e){return n=p(n,t,e),function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}function p(n,i,a){return function(t){var e=U.event;U.event=t;try{n.call(this,this.__data__,i,a)}finally{U.event=e}}}function h(o){return function(){var t=this.__on;if(t){for(var e,n=0,i=-1,a=t.length;n<a;++n)e=t[n],o.type&&e.type!==o.type||e.name!==o.name?t[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?t.length=i:delete this.__on}}}function m(l,c,u){var d=Hr.hasOwnProperty(l.type)?f:p;return function(t,e,n){var i,a=this.__on,o=d(c,e,n);if(a)for(var s=0,r=a.length;s<r;++s)if((i=a[s]).type===l.type&&i.name===l.name)return this.removeEventListener(i.type,i.listener,i.capture),this.addEventListener(i.type,i.listener=o,i.capture=u),void(i.value=c);this.addEventListener(l.type,o,u),i={type:l.type,name:l.name,value:c,listener:o,capture:u},a?a.push(i):this.__on=[i]}}function O(t,e,n,i){var a=U.event;t.sourceEvent=U.event,U.event=t;try{return e.apply(n,i)}finally{U.event=a}}function g(){}function y(){return[]}function v(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function I(t,e,n,i,a,o){for(var s,r=0,l=e.length,c=o.length;r<c;++r)(s=e[r])?(s.__data__=o[r],i[r]=s):n[r]=new v(t,o[r]);for(;r<l;++r)(s=e[r])&&(a[r]=s)}function M(t,e,n,i,a,o,s){for(var r,l,c={},u=e.length,d=o.length,f=new Array(u),p=0;p<u;++p)(r=e[p])&&(f[p]=l="$"+s.call(r,r.__data__,p,e),l in c?a[p]=r:c[l]=r);for(p=0;p<d;++p)(r=c[l="$"+s.call(t,o[p],p,o)])?((i[p]=r).__data__=o[p],c[l]=null):n[p]=new v(t,o[p]);for(p=0;p<u;++p)(r=e[p])&&c[f[p]]===r&&(a[p]=r)}function D(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}function A(t,e){return t.style.getPropertyValue(e)||Jr(t).getComputedStyle(t,null).getPropertyValue(e)}function b(t){return t.trim().split(/^|\s+/)}function k(t){return t.classList||new x(t)}function x(t){this._node=t,this._names=b(t.getAttribute("class")||"")}function N(t,e){for(var n=k(t),i=-1,a=e.length;++i<a;)n.add(e[i])}function S(t,e){for(var n=k(t),i=-1,a=e.length;++i<a;)n.remove(e[i])}function E(){this.textContent=""}function L(){this.innerHTML=""}function z(){this.nextSibling&&this.parentNode.appendChild(this)}function P(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R(){return null}function F(){var t=this.parentNode;t&&t.removeChild(this)}function B(t,e,n){var i=Jr(t),a=i.CustomEvent;"function"==typeof a?a=new a(e,n):(a=i.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}function H(t,e){this._groups=t,this._parents=e}function Y(){return new H([[document.documentElement]],qr)}function Q(){U.event.stopImmediatePropagation()}function W(t,e){var n=t.document.documentElement,i=tl(t).on("dragstart.drag",null);e&&(i.on("click.drag",el,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function V(t,e,n,i,a,o,s,r,l,c){this.target=t,this.type=e,this.subject=n,this.identifier=i,this.active=a,this.x=o,this.y=s,this.dx=r,this.dy=l,this._=c}function G(){return!U.event.button}function Z(){return this.parentNode}function J(t){return null==t?{x:U.event.x,y:U.event.y}:t}function q(){return"ontouchstart"in this}function K(t,e){var n,i=Object.create(t.prototype);for(n in e)i[n]=e[n];return i}function X(){}function $(t){var e;return t=(t+"").trim().toLowerCase(),(e=sl.exec(t))?new at((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=rl.exec(t))?tt(parseInt(e[1],16)):(e=ll.exec(t))?new at(e[1],e[2],e[3],1):(e=cl.exec(t))?new at(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ul.exec(t))?et(e[1],e[2],e[3],e[4]):(e=dl.exec(t))?et(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=fl.exec(t))?ot(e[1],e[2]/100,e[3]/100,1):(e=pl.exec(t))?ot(e[1],e[2]/100,e[3]/100,e[4]):hl.hasOwnProperty(t)?tt(hl[t]):"transparent"===t?new at(NaN,NaN,NaN,0):null}function tt(t){return new at(t>>16&255,t>>8&255,255&t,1)}function et(t,e,n,i){return new at(t=i<=0?e=n=NaN:t,e,n,i)}function nt(t){return(t=!(t instanceof X)?$(t):t)?new at((t=t.rgb()).r,t.g,t.b,t.opacity):new at}function it(t,e,n,i){return 1===arguments.length?nt(t):new at(t,e,n,null==i?1:i)}function at(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function ot(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||1<=n?t=e=NaN:e<=0&&(t=NaN),new rt(t,e,n,i)}function st(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);if(!(t=!(t instanceof X)?$(t):t))return new rt;if(t instanceof rt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,a=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,r=o-a,l=(o+a)/2;return r?(s=e===o?(n-i)/r+6*(n<i):n===o?(i-e)/r+2:(e-n)/r+4,r/=l<.5?o+a:2-o-a,s*=60):r=0<l&&l<1?0:s,new rt(s,r,l,t.opacity)}(t):new rt(t,e,n,null==i?1:i)}function rt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function lt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function ct(t){if(t instanceof dt)return new dt(t.l,t.a,t.b,t.opacity);if(t instanceof yt){var e=t.h*ml;return new dt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}var n=mt((t=!(t instanceof at)?nt(t):t).r),i=mt(t.g),a=mt(t.b),o=ft((.4124564*n+.3575761*i+.1804375*a)/yl),e=ft((.2126729*n+.7151522*i+.072175*a)/vl);return new dt(116*e-16,500*(o-e),200*(e-ft((.0193339*n+.119192*i+.9503041*a)/Dl)),t.opacity)}function ut(t,e,n,i){return 1===arguments.length?ct(t):new dt(t,e,n,null==i?1:i)}function dt(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function ft(t){return Il<t?Math.pow(t,1/3):t/Al+bl}function pt(t){return 6/29<t?t*t*t:Al*(t-bl)}function ht(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function mt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function gt(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof yt)return new yt(t.h,t.c,t.l,t.opacity);t instanceof dt||(t=ct(t));var e=Math.atan2(t.b,t.a)*gl;return new yt(e<0?360+e:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new yt(t,e,n,null==i?1:i)}function yt(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function vt(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof Dt)return new Dt(t.h,t.s,t.l,t.opacity);var e=(t=!(t instanceof at)?nt(t):t).r/255,n=t.g/255,i=t.b/255,a=(kl*i+_l*e-Tl*n)/(kl+_l-Tl),i=(Cl*(n-a)-Ml*(e=i-a))/wl,n=Math.sqrt(i*i+e*e)/(Cl*a*(1-a));return new Dt((e=n?Math.atan2(i,e)*gl-120:NaN)<0?e+360:e,n,a,t.opacity)}(t):new Dt(t,e,n,null==i?1:i)}function Dt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function bt(t,e,n,i,a){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*i+s*a)/6}function At(e,n){return function(t){return e+t*n}}function It(t,e){var n=e-t;return n?At(t,180<n||n<-180?n-360*Math.round(n/360):n):Fl(isNaN(t)?e:t)}function Mt(o){return 1==(o=+o)?wt:function(t,e){return e-t?(n=t,i=e,a=o,n=Math.pow(n,a),i=Math.pow(i,a)-n,a=1/a,function(t){return Math.pow(n+t*i,a)}):Fl(isNaN(t)?e:t);var n,i,a}}function wt(t,e){var n=e-t;return n?At(t,n):Fl(isNaN(t)?e:t)}function Ct(r){return function(t){for(var e,n=t.length,i=new Array(n),a=new Array(n),o=new Array(n),s=0;s<n;++s)e=it(t[s]),i[s]=e.r||0,a[s]=e.g||0,o[s]=e.b||0;return i=r(i),a=r(a),o=r(o),e.opacity=1,function(t){return e.r=i(t),e.g=a(t),e.b=o(t),e+""}}}function _t(d,f,p,h){function m(t){return t.length?t.pop()+" ":""}return function(t,e){var n,i,a,o,s,r,l,c=[],u=[];return t=d(t),e=d(e),n=t.translateX,i=t.translateY,a=e.translateX,o=e.translateY,s=c,r=u,n!==a||i!==o?(l=s.push("translate(",null,f,null,p),r.push({i:l-4,x:Wl(n,a)},{i:l-2,x:Wl(i,o)})):(a||o)&&s.push("translate("+a+f+o+p),l=t.rotate,i=e.rotate,s=c,a=u,l!==i?(180<l-i?i+=360:180<i-l&&(l+=360),a.push({i:s.push(m(s)+"rotate(",null,h)-2,x:Wl(l,i)})):i&&s.push(m(s)+"rotate("+i+h),o=t.skewX,a=e.skewX,l=c,s=u,o!==a?s.push({i:l.push(m(l)+"skewX(",null,h)-2,x:Wl(o,a)}):a&&l.push(m(l)+"skewX("+a+h),i=t.scaleX,s=t.scaleY,o=e.scaleX,l=e.scaleY,a=c,t=u,i!==o||s!==l?(e=a.push(m(a)+"scale(",null,",",null,")"),t.push({i:e-4,x:Wl(i,o)},{i:e-2,x:Wl(s,l)})):1===o&&1===l||a.push(m(a)+"scale("+o+","+l+")"),function(t){for(var e,n=-1,i=u.length;++n<i;)c[(e=u[n]).i]=e.x(t);return c.join("")}}}function Tt(t){return((t=Math.exp(t))+1/t)/2}function kt(s){return function(e,t){var n=s((e=st(e)).h,(t=st(t)).h),i=wt(e.s,t.s),a=wt(e.l,t.l),o=wt(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}function xt(s){return function(e,t){var n=s((e=gt(e)).h,(t=gt(t)).h),i=wt(e.c,t.c),a=wt(e.l,t.l),o=wt(e.opacity,t.opacity);return function(t){return e.h=n(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}function Nt(r){return function t(s){function e(e,t){var n=r((e=vt(e)).h,(t=vt(t)).h),i=wt(e.s,t.s),a=wt(e.l,t.l),o=wt(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=i(t),e.l=a(Math.pow(t,s)),e.opacity=o(t),e+""}}return s=+s,e.gamma=t,e}(1)}function St(){return hc||(yc(Et),hc=gc.now()+mc)}function Et(){hc=0}function jt(){this._call=this._time=this._next=null}function Ot(t,e,n){var i=new jt;return i.restart(t,e,n),i}function Lt(){St(),++cc;for(var t,e=Pl;e;)0<=(t=hc-e._time)&&e._call.call(null,t),e=e._next;--cc}function zt(){hc=(pc=gc.now())+mc,cc=uc=0;try{Lt()}finally{cc=0,function(){for(var t,e,n=Pl,i=1/0;n;)n=n._call?(i>n._time&&(i=n._time),(t=n)._next):(e=n._next,n._next=null,t?t._next=e:Pl=e);Rl=t,Rt(i)}(),hc=0}}function Pt(){var t=gc.now(),e=t-pc;fc<e&&(mc-=e,pc=t)}function Rt(t){var e;cc||(uc=uc&&clearTimeout(uc),24<(e=t-hc)?(t<1/0&&(uc=setTimeout(zt,e)),dc=dc&&clearInterval(dc)):(dc||(pc=hc,dc=setInterval(Pt,fc)),cc=1,yc(zt)))}function Ft(t,e){t=t.__transition;if(!t||!(t=t[e])||t.state>wc)throw new Error("too late");return t}function Ut(t,e){t=t.__transition;if(!t||!(t=t[e])||t.state>_c)throw new Error("too late");return t}function Bt(t,e){t=t.__transition;if(!t||!(t=t[e]))throw new Error("too late");return t}function Ht(t,e,n){var i=t._id;return t.each(function(){var t=Ut(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Bt(t,i).value[e]}}function Yt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function Qt(t){return Y().transition(t)}function Wt(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Vt(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function Gt(t){return(1-Math.cos(Pc*t))/2}function Zt(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function Jt(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function qt(t){return(t=+t)<4/11?Fc*t*t:t<8/11?Fc*(t-=6/11)*t+.75:t<10/11?Fc*(t-=9/11)*t+.9375:Fc*(t-=21/22)*t+63/64}function Kt(){U.event.stopImmediatePropagation()}function Xt(t){return{type:t}}function $t(){return!U.event.button}function te(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function ee(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function ne(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function ie(L){function e(t){var e=t.property("__brush",a).selectAll(".overlay").data([Xt("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",su.overlay).merge(e).each(function(){var t=ee(this).extent;tl(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),t.selectAll(".selection").data([Xt("selection")]).enter().append("rect").attr("class","selection").attr("cursor",su.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");e=t.selectAll(".handle").data(L.handles,function(t){return t.type});e.exit().remove(),e.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return su[t.type]}),t.each(z).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",i)}function z(){var t=tl(this),e=ee(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-r/2:e[0][0]-r/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-r/2:e[0][1]-r/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+r:r}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+r:r})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function P(t,e){return t.__brush.emitter||new n(t,e)}function n(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function i(){function t(){var t=Yr(f);!w||u||d||(Math.abs(t[0]-_[0])>Math.abs(t[1]-_[1])?d=!0:u=!0),_=t,c=!0,qc(),e()}function e(){var t;switch(r=_[0]-C[0],l=_[1]-C[1],h){case tu:case $c:m&&(r=Math.max(b-i,Math.min(I-o,r)),k=i+r,N=o+r),g&&(l=Math.max(A-a,Math.min(M-s,l)),x=a+l,S=s+l);break;case eu:m<0?(r=Math.max(b-i,Math.min(I-i,r)),k=i+r,N=o):0<m&&(r=Math.max(b-o,Math.min(I-o,r)),k=i,N=o+r),g<0?(l=Math.max(A-a,Math.min(M-a,l)),x=a+l,S=s):0<g&&(l=Math.max(A-s,Math.min(M-s,l)),x=a,S=s+l);break;case nu:m&&(k=Math.max(b,Math.min(I,i-r*m)),N=Math.max(b,Math.min(I,o+r*m))),g&&(x=Math.max(A,Math.min(M,a-l*g)),S=Math.max(A,Math.min(M,s+l*g)))}N<k&&(m*=-1,t=i,i=o,o=t,t=k,k=N,N=t,p in ru&&j.attr("cursor",su[p=ru[p]])),S<x&&(g*=-1,t=a,a=s,s=t,t=x,x=S,S=t,p in lu&&j.attr("cursor",su[p=lu[p]])),y.selection&&(D=y.selection),u&&(k=D[0][0],N=D[1][0]),d&&(x=D[0][1],S=D[1][1]),D[0][0]===k&&D[0][1]===x&&D[1][0]===N&&D[1][1]===S||(y.selection=[[k,x],[N,S]],z.call(f),T.brush())}function n(){if(Kt(),U.event.touches){if(U.event.touches.length)return;R&&clearTimeout(R),R=setTimeout(function(){R=null},500),E.on("touchmove.brush touchend.brush touchcancel.brush",null)}else W(U.event.view,c),O.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);E.attr("pointer-events","all"),j.attr("cursor",su.overlay),ne(D=y.selection?y.selection:D)&&(y.selection=null,z.call(f)),T.end()}if(U.event.touches){if(U.event.changedTouches.length<U.event.touches.length)return qc()}else if(R)return;var i,a,o,s,r,l,c,u,d,f,p,h,m,g,y,v,D,b,A,I,M,w,C,_,T,k,x,N,S,E,j,O;F.apply(this,arguments)&&(p=U.event.target.__data__.type,h="selection"===(U.event.metaKey?p="overlay":p)?$c:U.event.altKey?nu:eu,m=L===au?null:cu[p],g=L===iu?null:uu[p],v=(y=ee(f=this)).extent,D=y.selection,b=v[0][0],A=v[0][1],I=v[1][0],M=v[1][1],w=m&&g&&U.event.shiftKey,C=Yr(f),_=C,T=P(f,arguments).beforestart(),"overlay"===p?y.selection=D=[[i=L===au?b:C[0],a=L===iu?A:C[1]],[o=L===au?I:i,s=L===iu?M:a]]:(i=D[0][0],a=D[0][1],o=D[1][0],s=D[1][1]),k=i,x=a,N=o,S=s,E=tl(f).attr("pointer-events","none"),j=E.selectAll(".overlay").attr("cursor",su[p]),U.event.touches?E.on("touchmove.brush",t,!0).on("touchend.brush touchcancel.brush",n,!0):(O=tl(U.event.view).on("keydown.brush",function(){switch(U.event.keyCode){case 16:w=m&&g;break;case 18:h===eu&&(m&&(o=N-r*m,i=k+r*m),g&&(s=S-l*g,a=x+l*g),h=nu,e());break;case 32:h!==eu&&h!==nu||(m<0?o=N-r:0<m&&(i=k-r),g<0?s=S-l:0<g&&(a=x-l),h=tu,j.attr("cursor",su.selection),e());break;default:return}qc()},!0).on("keyup.brush",function(){switch(U.event.keyCode){case 16:w&&(u=d=w=!1,e());break;case 18:h===nu&&(m<0?o=N:0<m&&(i=k),g<0?s=S:0<g&&(a=x),h=eu,e());break;case 32:h===tu&&(h=U.event.altKey?(m&&(o=N-r*m,i=k+r*m),g&&(s=S-l*g,a=x+l*g),nu):(m<0?o=N:0<m&&(i=k),g<0?s=S:0<g&&(a=x),eu),j.attr("cursor",su[p]),e());break;default:return}qc()},!0).on("mousemove.brush",t,!0).on("mouseup.brush",n,!0),Xr(U.event.view)),Kt(),Dc(f),z.call(f),T.start())}function a(){var t=this.__brush||{selection:null};return t.extent=o.apply(this,arguments),t.dim=L,t}var R,o=te,F=$t,s=j(e,"start","brush","end"),r=6;return e.move=function(t,r){t.selection?t.on("start.brush",function(){P(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){P(this,arguments).end()}).tween("brush",function(){function t(t){n.selection=1===t&&ne(o)?null:s(t),z.call(e),i.brush()}var e=this,n=e.__brush,i=P(e,arguments),a=n.selection,o=L.input("function"==typeof r?r.apply(this,arguments):r,n.extent),s=ql(a,o);return a&&o?t:t(1)}):t.each(function(){var t=arguments,e=this.__brush,n=L.input("function"==typeof r?r.apply(this,t):r,e.extent),t=P(this,t).beforestart();Dc(this),e.selection=null==n||ne(n)?null:n,z.call(this),t.start().brush().end()})},n.prototype={beforestart:function(){return 1==++this.active&&((this.state.emitter=this).starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){O(new Jc(e,t,L.output(this.state.selection)),s.apply,s,[t,this.that,this.args])}},e.extent=function(t){return arguments.length?(o="function"==typeof t?t:Zc([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):o},e.filter=function(t){return arguments.length?(F="function"==typeof t?t:Zc(!!t),e):F},e.handleSize=function(t){return arguments.length?(r=+t,e):r},e.on=function(){var t=s.on.apply(s,arguments);return t===s?e:t},e}function ae(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function oe(){return new ae}function se(t){return t.source}function re(t){return t.target}function le(t){return t.radius}function ce(t){return t.startAngle}function ue(t){return t.endAngle}function de(){}function fe(t,e){var n=new de;if(t instanceof de)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==e)for(;++a<o;)n.set(a,t[a]);else for(;++a<o;)n.set(e(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function pe(){return{}}function he(t,e,n){t[e]=n}function me(){return fe()}function ge(t,e,n){t.set(e,n)}function ye(){}function ve(t,e){var n=new ye;if(t instanceof ye)t.each(function(t){n.add(t)});else if(t){var i=-1,a=t.length;if(null==e)for(;++i<a;)n.add(t[i]);else for(;++i<a;)n.add(e(t[i],i,t))}return n}function De(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}function be(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var a,o,s,r,l,c,u,d,f,p=t._root,h={data:i},m=t._x0,g=t._y0,y=t._x1,v=t._y1;if(!p)return t._root=h,t;for(;p.length;)if((c=e>=(o=(m+y)/2))?m=o:y=o,(u=n>=(s=(g+v)/2))?g=s:v=s,!(p=(a=p)[d=u<<1|c]))return a[d]=h,t;if(r=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===r&&n===l)return h.next=p,a?a[d]=h:t._root=h,t;for(;a=a?a[d]=new Array(4):t._root=new Array(4),(c=e>=(o=(m+y)/2))?m=o:y=o,(u=n>=(s=(g+v)/2))?g=s:v=s,(d=u<<1|c)==(f=(s<=l)<<1|o<=r););return a[f]=p,a[d]=h,t}function Ae(t){return t[0]}function Ie(t){return t[1]}function Me(t,e,n){n=new we(null==e?Ae:e,null==n?Ie:n,NaN,NaN,NaN,NaN);return null==t?n:n.addAll(t)}function we(t,e,n,i,a,o){this._x=t,this._y=e,this._x0=n,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function Ce(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}function _e(t){return t.x+t.vx}function Te(t){return t.y+t.vy}function ke(t){return t.index}function xe(t,e){t=t.get(e);if(!t)throw new Error("missing: "+e);return t}function Ne(t){return t.x}function Se(t){return t.y}function Ee(t){return new je(t)}function je(t){if(!(l=Wu.exec(t)))throw new Error("invalid format: "+t);var e=l[1]||" ",n=l[2]||">",i=l[3]||"-",a=l[4]||"",o=!!l[5],s=l[6]&&+l[6],r=!!l[7],t=l[8]&&+l[8].slice(1),l=l[9]||"";"n"===l?(r=!0,l="g"):Qu[l]||(l=""),(o||"0"===e&&"="===n)&&(o=!0,e="0",n="="),this.fill=e,this.align=n,this.sign=i,this.symbol=a,this.zero=o,this.width=s,this.comma=r,this.precision=t,this.type=l}function Oe(t){return Gu=Vu(t),U.format=Gu.format,U.formatPrefix=Gu.formatPrefix,Gu}function Le(){this.reset()}function ze(t,e,n){var i=t.s=e+n,a=i-e;t.t=e-(i-a)+(n-a)}function Pe(t){return 1<t?0:t<-1?Ld:Math.acos(t)}function Re(t){return 1<t?zd:t<-1?-zd:Math.asin(t)}function Fe(t){return(t=Jd(t/2))*t}function Ue(){}function Be(t,e){t&&tf.hasOwnProperty(t.type)&&tf[t.type](t,e)}function He(t,e,n){var i,a=-1,o=t.length-n;for(e.lineStart();++a<o;)i=t[a],e.point(i[0],i[1],i[2]);e.lineEnd()}function Ye(t,e){var n=-1,i=t.length;for(e.polygonStart();++n<i;)He(t[n],e,1);e.polygonEnd()}function Qe(){af.point=Ve}function We(){Ge(nd,id)}function Ve(t,e){af.point=Ge,nd=t,id=e,ad=t*=Ud,od=Qd(e=(e*=Ud)/2+Pd),sd=Jd(e)}function Ge(t,e){e=(e*=Ud)/2+Pd;var n=(t*=Ud)-ad,i=0<=n?1:-1,a=i*n,o=Qd(e),s=Jd(e),n=sd*s,e=od*o+n*Qd(a),a=n*i*Jd(a);ef.add(Yd(a,e)),ad=t,od=o,sd=s}function Ze(t){return[Yd(t[1],t[0]),Re(t[2])]}function Je(t){var e=t[0],n=t[1],t=Qd(n);return[t*Qd(e),t*Jd(e),Jd(n)]}function qe(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Ke(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Xe(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function $e(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function tn(t){var e=Kd(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function en(t,e){md.push(gd=[rd=t,cd=t]),e<ld&&(ld=e),ud<e&&(ud=e)}function nn(t,e){var n,i,a,o,s,r=Je([t*Ud,e*Ud]);hd?(o=Ke(hd,r),tn(n=Ke([o[1],-o[0],0],o)),n=Ze(n),s=t-dd,o=n[0]*Fd*(a=0<s?1:-1),(s=180<Bd(s))^(a*dd<o&&o<a*t)?(i=n[1]*Fd)>ud&&(ud=i):s^(a*dd<(o=(o+360)%360-180)&&o<a*t)?(i=-n[1]*Fd)<ld&&(ld=i):(e<ld&&(ld=e),ud<e&&(ud=e)),s?t<dd?cn(rd,t)>cn(rd,cd)&&(cd=t):cn(t,cd)>cn(rd,cd)&&(rd=t):rd<=cd?(t<rd&&(rd=t),cd<t&&(cd=t)):dd<t?cn(rd,t)>cn(rd,cd)&&(cd=t):cn(t,cd)>cn(rd,cd)&&(rd=t)):md.push(gd=[rd=t,cd=t]),e<ld&&(ld=e),ud<e&&(ud=e),hd=r,dd=t}function an(){sf.point=nn}function on(){gd[0]=rd,gd[1]=cd,sf.point=en,hd=null}function sn(t,e){var n;hd?(n=t-dd,of.add(180<Bd(n)?n+(0<n?360:-360):n)):(fd=t,pd=e),af.point(t,e),nn(t,e)}function rn(){af.lineStart()}function ln(){sn(fd,pd),af.lineEnd(),Bd(of)>Od&&(rd=-(cd=180)),gd[0]=rd,gd[1]=cd,hd=null}function cn(t,e){return(e-=t)<0?e+360:e}function un(t,e){return t[0]-e[0]}function dn(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function fn(t,e){t*=Ud;var n=Qd(e*=Ud);pn(n*Qd(t),n*Jd(t),Jd(e))}function pn(t,e,n){Dd+=(t-Dd)/++yd,bd+=(e-bd)/yd,Ad+=(n-Ad)/yd}function hn(){rf.point=mn}function mn(t,e){t*=Ud;var n=Qd(e*=Ud);Nd=n*Qd(t),Sd=n*Jd(t),Ed=Jd(e),rf.point=gn,pn(Nd,Sd,Ed)}function gn(t,e){t*=Ud;var n=Qd(e*=Ud),i=n*Qd(t),n=n*Jd(t),t=Jd(e),e=Yd(Kd((e=Sd*t-Ed*n)*e+(e=Ed*i-Nd*t)*e+(e=Nd*n-Sd*i)*e),Nd*i+Sd*n+Ed*t);vd+=e,Id+=e*(Nd+(Nd=i)),Md+=e*(Sd+(Sd=n)),wd+=e*(Ed+(Ed=t)),pn(Nd,Sd,Ed)}function yn(){rf.point=fn}function vn(){rf.point=bn}function Dn(){An(kd,xd),rf.point=fn}function bn(t,e){kd=t,xd=e,t*=Ud,e*=Ud,rf.point=An;var n=Qd(e);Nd=n*Qd(t),Sd=n*Jd(t),Ed=Jd(e),pn(Nd,Sd,Ed)}function An(t,e){t*=Ud;var n=Qd(e*=Ud),i=n*Qd(t),a=n*Jd(t),o=Jd(e),s=Sd*o-Ed*a,r=Ed*i-Nd*o,n=Nd*a-Sd*i,t=Kd(s*s+r*r+n*n),e=Re(t),t=t&&-e/t;Cd+=t*s,_d+=t*r,Td+=t*n,vd+=e,Id+=e*(Nd+(Nd=i)),Md+=e*(Sd+(Sd=a)),wd+=e*(Ed+(Ed=o)),pn(Nd,Sd,Ed)}function In(t,e){return[Ld<t?t-Rd:t<-Ld?t+Rd:t,e]}function Mn(t,e,n){return(t%=Rd)?e||n?lf(Cn(t),_n(e,n)):Cn(t):e||n?_n(e,n):In}function wn(n){return function(t,e){return[Ld<(t+=n)?t-Rd:t<-Ld?t+Rd:t,e]}}function Cn(t){var e=wn(t);return e.invert=wn(-t),e}function _n(t,e){function n(t,e){var n=Qd(e),i=Qd(t)*n,t=Jd(t)*n,n=Jd(e),e=n*a+i*o;return[Yd(t*s-e*r,i*a-n*o),Re(e*s+t*r)]}var a=Qd(t),o=Jd(t),s=Qd(e),r=Jd(e);return n.invert=function(t,e){var n=Qd(e),i=Qd(t)*n,t=Jd(t)*n,n=Jd(e),e=n*s-t*r;return[Yd(t*s+n*r,i*a+e*o),Re(e*a-i*o)]},n}function Tn(t,e,n,i,a,o){if(n){var s=Qd(e),r=Jd(e),l=i*n;null==a?(a=e+i*Rd,o=e-l/2):(a=kn(s,a),o=kn(s,o),(0<i?a<o:o<a)&&(a+=i*Rd));for(var c,u=a;0<i?o<u:u<o;u-=l)c=Ze([s,-r*Qd(u),-r*Jd(u)]),t.point(c[0],c[1])}}function kn(t,e){(e=Je(e))[0]-=t,tn(e);t=Pe(-e[1]);return((-e[2]<0?-t:t)+Rd-Od)%Rd}function xn(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function Nn(t){if(e=t.length){for(var e,n,i=0,a=t[0];++i<e;)a.n=n=t[i],n.p=a,a=n;a.n=n=t[0],n.p=a}}function Sn(y,v,D,b){function A(t,e){return y<=t&&t<=D&&v<=e&&e<=b}function I(t,e,n,i){var a=0,o=0;if(null==t||(a=s(t,n))!==(o=s(e,n))||r(t,e)<0^0<n)for(;i.point(0===a||3===a?y:D,1<a?b:v),(a=(a+n+4)%4)!==o;);else i.point(e[0],e[1])}function s(t,e){return Bd(t[0]-y)<Od?0<e?0:3:Bd(t[0]-D)<Od?0<e?2:1:Bd(t[1]-v)<Od?0<e?1:0:0<e?3:2}function M(t,e){return r(t.x,e.x)}function r(t,e){var n=s(t,1),i=s(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(i){function t(t,e){A(t,e)&&m.point(t,e)}function e(t,e){var n,i,a=A(t,e);d&&o.push([t,e]),p?(s=t,r=e,p=!1,(l=a)&&(m.lineStart(),m.point(t,e))):a&&f?m.point(t,e):(n=[c=Math.max(kf,Math.min(Tf,c)),u=Math.max(kf,Math.min(Tf,u))],i=[t=Math.max(kf,Math.min(Tf,t)),e=Math.max(kf,Math.min(Tf,e))],df(n,i,y,v,D,b)?(f||(m.lineStart(),m.point(n[0],n[1])),m.point(i[0],i[1]),a||m.lineEnd(),h=!1):a&&(m.lineStart(),m.point(t,e),h=!1)),c=t,u=e,f=a}var a,d,o,s,r,l,c,u,f,p,h,m=i,n=uf(),g={point:t,lineStart:function(){g.point=e,d&&d.push(o=[]),f=!(p=!0),c=u=NaN},lineEnd:function(){a&&(e(s,r),l&&f&&n.rejoin(),a.push(n.result())),g.point=t,f&&m.lineEnd()},polygonStart:function(){m=n,a=[],d=[],h=!0},polygonEnd:function(){var t=function(){for(var t=0,e=0,n=d.length;e<n;++e)for(var i,a,o=d[e],s=1,r=o.length,l=o[0],c=l[0],u=l[1];s<r;++s)i=c,a=u,c=(l=o[s])[0],u=l[1],a<=b?b<u&&(u-a)*(y-i)<(c-i)*(b-a)&&++t:u<=b&&(c-i)*(b-a)<(u-a)*(y-i)&&--t;return t}(),e=h&&t,n=(a=mr(a)).length;(e||n)&&(i.polygonStart(),e&&(i.lineStart(),I(null,null,1,i),i.lineEnd()),n&&ff(a,M,t,I,i),i.polygonEnd()),m=i,a=d=o=null}};return g}}function En(){Sf.point=Sf.lineEnd=Ue}function jn(t,e){mf=t*=Ud,gf=Jd(e*=Ud),yf=Qd(e),Sf.point=On}function On(t,e){t*=Ud;var n=Jd(e*=Ud),i=Qd(e),a=Bd(t-mf),o=Qd(a),e=i*Jd(a),a=yf*n-gf*i*o,o=gf*n+yf*i*o;Nf.add(Yd(Kd(e*e+a*a),o)),mf=t,gf=n,yf=i}function Ln(t,e){return!(!t||!zf.hasOwnProperty(t.type))&&zf[t.type](t,e)}function zn(t,e){return 0===hf(t,e)}function Pn(t,e){var n=hf(t[0],t[1]);return hf(t[0],e)+hf(e,t[1])<=n+Od}function Rn(t,e){return!!pf(t.map(Fn),Un(e))}function Fn(t){return(t=t.map(Un)).pop(),t}function Un(t){return[t[0]*Ud,t[1]*Ud]}function Bn(t,e,n){var i=Tr(t,e-Od,n).concat(e);return function(e){return i.map(function(t){return[e,t]})}}function Hn(t,e,n){var i=Tr(t,e-Od,n).concat(e);return function(e){return i.map(function(t){return[t,e]})}}function Yn(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return Tr(Wd(o/g)*g,a,g).map(f).concat(Tr(Wd(c/y)*y,l,y).map(p)).concat(Tr(Wd(i/h)*h,n,h).filter(function(t){return Bd(t%g)>Od}).map(u)).concat(Tr(Wd(r/m)*m,s,m).filter(function(t){return Bd(t%y)>Od}).map(d))}var n,i,a,o,s,r,l,c,u,d,f,p,h=10,m=h,g=90,y=360,v=2.5;return e.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})},e.outline=function(){return{type:"Polygon",coordinates:[f(o).concat(p(l).slice(1),f(a).reverse().slice(1),p(c).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.extentMajor(t).extentMinor(t):e.extentMinor()},e.extentMajor=function(t){return arguments.length?(o=+t[0][0],a=+t[1][0],c=+t[0][1],l=+t[1][1],a<o&&(t=o,o=a,a=t),l<c&&(t=c,c=l,l=t),e.precision(v)):[[o,c],[a,l]]},e.extentMinor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],r=+t[0][1],s=+t[1][1],n<i&&(t=i,i=n,n=t),s<r&&(t=r,r=s,s=t),e.precision(v)):[[i,r],[n,s]]},e.step=function(t){return arguments.length?e.stepMajor(t).stepMinor(t):e.stepMinor()},e.stepMajor=function(t){return arguments.length?(g=+t[0],y=+t[1],e):[g,y]},e.stepMinor=function(t){return arguments.length?(h=+t[0],m=+t[1],e):[h,m]},e.precision=function(t){return arguments.length?(v=+t,u=Bn(r,s,90),d=Hn(i,n,v),f=Bn(c,l,90),p=Hn(o,a,v),e):v},e.extentMajor([[-180,-90+Od],[180,90-Od]]).extentMinor([[-180,-80-Od],[180,80+Od]])}function Qn(){Uf.point=Wn}function Wn(t,e){Uf.point=Vn,vf=bf=t,Df=Af=e}function Vn(t,e){Ff.add(Af*t-bf*e),bf=t,Af=e}function Gn(){Vn(vf,Df)}function Zn(t,e){Vf+=t,Gf+=e,++Zf}function Jn(){ep.point=qn}function qn(t,e){ep.point=Kn,Zn(wf=t,Cf=e)}function Kn(t,e){var n=t-wf,i=e-Cf,i=Kd(n*n+i*i);Jf+=i*(wf+t)/2,qf+=i*(Cf+e)/2,Kf+=i,Zn(wf=t,Cf=e)}function Xn(){ep.point=Zn}function $n(){ep.point=ei}function ti(){ni(If,Mf)}function ei(t,e){ep.point=ni,Zn(If=wf=t,Mf=Cf=e)}function ni(t,e){var n=t-wf,i=e-Cf,i=Kd(n*n+i*i);Jf+=i*(wf+t)/2,qf+=i*(Cf+e)/2,Kf+=i,Xf+=(i=Cf*t-wf*e)*(wf+t),$f+=i*(Cf+e),tp+=3*i,Zn(wf=t,Cf=e)}function ii(t){this._context=t}function ai(t,e){lp.point=oi,ip=op=t,ap=sp=e}function oi(t,e){op-=t,sp-=e,rp.add(Kd(op*op+sp*sp)),op=t,sp=e}function si(){this._string=[]}function ri(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function li(t){return 1<t.length}function ci(t,e){return((t=t.x)[0]<0?t[1]-zd-Od:zd-t[1])-((e=e.x)[0]<0?e[1]-zd-Od:zd-e[1])}function ui(i){return function(t){var e,n=new di;for(e in i)n[e]=i[e];return n.stream=t,n}}function di(){}function fi(t,e,n){var i=e[1][0]-e[0][0],a=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),td(n,t.stream(Wf));var s=Wf.result(),n=Math.min(i/(s[1][0]-s[0][0]),a/(s[1][1]-s[0][1])),i=+e[0][0]+(i-n*(s[1][0]+s[0][0]))/2,s=+e[0][1]+(a-n*(s[1][1]+s[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*n).translate([i,s])}function pi(t,e,n){return fi(t,[[0,0],e],n)}function hi(t){return mi(function(){return t})()}function mi(t){function n(t){return[(t=u(t[0]*Ud,t[1]*Ud))[0]*g+r,l-t[1]*g]}function e(t){return(t=u.invert((t[0]-r)/g,(l-t[1])/g))&&[t[0]*Fd,t[1]*Fd]}function i(t,e){return[(t=s(t,e))[0]*g+r,l-t[1]*g]}function a(){u=lf(c=Mn(A,I,M),s);var t=s(D,b);return r=y-t[0]*g,l=v+t[1]*g,o()}function o(){return h=m=null,n}var s,r,l,c,u,d,f,p,h,m,g=150,y=480,v=250,D=0,b=0,A=0,I=0,M=0,w=null,C=up,_=null,T=Pf,k=.5,x=mp(i,k);return n.stream=function(t){return h&&m===t?h:h=gp(C(c,x(T(m=t))))},n.clipAngle=function(t){return arguments.length?(C=+t?dp(w=t*Ud,6*Ud):(w=null,up),o()):w*Fd},n.clipExtent=function(t){return arguments.length?(T=null==t?(_=d=f=p=null,Pf):Sn(_=+t[0][0],d=+t[0][1],f=+t[1][0],p=+t[1][1]),o()):null==_?null:[[_,d],[f,p]]},n.scale=function(t){return arguments.length?(g=+t,a()):g},n.translate=function(t){return arguments.length?(y=+t[0],v=+t[1],a()):[y,v]},n.center=function(t){return arguments.length?(D=t[0]%360*Ud,b=t[1]%360*Ud,a()):[D*Fd,b*Fd]},n.rotate=function(t){return arguments.length?(A=t[0]%360*Ud,I=t[1]%360*Ud,M=2<t.length?t[2]%360*Ud:0,a()):[A*Fd,I*Fd,M*Fd]},n.precision=function(t){return arguments.length?(x=mp(i,k=t*t),o()):Kd(k)},n.fitExtent=function(t,e){return fi(n,t,e)},n.fitSize=function(t,e){return pi(n,t,e)},function(){return s=t.apply(this,arguments),n.invert=s.invert&&e,a()}}function gi(t){var e=0,n=Ld/3,i=mi(t),t=i(e,n);return t.parallels=function(t){return arguments.length?i(e=t[0]*Ud,n=t[1]*Ud):[e*Fd,n*Fd]},t}function yi(t,e){function n(t,e){e=Kd(r-2*o*Jd(e))/o;return[e*Jd(t*=o),l-e*Qd(t)]}var i,a=Jd(t),o=(a+Jd(e))/2;if(Bd(o)<Od)return i=Qd(t),s.invert=function(t,e){return[t/i,Re(e*i)]},s;function s(t,e){return[t*i,Jd(e)/i]}var r=1+a*(2*o-a),l=Kd(r)/o;return n.invert=function(t,e){e=l-e;return[Yd(t,Bd(e))/o*qd(e),Re((r-(t*t+e*e)*o*o)/(2*o))]},n}function vi(a){return function(t,e){var n=Qd(t),i=Qd(e),n=a(n*i);return[n*i*Jd(t),n*Jd(e)]}}function Di(o){return function(t,e){var n=Kd(t*t+e*e),i=o(n),a=Jd(i),i=Qd(i);return[Yd(t*a,n*i),Re(n&&e*a/n)]}}function bi(t,e){return[t,Gd(Xd((zd+e)/2))]}function Ai(n){function e(){var t=Ld*l(),e=s(cf(s.rotate()).invert([0,0]));return u(null==d?[[e[0]-t,e[1]-t],[e[0]+t,e[1]+t]]:n===bi?[[Math.max(e[0]-t,d),i],[Math.min(e[0]+t,a),o]]:[[d,Math.max(e[1]-t,i)],[a,Math.min(e[1]+t,o)]])}var i,a,o,s=hi(n),r=s.center,l=s.scale,c=s.translate,u=s.clipExtent,d=null;return s.scale=function(t){return arguments.length?(l(t),e()):l()},s.translate=function(t){return arguments.length?(c(t),e()):c()},s.center=function(t){return arguments.length?(r(t),e()):r()},s.clipExtent=function(t){return arguments.length?(null==t?d=i=a=o=null:(d=+t[0][0],i=+t[0][1],a=+t[1][0],o=+t[1][1]),e()):null==d?null:[[d,i],[a,o]]},e()}function Ii(t){return Xd((zd+t)/2)}function Mi(t,e){function n(t,e){0<o?e<-zd+Od&&(e=-zd+Od):zd-Od<e&&(e=zd-Od);e=o/Zd(Ii(e),a);return[e*Jd(a*t),o-e*Qd(a*t)]}var i=Qd(t),a=t===e?Jd(t):Gd(i/Qd(e))/Gd(Ii(e)/Ii(t)),o=i*Zd(Ii(t),a)/a;return a?(n.invert=function(t,e){var n=o-e,e=qd(a)*Kd(t*t+n*n);return[Yd(t,Bd(n))/a*qd(n),2*Hd(Zd(o/e,1/a))-zd]},n):bi}function wi(t,e){return[t,e]}function Ci(t,e){function n(t,e){e=o-e,t*=a;return[e*Jd(t),o-e*Qd(t)]}var i=Qd(t),a=t===e?Jd(t):(i-Qd(e))/(e-t),o=i/a+t;return Bd(a)<Od?wi:(n.invert=function(t,e){e=o-e;return[Yd(t,Bd(e))/a*qd(e),o-qd(a)*Kd(t*t+e*e)]},n)}function _i(t,e){var n=Qd(e),i=Qd(t)*n;return[n*Jd(t)/i,Jd(e)/i]}function Ti(n,i,a,o){return 1===n&&1===i&&0===a&&0===o?Pf:ui({point:function(t,e){this.stream.point(t*n+a,e*i+o)}})}function ki(t,e){return[Qd(e)*Jd(t),Jd(e)]}function xi(t,e){var n=Qd(e),i=1+Qd(t)*n;return[n*Jd(t)/i,Jd(e)/i]}function Ni(t,e){return[Gd(Xd((zd+e)/2)),-t]}function Si(t,e){return t.parent===e.parent?1:2}function Ei(t,e){return t+e.x}function ji(t,e){return Math.max(t,e.y)}function Oi(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;0<=--i;)e+=n[i].value;else e=1;t.value=e}function Li(t,e){var n,i,a,o,s,r=new Fi(t),l=+t.value&&(r.value=t.value),c=[r];for(null==e&&(e=zi);n=c.pop();)if(l&&(n.value=+n.data.value),(a=e(n.data))&&(s=a.length))for(n.children=new Array(s),o=s-1;0<=o;--o)c.push(i=n.children[o]=new Fi(a[o])),i.parent=n,i.depth=n.depth+1;return r.eachBefore(Ri)}function zi(t){return t.children}function Pi(t){t.data=t.data.data}function Ri(t){for(var e=0;t.height=e,(t=t.parent)&&t.height<++e;);}function Fi(t){this.data=t,this.depth=this.height=0,this.parent=null}function Ui(t,e){var n=t.r-e.r,i=e.x-t.x,t=e.y-t.y;return n<0||n*n<i*i+t*t}function Bi(t,e){var n=t.r-e.r+1e-6,i=e.x-t.x,t=e.y-t.y;return 0<n&&i*i+t*t<n*n}function Hi(t,e){for(var n=0;n<e.length;++n)if(!Bi(t,e[n]))return;return 1}function Yi(t,e){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,r=e.r,l=o-n,c=s-i,t=r-a,e=Math.sqrt(l*l+c*c);return{x:(n+o+l/e*t)/2,y:(i+s+c/e*t)/2,r:(e+a+r)/2}}function Qi(t,e,n){var i=t.x,a=t.y,o=t.r,s=e.x,r=e.y,l=e.r,c=n.x,u=n.y,d=n.r,f=i-s,p=i-c,h=a-r,m=a-u,t=l-o,e=d-o,n=i*i+a*a-o*o,l=n-s*s-r*r+l*l,c=n-c*c-u*u+d*d,u=p*h-f*m,d=(h*c-m*l)/(2*u)-i,h=(m*t-h*e)/u,c=(p*l-f*c)/(2*u)-a,p=(f*e-p*t)/u,t=h*h+p*p-1,u=2*(o+d*h+c*p),o=d*d+c*c-o*o,u=-(t?(u+Math.sqrt(u*u-4*t*o))/(2*t):o/u);return{x:i+d+h*u,y:a+c+p*u,r:u}}function Wi(t,e,n){var i=t.x,a=t.y,o=e.r+n.r,s=t.r+n.r,r=e.x-i,l=e.y-a,t=r*r+l*l;t?(e=.5+((s*=s)-(o*=o))/(2*t),t=Math.sqrt(Math.max(0,2*o*(s+t)-(s-=t)*s-o*o))/(2*t),n.x=i+e*r+t*l,n.y=a+e*l-t*r):(n.x=i+s,n.y=a)}function Vi(t,e){var n=e.x-t.x,i=e.y-t.y,e=t.r+e.r;return n*n+i*i<e*e-1e-6}function Gi(t){var e=t._,n=t.next._,i=e.r+n.r,t=(e.x*n.r+n.x*e.r)/i,i=(e.y*n.r+n.y*e.r)/i;return t*t+i*i}function Zi(t){this._=t,this.next=null,this.previous=null}function Ji(t){if(!(i=t.length))return 0;var e,n,i,a,o,s,r,l,c,u,d=t[0];if(d.x=0,d.y=0,!(1<i))return d.r;if(e=t[1],d.x=-e.r,e.x=d.r,e.y=0,!(2<i))return d.r+e.r;Wi(e,d,n=t[2]),d=new Zi(d),e=new Zi(e),n=new Zi(n),((d.next=n.previous=e).next=d.previous=n).next=e.previous=d;t:for(s=3;s<i;++s){Wi(d._,e._,n=t[s]),n=new Zi(n),r=e.next,l=d.previous,c=e._.r,u=d._.r;do{if(c<=u){if(Vi(r._,n._)){e=r,(d.next=e).previous=d,--s;continue t}c+=r._.r,r=r.next}else{if(Vi(l._,n._)){((d=l).next=e).previous=d,--s;continue t}u+=l._.r,l=l.previous}}while(r!==l.next);for(n.previous=d,n.next=e,d.next=e.previous=e=n,a=Gi(d);(n=n.next)!==e;)(o=Gi(n))<a&&(d=n,a=o);e=d.next}for(d=[e._],n=e;(n=n.next)!==e;)d.push(n._);for(n=Dp(d),s=0;s<i;++s)(d=t[s]).x-=n.x,d.y-=n.y;return n.r}function qi(t){if("function"!=typeof t)throw new Error;return t}function Ki(){return 0}function Xi(t){return Math.sqrt(t.value)}function $i(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function ta(s,r){return function(t){if(e=t.children){var e,n,i,a=e.length,o=s(t)*r||0;if(o)for(n=0;n<a;++n)e[n].r+=o;if(i=Ji(e),o)for(n=0;n<a;++n)e[n].r-=o;t.r=i+o}}}function ea(n){return function(t){var e=t.parent;t.r*=n,e&&(t.x=e.x+n*t.x,t.y=e.y+n*t.y)}}function na(t){return t.id}function ia(t){return t.parentId}function aa(t,e){return t.parent===e.parent?1:2}function oa(t){var e=t.children;return e?e[0]:t.t}function sa(t){var e=t.children;return e?e[e.length-1]:t.t}function ra(t,e){this._=t,this.parent=null,this.children=null,this.A=null,(this.a=this).z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function la(t,e,n,i,a,o){for(var s,r,l,c,u,d,f,p,h,m,g,y=[],v=e.children,D=0,b=0,A=v.length,I=e.value;D<A;){for(l=a-n,c=o-i;!(u=v[b++].value)&&b<A;);for(g=(d=f=u)*u*(m=Math.max(c/l,l/c)/(I*t)),h=Math.max(f/g,g/d);b<A;++b){if(u+=r=v[b].value,r<d&&(d=r),f<r&&(f=r),g=u*u*m,(p=Math.max(f/g,g/d))>h){u-=r;break}h=p}y.push(s={value:u,dice:l<c,children:v.slice(D,b)}),s.dice?Mp(s,n,i,a,I?i+=c*u/I:o):_p(s,n,i,I?n+=l*u/I:a,o),I-=u,D=b}return y}function ca(t,e){return t[0]-e[0]||t[1]-e[1]}function ua(t){for(var e,n,i,a=t.length,o=[0,1],s=2,r=2;r<a;++r){for(;1<s&&(e=t[o[s-2]],n=t[o[s-1]],i=t[r],(n[0]-e[0])*(i[1]-e[1])-(n[1]-e[1])*(i[0]-e[0])<=0);)--s;o[s++]=r}return o.slice(0,s)}function da(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function fa(e){if(!e._start)try{!function(t){for(;t._start=t._waiting&&t._active<t._size;){var e=t._ended+t._active,n=t._tasks[e],i=n.length-1,a=n[i];n[i]=function(n,i){return function(t,e){n._tasks[i]&&(--n._active,++n._ended,(n._tasks[i]=null)==n._error&&(null!=t?pa(n,t):(n._data[i]=e,(n._waiting?fa:ha)(n))))}}(t,e),--t._waiting,++t._active,n=a.apply(null,n),t._tasks[e]&&(t._tasks[e]=n||Sp)}}(e)}catch(t){if(e._tasks[e._ended+e._active-1])pa(e,t);else if(!e._data)throw t}}function pa(t,e){var n,i=t._tasks.length;for(t._error=e,t._data=void 0,t._waiting=NaN;0<=--i;)if((n=t._tasks[i])&&(t._tasks[i]=null,n.abort))try{n.abort()}catch(e){}t._active=NaN,ha(t)}function ha(t){var e;!t._active&&t._call&&(e=t._data,t._data=void 0,t._call(t._error,e))}function ma(t){if(null==t)t=1/0;else if(!(1<=(t=+t)))throw new Error("invalid concurrency");return new da(t)}function ga(i){function o(t){var e=t+"",n=s.get(e);if(!n){if(a!==Xp)return a;s.set(e,n=r.push(t))}return i[(n-1)%i.length]}var s=fe(),r=[],a=Xp;return i=null==i?[]:Kp.call(i),o.domain=function(t){if(!arguments.length)return r.slice();r=[],s=fe();for(var e,n,i=-1,a=t.length;++i<a;)s.has(n=(e=t[i])+"")||s.set(n,r.push(e));return o},o.range=function(t){return arguments.length?(i=Kp.call(t),o):i.slice()},o.unknown=function(t){return arguments.length?(a=t,o):a},o.copy=function(){return ga().domain(r).range(i).unknown(a)},o}function ya(){function e(){var t=s().length,e=l[1]<l[0],n=l[+e],i=l[1-e];a=(i-n)/Math.max(1,t-u+2*d),c&&(a=Math.floor(a)),n+=(i-n-a*(t-u))*f,o=a*(1-u),c&&(n=Math.round(n),o=Math.round(o));t=Tr(t).map(function(t){return n+a*t});return r(e?t.reverse():t)}var a,o,t=ga().unknown(void 0),s=t.domain,r=t.range,l=[0,1],c=!1,u=0,d=0,f=.5;return delete t.unknown,t.domain=function(t){return arguments.length?(s(t),e()):s()},t.range=function(t){return arguments.length?(l=[+t[0],+t[1]],e()):l.slice()},t.rangeRound=function(t){return l=[+t[0],+t[1]],c=!0,e()},t.bandwidth=function(){return o},t.step=function(){return a},t.round=function(t){return arguments.length?(c=!!t,e()):c},t.padding=function(t){return arguments.length?(u=d=Math.max(0,Math.min(1,t)),e()):u},t.paddingInner=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),e()):u},t.paddingOuter=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),e()):d},t.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),e()):f},t.copy=function(){return ya().domain(s()).range(l).round(c).paddingInner(u).paddingOuter(d).align(f)},e()}function va(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:$p(n)}function Da(t,e,n,i){var a=t[0],t=t[1],o=e[0],e=e[1],o=t<a?(a=n(t,a),i(e,o)):(a=n(a,t),i(o,e));return function(t){return o(a(t))}}function ba(n,t,e,i){var a=Math.min(n.length,t.length)-1,o=new Array(a),s=new Array(a),r=-1;for(n[a]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++r<a;)o[r]=e(n[r],n[r+1]),s[r]=i(t[r],t[r+1]);return function(t){var e=Ar(n,t,1,a)-1;return s[e](o[e](t))}}function Aa(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function Ia(e,n){function i(){return o=2<Math.min(l.length,c.length)?ba:Da,s=r=null,t}function t(t){return(s=s||o(l,c,d?(a=e,function(e,n){var i=a(e=+e,n=+n);return function(t){return t<=e?0:n<=t?1:i(t)}}):e,u))(+t);var a}var o,s,r,l=eh,c=eh,u=ql,d=!1;return t.invert=function(t){return(r=r||o(c,l,va,d?(a=n,function(e,n){var i=a(e=+e,n=+n);return function(t){return t<=0?e:1<=t?n:i(t)}}):n))(+t);var a},t.domain=function(t){return arguments.length?(l=qp.call(t,th),i()):l.slice()},t.range=function(t){return arguments.length?(c=Kp.call(t),i()):c.slice()},t.rangeRound=function(t){return c=Kp.call(t),u=Kl,i()},t.clamp=function(t){return arguments.length?(d=!!t,i()):d},t.interpolate=function(t){return arguments.length?(u=t,i()):u},i()}function Ma(r){var l=r.domain;return r.ticks=function(t){var e=l();return Sr(e[0],e[e.length-1],null==t?10:t)},r.tickFormat=function(t,e){return nh(l(),t,e)},r.nice=function(t){null==t&&(t=10);var e,n=l(),i=0,a=n.length-1,o=n[i],s=n[a];return s<o&&(e=o,o=s,s=e,e=i,i=a,a=e),0<(e=c(o,s,t))?e=c(o=Math.floor(o/e)*e,s=Math.ceil(s/e)*e,t):e<0&&(e=c(o=Math.ceil(o*e)/e,s=Math.floor(s*e)/e,t)),0<e?(n[i]=Math.floor(o/e)*e,n[a]=Math.ceil(s/e)*e,l(n)):e<0&&(n[i]=Math.ceil(o*e)/e,n[a]=Math.floor(s*e)/e,l(n)),r},r}function wa(e,n){return(n=Math.log(n/e))?function(t){return Math.log(t/e)/n}:$p(n)}function Ca(e,n){return e<0?function(t){return-Math.pow(-n,t)*Math.pow(-e,1-t)}:function(t){return Math.pow(n,t)*Math.pow(e,1-t)}}function _a(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ta(e){return 10===e?_a:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function ka(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function xa(e){return function(t){return-e(-t)}}function Na(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function Sa(){var i=1,t=Ia(function(e,n){return(n=Na(n,i)-(e=Na(e,i)))?function(t){return(Na(t,i)-e)/n}:$p(n)},function(e,n){return n=Na(n,i)-(e=Na(e,i)),function(t){return Na(e+n*t,1/i)}}),e=t.domain;return t.exponent=function(t){return arguments.length?(i=+t,e(e())):i},t.copy=function(){return Aa(t,Sa().exponent(i))},Ma(t)}function Ea(a,o,n,i){function s(t){return a(t=new Date(+t)),t}return(s.floor=s).ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,e){return o(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(t,e,n){var i=[];if(t=s.ceil(t),n=null==n?1:Math.floor(n),!(t<e&&0<n))return i;for(;i.push(new Date(+t)),o(t,n),a(t),t<e;);return i},s.filter=function(n){return Ea(function(t){if(t<=t)for(;a(t),!n(t);)t.setTime(t-1)},function(t,e){if(t<=t)if(e<0)for(;++e<=0;)for(;o(t,-1),!n(t););else for(;0<=--e;)for(;o(t,1),!n(t););})},n&&(s.count=function(t,e){return ih.setTime(+t),ah.setTime(+e),a(ih),a(ah),Math.floor(n(ih,ah))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&0<e?1<e?s.filter(i?function(t){return i(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}function ja(e){return Ea(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}function Oa(e){return Ea(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}function La(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function za(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Pa(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Ra(t){function n(l,c){return function(t){var e,n,i,a=[],o=-1,s=0,r=l.length;for(t instanceof Date||(t=new Date(+t));++o<r;)37===l.charCodeAt(o)&&(a.push(l.slice(s,o)),null!=(n=am[e=l.charAt(++o)])?e=l.charAt(++o):n="e"===e?" ":"0",(i=c[e])&&(e=i(t,n)),a.push(e),s=o+1);return a.push(l.slice(s,o)),a.join("")}}function i(n,i){return function(t){var e=Pa(1900);return a(e,n,t+="",0)!=t.length?null:("p"in e&&(e.H=e.H%12+12*e.p),("W"in e||"U"in e)&&("w"in e||(e.w="W"in e?1:0),t="Z"in e?za(Pa(e.y)).getUTCDay():i(Pa(e.y)).getDay(),e.m=0,e.d="W"in e?(e.w+6)%7+7*e.W-(t+5)%7:e.w+7*e.U-(t+6)%7),"Z"in e?(e.H+=e.Z/100|0,e.M+=e.Z%100,za(e)):i(e))}}function a(t,e,n,i){for(var a,o,s=0,r=e.length,l=n.length;s<r;){if(l<=i)return-1;if(37===(a=e.charCodeAt(s++))){if(a=e.charAt(s++),!(o=w[a in am?e.charAt(s++):a])||(i=o(t,n,i))<0)return-1}else if(a!=n.charCodeAt(i++))return-1}return i}var o=t.dateTime,s=t.date,r=t.time,e=t.periods,l=t.days,c=t.shortDays,u=t.months,d=t.shortMonths,f=Ba(e),p=Ha(e),h=Ba(l),m=Ha(l),g=Ba(c),y=Ha(c),v=Ba(u),D=Ha(u),b=Ba(d),A=Ha(d),I={a:function(t){return c[t.getDay()]},A:function(t){return l[t.getDay()]},b:function(t){return d[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:io,e:io,H:ao,I:oo,j:so,L:ro,m:lo,M:co,p:function(t){return e[+(12<=t.getHours())]},S:uo,U:fo,w:po,W:ho,x:null,X:null,y:mo,Y:go,Z:yo,"%":Eo},M={a:function(t){return c[t.getUTCDay()]},A:function(t){return l[t.getUTCDay()]},b:function(t){return d[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:vo,e:vo,H:Do,I:bo,j:Ao,L:Io,m:Mo,M:wo,p:function(t){return e[+(12<=t.getUTCHours())]},S:Co,U:_o,w:To,W:ko,x:null,X:null,y:xo,Y:No,Z:So,"%":Eo},w={a:function(t,e,n){e=g.exec(e.slice(n));return e?(t.w=y[e[0].toLowerCase()],n+e[0].length):-1},A:function(t,e,n){e=h.exec(e.slice(n));return e?(t.w=m[e[0].toLowerCase()],n+e[0].length):-1},b:function(t,e,n){e=b.exec(e.slice(n));return e?(t.m=A[e[0].toLowerCase()],n+e[0].length):-1},B:function(t,e,n){e=v.exec(e.slice(n));return e?(t.m=D[e[0].toLowerCase()],n+e[0].length):-1},c:function(t,e,n){return a(t,o,e,n)},d:qa,e:qa,H:Xa,I:Xa,j:Ka,L:eo,m:Ja,M:$a,p:function(t,e,n){e=f.exec(e.slice(n));return e?(t.p=p[e[0].toLowerCase()],n+e[0].length):-1},S:to,U:Qa,w:Ya,W:Wa,x:function(t,e,n){return a(t,s,e,n)},X:function(t,e,n){return a(t,r,e,n)},y:Ga,Y:Va,Z:Za,"%":no};return I.x=n(s,I),I.X=n(r,I),I.c=n(o,I),M.x=n(s,M),M.X=n(r,M),M.c=n(o,M),{format:function(t){var e=n(t+="",I);return e.toString=function(){return t},e},parse:function(t){var e=i(t+="",La);return e.toString=function(){return t},e},utcFormat:function(t){var e=n(t+="",M);return e.toString=function(){return t},e},utcParse:function(t){var e=i(t,za);return e.toString=function(){return t},e}}}function Fa(t,e,n){var i=t<0?"-":"",a=(i?-t:t)+"",t=a.length;return i+(t<n?new Array(n-t+1).join(e)+a:a)}function Ua(t){return t.replace(rm,"\\$&")}function Ba(t){return new RegExp("^(?:"+t.map(Ua).join("|")+")","i")}function Ha(t){for(var e={},n=-1,i=t.length;++n<i;)e[t[n].toLowerCase()]=n;return e}function Ya(t,e,n){e=om.exec(e.slice(n,n+1));return e?(t.w=+e[0],n+e[0].length):-1}function Qa(t,e,n){e=om.exec(e.slice(n));return e?(t.U=+e[0],n+e[0].length):-1}function Wa(t,e,n){e=om.exec(e.slice(n));return e?(t.W=+e[0],n+e[0].length):-1}function Va(t,e,n){e=om.exec(e.slice(n,n+4));return e?(t.y=+e[0],n+e[0].length):-1}function Ga(t,e,n){e=om.exec(e.slice(n,n+2));return e?(t.y=+e[0]+(68<+e[0]?1900:2e3),n+e[0].length):-1}function Za(t,e,n){e=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(e.slice(n,n+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),n+e[0].length):-1}function Ja(t,e,n){e=om.exec(e.slice(n,n+2));return e?(t.m=e[0]-1,n+e[0].length):-1}function qa(t,e,n){e=om.exec(e.slice(n,n+2));return e?(t.d=+e[0],n+e[0].length):-1}function Ka(t,e,n){e=om.exec(e.slice(n,n+3));return e?(t.m=0,t.d=+e[0],n+e[0].length):-1}function Xa(t,e,n){e=om.exec(e.slice(n,n+2));return e?(t.H=+e[0],n+e[0].length):-1}function $a(t,e,n){e=om.exec(e.slice(n,n+2));return e?(t.M=+e[0],n+e[0].length):-1}function to(t,e,n){e=om.exec(e.slice(n,n+2));return e?(t.S=+e[0],n+e[0].length):-1}function eo(t,e,n){e=om.exec(e.slice(n,n+3));return e?(t.L=+e[0],n+e[0].length):-1}function no(t,e,n){e=sm.exec(e.slice(n,n+1));return e?n+e[0].length:-1}function io(t,e){return Fa(t.getDate(),e,2)}function ao(t,e){return Fa(t.getHours(),e,2)}function oo(t,e){return Fa(t.getHours()%12||12,e,2)}function so(t,e){return Fa(1+ph.count(Sh(t),t),e,3)}function ro(t,e){return Fa(t.getMilliseconds(),e,3)}function lo(t,e){return Fa(t.getMonth()+1,e,2)}function co(t,e){return Fa(t.getMinutes(),e,2)}function uo(t,e){return Fa(t.getSeconds(),e,2)}function fo(t,e){return Fa(mh.count(Sh(t),t),e,2)}function po(t){return t.getDay()}function ho(t,e){return Fa(gh.count(Sh(t),t),e,2)}function mo(t,e){return Fa(t.getFullYear()%100,e,2)}function go(t,e){return Fa(t.getFullYear()%1e4,e,4)}function yo(t){t=t.getTimezoneOffset();return(0<t?"-":(t*=-1,"+"))+Fa(t/60|0,"0",2)+Fa(t%60,"0",2)}function vo(t,e){return Fa(t.getUTCDate(),e,2)}function Do(t,e){return Fa(t.getUTCHours(),e,2)}function bo(t,e){return Fa(t.getUTCHours()%12||12,e,2)}function Ao(t,e){return Fa(1+Ph.count(em(t),t),e,3)}function Io(t,e){return Fa(t.getUTCMilliseconds(),e,3)}function Mo(t,e){return Fa(t.getUTCMonth()+1,e,2)}function wo(t,e){return Fa(t.getUTCMinutes(),e,2)}function Co(t,e){return Fa(t.getUTCSeconds(),e,2)}function _o(t,e){return Fa(Fh.count(em(t),t),e,2)}function To(t){return t.getUTCDay()}function ko(t,e){return Fa(Uh.count(em(t),t),e,2)}function xo(t,e){return Fa(t.getUTCFullYear()%100,e,2)}function No(t,e){return Fa(t.getUTCFullYear()%1e4,e,4)}function So(){return"+0000"}function Eo(){return"%"}function jo(t){return nm=Ra(t),U.timeFormat=nm.format,U.timeParse=nm.parse,U.utcFormat=nm.utcFormat,U.utcParse=nm.utcParse,nm}function Oo(t){return new Date(t)}function Lo(t){return t instanceof Date?+t:+new Date(+t)}function zo(s,e,n,i,a,o,r,l,c){function u(t){return(r(t)<t?m:o(t)<t?g:a(t)<t?y:i(t)<t?v:e(t)<t?n(t)<t?D:b:s(t)<t?A:I)(t)}function d(t,e,n,i){var a,o;return"number"==typeof(t=null==t?10:t)&&(a=Math.abs(n-e)/t,t=(o=rr(function(t){return t[2]}).right(M,a))===M.length?(i=w(e/31536e6,n/31536e6,t),s):o?(i=(o=M[a/M[o-1][2]<M[o][2]/a?o-1:o])[1],o[0]):(i=w(e,n,t),l)),null==i?t:t.every(i)}var f=Ia(va,Wl),p=f.invert,h=f.domain,m=c(".%L"),g=c(":%S"),y=c("%I:%M"),v=c("%I %p"),D=c("%a %d"),b=c("%b %d"),A=c("%B"),I=c("%Y"),M=[[r,1,1e3],[r,5,5e3],[r,15,15e3],[r,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[a,1,36e5],[a,3,108e5],[a,6,216e5],[a,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[s,1,31536e6]];return f.invert=function(t){return new Date(p(t))},f.domain=function(t){return arguments.length?h(qp.call(t,Lo)):h().map(Oo)},f.ticks=function(t,e){var n,i=h(),a=i[0],o=i[i.length-1],i=o<a;return i&&(n=a,a=o,o=n),n=(n=d(t,a,o,e))?n.range(a,o+1):[],i?n.reverse():n},f.tickFormat=function(t,e){return null==e?u:c(e)},f.nice=function(t,e){var n=h();return(t=d(t,n[0],n[n.length-1],e))?h(zp(n,t)):f},f.copy=function(){return Aa(f,zo(s,e,n,i,a,o,r,l,c))},f}function Po(e){var n=e.length;return function(t){return e[Math.max(0,Math.min(n-1,Math.floor(t*n)))]}}function Ro(t){return 1<=t?Em:t<=-1?-Em:Math.asin(t)}function Fo(t){return t.innerRadius}function Uo(t){return t.outerRadius}function Bo(t){return t.startAngle}function Ho(t){return t.endAngle}function Yo(t){return t&&t.padAngle}function Qo(t,e,n,i,a,o,s){var r=t-n,l=e-i,c=(s?o:-o)/xm(r*r+l*l),u=c*l,d=-c*r,f=t+u,p=e+d,s=n+u,l=i+d,c=(f+s)/2,r=(p+l)/2,t=s-f,e=l-p,n=t*t+e*e,i=a-o,o=f*l-s*p,f=(e<0?-1:1)*xm(_m(0,i*i*n-o*o)),l=(o*e-t*f)/n,s=(-o*t-e*f)/n,p=(o*e+t*f)/n,e=(-o*t+e*f)/n,f=l-c,n=s-r,c=p-c,r=e-r;return c*c+r*r<f*f+n*n&&(l=p,s=e),{cx:l,cy:s,x01:-u,y01:-d,x11:l*(a/i-1),y11:s*(a/i-1)}}function Wo(t){this._context=t}function Vo(t){return t[0]}function Go(t){return t[1]}function Zo(t){this._curve=t}function Jo(e){function t(t){return new Zo(e(t))}return t._curve=e,t}function qo(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Jo(t)):e()._curve},t}function Ko(t){return t.source}function Xo(t){return t.target}function $o(a){function e(){var t,e=Qm.call(arguments),n=o.apply(this,e),i=s.apply(this,e);if(c=c||(t=oe()),a(c,+r.apply(this,(e[0]=n,e)),+l.apply(this,e),+r.apply(this,(e[0]=i,e)),+l.apply(this,e)),t)return c=null,t+""||null}var o=Ko,s=Xo,r=Vo,l=Go,c=null;return e.source=function(t){return arguments.length?(o=t,e):o},e.target=function(t){return arguments.length?(s=t,e):s},e.x=function(t){return arguments.length?(r="function"==typeof t?t:Im(+t),e):r},e.y=function(t){return arguments.length?(l="function"==typeof t?t:Im(+t),e):l},e.context=function(t){return arguments.length?(c=null==t?null:t,e):c},e}function ts(t,e,n,i,a){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,a,i,a)}function es(t,e,n,i,a){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+a)/2,i,n,i,a)}function ns(t,e,n,i,a){var o=Hm(e,n),e=Hm(e,n=(n+a)/2),n=Hm(i,n),a=Hm(i,a);t.moveTo(o[0],o[1]),t.bezierCurveTo(e[0],e[1],n[0],n[1],a[0],a[1])}function is(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function as(t){this._context=t}function os(t){this._context=t}function ss(t){this._context=t}function rs(t,e){this._basis=new as(t),this._beta=e}function ls(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function cs(t,e){this._context=t,this._k=(1-e)/6}function us(t,e){this._context=t,this._k=(1-e)/6}function ds(t,e){this._context=t,this._k=(1-e)/6}function fs(t,e,n){var i,a,o=t._x1,s=t._y1,r=t._x2,l=t._y2;t._l01_a>Nm&&(i=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,a=3*t._l01_a*(t._l01_a+t._l12_a),o=(o*i-t._x0*t._l12_2a+t._x2*t._l01_2a)/a,s=(s*i-t._y0*t._l12_2a+t._y2*t._l01_2a)/a),t._l23_a>Nm&&(i=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,a=3*t._l23_a*(t._l23_a+t._l12_a),r=(r*i+t._x1*t._l23_2a-e*t._l12_2a)/a,l=(l*i+t._y1*t._l23_2a-n*t._l12_2a)/a),t._context.bezierCurveTo(o,s,r,l,t._x2,t._y2)}function ps(t,e){this._context=t,this._alpha=e}function hs(t,e){this._context=t,this._alpha=e}function ms(t,e){this._context=t,this._alpha=e}function gs(t){this._context=t}function ys(t){return t<0?-1:1}function vs(t,e,n){var i=t._x1-t._x0,a=e-t._x1,e=(t._y1-t._y0)/(i||a<0&&-0),t=(n-t._y1)/(a||i<0&&-0),a=(e*a+t*i)/(i+a);return(ys(e)+ys(t))*Math.min(Math.abs(e),Math.abs(t),.5*Math.abs(a))||0}function Ds(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function bs(t,e,n){var i=t._x0,a=t._y0,o=t._x1,s=t._y1,r=(o-i)/3;t._context.bezierCurveTo(i+r,a+r*e,o-r,s-r*n,o,s)}function As(t){this._context=t}function Is(t){this._context=new Ms(t)}function Ms(t){this._context=t}function ws(t){this._context=t}function Cs(t){var e,n,i=t.length-1,a=new Array(i),o=new Array(i),s=new Array(i);for(o[a[0]=0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)a[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(a[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=a[e]/o[e-1],o[e]-=n,s[e]-=n*s[e-1];for(a[i-1]=s[i-1]/o[i-1],e=i-2;0<=e;--e)a[e]=(s[e]-a[e+1])/o[e];for(o[i-1]=(t[i]+a[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-a[e+1];return[a,o]}function _s(t,e){this._context=t,this._t=e}function Ts(t,e){return t[e]}function ks(t){for(var e,n=0,i=-1,a=t.length;++i<a;)(e=+t[i][1])&&(n+=e);return n}function xs(t){return t[0]}function Ns(t){return t[1]}function Ss(){this._=null}function Es(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function js(t,e){var n=e,i=e.R,e=n.U;e?e.L===n?e.L=i:e.R=i:t._=i,i.U=e,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function Os(t,e){var n=e,i=e.L,e=n.U;e?e.L===n?e.L=i:e.R=i:t._=i,i.U=e,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function Ls(t){for(;t.L;)t=t.L;return t}function zs(t,e,n,i){var a=[null,null],o=cg.push(a)-1;return a.left=t,a.right=e,n&&Rs(a,t,e,n),i&&Rs(a,e,t,i),rg[t.index].halfedges.push(o),rg[e.index].halfedges.push(o),a}function Ps(t,e,n){n=[e,n];return n.left=t,n}function Rs(t,e,n,i){t[0]||t[1]?t.left===n?t[1]=i:t[0]=i:(t[0]=i,t.left=e,t.right=n)}function Fs(t,e,n,i){for(var a,o=cg.length;o--;)(function(t,e,n,i,a){var o=t[1];if(o)return 1;var s=t[0],r=t.left,l=t.right,c=r[0],u=r[1],d=l[0],f=l[1],r=(c+d)/2;if(f===u){if(r<e||i<=r)return;if(d<c){if(s){if(s[1]>=a)return}else s=[r,n];o=[r,a]}else{if(s){if(s[1]<n)return}else s=[r,a];o=[r,n]}}else if(r=(u+f)/2-(l=(c-d)/(f-u))*r,l<-1||1<l)if(d<c){if(s){if(s[1]>=a)return}else s=[(n-r)/l,n];o=[(a-r)/l,a]}else{if(s){if(s[1]<n)return}else s=[(a-r)/l,a];o=[(n-r)/l,n]}else if(u<f){if(s){if(s[0]>=i)return}else s=[e,l*e+r];o=[i,l*i+r]}else{if(s){if(s[0]<e)return}else s=[i,l*i+r];o=[e,l*e+r]}return t[0]=s,t[1]=o,1})(a=cg[o],t,e,n,i)&&function(t,e,n,i,a){var o=t[0],s=t[1],r=o[0],l=o[1],c=0,u=1,o=s[0]-r,s=s[1]-l,e=e-r;if(o||!(0<e)){if(e/=o,o<0){if(e<c)return;e<u&&(u=e)}else if(0<o){if(u<e)return;c<e&&(c=e)}if(e=i-r,o||!(e<0)){if(e/=o,o<0){if(u<e)return;c<e&&(c=e)}else if(0<o){if(e<c)return;e<u&&(u=e)}if(e=n-l,s||!(0<e)){if(e/=s,s<0){if(e<c)return;e<u&&(u=e)}else if(0<s){if(u<e)return;c<e&&(c=e)}if(e=a-l,s||!(e<0)){if(e/=s,s<0){if(u<e)return;c<e&&(c=e)}else if(0<s){if(e<c)return;e<u&&(u=e)}return!(0<c||u<1)||(0<c&&(t[0]=[r+c*o,l+c*s]),u<1&&(t[1]=[r+u*o,l+u*s]),1)}}}}}(a,t,e,n,i)&&(Math.abs(a[0][0]-a[1][0])>fg||Math.abs(a[0][1]-a[1][1])>fg)||delete cg[o]}function Us(t,e){return e[+(e.left!==t.site)]}function Bs(){for(var t,e,n,i,a,o,s,r=0,l=rg.length;r<l;++r)if((t=rg[r])&&(n=(e=t.halfedges).length)){for(var c=new Array(n),u=new Array(n),d=0;d<n;++d)c[d]=d,u[d]=(i=t,a=cg[e[d]],s=o=void 0,o=i.site,s=a.left,i=a.right,o===i&&(i=s,s=o),i?Math.atan2(i[1]-s[1],i[0]-s[0]):(i=o===s?(s=a[1],a[0]):(s=a[0],a[1]),Math.atan2(s[0]-i[0],i[1]-s[1])));for(c.sort(function(t,e){return u[e]-u[t]}),d=0;d<n;++d)u[d]=e[c[d]];for(d=0;d<n;++d)e[d]=u[d]}}function Hs(){Es(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ys(t){var e=t.P,n=t.N;if(e&&n){var i=e.site,a=t.site,o=n.site;if(i!==o){var s=a[0],r=a[1],l=i[0]-s,c=i[1]-r,u=o[0]-s,e=o[1]-r,n=2*(l*e-c*u);if(!(-pg<=n)){var i=l*l+c*c,o=u*u+e*e,c=(e*i-c*o)/n,n=(l*o-u*i)/n,d=ug.pop()||new Hs;d.arc=t,d.site=a,d.x=c+s,d.y=(d.cy=n+r)+Math.sqrt(c*c+n*n),t.circle=d;for(var f=null,p=lg._;p;)if(d.y<p.y||d.y===p.y&&d.x<=p.x){if(!p.L){f=p.P;break}p=p.L}else{if(!p.R){f=p;break}p=p.R}lg.insert(f,d),f||(og=d)}}}}function Qs(t){var e=t.circle;e&&(e.P||(og=e.N),lg.remove(e),ug.push(e),Es(e),t.circle=null)}function Ws(){Es(this),this.edge=this.site=this.circle=null}function Vs(t){var e=dg.pop()||new Ws;return e.site=t,e}function Gs(t){Qs(t),sg.remove(t),dg.push(t),Es(t)}function Zs(t){for(var e,n,i,a,o=t[0],s=t[1],r=sg._;r;)if((i=Js(r,s)-o)>fg)r=r.L;else{if(!((a=o-function(t,e){var n=t.N;if(n)return Js(n,e);t=t.site;return t[1]===e?t[0]:1/0}(r,s))>fg)){-fg<i?(e=r.P,n=r):-fg<a?n=(e=r).N:e=n=r;break}if(!r.R){e=r;break}r=r.R}rg[t.index]={site:t,halfedges:[]};var l,c,u,d,f,p,h,m,g,y,v=Vs(t);if(sg.insert(e,v),e||n){if(e===n)return Qs(e),n=Vs(e.site),sg.insert(v,n),v.edge=n.edge=zs(e.site,v.site),Ys(e),Ys(n),0;n?(Qs(e),Qs(n),c=(l=e.site)[0],y=l[1],u=t[0]-c,h=t[1]-y,f=(d=n.site)[0]-c,p=d[1]-y,Rs(n.edge,l,d,y=[(p*(m=u*u+h*h)-h*(g=f*f+p*p))/(h=2*(u*p-h*f))+c,(u*g-f*m)/h+y]),v.edge=zs(l,t,null,y),n.edge=zs(t,d,null,y),Ys(e),Ys(n)):v.edge=zs(e.site,v.site)}}function Js(t,e){var n=t.site,i=n[0],a=n[1],o=a-e;if(!o)return i;var s=t.P;if(!s)return-1/0;var r=(n=s.site)[0],l=n[1],t=l-e;if(!t)return r;s=r-i,n=1/o-1/t,e=s/t;return n?(-e+Math.sqrt(e*e-2*n*(s*s/(-2*t)-l+t/2+a-o/2)))/n+i:(i+r)/2}function qs(t,e){return e[1]-t[1]||e[0]-t[0]}function Ks(t,e){var n,i,a,o,s,r,l=t.sort(qs).pop();for(cg=[],rg=new Array(t.length),sg=new Ss,lg=new Ss;;)if(a=og,l&&(!a||l[1]<a.y||l[1]===a.y&&l[0]<a.x))l[0]===n&&l[1]===i||(Zs(l),n=l[0],i=l[1]),l=t.pop();else{if(!a)break;!function(t){var e=t.circle,n=e.x,i=e.cy,a=[n,i],o=t.P,s=t.N,r=[t];Gs(t);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<fg&&Math.abs(i-l.circle.cy)<fg;)o=l.P,r.unshift(l),Gs(l),l=o;r.unshift(l),Qs(l);for(var c=s;c.circle&&Math.abs(n-c.circle.x)<fg&&Math.abs(i-c.circle.cy)<fg;)s=c.N,r.push(c),Gs(c),c=s;r.push(c),Qs(c);for(var u=r.length,d=1;d<u;++d)c=r[d],l=r[d-1],Rs(c.edge,l.site,c.site,a);l=r[0],(c=r[u-1]).edge=zs(l.site,c.site,null,a),Ys(l),Ys(c)}(a.arc)}Bs(),e&&(Fs(o=+e[0][0],s=+e[0][1],r=+e[1][0],e=+e[1][1]),function(t,e,n,i){var a,o,s,r,l,c,u,d,f,p,h=rg.length,m=!0;for(I=0;I<h;++I)if(a=rg[I]){for(o=a.site,s=(r=a.halfedges).length;s--;)cg[r[s]]||r.splice(s,1);for(s=0,l=r.length;s<l;)f=a,u=(c=(p=cg[r[s]])[+(p.left===f.site)])[0],d=c[1],f=(p=Us(a,cg[r[++s%l]]))[0],p=p[1],(Math.abs(u-f)>fg||Math.abs(d-p)>fg)&&(r.splice(s,0,cg.push(Ps(o,c,Math.abs(u-t)<fg&&fg<i-d?[t,Math.abs(f-t)<fg?p:i]:Math.abs(d-i)<fg&&fg<n-u?[Math.abs(p-i)<fg?f:n,i]:Math.abs(u-n)<fg&&fg<d-e?[n,Math.abs(f-n)<fg?p:e]:Math.abs(d-e)<fg&&fg<u-t?[Math.abs(p-e)<fg?f:t,e]:null))-1),++l);l&&(m=!1)}if(m){for(var g,y,v,D,b,A=1/0,I=0,m=null;I<h;++I)(a=rg[I])&&(g=(g=(o=a.site)[0]-t)*g+(g=o[1]-e)*g)<A&&(A=g,m=a);m&&(D=[n,i],b=[n,e],m.halfedges.push(cg.push(Ps(o=m.site,y=[t,e],v=[t,i]))-1,cg.push(Ps(o,v,D))-1,cg.push(Ps(o,D,b))-1,cg.push(Ps(o,b,y))-1))}for(I=0;I<h;++I)(a=rg[I])&&(a.halfedges.length||delete rg[I])}(o,s,r,e)),this.edges=cg,this.cells=rg,sg=lg=cg=rg=null}function Xs(t,e,n){this.target=t,this.type=e,this.transform=n}function $s(t,e,n){this.k=t,this.x=e,this.y=n}function tr(t){return t.__zoom||mg}function er(){U.event.stopImmediatePropagation()}function nr(){return!U.event.button}function ir(){var t,e=this,e=e instanceof SVGElement?(t=(e=e.ownerSVGElement||e).width.baseVal.value,e.height.baseVal.value):(t=e.clientWidth,e.clientHeight);return[[0,0],[t,e]]}function ar(){return this.__zoom||mg}function or(){return-U.event.deltaY*(U.event.deltaMode?120:1)/500}function sr(){return"ontouchstart"in this}function rr(o){return 1===o.length&&(n=o,o=function(t,e){return Dr(n(t),e)}),{left:function(t,e,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n<i;){var a=n+i>>>1;o(t[a],e)<0?n=1+a:i=a}return n},right:function(t,e,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n<i;){var a=n+i>>>1;0<o(t[a],e)?i=a:n=1+a}return n}};var n}function lr(t,e){var n,i,a=t.length,o=0,s=-1,r=0,l=0;if(null==e)for(;++s<a;)isNaN(n=Mr(t[s]))||(l+=(i=n-r)*(n-(r+=i/++o)));else for(;++s<a;)isNaN(n=Mr(e(t[s],s,t)))||(l+=(i=n-r)*(n-(r+=i/++o)));if(1<o)return l/(o-1)}function cr(t,e){return(e=lr(t,e))&&Math.sqrt(e)}function ur(t,e){var n,i,a,o=t.length,s=-1;if(null==e){for(;++s<o;)if(null!=(n=t[s])&&n<=n)for(i=a=n;++s<o;)null!=(n=t[s])&&(n<i&&(i=n),a<n&&(a=n))}else for(;++s<o;)if(null!=(n=e(t[s],s,t))&&n<=n)for(i=a=n;++s<o;)null!=(n=e(t[s],s,t))&&(n<i&&(i=n),a<n&&(a=n));return[i,a]}function dr(t){return function(){return t}}function fr(t){return t}function pr(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function hr(t,e,n){if(null==n&&(n=Mr),a=t.length){if((e=+e)<=0||a<2)return+n(t[0],0,t);if(1<=e)return+n(t[a-1],a-1,t);var i=(a-1)*e,a=Math.floor(i),e=+n(t[a],a,t);return e+(+n(t[a+1],a+1,t)-e)*(i-a)}}function mr(t){for(var e,n,i,a=t.length,o=-1,s=0;++o<a;)s+=t[o].length;for(n=new Array(s);0<=--a;)for(e=(i=t[a]).length;0<=--e;)n[--s]=i[e];return n}function gr(t,e){var n,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n<=n)for(i=n;++o<a;)null!=(n=t[o])&&n<i&&(i=n)}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n<=n)for(i=n;++o<a;)null!=(n=e(t[o],o,t))&&n<i&&(i=n);return i}function yr(t){if(!(a=t.length))return[];for(var e=-1,n=gr(t,r),i=new Array(n);++e<n;)for(var a,o=-1,s=i[e]=new Array(a);++o<a;)s[o]=t[o][e];return i}function vr(t){return t}var Dr=function(t,e){return t<e?-1:e<t?1:e<=t?0:NaN},br=rr(Dr),Ar=br.right,Ir=br.left,Mr=function(t){return null===t?NaN:+t},wr=Array.prototype,Cr=wr.slice,_r=wr.map,Tr=function(t,e,n){t=+t,e=+e,n=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+n;for(var i=-1,a=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(a);++i<a;)o[i]=t+i*n;return o},kr=Math.sqrt(50),xr=Math.sqrt(10),Nr=Math.sqrt(2),Sr=function(t,e,n){var i,a,o,s=e<t,r=-1;if(s&&(i=t,t=e,e=i),0===(o=c(t,e,n))||!isFinite(o))return[];if(0<o)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++r<i;)a[r]=(t+r)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++r<i;)a[r]=(t-r)/o;return s&&a.reverse(),a},Er=Array.prototype.slice,jr={value:function(){}};a.prototype=j.prototype={constructor:a,on:function(t,e){var n,i,a=this._,o=(i=a,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),s=-1,r=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<r;)if(n=(t=o[s]).type)a[n]=l(a[n],t.name,e);else if(null==e)for(n in a)a[n]=l(a[n],t.name,null);return this}for(;++s<r;)if((n=(t=o[s]).type)&&(n=function(t,e){for(var n,i=0,a=t.length;i<a;++i)if((n=t[i]).name===e)return n.value}(a[n],t.name)))return n},copy:function(){var t,e={},n=this._;for(t in n)e[t]=n[t].slice();return new a(e)},call:function(t,e){if(0<(n=arguments.length-2))for(var n,i,a=new Array(n),o=0;o<n;++o)a[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,a)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],a=0,o=i.length;a<o;++a)i[a].value.apply(e,n)}};function Or(t){var e=t+="",n=e.indexOf(":");return 0<=n&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Pr.hasOwnProperty(e)?{space:Pr[e],local:t}:t}function Lr(t){return((t=Or(t)).local?o:i)(t)}var zr="http://www.w3.org/1999/xhtml",Pr={svg:"http://www.w3.org/2000/svg",xhtml:zr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Rr=0;d.prototype=s.prototype={constructor:d,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Fr,Ur=function(t){return function(){return this.matches(t)}};"undefined"!=typeof document&&((Zm=document.documentElement).matches||(Fr=Zm.webkitMatchesSelector||Zm.msMatchesSelector||Zm.mozMatchesSelector||Zm.oMatchesSelector,Ur=function(t){return function(){return Fr.call(this,t)}}));var Br=Ur,Hr={};U.event=null,"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Hr={mouseenter:"mouseover",mouseleave:"mouseout"}));function Yr(t){var e=Gr();return e.changedTouches&&(e=e.changedTouches[0]),Zr(t,e)}function Qr(t){return null==t?g:function(){return this.querySelector(t)}}function Wr(t){return null==t?y:function(){return this.querySelectorAll(t)}}function Vr(t){return new Array(t.length)}var Gr=function(){for(var t,e=U.event;t=e.sourceEvent;)e=t;return e},Zr=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]};v.prototype={constructor:v,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Jr=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};x.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){t=this._names.indexOf(t);0<=t&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return 0<=this._names.indexOf(t)}};var qr=[null];H.prototype=Y.prototype={constructor:H,select:function(t){"function"!=typeof t&&(t=Qr(t));for(var e=this._groups,n=e.length,i=new Array(n),a=0;a<n;++a)for(var o,s,r=e[a],l=r.length,c=i[a]=new Array(l),u=0;u<l;++u)(o=r[u])&&(s=t.call(o,o.__data__,u,r))&&("__data__"in o&&(s.__data__=o.__data__),c[u]=s);return new H(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=Wr(t));for(var e=this._groups,n=e.length,i=[],a=[],o=0;o<n;++o)for(var s,r=e[o],l=r.length,c=0;c<l;++c)(s=r[c])&&(i.push(t.call(s,s.__data__,c,r)),a.push(s));return new H(i,a)},filter:function(t){"function"!=typeof t&&(t=Br(t));for(var e=this._groups,n=e.length,i=new Array(n),a=0;a<n;++a)for(var o,s=e[a],r=s.length,l=i[a]=[],c=0;c<r;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new H(i,this._parents)},data:function(t,e){if(!t)return h=new Array(this.size()),u=-1,this.each(function(t){h[++u]=t}),h;var n,i=e?M:I,a=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var s=o.length,r=new Array(s),l=new Array(s),c=new Array(s),u=0;u<s;++u){var d=a[u],f=o[u],p=f.length,h=t.call(d,d&&d.__data__,u,a),m=h.length,g=l[u]=new Array(m),y=r[u]=new Array(m);i(d,f,g,y,c[u]=new Array(p),h,e);for(var v,D,b=0,A=0;b<m;++b)if(v=g[b]){for(A<=b&&(A=b+1);!(D=y[A])&&++A<m;);v._next=D||null}}return(r=new H(r,a))._enter=l,r._exit=c,r},enter:function(){return new H(this._enter||this._groups.map(Vr),this._parents)},exit:function(){return new H(this._exit||this._groups.map(Vr),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,t=n.length,a=Math.min(i,t),o=new Array(i),s=0;s<a;++s)for(var r,l=e[s],c=n[s],u=l.length,d=o[s]=new Array(u),f=0;f<u;++f)(r=l[f]||c[f])&&(d[f]=r);for(;s<i;++s)o[s]=e[s];return new H(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,a=t[e],o=a.length-1,s=a[o];0<=--o;)(i=a[o])&&(s&&s!==i.nextSibling&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(n){n=n||D;for(var t=this._groups,e=t.length,i=new Array(e),a=0;a<e;++a){for(var o,s=t[a],r=s.length,l=i[a]=new Array(r),c=0;c<r;++c)(o=s[c])&&(l[c]=o);l.sort(function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e})}return new H(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],a=0,o=i.length;a<o;++a){var s=i[a];if(s)return s}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var a,o=e[n],s=0,r=o.length;s<r;++s)(a=o[s])&&t.call(a,a.__data__,s,o);return this},attr:function(t,e){var n=Or(t);if(arguments.length<2){t=this.node();return n.local?t.getAttributeNS(n.space,n.local):t.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}:function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return 1<arguments.length?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(e,n,i){return function(){var t=n.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,i)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):A(this.node(),t)},property:function(t,e){return 1<arguments.length?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(e,n){return function(){var t=n.apply(this,arguments);null==t?delete this[e]:this[e]=t}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=b(t+"");if(arguments.length<2){for(var i=k(this.node()),a=-1,o=n.length;++a<o;)if(!i.contains(n[a]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?N:S)(this,t)}}:e?function(t){return function(){N(this,t)}}:function(t){return function(){S(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?E:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?L:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(z)},lower:function(){return this.each(P)},append:function(t){var e="function"==typeof t?t:Lr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Lr(t),i=null==e?R:"function"==typeof e?e:Qr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(F)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,a,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return 0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),s=o.length;if(!(arguments.length<2)){for(r=e?m:h,null==n&&(n=!1),i=0;i<s;++i)this.each(r(o[i],e,n));return this}var r=this.node().__on;if(r)for(var l,c=0,u=r.length;c<u;++c)for(i=0,l=r[c];i<s;++i)if((a=o[i]).type===l.type&&a.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return B(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return B(this,t,e)}})(t,e))}};function Kr(t,e,n){arguments.length<3&&(n=e,e=Gr().changedTouches);for(var i,a=0,o=e?e.length:0;a<o;++a)if((i=e[a]).identifier===n)return Zr(t,i);return null}function Xr(t){var e=t.document.documentElement,t=tl(t).on("dragstart.drag",el,!0);"onselectstart"in e?t.on("selectstart.drag",el,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function $r(t){return function(){return t}}var tl=function(t){return"string"==typeof t?new H([[document.querySelector(t)]],[document.documentElement]):new H([[t]],qr)},el=function(){U.event.preventDefault(),U.event.stopImmediatePropagation()};V.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function nl(t,e,n){(t.prototype=e.prototype=n).constructor=t}var il="\\s*([+-]?\\d+)\\s*",al="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ol="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sl=/^#([0-9a-f]{3})$/,rl=/^#([0-9a-f]{6})$/,ll=new RegExp("^rgb\\("+[il,il,il]+"\\)$"),cl=new RegExp("^rgb\\("+[ol,ol,ol]+"\\)$"),ul=new RegExp("^rgba\\("+[il,il,il,al]+"\\)$"),dl=new RegExp("^rgba\\("+[ol,ol,ol,al]+"\\)$"),fl=new RegExp("^hsl\\("+[al,ol,ol]+"\\)$"),pl=new RegExp("^hsla\\("+[al,ol,ol,al]+"\\)$"),hl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};nl(X,$,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),nl(at,it,K(X,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new at(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new at(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),nl(rt,st,K(X,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,e=n+(n<.5?n:1-n)*e,n=2*n-e;return new at(lt(240<=t?t-240:120+t,n,e),lt(t,n,e),lt(t<120?240+t:t-120,n,e),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var ml=Math.PI/180,gl=180/Math.PI,yl=.95047,vl=1,Dl=1.08883,bl=4/29,Al=6/29*3*(6/29),Il=6/29*(6/29)*(6/29);nl(dt,ut,K(X,{brighter:function(t){return new dt(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new dt(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200,t=vl*pt(t);return new at(ht(3.2404542*(e=yl*pt(e))-1.5371385*t-.4985314*(n=Dl*pt(n))),ht(-.969266*e+1.8760108*t+.041556*n),ht(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),nl(yt,gt,K(X,{brighter:function(t){return new yt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new yt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return ct(this).rgb()}}));var Ml=-.29227,wl=-.90649,Cl=1.97294,_l=Cl*wl,Tl=1.78277*Cl,kl=1.78277*Ml- -.14861*wl;nl(Dt,vt,K(X,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Dt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Dt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*ml,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),i=Math.cos(t),t=Math.sin(t);return new at(255*(e+n*(-.14861*i+1.78277*t)),255*(e+n*(Ml*i+wl*t)),255*(e+Cl*i*n),this.opacity)}}));function xl(s){var r=s.length-1;return function(t){var e=t<=0?t=0:1<=t?r-(t=1):Math.floor(t*r),n=s[e],i=s[e+1],a=0<e?s[e-1]:2*n-i,o=e<r-1?s[e+2]:2*i-n;return bt((t-e/r)*r,a,n,i,o)}}function Nl(s){var r=s.length;return function(t){var e=Math.floor(((t%=1)<0?++t:t)*r),n=s[(e+r-1)%r],i=s[e%r],a=s[(e+1)%r],o=s[(e+2)%r];return bt((t-e/r)*r,n,i,a,o)}}function Sl(t,e,n,i,a,o){var s,r,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(r=Math.sqrt(n*n+i*i))&&(n/=r,i/=r,l/=r),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*Xl,skewX:Math.atan(l)*Xl,scaleX:s,scaleY:r}}function El(t,e){var i,a,o,n,s=t[0],r=t[1],l=t[2],c=e[0],t=e[1],e=e[2],u=c-s,d=t-r;return(n=(c=u*u+d*d)<1e-12?(o=Math.log(e/l)/nc,function(t){return[s+t*u,r+t*d,l*Math.exp(nc*t*o)]}):(i=Math.sqrt(c),t=(e*e-l*l+4*c)/(2*l*2*i),n=(e*e-l*l-4*c)/(2*e*2*i),a=Math.log(Math.sqrt(t*t+1)-t),o=(Math.log(Math.sqrt(n*n+1)-n)-a)/nc,function(t){var e=t*o,n=Tt(a),t=l/(2*i)*(n*(t=nc*e+a,((t=Math.exp(2*t))-1)/(t+1))-(t=a,((t=Math.exp(a))-1/t)/2));return[s+t*u,r+t*d,l*n/Tt(nc*e+a)]})).duration=1e3*o,n}var jl,Ol,Ll,zl,Pl,Rl,Fl=function(t){return function(){return t}},Ul=function t(e){function n(e,t){var n=s((e=it(e)).r,(t=it(t)).r),i=s(e.g,t.g),a=s(e.b,t.b),o=wt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}var s=Mt(e);return n.gamma=t,n}(1),Bl=Ct(xl),Hl=Ct(Nl),Yl=function(t,e){for(var n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(n),o=new Array(n),s=0;s<i;++s)a[s]=ql(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(t){for(s=0;s<i;++s)o[s]=a[s](t);return o}},Ql=function(e,n){var i=new Date;return n-=e=+e,function(t){return i.setTime(e+n*t),i}},Wl=function(e,n){return n-=e=+e,function(t){return e+n*t}},Vl=function(t,e){var n,i={},a={};for(n in null!==t&&"object"==typeof t||(t={}),e=null===e||"object"!=typeof e?{}:e)n in t?i[n]=ql(t[n],e[n]):a[n]=e[n];return function(t){for(n in i)a[n]=i[n](t);return a}},Gl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zl=new RegExp(Gl.source,"g"),Jl=function(t,i){var e,n,a,o,s,r=Gl.lastIndex=Zl.lastIndex=0,l=-1,c=[],u=[];for(t+="",i+="";(e=Gl.exec(t))&&(n=Zl.exec(i));)(a=n.index)>r&&(a=i.slice(r,a),c[l]?c[l]+=a:c[++l]=a),(e=e[0])===(n=n[0])?c[l]?c[l]+=n:c[++l]=n:(c[++l]=null,u.push({i:l,x:Wl(e,n)})),r=Zl.lastIndex;return r<i.length&&(a=i.slice(r),c[l]?c[l]+=a:c[++l]=a),c.length<2?u[0]?(s=u[0].x,function(t){return s(t)+""}):(o=i,function(){return o}):(i=u.length,function(t){for(var e,n=0;n<i;++n)c[(e=u[n]).i]=e.x(t);return c.join("")})},ql=function(t,e){var n=typeof e;return null==e||"boolean"==n?Fl(e):("number"==n?Wl:"string"==n?(n=$(e))?(e=n,Ul):Jl:e instanceof $?Ul:e instanceof Date?Ql:Array.isArray(e)?Yl:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Vl:Wl)(t,e)},Kl=function(e,n){return n-=e=+e,function(t){return Math.round(e+n*t)}},Xl=180/Math.PI,$l={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},tc=_t(function(t){return"none"===t?$l:(jl||(jl=document.createElement("DIV"),Ol=document.documentElement,Ll=document.defaultView),jl.style.transform=t,t=Ll.getComputedStyle(Ol.appendChild(jl),null).getPropertyValue("transform"),Ol.removeChild(jl),t=t.slice(7,-1).split(","),Sl(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),ec=_t(function(t){return null==t?$l:((zl=zl||document.createElementNS("http://www.w3.org/2000/svg","g")).setAttribute("transform",t),(t=zl.transform.baseVal.consolidate())?(t=t.matrix,Sl(t.a,t.b,t.c,t.d,t.e,t.f)):$l)},", ",")",")"),nc=Math.SQRT2,ic=kt(It),ac=kt(wt),oc=xt(It),sc=xt(wt),rc=Nt(It),lc=Nt(wt),cc=0,uc=0,dc=0,fc=1e3,pc=0,hc=0,mc=0,gc="object"==typeof performance&&performance.now?performance:Date,yc="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};jt.prototype=Ot.prototype={constructor:jt,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?St():+n)+(null==e?0:+e),this._next||Rl===this||(Rl?Rl._next=this:Pl=this,Rl=this),this._call=t,this._time=n,Rt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rt())}};function vc(t,e,n,i,a,o){var s,r,l,c,u,d=t.__transition;if(d){if(n in d)return}else t.__transition={};function f(t){var e,n,i,a;if(l.state!==Cc)return h();for(e in u)if((a=u[e]).name===l.name){if(a.state===Tc)return Ac(f);a.state===kc?(a.state=Nc,a.timer.stop(),a.on.call("interrupt",s,s.__data__,a.index,a.group),delete u[e]):+e<r&&(a.state=Nc,a.timer.stop(),delete u[e])}if(Ac(function(){l.state===Tc&&(l.state=kc,l.timer.restart(p,l.delay,l.time),p(t))}),l.state=_c,l.on.call("start",s,s.__data__,l.index,l.group),l.state===_c){for(l.state=Tc,c=new Array(i=l.tween.length),e=0,n=-1;e<i;++e)(a=l.tween[e].value.call(s,s.__data__,l.index,l.group))&&(c[++n]=a);c.length=n+1}}function p(t){for(var e=t<l.duration?l.ease.call(null,t/l.duration):(l.timer.restart(h),l.state=xc,1),n=-1,i=c.length;++n<i;)c[n].call(null,e);l.state===xc&&(l.on.call("end",s,s.__data__,l.index,l.group),h())}function h(){for(var t in l.state=Nc,l.timer.stop(),delete u[r],u)return;delete s.__transition}s=t,r=n,l={name:e,index:i,group:a,on:Ic,tween:Mc,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:wc},((u=s.__transition)[r]=l).timer=Ot(function(t){l.state=Cc,l.timer.restart(f,l.delay,l.time),l.delay<=t&&f(t-l.delay)},0,l.time)}function Dc(t,e){var n,i,a,o=t.__transition,s=!0;if(o){for(a in e=null==e?null:e+"",o)(n=o[a]).name===e?(i=n.state>_c&&n.state<xc,n.state=Nc,n.timer.stop(),i&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete o[a]):s=!1;s&&delete t.__transition}}function bc(t,e){var n;return("number"==typeof e?Wl:e instanceof $?Ul:(n=$(e))?(e=n,Ul):Jl)(t,e)}var Ac=function(e,n,t){var i=new jt;return n=null==n?0:+n,i.restart(function(t){i.stop(),e(t+n)},n,t),i},Ic=j("start","end","interrupt"),Mc=[],wc=0,Cc=1,_c=2,Tc=3,kc=4,xc=5,Nc=6,Sc=Y.prototype.constructor,Ec=0,jc=Y.prototype;Yt.prototype=Qt.prototype={constructor:Yt,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Qr(t));for(var i=this._groups,a=i.length,o=new Array(a),s=0;s<a;++s)for(var r,l,c=i[s],u=c.length,d=o[s]=new Array(u),f=0;f<u;++f)(r=c[f])&&(l=t.call(r,r.__data__,f,c))&&("__data__"in r&&(l.__data__=r.__data__),d[f]=l,vc(d[f],e,n,f,d,Bt(r,n)));return new Yt(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Wr(t));for(var i=this._groups,a=i.length,o=[],s=[],r=0;r<a;++r)for(var l,c=i[r],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var f,p=t.call(l,l.__data__,d,c),h=Bt(l,n),m=0,g=p.length;m<g;++m)(f=p[m])&&vc(f,e,n,m,p,h);o.push(p),s.push(l)}return new Yt(o,s,e,n)},filter:function(t){"function"!=typeof t&&(t=Br(t));for(var e=this._groups,n=e.length,i=new Array(n),a=0;a<n;++a)for(var o,s=e[a],r=s.length,l=i[a]=[],c=0;c<r;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new Yt(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,t=n.length,a=Math.min(i,t),o=new Array(i),s=0;s<a;++s)for(var r,l=e[s],c=n[s],u=l.length,d=o[s]=new Array(u),f=0;f<u;++f)(r=l[f]||c[f])&&(d[f]=r);for(;s<i;++s)o[s]=e[s];return new Yt(o,this._parents,this._name,this._id)},selection:function(){return new Sc(this._groups,this._parents)},transition:function(){for(var t,e=this._name,n=this._id,i=++Ec,a=this._groups,o=a.length,s=0;s<o;++s)for(var r,l=a[s],c=l.length,u=0;u<c;++u)(r=l[u])&&(t=Bt(r,n),vc(r,e,i,u,l,{time:t.time+t.delay+t.duration,delay:0,duration:t.duration,ease:t.ease}));return new Yt(a,this._parents,e,i)},call:jc.call,nodes:jc.nodes,node:jc.node,size:jc.size,empty:jc.empty,each:jc.each,on:function(t,e){var n,i,a,o,s,r,l=this._id;return arguments.length<2?Bt(this.node(),l).on.on(t):this.each((n=l,a=e,r=((i=t)+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return!(t=0<=e?t.slice(0,e):t)||"start"===t})?Ft:Ut,function(){var t=r(this,n),e=t.on;e!==o&&(s=(o=e).copy()).on(i,a),t.on=s}))},attr:function(t,e){var n=Or(t),i="transform"===n?ec:bc;return this.attrTween(t,"function"==typeof e?(n.local?function(n,i,a){var o,s,r;return function(){var t,e=a(this);if(null!=e)return(t=this.getAttributeNS(n.space,n.local))===e?null:t===o&&e===s?r:r=i(o=t,s=e);this.removeAttributeNS(n.space,n.local)}}:function(n,i,a){var o,s,r;return function(){var t,e=a(this);if(null!=e)return(t=this.getAttribute(n))===e?null:t===o&&e===s?r:r=i(o=t,s=e);this.removeAttribute(n)}})(n,i,Ht(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(e,n,i){var a,o;return function(){var t=this.getAttributeNS(e.space,e.local);return t===i?null:t===a?o:o=n(a=t,i)}}:function(e,n,i){var a,o;return function(){var t=this.getAttribute(e);return t===i?null:t===a?o:o=n(a=t,i)}})(n,i,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;t=Or(t);return this.tween(n,(t.local?function(i,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttributeNS(i.space,i.local,n(t))}}return e._value=t,e}:function(i,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttribute(i,n(t))}}return e._value=t,e})(t,e))},style:function(t,e,n){var i,a,o,s,r,l,c,u,d,f,p,h,m,g,y,v,D,b="transform"==(t+="")?tc:bc;return null==e?this.styleTween(t,(m=t,g=b,function(){var t=A(this,m),e=(this.style.removeProperty(m),A(this,m));return t===e?null:t===y&&e===v?D:D=g(y=t,v=e)})).on("end.style."+t,(h=t,function(){this.style.removeProperty(h)})):this.styleTween(t,"function"==typeof e?(c=b,u=Ht(this,"style."+(l=t),e),function(){var t=A(this,l),e=u(this);return null==e&&(this.style.removeProperty(l),e=A(this,l)),t===e?null:t===d&&e===f?p:p=c(d=t,f=e)}):(i=t,a=b,o=e+"",function(){var t=A(this,i);return t===o?null:t===s?r:r=a(s=t,o)}),n)},styleTween:function(t,e,n){var i,a,o,s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,(i=t,o=null==n?"":n,r._value=a=e,r));function r(){var e=this,n=a.apply(e,arguments);return n&&function(t){e.style.setProperty(i,n(t),o)}}},text:function(t){return this.tween("text","function"==typeof t?(n=Ht(this,"text",t),function(){var t=n(this);this.textContent=null==t?"":t}):(e=null==t?"":t+"",function(){this.textContent=e}));var e,n},remove:function(){return this.on("end.remove",(n=this._id,function(){var t,e=this.parentNode;for(t in this.__transition)if(+t!==n)return;e&&e.removeChild(this)}));var n},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,a=Bt(this.node(),n).tween,o=0,s=a.length;o<s;++o)if((i=a[o]).name===t)return i.value;return null}return this.each((null==e?function(a,o){var s,r;return function(){var t=Ut(this,a),e=t.tween;if(e!==s)for(var n=0,i=(r=s=e).length;n<i;++n)if(r[n].name===o){(r=r.slice()).splice(n,1);break}t.tween=r}}:function(o,s,r){var l,c;if("function"!=typeof r)throw new Error;return function(){var t=Ut(this,o),e=t.tween;if(e!==l){c=(l=e).slice();for(var n={name:s,value:r},i=0,a=c.length;i<a;++i)if(c[i].name===s){c[i]=n;break}i===a&&c.push(n)}t.tween=c}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Ft(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Ft(this,t).delay=e}})(e,t)):Bt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Ut(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Ut(this,t).duration=e}})(e,t)):Bt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Ut(this,t).ease=e}}(e,t)):Bt(this.node(),e).ease}};var Oc=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Lc=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),zc=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Pc=Math.PI,Rc=Pc/2,Fc=7.5625,Uc=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),Bc=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),Hc=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),Yc=2*Math.PI,Qc=function e(n,i){function t(t){return n*Math.pow(2,10*--t)*Math.sin((a-t)/i)}var a=Math.asin(1/(n=Math.max(1,n)))*(i/=Yc);return t.amplitude=function(t){return e(t,i*Yc)},t.period=function(t){return e(n,t)},t}(1,.3),Wc=function e(n,i){function t(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+a)/i)}var a=Math.asin(1/(n=Math.max(1,n)))*(i/=Yc);return t.amplitude=function(t){return e(t,i*Yc)},t.period=function(t){return e(n,t)},t}(1,.3),Vc=function e(n,i){function t(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((a-t)/i):2-n*Math.pow(2,-10*t)*Math.sin((a+t)/i))/2}var a=Math.asin(1/(n=Math.max(1,n)))*(i/=Yc);return t.amplitude=function(t){return e(t,i*Yc)},t.period=function(t){return e(n,t)},t}(1,.3),Gc={time:null,delay:0,duration:250,ease:Vt};Y.prototype.interrupt=function(t){return this.each(function(){Dc(this,t)})},Y.prototype.transition=function(t){var e,n;t=t instanceof Yt?(e=t._id,t._name):(e=++Ec,(n=Gc).time=St(),null==t?null:t+"");for(var i=this._groups,a=i.length,o=0;o<a;++o)for(var s,r=i[o],l=r.length,c=0;c<l;++c)(s=r[c])&&vc(s,t,e,c,r,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Gc.time=St(),Gc;return n}(s,e));return new Yt(i,this._parents,t,e)};function Zc(t){return function(){return t}}function Jc(t,e,n){this.target=t,this.type=e,this.selection=n}function qc(){U.event.preventDefault(),U.event.stopImmediatePropagation()}function Kc(t){return function(){return t}}var Xc=[null],$c={name:"drag"},tu={name:"space"},eu={name:"handle"},nu={name:"center"},iu={name:"x",handles:["e","w"].map(Xt),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},au={name:"y",handles:["n","s"].map(Xt),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},ou={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(Xt),input:function(t){return t},output:function(t){return t}},su={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ru={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},lu={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},cu={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},uu={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},du=Math.cos,fu=Math.sin,pu=Math.PI,hu=pu/2,mu=2*pu,gu=Math.max,yu=Array.prototype.slice,vu=Math.PI,Du=2*vu,bu=Du-1e-6;ae.prototype=oe.prototype={constructor:ae,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,a,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(t,e,n,i,a){var o,s,r=this._x1,l=this._y1,c=(n=+n)-(t=+t),u=(i=+i)-(e=+e),d=r-t,f=l-e,p=d*d+f*f;if((a=+a)<0)throw new Error("negative radius: "+a);null===this._x1?this._+="M"+(this._x1=t)+","+(this._y1=e):1e-6<p&&(1e-6<Math.abs(f*c-u*d)&&a?(s=c*c+u*u,r=(o=n-r)*o+(n=i-l)*n,i=Math.sqrt(s),l=Math.sqrt(p),l=(r=a*Math.tan((vu-Math.acos((s+p-r)/(2*i*l)))/2))/l,i=r/i,1e-6<Math.abs(l-1)&&(this._+="L"+(t+l*d)+","+(e+l*f)),this._+="A"+a+","+a+",0,0,"+ +(d*n<f*o)+","+(this._x1=t+i*c)+","+(this._y1=e+i*u)):this._+="L"+(this._x1=t)+","+(this._y1=e))},arc:function(t,e,n,i,a,o){t=+t,e=+e;var s=(n=+n)*Math.cos(i),r=n*Math.sin(i),l=t+s,c=e+r,u=1^o,i=o?i-a:a-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(1e-6<Math.abs(this._x1-l)||1e-6<Math.abs(this._y1-c))&&(this._+="L"+l+","+c),n&&(bu<(i=i<0?i%Du+Du:i)?this._+="A"+n+","+n+",0,1,"+u+","+(t-s)+","+(e-r)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):1e-6<i&&(this._+="A"+n+","+n+",0,"+ +(vu<=i)+","+u+","+(this._x1=t+n*Math.cos(a))+","+(this._y1=e+n*Math.sin(a))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},de.prototype=fe.prototype={constructor:de,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){t="$"+t;return t in this&&delete this[t]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t,e=[];for(t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var t,e=[];for(t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var t,e=[];for(t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var t,e=0;for(t in this)"$"===t[0]&&++e;return e},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var Au=fe.prototype;ye.prototype=ve.prototype={constructor:ye,has:Au.has,add:function(t){return this["$"+(t+="")]=t,this},remove:Au.remove,clear:Au.clear,values:Au.keys,size:Au.size,empty:Au.empty,each:Au.each};function Iu(o){function e(a,t){function e(){if(l<=c)return r;if(o)return o=!1,s;var t,e=c;if(34===a.charCodeAt(e)){for(var n=e;n++<l;)if(34===a.charCodeAt(n)){if(34!==a.charCodeAt(n+1))break;++n}return c=n+2,13===(t=a.charCodeAt(n+1))?(o=!0,10===a.charCodeAt(n+2)&&++c):10===t&&(o=!0),a.slice(e+1,n).replace(/""/g,'"')}for(;c<l;){var i=1;if(10===(t=a.charCodeAt(c++)))o=!0;else if(13===t)o=!0,10===a.charCodeAt(c)&&(++c,++i);else if(t!==f)continue;return a.slice(e,c-i)}return a.slice(e)}for(var n,o,s={},r={},i=[],l=a.length,c=0,u=0;(n=e())!==r;){for(var d=[];n!==s&&n!==r;)d.push(n),n=e();t&&null==(d=t(d,u++))||i.push(d)}return i}function n(t){return t.map(s).join(o)}function s(t){return null==t?"":i.test(t+="")?'"'+t.replace(/\"/g,'""')+'"':t}var i=new RegExp('["'+o+"\n\r]"),f=o.charCodeAt(0);return{parse:function(t,o){var s,r,t=e(t,function(t,e){return s?s(t,e-1):(r=t,void(s=o?(i=o,a=De(n=t),function(t,e){return i(a(t),e,n)}):De(t)));var n,i,a});return t.columns=r,t},parseRows:e,format:function(t,n){return null==n&&(e=t,i=Object.create(null),a=[],e.forEach(function(t){for(var e in t)e in i||a.push(i[e]=e)}),n=a),[n.map(s).join(o)].concat(t.map(function(e){return n.map(function(t){return s(e[t])}).join(o)})).join("\n");var e,i,a},formatRows:function(t){return t.map(n).join("\n")}}}function Mu(t){return function(){return t}}function wu(){return 1e-6*(Math.random()-.5)}function Cu(t,e,n,i,a){this.node=t,this.x0=e,this.y0=n,this.x1=i,this.y1=a}var _u=Iu(","),Tu=_u.parse,ku=_u.parseRows,xu=_u.format,Nu=_u.formatRows,Su=Iu("\t"),Eu=Su.parse,ju=Su.parseRows,Ou=Su.format,Lu=Su.formatRows,zu=Me.prototype=we.prototype;zu.copy=function(){var t,e,n=new we(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=Ce(i),n;for(t=[{source:i,target:n._root=new Array(4)}];i=t.pop();)for(var a=0;a<4;++a)(e=i.source[a])&&(e.length?t.push({source:e,target:i.target[a]=new Array(4)}):i.target[a]=Ce(e));return n},zu.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return be(this.cover(e,n),e,n,t)},zu.addAll=function(t){for(var e,n,i,a=t.length,o=new Array(a),s=new Array(a),r=1/0,l=1/0,c=-1/0,u=-1/0,d=0;d<a;++d)isNaN(n=+this._x.call(null,e=t[d]))||isNaN(i=+this._y.call(null,e))||((o[d]=n)<r&&(r=n),c<n&&(c=n),(s[d]=i)<l&&(l=i),u<i&&(u=i));for(c<r&&(r=this._x0,c=this._x1),u<l&&(l=this._y0,u=this._y1),this.cover(r,l).cover(c,u),d=0;d<a;++d)be(this,o[d],s[d],t[d]);return this},zu.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,a=this._x1,o=this._y1;if(isNaN(n))a=(n=Math.floor(t))+1,o=(i=Math.floor(e))+1;else{if(!(t<n||a<t||e<i||o<e))return this;var s,r,l=a-n,c=this._root;switch(r=(e<(i+o)/2)<<1|t<(n+a)/2){case 0:for(;(s=new Array(4))[r]=c,c=s,o=i+(l*=2),(a=n+l)<t||o<e;);break;case 1:for(;(s=new Array(4))[r]=c,c=s,o=i+(l*=2),t<(n=a-l)||o<e;);break;case 2:for(;(s=new Array(4))[r]=c,c=s,i=o-(l*=2),(a=n+l)<t||e<i;);break;case 3:for(;(s=new Array(4))[r]=c,c=s,i=o-(l*=2),t<(n=a-l)||e<i;);}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=a,this._y1=o,this},zu.data=function(){var e=[];return this.visit(function(t){if(!t.length)for(;e.push(t.data),t=t.next;);}),e},zu.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},zu.find=function(t,e,n){var i,a,o,s,r,l,c,u,d=this._x0,f=this._y0,p=this._x1,h=this._y1,m=[],g=this._root;for(g&&m.push(new Cu(g,d,f,p,h)),null==n?n=1/0:(d=t-n,f=e-n,p=t+n,h=e+n,n*=n);c=m.pop();)!(g=c.node)||(i=c.x0)>p||(a=c.y0)>h||(o=c.x1)<d||(s=c.y1)<f||(g.length?(m.push(new Cu(g[3],r=(i+o)/2,l=(a+s)/2,o,s),new Cu(g[2],i,l,r,s),new Cu(g[1],r,a,o,l),new Cu(g[0],i,a,r,l)),(r=(l<=e)<<1|r<=t)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-r],m[m.length-1-r]=c)):(c=(c=t-+this._x.call(null,g.data))*c+(c=e-+this._y.call(null,g.data))*c)<n&&(d=t-(c=Math.sqrt(n=c)),f=e-c,p=t+c,h=e+c,u=g.data));return u},zu.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var e,n,i,a,o,s,r,l,c,u,d,f=this._root,p=this._x0,h=this._y0,m=this._x1,g=this._y1;if(!f)return this;if(f.length)for(;;){if((l=o>=(c=(p+m)/2))?p=c:m=c,(c=s>=(r=(h+g)/2))?h=r:g=r,!(f=(e=f)[u=c<<1|l]))return this;if(!f.length)break;(e[u+1&3]||e[u+2&3]||e[u+3&3])&&(n=e,d=u)}for(;f.data!==t;)if(!(f=(i=f).next))return this;return(a=f.next)&&delete f.next,i?a?i.next=a:delete i.next:e?(a?e[u]=a:delete e[u],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f)):this._root=a,this},zu.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},zu.root=function(){return this._root},zu.size=function(){var e=0;return this.visit(function(t){if(!t.length)for(;++e,t=t.next;);}),e},zu.visit=function(t){var e,n,i,a,o,s,r,l=[],c=this._root;for(c&&l.push(new Cu(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)!t(c=e.node,n=e.x0,i=e.y0,a=e.x1,o=e.y1)&&c.length&&(s=(n+a)/2,r=(i+o)/2,(e=c[3])&&l.push(new Cu(e,s,r,a,o)),(e=c[2])&&l.push(new Cu(e,n,r,s,o)),(e=c[1])&&l.push(new Cu(e,s,i,a,r)),(e=c[0])&&l.push(new Cu(e,n,i,s,r)));return this},zu.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new Cu(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a,o,s,r,l,c,u,d=e.node;d.length&&(o=e.x0,s=e.y0,c=(o+(r=e.x1))/2,u=(s+(l=e.y1))/2,(a=d[0])&&n.push(new Cu(a,o,s,c,u)),(a=d[1])&&n.push(new Cu(a,c,s,r,u)),(a=d[2])&&n.push(new Cu(a,o,u,c,l)),(a=d[3])&&n.push(new Cu(a,c,u,r,l))),i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},zu.x=function(t){return arguments.length?(this._x=t,this):this._x},zu.y=function(t){return arguments.length?(this._y=t,this):this._y};function Pu(t,e){return(e=Uu(t,e))?(t=e[0],(e=e[1])<0?"0."+new Array(-e).join("0")+t:t.length>e+1?t.slice(0,e+1)+"."+t.slice(e+1):t+new Array(e-t.length+2).join("0")):t+""}var Ru,Fu=Math.PI*(3-Math.sqrt(5)),Uu=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,e=t.slice(0,n);return[1<e.length?e[0]+e.slice(2):e,+t.slice(n+1)]},Bu=function(t){return(t=Uu(Math.abs(t)))?t[1]:NaN},Hu=function(r,l){return function(t,e){for(var n=t.length,i=[],a=0,o=r[0],s=0;0<n&&0<o&&(e<s+o+1&&(o=Math.max(1,e-s)),i.push(t.substring(n-=o,n+o)),!((s+=o+1)>e));)o=r[a=(a+1)%r.length];return i.reverse().join(l)}},Yu=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}},Qu={"":function(t,e){t:for(var n,i=(t=t.toPrecision(e)).length,a=1,o=-1;a<i;++a)switch(t[a]){case".":o=n=a;break;case"0":0===o&&(o=a),n=a;break;case"e":break t;default:0<o&&(o=0)}return 0<o?t.slice(0,o)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Pu(100*t,e)},r:Pu,s:function(t,e){var n=Uu(t,e);if(!n)return t+"";var i=n[0],a=n[1],n=a-(Ru=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,a=i.length;return n===a?i:a<n?i+new Array(n-a+1).join("0"):0<n?i.slice(0,n)+"."+i.slice(n):"0."+new Array(1-n).join("0")+Uu(t,Math.max(0,e+n-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Wu=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;Ee.prototype=je.prototype,je.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};function Vu(t){function o(t){function e(t){var e,n,i,a=y,o=v;if("c"===g)o=D(t)+o,t="";else{var s=(t=+t)<0;if(t=D(Math.abs(t),m),a=((s=s&&0==+t?!1:s)?"("===d?d:"-":"-"===d||"("===d?"":d)+a,o=o+("s"===g?Ju[8+Ru/3]:"")+(s&&"("===d?")":""),b)for(e=-1,n=t.length;++e<n;)if((i=t.charCodeAt(e))<48||57<i){o=(46===i?I+t.slice(e+1):t.slice(e))+o,t=t.slice(0,e);break}}h&&!f&&(t=A(t,1/0));var r=a.length+t.length+o.length,l=r<p?new Array(p-r+1).join(c):"";switch(h&&f&&(t=A(l+t,l.length?p-o.length:1/0),l=""),u){case"<":t=a+t+o+l;break;case"=":t=a+l+t+o;break;case"^":t=l.slice(0,r=l.length>>1)+a+t+o+l.slice(r);break;default:t=l+a+t+o}return M(t)}var c=(t=Ee(t)).fill,u=t.align,d=t.sign,n=t.symbol,f=t.zero,p=t.width,h=t.comma,m=t.precision,g=t.type,y="$"===n?i[0]:"#"===n&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",v="$"===n?i[1]:/[%p]/.test(g)?a:"",D=Qu[g],b=!g||/[defgprs%]/.test(g),m=null==m?g?6:12:/[gprs]/.test(g)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m));return e.toString=function(){return t+""},e}var A=t.grouping&&t.thousands?Hu(t.grouping,t.thousands):Zu,i=t.currency,I=t.decimal,M=t.numerals?Yu(t.numerals):Zu,a=t.percent||"%";return{format:o,formatPrefix:function(t,e){var n=o(((t=Ee(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(Bu(e)/3))),i=Math.pow(10,-e),a=Ju[8+e/3];return function(t){return n(i*t)+a}}}}var Gu,Zu=function(t){return t},Ju=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Oe({decimal:".",thousands:",",grouping:[3],currency:["$",""]});function qu(t){return Math.max(0,-Bu(Math.abs(t)))}function Ku(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Bu(e)/3)))-Bu(Math.abs(t)))}function Xu(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Bu(e)-Bu(t))+1}function $u(){return new Le}Le.prototype={constructor:Le,reset:function(){this.s=this.t=0},add:function(t){ze(jd,t,this.t),ze(this,jd.s,this.s),this.s?this.t+=jd.t:this.s=jd.t},valueOf:function(){return this.s}};function td(t,e){t&&$d.hasOwnProperty(t.type)?$d[t.type](t,e):Be(t,e)}function ed(t){return function(){return t}}var nd,id,ad,od,sd,rd,ld,cd,ud,dd,fd,pd,hd,md,gd,yd,vd,Dd,bd,Ad,Id,Md,wd,Cd,_d,Td,kd,xd,Nd,Sd,Ed,jd=new Le,Od=1e-6,Ld=Math.PI,zd=Ld/2,Pd=Ld/4,Rd=2*Ld,Fd=180/Ld,Ud=Ld/180,Bd=Math.abs,Hd=Math.atan,Yd=Math.atan2,Qd=Math.cos,Wd=Math.ceil,Vd=Math.exp,Gd=Math.log,Zd=Math.pow,Jd=Math.sin,qd=Math.sign||function(t){return 0<t?1:t<0?-1:0},Kd=Math.sqrt,Xd=Math.tan,$d={Feature:function(t,e){Be(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,a=n.length;++i<a;)Be(n[i].geometry,e)}},tf={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,a=n.length;++i<a;)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){He(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,a=n.length;++i<a;)He(n[i],e,0)},Polygon:function(t,e){Ye(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,a=n.length;++i<a;)Ye(n[i],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,a=n.length;++i<a;)Be(n[i],e)}},ef=$u(),nf=$u(),af={point:Ue,lineStart:Ue,lineEnd:Ue,polygonStart:function(){ef.reset(),af.lineStart=Qe,af.lineEnd=We},polygonEnd:function(){var t=+ef;nf.add(t<0?Rd+t:t),this.lineStart=this.lineEnd=this.point=Ue},sphere:function(){nf.add(Rd)}},of=$u(),sf={point:en,lineStart:an,lineEnd:on,polygonStart:function(){sf.point=sn,sf.lineStart=rn,sf.lineEnd=ln,of.reset(),af.polygonStart()},polygonEnd:function(){af.polygonEnd(),sf.point=en,sf.lineStart=an,sf.lineEnd=on,ef<0?(rd=-(cd=180),ld=-(ud=90)):Od<of?ud=90:of<-Od&&(ld=-90),gd[0]=rd,gd[1]=cd}},rf={sphere:Ue,point:fn,lineStart:hn,lineEnd:yn,polygonStart:function(){rf.lineStart=vn,rf.lineEnd=Dn},polygonEnd:function(){rf.lineStart=hn,rf.lineEnd=yn}},lf=function(n,i){function t(t,e){return t=n(t,e),i(t[0],t[1])}return n.invert&&i.invert&&(t.invert=function(t,e){return(t=i.invert(t,e))&&n.invert(t[0],t[1])}),t};In.invert=In;function cf(e){function t(t){return(t=e(t[0]*Ud,t[1]*Ud))[0]*=Fd,t[1]*=Fd,t}return e=Mn(e[0]*Ud,e[1]*Ud,2<e.length?e[2]*Ud:0),t.invert=function(t){return(t=e.invert(t[0]*Ud,t[1]*Ud))[0]*=Fd,t[1]*=Fd,t},t}function uf(){var n,e=[];return{point:function(t,e){n.push([t,e])},lineStart:function(){e.push(n=[])},lineEnd:Ue,rejoin:function(){1<e.length&&e.push(e.pop().concat(e.shift()))},result:function(){var t=e;return e=[],n=null,t}}}function df(t,e,n,i,a,o){var s=t[0],r=t[1],l=0,c=1,u=e[0]-s,d=e[1]-r,n=n-s;if(u||!(0<n)){if(n/=u,u<0){if(n<l)return;n<c&&(c=n)}else if(0<u){if(c<n)return;l<n&&(l=n)}if(n=a-s,u||!(n<0)){if(n/=u,u<0){if(c<n)return;l<n&&(l=n)}else if(0<u){if(n<l)return;n<c&&(c=n)}if(n=i-r,d||!(0<n)){if(n/=d,d<0){if(n<l)return;n<c&&(c=n)}else if(0<d){if(c<n)return;l<n&&(l=n)}if(n=o-r,d||!(n<0)){if(n/=d,d<0){if(c<n)return;l<n&&(l=n)}else if(0<d){if(n<l)return;n<c&&(c=n)}return 0<l&&(t[0]=s+l*u,t[1]=r+l*d),c<1&&(e[0]=s+c*u,e[1]=r+c*d),1}}}}}function ff(t,e,n,i,o){var s,a,r=[],l=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],a=t[e];if(_f(i,a)){for(o.lineStart(),s=0;s<e;++s)o.point((i=t[s])[0],i[1]);o.lineEnd()}else r.push(n=new xn(i,t,null,!0)),l.push(n.o=new xn(i,null,n,!1)),r.push(n=new xn(a,t,null,!1)),l.push(n.o=new xn(a,null,n,!0))}}),r.length){for(l.sort(e),Nn(r),Nn(l),s=0,a=l.length;s<a;++s)l[s].e=n=!n;for(var c,u,d=r[0];;){for(var f=d,p=!0;f.v;)if((f=f.n)===d)return;c=f.z,o.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(s=0,a=c.length;s<a;++s)o.point((u=c[s])[0],u[1]);else i(f.x,f.n.x,1,o);f=f.n}else{if(p)for(c=f.p.z,s=c.length-1;0<=s;--s)o.point((u=c[s])[0],u[1]);else i(f.x,f.p.x,-1,o);f=f.p}}while(c=(f=f.o).z,p=!p,!f.v);o.lineEnd()}}}function pf(t,e){var n=e[0],i=e[1],a=[Jd(n),-Qd(n),0],o=0,s=0;xf.reset();for(var r=0,l=t.length;r<l;++r)if(u=(c=t[r]).length)for(var c,u,d=c[u-1],f=d[0],p=d[1]/2+Pd,h=Jd(p),m=Qd(p),g=0;g<u;++g,f=v,h=b,m=A,d=y){var y=c[g],v=y[0],D=y[1]/2+Pd,b=Jd(D),A=Qd(D),I=v-f,M=0<=I?1:-1,w=M*I,C=Ld<w,D=h*b;xf.add(Yd(D*M*Jd(w),m*A+D*Qd(w))),o+=C?I+M*Rd:I,C^n<=f^n<=v&&(tn(w=Ke(Je(d),Je(y))),tn(M=Ke(a,w)),((M=(C^0<=I?-1:1)*Re(M[2]))<i||i===M&&(w[0]||w[1]))&&(s+=C^0<=I?1:-1))}return(o<-Od||o<Od&&xf<-Od)^1&s}function hf(t,e){return jf[0]=t,jf[1]=e,Ef(Of)}var mf,gf,yf,vf,Df,bf,Af,If,Mf,wf,Cf,_f=function(t,e){return Bd(t[0]-e[0])<Od&&Bd(t[1]-e[1])<Od},Tf=1e9,kf=-Tf,xf=$u(),Nf=$u(),Sf={sphere:Ue,point:Ue,lineStart:function(){Sf.point=jn,Sf.lineEnd=En},lineEnd:Ue,polygonStart:Ue,polygonEnd:Ue},Ef=function(t){return Nf.reset(),td(t,Sf),+Nf},jf=[null,null],Of={type:"LineString",coordinates:jf},Lf={Feature:function(t,e){return Ln(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,a=n.length;++i<a;)if(Ln(n[i].geometry,e))return!0;return!1}},zf={Sphere:function(){return!0},Point:function(t,e){return zn(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,a=n.length;++i<a;)if(zn(n[i],e))return!0;return!1},LineString:function(t,e){return Pn(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,a=n.length;++i<a;)if(Pn(n[i],e))return!0;return!1},Polygon:function(t,e){return Rn(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,a=n.length;++i<a;)if(Rn(n[i],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,a=n.length;++i<a;)if(Ln(n[i],e))return!0;return!1}},Pf=function(t){return t},Rf=$u(),Ff=$u(),Uf={point:Ue,lineStart:Ue,lineEnd:Ue,polygonStart:function(){Uf.lineStart=Qn,Uf.lineEnd=Gn},polygonEnd:function(){Uf.lineStart=Uf.lineEnd=Uf.point=Ue,Rf.add(Bd(Ff)),Ff.reset()},result:function(){var t=Rf/2;return Rf.reset(),t}},Bf=1/0,Hf=Bf,Yf=-Bf,Qf=Yf,Wf={point:function(t,e){t<Bf&&(Bf=t),Yf<t&&(Yf=t),e<Hf&&(Hf=e),Qf<e&&(Qf=e)},lineStart:Ue,lineEnd:Ue,polygonStart:Ue,polygonEnd:Ue,result:function(){var t=[[Bf,Hf],[Yf,Qf]];return Yf=Qf=-(Hf=Bf=1/0),t}},Vf=0,Gf=0,Zf=0,Jf=0,qf=0,Kf=0,Xf=0,$f=0,tp=0,ep={point:Zn,lineStart:Jn,lineEnd:Xn,polygonStart:function(){ep.lineStart=$n,ep.lineEnd=ti},polygonEnd:function(){ep.point=Zn,ep.lineStart=Jn,ep.lineEnd=Xn},result:function(){var t=tp?[Xf/tp,$f/tp]:Kf?[Jf/Kf,qf/Kf]:Zf?[Vf/Zf,Gf/Zf]:[NaN,NaN];return Vf=Gf=Zf=Jf=qf=Kf=Xf=$f=tp=0,t}};ii.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Rd)}},result:Ue};var np,ip,ap,op,sp,rp=$u(),lp={point:Ue,lineStart:function(){lp.point=ai},lineEnd:function(){np&&oi(ip,ap),lp.point=Ue},polygonStart:function(){np=!0},polygonEnd:function(){np=null},result:function(){var t=+rp;return rp.reset(),t}};si.prototype={_radius:4.5,_circle:ri(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=ri(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};function cp(v,D,b,A){return function(i,r){function e(t,e){var n=i(t,e);v(t=n[0],e=n[1])&&r.point(t,e)}function t(t,e){e=i(t,e);f.point(e[0],e[1])}function n(){y.point=t,f.lineStart()}function a(){y.point=e,f.lineEnd()}function l(t,e){d.push([t,e]);e=i(t,e);m.point(e[0],e[1])}function o(){m.lineStart(),d=[]}function s(){l(d[0][0],d[0][1]),m.lineEnd();var t,e,n,i,a=m.clean(),o=h.result(),s=o.length;if(d.pop(),c.push(d),d=null,s)if(1&a){if(0<(e=(n=o[0]).length-1)){for(g||(r.polygonStart(),g=!0),r.lineStart(),t=0;t<e;++t)r.point((i=n[t])[0],i[1]);r.lineEnd()}}else 1<s&&2&a&&o.push(o.pop().concat(o.shift())),u.push(o.filter(li))}var c,u,d,f=D(r),p=i.invert(A[0],A[1]),h=uf(),m=D(h),g=!1,y={point:e,lineStart:n,lineEnd:a,polygonStart:function(){y.point=l,y.lineStart=o,y.lineEnd=s,u=[],c=[]},polygonEnd:function(){y.point=e,y.lineStart=n,y.lineEnd=a,u=mr(u);var t=pf(c,p);u.length?(g||(r.polygonStart(),g=!0),ff(u,ci,t,b,r)):t&&(g||(r.polygonStart(),g=!0),r.lineStart(),b(null,null,1,r),r.lineEnd()),g&&(r.polygonEnd(),g=!1),u=c=null},sphere:function(){r.polygonStart(),r.lineStart(),b(null,null,1,r),r.lineEnd(),r.polygonEnd()}};return y}}var up=cp(function(){return 1},function(c){var u,d=NaN,f=NaN,p=NaN;return{lineStart:function(){c.lineStart(),u=1},point:function(t,e){var n,i,a,o,s,r=0<t?Ld:-Ld,l=Bd(t-d);Bd(l-Ld)<Od?(c.point(d,f=0<(f+e)/2?zd:-zd),c.point(p,f),c.lineEnd(),c.lineStart(),c.point(r,f),c.point(t,f),u=0):p!==r&&Ld<=l&&(Bd(d-p)<Od&&(d-=p*Od),Bd(t-r)<Od&&(t-=r*Od),i=f,o=e,s=Jd((n=d)-(a=t)),f=Bd(s)>Od?Hd((Jd(i)*(l=Qd(o))*Jd(a)-Jd(o)*(a=Qd(i))*Jd(n))/(a*l*s)):(i+o)/2,c.point(p,f),c.lineEnd(),c.lineStart(),c.point(r,f),u=0),c.point(d=t,f=e),p=r},lineEnd:function(){c.lineEnd(),d=f=NaN},clean:function(){return 2-u}}},function(t,e,n,i){var a;null==t?(a=n*zd,i.point(-Ld,a),i.point(0,a),i.point(Ld,a),i.point(Ld,0),i.point(Ld,-a),i.point(0,-a),i.point(-Ld,-a),i.point(-Ld,0),i.point(-Ld,a)):Bd(t[0]-e[0])>Od?(t=t[0]<e[0]?Ld:-Ld,i.point(-t,a=n*t/2),i.point(0,a),i.point(t,a)):i.point(e[0],e[1])},[-Ld,-zd]),dp=function(a,o){function f(t,e){return Qd(t)*Qd(e)>m}function p(t,e,n){var i=[1,0,0],a=Ke(Je(t),Je(e)),o=qe(a,a),s=a[0],r=o-s*s;if(!r)return!n&&t;var l=Ke(i,a),c=$e(i,m*o/r);Xe(c,$e(a,-m*s/r));var u=l,d=qe(c,u),i=qe(u,u),o=d*d-i*(qe(c,c)-1);if(!(o<0)){a=Kd(o),s=$e(u,(-d-a)/i);if(Xe(s,c),s=Ze(s),!n)return s;var f,r=t[0],l=e[0],o=t[1],n=e[1];l<r&&(f=r,r=l,l=f);t=l-r,e=Bd(t-Ld)<Od;if(!e&&n<o&&(f=o,o=n,n=f),e||t<Od?e?0<o+n^s[1]<(Bd(s[0]-r)<Od?o:n):o<=s[1]&&s[1]<=n:Ld<t^(r<=s[0]&&s[0]<=l)){i=$e(u,(-d+a)/i);return Xe(i,c),[s,Ze(i)]}}}function h(t,e){var n=g?a:Ld-a,i=0;return t<-n?i|=1:n<t&&(i|=2),e<-n?i|=4:n<e&&(i|=8),i}var m=Qd(a),g=0<m,y=Bd(m)>Od;return cp(f,function(s){var r,l,c,u,d;return{lineStart:function(){u=c=!1,d=1},point:function(t,e){var n,i,a=[t,e],o=f(t,e),e=g?o?0:h(t,e):o?h(t+(t<0?Ld:-Ld),e):0;!r&&(u=c=o)&&s.lineStart(),o===c||(n=p(r,a))&&!_f(r,n)&&!_f(a,n)||(a[0]+=Od,a[1]+=Od,o=f(a[0],a[1])),o!==c?(d=0,o?(s.lineStart(),n=p(a,r),s.point(n[0],n[1])):(n=p(r,a),s.point(n[0],n[1]),s.lineEnd()),r=n):y&&r&&g^o&&(e&l||!(i=p(a,r,!0))||(d=0,g?(s.lineStart(),s.point(i[0][0],i[0][1]),s.point(i[1][0],i[1][1]),s.lineEnd()):(s.point(i[1][0],i[1][1]),s.lineEnd(),s.lineStart(),s.point(i[0][0],i[0][1])))),!o||r&&_f(r,a)||s.point(a[0],a[1]),r=a,c=o,l=e},lineEnd:function(){c&&s.lineEnd(),r=null},clean:function(){return d|(u&&c)<<1}}},function(t,e,n,i){Tn(i,a,o,n,t,e)},g?[0,-a]:[-Ld,a-Ld])};di.prototype={constructor:di,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function fp(){return gi(yi).scale(155.424).center([0,33.6442])}function pp(){return fp().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}var hp=Qd(30*Ud),mp=function(t,e){return+e?(T=t,k=e,function(i){function t(t,e){t=T(t,e),i.point(t[0],t[1])}function e(){m=NaN,b.point=n,i.lineStart()}function n(t,e){var n=Je([t,e]),e=T(t,e);x(m,g,h,y,v,D,m=e[0],g=e[1],h=t,y=n[0],v=n[1],D=n[2],16,i),i.point(m,g)}function a(){b.point=t,i.lineEnd()}function o(){e(),b.point=s,b.lineEnd=r}function s(t,e){n(l=t,e),c=m,u=g,d=y,f=v,p=D,b.point=n}function r(){x(m,g,h,y,v,D,c,u,l,d,f,p,16,i),b.lineEnd=a,a()}var l,c,u,d,f,p,h,m,g,y,v,D,b={point:t,lineStart:e,lineEnd:a,polygonStart:function(){i.polygonStart(),b.lineStart=o},polygonEnd:function(){i.polygonEnd(),b.lineStart=e}};return b}):(n=t,ui({point:function(t,e){t=n(t,e),this.stream.point(t[0],t[1])}}));var n,T,k;function x(t,e,n,i,a,o,s,r,l,c,u,d,f,p){var h,m,g,y,v,D,b,A,I,M,w=s-t,C=r-e,_=w*w+C*C;4*k<_&&f--&&(g=o+d,I=Re(g/=y=Kd((h=i+c)*h+(m=a+u)*m+g*g)),v=Bd(Bd(g)-1)<Od||Bd(n-l)<Od?(n+l)/2:Yd(m,h),D=(M=T(v,I))[0],b=M[1],(k<(M=C*(A=D-t)-w*(I=b-e))*M/_||.3<Bd((w*A+C*I)/_-.5)||i*c+a*u+o*d<hp)&&(x(t,e,n,i,a,o,D,b,v,h/=y,m/=y,g,f,p),p.point(D,b),x(D,b,v,h,m,g,s,r,l,c,u,d,f,p)))}},gp=ui({point:function(t,e){this.stream.point(t*Ud,e*Ud)}}),yp=vi(function(t){return Kd(2/(1+t))});yp.invert=Di(function(t){return 2*Re(t/2)});var vp=vi(function(t){return(t=Pe(t))&&t/Jd(t)});vp.invert=Di(function(t){return t}),bi.invert=function(t,e){return[t,2*Hd(Vd(e))-zd]},wi.invert=wi,_i.invert=Di(Hd),ki.invert=Di(Re),xi.invert=Di(function(t){return 2*Hd(t)}),Ni.invert=function(t,e){return[-e,2*Hd(Vd(t))-zd]},Fi.prototype=Li.prototype={constructor:Fi,count:function(){return this.eachAfter(Oi)},each:function(t){var e,n,i,a,o,s=[this];do{for(e=s.reverse(),s=[];o=e.pop();)if(t(o),n=o.children)for(i=0,a=n.length;i<a;++i)s.push(n[i])}while(s.length);return this},eachAfter:function(t){for(var e,n,i,a=this,o=[a],s=[];a=o.pop();)if(s.push(a),e=a.children)for(n=0,i=e.length;n<i;++n)o.push(e[n]);for(;a=s.pop();)t(a);return this},eachBefore:function(t){for(var e,n,i,a=[this];i=a.pop();)if(t(i),e=i.children)for(n=e.length-1;0<=n;--n)a.push(e[n]);return this},sum:function(a){return this.eachAfter(function(t){for(var e=+a(t.data)||0,n=t.children,i=n&&n.length;0<=--i;)e+=n[i].value;t.value=e})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),a=null;for(t=n.pop(),e=i.pop();t===e;)a=t,t=n.pop(),e=i.pop();return a}(e,t),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;t!==n;)i.splice(a,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n},copy:function(){return Li(this).eachBefore(Pi)}};function Dp(t){for(var e,n,i=0,a=(t=function(t){for(var e,n,i=t.length;i;)n=Math.random()*i--|0,e=t[i],t[i]=t[n],t[n]=e;return t}(Ip.call(t))).length,o=[];i<a;)e=t[i],n&&Bi(n,e)?++i:(n=function(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return Yi(t[0],t[1]);case 3:return Qi(t[0],t[1],t[2])}var e}(o=function(t,e){var n,i;if(Hi(e,t))return[e];for(n=0;n<t.length;++n)if(Ui(e,t[n])&&Hi(Yi(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(i=n+1;i<t.length;++i)if(Ui(Yi(t[n],t[i]),e)&&Ui(Yi(t[n],e),t[i])&&Ui(Yi(t[i],e),t[n])&&Hi(Qi(t[n],t[i],e),t))return[t[n],t[i],e];throw new Error}(o,e)),i=0);return n}function bp(t){return function(){return t}}function Ap(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}var Ip=Array.prototype.slice,Mp=function(t,e,n,i,a){for(var o,s=t.children,r=-1,l=s.length,c=t.value&&(i-e)/t.value;++r<l;)(o=s[r]).y0=n,o.y1=a,o.x0=e,o.x1=e+=o.value*c},wp={depth:-1},Cp={};ra.prototype=Object.create(Fi.prototype);var _p=function(t,e,n,i,a){for(var o,s=t.children,r=-1,l=s.length,c=t.value&&(a-n)/t.value;++r<l;)(o=s[r]).x0=e,o.x1=i,o.y0=n,o.y1=n+=o.value*c},Tp=(1+Math.sqrt(5))/2,kp=function e(o){function t(t,e,n,i,a){la(o,t,e,n,i,a)}return t.ratio=function(t){return e(1<(t=+t)?t:1)},t}(Tp),xp=function e(p){function t(t,e,n,i,a){if((o=t._squarify)&&o.ratio===p)for(var o,s,r,l,c,u=-1,d=o.length,f=t.value;++u<d;){for(r=(s=o[u]).children,l=s.value=0,c=r.length;l<c;++l)s.value+=r[l].value;s.dice?Mp(s,e,n,i,n+=(a-n)*s.value/f):_p(s,e,n,e+=(i-e)*s.value/f,a),f-=s.value}else t._squarify=o=la(p,t,e,n,i,a),o.ratio=p}return t.ratio=function(t){return e(1<(t=+t)?t:1)},t}(Tp),Np=[].slice,Sp={};da.prototype=ma.prototype={constructor:da,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var e=Np.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),fa(this),this},abort:function(){return null==this._error&&pa(this,new Error("abort")),this},await:function(n){if("function"!=typeof n)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,e){n.apply(null,[t].concat(e))},ha(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,ha(this),this}};function Ep(){return Math.random()}function jp(a,t){function e(t){var e,n,i,a=d.status;if(!a&&((i=(n=d).responseType)&&"text"!==i?n.response:n.responseText)||200<=a&&a<300||304===a){if(r)try{e=r.call(o,d)}catch(t){return void c.call("error",o,t)}else e=d;c.call("load",o,e)}else c.call("error",o,t)}var o,s,r,l,c=j("beforesend","progress","load","error"),u=fe(),d=new XMLHttpRequest,f=null,p=null,h=0;if("onload"in(d=!("undefined"==typeof XDomainRequest||"withCredentials"in d)&&/^(http(s)?:)?\/\//.test(a)?new XDomainRequest:d)?d.onload=d.onerror=d.ontimeout=e:d.onreadystatechange=function(t){3<d.readyState&&e(t)},d.onprogress=function(t){c.call("progress",o,t)},o={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u.get(t):(null==e?u.remove(t):u.set(t,e+""),o)},mimeType:function(t){return arguments.length?(s=null==t?null:t+"",o):s},responseType:function(t){return arguments.length?(l=t,o):l},timeout:function(t){return arguments.length?(h=+t,o):h},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",o)},password:function(t){return arguments.length<1?p:(p=null==t?null:t+"",o)},response:function(t){return r=t,o},get:function(t,e){return o.send("GET",t,e)},post:function(t,e){return o.send("POST",t,e)},send:function(t,e,n){return d.open(t,a,!0,f,p),null==s||u.has("accept")||u.set("accept",s+",*/*"),d.setRequestHeader&&u.each(function(t,e){d.setRequestHeader(e,t)}),null!=s&&d.overrideMimeType&&d.overrideMimeType(s),null!=l&&(d.responseType=l),0<h&&(d.timeout=h),null==n&&"function"==typeof e&&(n=e,e=null),null!=n&&1===n.length&&(i=n,n=function(t,e){i(null==t?e:null)}),null!=n&&o.on("error",n).on("load",function(t){n(null,t)}),c.call("beforesend",o,d),d.send(null==e?null:e),o;var i},abort:function(){return d.abort(),o},on:function(){var t=c.on.apply(c,arguments);return t===c?o:t}},null==t)return o;if("function"!=typeof t)throw new Error("invalid callback: "+t);return o.get(t)}function Op(n,i){return function(t,e){t=jp(t).mimeType(n).response(i);if(null==e)return t;if("function"!=typeof e)throw new Error("invalid callback: "+e);return t.get(e)}}function Lp(n,o){return function(t,i,e){arguments.length<3&&(e=i,i=null);var a=jp(t).mimeType(n);return a.row=function(t){return arguments.length?a.response((e=o,n=i=t,function(t){return e(t.responseText,n)})):i;var e,n},a.row(i),e?a.get(e):a}}function zp(t,e){var n,i=0,a=(t=t.slice()).length-1,o=t[i],s=t[a];return s<o&&(n=i,i=a,a=n,n=o,o=s,s=n),t[i]=e.floor(o),t[a]=e.ceil(s),t}var Pp=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(Ep),Rp=function t(o){function e(e,n){var i,a;return e=null==e?0:+e,n=null==n?1:+n,function(){var t;if(null!=i)t=i,i=null;else for(;i=2*o()-1,t=2*o()-1,!(a=i*i+t*t)||1<a;);return e+n*t*Math.sqrt(-2*Math.log(a)/a)}}return e.source=t,e}(Ep),Fp=function t(e){function n(){var t=Rp.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Ep),Up=function t(i){function e(n){return function(){for(var t=0,e=0;e<n;++e)t+=i();return t}}return e.source=t,e}(Ep),Bp=function t(n){function e(t){var e=Up.source(n)(t);return function(){return e()/t}}return e.source=t,e}(Ep),Hp=function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(Ep),Yp=Op("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),Qp=Op("application/json",function(t){return JSON.parse(t.responseText)}),Wp=Op("text/plain",function(t){return t.responseText}),Vp=Op("application/xml",function(t){t=t.responseXML;if(!t)throw new Error("parse error");return t}),Gp=Lp("text/csv",Tu),Zp=Lp("text/tab-separated-values",Eu),Jp=Array.prototype,qp=Jp.map,Kp=Jp.slice,Xp={name:"implicit"},$p=function(t){return function(){return t}},th=function(t){return+t},eh=[0,1],nh=function(t,e,n){var i,a=t[0],o=t[t.length-1],s=w(a,o,null==e?10:e);switch((n=Ee(null==n?",f":n)).type){case"s":var r=Math.max(Math.abs(a),Math.abs(o));return null!=n.precision||isNaN(i=Ku(s,r))||(n.precision=i),U.formatPrefix(n,r);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=Xu(s,Math.max(Math.abs(a),Math.abs(o))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=qu(s))||(n.precision=i-2*("%"===n.type))}return U.format(n)},ih=new Date,ah=new Date,oh=Ea(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});oh.every=function(n){return n=Math.floor(n),isFinite(n)&&0<n?1<n?Ea(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n}):oh:null};var sh=oh.range,rh=Ea(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),lh=rh.range,ch=Ea(function(t){t.setTime(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),uh=ch.range,dh=Ea(function(t){var e=6e4*t.getTimezoneOffset()%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),fh=dh.range,ph=Ea(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1}),hh=ph.range,mh=ja(0),gh=ja(1),yh=ja(2),vh=ja(3),Dh=ja(4),bh=ja(5),Ah=ja(6),Ih=mh.range,Mh=gh.range,wh=yh.range,Ch=vh.range,_h=Dh.range,Th=bh.range,kh=Ah.range,xh=Ea(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),Nh=xh.range,Sh=Ea(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Sh.every=function(n){return isFinite(n=Math.floor(n))&&0<n?Ea(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)}):null};var Eh=Sh.range,jh=Ea(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),Oh=jh.range,Lh=Ea(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),zh=Lh.range,Ph=Ea(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}),Rh=Ph.range,Fh=Oa(0),Uh=Oa(1),Bh=Oa(2),Hh=Oa(3),Yh=Oa(4),Qh=Oa(5),Wh=Oa(6),Vh=Fh.range,Gh=Uh.range,Zh=Bh.range,Jh=Hh.range,qh=Yh.range,Kh=Qh.range,Xh=Wh.range,$h=Ea(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),tm=$h.range,em=Ea(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});em.every=function(n){return isFinite(n=Math.floor(n))&&0<n?Ea(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)}):null};var nm,im=em.range,am={"-":"",_:" ",0:"0"},om=/^\s*\d+/,sm=/^%/,rm=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;jo({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function lm(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}var cm=Date.prototype.toISOString?function(t){return t.toISOString()}:U.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),um=+new Date("2000-01-01T00:00:00.000Z")?function(t){t=new Date(t);return isNaN(t)?null:t}:U.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),dm=lm("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),fm=lm("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),pm=lm("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),hm=lm("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),mm=lc(vt(300,.5,0),vt(-240,.5,1)),gm=lc(vt(-100,.75,.35),vt(80,1.5,.8)),ym=lc(vt(260,.75,.35),vt(80,1.5,.8)),vm=vt(),Dm=Po(lm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),bm=Po(lm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Am=Po(lm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),br=Po(lm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Im=function(t){return function(){return t}},Mm=Math.abs,wm=Math.atan2,Cm=Math.cos,_m=Math.max,Tm=Math.min,km=Math.sin,xm=Math.sqrt,Nm=1e-12,Sm=Math.PI,Em=Sm/2,jm=2*Sm;Wo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};function Om(){function e(t){var e,n,i,a=t.length,o=!1;for(null==c&&(d=u(i=oe())),e=0;e<=a;++e)!(e<a&&l(n=t[e],e,t))===o&&((o=!o)?d.lineStart():d.lineEnd()),o&&d.point(+s(n,e,t),+r(n,e,t));if(i)return d=null,i+""||null}var s=Vo,r=Go,l=Im(!0),c=null,u=Rm,d=null;return e.x=function(t){return arguments.length?(s="function"==typeof t?t:Im(+t),e):s},e.y=function(t){return arguments.length?(r="function"==typeof t?t:Im(+t),e):r},e.defined=function(t){return arguments.length?(l="function"==typeof t?t:Im(!!t),e):l},e.curve=function(t){return arguments.length?(u=t,null!=c&&(d=u(c)),e):u},e.context=function(t){return arguments.length?(null==t?c=d=null:d=u(c=t),e):c},e}function Lm(){function e(t){var e,n,i,a,o,s=t.length,r=!1,l=new Array(s),c=new Array(s);for(null==m&&(y=g(o=oe())),e=0;e<=s;++e){if(!(e<s&&h(a=t[e],e,t))===r)if(r=!r)n=e,y.areaStart(),y.lineStart();else{for(y.lineEnd(),y.lineStart(),i=e-1;n<=i;--i)y.point(l[i],c[i]);y.lineEnd(),y.areaEnd()}r&&(l[e]=+u(a,e,t),c[e]=+f(a,e,t),y.point(d?+d(a,e,t):l[e],p?+p(a,e,t):c[e]))}if(o)return y=null,o+""||null}function t(){return Om().defined(h).curve(g).context(m)}var u=Vo,d=null,f=Im(0),p=Go,h=Im(!0),m=null,g=Rm,y=null;return e.x=function(t){return arguments.length?(u="function"==typeof t?t:Im(+t),d=null,e):u},e.x0=function(t){return arguments.length?(u="function"==typeof t?t:Im(+t),e):u},e.x1=function(t){return arguments.length?(d=null==t?null:"function"==typeof t?t:Im(+t),e):d},e.y=function(t){return arguments.length?(f="function"==typeof t?t:Im(+t),p=null,e):f},e.y0=function(t){return arguments.length?(f="function"==typeof t?t:Im(+t),e):f},e.y1=function(t){return arguments.length?(p=null==t?null:"function"==typeof t?t:Im(+t),e):p},e.lineX0=e.lineY0=function(){return t().x(u).y(f)},e.lineY1=function(){return t().x(u).y(p)},e.lineX1=function(){return t().x(d).y(f)},e.defined=function(t){return arguments.length?(h="function"==typeof t?t:Im(!!t),e):h},e.curve=function(t){return arguments.length?(g=t,null!=m&&(y=g(m)),e):g},e.context=function(t){return arguments.length?(null==t?m=y=null:y=g(m=t),e):m},e}function zm(t,e){return e<t?-1:t<e?1:t<=e?0:NaN}function Pm(t){return t}var Rm=function(t){return new Wo(t)},Fm=Jo(Rm);Zo.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Um(){return qo(Om().curve(Fm))}function Bm(){var t=Lm().curve(Fm),e=t.curve,n=t.lineX0,i=t.lineX1,a=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return qo(n())},delete t.lineX0,t.lineEndAngle=function(){return qo(i())},delete t.lineX1,t.lineInnerRadius=function(){return qo(a())},delete t.lineY0,t.lineOuterRadius=function(){return qo(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Jo(t)):e()._curve},t}function Hm(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function Ym(){}var Qm=Array.prototype.slice,Wm={draw:function(t,e){e=Math.sqrt(e/Sm);t.moveTo(e,0),t.arc(0,0,e,0,jm)}},wr={draw:function(t,e){e=Math.sqrt(e/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},Vm=Math.sqrt(1/3),Gm=2*Vm,Zm={draw:function(t,e){var n=Math.sqrt(e/Gm),e=n*Vm;t.moveTo(0,-n),t.lineTo(e,0),t.lineTo(0,n),t.lineTo(-e,0),t.closePath()}},Ur=Math.sin(Sm/10)/Math.sin(7*Sm/10),Jm=Math.sin(jm/10)*Ur,qm=-Math.cos(jm/10)*Ur,il={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),i=Jm*n,a=qm*n;t.moveTo(0,-n),t.lineTo(i,a);for(var o=1;o<5;++o){var s=jm*o/5,r=Math.cos(s),s=Math.sin(s);t.lineTo(s*n,-r*n),t.lineTo(r*i-s*a,s*i+r*a)}t.closePath()}},ol={draw:function(t,e){var n=Math.sqrt(e),e=-n/2;t.rect(e,e,n,n)}},Km=Math.sqrt(3),al={draw:function(t,e){e=-Math.sqrt(e/(3*Km));t.moveTo(0,2*e),t.lineTo(-Km*e,-e),t.lineTo(Km*e,-e),t.closePath()}},Xm=Math.sqrt(3)/2,$m=1/Math.sqrt(12),tg=3*($m/2+1),jc={draw:function(t,e){var n=Math.sqrt(e/tg),i=n/2,a=n*$m,o=i,s=n*$m+n,e=-o,n=s;t.moveTo(i,a),t.lineTo(o,s),t.lineTo(e,n),t.lineTo(-.5*i-Xm*a,Xm*i+-.5*a),t.lineTo(-.5*o-Xm*s,Xm*o+-.5*s),t.lineTo(-.5*e-Xm*n,Xm*e+-.5*n),t.lineTo(-.5*i+Xm*a,-.5*a-Xm*i),t.lineTo(-.5*o+Xm*s,-.5*s-Xm*o),t.lineTo(-.5*e+Xm*n,-.5*n-Xm*e),t.closePath()}},pu=[Wm,wr,Zm,ol,il,al,jc];as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:is(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:is(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},os.prototype={areaStart:Ym,areaEnd:Ym,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:is(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:is(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},rs.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(0<n)for(var i,a=t[0],o=e[0],s=t[n]-a,r=e[n]-o,l=-1;++l<=n;)this._basis.point(this._beta*t[l]+(1-this._beta)*(a+(i=l/n)*s),this._beta*e[l]+(1-this._beta)*(o+i*r));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};Au=function e(n){function t(t){return 1===n?new as(t):new rs(t,n)}return t.beta=function(t){return e(+t)},t}(.85);cs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ls(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ls(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};_u=function e(n){function t(t){return new cs(t,n)}return t.tension=function(t){return e(+t)},t}(0);us.prototype={areaStart:Ym,areaEnd:Ym,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ls(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};Su=function e(n){function t(t){return new us(t,n)}return t.tension=function(t){return e(+t)},t}(0);ds.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ls(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};zu=function e(n){function t(t){return new ds(t,n)}return t.tension=function(t){return e(+t)},t}(0);ps.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n,i;switch(t=+t,e=+e,this._point&&(n=this._x2-t,i=this._y2-e,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))),this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:fs(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};Tp=function e(n){function t(t){return n?new ps(t,n):new cs(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);hs.prototype={areaStart:Ym,areaEnd:Ym,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){var n,i;switch(t=+t,e=+e,this._point&&(n=this._x2-t,i=this._y2-e,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))),this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:fs(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};Jp=function e(n){function t(t){return n?new hs(t,n):new us(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);ms.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n,i;switch(t=+t,e=+e,this._point&&(n=this._x2-t,i=this._y2-e,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))),this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fs(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};Ur=function e(n){function t(t){return n?new ms(t,n):new ds(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);gs.prototype={areaStart:Ym,areaEnd:Ym,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},As.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:bs(this,this._t0,Ds(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,bs(this,Ds(this,n=vs(this,t,e)),n);break;default:bs(this,this._t0,n=vs(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Is.prototype=Object.create(As.prototype)).point=function(t,e){As.prototype.point.call(this,e,t)},Ms.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,a,o){this._context.bezierCurveTo(e,t,i,n,o,a)}},ws.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=Cs(t),a=Cs(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(i[0][o],a[0][o],i[1][o],a[1][o],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},_s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),0<=this._line&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:var n;this._t<=0?(this._context.lineTo(this._x,e),this._context.lineTo(t,e)):(n=this._x*(1-this._t)+t*this._t,this._context.lineTo(n,this._y),this._context.lineTo(n,e))}this._x=t,this._y=e}};function eg(t,e){if(1<(a=t.length))for(var n,i,a,o=1,s=t[e[0]],r=s.length;o<a;++o)for(i=s,s=t[e[o]],n=0;n<r;++n)s[n][1]+=s[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function ng(t){for(var e=t.length,n=new Array(e);0<=--e;)n[e]=e;return n}function ig(t){var n=t.map(ks);return ng(t).sort(function(t,e){return n[t]-n[e]})}function ag(t){return function(){return t}}Ss.prototype={constructor:Ss,insert:function(t,e){var n,i,a;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else n=this._?(t=Ls(this._),e.P=null,(e.N=t).P=t.L=e,t):(e.P=e.N=null,this._=e,null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(i=n.U).L?(a=i.R)&&a.C?(n.C=a.C=!1,i.C=!0,t=i):(t===n.R&&(js(this,n),n=(t=n).U),n.C=!1,i.C=!0,Os(this,i)):(a=i.L)&&a.C?(n.C=a.C=!1,i.C=!0,t=i):(t===n.L&&(Os(this,n),n=(t=n).U),n.C=!1,i.C=!0,js(this,i)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,i=t.U,a=t.L,o=t.R,s=a?o?Ls(o):a:o;if(i?i.L===t?i.L=s:i.R=s:this._=s,a&&o?(n=s.C,s.C=t.C,((s.L=a).U=s)!==o?(i=s.U,s.U=t.U,t=s.R,i.L=t,(s.R=o).U=s):(s.U=i,t=(i=s).R)):(n=t.C,t=s),t&&(t.U=i),!n)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,js(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Os(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,js(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Os(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,js(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Os(this,i),t=this._;break}}while(e.C=!0,i=(t=i).U,!t.C);t&&(t.C=!1)}}};var og,sg,rg,lg,cg,ug=[],dg=[],fg=1e-6,pg=1e-12;Ks.prototype={constructor:Ks,polygons:function(){var n=this.edges;return this.cells.map(function(e){var t=e.halfedges.map(function(t){return Us(e,n[t])});return t.data=e.site.data,t})},triangles:function(){var u=[],d=this.edges;return this.cells.forEach(function(t,e){if(i=(n=t.halfedges).length)for(var n,i,a,o=t.site,s=-1,r=d[n[i-1]],l=r.left===o?r.right:r.left;++s<i;)a=l,l=(r=d[n[s]]).left===o?r.right:r.left,a&&l&&e<a.index&&e<l.index&&(c=l,(o[0]-c[0])*(a[1]-o[1])-(o[0]-a[0])*(c[1]-o[1])<0)&&u.push([o.data,a.data,l.data]);var c}),u},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(n,i,t){for(var e,a,o=this,s=o._found||0,r=o.cells.length;!(a=o.cells[s]);)if(++s>=r)return null;for(var l=n-a.site[0],c=i-a.site[1],u=l*l+c*c;a=o.cells[e=s],s=null,a.halfedges.forEach(function(t){var e=o.edges[t],t=e.left;!(t!==a.site&&t||(t=e.right))||(e=(e=n-t[0])*e+(e=i-t[1])*e)<u&&(u=e,s=t.index)}),null!==s;);return o._found=e,null==t||u<=t*t?a.site:null}};function hg(t){return function(){return t}}$s.prototype={constructor:$s,scale:function(t){return 1===t?this:new $s(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new $s(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mg=new $s(1,0,0);tr.prototype=$s.prototype;function gg(){U.event.preventDefault(),U.event.stopImmediatePropagation()}U.version="4.10.0",U.bisect=Ar,U.bisectRight=Ar,U.bisectLeft=Ir,U.ascending=Dr,U.bisector=rr,U.cross=function(t,e,n){var i,a,o,s,r=t.length,l=e.length,c=new Array(r*l);for(null==n&&(n=u),i=o=0;i<r;++i)for(s=t[i],a=0;a<l;++a,++o)c[o]=n(s,e[a]);return c},U.descending=function(t,e){return e<t?-1:t<e?1:t<=e?0:NaN},U.deviation=cr,U.extent=ur,U.histogram=function(){function e(t){for(var e,n=t.length,i=new Array(n),a=0;a<n;++a)i[a]=f(t[a],a,t);var o=p(i),s=o[0],r=o[1],l=h(i,s,r);Array.isArray(l)||(l=w(s,r,l),l=Tr(Math.ceil(s/l)*l,Math.floor(r/l)*l,l));for(var c=l.length;l[0]<=s;)l.shift(),--c;for(;l[c-1]>r;)l.pop(),--c;var u,d=new Array(c+1);for(a=0;a<=c;++a)(u=d[a]=[]).x0=0<a?l[a-1]:s,u.x1=a<c?l[a]:r;for(a=0;a<n;++a)s<=(e=i[a])&&e<=r&&d[Ar(l,e,0,c)].push(t[a]);return d}var f=fr,p=ur,h=pr;return e.value=function(t){return arguments.length?(f="function"==typeof t?t:dr(t),e):f},e.domain=function(t){return arguments.length?(p="function"==typeof t?t:dr([t[0],t[1]]),e):p},e.thresholds=function(t){return arguments.length?(h="function"==typeof t?t:dr(Array.isArray(t)?Cr.call(t):t),e):h},e},U.thresholdFreedmanDiaconis=function(t,e,n){return t=_r.call(t,Mr).sort(Dr),Math.ceil((n-e)/(2*(hr(t,.75)-hr(t,.25))*Math.pow(t.length,-1/3)))},U.thresholdScott=function(t,e,n){return Math.ceil((n-e)/(3.5*cr(t)*Math.pow(t.length,-1/3)))},U.thresholdSturges=pr,U.max=function(t,e){var n,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n<=n)for(i=n;++o<a;)null!=(n=t[o])&&i<n&&(i=n)}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n<=n)for(i=n;++o<a;)null!=(n=e(t[o],o,t))&&i<n&&(i=n);return i},U.mean=function(t,e){var n,i=t.length,a=i,o=-1,s=0;if(null==e)for(;++o<i;)isNaN(n=Mr(t[o]))?--a:s+=n;else for(;++o<i;)isNaN(n=Mr(e(t[o],o,t)))?--a:s+=n;if(a)return s/a},U.median=function(t,e){var n,i=t.length,a=-1,o=[];if(null==e)for(;++a<i;)isNaN(n=Mr(t[a]))||o.push(n);else for(;++a<i;)isNaN(n=Mr(e(t[a],a,t)))||o.push(n);return hr(o.sort(Dr),.5)},U.merge=mr,U.min=gr,U.pairs=function(t,e){null==e&&(e=u);for(var n=0,i=t.length-1,a=t[0],o=new Array(i<0?0:i);n<i;)o[n]=e(a,a=t[++n]);return o},U.permute=function(t,e){for(var n=e.length,i=new Array(n);n--;)i[n]=t[e[n]];return i},U.quantile=hr,U.range=Tr,U.scan=function(t,e){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==e&&(e=Dr);++a<n;)(e(i=t[a],s)<0||0!==e(s,s))&&(s=i,o=a);return 0===e(s,s)?o:void 0}},U.shuffle=function(t,e,n){for(var i,a,o=(null==n?t.length:n)-(e=null==e?0:+e);o;)a=Math.random()*o--|0,i=t[o+e],t[o+e]=t[a+e],t[a+e]=i;return t},U.sum=function(t,e){var n,i=t.length,a=-1,o=0;if(null==e)for(;++a<i;)(n=+t[a])&&(o+=n);else for(;++a<i;)(n=+e(t[a],a,t))&&(o+=n);return o},U.ticks=Sr,U.tickIncrement=c,U.tickStep=w,U.transpose=yr,U.variance=lr,U.zip=function(){return yr(arguments)},U.axisTop=function(t){return e(1,t)},U.axisRight=function(t){return e(2,t)},U.axisBottom=function(t){return e(3,t)},U.axisLeft=function(t){return e(4,t)},U.brush=function(){return ie(ou)},U.brushX=function(){return ie(iu)},U.brushY=function(){return ie(au)},U.brushSelection=function(t){t=t.__brush;return t?t.dim.output(t.selection):null},U.chord=function(){function e(i){for(var t,e,n,a,o=i.length,s=[],r=Tr(o),l=[],c=[],u=c.groups=new Array(o),d=new Array(o*o),f=0,p=-1;++p<o;){for(t=0,a=-1;++a<o;)t+=i[p][a];s.push(t),l.push(Tr(o)),f+=t}for(I&&r.sort(function(t,e){return I(s[t],s[e])}),M&&l.forEach(function(t,n){t.sort(function(t,e){return M(i[n][t],i[n][e])})}),n=(f=gu(0,mu-A*o)/f)?A:mu/o,t=0,p=-1;++p<o;){for(e=t,a=-1;++a<o;){var h=r[p],m=l[h][a],g=i[h][m],y=t,v=t+=g*f;d[m*o+h]={index:h,subindex:m,startAngle:y,endAngle:v,value:g}}u[h]={index:h,startAngle:e,endAngle:t,value:s[h]},t+=n}for(p=-1;++p<o;)for(a=p-1;++a<o;){var D=d[a*o+p],b=d[p*o+a];(D.value||b.value)&&c.push(D.value<b.value?{source:b,target:D}:{source:D,target:b})}return w?c.sort(w):c}var A=0,I=null,M=null,w=null;return e.padAngle=function(t){return arguments.length?(A=gu(0,t),e):A},e.sortGroups=function(t){return arguments.length?(I=t,e):I},e.sortSubgroups=function(t){return arguments.length?(M=t,e):M},e.sortChords=function(t){return arguments.length?(null==t?w=null:(w=function(t,e){return n(t.source.value+t.target.value,e.source.value+e.target.value)})._=n=t,e):w&&w._;var n},e},U.ribbon=function(){function e(){var t,e=yu.call(arguments),n=c.apply(this,e),i=u.apply(this,e),a=+d.apply(this,(e[0]=n,e)),o=f.apply(this,e)-hu,s=p.apply(this,e)-hu,r=a*du(o),l=a*fu(o),n=+d.apply(this,(e[0]=i,e)),i=f.apply(this,e)-hu,e=p.apply(this,e)-hu;if((h=h||(t=oe())).moveTo(r,l),h.arc(0,0,a,o,s),o==i&&s==e||(h.quadraticCurveTo(0,0,n*du(i),n*fu(i)),h.arc(0,0,n,i,e)),h.quadraticCurveTo(0,0,r,l),h.closePath(),t)return h=null,t+""||null}var c=se,u=re,d=le,f=ce,p=ue,h=null;return e.radius=function(t){return arguments.length?(d="function"==typeof t?t:Kc(+t),e):d},e.startAngle=function(t){return arguments.length?(f="function"==typeof t?t:Kc(+t),e):f},e.endAngle=function(t){return arguments.length?(p="function"==typeof t?t:Kc(+t),e):p},e.source=function(t){return arguments.length?(c=t,e):c},e.target=function(t){return arguments.length?(u=t,e):u},e.context=function(t){return arguments.length?(h=null==t?null:t,e):h},e},U.nest=function(){function f(t,n,i,a){if(n>=m.length)return null!=p&&t.sort(p),null!=h?h(t):t;for(var e,o,s,r=-1,l=t.length,c=m[n++],u=fe(),d=i();++r<l;)(s=u.get(e=c(o=t[r])+""))?s.push(o):u.set(e,[o]);return u.each(function(t,e){a(d,e,f(t,n,i,a))}),d}var p,h,e,m=[],s=[];return e={object:function(t){return f(t,0,pe,he)},map:function(t){return f(t,0,me,ge)},entries:function(t){return function n(t,i){if(++i>m.length)return t;var a,o=s[i-1];return null!=h&&i>=m.length?a=t.entries():(a=[],t.each(function(t,e){a.push({key:e,values:n(t,i)})})),null!=o?a.sort(function(t,e){return o(t.key,e.key)}):a}(f(t,0,me,ge),0)},key:function(t){return m.push(t),e},sortKeys:function(t){return s[m.length-1]=t,e},sortValues:function(t){return p=t,e},rollup:function(t){return h=t,e}}},U.set=ve,U.map=fe,U.keys=function(t){var e,n=[];for(e in t)n.push(e);return n},U.values=function(t){var e,n=[];for(e in t)n.push(t[e]);return n},U.entries=function(t){var e,n=[];for(e in t)n.push({key:e,value:t[e]});return n},U.color=$,U.rgb=it,U.hsl=st,U.lab=ut,U.hcl=gt,U.cubehelix=vt,U.dispatch=j,U.drag=function(){function h(t){t.on("mousedown.drag",e).filter(q).on("touchstart.drag",a).on("touchmove.drag",o).on("touchend.drag touchcancel.drag",s).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){var t;d||!f.apply(this,arguments)||(t=r("mouse",p.apply(this,arguments),Yr,this,arguments))&&(tl(U.event.view).on("mousemove.drag",n,!0).on("mouseup.drag",i,!0),Xr(U.event.view),Q(),u=!1,l=U.event.clientX,c=U.event.clientY,t("start"))}function n(){var t,e;el(),u||(t=U.event.clientX-l,e=U.event.clientY-c,u=D<t*t+e*e),g.mouse("drag")}function i(){tl(U.event.view).on("mousemove.drag mouseup.drag",null),W(U.event.view,u),el(),g.mouse("end")}function a(){if(f.apply(this,arguments))for(var t,e=U.event.changedTouches,n=p.apply(this,arguments),i=e.length,a=0;a<i;++a)(t=r(e[a].identifier,n,Kr,this,arguments))&&(Q(),t("start"))}function o(){for(var t,e=U.event.changedTouches,n=e.length,i=0;i<n;++i)(t=g[e[i].identifier])&&(el(),t("drag"))}function s(){var t,e,n=U.event.changedTouches,i=n.length;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),t=0;t<i;++t)(e=g[n[t].identifier])&&(Q(),e("end"))}function r(a,o,s,r,l){var c,u,d,f=s(o,a),p=y.copy();if(O(new V(h,"beforestart",c,a,v,f[0],f[1],0,0,p),function(){return null!=(U.event.subject=c=m.apply(r,l))&&(u=c.x-f[0]||0,d=c.y-f[1]||0,!0)}))return function t(e){var n,i=f;switch(e){case"start":g[a]=t,n=v++;break;case"end":delete g[a],--v;case"drag":f=s(o,a),n=v}O(new V(h,e,c,a,n,f[0]+u,f[1]+d,f[0]-i[0],f[1]-i[1],p),p.apply,p,[e,r,l])}}var l,c,u,d,f=G,p=Z,m=J,g={},y=j("start","drag","end"),v=0,D=0;return h.filter=function(t){return arguments.length?(f="function"==typeof t?t:$r(!!t),h):f},h.container=function(t){return arguments.length?(p="function"==typeof t?t:$r(t),h):p},h.subject=function(t){return arguments.length?(m="function"==typeof t?t:$r(t),h):m},h.on=function(){var t=y.on.apply(y,arguments);return t===y?h:t},h.clickDistance=function(t){return arguments.length?(D=(t=+t)*t,h):Math.sqrt(D)},h},U.dragDisable=Xr,U.dragEnable=W,U.dsvFormat=Iu,U.csvParse=Tu,U.csvParseRows=ku,U.csvFormat=xu,U.csvFormatRows=Nu,U.tsvParse=Eu,U.tsvParseRows=ju,U.tsvFormat=Ou,U.tsvFormatRows=Lu,U.easeLinear=function(t){return+t},U.easeQuad=Wt,U.easeQuadIn=function(t){return t*t},U.easeQuadOut=function(t){return t*(2-t)},U.easeQuadInOut=Wt,U.easeCubic=Vt,U.easeCubicIn=function(t){return t*t*t},U.easeCubicOut=function(t){return--t*t*t+1},U.easeCubicInOut=Vt,U.easePoly=zc,U.easePolyIn=Oc,U.easePolyOut=Lc,U.easePolyInOut=zc,U.easeSin=Gt,U.easeSinIn=function(t){return 1-Math.cos(t*Rc)},U.easeSinOut=function(t){return Math.sin(t*Rc)},U.easeSinInOut=Gt,U.easeExp=Zt,U.easeExpIn=function(t){return Math.pow(2,10*t-10)},U.easeExpOut=function(t){return 1-Math.pow(2,-10*t)},U.easeExpInOut=Zt,U.easeCircle=Jt,U.easeCircleIn=function(t){return 1-Math.sqrt(1-t*t)},U.easeCircleOut=function(t){return Math.sqrt(1- --t*t)},U.easeCircleInOut=Jt,U.easeBounce=qt,U.easeBounceIn=function(t){return 1-qt(1-t)},U.easeBounceOut=qt,U.easeBounceInOut=function(t){return((t*=2)<=1?1-qt(1-t):qt(t-1)+1)/2},U.easeBack=Hc,U.easeBackIn=Uc,U.easeBackOut=Bc,U.easeBackInOut=Hc,U.easeElastic=Wc,U.easeElasticIn=Qc,U.easeElasticOut=Wc,U.easeElasticInOut=Vc,U.forceCenter=function(o,s){function e(){for(var t,e=r.length,n=0,i=0,a=0;a<e;++a)n+=(t=r[a]).x,i+=t.y;for(n=n/e-o,i=i/e-s,a=0;a<e;++a)(t=r[a]).x-=n,t.y-=i}var r;return null==o&&(o=0),null==s&&(s=0),e.initialize=function(t){r=t},e.x=function(t){return arguments.length?(o=+t,e):o},e.y=function(t){return arguments.length?(s=+t,e):s},e},U.forceCollide=function(i){function e(){for(var t,e,r,l,c,u,d,n=o.length,i=0;i<p;++i)for(e=Me(o,_e,Te).visitAfter(a),t=0;t<n;++t)r=o[t],u=s[r.index],d=u*u,l=r.x+r.vx,c=r.y+r.vy,e.visit(function(t,e,n,i,a){var o=t.data,s=t.r,t=u+s;if(!o)return l+t<e||i<l-t||c+t<n||a<c-t;o.index>r.index&&((a=(i=l-o.x-o.vx)*i+(n=c-o.y-o.vy)*n)<t*t&&(0===i&&(a+=(i=wu())*i),0===n&&(a+=(n=wu())*n),a=(t-(a=Math.sqrt(a)))/a*f,r.vx+=(i*=a)*(t=(s*=s)/(d+s)),r.vy+=(n*=a)*t,o.vx-=i*(t=1-t),o.vy-=n*t))})}function a(t){if(t.data)return t.r=s[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function n(){if(o){var t,e,n=o.length;for(s=new Array(n),t=0;t<n;++t)e=o[t],s[e.index]=+i(e,t,o)}}var o,s,f=1,p=1;return"function"!=typeof i&&(i=Mu(null==i?1:+i)),e.initialize=function(t){o=t,n()},e.iterations=function(t){return arguments.length?(p=+t,e):p},e.strength=function(t){return arguments.length?(f=+t,e):f},e.radius=function(t){return arguments.length?(i="function"==typeof t?t:Mu(+t),n(),e):i},e},U.forceLink=function(c){function e(t){for(var e=0,n=c.length;e<h;++e)for(var i,a,o,s,r,l=0;l<n;++l)i=(r=c[l]).source,o=(a=r.target).x+a.vx-i.x-i.vx||wu(),s=a.y+a.vy-i.y-i.vy||wu(),o*=r=((r=Math.sqrt(o*o+s*s))-d[l])/r*t*u[l],s*=r,a.vx-=o*(r=f[l]),a.vy-=s*r,i.vx+=o*(r=1-r),i.vy+=s*r}function n(){if(r){var t,e=r.length,n=c.length,i=fe(r,p),a=0;for(l=new Array(e);a<n;++a)(t=c[a]).index=a,"object"!=typeof t.source&&(t.source=xe(i,t.source)),"object"!=typeof t.target&&(t.target=xe(i,t.target)),l[t.source.index]=(l[t.source.index]||0)+1,l[t.target.index]=(l[t.target.index]||0)+1;for(a=0,f=new Array(n);a<n;++a)t=c[a],f[a]=l[t.source.index]/(l[t.source.index]+l[t.target.index]);u=new Array(n),o(),d=new Array(n),s()}}function o(){if(r)for(var t=0,e=c.length;t<e;++t)u[t]=+i(c[t],t,c)}function s(){if(r)for(var t=0,e=c.length;t<e;++t)d[t]=+a(c[t],t,c)}var u,d,r,l,f,p=ke,i=function(t){return 1/Math.min(l[t.source.index],l[t.target.index])},a=Mu(30),h=1;return null==c&&(c=[]),e.initialize=function(t){r=t,n()},e.links=function(t){return arguments.length?(c=t,n(),e):c},e.id=function(t){return arguments.length?(p=t,e):p},e.iterations=function(t){return arguments.length?(h=+t,e):h},e.strength=function(t){return arguments.length?(i="function"==typeof t?t:Mu(+t),o(),e):i},e.distance=function(t){return arguments.length?(a="function"==typeof t?t:Mu(+t),s(),e):a},e},U.forceManyBody=function(){function e(t){var e,n=s.length,i=Me(s,Ne,Se).visitAfter(a);for(c=t,e=0;e<n;++e)l=s[e],i.visit(o)}function n(){if(s){var t,e,n=s.length;for(u=new Array(n),t=0;t<n;++t)e=s[t],u[e.index]=+i(e,t,s)}}function a(t){var e,n,i,a,o,s=0;if(t.length){for(i=a=o=0;o<4;++o)(e=t[o])&&(n=e.value)&&(s+=n,i+=n*e.x,a+=n*e.y);t.x=i/s,t.y=a/s}else for((e=t).x=e.data.x,e.y=e.data.y;s+=u[e.data.index],e=e.next;);t.value=s}function o(t,e,n,i){if(!t.value)return!0;var a=t.x-l.x,o=t.y-l.y,s=i-e,r=a*a+o*o;if(s*s/p<r)return r<f&&(0===a&&(r+=(a=wu())*a),0===o&&(r+=(o=wu())*o),r<d&&(r=Math.sqrt(d*r)),l.vx+=a*t.value*c/r,l.vy+=o*t.value*c/r),!0;if(!(t.length||f<=r))for(t.data===l&&!t.next||(0===a&&(r+=(a=wu())*a),0===o&&(r+=(o=wu())*o),r<d&&(r=Math.sqrt(d*r)));t.data!==l&&(s=u[t.data.index]*c/r,l.vx+=a*s,l.vy+=o*s),t=t.next;);}var s,l,c,u,i=Mu(-30),d=1,f=1/0,p=.81;return e.initialize=function(t){s=t,n()},e.strength=function(t){return arguments.length?(i="function"==typeof t?t:Mu(+t),n(),e):i},e.distanceMin=function(t){return arguments.length?(d=t*t,e):Math.sqrt(d)},e.distanceMax=function(t){return arguments.length?(f=t*t,e):Math.sqrt(f)},e.theta=function(t){return arguments.length?(p=t*t,e):Math.sqrt(p)},e},U.forceSimulation=function(l){function t(){e(),p.call("tick",a),o<s&&(f.stop(),p.call("end",a))}function e(){var t,e,n=l.length;for(o+=(c-o)*r,d.each(function(t){t(o)}),t=0;t<n;++t)null==(e=l[t]).fx?e.x+=e.vx*=u:(e.x=e.fx,e.vx=0),null==e.fy?e.y+=e.vy*=u:(e.y=e.fy,e.vy=0)}function n(){for(var t,e,n,i=0,a=l.length;i<a;++i)(n=l[i]).index=i,(isNaN(n.x)||isNaN(n.y))&&(t=10*Math.sqrt(i),e=i*Fu,n.x=t*Math.cos(e),n.y=t*Math.sin(e)),(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}function i(t){return t.initialize&&t.initialize(l),t}var a,o=1,s=.001,r=1-Math.pow(s,1/300),c=0,u=.6,d=fe(),f=Ot(t),p=j("tick","end");return null==l&&(l=[]),n(),a={tick:e,restart:function(){return f.restart(t),a},stop:function(){return f.stop(),a},nodes:function(t){return arguments.length?(l=t,n(),d.each(i),a):l},alpha:function(t){return arguments.length?(o=+t,a):o},alphaMin:function(t){return arguments.length?(s=+t,a):s},alphaDecay:function(t){return arguments.length?(r=+t,a):+r},alphaTarget:function(t){return arguments.length?(c=+t,a):c},velocityDecay:function(t){return arguments.length?(u=1-t,a):1-u},force:function(t,e){return 1<arguments.length?(null==e?d.remove(t):d.set(t,i(e)),a):d.get(t)},find:function(t,e,n){var i,a,o,s=0,r=l.length;for(null==n?n=1/0:n*=n,s=0;s<r;++s)(i=(i=t-(a=l[s]).x)*i+(i=e-a.y)*i)<n&&(o=a,n=i);return o},on:function(t,e){return 1<arguments.length?(p.on(t,e),a):p.on(t)}}},U.forceX=function(n){function e(t){for(var e,n=0,i=a.length;n<i;++n)(e=a[n]).vx+=(s[n]-e.x)*o[n]*t}function i(){if(a){var t,e=a.length;for(o=new Array(e),s=new Array(e),t=0;t<e;++t)o[t]=isNaN(s[t]=+n(a[t],t,a))?0:+r(a[t],t,a)}}var a,o,s,r=Mu(.1);return"function"!=typeof n&&(n=Mu(null==n?0:+n)),e.initialize=function(t){a=t,i()},e.strength=function(t){return arguments.length?(r="function"==typeof t?t:Mu(+t),i(),e):r},e.x=function(t){return arguments.length?(n="function"==typeof t?t:Mu(+t),i(),e):n},e},U.forceY=function(n){function e(t){for(var e,n=0,i=a.length;n<i;++n)(e=a[n]).vy+=(s[n]-e.y)*o[n]*t}function i(){if(a){var t,e=a.length;for(o=new Array(e),s=new Array(e),t=0;t<e;++t)o[t]=isNaN(s[t]=+n(a[t],t,a))?0:+r(a[t],t,a)}}var a,o,s,r=Mu(.1);return"function"!=typeof n&&(n=Mu(null==n?0:+n)),e.initialize=function(t){a=t,i()},e.strength=function(t){return arguments.length?(r="function"==typeof t?t:Mu(+t),i(),e):r},e.y=function(t){return arguments.length?(n="function"==typeof t?t:Mu(+t),i(),e):n},e},U.formatDefaultLocale=Oe,U.formatLocale=Vu,U.formatSpecifier=Ee,U.precisionFixed=qu,U.precisionPrefix=Ku,U.precisionRound=Xu,U.geoArea=function(t){return nf.reset(),td(t,af),2*nf},U.geoBounds=function(t){var e,n,i,a,o,s,r;if(ud=cd=-(rd=ld=1/0),md=[],td(t,sf),n=md.length){for(md.sort(un),e=1,o=[i=md[0]];e<n;++e)dn(i,(a=md[e])[0])||dn(i,a[1])?(cn(i[0],a[1])>cn(i[0],i[1])&&(i[1]=a[1]),cn(a[0],i[1])>cn(i[0],i[1])&&(i[0]=a[0])):o.push(i=a);for(s=-1/0,e=0,i=o[n=o.length-1];e<=n;i=a,++e)a=o[e],(r=cn(i[1],a[0]))>s&&(s=r,rd=a[0],cd=i[1])}return md=gd=null,rd===1/0||ld===1/0?[[NaN,NaN],[NaN,NaN]]:[[rd,ld],[cd,ud]]},U.geoCentroid=function(t){yd=vd=Dd=bd=Ad=Id=Md=wd=Cd=_d=Td=0,td(t,rf);var e=Cd,n=_d,i=Td,t=e*e+n*n+i*i;return t<1e-12&&(e=Id,n=Md,i=wd,vd<Od&&(e=Dd,n=bd,i=Ad),(t=e*e+n*n+i*i)<1e-12)?[NaN,NaN]:[Yd(n,e)*Fd,Re(i/Kd(t))*Fd]},U.geoCircle=function(){function e(){var t=o.apply(this,arguments),e=s.apply(this,arguments)*Ud,n=r.apply(this,arguments)*Ud;return i=[],a=Mn(-t[0]*Ud,-t[1]*Ud,0).invert,Tn(l,e,n,1),t={type:"Polygon",coordinates:[i]},i=a=null,t}var i,a,o=ed([0,0]),s=ed(90),r=ed(6),l={point:function(t,e){i.push(t=a(t,e)),t[0]*=Fd,t[1]*=Fd}};return e.center=function(t){return arguments.length?(o="function"==typeof t?t:ed([+t[0],+t[1]]),e):o},e.radius=function(t){return arguments.length?(s="function"==typeof t?t:ed(+t),e):s},e.precision=function(t){return arguments.length?(r="function"==typeof t?t:ed(+t),e):r},e},U.geoClipExtent=function(){var e,n,i,a=0,o=0,s=960,r=500;return i={stream:function(t){return e&&n===t?e:e=Sn(a,o,s,r)(n=t)},extent:function(t){return arguments.length?(a=+t[0][0],o=+t[0][1],s=+t[1][0],r=+t[1][1],e=n=null,i):[[a,o],[s,r]]}}},U.geoContains=function(t,e){return(t&&Lf.hasOwnProperty(t.type)?Lf[t.type]:Ln)(t,e)},U.geoDistance=hf,U.geoGraticule=Yn,U.geoGraticule10=function(){return Yn()()},U.geoInterpolate=function(t,e){var n=t[0]*Ud,i=t[1]*Ud,a=e[0]*Ud,o=e[1]*Ud,t=Qd(i),s=Jd(i),e=Qd(o),r=Jd(o),l=t*Qd(n),c=t*Jd(n),u=e*Qd(a),d=e*Jd(a),f=2*Re(Kd(Fe(o-i)+t*e*Fe(a-n))),p=Jd(f),a=f?function(t){var e=Jd(t*=f)/p,n=Jd(f-t)/p,i=n*l+e*u,t=n*c+e*d,e=n*s+e*r;return[Yd(t,i)*Fd,Yd(e,Kd(i*i+t*t))*Fd]}:function(){return[n*Fd,i*Fd]};return a.distance=f,a},U.geoLength=Ef,U.geoPath=function(e,n){function i(t){return t&&("function"==typeof s&&o.pointRadius(+s.apply(this,arguments)),td(t,a(o))),o.result()}var a,o,s=4.5;return i.area=function(t){return td(t,a(Uf)),Uf.result()},i.measure=function(t){return td(t,a(lp)),lp.result()},i.bounds=function(t){return td(t,a(Wf)),Wf.result()},i.centroid=function(t){return td(t,a(ep)),ep.result()},i.projection=function(t){return arguments.length?(a=null==t?(e=null,Pf):(e=t).stream,i):e},i.context=function(t){return arguments.length?(o=null==t?(n=null,new si):new ii(n=t),"function"!=typeof s&&o.pointRadius(s),i):n},i.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(o.pointRadius(+t),+t),i):s},i.projection(e).context(n)},U.geoAlbers=pp,U.geoAlbersUsa=function(){function n(t){var e=t[0],t=t[1];return i=null,s.point(e,t),i||(r.point(e,t),i)||(l.point(e,t),i)}function a(){return e=o=null,n}var e,o,s,r,l,i,c=pp(),u=fp().rotate([154,0]).center([-2,58.5]).parallels([55,65]),d=fp().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,e){i=[t,e]}};return n.invert=function(t){var e=c.scale(),n=c.translate(),i=(t[0]-n[0])/e,e=(t[1]-n[1])/e;return(.12<=e&&e<.234&&-.425<=i&&i<-.214?u:.166<=e&&e<.234&&-.214<=i&&i<-.115?d:c).invert(t)},n.stream=function(t){return e&&o===t?e:(i=[c.stream(o=t),u.stream(t),d.stream(t)],a=i.length,e={point:function(t,e){for(var n=-1;++n<a;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<a;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<a;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<a;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<a;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<a;)i[t].polygonEnd()}});var i,a},n.precision=function(t){return arguments.length?(c.precision(t),u.precision(t),d.precision(t),a()):c.precision()},n.scale=function(t){return arguments.length?(c.scale(t),u.scale(.35*t),d.scale(t),n.translate(c.translate())):c.scale()},n.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],i=+t[1];return s=c.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(f),r=u.translate([n-.307*e,i+.201*e]).clipExtent([[n-.425*e+Od,i+.12*e+Od],[n-.214*e-Od,i+.234*e-Od]]).stream(f),l=d.translate([n-.205*e,i+.212*e]).clipExtent([[n-.214*e+Od,i+.166*e+Od],[n-.115*e-Od,i+.234*e-Od]]).stream(f),a()},n.fitExtent=function(t,e){return fi(n,t,e)},n.fitSize=function(t,e){return pi(n,t,e)},n.scale(1070)},U.geoAzimuthalEqualArea=function(){return hi(yp).scale(124.75).clipAngle(179.999)},U.geoAzimuthalEqualAreaRaw=yp,U.geoAzimuthalEquidistant=function(){return hi(vp).scale(79.4188).clipAngle(179.999)},U.geoAzimuthalEquidistantRaw=vp,U.geoConicConformal=function(){return gi(Mi).scale(109.5).parallels([30,30])},U.geoConicConformalRaw=Mi,U.geoConicEqualArea=fp,U.geoConicEqualAreaRaw=yi,U.geoConicEquidistant=function(){return gi(Ci).scale(131.154).center([0,13.9389])},U.geoConicEquidistantRaw=Ci,U.geoEquirectangular=function(){return hi(wi).scale(152.63)},U.geoEquirectangularRaw=wi,U.geoGnomonic=function(){return hi(_i).scale(144.049).clipAngle(60)},U.geoGnomonicRaw=_i,U.geoIdentity=function(){function e(){return o=s=null,r}var n,i,a,o,s,r,l=1,c=0,u=0,d=1,f=1,p=Pf,h=null,m=Pf;return r={stream:function(t){return o&&s===t?o:o=p(m(s=t))},clipExtent:function(t){return arguments.length?(m=null==t?(h=n=i=a=null,Pf):Sn(h=+t[0][0],n=+t[0][1],i=+t[1][0],a=+t[1][1]),e()):null==h?null:[[h,n],[i,a]]},scale:function(t){return arguments.length?(p=Ti((l=+t)*d,l*f,c,u),e()):l},translate:function(t){return arguments.length?(p=Ti(l*d,l*f,c=+t[0],u=+t[1]),e()):[c,u]},reflectX:function(t){return arguments.length?(p=Ti(l*(d=t?-1:1),l*f,c,u),e()):d<0},reflectY:function(t){return arguments.length?(p=Ti(l*d,l*(f=t?-1:1),c,u),e()):f<0},fitExtent:function(t,e){return fi(r,t,e)},fitSize:function(t,e){return pi(r,t,e)}}},U.geoProjection=hi,U.geoProjectionMutator=mi,U.geoMercator=function(){return Ai(bi).scale(961/Rd)},U.geoMercatorRaw=bi,U.geoOrthographic=function(){return hi(ki).scale(249.5).clipAngle(90+Od)},U.geoOrthographicRaw=ki,U.geoStereographic=function(){return hi(xi).scale(250).clipAngle(142)},U.geoStereographicRaw=xi,U.geoTransverseMercator=function(){var t=Ai(Ni),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],2<t.length?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},U.geoTransverseMercatorRaw=Ni,U.geoRotation=cf,U.geoStream=td,U.geoTransform=function(t){return{stream:ui(t)}},U.cluster=function(){function e(e){var i,a=0;e.eachAfter(function(t){var e,n=t.children;n?(t.x=(e=n).reduce(Ei,0)/e.length,t.y=1+n.reduce(ji,0)):(t.x=i?a+=r(t,i):0,t.y=0,i=t)});var t=function(t){for(var e;e=t.children;)t=e[0];return t}(e),n=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),o=t.x-r(t,n)/2,s=n.x+r(n,t)/2;return e.eachAfter(u?function(t){t.x=(t.x-e.x)*l,t.y=(e.y-t.y)*c}:function(t){t.x=(t.x-o)/(s-o)*l,t.y=(1-(e.y?t.y/e.y:1))*c})}var r=Si,l=1,c=1,u=!1;return e.separation=function(t){return arguments.length?(r=t,e):r},e.size=function(t){return arguments.length?(u=!1,l=+t[0],c=+t[1],e):u?null:[l,c]},e.nodeSize=function(t){return arguments.length?(u=!0,l=+t[0],c=+t[1],e):u?[l,c]:null},e},U.hierarchy=Li,U.pack=function(){function e(t){return t.x=i/2,t.y=a/2,n?t.eachBefore($i(n)).eachAfter(ta(o,.5)).eachBefore(ea(1)):t.eachBefore($i(Xi)).eachAfter(ta(Ki,1)).eachAfter(ta(o,t.r/Math.min(i,a))).eachBefore(ea(Math.min(i,a)/(2*t.r))),t}var n=null,i=1,a=1,o=Ki;return e.radius=function(t){return arguments.length?(n=null==(t=t)?null:qi(t),e):n},e.size=function(t){return arguments.length?(i=+t[0],a=+t[1],e):[i,a]},e.padding=function(t){return arguments.length?(o="function"==typeof t?t:bp(+t),e):o},e},U.packSiblings=function(t){return Ji(t),t},U.packEnclose=Dp,U.partition=function(){function e(t){var o,s,e=t.height+1;return t.x0=t.y0=r,t.x1=n,t.y1=i/e,t.eachBefore((o=i,s=e,function(t){t.children&&Mp(t,t.x0,o*(t.depth+1)/s,t.x1,o*(t.depth+2)/s);var e=t.x0,n=t.y0,i=t.x1-r,a=t.y1-r;i<e&&(e=i=(e+i)/2),a<n&&(n=a=(n+a)/2),t.x0=e,t.y0=n,t.x1=i,t.y1=a})),a&&t.eachBefore(Ap),t}var n=1,i=1,r=0,a=!1;return e.round=function(t){return arguments.length?(a=!!t,e):a},e.size=function(t){return arguments.length?(n=+t[0],i=+t[1],e):[n,i]},e.padding=function(t){return arguments.length?(r=+t,e):r},e},U.stratify=function(){function e(t){for(var e,n,i,a,o,s=t.length,r=new Array(s),l={},c=0;c<s;++c)o=t[c],i=r[c]=new Fi(o),null!=(a=u(o,c,t))&&(a+="")&&(l[o="$"+(i.id=a)]=o in l?Cp:i);for(c=0;c<s;++c)if(i=r[c],null!=(a=d(t[c],c,t))&&(a+="")){if(!(n=l["$"+a]))throw new Error("missing: "+a);if(n===Cp)throw new Error("ambiguous: "+a);n.children?n.children.push(i):n.children=[i],i.parent=n}else{if(e)throw new Error("multiple roots");e=i}if(!e)throw new Error("no root");if(e.parent=wp,e.eachBefore(function(t){t.depth=t.parent.depth+1,--s}).eachBefore(Ri),e.parent=null,0<s)throw new Error("cycle");return e}var u=na,d=ia;return e.id=function(t){return arguments.length?(u=qi(t),e):u},e.parentId=function(t){return arguments.length?(d=qi(t),e):d},e},U.tree=function(){function e(t){var e,n,i,a,o,s,r=function(t){for(var e,n,i,a,o,s=[t=new ra(t,0)];e=s.pop();)if(i=e._.children)for(e.children=new Array(o=i.length),a=o-1;0<=a;--a)s.push(n=e.children[a]=new ra(i[a],a)),n.parent=e;return(t.parent=new ra(null,0)).children=[t],t}(t);return r.eachAfter(l),r.parent.m=-r.z,r.eachBefore(c),h?t.eachBefore(u):((i=n=e=t).eachBefore(function(t){t.x<e.x&&(e=t),t.x>n.x&&(n=t),t.depth>i.depth&&(i=t)}),r=e===n?1:f(e,n)/2,a=r-e.x,o=d/(n.x+r+a),s=p/(i.depth||1),t.eachBefore(function(t){t.x=(t.x+a)*o,t.y=t.depth*s})),t}function l(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;e?(function(t){for(var e,n=0,i=0,a=t.children,o=a.length;0<=--o;)(e=a[o]).z+=n,e.m+=n,n+=e.s+(i+=e.c)}(t),e=(e[0].z+e[e.length-1].z)/2,i?(t.z=i.z+f(t._,i._),t.m=t.z-e):t.z=e):i&&(t.z=i.z+f(t._,i._)),t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,r=a.parent.children[0],l=a.m,c=o.m,u=s.m,d=r.m;s=sa(s),a=oa(a),s&&a;)r=oa(r),(o=sa(o)).a=t,0<(i=s.z+u-a.z-l+f(s._,a._))&&(function(t,e,n){var i=n/(e.i-t.i);e.c-=i,e.s+=n,t.c+=i,e.z+=n,e.m+=n}(function(t,e,n){return t.a.parent===e.parent?t.a:n}(s,t,n),t,i),l+=i,c+=i),u+=s.m,l+=a.m,d+=r.m,c+=o.m;s&&!sa(o)&&(o.t=s,o.m+=u-c),a&&!oa(r)&&(r.t=a,r.m+=l-d,n=t)}return n}(t,i,t.parent.A||n[0])}function c(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=d,t.y=t.depth*p}var f=aa,d=1,p=1,h=null;return e.separation=function(t){return arguments.length?(f=t,e):f},e.size=function(t){return arguments.length?(h=!1,d=+t[0],p=+t[1],e):h?null:[d,p]},e.nodeSize=function(t){return arguments.length?(h=!0,d=+t[0],p=+t[1],e):h?[d,p]:null},e},U.treemap=function(){function e(t){return t.x0=t.y0=0,t.x1=a,t.y1=o,t.eachBefore(n),r=[0],i&&t.eachBefore(Ap),t}function n(t){var e=r[t.depth],n=t.x0+e,i=t.y0+e,a=t.x1-e,o=t.y1-e;a<n&&(n=a=(n+a)/2),o<i&&(i=o=(i+o)/2),t.x0=n,t.y0=i,t.x1=a,t.y1=o,t.children&&(e=r[t.depth+1]=l(t)/2,n+=f(t)-e,i+=c(t)-e,(a-=u(t)-e)<n&&(n=a=(n+a)/2),(o-=d(t)-e)<i&&(i=o=(i+o)/2),s(t,n,i,a,o))}var s=kp,i=!1,a=1,o=1,r=[0],l=Ki,c=Ki,u=Ki,d=Ki,f=Ki;return e.round=function(t){return arguments.length?(i=!!t,e):i},e.size=function(t){return arguments.length?(a=+t[0],o=+t[1],e):[a,o]},e.tile=function(t){return arguments.length?(s=qi(t),e):s},e.padding=function(t){return arguments.length?e.paddingInner(t).paddingOuter(t):e.paddingInner()},e.paddingInner=function(t){return arguments.length?(l="function"==typeof t?t:bp(+t),e):l},e.paddingOuter=function(t){return arguments.length?e.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):e.paddingTop()},e.paddingTop=function(t){return arguments.length?(c="function"==typeof t?t:bp(+t),e):c},e.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:bp(+t),e):u},e.paddingBottom=function(t){return arguments.length?(d="function"==typeof t?t:bp(+t),e):d},e.paddingLeft=function(t){return arguments.length?(f="function"==typeof t?t:bp(+t),e):f},e},U.treemapBinary=function(t,e,n,i,a){var o,s,m=t.children,r=m.length,g=new Array(r+1);for(g[0]=s=o=0;o<r;++o)g[o+1]=s+=m[o].value;!function t(e,n,i,a,o,s,r){if(n-1<=e)return(h=m[e]).x0=a,h.y0=o,h.x1=s,h.y1=r,0;for(var l=g[e],c=i/2+l,u=e+1,d=n-1;u<d;){var f=u+d>>>1;g[f]<c?u=1+f:d=f}c-g[u-1]<g[u]-c&&e+1<u&&--u;var p=g[u]-l,h=i-p;r-o<s-a?(t(e,u,p,a,o,l=(a*h+s*p)/i,r),t(u,n,h,l,o,s,r)):(t(e,u,p,a,o,s,i=(o*h+r*p)/i),t(u,n,h,a,i,s,r))}(0,r,t.value,e,n,i,a)},U.treemapDice=Mp,U.treemapSlice=_p,U.treemapSliceDice=function(t,e,n,i,a){(1&t.depth?_p:Mp)(t,e,n,i,a)},U.treemapSquarify=kp,U.treemapResquarify=xp,U.interpolate=ql,U.interpolateArray=Yl,U.interpolateBasis=xl,U.interpolateBasisClosed=Nl,U.interpolateDate=Ql,U.interpolateNumber=Wl,U.interpolateObject=Vl,U.interpolateRound=Kl,U.interpolateString=Jl,U.interpolateTransformCss=tc,U.interpolateTransformSvg=ec,U.interpolateZoom=El,U.interpolateRgb=Ul,U.interpolateRgbBasis=Bl,U.interpolateRgbBasisClosed=Hl,U.interpolateHsl=ic,U.interpolateHslLong=ac,U.interpolateLab=function(e,t){var n=wt((e=ut(e)).l,(t=ut(t)).l),i=wt(e.a,t.a),a=wt(e.b,t.b),o=wt(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=i(t),e.b=a(t),e.opacity=o(t),e+""}},U.interpolateHcl=oc,U.interpolateHclLong=sc,U.interpolateCubehelix=rc,U.interpolateCubehelixLong=lc,U.quantize=function(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t(i/(e-1));return n},U.path=oe,U.polygonArea=function(t){for(var e,n=-1,i=t.length,a=t[i-1],o=0;++n<i;)e=a,a=t[n],o+=e[1]*a[0]-e[0]*a[1];return o/2},U.polygonCentroid=function(t){for(var e,n,i=-1,a=t.length,o=0,s=0,r=t[a-1],l=0;++i<a;)e=r,r=t[i],l+=n=e[0]*r[1]-r[0]*e[1],o+=(e[0]+r[0])*n,s+=(e[1]+r[1])*n;return[o/(l*=3),s/l]},U.polygonHull=function(t){if((e=t.length)<3)return null;for(var e,n=new Array(e),i=new Array(e),a=0;a<e;++a)n[a]=[+t[a][0],+t[a][1],a];for(n.sort(ca),a=0;a<e;++a)i[a]=[n[a][0],-n[a][1]];var o=ua(n),s=ua(i),r=s[0]===o[0],l=s[s.length-1]===o[o.length-1],c=[];for(a=o.length-1;0<=a;--a)c.push(t[n[o[a]][2]]);for(a=+r;a<s.length-l;++a)c.push(t[n[s[a]][2]]);return c},U.polygonContains=function(t,e){for(var n,i,a=t.length,o=t[a-1],s=e[0],r=e[1],l=o[0],c=o[1],u=!1,d=0;d<a;++d)n=(o=t[d])[0],(i=o[1])>r!=r<c&&s<(l-n)*(r-i)/(c-i)+n&&(u=!u),l=n,c=i;return u},U.polygonLength=function(t){for(var e,n,i=-1,a=t.length,o=t[a-1],s=o[0],r=o[1],l=0;++i<a;)e=s,n=r,e-=s=(o=t[i])[0],n-=r=o[1],l+=Math.sqrt(e*e+n*n);return l},U.quadtree=Me,U.queue=ma,U.randomUniform=Pp,U.randomNormal=Rp,U.randomLogNormal=Fp,U.randomBates=Bp,U.randomIrwinHall=Up,U.randomExponential=Hp,U.request=jp,U.html=Yp,U.json=Qp,U.text=Wp,U.xml=Vp,U.csv=Gp,U.tsv=Zp,U.scaleBand=ya,U.scalePoint=function(){return function t(e){var n=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(n())},e}(ya().paddingInner(1))},U.scaleIdentity=function t(){function e(t){return+t}var n=[0,1];return(e.invert=e).domain=e.range=function(t){return arguments.length?(n=qp.call(t,th),e):n.slice()},e.copy=function(){return t().domain(n)},Ma(e)},U.scaleLinear=function t(){var e=Ia(va,Wl);return e.copy=function(){return Aa(e,t())},Ma(e)},U.scaleLog=function t(){function e(){return f=ka(d),p=Ta(d),u()[0]<0&&(f=xa(f),p=xa(p)),a}var a=Ia(wa,Ca).domain([1,10]),u=a.domain,d=10,f=ka(10),p=Ta(10);return a.base=function(t){return arguments.length?(d=+t,e()):d},a.domain=function(t){return arguments.length?(u(t),e()):u()},a.ticks=function(t){var e=u(),n=e[0],i=e[e.length-1];(e=i<n)&&(r=n,n=i,i=r);var a,o,s,r=f(n),l=f(i),t=null==t?10:+t,c=[];if(!(d%1)&&l-r<t){if(r=Math.round(r)-1,l=Math.round(l)+1,0<n){for(;r<l;++r)for(o=1,a=p(r);o<d;++o)if(!((s=a*o)<n)){if(i<s)break;c.push(s)}}else for(;r<l;++r)for(o=d-1,a=p(r);1<=o;--o)if(!((s=a*o)<n)){if(i<s)break;c.push(s)}}else c=Sr(r,l,Math.min(l-r,t)).map(p);return e?c.reverse():c},a.tickFormat=function(t,n){if("function"!=typeof(n=null==n?10===d?".0e":",":n)&&(n=U.format(n)),t===1/0)return n;null==t&&(t=10);var i=Math.max(1,d*t/a.ticks().length);return function(t){var e=t/p(Math.round(f(t)));return e*d<d-.5&&(e*=d),e<=i?n(t):""}},a.nice=function(){return u(zp(u(),{floor:function(t){return p(Math.floor(f(t)))},ceil:function(t){return p(Math.ceil(f(t)))}}))},a.copy=function(){return Aa(a,t().base(d))},a},U.scaleOrdinal=ga,U.scaleImplicit=Xp,U.scalePow=Sa,U.scaleSqrt=function(){return Sa().exponent(.5)},U.scaleQuantile=function t(){function a(){var t=0,e=Math.max(1,i.length);for(s=new Array(e-1);++t<e;)s[t-1]=hr(o,t/e);return n}function n(t){if(!isNaN(t=+t))return i[Ar(s,t)]}var o=[],i=[],s=[];return n.invertExtent=function(t){return(t=i.indexOf(t))<0?[NaN,NaN]:[0<t?s[t-1]:o[0],t<s.length?s[t]:o[o.length-1]]},n.domain=function(t){if(!arguments.length)return o.slice();o=[];for(var e,n=0,i=t.length;n<i;++n)null==(e=t[n])||isNaN(e=+e)||o.push(e);return o.sort(Dr),a()},n.range=function(t){return arguments.length?(i=Kp.call(t),a()):i.slice()},n.quantiles=function(){return s.slice()},n.copy=function(){return t().domain(o).range(i)},n},U.scaleQuantize=function t(){function e(t){if(t<=t)return r[Ar(s,t,0,o)]}function n(){var t=-1;for(s=new Array(o);++t<o;)s[t]=((t+1)*a-(t-o)*i)/(o+1);return e}var i=0,a=1,o=1,s=[.5],r=[0,1];return e.domain=function(t){return arguments.length?(i=+t[0],a=+t[1],n()):[i,a]},e.range=function(t){return arguments.length?(o=(r=Kp.call(t)).length-1,n()):r.slice()},e.invertExtent=function(t){return(t=r.indexOf(t))<0?[NaN,NaN]:t<1?[i,s[0]]:o<=t?[s[o-1],a]:[s[t-1],s[t]]},e.copy=function(){return t().domain([i,a]).range(r)},Ma(e)},U.scaleThreshold=function t(){function e(t){if(t<=t)return i[Ar(n,t,0,a)]}var n=[.5],i=[0,1],a=1;return e.domain=function(t){return arguments.length?(n=Kp.call(t),a=Math.min(n.length,i.length-1),e):n.slice()},e.range=function(t){return arguments.length?(i=Kp.call(t),a=Math.min(n.length,i.length-1),e):i.slice()},e.invertExtent=function(t){return t=i.indexOf(t),[n[t-1],n[t]]},e.copy=function(){return t().domain(n).range(i)},e},U.scaleTime=function(){return zo(Sh,xh,mh,ph,dh,ch,rh,oh,U.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},U.scaleUtc=function(){return zo(em,$h,Fh,Ph,Lh,jh,rh,oh,U.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},U.schemeCategory10=dm,U.schemeCategory20b=fm,U.schemeCategory20c=pm,U.schemeCategory20=hm,U.interpolateCubehelixDefault=mm,U.interpolateRainbow=function(t){(t<0||1<t)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return vm.h=360*t-100,vm.s=1.5-1.5*e,vm.l=.8-.9*e,vm+""},U.interpolateWarm=gm,U.interpolateCool=ym,U.interpolateViridis=Dm,U.interpolateMagma=bm,U.interpolateInferno=Am,U.interpolatePlasma=br,U.scaleSequential=function t(e){function n(t){return t=(t-i)/(a-i),e(o?Math.max(0,Math.min(1,t)):t)}var i=0,a=1,o=!1;return n.domain=function(t){return arguments.length?(i=+t[0],a=+t[1],n):[i,a]},n.clamp=function(t){return arguments.length?(o=!!t,n):o},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return t(e).domain([i,a]).clamp(o)},Ma(n)},U.creator=Lr,U.local=s,U.matcher=Br,U.mouse=Yr,U.namespace=Or,U.namespaces=Pr,U.select=tl,U.selectAll=function(t){return"string"==typeof t?new H([document.querySelectorAll(t)],[document.documentElement]):new H([null==t?[]:t],qr)},U.selection=Y,U.selector=Qr,U.selectorAll=Wr,U.style=A,U.touch=Kr,U.touches=function(t,e){for(var n=0,i=(e=null==e?Gr().touches:e)?e.length:0,a=new Array(i);n<i;++n)a[n]=Zr(t,e[n]);return a},U.window=Jr,U.customEvent=O,U.arc=function(){function e(){var t,e,n,i,a,o,s,r,l,c,u,d,f,p,h,m,g,y,v,D,b,A,I,M,w,C=+S.apply(this,arguments),_=+E.apply(this,arguments),T=L.apply(this,arguments)-Em,k=z.apply(this,arguments)-Em,x=Mm(k-T),N=T<k;if(R=R||(t=oe()),_<C&&(D=_,_=C,C=D),Nm<_?jm-Nm<x?(R.moveTo(_*Cm(T),_*km(T)),R.arc(0,0,_,T,k,!N),Nm<C&&(R.moveTo(C*Cm(k),C*km(k)),R.arc(0,0,C,k,T,N))):(o=i=T,s=a=k,l=r=x,d=P.apply(this,arguments)/2,u=Nm<d&&(O?+O.apply(this,arguments):xm(C*C+_*_)),D=v=c=Tm(Mm(_-C)/2,+j.apply(this,arguments)),Nm<u&&(f=Ro(u/C*km(d)),p=Ro(u/_*km(d)),(r-=2*f)>Nm?(o+=f*=N?1:-1,s-=f):(r=0,o=s=(T+k)/2),(l-=2*p)>Nm?(i+=p*=N?1:-1,a-=p):(l=0,i=a=(T+k)/2)),u=_*Cm(i),d=_*km(i),f=C*Cm(s),p=C*km(s),Nm<c&&(h=_*Cm(a),m=_*km(a),g=C*Cm(o),y=C*km(o),x<Sm&&(b=Nm<r?(I=g,M=y,w=f,T=p,[(b=u)+(w=((w-=k=h)*((A=d)-(x=m))-(T-=x)*(b-k))/(T*(I-=b)-w*(M-=A)))*I,A+w*M]):[f,p],M=1/km((1<(M=((I=u-b[0])*(A=h-b[0])+(w=d-b[1])*(M=m-b[1]))/(xm(I*I+w*w)*xm(A*A+M*M)))?0:M<-1?Sm:Math.acos(M))/2),b=xm(b[0]*b[0]+b[1]*b[1]),v=Tm(c,(C-b)/(M-1)),D=Tm(c,(_-b)/(1+M)))),Nm<l?Nm<D?(e=Qo(g,y,u,d,_,D,N),n=Qo(h,m,f,p,_,D,N),R.moveTo(e.cx+e.x01,e.cy+e.y01),D<c?R.arc(e.cx,e.cy,D,wm(e.y01,e.x01),wm(n.y01,n.x01),!N):(R.arc(e.cx,e.cy,D,wm(e.y01,e.x01),wm(e.y11,e.x11),!N),R.arc(0,0,_,wm(e.cy+e.y11,e.cx+e.x11),wm(n.cy+n.y11,n.cx+n.x11),!N),R.arc(n.cx,n.cy,D,wm(n.y11,n.x11),wm(n.y01,n.x01),!N))):(R.moveTo(u,d),R.arc(0,0,_,i,a,!N)):R.moveTo(u,d),Nm<C&&Nm<r?Nm<v?(e=Qo(f,p,h,m,C,-v,N),n=Qo(u,d,g,y,C,-v,N),R.lineTo(e.cx+e.x01,e.cy+e.y01),v<c?R.arc(e.cx,e.cy,v,wm(e.y01,e.x01),wm(n.y01,n.x01),!N):(R.arc(e.cx,e.cy,v,wm(e.y01,e.x01),wm(e.y11,e.x11),!N),R.arc(0,0,C,wm(e.cy+e.y11,e.cx+e.x11),wm(n.cy+n.y11,n.cx+n.x11),N),R.arc(n.cx,n.cy,v,wm(n.y11,n.x11),wm(n.y01,n.x01),!N))):R.arc(0,0,C,s,o,N):R.lineTo(f,p)):R.moveTo(0,0),R.closePath(),t)return R=null,t+""||null}var S=Fo,E=Uo,j=Im(0),O=null,L=Bo,z=Ho,P=Yo,R=null;return e.centroid=function(){var t=(+S.apply(this,arguments)+ +E.apply(this,arguments))/2,e=(+L.apply(this,arguments)+ +z.apply(this,arguments))/2-Sm/2;return[Cm(e)*t,km(e)*t]},e.innerRadius=function(t){return arguments.length?(S="function"==typeof t?t:Im(+t),e):S},e.outerRadius=function(t){return arguments.length?(E="function"==typeof t?t:Im(+t),e):E},e.cornerRadius=function(t){return arguments.length?(j="function"==typeof t?t:Im(+t),e):j},e.padRadius=function(t){return arguments.length?(O=null==t?null:"function"==typeof t?t:Im(+t),e):O},e.startAngle=function(t){return arguments.length?(L="function"==typeof t?t:Im(+t),e):L},e.endAngle=function(t){return arguments.length?(z="function"==typeof t?t:Im(+t),e):z},e.padAngle=function(t){return arguments.length?(P="function"==typeof t?t:Im(+t),e):P},e.context=function(t){return arguments.length?(R=null==t?null:t,e):R},e},U.area=Lm,U.line=Om,U.pie=function(){function e(n){for(var t,e,i,a,o=n.length,s=0,r=new Array(o),l=new Array(o),c=+y.apply(this,arguments),u=Math.min(jm,Math.max(-jm,v.apply(this,arguments)-c)),d=Math.min(Math.abs(u)/o,D.apply(this,arguments)),f=d*(u<0?-1:1),p=0;p<o;++p)0<(a=l[r[p]=p]=+h(n[p],p,n))&&(s+=a);for(null!=m?r.sort(function(t,e){return m(l[t],l[e])}):null!=g&&r.sort(function(t,e){return g(n[t],n[e])}),p=0,e=s?(u-o*f)/s:0;p<o;++p,c=i)t=r[p],i=c+(0<(a=l[t])?a*e:0)+f,l[t]={data:n[t],index:p,value:a,startAngle:c,endAngle:i,padAngle:d};return l}var h=Pm,m=zm,g=null,y=Im(0),v=Im(jm),D=Im(0);return e.value=function(t){return arguments.length?(h="function"==typeof t?t:Im(+t),e):h},e.sortValues=function(t){return arguments.length?(m=t,g=null,e):m},e.sort=function(t){return arguments.length?(g=t,m=null,e):g},e.startAngle=function(t){return arguments.length?(y="function"==typeof t?t:Im(+t),e):y},e.endAngle=function(t){return arguments.length?(v="function"==typeof t?t:Im(+t),e):v},e.padAngle=function(t){return arguments.length?(D="function"==typeof t?t:Im(+t),e):D},e},U.areaRadial=Bm,U.radialArea=Bm,U.lineRadial=Um,U.radialLine=Um,U.pointRadial=Hm,U.linkHorizontal=function(){return $o(ts)},U.linkVertical=function(){return $o(es)},U.linkRadial=function(){var t=$o(ns);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},U.symbol=function(){function e(){var t;if(a=a||(t=oe()),n.apply(this,arguments).draw(a,+i.apply(this,arguments)),t)return a=null,t+""||null}var n=Im(Wm),i=Im(64),a=null;return e.type=function(t){return arguments.length?(n="function"==typeof t?t:Im(t),e):n},e.size=function(t){return arguments.length?(i="function"==typeof t?t:Im(+t),e):i},e.context=function(t){return arguments.length?(a=null==t?null:t,e):a},e},U.symbols=pu,U.symbolCircle=Wm,U.symbolCross=wr,U.symbolDiamond=Zm,U.symbolSquare=ol,U.symbolStar=il,U.symbolTriangle=al,U.symbolWye=jc,U.curveBasisClosed=function(t){return new os(t)},U.curveBasisOpen=function(t){return new ss(t)},U.curveBasis=function(t){return new as(t)},U.curveBundle=Au,U.curveCardinalClosed=Su,U.curveCardinalOpen=zu,U.curveCardinal=_u,U.curveCatmullRomClosed=Jp,U.curveCatmullRomOpen=Ur,U.curveCatmullRom=Tp,U.curveLinearClosed=function(t){return new gs(t)},U.curveLinear=Rm,U.curveMonotoneX=function(t){return new As(t)},U.curveMonotoneY=function(t){return new Is(t)},U.curveNatural=function(t){return new ws(t)},U.curveStep=function(t){return new _s(t,.5)},U.curveStepAfter=function(t){return new _s(t,1)},U.curveStepBefore=function(t){return new _s(t,0)},U.stack=function(){function e(t){for(var e,n=d.apply(this,arguments),i=t.length,a=n.length,o=new Array(a),s=0;s<a;++s){for(var r,l=n[s],c=o[s]=new Array(i),u=0;u<i;++u)c[u]=r=[0,+h(t[u],l,u,t)],r.data=t[u];c.key=l}for(s=0,e=f(o);s<a;++s)o[e[s]].index=s;return p(o,e),o}var d=Im([]),f=ng,p=eg,h=Ts;return e.keys=function(t){return arguments.length?(d="function"==typeof t?t:Im(Qm.call(t)),e):d},e.value=function(t){return arguments.length?(h="function"==typeof t?t:Im(+t),e):h},e.order=function(t){return arguments.length?(f=null==t?ng:"function"==typeof t?t:Im(Qm.call(t)),e):f},e.offset=function(t){return arguments.length?(p=null==t?eg:t,e):p},e},U.stackOffsetExpand=function(t,e){if(0<(i=t.length)){for(var n,i,a,o=0,s=t[0].length;o<s;++o){for(a=n=0;n<i;++n)a+=t[n][o][1]||0;if(a)for(n=0;n<i;++n)t[n][o][1]/=a}eg(t,e)}},U.stackOffsetDiverging=function(t,e){if(1<(r=t.length))for(var n,i,a,o,s,r,l=0,c=t[e[0]].length;l<c;++l)for(n=o=s=0;n<r;++n)0<=(a=(i=t[e[n]][l])[1]-i[0])?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):i[0]=o},U.stackOffsetNone=eg,U.stackOffsetSilhouette=function(t,e){if(0<(n=t.length)){for(var n,i=0,a=t[e[0]],o=a.length;i<o;++i){for(var s=0,r=0;s<n;++s)r+=t[s][i][1]||0;a[i][1]+=a[i][0]=-r/2}eg(t,e)}},U.stackOffsetWiggle=function(t,e){if(0<(a=t.length)&&0<(i=(n=t[e[0]]).length)){for(var n,i,a,o=0,s=1;s<i;++s){for(var r=0,l=0,c=0;r<a;++r){for(var u=t[e[r]],d=u[s][1]||0,f=(d-(u[s-1][1]||0))/2,p=0;p<r;++p){var h=t[e[p]];f+=(h[s][1]||0)-(h[s-1][1]||0)}l+=d,c+=f*d}n[s-1][1]+=n[s-1][0]=o,l&&(o-=c/l)}n[s-1][1]+=n[s-1][0]=o,eg(t,e)}},U.stackOrderAscending=ig,U.stackOrderDescending=function(t){return ig(t).reverse()},U.stackOrderInsideOut=function(t){for(var e,n=t.length,i=t.map(ks),a=ng(t).sort(function(t,e){return i[e]-i[t]}),o=0,s=0,r=[],l=[],c=0;c<n;++c)e=a[c],o<s?(o+=i[e],r.push(e)):(s+=i[e],l.push(e));return l.reverse().concat(r)},U.stackOrderNone=ng,U.stackOrderReverse=function(t){return ng(t).reverse()},U.timeInterval=Ea,U.timeMillisecond=oh,U.timeMilliseconds=sh,U.utcMillisecond=oh,U.utcMilliseconds=sh,U.timeSecond=rh,U.timeSeconds=lh,U.utcSecond=rh,U.utcSeconds=lh,U.timeMinute=ch,U.timeMinutes=uh,U.timeHour=dh,U.timeHours=fh,U.timeDay=ph,U.timeDays=hh,U.timeWeek=mh,U.timeWeeks=Ih,U.timeSunday=mh,U.timeSundays=Ih,U.timeMonday=gh,U.timeMondays=Mh,U.timeTuesday=yh,U.timeTuesdays=wh,U.timeWednesday=vh,U.timeWednesdays=Ch,U.timeThursday=Dh,U.timeThursdays=_h,U.timeFriday=bh,U.timeFridays=Th,U.timeSaturday=Ah,U.timeSaturdays=kh,U.timeMonth=xh,U.timeMonths=Nh,U.timeYear=Sh,U.timeYears=Eh,U.utcMinute=jh,U.utcMinutes=Oh,U.utcHour=Lh,U.utcHours=zh,U.utcDay=Ph,U.utcDays=Rh,U.utcWeek=Fh,U.utcWeeks=Vh,U.utcSunday=Fh,U.utcSundays=Vh,U.utcMonday=Uh,U.utcMondays=Gh,U.utcTuesday=Bh,U.utcTuesdays=Zh,U.utcWednesday=Hh,U.utcWednesdays=Jh,U.utcThursday=Yh,U.utcThursdays=qh,U.utcFriday=Qh,U.utcFridays=Kh,U.utcSaturday=Wh,U.utcSaturdays=Xh,U.utcMonth=$h,U.utcMonths=tm,U.utcYear=em,U.utcYears=im,U.timeFormatDefaultLocale=jo,U.timeFormatLocale=Ra,U.isoFormat=cm,U.isoParse=um,U.now=St,U.timer=Ot,U.timerFlush=Lt,U.timeout=Ac,U.interval=function(n,i,a){var o=new jt,s=i;return null==i?o.restart(n,i,a):(i=+i,a=null==a?St():+a,o.restart(function t(e){e+=s,o.restart(t,s+=i,a),n(e)},i,a)),o},U.transition=Qt,U.active=function(t,e){var n,i,a=t.__transition;if(a)for(i in e=null==e?null:e+"",a)if((n=a[i]).state>Cc&&n.name===e)return new Yt([[t]],Xc,e,+i);return null},U.interrupt=Dc,U.voronoi=function(){function e(i){return new Ks(i.map(function(t,e){var n=[Math.round(a(t,e,i)/fg)*fg,Math.round(o(t,e,i)/fg)*fg];return n.index=e,n.data=t,n}),n)}var a=xs,o=Ns,n=null;return e.polygons=function(t){return e(t).polygons()},e.links=function(t){return e(t).links()},e.triangles=function(t){return e(t).triangles()},e.x=function(t){return arguments.length?(a="function"==typeof t?t:ag(+t),e):a},e.y=function(t){return arguments.length?(o="function"==typeof t?t:ag(+t),e):o},e.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],e):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},e.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],e):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},e},U.zoom=function(){function o(t){t.property("__zoom",ar).on("wheel.zoom",e).on("mousedown.zoom",n).on("dblclick.zoom",a).filter(sr).on("touchstart.zoom",r).on("touchmove.zoom",l).on("touchend.zoom touchcancel.zoom",u).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(t,e){return(e=Math.max(b,Math.min(A,e)))===t.k?t:new $s(e,t.x,t.y)}function p(t,e,n){var i=e[0]-n[0]*t.k,n=e[1]-n[1]*t.k;return i===t.x&&n===t.y?t:new $s(t.k,i,n)}function h(t,e){var n=t.invertX(e[0][0])-I,i=t.invertX(e[1][0])-M,a=t.invertY(e[0][1])-w,e=t.invertY(e[1][1])-C;return t.translate(n<i?(n+i)/2:Math.min(0,n)||Math.max(0,i),a<e?(a+e)/2:Math.min(0,a)||Math.max(0,e))}function c(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function i(t,n,l){t.on("start.zoom",function(){m(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){m(this,arguments).end()}).tween("zoom",function(){var t=arguments,i=m(this,t),e=v.apply(this,t),a=l||c(e),o=Math.max(e[1][0]-e[0][0],e[1][1]-e[0][1]),e=this.__zoom,s="function"==typeof n?n.apply(this,t):n,r=T(e.invert(a).concat(o/e.k),s.invert(a).concat(o/s.k));return function(t){var e,n;t=1===t?s:(e=r(t),new $s(n=o/e[2],a[0]-e[0]*n,a[1]-e[1]*n)),i.zoom(null,t)}})}function m(t,e){for(var n,i=0,a=k.length;i<a;++i)if((n=k[i]).that===t)return n;return new s(t,e)}function s(t,e){this.that=t,this.args=e,this.index=-1,this.active=0,this.extent=v.apply(t,e)}function e(){if(y.apply(this,arguments)){var t=m(this,arguments),e=this.__zoom,n=Math.max(b,Math.min(A,e.k*Math.pow(2,D.apply(this,arguments)))),i=Yr(this);if(t.wheel)t.mouse[0][0]===i[0]&&t.mouse[0][1]===i[1]||(t.mouse[1]=e.invert(t.mouse[0]=i)),clearTimeout(t.wheel);else{if(e.k===n)return;t.mouse=[i,e.invert(i)],Dc(this),t.start()}gg(),t.wheel=setTimeout(function(){t.wheel=null,t.end()},S),t.zoom("mouse",h(p(f(e,n),t.mouse[0],t.mouse[1]),t.extent))}}function n(){var n,t,e,i,a;!d&&y.apply(this,arguments)&&(n=m(this,arguments),t=tl(U.event.view).on("mousemove.zoom",function(){var t,e;gg(),n.moved||(t=U.event.clientX-i,e=U.event.clientY-a,n.moved=E<t*t+e*e),n.zoom("mouse",h(p(n.that.__zoom,n.mouse[0]=Yr(n.that),n.mouse[1]),n.extent))},!0).on("mouseup.zoom",function(){t.on("mousemove.zoom mouseup.zoom",null),W(U.event.view,n.moved),gg(),n.end()},!0),e=Yr(this),i=U.event.clientX,a=U.event.clientY,Xr(U.event.view),er(),n.mouse=[e,this.__zoom.invert(e)],Dc(this),n.start())}function a(){var t,e,n;y.apply(this,arguments)&&(t=this.__zoom,e=Yr(this),n=t.invert(e),n=h(p(f(t,t.k*(U.event.shiftKey?.5:2)),e,n),v.apply(this,arguments)),gg(),0<_?tl(this).transition().duration(_).call(i,n,e):tl(this).call(o.transform,n))}function r(){if(y.apply(this,arguments)){var t,e,n,i,a=m(this,arguments),o=U.event.changedTouches,s=o.length;for(er(),e=0;e<s;++e)n=o[e],i=[i=Kr(this,o,n.identifier),this.__zoom.invert(i),n.identifier],a.touch0?a.touch1||(a.touch1=i):(a.touch0=i,t=!0);if(g&&(g=clearTimeout(g),!a.touch1))return a.end(),void((i=tl(this).on("dblclick.zoom"))&&i.apply(this,arguments));t&&(g=setTimeout(function(){g=null},N),Dc(this),a.start())}}function l(){var t,e=m(this,arguments),n=U.event.changedTouches,i=n.length;for(gg(),g=g&&clearTimeout(g),t=0;t<i;++t)u=n[t],d=Kr(this,n,u.identifier),e.touch0&&e.touch0[2]===u.identifier?e.touch0[0]=d:e.touch1&&e.touch1[2]===u.identifier&&(e.touch1[0]=d);if(u=e.that.__zoom,e.touch1)var a=e.touch0[0],o=e.touch0[1],s=e.touch1[0],r=e.touch1[1],l=(l=s[0]-a[0])*l+(l=s[1]-a[1])*l,c=(c=r[0]-o[0])*c+(c=r[1]-o[1])*c,u=f(u,Math.sqrt(l/c)),d=[(a[0]+s[0])/2,(a[1]+s[1])/2],r=[(o[0]+r[0])/2,(o[1]+r[1])/2];else{if(!e.touch0)return;d=e.touch0[0],r=e.touch0[1]}e.zoom("touch",h(p(u,d,r),e.extent))}function u(){var t,e,n=m(this,arguments),i=U.event.changedTouches,a=i.length;for(er(),d&&clearTimeout(d),d=setTimeout(function(){d=null},N),t=0;t<a;++t)e=i[t],n.touch0&&n.touch0[2]===e.identifier?delete n.touch0:n.touch1&&n.touch1[2]===e.identifier&&delete n.touch1;n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0?n.touch0[1]=this.__zoom.invert(n.touch0[0]):n.end()}var g,d,y=nr,v=ir,D=or,b=0,A=1/0,I=-A,M=A,w=I,C=M,_=250,T=El,k=[],x=j("start","zoom","end"),N=500,S=150,E=0;return o.transform=function(t,e){var n=t.selection?t.selection():t;n.property("__zoom",ar),t!==n?i(t,e):n.interrupt().each(function(){m(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},o.scaleBy=function(t,e){o.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)})},o.scaleTo=function(t,a){o.transform(t,function(){var t=v.apply(this,arguments),e=this.__zoom,n=c(t),i=e.invert(n);return h(p(f(e,"function"==typeof a?a.apply(this,arguments):a),n,i),t)})},o.translateBy=function(t,e,n){o.transform(t,function(){return h(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),v.apply(this,arguments))})},o.translateTo=function(t,i,a){o.transform(t,function(){var t=v.apply(this,arguments),e=this.__zoom,n=c(t);return h(mg.translate(n[0],n[1]).scale(e.k).translate("function"==typeof i?-i.apply(this,arguments):-i,"function"==typeof a?-a.apply(this,arguments):-a),t)})},s.prototype={start:function(){return 1==++this.active&&(this.index=k.push(this)-1,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(k.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){O(new Xs(o,t,this.that.__zoom),x.apply,x,[t,this.that,this.args])}},o.wheelDelta=function(t){return arguments.length?(D="function"==typeof t?t:hg(+t),o):D},o.filter=function(t){return arguments.length?(y="function"==typeof t?t:hg(!!t),o):y},o.extent=function(t){return arguments.length?(v="function"==typeof t?t:hg([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),o):v},o.scaleExtent=function(t){return arguments.length?(b=+t[0],A=+t[1],o):[b,A]},o.translateExtent=function(t){return arguments.length?(I=+t[0][0],M=+t[1][0],w=+t[0][1],C=+t[1][1],o):[[I,w],[M,C]]},o.duration=function(t){return arguments.length?(_=+t,o):_},o.interpolate=function(t){return arguments.length?(T=t,o):T},o.on=function(){var t=x.on.apply(x,arguments);return t===x?o:t},o.clickDistance=function(t){return arguments.length?(E=(t=+t)*t,o):Math.sqrt(E)},o},U.zoomTransform=tr,U.zoomIdentity=mg,Object.defineProperty(U,"__esModule",{value:!0})});var KoreGraphAdapter=function(C){function c(t,e){var n=t.data,i=t.columnsInfo,a=t.xAxis,o=t.yAxis,s=t.colorRange,r=t.mainDiv,l=r.substr(1,r.length),c=t.label,u=t.requireLegend;d3.select(r).append("svg").attr("width",e.outerWidth).attr("height",e.outerHeight);var d,f,p,h=d3.select(r+" svg"),m=20,g=40,y=70,t=e.innerWidth,e=e.innerHeight,m=h.append("g").attr("transform","translate("+y+","+m+")");null!=u&&0!=u&&(C("#Legend_"+l).remove(),u=r,d=i,l=s,f=d3.scaleOrdinal().range(l),p=(p=u.substr(1,u.length)).replace(/ +/g,"").replace(/#/g,""),C(u).before("<div id='Legend_"+p+"' class='pmd-card-body' style='margin-top:0; margin-bottom:0;'></div>"),Object.keys(d).forEach(function(t){var e=f(t);C("#Legend_"+p).append("<span class='team-graph team1' style='display: inline-block; margin-right:10px;margin-left: 20px;'>        <span style='background:"+e+";width: 10px;height: 10px;display: inline-block;vertical-align: middle;'>&nbsp;</span>        <span title="+d[t].replace(/[ ]/g," ")+" style='padding-top: 0;font-family:Source Sans Pro, sans-serif;font-size: 13px;display: inline;'>"+(10<d[t].length?d[t].slice(0,7)+"...":d[t])+" </span>    </span>")}));var v=d3.scaleBand().rangeRound([e,0]).paddingInner(.1),D=d3.scaleBand().padding(.05),b=d3.scaleLinear().rangeRound([0,t]),A=d3.scaleOrdinal().range(s),I=Object.keys(i);v.domain(n.map(function(t){return t[o]})),D.domain(I).rangeRound([0,v.bandwidth()]),b.domain([0,d3.max(n,function(e){return d3.max(I,function(t){return e[t]})})]).nice(),maxTicks=10;m.append("g").selectAll("g").data(n).enter().append("g").attr("transform",function(t){return"translate(0,"+v(t[o])+")"}).selectAll("rect").data(function(e,n){return I.map(function(t){return{key:t,value:e[t],index:t+"_"+n+"_"+e[o],dispVal:e[t+"dispVal"]}})}).enter().append("rect").attr("y",function(t){return D(t.key)}).attr("width",function(t){return b(t.value)}).attr("data-index",function(t,e){return t.index}).attr("displayVal",function(t){return t.dispVal}).attr("height",D.bandwidth()).on("mouseover",function(){M.style("display",null)}).on("mouseout",function(){M.style("display","none")}).on("mousemove",function(t){var e,n;n="block"===C("#myPreviewModal").css("display")?(e=d3.event.pageX-document.querySelector(".chartContainerDiv").getBoundingClientRect().x+10,d3.event.pageY-document.querySelector(".chartContainerDiv").getBoundingClientRect().y+10):(e=d3.event.pageX-document.querySelector(r).getBoundingClientRect().x+10,d3.event.pageY-document.querySelector(r).getBoundingClientRect().y+10),t=(this.attributes.displayVal||t).value;d3.mouse(this)[0],d3.mouse(this)[1];M.attr("transform","translate("+e+","+n+")"),M.select("text").text(t)}).attr("fill",function(t){return A(t.key)});i={};i.svg=h,i.cssPrefix="horgroupBar0_",i.data=n,i.keys=I,i.height=e,i.width=t,i.label=c,i.yAxis=o,i.xAxis=a,w.addTooltips(i);var M=h.append("g").attr("class","tooltipHBC").style("display","none");M.append("rect").attr("width",60).attr("height",20).attr("fill","white").style("opacity",.5),M.append("text").attr("x",30).attr("dy","1.2em").style("text-anchor","middle").attr("font-size","12px").attr("font-weight","bold"),m.append("g").attr("class","axis").attr("transform","translate(0,"+e+")").call(d3.axisBottom(b).ticks(maxTicks)).append("text").attr("x",t/2).attr("y",.7*g).attr("dx","0.32em").attr("fill","#000").attr("font-weight","bold").attr("text-anchor","start"),m.append("g").attr("class","axis").call(d3.axisLeft(v).ticks(null,"s")).append("text").attr("x",.4*e*-1).attr("y",.8*y*-1).attr("dy","0.71em").attr("fill","#000").attr("transform","rotate(-90)").attr("font-weight","bold"),m.selectAll(".axis text").attr("class","chart-disp-val"),m.selectAll(".axis line").attr("class","chart-axis-line"),m.selectAll(".axis .domain").classed("chart-axis-line",!0)}var n=function(t){var e=document.getElementById(t),n=0,i=0;return e?(n=(e=e.getBBox()).width,i=e.height):console.log("error: getDimensions() "+t+" not found."),{w:n,h:i}},w={addTooltips:function(i){var t=i.keys,e=i.svg.append("g").selectAll("g").data(i.data).enter().append("g").attr("class",function(t,e){return i.cssPrefix+"tooltips_"+e});tooltips=e.selectAll("g").data(function(e,n){return t.map(function(t){return{key:t,value:e[t],index:t+"_"+n+"_"+e[i.yAxis]}})}).enter().append("g").attr("class",i.cssPrefix+"tooltip").attr("id",function(t,e){return i.cssPrefix+"tooltip"+t.index}).style("opacity",0).append("rect").attr("rx",2).attr("ry",2).attr("x",-2).attr("opacity",.71).style("fill","#000000"),e.selectAll("g").data(function(e,n){return t.map(function(t){return{key:t,value:e[t],index:t+"_"+n+"_"+e[i.yAxis]}})}).append("text").attr("fill",function(t){return"#efefef"}).style("font-size",function(t){return 10}).style("font-family",function(t){return"arial"}).text(function(t,e){var n=i.label.xAxis+":{value}";return w.replacePlaceholders(i,n,e,{value:t.value})}),e.selectAll("g rect").attr("width",function(t,e){return n(i.cssPrefix+"tooltip"+t.index).w+8}).attr("height",function(t,e){return n(i.cssPrefix+"tooltip"+t.index).h+8}).attr("y",function(t,e){return-n(i.cssPrefix+"tooltip"+t.index).h/2+1})},showTooltip:function(t,e){var n=250;w.currentTooltip===e&&(n=1),w.currentTooltip=e,d3.select("#"+t.cssPrefix+"tooltip"+e).transition().duration(n).style("opacity",function(){return 1}),w.moveTooltip(t)},moveTooltip:function(t){d3.selectAll("#"+t.cssPrefix+"tooltip"+w.currentTooltip).attr("transform",function(t){var e=d3.mouse(this.parentNode);return"translate("+(e[0]+4+2)+","+(e[1]-8-2)+")"})},hideTooltip:function(n,t){d3.select("#"+n.cssPrefix+"tooltip"+t).style("opacity",function(){return 0}),d3.select("#"+n.cssPrefix+"tooltip"+w.currentTooltip).attr("transform",function(t,e){return"translate("+(n.width+1e3)+","+(n.height+1e3)+")"})},replacePlaceholders:function(t,e,n,i){return e.replace(/\{(\w+)\}/g,function(t){return i.hasOwnProperty(arguments[1])?i[arguments[1]]:t})}};return{drawD3Pie:function(t,e,n,i){var a=t,o=3;legendCenterOffset=0,t.message?a=t.message[0].component.payload:(fromWidgets=!0,o=4,legendCenterOffset=-15);for(var s=[],r=0,l=0;l<a.elements.length;l++)s[l]={},s[l].label=a.elements[l].title,s[l].count=a.elements[l].value,s[l].dispVal=a.elements[l].displayValue,a.elements[l].hasOwnProperty("subTitle")&&(s[l].subTitle=a.elements[l].subTitle),r+=Number(s[l].count);for(var c=0,l=0;l<a.elements.length;l++)s[l].percentage=Math.round(s[l].count/r*100),l===a.elements.length-1&&(s[l].percentage=100-c),c+=s[l].percentage;var u=e.width,t=e.height,d=Math.min(u,t)/2-20,f=e.legendRectSize,p=e.legendSpacing,h=d3.scaleOrdinal(["#5bc8c4","#4a9af2","#8ecb60","#e7cc61","#eeaf4b","#ef7e63","#8e8eb7","#6483c3","#2249ab","#f352b7"]),e=d3.select(n).append("svg").attr("width",u-15).attr("height",t).append("g").attr("class","pieRegular").attr("transform","translate("+(u/o+3)+","+t/2+")"),m=d3.arc().innerRadius(0).outerRadius(d),g=d3.arc().outerRadius(1.05*d).innerRadius(.9*d),u=d3.pie().value(function(t){return t.count}).sort(null),y=d3.select(n).append("div").attr("class","legend-tooltip-pie-chart no-show").attr("transform",function(t){console.log(t)}).on("mouseleave",function(t){y.attr("class","legend-tooltip-pie-chart no-show"),C(".more-legend").removeClass("no-visible")});C(".listTemplateContainer").on("click",function(){C(".legend-tooltip-pie-chart").removeClass("only-show").addClass("no-show")});var o=(s.length-4)*(f+p+20),t=y.append("svg").attr("width","150").attr("height",23+o),v=d3.select(n).append("div").attr("class","tooltip").style("display","none");v.append("div").attr("class","label"),v.append("div").attr("class","count"),v.append("div").attr("class","percent"),s.forEach(function(t){t.count=+t.count,t.enabled=!0}),(o=e.selectAll("path").data(u(s)).enter().append("g").attr("class","arcRegular").append("path").attr("d",m).attr("fill",function(t){return h(t.data.label)}).each(function(t){this._current})).on("mouseover",function(t){d3.sum(s.map(function(t){return t.enabled?t.count:0}));"block"===C("#myPreviewModal").css("display")?t.data.dispVal?v.select("#myPreviewModal .count").html(t.data.dispVal):v.select("#myPreviewModal .count").html(t.value):t.data.dispVal?v.select(".count").html(t.data.dispVal):v.select(".count").html(t.value),v.style("display","block")}),o.on("mouseout",function(){v.style("display","none")}),o.on("mousemove",function(t){v.style("top",d3.event.layerY+10+"px").style("left",d3.event.layerX+10+"px")}),e.append("g").attr("class","labels"),e.append("g").attr("class","lines"),e.append("g").classed("labels",!0),e.append("g").classed("lines",!0),e.select(".lines").selectAll("polyline").data(u(s)).enter().append("polyline").attr("points",function(t){var e=g.centroid(t);return e[0]=.95*d*(b(t)<Math.PI?1:-1),[m.centroid(t),g.centroid(t),e]}),e.select(".labels").selectAll("text").data(u(s)).enter().append("text").attr("dy",".35em").attr("class","chart-disp-val").html(function(t){return t.data.percentage+"%"}).attr("transform",function(t){var e=g.centroid(t);return e[0]=.95*d*(b(t)<Math.PI?1:-1),"translate("+e+")"}).style("text-anchor",function(t){return b(t)<Math.PI?"start":"end"});var D=d3.select(n).append("div").attr("class","tooltip-legend no-show");function b(t){return t.startAngle+(t.endAngle-t.startAngle)/2}(t=t.selectAll(".legend"+window.PieChartCount).data(h.domain().slice(4)).enter().append("g").attr("class","legend"+window.PieChartCount).attr("transform",function(t,e){var n=f+p+25,i=n*h.domain().length/2,i=h.domain()<4?n*h.domain().length/2:2*n;return"translate(10,"+((e+6)*n-i-135)+")"})).append("rect").attr("width","7").attr("height","7").style("fill",h).style("stroke",h),t.append("text").attr("x",f+p+4).attr("y",f-p).attr("class","legend-title").text(function(t){return 15<t.length?t.slice(0,12)+"...":t}).on("mouseover",function(t){15<t.length&&(D.attr("class","only-show tooltip-legend"),D.html(t).style("left",d3.event.pageX-1090+"px").style("top",d3.event.pageY-164+"px"))}).on("mouseout",function(t){15<t.length&&D.attr("class","no-show tooltip-legend")}),t.append("text").attr("x",f+p+4).attr("y",f-p+16).attr("class","legend-value").attr("font-weight","bold").text(function(t){for(var e=0;e<a.elements.length&&s[e].label!=t;e++);return a.elements[e].hasOwnProperty("subTitle")?a.elements[e].subTitle:s[e].count}),(t=e.selectAll(".legend"+window.PieChartCount).data(h.domain().slice(0,4)).enter().append("g").attr("class","legend"+window.PieChartCount).attr("transform",function(t,e){for(var n=-60,e=0;e<s.length;e++){if(t==s[e].label){var i=Number(this.parentElement.getAttribute("transform").slice(10,this.parentElement.getAttribute("transform").indexOf(",")));return"translate("+(i+=15)+","+n+")"}s[e].hasOwnProperty("subTitle")&&""==s[e].subTitle?n+=18:n+=33}})).append("rect").attr("width","7").attr("height","7").style("fill",h).style("stroke",h),t.append("text").attr("x",f+p+4).attr("y",f-p).attr("class","legend-title").text(function(t){return 15<t.length?t.slice(0,12)+"...":t}).on("mouseover",function(t){15<t.length&&(D.attr("class","only-show tooltip-legend"),D.html(t).style("left",d3.event.pageX-1090+"px").style("top",d3.event.pageY-164+"px"))}).on("mouseout",function(t){15<t.length&&D.attr("class","no-show tooltip-legend")}),t.append("text").attr("x",f+p+4).attr("y",f-p+16).attr("class","legend-value").attr("font-weight","bold").text(function(t){for(var e=0;e<a.elements.length&&s[e].label!=t;e++);return a.elements[e].hasOwnProperty("subTitle")?a.elements[e].subTitle:s[e].count}),4<h.domain().length&&e.data(h.domain()).append("g").append("text").text("More...").attr("class","more-legend").attr("fill","#009dab").attr("font-weight","bold").attr("cursor","pointer").attr("transform",function(t){var e=f+p+25,e=(h.domain().length,7*e-2*e-115);try{var n=C(this).parent().siblings(".legend0")[0].getAttribute("transform"),i=n.slice(10,n.lastIndexOf(","))}catch(t){i=110}return"translate("+i+","+e+")"}).on("mouseover",function(t){var e=C(this).closest(".listViewTmplContentChild").offset().top,n=C(this).closest(".listViewTmplContentChild").offset().left,e=C(this).offset().top-e-87.5,n=C(this).offset().left-n-15;y.attr("class","legend-tooltip-pie-chart only-show").style("position","absolute").style("left",n).style("top",e),C(this).addClass("no-visible")})},drawD3PieDonut:function(t,e,n,i,a){var o=e.width,s=e.height,r=Math.min(o,s)/2-10,l=[],c=0,u=t,d=3;legendCenterOffset=0,t.message?u=t.message[0].component.payload:(fromWidgets=!0,d=4,legendCenterOffset=-15);for(var f=0;f<u.elements.length;f++)l[f]={},l[f].label=u.elements[f].title,l[f].count=Number(u.elements[f].value),l[f].dispVal=u.elements[f].displayValue,u.elements[f].hasOwnProperty("subTitle")&&(l[f].subTitle=u.elements[f].subTitle),c+=Number(u.elements[f].value);for(var p=0,f=0;f<u.elements.length;f++)l[f].percentage=Math.round(l[f].count/c*100),f===u.elements.length-1&&(l[f].percentage=100-p),p+=l[f].percentage;var h=e.legendRectSize,m=e.legendSpacing,g=d3.scaleOrdinal(["#5bc8c4","#4a9af2","#8ecb60","#e7cc61","#eeaf4b","#ef7e63","#8e8eb7","#6483c3","#2249ab","#f352b7"]),y=d3.arc().outerRadius(r-10).innerRadius(r-50),v=d3.arc().outerRadius(.9*r).innerRadius(.9*r),t=d3.pie().sort(null).value(function(t){return t.count}),D=d3.select(n).append("div").attr("class","legend-tooltip-pie-chart no-show").on("mouseleave",function(t){D.attr("class","legend-tooltip-pie-chart no-show"),C(".more-legend").removeClass("no-visible")}),e=(l.length-4)*(h+m+20),e=D.append("svg").attr("width","150").attr("height",23+e);C(".listTemplateContainer").on("click",function(){C(".legend-tooltip-pie-chart").removeClass("only-show").addClass("no-show")}),d=d3.select(n).append("svg").attr("width",o+5).attr("height",s).append("g").attr("transform","translate("+(o/d+13)+","+s/2+")"),(s=d.selectAll(".arc").data(t(l)).enter().append("g").attr("class","arc")).append("path").attr("d",y).style("fill",function(t){return g(t.data.label)});var b,A=d3.select(n).append("div").attr("class","tooltipDonut").style("display","none");function I(t){return t.startAngle+(t.endAngle-t.startAngle)/2}A.append("div").attr("class","label"),A.append("div").attr("class","countDonut"),A.append("div").attr("class","percent"),l.forEach(function(t){t.count=+t.count,t.enabled=!0}),d.append("g").attr("class","labels"),d.append("g").attr("class","lines"),d.append("g").classed("labels",!0),d.append("g").classed("lines",!0),d.select(".lines").selectAll("polyline").data(t(l)).enter().append("polyline").attr("points",function(t){var e=v.centroid(t);return e[0]=.95*r*(I(t)<Math.PI?1:-1),[y.centroid(t),v.centroid(t),e]}).style("display",function(t){return 0==t.data.percentage?"none":"block"}),d.select(".labels").selectAll("text").data(t(l)).enter().append("text").attr("dy",".35em").attr("class","chart-disp-val").html(function(t){return t.data.percentage+"%"}).attr("transform",function(t){var e=v.centroid(t);return e[0]=.95*r*(I(t)<Math.PI?1:-1),e[0]=e[0]+10,"translate("+e+")"}).style("text-anchor",function(t){return I(t)<Math.PI?"start":"end"}).style("display",function(t){return 0==t.data.percentage?"none":"block"}),s.on("mouseover",function(t){d3.sum(l.map(function(t){return t.enabled?t.count:0}));"block"===C("#myPreviewModal").css("display")?t.data.dispVal?A.select("#myPreviewModal .countDonut").html(t.data.dispVal):A.select("#myPreviewModal .countDonut").html(t.value):t.data.dispVal?A.select(".countDonut").html(t.data.dispVal):A.select(".countDonut").html(t.value),A.style("display","block")}),s.on("mouseout",function(){A.style("display","none")}),s.on("mousemove",function(t){A.style("top",d3.event.layerY+10+"px").style("left",d3.event.layerX+10+"px")}),"donut_legend"!==a&&"donut"!==a||(b=d3.select(n).append("div").attr("class","tooltip-legend no-show"),(e=e.selectAll(".legend"+window.PieChartCount).data(g.domain().slice(4)).enter().append("g").attr("class","legend"+window.PieChartCount).attr("transform",function(t,e){var n=h+m+25,i=n*g.domain().length/2,i=g.domain()<5?n*g.domain().length/2:2*n;return"translate(10,"+((e+6)*n-i-135)+")"})).append("rect").attr("width","7").attr("height","7").style("fill",g).style("stroke",g),e.append("text").attr("x",h+m+4).attr("y",h-m).attr("class","legend-title").text(function(t){return 15<t.length?t.slice(0,12)+"...":t}).on("mouseover",function(t){11<t.length&&(b.attr("class","only-show tooltip-legend"),b.html(t).style("left",d3.event.pageX-1090+"px").style("top",d3.event.pageY-164+"px"))}).on("mouseout",function(t){15<t.length&&b.attr("class","no-show tooltip-legend")}),e.append("text").attr("x",h+m+4).attr("y",h-m+16).attr("class","legend-value").attr("font-weight","bold").text(function(t){for(var e=0;e<u.elements.length&&l[e].label!=t;e++);return u.elements[e].hasOwnProperty("subTitle")?u.elements[e].subTitle:u.elements[e].value}),(e=d.selectAll(".legend"+window.PieChartCount).data(g.domain().slice(0,4)).enter().append("g").attr("class","legend"+window.PieChartCount).attr("transform",function(t,e){for(var n=-60,e=0;e<l.length;e++){if(t==l[e].label){var i=Number(this.parentElement.getAttribute("transform").slice(10,this.parentElement.getAttribute("transform").indexOf(",")));return"translate("+(i+=15)+","+n+")"}l[e].hasOwnProperty("subTitle")&&""==l[e].subTitle?n+=18:n+=33}})).append("rect").attr("width","7").attr("height","7").style("fill",g).style("stroke",g),e.append("text").attr("x",h+m+4).attr("y",h-m).attr("class","legend-title").text(function(t){return 15<t.length?t.slice(0,12)+"...":t}).on("mouseover",function(t){15<t.length&&(b.attr("class","only-show tooltip-legend"),b.html(t).style("left",d3.event.pageX-1090+"px").style("top",d3.event.pageY-164+"px"))}).on("mouseout",function(t){15<t.length&&b.attr("class","no-show tooltip-legend")}),e.append("text").attr("x",h+m+4).attr("y",h-m+16).attr("class","legend-value").attr("font-weight","bold").text(function(t){for(var e=0;e<u.elements.length&&l[e].label!=t;e++);return u.elements[e].hasOwnProperty("subTitle")?u.elements[e].subTitle:l[e].count}),4<g.domain().length&&d.data(g.domain()).append("g").append("text").text("More...").attr("class","more-legend").attr("fill","#009dab").attr("font-weight","bold").attr("cursor","pointer").attr("transform",function(t){var e=h+m+25,e=(g.domain().length,7*e-2*e-115);try{var n=C(this).parent().siblings(".legend0")[0].getAttribute("transform"),i=n.slice(10,n.lastIndexOf(","))}catch(t){i=110}return"translate("+i+","+e+")"}).on("mouseover",function(t){var e=C(this).closest(".listViewTmplContentChild").offset().top,n=C(this).closest(".listViewTmplContentChild").offset().left,e=C(this).offset().top-e-87.5,n=C(this).offset().left-n-15;D.attr("class","legend-tooltip-pie-chart only-show").style("position","absolute").style("left",n).style("top",e),C(this).addClass("no-visible")}))},drawD3barChart:function(t,e,n,i){var a=d3.select(n).append("svg").attr("width",e.outerWidth).attr("height",e.outerHeight),o=20,s=35,r=e.innerWidth,l=e.innerHeight,o=a.append("g").attr("transform","translate("+s+","+o+")"),c=t,u=d3.scaleBand().rangeRound([0,r]).paddingInner(.1),d=d3.scaleBand().padding(.05),f=d3.scaleLinear().rangeRound([l,0]),p=d3.scaleOrdinal().range(["#5bc8c4","#4a9af2","#8ecb60","#e7cc61","#eeaf4b","#ef7e63","#8e8eb7","#6483c3","#2249ab","#f352b7"]);t.message?c=t.message[0].component.payload:(fromWidgets=!0,widthDivision=4,legendCenterOffset=-15);var h=[],m=[];m.push("xAxis");for(var g=0;g<c.elements.length;g++)m.push(c.elements[g].title);for(g=0;g<c.X_axis.length;g++)h[g]={},h[g][m[0]]=c.X_axis[g];for(g=0;g<c.elements.length;g++)for(var y=0;y<c.elements[g].values.length;y++)h[y][m[g+1]]=c.elements[g].values[y],c.elements[g].displayValues&&(h[y][m[g+1]+"dispVal"]=c.elements[g].displayValues[y]);var v=m.slice(1);u.domain(h.map(function(t){return t.xAxis})),d.domain(v).rangeRound([0,u.bandwidth()]),f.domain([0,d3.max(h,function(e){return d3.max(v,function(t){return e[t]})})]).nice(),o.append("g").selectAll("g").data(h).enter().append("g").attr("transform",function(t){return"translate("+u(t.xAxis)+",0)"}).selectAll("rect").data(function(e){return v.map(function(t){return{key:t,value:e[t],dispVal:e[t+"dispVal"]}})}).enter().append("rect").on("mouseover",function(){b.style("display",null)}).on("mouseout",function(){b.style("display","none")}).on("mousemove",function(t){var e=1.25*this.parentNode.transform.baseVal[0].matrix.e,n=d3.mouse(this)[1]-5;t=t.dispVal||t.value,b.attr("transform","translate("+e+","+n+")"),b.select("text").text(t)}).attr("x",function(t){return d(t.key)}).attr("y",function(t){return f(t.value)}).attr("width",d.bandwidth()).attr("height",function(t){return l-f(t.value)}).attr("fill",function(t){return p(t.key)}),o.append("g").attr("class","axis").attr("transform","translate(0,"+l+")").call(d3.axisBottom(u)),o.selectAll("text").attr("transform","rotate(-65) translate(-30, 0)"),o.append("g").attr("class","axis").call(d3.axisLeft(f).ticks(null,"s")).append("text").attr("x",2).attr("y",f(f.ticks().pop())+.5).attr("dy","0.12em").attr("fill","#000").attr("font-weight","bold").attr("text-anchor","start"),o.selectAll(".axis text").attr("class","chart-disp-val"),o.selectAll(".axis line").attr("class","chart-axis-line"),o.selectAll(".axis .domain").classed("chart-axis-line",!0);var D=d3.select(n).append("div").attr("class","tooltip-legend no-show");(o=o.append("g").attr("font-family","sans-serif").attr("font-size",8).attr("text-anchor","end").selectAll("g").data(v.slice().reverse()).enter().append("g").attr("transform",function(t,e){return"translate(60,"+20*e+")"})).append("rect").attr("x",r-19).attr("width",19).attr("height",19).attr("fill",p),o.append("text").attr("class","chart-disp-val").attr("x",r-24).attr("y",9.5).attr("dy","0.32em").text(function(t){return 10<t.length?t.slice(0,7)+"...":t}).on("mouseover",function(t){D.attr("class","only-show tooltip-legend"),D.html(t).style("left",d3.event.pageX-1042+"px").style("top",d3.event.pageY-178+"px")}).on("mouseout",function(t){D.attr("class","no-show tooltip-legend")});var b=a.append("g").attr("class","tooltipBC").style("display","none");b.append("rect").attr("width",60).attr("height",20).attr("fill","white").style("opacity",.5),b.append("text").attr("x",30).attr("dy","1.2em").style("text-anchor","middle").attr("font-size","12px").attr("font-weight","bold")},drawD3barStackedChart:function(t,e,n,i){var a=d3.select(n).append("svg").attr("width",e.outerWidth).attr("height",e.outerHeight),o=e.innerWidth,s=e.innerHeight,e=a.append("g").attr("transform","translate(70,20)"),r=t;legendCenterOffset=0,t.message?r=t.message[0].component.payload:(fromWidgets=!0,legendCenterOffset=-15);var l=d3.scaleBand().rangeRound([0,s]).paddingInner(.05).align(.1),c=d3.scaleLinear().rangeRound([0,o]),u=d3.scaleOrdinal().range(["#5bc8c4","#4a9af2","#8ecb60","#e7cc61","#eeaf4b","#ef7e63","#8e8eb7","#6483c3","#2249ab","#f352b7"]),d=[],f=[];f.push("xAxis");for(var p=0;p<r.elements.length;p++)f.push(r.elements[p].title);for(p=0;p<r.X_axis.length;p++)d[p]={},d[p].dispVal=[],d[p][f[0]]=r.X_axis[p];for(p=0;p<r.elements.length;p++)for(var h=0;h<r.elements[p].values.length;h++)d[h][f[p+1]]=r.elements[p].values[h],r.elements[p].displayValues&&(d[h].dispVal[p]=r.elements[p].displayValues[h]);for(t=f.slice(1),p=0;p<d.length;p++){var m=0;for(key in d[p])"xAxis"!==key&&"dispVal"!==key&&(m+=d[p][key]);d[p].total=m}l.domain(d.map(function(t){return t.xAxis})),c.domain([0,d3.max(d,function(t){return t.total})]).nice(),u.domain(t);var g=[];e.append("g").selectAll("g").data(d3.stack().keys(t)(d)).enter().append("g").attr("fill",function(t){return u(t.key)}).selectAll("rect").data(function(t,e){g[e]=[];for(var n=0;n<t.length;n++)g[e][n]={x:t[n][0],y:t[n][1],val:t[n].data.dispVal[e]};return t}).enter().append("rect").attr("y",function(t){return l(t.data.xAxis)}).attr("x",function(t){return c(t[0])}).attr("width",function(t){return c(t[1])-c(t[0])}).attr("height",.5*l.bandwidth()).attr("transform","translate(0,"+.25*l.bandwidth()+")").attr("dispVal",function(t){for(var e=0;e<g.length;e++)for(var n=0;n<g[e].length;n++)if(g[e][n].x===t[0]&&g[e][n].y===t[1])return g[e][n].val}).on("mouseover",function(){v.style("display",null)}).on("mouseout",function(){v.style("display","none")}).on("mousemove",function(t){var e=d3.mouse(this)[0]-5,n=d3.mouse(this)[1]-5;t=this.attributes.dispVal?this.attributes.dispVal.value:t[1]-t[0],v.attr("transform","translate("+e+","+n+")"),v.select("text").text(t)}),e.append("g").attr("class","axis").attr("transform","translate(0,"+s+")").call(d3.axisBottom(c).ticks(null,"s")).append("text").attr("y",40).attr("x",c(c.ticks().pop())+.5).attr("dy","0.32em").attr("fill","#000").attr("font-weight","bold").attr("text-anchor","start").attr("transform","translate("+-o+",-10)"),e.append("g").attr("class","axis").attr("transform","translate(0,0)").call(d3.axisLeft(l)),e.selectAll(".axis text").attr("class","chart-disp-val"),e.selectAll(".axis line").attr("class","chart-axis-line"),e.selectAll(".axis .domain").classed("chart-axis-line",!0);var y=d3.select(n).append("div").attr("class","tooltip-legend no-show");(t=e.append("g").attr("font-family","sans-serif").attr("font-size",10).attr("text-anchor","end").selectAll("g").data(t.slice().reverse()).enter().append("g").attr("transform",function(t,e){return"translate(80,"+(150+20*e)+")"})).append("rect").attr("x",o-19).attr("width",19).attr("height",19).attr("fill",u),t.append("text").attr("x",o-24).attr("y",9.5).attr("dy","0.32em").attr("class","chart-disp-val").text(function(t){return 10<t.length?t.slice(0,7)+"...":t}).on("mouseover",function(t){y.attr("class","only-show tooltip-legend"),y.html(t).style("left",d3.event.pageX-1042+"px").style("top",d3.event.pageY-178+"px")}).on("mouseout",function(t){y.attr("class","no-show tooltip-legend")});var v=a.append("g").attr("class","tooltipHStacked").style("display","none");v.append("rect").attr("width",60).attr("height",20).attr("fill","white").style("opacity",.5),v.append("text").attr("x",30).attr("dy","1.2em").style("text-anchor","middle").attr("font-size","12px").attr("font-weight","bold")},drawD3barVerticalStackedChart:function(t,e,n,i){var a=d3.select(n).append("svg").attr("width",e.outerWidth).attr("height",e.outerHeight),o=e.innerWidth,s=e.innerHeight,e=a.append("g").attr("transform","translate(20,20)"),r=t;legendCenterOffset=0,t.message?r=t.message[0].component.payload:(fromWidgets=!0,legendCenterOffset=-15);var l=d3.scaleBand().rangeRound([0,o]).paddingInner(.05).align(.1),c=d3.scaleLinear().rangeRound([s,0]),u=d3.scaleOrdinal().range(["#5bc8c4","#4a9af2","#8ecb60","#e7cc61","#eeaf4b","#ef7e63","#8e8eb7","#6483c3","#2249ab","#f352b7"]),d=[],f=[];f.push("xAxis");for(var p=0;p<r.elements.length;p++)f.push(r.elements[p].title);for(p=0;p<r.X_axis.length;p++)d[p]={},d[p].dispVal=[],d[p][f[0]]=r.X_axis[p];for(p=0;p<r.elements.length;p++)for(var h=0;h<r.elements[p].values.length;h++)d[h][f[p+1]]=r.elements[p].values[h],r.elements[p].displayValues&&(d[h].dispVal[p]=r.elements[p].displayValues[h]);for(t=f.slice(1),p=0;p<d.length;p++){var m=0;for(key in d[p])"xAxis"!==key&&"dispVal"!==key&&(m+=d[p][key]);d[p].total=m}l.domain(d.map(function(t){return t.xAxis})),c.domain([0,d3.max(d,function(t){return t.total})]).nice(),u.domain(t),coordsVal=[],e.append("g").selectAll("g").data(d3.stack().keys(t)(d)).enter().append("g").attr("fill",function(t){return u(t.key)}).selectAll("rect").data(function(t,e){coordsVal[e]=[];for(var n=0;n<t.length;n++)coordsVal[e][n]={x:t[n][0],y:t[n][1],val:t[n].data.dispVal[e]};return t}).enter().append("rect").attr("x",function(t){return l(t.data.xAxis)}).attr("y",function(t){return c(t[1])}).attr("height",function(t){return c(t[0])-c(t[1])}).attr("width",.5*l.bandwidth()).attr("dispVal",function(t){for(var e=0;e<coordsVal.length;e++)for(var n=0;n<coordsVal[e].length;n++)if(coordsVal[e][n].x===t[0]&&coordsVal[e][n].y===t[1])return coordsVal[e][n].val}).attr("transform","translate("+.25*l.bandwidth()+",0)").on("mouseover",function(){y.style("display",null)}).on("mouseout",function(){y.style("display","none")}).on("mousemove",function(t){var e=d3.mouse(this)[0]-5,n=d3.mouse(this)[1]-5;t=this.attributes.dispVal?this.attributes.dispVal.value:t[1]-t[0],y.attr("transform","translate("+e+","+n+")"),y.select("text").text(t)}),e.append("g").attr("class","axis").attr("transform","translate(0,"+s+")").call(d3.axisBottom(l)),e.selectAll("text").attr("class","chart-disp-val").attr("transform","rotate(-65) translate(-30, 0)"),e.append("g").attr("class","axis").call(d3.axisLeft(c).ticks(null,"s")).append("text").attr("x",2).attr("y",c(c.ticks().pop())-10).attr("dy","0.32em").attr("fill","#000").attr("font-weight","bold").attr("text-anchor","start"),e.selectAll("text").attr("class","chart-disp-val"),e.selectAll(".axis .domain").classed("chart-axis-line",!0),e.selectAll(".axis line").classed("chart-axis-line",!0);var g=d3.select(n).append("div").attr("class","tooltip-legend no-show");(t=e.append("g").attr("font-family","sans-serif").attr("font-size",10).attr("text-anchor","end").selectAll("g").data(t.slice().reverse()).enter().append("g").attr("transform",function(t,e){return"translate(48,"+20*e+")"})).append("rect").attr("x",o-19).attr("width",19).attr("height",19).attr("fill",u),t.append("text").attr("x",o-24).attr("y",9.5).attr("dy","0.32em").attr("class","chart-disp-val").text(function(t){return 10<t.length?t.slice(0,7)+"...":t}).on("mouseover",function(t){g.attr("class","only-show tooltip-legend"),g.html(t).style("left",d3.event.pageX-1042+"px").style("top",d3.event.pageY-178+"px")}).on("mouseout",function(t){g.attr("class","no-show tooltip-legend")});var y=a.append("g").attr("class","tooltipVSB").style("display","none");y.append("rect").attr("width",60).attr("height",20).attr("fill","white").style("opacity",.5),y.append("text").attr("x",30).attr("dy","1.2em").style("text-anchor","middle").attr("font-size","12px").attr("font-weight","bold")},drawD3barHorizontalbarChart:function(t,e,n,i){window.addEventListener("resize",function(t){C("#chart").width(.9*window.innerWidth),C("#chart").height(window.innerHeight)});var a=[],o=t;legendCenterOffset=0,t.message?o=t.message[0].component.payload:(fromWidgets=!0,legendCenterOffset=-15);for(var s=0;s<o.X_axis.length;s++){a[s]={},a[s].date=o.X_axis[s];for(var r=0;r<o.elements.length;r++)a[s][o.elements[r].title]=o.elements[r].values[s],o.elements[r].displayValues&&(a[s][o.elements[r].title+"dispVal"]=o.elements[r].displayValues[s])}for(var l={},r=0;r<o.elements.length;r++)l[o.elements[r].title]=o.elements[r].title;C(n).empty(),c({mainDiv:n,colorRange:["#5bc8c4","#4a9af2","#8ecb60","#e7cc61","#eeaf4b","#ef7e63","#8e8eb7","#6483c3","#2249ab","#f352b7"],data:a,columnsInfo:l,xAxis:"value",yAxis:"date",label:{xAxis:"Value",yAxis:"Dates"},requireLegend:!0},e)},drawD3lineChartV2:function(t,n,e,i){var a=35,o=30,s=n.innerWidth,r=n.innerHeight,l=["#5bc8c4","#4a9af2","#8ecb60","#e7cc61","#eeaf4b","#ef7e63","#8e8eb7","#6483c3","#2249ab","#f352b7"],c=d3.scaleOrdinal().range(["#5bc8c4","#4a9af2","#8ecb60","#e7cc61","#eeaf4b","#ef7e63","#8e8eb7","#6483c3","#2249ab","#f352b7"]),u=t;legendCenterOffset=0,t.message?u=t.message[0].component.payload:(fromWidgets=!0,legendCenterOffset=-15);var d=u.X_axis,f=u.elements,p=d3.scaleLinear().domain([0,d.length-1]).range([0,s]),h=d3.scaleLinear().domain([0,60]).range([r,0]),m=d3.line().x(function(t){return p(t.ind)}).y(function(t){return h(t.value)}),g=d3.select(e).append("svg").attr("width",n.outerWidth).attr("height",n.outerHeight),t=g.append("g").attr("transform","translate("+o+","+a+")"),o=d3.axisBottom(p).tickFormat(function(t){return d[t]}),a=d3.axisLeft(h).tickFormat(d3.format(".2s"));t.append("g").attr("class","axis").call(a),t.append("g").attr("transform","translate(0,"+r+")").call(o).attr("class","axis xAxisR"),t.selectAll(".xAxisR text").attr("transform","rotate(-65) translate(-30, 0)");var y=[],v=[],D=[],b={};y.push("xAxis");for(var A=0;A<u.elements.length;A++)y.push(u.elements[A].title);for(A=0;A<u.elements.length;A++){v[A]={},v[A].valueSet=[],v[A].name=u.elements[A].title,v[A].currentVal=u.elements[A].values[u.elements[A].values.length-1];for(var I=0;I<u.elements[A].values.length;I++)D[I]=D[I]||{},D[I].x_Axis=u.X_axis[I],D[I][y[A+1]]=u.elements[A].values[I],v[A].valueSet[I]={},v[A].valueSet[I].value=u.elements[A].values[I],u.elements[A].displayValues&&(v[A].valueSet[I].dispVal=u.elements[A].displayValues[I],b[u.elements[A].title]=u.elements[A].displayValues[I].replace(/[0-9]/g,"")),v[A].valueSet[I].x_Axis=u.X_axis[I],v[A].valueSet[I].ind=I}a=y.slice(1),r=y.slice(1).map(function(e){return{id:e,values:D.map(function(t){return{xAxis:t.xAxis,temperature:t[e]}})}}),o=v,t.selectAll().data(o).enter().append("path").attr("fill","none").attr("stroke",function(t){return c(t.name)}).attr("stroke-width",2).datum(function(t){return t.valueSet}).attr("d",m).attr("class","lineC"),t.selectAll().data(o).enter().append("text").html(function(t){}).attr("fill",function(t){return t.color}).attr("alignment-baseline","middle").attr("x",s).attr("dx",".5em").attr("y",function(t){return h(t.currentVal)});var o=g.append("g").attr("class","mouse-over-effects"),M=document.getElementsByClassName("lineC");(r=o.selectAll(".mouse-per-line").data(r).enter().append("g").attr("class","mouse-per-line")).append("circle").attr("r",7).style("stroke",function(t,e){return l[e]}).style("fill","none").style("stroke-width","3px").style("opacity","0").attr("transform","translate(30,35)"),r.append("text").attr("transform",function(t,e){return 0==e?"translate(40,40)":1==e?"translate(20,10)":"translate(0,40)"}),o.append("svg:rect").attr("width",n.innerWidth+5).attr("height",n.innerHeight).attr("transform","translate(30,35)").attr("fill","none").attr("pointer-events","all").on("mouseout",function(){d3.selectAll(".mouse-per-line circle").style("opacity","0"),d3.selectAll(".mouse-per-line text").style("opacity","0")}).on("mouseover",function(){"block"===C("#myPreviewModal").css("display")?C(".lineChartChildDiv .mouse-per-line").hide():C(".lineChartChildDiv .mouse-per-line").show(),d3.selectAll(".mouse-per-line circle").style("opacity","0.5"),d3.selectAll(".mouse-per-line text").style("opacity","1")}).on("mousemove",function(){var r=d3.mouse(this);d3.selectAll(".mouse-per-line").attr("transform",function(t,e){var n=p.invert(r[0]),i=d3.bisector(function(t){return t.date}).right;idx=i(t.values,n);for(var a,o=0,s=M[e].getTotalLength()+2;;){if(a=Math.floor((o+s)/2),pos=M[e].getPointAtLength(a),(a===s||a===o)&&pos.x!==r[0])break;if(pos.x>r[0])s=a;else{if(!(pos.x<r[0]))break;o=a}}return xtempLC=p,d3.select(this).select("text").text(function(t,e){for(var n=[],i=0;i<f.length;i++)if(f[i].title===t.id)for(var a=0;a<t.values.length;a++)n[a]=t.values[a].temperature;if(void 0!==b[this.__data__.id]){var o=h.invert(pos.y).toFixed(2);return-1!==n.indexOf(Math.round(o))&&n.indexOf(Math.round(o))===Math.round(xtempLC.invert(pos.x))?h.invert(pos.y).toFixed(2)+"\n"+d[Math.round(xtempLC.invert(pos.x))]:h.invert(pos.y).toFixed(2)+b[this.__data__.id]}o=h.invert(pos.y).toFixed(2);return-1!==n.indexOf(Math.round(o))&&n.indexOf(Math.round(o))===Math.round(xtempLC.invert(pos.x))?h.invert(pos.y).toFixed(2)+"\n"+d[Math.round(xtempLC.invert(pos.x))]:h.invert(pos.y).toFixed(2)}),"translate("+r[0]+","+pos.y+")"})}),t.selectAll(".axis text").attr("class","chart-disp-val"),t.selectAll(".axis line").attr("class","chart-axis-line"),t.selectAll(".axis .domain").classed("chart-axis-line",!0);var w=d3.select(e).append("div").attr("class","tooltip-legend no-show");(a=g.append("g").attr("font-family","sans-serif").attr("font-size",10).attr("text-anchor","end").selectAll("g").data(a.slice().reverse()).enter().append("g").attr("transform",function(t,e){return 230===n.innerWidth?"translate(100,"+(250+20*e)+")":"translate(100,"+(230+20*e)+")"})).append("rect").attr("x",s-19).attr("width",19).attr("height",19).attr("fill",c),a.append("text").attr("x",s-24).attr("y",9.5).attr("dy","0.32em").attr("class","chart-disp-val").text(function(t){return 10<t.length?t.slice(0,7)+"...":t}).on("mouseover",function(t){w.attr("class","only-show tooltip-legend"),w.html(t).style("left",d3.event.pageX-1042+"px").style("top",d3.event.pageY-178+"px")}).on("mouseout",function(t){w.attr("class","no-show tooltip-legend")})}}}($),bind=_.bind;function koreAnonymousFn(t){console.info("anonymous user login");var e,n=localStorage.getItem("korecom")||function(){console.info("generating UUID");var n=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(n+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:3&e|8).toString(16)})}();localStorage.setItem("korecom",n),t.clientId?((e={}).issuer=t.clientId,e.subject=n,t.assertion=e,this.options=t,this.claims=t.assertion,this.WebClient=new this.clients.KoreWebClient({},this.options),this.WebClient.claims=this.claims,this.WebClient.anonymouslogin.login({assertion:t.assertion,botInfo:this.options.botInfo},bind(this.onLogIn,this))):console.log("clientId should be there for anonymous user")}requireKr=function i(a,o,s){function r(n,t){if(!o[n]){if(!a[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}e=o[n]={exports:{}};a[n][0].call(e.exports,function(t){var e=a[n][1][t];return r(e||t)},e,e.exports,i,a,o,s)}return o[n].exports}for(var l="function"==typeof require&&require,t=0;t<s.length;t++)r(s[t]);return r}({"/KoreBot.js":[function(t,e,n){var a=t("./index.js"),o=t("events"),s=t("inherits"),r=t(15),l=t("lodash").bind?t("lodash"):_,c=l.bind,u=l.isFunction,d=a.CLIENT_EVENTS.RTM,f=a.RTM_EVENTS,p=a.CLIENT_EVENTS.WEB,h=t("./jstz.js"),m=l.noop;"undefined"!=typeof window&&(window.kore=window.kore||{},window.kore.botsdk=window.kore.botsdk||{},window.kore.botsdk.logger=window.kore.botsdk.logger||t("debug"),window.messageHistoryLimit=10);var g=t("debug")("botsdk:KoreBot");function y(){o.call(this),this.WebClient=null,this.RtmClient=null,this.options={},this.accessToken=null,this.initialized=!1,this.clients=a,this.latestId=null,this.oldestId=null,this.EventEmitter=o,this.lodash=l,this.bind=c,this.isFunction=u,this.RTM_EVENTS=f,this.RTM_CLIENT_EVENTS=d,this.jstz=h,this.noop=m,this.debug=g,this.userLocation=D}var v,D={city:"",country:"",latitude:0,longitude:0,street:""},b=!1;s(y,o),y.prototype.emit=function(){arguments&&"history"===arguments[0]&&this.historySyncInProgress?(this.historySyncInProgress=!1,arguments[2]="historysync",this.cbBotChatHistory(arguments)):!window._chatHistoryLoaded&&arguments&&"history"===arguments[0]?(b=!0,this.cbBotChatHistory(arguments)):b&&arguments&&"history"===arguments[0]&&setTimeout(function(){$(".chatInputBox").focus(),$(".disableFooter").removeClass("disableFooter")}),this.EventEmitter.prototype.emit.apply(this,arguments)},y.prototype.fetchUserLocation=function(){var n;""===D.country&&(console.log("Fetching user location"),n=this.options,navigator.geolocation.getCurrentPosition(function(t){var e,a;n.googleMapsAPIKey?(e=t.coords.latitude,t=t.coords.longitude,D.latitude=e,D.longitude=t,a=new XMLHttpRequest,t="https://maps.googleapis.com/maps/api/geocode/json?latlng="+e+","+t+"&sensor=true&key="+n.googleMapsAPIKey,a.open("GET",t,!0),a.onreadystatechange=function(){if(4==a.readyState&&200==a.status){var t=JSON.parse(a.responseText);"undefined"!=typeof Storage&&(0==t.results.length?t=JSON.parse(localStorage.getItem("locationData")):localStorage.setItem("locationData",JSON.stringify(t)));var e=[];for(t.results&&t.results.length&&t.results[0].address_components&&(e=t.results[0].address_components),i=0;i<e.length;i++){var n=e[i].types;"locality,political"==n?D.city=e[i].long_name:"country,political"==n?D.country=e[i].long_name:"political,sublocality,sublocality_level_2"==n&&(D.street=e[i].long_name)}}},a.send()):console.warn("please provide google maps API key")}))},y.prototype.sendMessage=function(t,e){g("sending message to bot"),this.initialized?(t.resourceid=t.resourceid||"/bot.message",t.botInfo=this.options.botInfo||{},t.client=this.options.client||"sdk",t.meta={timezone:h.jstz.determine().name(),locale:window.navigator.userLanguage||window.navigator.language},0!==D.latitude&&0!==D.longitude&&(t.meta.location=D),this.RtmClient.sendMessage(t,e)):e&&e(new Error("Bot is Initializing...Please try again"))},y.prototype.sendMessageViaWebhook=function(t,n,i){var e=this.WebClient,a=this;t.opts={authorization:"bearer "+this.options.webhookConfig.token},e.makeAPICall(this.options.webhookConfig.webhookURL,t,function(t,e){t?i(e):(e.pollId&&a.startPollForWebhookResponse(e.pollId,n),n(a.convertWebhookResposeToMessages(e)))})},y.prototype.getBotMetaData=function(n,i){var t=this.WebClient,a=this,e={};e.opts={authorization:"bearer "+this.options.webhookConfig.token,type:"GET"},t.makeAPICall("botmeta/"+a.options.botInfo.taskBotId,e,function(t,e){t?i(e):(a.options.botInfo.icon=e.icon,n(e))})},y.prototype.convertWebhookResposeToMessages=function(t){var i,e=t.text,a=[],o=this.options.botInfo.icon;function s(e){try{e=JSON.parse(e)}catch(t){return e}return e}return(e="v2"===t._v?t.data:e)instanceof Array?(console.log("it is array"),e.forEach(function(t,e){var n=(new Date).getTime()+e,e=s(t.val||t);i={type:"bot_response",messageId:t.messageId||n,icon:o,createdOn:t.createdOn,message:[{type:"text",cInfo:{body:t.val||t,attachments:""},component:{}}]},e.payload?(i.message[0].component.payload=e.payload,i.message[0].component.type=e.type):e.text?(i.message[0].component.payload={text:e.text},i.message[0].component.type="template"):(i.message[0].component.payload={text:e},i.message[0].component.type="text"),i.message[0].component&&i.message[0].component.payload&&i.message[0].component.payload.text&&(i.message[0].cInfo.body=i.message[0].component.payload.text),i.message[0].component&&i.message[0].component.payload&&(i.message[0].component.payload.videoUrl||i.message[0].component.payload.audioUrl)&&(i.message[0].cInfo.body=i.message[0].component.payload.text||""),a.push(i)})):(console.log("its Object"),t=(new Date).getTime(),i={type:"bot_response",messageId:entry.messageId||t,createdOn:entry.createdOn,icon:o,message:[{type:"text",cInfo:{body:s(e),attachments:""},component:s(e)}]},a.push(i)),a},y.prototype.startPollForWebhookResponse=function(t,n){var i=this,e=i.options.koreAPIUrl,a=(e=e.substring(0,e.length-5))+"/chatbot/v2/webhook/"+i.options.webhookConfig.streamId+"/poll/"+t,e=this.WebClient,t={};t.opts={authorization:"bearer "+this.options.webhookConfig.token,type:"GET"},e.makeAPICall(a,t,function(t,e){t||(e.pollId&&setTimeout(function(){i.startPollForWebhookResponse(e.pollId,n)},1e3),e.data&&n(i.convertWebhookResposeToMessages(e)))})},y.prototype.onMessage=function(t){g("on message from bot/self"),"bot"===t.from&&"bot_response"===t.type&&(this.latestId=t.messageId||this.latestId,this.oldestId=this.oldestId||t.messageId),this.emit(f.MESSAGE,t)},y.prototype.close=function(){g("request to close ws connection"),this.RtmClient&&this.RtmClient._close()},y.prototype.destroy=function(){this.RtmClient&&this.RtmClient._close(),b=!1,this.removeAllListeners()},y.prototype.onForwardHistory=function(t,e){g("on forward history");var n={};if(n.moreAvailable=e.moreAvailable,n.messages=[],n.forward=!0,n.afterMessageId=this.latestId,e.messages&&0<e.messages.length)for(var i=0;i<e.messages.length;i++){var a={};a.messageId=e.messages[i]._id,this.oldestId=this.oldestId||e.messages[i]._id,this.latestId=e.messages[i]._id||this.latestId,"incoming"===e.messages[i].type?(a.from="self",a.type="user_message"):(a.from="bot",a.type="bot_response");var o=0;if(e.messages[i].components&&0<e.messages[i].components.length)for(a.message=[],o=0;o<e.messages[i].components.length;o++){var s={};s.type=e.messages[i].components[o].cT,"text"===s.type&&(s.cInfo={},s.cInfo.body=e.messages[i].components[o].data&&e.messages[i].components[o].data.text),a.message[o]=s}a.createdOn=e.messages[i].createdOn,n.messages[i]=a}this.emit("history",n)},y.prototype.onBackWardHistory=function(t,e){g("on backword history");var n={};if(n.moreAvailable=e.moreAvailable,n.messages=[],n.backward=!0,n.beforeMessageId=this.oldestId,e.messages&&0<e.messages.length)for(var i=0;i<e.messages.length;i++){var a={};a.messageId=e.messages[i]._id,this.oldestId=e.messages[i]._id||this.oldestId,this.latestId=this.latestId||e.messages[i]._id,"incoming"===e.messages[i].type?(a.from="self",a.type="user_message"):(a.from="bot",a.type="bot_response",a.icon=e.icon);var o=0;if(e.messages[i].components&&0<e.messages[i].components.length)for(a.message=[],o=0;o<e.messages[i].components.length;o++){var s={};s.type=e.messages[i].components[o].cT,"text"===s.type&&(s.cInfo={},s.cInfo.body=e.messages[i].components[o].data&&e.messages[i].components[o].data.text),a.message[o]=s}a.createdOn=e.messages[i].createdOn,n.messages[i]=a}this.emit("history",n)},y.prototype.getHistory=function(t,e){g("get history"),t=t||{},"undefined"!=typeof window&&(t.limit=t.limit||window.messageHistoryLimit||10);var n={};n.forward=t.forward,n.limit=t.limit||10,n.forward?this.latestId&&(n.msgId=this.latestId):this.oldestId&&(n.msgId=this.oldestId),n.botInfo=this.options.botInfo,n.authorization="bearer "+this.WebClient.user.accessToken,e&&e.webhookConfig&&e.webhookConfig.enable&&(n.authorization="bearer "+this.options.webhookConfig.token),t.forHistorySync&&(this.historySyncInProgress=!0,delete n.msgId),n.forward?this.WebClient.history.history(n,c(this.onForwardHistory,this),e):this.WebClient.history.history(n,c(this.onBackWardHistory,this),e)},y.prototype.sync=function(t){},y.prototype.onOpenWSConnection=function(t){g("opened WS Connection"),this.initialized=!0,this.options.loadHistory&&!b&&this.getHistory({}),this.emit(d.RTM_CONNECTION_OPENED,{})},y.prototype.onLogIn=function(t,e){var n;g("sign-in/anonymous user onLogin"),t?(this.cbErrorToClient&&(e&&e.errors&&e.errors[0]&&e.errors[0].msg?e.errors[0].tokenExpired?this.cbErrorToClient(JSON.stringify(e)):this.cbErrorToClient(e.errors[0].msg):this.cbErrorToClient(t.message)),console.error(t&&t.stack)):(this.accessToken=e.authorization.accessToken,this.options.accessToken=this.accessToken,this.WebClient.user.accessToken=this.accessToken,this.userInfo=e,this.options&&this.options.jwtgrantSuccessCB&&this.options.jwtgrantSuccessCB(e),this.cbBotDetails(e,this.options.botInfo),this.RtmClient=new a.KoreRtmClient({},this.options),this.RtmClient.on("reconnect_event",t=>{this.emit("reconnected",t)}),this.emit("rtm_client_initialized"),this.RtmClient.start({botInfo:this.options.botInfo}),this.RtmClient.on(f.MESSAGE,c(this.onMessage,this)),this.RtmClient.on(d.RTM_CONNECTION_OPENED,c(this.onOpenWSConnection,this)),n=this,Object.keys(d).forEach(function(e){n.RtmClient.on(d[e],function(t){n.emit("rtm:"+d[e],t)})}))},y.prototype.logIn=function(t,e){t?(g("error in assertionFn %s",t),console.error("error in assertionFn",t&&t.stack)):(g("signed-in user login"),this.options=e,this.claims=e.assertion,this.WebClient=new a.KoreWebClient({},this.options),this.WebClient.claims=this.claims,this.cbErrorToClient=e.handleError||m,this.cbBotDetails=e.botDetails||m,this.cbBotChatHistory=e.chatHistory||m,this.options.webhookConfig&&this.options.webhookConfig.enable?(this.options.webhookConfig.token=this.options.assertion,this.emit(p.WEB_HOOK_READY),this.options.loadHistory&&!b?this.getHistory({},e):this.emit(p.WEB_HOOK_RECONNECTED)):this.WebClient.login.login({assertion:e.assertion,botInfo:this.options.botInfo},c(this.onLogIn,this)))},y.prototype.init=function(t,e){100<(e=e||10)&&(e=100),"undefined"!=typeof window&&(window.messageHistoryLimit=e||10),this.options=t=t||{},this.oldestId=null,this.RtmClient=null,t.test?(g("test is true"),u(t.koreAnonymousFn)?t.koreAnonymousFn.call(this,t):(g("koreAnonymousFn is not a function"),console.error("koreAnonymousFn is not a function"))):(g("test is false"),u(t.assertionFn)?t.assertionFn(t,c(this.logIn,this)):(g("assertion is not a function"),console.error("assertion is not a function"))),this.reWriteWebhookConfig(t)},y.prototype.reWriteWebhookConfig=function(t){var e,n,i,a;t&&t.webhookConfig&&t.webhookConfig.enable&&(e=t.botInfo.taskBotId,n="ivr",-1<(i=t.webhookConfig.webhookURL).indexOf(a="hookInstance/")&&(n=i.substring(i.indexOf(a)+a.length,i.length)),t.webhookConfig.streamId=e,t.webhookConfig.channelType=n)},e.exports.instance=function(){return b=!1,(v=new y).KoreBot=y,v.KoreRTMClient=a.KoreRtmClient,Object.keys(r).forEach(function(t){v[t]=r[t]}),v},e.exports.singletoninstance=function(){return v}},{"./index.js":1,"./jstz.js":2,debug:21,events:30,inherits:23,lodash:24}],1:[function(t,e,n){var i=t("./lib/clients/events");e.exports={KoreWebClient:t("./lib/clients/web/client"),KoreRtmClient:t("./lib/clients/rtm/client"),CLIENT_EVENTS:{WEB:i.CLIENT_EVENTS.WEB,RTM:i.CLIENT_EVENTS.RTM},RTM_EVENTS:i.RTM_EVENTS,RTM_MESSAGE_SUBTYPES:i.RTM_MESSAGE_SUBTYPES}},{"./lib/clients/events":5,"./lib/clients/rtm/client":9,"./lib/clients/web/client":18}],2:[function(t,e,n){var i,s;i=this,(s=function(){"use strict";var i="s",e=function(t){t=-t.getTimezoneOffset();return null!==t?t:0},n=function(t,e,n){var i=new Date;return void 0!==t&&i.setFullYear(t),i.setDate(n),i.setMonth(e),i},a=function(t){return e(n(t,0,2))},o=function(t){return e(n(t,5,2))};return{determine:function(){var t,e,n=(n=a(),t=o(),(e=a()-o())<0?n+",1":0<e?t+",1,"+i:n+",0");return new s.TimeZone(s.olson.timezones[n])},date_is_dst:function(t){return(7<t.getMonth()?o:a)(t.getFullYear())-e(t)!=0},dst_start_for:function(t){var e=new Date(2010,6,15,1,0,0,0);return{"America/Denver":new Date(2011,2,13,3,0,0,0),"America/Mazatlan":new Date(2011,3,3,3,0,0,0),"America/Chicago":new Date(2011,2,13,3,0,0,0),"America/Mexico_City":new Date(2011,3,3,3,0,0,0),"America/Asuncion":new Date(2012,9,7,3,0,0,0),"America/Santiago":new Date(2012,9,3,3,0,0,0),"America/Campo_Grande":new Date(2012,9,21,5,0,0,0),"America/Montevideo":new Date(2011,9,2,3,0,0,0),"America/Sao_Paulo":new Date(2011,9,16,5,0,0,0),"America/Los_Angeles":new Date(2011,2,13,8,0,0,0),"America/Santa_Isabel":new Date(2011,3,5,8,0,0,0),"America/Havana":new Date(2012,2,10,2,0,0,0),"America/New_York":new Date(2012,2,10,7,0,0,0),"Asia/Beirut":new Date(2011,2,27,1,0,0,0),"Europe/Helsinki":new Date(2011,2,27,4,0,0,0),"Europe/Istanbul":new Date(2011,2,28,5,0,0,0),"Asia/Damascus":new Date(2011,3,1,2,0,0,0),"Asia/Jerusalem":new Date(2011,3,1,6,0,0,0),"Asia/Gaza":new Date(2009,2,28,0,30,0,0),"Africa/Cairo":new Date(2009,3,25,0,30,0,0),"Pacific/Auckland":new Date(2011,8,26,7,0,0,0),"Pacific/Fiji":new Date(2010,11,29,23,0,0,0),"America/Halifax":new Date(2011,2,13,6,0,0,0),"America/Goose_Bay":new Date(2011,2,13,2,1,0,0),"America/Miquelon":new Date(2011,2,13,5,0,0,0),"America/Godthab":new Date(2011,2,27,1,0,0,0),"Europe/Moscow":e,"Asia/Yekaterinburg":e,"Asia/Omsk":e,"Asia/Krasnoyarsk":e,"Asia/Irkutsk":e,"Asia/Yakutsk":e,"Asia/Vladivostok":e,"Asia/Kamchatka":e,"Europe/Minsk":e,"Australia/Perth":new Date(2008,10,1,1,0,0,0)}[t]}}}()).TimeZone=function(t){"use strict";var a={"America/Denver":["America/Denver","America/Mazatlan"],"America/Chicago":["America/Chicago","America/Mexico_City"],"America/Santiago":["America/Santiago","America/Asuncion","America/Campo_Grande"],"America/Montevideo":["America/Montevideo","America/Sao_Paulo"],"Asia/Beirut":["Asia/Beirut","Europe/Helsinki","Europe/Istanbul","Asia/Damascus","Asia/Jerusalem","Asia/Gaza"],"Pacific/Auckland":["Pacific/Auckland","Pacific/Fiji"],"America/Los_Angeles":["America/Los_Angeles","America/Santa_Isabel"],"America/New_York":["America/Havana","America/New_York"],"America/Halifax":["America/Goose_Bay","America/Halifax"],"America/Godthab":["America/Miquelon","America/Godthab"],"Asia/Dubai":["Europe/Moscow"],"Asia/Dhaka":["Asia/Yekaterinburg"],"Asia/Jakarta":["Asia/Omsk"],"Asia/Shanghai":["Asia/Krasnoyarsk","Australia/Perth"],"Asia/Tokyo":["Asia/Irkutsk"],"Australia/Brisbane":["Asia/Yakutsk"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Tarawa":["Asia/Kamchatka"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"],"Asia/Baghdad":["Europe/Minsk"]},o=t;return void 0!==a[o]&&function(){var t,e=a[o],n=e.length,i=0;for(e[0];i<n;i+=1)if(t=e[i],s.date_is_dst(s.dst_start_for(t)))return o=t}(),{name:function(){return o}}},s.olson={},s.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Santiago","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Argentina/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"Etc/GMT+2","-120,1":"Etc/GMT+2","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"Etc/UTC","0,1":"Europe/London","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,s":"Africa/Windhoek","120,1":"Asia/Beirut","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Kolkata","345,0":"Asia/Kathmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Tarawa","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},void 0!==n?n.jstz=s:i.jstz=s},{}],3:[function(t,e,n){var i=t("events"),a=t("async"),o=t("lodash").bind?t("lodash"):_,s=o.bind,o=t("inherits"),u=t("retry"),r=t("url-join"),d=t("./events/client").WEB,l=t("./helpers"),c=t("./transports/request").requestTransport;function f(t,e){i.call(this),this._token=t,this.koreAPIUrl=e.koreAPIUrl||"https://app.kore.com/api/",this.reWriteSocketURL=e.reWriteSocketURL,this.transport=e.transport||c,this.userAgent,this._requestQueue=a.priorityQueue(s(this._callTransport,this),e.maxRequestConcurrency),this._createFacets()}o(f,i),f.prototype.emit=function(){f.super_.prototype.emit.apply(this,arguments)},f.prototype._createFacets=function(){},f.prototype._callTransport=function(t,a){function o(t,e,n,i){if(t){if(c.retry(t))return;r(c.mainError(),null)}200!==n?429===n?(l._requestQueue.pause(),e=parseInt(e["Retry-After"],10),setTimeout(function(){l.transport(s,o),l._requestQueue.resume()},1e3*e),l.emit(d.RATE_LIMITED,e)):(n=new Error("Unable to process request, received bad "+n+" error"),r(n,i)):r(null,i),a()}var s=t.args,r=t.cb,l=this,c=u.operation(this.retryConfig);c.attempt(function(){l.transport(s,o)})},f.prototype.makeAPICall=function(t,e,n){n=l.getAPICallArgs(this._token,e,n),t={url:/^((http|https):\/\/)/.test(t)?t:r(this.koreAPIUrl,t),data:n.data,headers:{"User-Agent":this.userAgent,"content-type":"application/json"}};e&&e.opts&&e.opts.authorization&&(t.headers.Authorization=e.opts.authorization,delete t.data.authorization),this._requestQueue.push({args:t,cb:n.cb})},e.exports=f},{"./events/client":4,"./helpers":8,"./transports/request":10,async:19,events:30,inherits:23,lodash:24,retry:26,"url-join":29}],4:[function(t,e,n){e.exports.WEB={RATE_LIMITED:"rate_limited",WEB_HOOK_READY:"webhook_ready",WEB_HOOK_RECONNECTED:"webhook_reconnected"},e.exports.RTM={CONNECTING:"connecting",AUTHENTICATED:"authenticated",WS_OPENING:"ws_opening",WS_OPENED:"ws_opened",RTM_CONNECTION_OPENED:"open",DISCONNECT:"disconnect",UNABLE_TO_RTM_START:"unable_to_rtm_start",WS_CLOSE:"ws_close",WS_ERROR:"ws_error",ATTEMPTING_RECONNECT:"attempting_reconnect",RAW_MESSAGE:"raw_message"}},{}],5:[function(t,e,n){e.exports={CLIENT_EVENTS:{WEB:t("./client").WEB,RTM:t("./client").RTM},RTM_EVENTS:t("./rtm").EVENTS,RTM_MESSAGE_SUBTYPES:t("./rtm").MESSAGE_SUBTYPES}},{"./client":4,"./rtm":6}],6:[function(t,e,n){e.exports.EVENTS={HELLO:"hello",MESSAGE:"message"},e.exports.MESSAGE_SUBTYPES={BOT_MESSAGE:"bot_message",ME_MESSAGE:"me_message"}},{}],7:[function(t,e,n){var i=t("./rtm").EVENTS;e.exports.makeMessageEventWithSubtype=function(t,e){return[i.MESSAGE,t].join(e||"::")}},{"./rtm":6}],8:[function(t,e,n){function o(t,e){var n=i({},t&&t.opts||{});return l(t||{},function(t,e){a(t)||null===t||"opts"===e||("attachments"!==e||r(t)?n[e]=t:n[e]=JSON.stringify(t))}),e&&(n.token=e),n}var t=t("lodash").bind?t("lodash"):_,i=t.assign,s=t.isFunction,a=t.isUndefined,r=t.isString,l=t.forEach;e.exports.getData=o,e.exports.getAPICallArgs=function(t,e,n){var i,a;return 1===arguments.length?(a=noop,i=o({},t)):2===arguments.length?i=s(e)?(a=e,o({},t)):(a=noop,o(e,t)):3===arguments.length&&(a=n||noop,i=o(e,t)),{cb:a,data:i}}},{lodash:24}],9:[function(t,e,n){var i=t("lodash").bind?t("lodash"):_,a=i.bind,o=i.cloneDeep,s=i.contains,r=t("inherits"),l=i.isUndefined,c=t("debug")("botsdk:KoreRTMClient"),u=t("../events/rtm").EVENTS,d=["pong",u.HELLO],f=["not_authed","invalid_auth","account_inactive","token_expired"],p=(t("../events/client").RTM,t("../client")),h=t("../web/apis").RtmApi,m=t("../events/utils").makeMessageEventWithSubtype,g=t("../transports/ws"),y=t(4);function v(t,e){e=e||{};e.maxRequestConcurrency=1,p.call(this,t,e),this._socketFn=e.socketFn||g,this.ws=void 0,this.MAX_RECONNECTION_ATTEMPTS=e.maxReconnectionAttempts||10,this.RECONNECTION_BACKOFF=e.reconnectionBackoff||3e3,this.MAX_PONG_INTERVAL=e.maxPongInterval||1e4,this.WS_PING_INTERVAL=e.wsPingInterval||5e3,this.autoReconnect=!1!==e.autoReconnect,this.connected=!1,this.authenticated=!1,this.activeUserId=void 0,this._pendingMessages={},this._connAttempts=0,this._connecting=!1,this._reconnecting=e.maintainContext||!1,e.forceReconnecting&&(this._reconnecting=!0,e.forceReconnecting=!1),e.hasOwnProperty("_reconnecting")&&e._reconnecting&&(this._reconnecting=e._reconnecting,e._reconnecting=!1),this.user={},this.user.accessToken=e.accessToken,this.botInfo=e.botInfo||{},this.CLIENT_EVENTS=y.RTM,this.debug=c}r(v,p),v.prototype._createFacets=function(){v.super_.prototype._createFacets.call(this),this._rtm=new h(this)},v.prototype.start=function(t){this._connecting||(this.emit(y.CONNECTING),this._connecting=!0,(t=t||{botInfo:this.botInfo}).authorization="bearer "+this.user.accessToken,this._rtm.start(t,a(this._onStart,this)))},v.prototype.nextMessageId=function(){return this._messageId=this._messageId||1,this._messageId++},v.prototype._onStart=function(t,e){var n=!!this._reconnecting;this._connecting=!1,this._reconnecting=!1,e&&e.errors&&("TOKEN_EXPIRED"===e.errors[0].code||401===e.errors[0].code||"token expired"===e.errors[0].msg)&&(KoreSDK.dependencies.jQuery(".reload-btn").trigger("click",{isReconnect:!0}),e.error="token_expired"),t||!e.url?(c("error or no url in response %s",t||"no url"),this.emit(y.UNABLE_TO_RTM_START,t||e.error),e&&s(f,e.error)?this.disconnect("unrecoverable failure connecting to the RTM API",e.error):(this.authenticated=!1,this.autoReconnect&&this.reconnect())):(n&&(e.url=e.url+"&isReconnect=true"),this.authenticated=!0,this.emit(y.AUTHENTICATED,e),this.connect(e.url),this.emit("reconnect_event",{reconnected:n}))},v.prototype._close=function(){this.autoReconnect=!1,this._safeDisconnect()},v.prototype._safeDisconnect=function(){this.ws&&this.ws.close(),this.authenticated=!1,this.connected=!1},v.prototype.reWriteURL=function(t){var e;return this.reWriteSocketURL&&((e=document.createElement("a")).href=t,this.reWriteSocketURL.protocol&&(e.protocol=this.reWriteSocketURL.protocol),this.reWriteSocketURL.hostname&&(e.hostname=this.reWriteSocketURL.hostname),this.reWriteSocketURL.port&&(e.port=this.reWriteSocketURL.port),t=e.href),t},v.prototype.connect=function(t){c("connecting"),this.emit(y.WS_OPENING,{}),t=this.reWriteURL(t),this.ws=this._socketFn(t),this.ws.onopen=a(this.handleWsOpen,this),this.ws.onmessage=a(this.handleWsMessage,this),this.ws.onerror=a(this.handleWsError,this),this.ws.onclose=a(this.handleWsClose,this),this.ws.onping=a(this.handleWsPing,this)},v.prototype.disconnect=function(t,e){c("disconnecting"),this.emit(y.DISCONNECT,t,e),this.autoReconnect=!1,this._safeDisconnect()},v.prototype.reconnect=function(){if(c("reconnecting"),console.log("in reconnect"),!this._reconnecting){if(this._reconnecting=!0,this.emit(y.ATTEMPTING_RECONNECT),this._safeDisconnect(),this._connAttempts++,this._connAttempts>this.MAX_RECONNECTION_ATTEMPTS)throw new Error("unable to connect to kore.ai RTM API, failed after max reconnection attempts");setTimeout(a(this.start,this),this._connAttempts*this.RECONNECTION_BACKOFF)}},v.prototype.handleWsOpen=function(){c("connected"),this.connected=!0,this.emit("open",{data:{}}),this._connAttempts=0},v.prototype.handleWsMessage=function(t){var e;this.emit("message",t);try{e=JSON.parse(t)}catch(t){return}s(d,e.type)?this._handleWsMessageInternal(e.type,e):this._handleWsMessageViaEventHandler(e.type,e)},v.prototype._handleWsMessageInternal=function(t,e){t===u.HELLO&&this._handleHello()},v.prototype._handleWsMessageViaEventHandler=function(t,e){var n;if(t===u.MESSAGE&&(n=e.reply_to)){if(!this._pendingMessages[n])return;delete this._pendingMessages[n]}this.emit(t,e),t!==u.MESSAGE||l(e.subtype)||this.emit(m(e.subtype),e)},v.prototype.handleWsError=function(t){c("web socket error::%s",t),this.emit(y.WS_ERROR,t)},v.prototype.handleWsClose=function(t,e){this.connected=!1,this.emit(y.WS_CLOSE,t,e),this.autoReconnect?this._connecting||this.reconnect():(c("websocket closed with auto-reconnect false on the RTM client"),this.disconnect("websocket closed with auto-reconnect false on the RTM client"))},v.prototype.handleWsPing=function(){this.ws.pong&&this.ws.pong()},v.prototype._handleHello=function(){this.connected=!0,this.emit(y.RTM_CONNECTION_OPENED)},v.prototype.sendMessage=function(t,e){this.send(t,e)},v.prototype.send=function(t,e){var n,t=o(t);this.connected&&!this._reconnecting?(t.id=t.clientMessageId||this.nextMessageId(),n=JSON.stringify(t),this._pendingMessages[t.id]=t,this.ws.send(n,void 0,function(t){l(t),l(e)||e(t)})):(c(n="ws not connected or reconnecting, unable to send message"),l(e)||e(new Error(n)))},e.exports=v},{"../client":3,"../events/client":4,"../events/rtm":6,"../events/utils":7,"../transports/ws":11,"../web/apis":15,debug:21,inherits:23,lodash:24}],10:[function(t,e,n){function a(t,e,n,i){e?t(e,n&&n.headers||{},n&&n.statusCode||null,i):t(e,n.headers,n.statusCode,i)}var i=t("lodash").bind?t("lodash"):_,o=i.has,s=i.partial,r=t("browser-request");e.exports.requestTransport=function(t,e){var n,i=(i={url:(n=t).url,headers:n.headers},o(n.data,"file")?i.formData=n.data:i.json=n.data,i);t.data&&t.data.type&&"GET"===t.data.type?r.get(i,s(a,e)):r.post(i,s(a,e))}},{"browser-request":20,lodash:24}],11:[function(t,e,n){e.exports=function(t,e){return new WebSocket(t)}},{}],12:[function(t,e,n){e.exports=function(){}},{}],13:[function(t,e,n){var i=t("./BaseApi");function a(t){this.name="anonymouslogin",this.client=t,this.BaseApi=i}t("inherits")(a,i),a.prototype.login=function(t,e){return this.client.makeAPICall("/oAuth/token/jwtgrant/anonymous",{opts:t=t||{}},e)},e.exports=a},{"./BaseApi":12,inherits:23}],14:[function(t,e,n){var i=t("./BaseApi");function a(t){this.name="history",this.client=t,this.BaseApi=i}t("inherits")(a,i),a.prototype.history=function(t,e,n){var i={opts:t=t||{},type:"GET"},a="/botmessages/rtm";n&&n.webhookConfig&&n.webhookConfig.enable&&(a="/chathistory/"+n.webhookConfig.streamId+"/"+n.webhookConfig.channelType);var o=!1,n="?";return t.botInfo&&t.botInfo.taskBotId&&(!1===o?(a+=n+"botId="+t.botInfo.taskBotId,n="&",o=!0):a+=n+"botId="+t.botInfo.taskBotId,delete t.botInfo),t.offset&&(!1===o?(a+=n+"offset="+t.offset,n="&",o=!0):a+=n+"offset="+t.offset,delete t.offset),t.limit&&(!1===o?(a+=n+"limit="+t.limit,n="&",o=!0):a+=n+"limit="+t.limit,delete t.limit),t.forward&&(!1===o?(a+=n+"forward="+t.forward,n="&",o=!0):a+=n+"forward="+t.forward,delete t.forward),t.msgId&&(!1===o?(a+=n+"msgId="+t.msgId,n="&",o=!0):a+=n+"msgId="+t.msgId,delete t.msgId),this.client.makeAPICall(a,i,e)},e.exports=a},{"./BaseApi":12,inherits:23}],15:[function(t,e,n){e.exports={RtmApi:t("./rtm.js"),LogInApi:t("./login.js"),AnonymousLogin:t("./anonymouslogin.js"),HistoryApi:t("./history.js")}},{"./anonymouslogin.js":13,"./history.js":14,"./login.js":16,"./rtm.js":17}],16:[function(t,e,n){var i=t("./BaseApi");function a(t){this.name="login",this.client=t,this.BaseApi=i}t("inherits")(a,i),a.prototype.login=function(t,e){return this.client.makeAPICall("/oAuth/token/jwtgrant",{opts:t=t||{}},e)},e.exports=a},{"./BaseApi":12,inherits:23}],17:[function(t,e,n){var i=t("./BaseApi");function a(t){this.name="rtm",this.client=t,this.BaseApi=i}t("inherits")(a,i),a.prototype.start=function(t,e){return this.client.makeAPICall("/rtm/start",{opts:t},e)},e.exports=a},{"./BaseApi":12,inherits:23}],18:[function(t,e,n){var i=t("lodash").bind?t("lodash"):_,a=i.bind,o=i.forEach,i=t("inherits"),s=t("../client"),r=t("./apis/index");function l(t,e){var n=e||{};s.call(this,t,n),this.claims=e.claims,this.retryConfig=n.retryConfig||{retries:5,factor:3.9},this.user={}}i(l,s),l.prototype._createFacets=function(){var e;l.super_.prototype._createFacets.call(this),a(this.makeAPICall,this),o(r,function(t){this[(e=new t(this)).name]=e},this)},e.exports=l},{"../client":3,"./apis/index":15,inherits:23,lodash:24}],19:[function(t,U,e){!function(R,F){!function(){var t,g={};function y(){}function a(t){return t}function e(t){return!!t}function n(t){return!t}var i="object"==typeof self&&self.self===self&&self||"object"==typeof F&&F.global===F&&F||this;function u(t){return function(){if(null===t)throw new Error("Callback was already called.");t.apply(this,arguments),t=null}}function v(t){return function(){null!==t&&(t.apply(this,arguments),t=null)}}null!=i&&(t=i.async),g.noConflict=function(){return i.async=t,g};var o=Object.prototype.toString,D=Array.isArray||function(t){return"[object Array]"===o.call(t)};function s(t){return D(t)||"number"==typeof t.length&&0<=t.length&&t.length%1==0}function b(t,e){for(var n=-1,i=t.length;++n<i;)e(t[n],n,t)}function r(t,e){for(var n=-1,i=t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}function l(t){return r(Array(t),function(t,e){return e})}function A(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var I=Object.keys||function(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n};function d(t){var e,n,i=-1;return s(t)?(e=t.length,function(){return++i<e?i:null}):(n=I(t),e=n.length,function(){return++i<e?n[i]:null})}function M(i,a){return a=null==a?i.length-1:+a,function(){for(var t=Math.max(arguments.length-a,0),e=Array(t),n=0;n<t;n++)e[n]=arguments[n+a];switch(a){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e)}}}function c(i){return function(t,e,n){return i(t,n)}}var f="function"==typeof setImmediate&&setImmediate,p=f?function(t){f(t)}:function(t){setTimeout(t,0)};function h(c){return function(n,i,a){a=v(a||y);var o=d(n=n||[]);if(c<=0)return a(null);var s=!1,r=0,l=!1;!function e(){if(s&&r<=0)return a(null);for(;r<c&&!l;){var t=o();if(null===t)return s=!0,void(r<=0&&a(null));r+=1,i(n[t],t,u(function(t){--r,t?(a(t),l=!0):e()}))}}()}}function m(i){return function(t,e,n){return i(g.eachOf,t,e,n)}}function w(a){return function(t,e,n,i){return a(h(e),t,n,i)}}function C(i){return function(t,e,n){return i(g.eachOfSeries,t,e,n)}}function _(t,e,a,n){n=v(n||y);var o=s(e=e||[])?[]:{};t(e,function(t,n,i){a(t,function(t,e){o[n]=e,i(t)})},function(t){n(t,o)})}function T(t,e,a,n){var o=[];t(e,function(e,n,i){a(e,function(t){t&&o.push({index:n,value:e}),i()})},function(){n(r(o.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})}function k(t,e,n,i){T(t,e,function(t,e){n(t,function(t){e(!t)})},i)}function x(s,r,l){return function(t,e,i,a){function n(){a&&a(l(!1,void 0))}function o(e,t,n){if(!a)return n();i(e,function(t){a&&r(t)&&(a(l(!0,e)),a=i=!1),n()})}3<arguments.length?s(t,e,o,n):(a=i,i=e,s(t,o,n))}}function N(t,e){return e}function S(t,e,n){n=n||y;var a=s(e)?[]:{};t(e,function(t,n,i){t(M(function(t,e){e.length<=1&&(e=e[0]),a[n]=e,i(t)}))},function(t){n(t,a)})}function E(t,e,i,n){var a=[];t(e,function(t,e,n){i(t,function(t,e){a=a.concat(e||[]),n(t)})},function(t){n(t,a)})}function j(n,t,e){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");function i(e,t,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");if(e.started=!0,0===(t=!D(t)?[t]:t).length&&e.idle())return g.setImmediate(function(){e.drain()});b(t,function(t){t={data:t,callback:i||y};n?e.tasks.unshift(t):e.tasks.push(t),e.tasks.length===e.concurrency&&e.saturated()}),g.setImmediate(e.process)}var a=0,o=[],s={tasks:[],concurrency:t,payload:e,saturated:y,empty:y,drain:y,started:!1,paused:!1,push:function(t,e){i(s,t,!1,e)},kill:function(){s.drain=y,s.tasks=[]},unshift:function(t,e){i(s,t,!0,e)},process:function(){for(;!s.paused&&a<s.concurrency&&s.tasks.length;){var t=s.payload?s.tasks.splice(0,s.payload):s.tasks.splice(0,s.tasks.length),e=r(t,function(t){return t.data});0===s.tasks.length&&s.empty(),a+=1,o.push(t[0]);t=u(function(e,n){return function(){--a;var i=!1,t=arguments;b(n,function(n){b(o,function(t,e){t!==n||i||(o.splice(e,1),i=!0)}),n.callback.apply(n,t)}),e.tasks.length+a===0&&e.drain(),e.process()}}(s,t));n(e,t)}},length:function(){return s.tasks.length},running:function(){return a},workersList:function(){return o},idle:function(){return s.tasks.length+a===0},pause:function(){s.paused=!0},resume:function(){if(!1!==s.paused){s.paused=!1;for(var t=Math.min(s.concurrency,s.tasks.length),e=1;e<=t;e++)g.setImmediate(s.process)}}};return s}function O(n){return M(function(t,e){t.apply(null,e.concat([M(function(t,e){"object"==typeof console&&(t?console.error&&console.error(t):console[n]&&b(e,function(t){console[n](t)}))})]))})}function L(i){return function(t,e,n){i(l(t),e,n)}}function z(o){return M(function(e,t){var n=M(function(i){var a=this,t=i.pop();return o(e,function(t,e,n){t.apply(a,i.concat([n]))},t)});return t.length?n.apply(this,t):n})}function P(i){return M(function(t){var e=t.pop();t.push(function(){var t=arguments;n?g.setImmediate(function(){e.apply(null,t)}):e.apply(null,t)});var n=!0;i.apply(this,t),n=!1})}"object"==typeof R&&"function"==typeof R.nextTick?g.nextTick=R.nextTick:g.nextTick=p,g.setImmediate=f?p:g.nextTick,g.forEach=g.each=function(t,e,n){return g.eachOf(t,c(e),n)},g.forEachSeries=g.eachSeries=function(t,e,n){return g.eachOfSeries(t,c(e),n)},g.forEachLimit=g.eachLimit=function(t,e,n,i){return h(e)(t,c(n),i)},g.forEachOf=g.eachOf=function(t,e,n){n=v(n||y);for(var i,a=d(t=t||[]),o=0;null!=(i=a());)o+=1,e(t[i],i,u(s));function s(t){o--,t?n(t):null===i&&o<=0&&n(null)}0===o&&n(null)},g.forEachOfSeries=g.eachOfSeries=function(t,i,a){a=v(a||y);var o=d(t=t||[]),s=o();!function e(){var n=!0;if(null===s)return a(null);i(t[s],s,u(function(t){if(t)a(t);else{if(null===(s=o()))return a(null);n?g.setImmediate(e):e()}})),n=!1}()},g.forEachOfLimit=g.eachOfLimit=function(t,e,n,i){h(e)(t,n,i)},g.map=m(_),g.mapSeries=C(_),g.mapLimit=w(_),g.inject=g.foldl=g.reduce=function(t,i,a,e){g.eachOfSeries(t,function(t,e,n){a(i,t,function(t,e){i=e,n(t)})},function(t){e(t,i)})},g.foldr=g.reduceRight=function(t,e,n,i){t=r(t,a).reverse();g.reduce(t,e,n,i)},g.transform=function(t,i,a,e){3===arguments.length&&(e=a,a=i,i=D(t)?[]:{}),g.eachOf(t,function(t,e,n){a(i,t,e,n)},function(t){e(t,i)})},g.select=g.filter=m(T),g.selectLimit=g.filterLimit=w(T),g.selectSeries=g.filterSeries=C(T),g.reject=m(k),g.rejectLimit=w(k),g.rejectSeries=C(k),g.any=g.some=x(g.eachOf,e,a),g.someLimit=x(g.eachOfLimit,e,a),g.all=g.every=x(g.eachOf,n,n),g.everyLimit=x(g.eachOfLimit,n,n),g.detect=x(g.eachOf,a,N),g.detectSeries=x(g.eachOfSeries,a,N),g.detectLimit=x(g.eachOfLimit,a,N),g.sortBy=function(t,e,n){function i(t,e){t=t.criteria,e=e.criteria;return t<e?-1:e<t?1:0}g.map(t,function(n,i){e(n,function(t,e){t?i(t):i(null,{value:n,criteria:e})})},function(t,e){return t?n(t):void n(null,r(e.sort(i),function(t){return t.value}))})},g.auto=function(r,l,c){"function"==typeof arguments[1]&&(c=l,l=null),c=v(c||y);var t=I(r),e=t.length;if(!e)return c(null);l=l||e;var u={},d=0,f=!1,n=[];function p(t){n.unshift(t)}function h(t){t=A(n,t);0<=t&&n.splice(t,1)}function m(){e--,b(n.slice(0),function(t){t()})}p(function(){e||c(null,u)}),b(t,function(o){if(!f){for(var t,e=D(r[o])?r[o]:[r[o]],n=M(function(t,e){var n,i,a;d--,e.length<=1&&(e=e[0]),t?(n={},a=function(t,e){n[e]=t},b(I(i=u),function(t){a(i[t],t)}),n[o]=e,f=!0,c(t,n)):(u[o]=e,g.setImmediate(m))}),s=e.slice(0,e.length-1),i=s.length;i--;){if(!(t=r[s[i]]))throw new Error("Has nonexistent dependency in "+s.join(", "));if(D(t)&&0<=A(t,o))throw new Error("Has cyclic dependencies")}a()?(d++,e[e.length-1](n,u)):p(function t(){a()&&(d++,h(t),e[e.length-1](n,u))})}function a(){return d<l&&(i=function(t,e){return t&&u.hasOwnProperty(e)},a=!0,b(s,function(t,e,n){a=i(a,t,e,n)}),a)&&!u.hasOwnProperty(o);var i,a}})},g.retry=function(t,e,n){var i=[],a={times:5,interval:0};var o=arguments.length;if(o<1||3<o)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");function s(n,e){for(;a.times;){var t=!--a.times;i.push(function(t,i){return function(n){t(function(t,e){n(!t||i,{err:t,result:e})},e)}}(a.task,t)),!t&&0<a.interval&&i.push(function(e){return function(t){setTimeout(function(){t(null)},e)}}(a.interval))}g.series(i,function(t,e){e=e[e.length-1],(n||a.callback)(e.err,e.result)})}return o<=2&&"function"==typeof t&&(n=e,e=t),"function"!=typeof t&&function(t,e){if("number"==typeof e)t.times=parseInt(e,10)||5;else{if("object"!=typeof e)throw new Error("Unsupported argument type for 'times': "+typeof e);t.times=parseInt(e.times,10)||5,t.interval=parseInt(e.interval,10)||0}}(a,t),a.callback=n,a.task=e,a.callback?s():s},g.waterfall=function(t,a){if(a=v(a||y),!D(t)){var e=new Error("First argument to waterfall must be an array of functions");return a(e)}if(!t.length)return a();!function n(i){return M(function(t,e){t?a.apply(null,[t].concat(e)):((t=i.next())?e.push(n(t)):e.push(a),P(i).apply(null,e))})}(g.iterator(t))()},g.parallel=function(t,e){S(g.eachOf,t,e)},g.parallelLimit=function(t,e,n){S(h(e),t,n)},g.series=function(t,e){S(g.eachOfSeries,t,e)},g.iterator=function(i){return function t(e){function n(){return i.length&&i[e].apply(null,arguments),n.next()}return n.next=function(){return e<i.length-1?t(e+1):null},n}(0)},g.apply=M(function(e,n){return M(function(t){return e.apply(null,n.concat(t))})}),g.concat=m(E),g.concatSeries=C(E),g.whilst=function(n,i,a){var o;a=a||y,n()?(o=M(function(t,e){t?a(t):n.apply(this,e)?i(o):a.apply(null,[null].concat(e))}),i(o)):a(null)},g.doWhilst=function(t,e,n){var i=0;return g.whilst(function(){return++i<=1||e.apply(this,arguments)},t,n)},g.until=function(t,e,n){return g.whilst(function(){return!t.apply(this,arguments)},e,n)},g.doUntil=function(t,e,n){return g.doWhilst(t,function(){return!e.apply(this,arguments)},n)},g.during=function(n,i,a){a=a||y;var o=M(function(t,e){t?a(t):(e.push(s),n.apply(this,e))}),s=function(t,e){t?a(t):e?i(o):a(null)};n(s)},g.doDuring=function(t,e,n){var i=0;g.during(function(t){i++<1?t(null,!0):e.apply(this,arguments)},t,n)},g.queue=function(n,t){return j(function(t,e){n(t[0],e)},t,1)},g.priorityQueue=function(t,e){function a(t,e){return t.priority-e.priority}function i(e,t,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");if(e.started=!0,0===(t=!D(t)?[t]:t).length)return g.setImmediate(function(){e.drain()});b(t,function(t){t={data:t,priority:n,callback:"function"==typeof i?i:y};e.tasks.splice(function(t,e,n){for(var i=-1,a=t.length-1;i<a;){var o=i+(a-i+1>>>1);0<=n(e,t[o])?i=o:a=o-1}return i}(e.tasks,t,a)+1,0,t),e.tasks.length===e.concurrency&&e.saturated(),g.setImmediate(e.process)})}var o=g.queue(t,e);return o.push=function(t,e,n){i(o,t,e,n)},delete o.unshift,o},g.cargo=function(t,e){return j(t,1,e)},g.log=O("log"),g.dir=O("dir"),g.memoize=function(n,i){var o={},s={},r=Object.prototype.hasOwnProperty;i=i||a;var t=M(function(t){var e=t.pop(),a=i.apply(null,t);r.call(o,a)?g.setImmediate(function(){e.apply(null,o[a])}):r.call(s,a)?s[a].push(e):(s[a]=[e],n.apply(null,t.concat([M(function(t){o[a]=t;var e=s[a];delete s[a];for(var n=0,i=e.length;n<i;n++)e[n].apply(null,t)})])))});return t.memo=o,t.unmemoized=n,t},g.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},g.times=L(g.map),g.timesSeries=L(g.mapSeries),g.timesLimit=function(t,e,n,i){return g.mapLimit(l(t),e,n,i)},g.seq=function(){var e=arguments;return M(function(t){var i=this,n=t[t.length-1];"function"==typeof n?t.pop():n=y,g.reduce(e,t,function(t,e,n){e.apply(i,t.concat([M(function(t,e){n(t,e)})]))},function(t,e){n.apply(i,[t].concat(e))})})},g.compose=function(){return g.seq.apply(null,Array.prototype.reverse.call(arguments))},g.applyEach=z(g.eachOf),g.applyEachSeries=z(g.eachOfSeries),g.forever=function(t,e){var n=u(e||y),i=P(t);!function t(e){if(e)return n(e);i(t)}()},g.ensureAsync=P,g.constant=M(function(t){var e=[null].concat(t);return function(t){return t.apply(this,e)}}),g.wrapSync=g.asyncify=function(a){return M(function(t){var e,n,i=t.pop();try{e=a.apply(this,t)}catch(t){return i(t)}("function"==(t=typeof(n=e))||"object"==t&&n)&&"function"==typeof e.then?e.then(function(t){i(null,t)}).catch(function(t){i(t.message?t:new Error(t))}):i(null,e)})},"object"==typeof U&&U.exports?U.exports=g:"function"==typeof define&&define.amd?define([],function(){return g}):i.async=g}()}.call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:31}],20:[function(t,e,n){var i,a;i=this,a=function(){var c=XMLHttpRequest;if(!c)throw new Error("missing XMLHttpRequest");u.log={trace:l,debug:l,info:l,warn:l,error:l};function u(t,e){if("function"!=typeof e)throw new Error("Bad callback given: "+e);if(!t)throw new Error("No options given");var n=t.onResponse;if((t="string"==typeof t?{uri:t}:JSON.parse(JSON.stringify(t))).onResponse=n,t.verbose&&(u.log=function(){var t,e,n={},i=["trace","debug","info","warn","error"];for(e=0;e<i.length;e++)n[t=i[e]]=l,"undefined"!=typeof console&&console&&console[t]&&(n[t]=function(n,i){return function(t,e){"object"==typeof e&&(t+=" "+JSON.stringify(e));return n[i].call(n,t)}}(console,t));return n}()),t.url&&(t.uri=t.url,delete t.url),!t.uri&&""!==t.uri)throw new Error("options.uri is a required argument");if("string"!=typeof t.uri)throw new Error("options.uri must be a string");for(var i=["proxy","_redirectsFollowed","maxRedirects","followRedirect"],a=0;a<i.length;a++)if(t[i[a]])throw new Error("options."+i[a]+" is not supported");if(t.callback=e,t.method=t.method||"GET",t.headers=t.headers||{},t.body=t.body||null,t.timeout=t.timeout||u.DEFAULT_TIMEOUT,t.headers.host)throw new Error("Options.headers.host is not supported");t.json&&(t.headers.accept=t.headers.accept||"application/json","GET"!==t.method&&(t.headers["content-type"]="application/json"),"boolean"!=typeof t.json?t.body=JSON.stringify(t.json):"string"!=typeof t.body&&(t.body=JSON.stringify(t.body)));function o(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n.join("&")}t.qs&&(n="string"==typeof t.qs?t.qs:o(t.qs),-1!==t.uri.indexOf("?")?t.uri=t.uri+"&"+n:t.uri=t.uri+"?"+n);if(t.form){if("string"==typeof t.form)throw"form name unsupported";if("POST"===t.method){var s=(t.encoding||"application/x-www-form-urlencoded").toLowerCase();switch(t.headers["content-type"]=s){case"application/x-www-form-urlencoded":t.body=o(t.form).replace(/%20/g,"+");break;case"multipart/form-data":var r=function(t){var e={};e.boundry="-------------------------------"+Math.floor(1e9*Math.random());var n,i=[];for(n in t)t.hasOwnProperty(n)&&i.push("--"+e.boundry+'\nContent-Disposition: form-data; name="'+n+'"\n\n'+t[n]+"\n");return i.push("--"+e.boundry+"--"),e.body=i.join(""),e.length=e.body.length,e.type="multipart/form-data; boundary="+e.boundry,e}(t.form);t.body=r.body,t.headers["content-type"]=r.type;break;default:throw new Error("unsupported encoding:"+s)}}}return t.onResponse=t.onResponse||l,!0===t.onResponse&&(t.onResponse=e,t.callback=l),!t.headers.authorization&&t.auth&&(t.headers.authorization="Basic "+function(t){var e,n,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,r=0,l="",c=[];if(!t)return t;for(;e=t.charCodeAt(s++),n=t.charCodeAt(s++),i=t.charCodeAt(s++),e=(a=e<<16|n<<8|i)>>18&63,n=a>>12&63,i=a>>6&63,a=63&a,c[r++]=o.charAt(e)+o.charAt(n)+o.charAt(i)+o.charAt(a),s<t.length;);switch(l=c.join(""),t.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l}(t.auth.username+":"+t.auth.password)),function(e){var n=new c,i=!1,a=function(t){var e=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/;try{n=location.href}catch(t){(n=document.createElement("a")).href="",n=n.href}var n=e.exec(n.toLowerCase())||[],t=e.exec(t.toLowerCase());return!(!t||t[1]==n[1]&&t[2]==n[2]&&(t[3]||("http:"===t[1]?80:443))==(n[3]||("http:"===n[1]?80:443)))}(e.uri),t="withCredentials"in n;if(d+=1,n.seq_id=d,n.id=d+": "+e.method+" "+e.uri,n._id=n.id,a&&!t){t=new Error("Browser does not support cross-origin request: "+e.uri);return t.cors="unsupported",e.callback(t,n)}n.timeoutTimer=setTimeout(function(){i=!0;var t=new Error("ETIMEDOUT");return t.code="ETIMEDOUT",t.duration=e.timeout,u.log.error("Timeout",{id:n._id,milliseconds:e.timeout}),e.callback(t,n)},e.timeout);var o,s={response:!1,loading:!1,end:!1};for(o in n.onreadystatechange=function(t){if(i)return u.log.debug("Ignoring timed out state change",{state:n.readyState,id:n.id});u.log.debug("State change",{state:n.readyState,id:n.id,timed_out:i}),n.readyState===c.OPENED?u.log.debug("Request started",{id:n.id}):n.readyState===c.HEADERS_RECEIVED?r():n.readyState===c.LOADING?(r(),l()):n.readyState===c.DONE&&(r(),l(),function(){if(!s.end){if(s.end=!0,u.log.debug("Request done",{id:n.id}),n.body=n.responseText,e.json)try{n.body=JSON.parse(n.responseText)}catch(t){return e.callback(t,n)}e.callback(null,n,n.body)}}())},n.open(e.method,e.uri,!0),e.headers)n.setRequestHeader(o,e.headers[o]);a&&(n.withCredentials=!!e.withCredentials);return n.send(e.body),n;function r(){if(!s.response){if(s.response=!0,u.log.debug("Got response",{id:n.id,status:n.status}),clearTimeout(n.timeoutTimer),n.statusCode=n.status,a&&0==n.statusCode){var t=new Error("CORS request rejected: "+e.uri);return t.cors="rejected",s.loading=!0,s.end=!0,e.callback(t,n)}e.onResponse(null,n)}}function l(){s.loading||(s.loading=!0,u.log.debug("Response body loading",{id:n.id}))}}(t)}var d=0;u.withCredentials=!1,u.DEFAULT_TIMEOUT=12e4,u.defaults=function(a,t){function e(i){return function(t,e){for(var n in t="string"==typeof t?{uri:t}:JSON.parse(JSON.stringify(t)),a)void 0===t[n]&&(t[n]=a[n]);return i(t,e)}}var n=e(u);return n.get=e(u.get),n.post=e(u.post),n.put=e(u.put),n.head=e(u.head),n};function l(){}return["get","put","post","head"].forEach(function(t){var n=t.toUpperCase();u[t.toLowerCase()]=function(t){"string"==typeof t?t={method:n,uri:t}:(t=JSON.parse(JSON.stringify(t))).method=n;var e=[t].concat(Array.prototype.slice.apply(arguments,[1]));return u.apply(this,e)}}),u.couch=function(t,a){return(t="string"==typeof t?{uri:t}:t).json=!0,t.body&&(t.json=t.body),delete t.body,a=a||l,u(t,function(t,e,n){if(t)return a(t,e,n);if((e.statusCode<200||299<e.statusCode)&&n.error){for(var i in t=new Error("CouchDB error: "+(n.error.reason||n.error.error)),n)t[i]=n[i];return a(t,e,n)}return a(t,e,n)})},u},"function"==typeof define&&define.amd||"object"==typeof n?e.exports=a():i.returnExports=a()},{}],21:[function(t,e,a){function n(){var t;try{t=a.storage.debug}catch(t){}return t}(a=e.exports=t("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(){var t=arguments,e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+a.humanize(this.diff),!e)return t;e="color: "+this.color;t=[t[0],e,"color: inherit"].concat(Array.prototype.slice.call(t,1));var n=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(n++,"%c"===t&&(i=n))}),t.splice(i,0,e),t},a.save=function(t){try{null==t?a.storage.removeItem("debug"):a.storage.debug=t}catch(t){}},a.load=n,a.useColors=function(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)},a.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(t){return JSON.stringify(t)},a.enable(n())},{"./debug":22}],22:[function(t,e,s){(s=e.exports=function(t){function e(){}function n(){var i=n,t=+new Date,e=t-(r||t);i.diff=e,i.prev=r,i.curr=t,r=t,null==i.useColors&&(i.useColors=s.useColors()),null==i.color&&i.useColors&&(i.color=s.colors[l++%s.colors.length]);var a=Array.prototype.slice.call(arguments);a[0]=s.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var o=0;a[0]=a[0].replace(/%([a-z%])/g,function(t,e){if("%%"===t)return t;o++;var n=s.formatters[e];return"function"==typeof n&&(e=a[o],t=n.call(i,e),a.splice(o,1),o--),t}),"function"==typeof s.formatArgs&&(a=s.formatArgs.apply(i,a)),(n.log||s.log||console.log.bind(console)).apply(i,a)}e.enabled=!1,n.enabled=!0;var i=s.enabled(t)?n:e;return i.namespace=t,i}).coerce=function(t){return t instanceof Error?t.stack||t.message:t},s.disable=function(){s.enable("")},s.enable=function(t){s.save(t);for(var e=(t||"").split(/[\s,]+/),n=e.length,i=0;i<n;i++)e[i]&&("-"===(t=e[i].replace(/\*/g,".*?"))[0]?s.skips.push(new RegExp("^"+t.substr(1)+"$")):s.names.push(new RegExp("^"+t+"$")))},s.enabled=function(t){var e,n;for(e=0,n=s.skips.length;e<n;e++)if(s.skips[e].test(t))return!1;for(e=0,n=s.names.length;e<n;e++)if(s.names[e].test(t))return!0;return!1},s.humanize=t("ms"),s.names=[],s.skips=[],s.formatters={};var r,l=0},{ms:25}],23:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;function n(){}n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],24:[function(t,p,h){!function(f){!function(){var ua,da="3.10.1",fa=1,pa=2,ha=4,ma=8,ga=16,ya=32,va=64,Da=128,ba=256,Aa=30,Ia="...",Ma=150,wa=16,Ca=200,_a=1,Ta=2,ka="Expected a function",xa="__lodash_placeholder__",Na="[object Arguments]",Sa="[object Array]",Ea="[object Boolean]",ja="[object Date]",Oa="[object Error]",La="[object Function]",t="[object Map]",za="[object Number]",Pa="[object Object]",Ra="[object RegExp]",e="[object Set]",Fa="[object String]",n="[object WeakMap]",Ua="[object ArrayBuffer]",Ba="[object Float32Array]",Ha="[object Float64Array]",Ya="[object Int8Array]",Qa="[object Int16Array]",Wa="[object Int32Array]",Va="[object Uint8Array]",Ga="[object Uint8ClampedArray]",Za="[object Uint16Array]",Ja="[object Uint32Array]",qa=/\b__p \+= '';/g,Ka=/\b(__p \+=) '' \+/g,Xa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$a=/&(?:amp|lt|gt|quot|#39|#96);/g,to=/[&<>"'`]/g,eo=RegExp($a.source),no=RegExp(to.source),io=/<%-([\s\S]+?)%>/g,ao=/<%([\s\S]+?)%>/g,oo=/<%=([\s\S]+?)%>/g,so=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,ro=/^\w*$/,lo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,co=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,uo=RegExp(co.source),fo=/[\u0300-\u036f\ufe20-\ufe23]/g,po=/\\(\\)?/g,ho=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mo=/\w*$/,go=/^0[xX]/,yo=/^\[object .+?Constructor\]$/,vo=/^\d+$/,Do=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,bo=/($^)/,Ao=/['\n\r\u2028\u2029\\]/g,Io=(u="[A-Z\\xc0-\\xd6\\xd8-\\xde]",c="[a-z\\xdf-\\xf6\\xf8-\\xff]+",RegExp(u+"+(?="+u+c+")|"+u+"?"+c+"|"+u+"+|[0-9]+","g")),Mo=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],wo=-1,Co={};Co[Ba]=Co[Ha]=Co[Ya]=Co[Qa]=Co[Wa]=Co[Va]=Co[Ga]=Co[Za]=Co[Ja]=!0,Co[Na]=Co[Sa]=Co[Ua]=Co[Ea]=Co[ja]=Co[Oa]=Co[La]=Co[t]=Co[za]=Co[Pa]=Co[Ra]=Co[e]=Co[Fa]=Co[n]=!1;var _o={};_o[Na]=_o[Sa]=_o[Ua]=_o[Ea]=_o[ja]=_o[Ba]=_o[Ha]=_o[Ya]=_o[Qa]=_o[Wa]=_o[za]=_o[Pa]=_o[Ra]=_o[Fa]=_o[Va]=_o[Ga]=_o[Za]=_o[Ja]=!0,_o[Oa]=_o[La]=_o[t]=_o[e]=_o[n]=!1;var i={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},o={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},s={function:!0,object:!0},r={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},l={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},c=s[typeof h]&&h&&!h.nodeType&&h,u=s[typeof p]&&p&&!p.nodeType&&p,t=c&&u&&"object"==typeof f&&f&&f.Object&&f,e=s[typeof self]&&self&&self.Object&&self,n=s[typeof window]&&window&&window.Object&&window,s=u&&u.exports===c&&c,To=t||n!==(this&&this.window)&&n||e||this;function ko(t,e){if(t!==e){var n=null===t,i=t===ua,a=t==t,o=null===e,s=e===ua,r=e==e;if(e<t&&!o||!a||n&&!s&&r||i&&r)return 1;if(t<e&&!n||!r||o&&!i&&a||s&&a)return-1}return 0}function xo(t,e,n){for(var i=t.length,a=n?i:-1;n?a--:++a<i;)if(e(t[a],a,t))return a;return-1}function No(t,e,n){if(e!=e)return Uo(t,n);for(var i=n-1,a=t.length;++i<a;)if(t[i]===e)return i;return-1}function So(t){return"function"==typeof t||!1}function Eo(t){return null==t?"":t+""}function jo(t,e){for(var n=-1,i=t.length;++n<i&&-1<e.indexOf(t.charAt(n)););return n}function Oo(t,e){for(var n=t.length;n--&&-1<e.indexOf(t.charAt(n)););return n}function Lo(t,e){return ko(t.criteria,e.criteria)||t.index-e.index}function zo(t){return i[t]}function Po(t){return a[t]}function Ro(t,e,n){return e?t=r[t]:n&&(t=l[t]),"\\"+t}function Fo(t){return"\\"+l[t]}function Uo(t,e,n){for(var i=t.length,a=e+(n?0:-1);n?a--:++a<i;){var o=t[a];if(o!=o)return a}return-1}function Bo(t){return!!t&&"object"==typeof t}function d(t){return t<=160&&9<=t&&t<=13||32==t||160==t||5760==t||6158==t||8192<=t&&(t<=8202||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function Ho(t,e){for(var n=-1,i=t.length,a=-1,o=[];++n<i;)t[n]===e&&(t[n]=xa,o[++a]=n);return o}function Yo(t){for(var e=-1,n=t.length;++e<n&&d(t.charCodeAt(e)););return e}function Qo(t){for(var e=t.length;e--&&d(t.charCodeAt(e)););return e}function Wo(t){return o[t]}var Vo=function t(e){var C=(e=e?Vo.defaults(To.Object(),e,Vo.pick(To,Mo)):To).Array,n=e.Date,i=e.Error,d=e.Function,a=e.Math,o=e.Number,f=e.Object,p=e.RegExp,s=e.String,v=e.TypeError,r=C.prototype,l=f.prototype,c=s.prototype,u=d.prototype.toString,y=l.hasOwnProperty,h=0,m=l.toString,g=To._,D=p("^"+u.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=e.ArrayBuffer,A=e.clearTimeout,I=e.parseFloat,M=a.pow,w=l.propertyIsEnumerable,_=Fe(e,"Set"),T=e.setTimeout,k=r.splice,x=e.Uint8Array,N=Fe(e,"WeakMap"),S=a.ceil,E=Fe(f,"create"),j=a.floor,O=Fe(C,"isArray"),L=e.isFinite,z=Fe(f,"keys"),P=a.max,R=a.min,F=Fe(n,"now"),U=e.parseInt,B=a.random,H=o.NEGATIVE_INFINITY,Y=o.POSITIVE_INFINITY,Q=4294967295,W=Q-1,V=Q>>>1,G=9007199254740991,Z=N&&new N,J={};function q(t){if(Bo(t)&&!hi(t)&&!(t instanceof $)){if(t instanceof X)return t;if(y.call(t,"__chain__")&&y.call(t,"__wrapped__"))return an(t)}return new X(t)}function K(){}function X(t,e,n){this.__wrapped__=t,this.__actions__=n||[],this.__chain__=!!e}q.support={};function $(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function tt(){this.__data__={}}function et(t){var e=t?t.length:0;for(this.data={hash:E(null),set:new _};e--;)this.push(t[e])}function nt(t,e){return t=t.data,("string"==typeof e||vi(e)?t.set.has(e):t.hash[e])?0:-1}function it(t,e){var n=-1,i=t.length;for(e=e||C(i);++n<i;)e[n]=t[n];return e}function at(t,e){for(var n=-1,i=t.length;++n<i&&!1!==e(t[n],n,t););return t}function ot(t,e){for(var n=-1,i=t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function st(t,e){for(var n=-1,i=t.length,a=-1,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[++a]=s)}return o}function rt(t,e){for(var n=-1,i=t.length,a=C(i);++n<i;)a[n]=e(t[n],n,t);return a}function lt(t,e){for(var n=-1,i=e.length,a=t.length;++n<i;)t[a+n]=e[n];return t}function ct(t,e,n,i){var a=-1,o=t.length;for(i&&o&&(n=t[++a]);++a<o;)n=e(n,t[a],a,t);return n}function ut(t,e){for(var n=-1,i=t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}function dt(t,e,n,i){return t!==ua&&y.call(i,n)?t:e}function ft(t,e,n){for(var i=-1,a=Fi(e),o=a.length;++i<o;){var s=a[i],r=t[s],l=n(r,e[s],s,t,e);(l==l?l===r:r!=r)&&(r!==ua||s in t)||(t[s]=l)}return t}function pt(t,e){return null==e?t:mt(e,Fi(e),t)}function ht(t,e){for(var n=-1,i=null==t,a=!i&&Be(t),o=a?t.length:0,s=e.length,r=C(s);++n<s;){var l=e[n];r[n]=a?He(l,o)?t[l]:ua:i?ua:t[l]}return r}function mt(t,e,n){n=n||{};for(var i=-1,a=e.length;++i<a;){var o=e[i];n[o]=t[o]}return n}function gt(t,e,n){var i=typeof t;return"function"==i?e===ua?t:te(t,e,n):null==t?aa:"object"==i?Rt(t):e===ua?la(t):Ft(t,e)}function yt(n,i,a,t,e,o,s){var r;if((r=a?e?a(n,t,e):a(n):r)!==ua)return r;if(!vi(n))return n;var l=hi(n);if(l){if(r=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&y.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(n),!i)return it(n,r)}else{var c=m.call(n),t=c==La;if(c!=Pa&&c!=Na&&(!t||e))return _o[c]?function(t,e,n){var i=t.constructor;switch(e){case Ua:return ee(t);case Ea:case ja:return new i(+t);case Ba:case Ha:case Ya:case Qa:case Wa:case Va:case Ga:case Za:case Ja:var a=t.buffer;return new i(n?ee(a):a,t.byteOffset,t.length);case za:case Fa:return new i(t);case Ra:var o=new i(t.source,mo.exec(t));o.lastIndex=t.lastIndex}return o}(n,c,i):e?n:{};if(r=function(t){return new(t=!("function"==typeof(t=t.constructor)&&t instanceof t)?f:t)}(t?{}:n),!i)return pt(r,n)}s=s||[];for(var u=(o=o||[]).length;u--;)if(o[u]==n)return s[u];return o.push(n),s.push(r),(l?at:St)(n,function(t,e){r[e]=yt(t,i,a,e,n,o,s)}),r}q.templateSettings={escape:io,evaluate:ao,interpolate:oo,variable:"",imports:{_:q}};var vt=function(t){var e;return vi(t)&&(Dt.prototype=t,e=new Dt,Dt.prototype=ua),e||{}};function Dt(){}function bt(t,e,n){if("function"!=typeof t)throw new v(ka);return T(function(){t.apply(ua,n)},e)}function At(t,e){var n=t?t.length:0,i=[];if(!n)return i;var a=-1,o=ze(),s=o==No,r=s&&e.length>=Ca?le(e):null,l=e.length;r&&(o=nt,s=!1,e=r);t:for(;++a<n;){var c=t[a];if(s&&c==c){for(var u=l;u--;)if(e[u]===c)continue t;i.push(c)}else o(e,c,0)<0&&i.push(c)}return i}var It=se(St),Mt=se(Et,!0);function wt(t,i){var a=!0;return It(t,function(t,e,n){return a=!!i(t,e,n)}),a}function Ct(t,i){var a=[];return It(t,function(t,e,n){i(t,e,n)&&a.push(t)}),a}function _t(t,i,e,a){var o;return e(t,function(t,e,n){if(i(t,e,n))return o=a?e:t,!1}),o}function Tt(t,e,n,i){i=i||[];for(var a=-1,o=t.length;++a<o;){var s=t[a];Bo(s)&&Be(s)&&(n||hi(s)||pi(s))?e?Tt(s,e,n,i):lt(i,s):n||(i[i.length]=s)}return i}var kt=re(),xt=re(!0);function Nt(t,e){return kt(t,e,Ui)}function St(t,e){return kt(t,e,Fi)}function Et(t,e){return xt(t,e,Fi)}function jt(t,e){for(var n=-1,i=e.length,a=-1,o=[];++n<i;){var s=e[n];yi(t[s])&&(o[++a]=s)}return o}function Ot(t,e,n){if(null!=t){for(var i=0,a=((e=n!==ua&&n in en(t)?[n]:e).length);null!=t&&i<a;)t=t[e[i++]];return i&&i==a?t:ua}}function Lt(t,e,n,i,a,o){return t===e||(null==t||null==e||!vi(t)&&!Bo(e)?t!=t&&e!=e:function(t,e,n,i,a,o,s){var r=hi(t),l=hi(e),c=Sa,u=Sa;r||((c=m.call(t))==Na?c=Pa:c!=Pa&&(r=wi(t))),l||((u=m.call(e))==Na?u=Pa:u!=Pa&&(l=wi(e)));var d=c==Pa,l=u==Pa;if((u=c==u)&&!r&&!d)return function(t,e,n){switch(n){case Ea:case ja:return+t==+e;case Oa:return t.name==e.name&&t.message==e.message;case za:return t!=+t?e!=+e:t==+e;case Ra:case Fa:return t==e+""}return!1}(t,e,c);if(!a&&(d=d&&y.call(t,"__wrapped__"),l=l&&y.call(e,"__wrapped__"),d||l))return n(d?t.value():t,l?e.value():e,i,a,o,s);if(!u)return!1;s=s||[];for(var f=(o=o||[]).length;f--;)if(o[f]==t)return s[f]==e;return o.push(t),s.push(e),a=(r?Se:Ee)(t,e,n,i,a,o,s),o.pop(),s.pop(),a}(t,e,Lt,n,i,a,o))}function zt(t,e,n){var i=e.length,a=i,o=!n;if(null==t)return!a;for(t=en(t);i--;){var s=e[i];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){var r=(s=e[i])[0],l=t[r],c=s[1];if(o&&s[2]){if(l===ua&&!(r in t))return!1}else if(!((r=n?n(l,c,r):ua)===ua?Lt(c,l,n,!0):r))return!1}return!0}function Pt(t,i){var a=-1,o=Be(t)?C(t.length):[];return It(t,function(t,e,n){o[++a]=i(t,e,n)}),o}function Rt(t){var e=Re(t);if(1==e.length&&e[0][2]){var n=e[0][0],i=e[0][1];return function(t){return null!=t&&t[n]===i&&(i!==ua||n in en(t))}}return function(t){return zt(t,e)}}function Ft(n,i){var a=hi(n),o=Qe(n)&&Ge(i),s=n+"";return n=nn(n),function(t){if(null==t)return!1;var e=s;if(t=en(t),(a||!o)&&!(e in t)){if(null==(t=1==n.length?t:Ot(t,Qt(n,0,-1))))return!1;e=pn(n),t=en(t)}return t[e]===i?i!==ua||e in t:Lt(i,t[e],ua,!0)}}function Ut(e){return function(t){return null==t?ua:t[e]}}function Bt(t,e){for(var n=t?e.length:0;n--;){var i,a=e[n];a!=i&&He(a)&&k.call(t,i=a,1)}return t}function Ht(t,e){return t+j(B()*(e-t+1))}var Yt=Z?function(t,e){return Z.set(t,e),t}:aa;function Qt(t,e,n){var i=-1,a=t.length;(n=n===ua||a<n?a:+n||0)<0&&(n+=a),a=n<(e=(e=null!=e&&+e||0)<0?a<-e?0:a+e:e)?0:n-e>>>0,e>>>=0;for(var o=C(a);++i<a;)o[i]=t[i+e];return o}function Wt(t,i){var a;return It(t,function(t,e,n){return!(a=i(t,e,n))}),!!a}function Vt(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function Gt(t,n,i){var e=je(),a=-1;return n=rt(n,function(t){return e(t)}),Vt(Pt(t,function(e){return{criteria:rt(n,function(t){return t(e)}),index:++a,value:e}}),function(t,e){return function(t,e,n){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,r=n.length;++i<s;){var l=ko(a[i],o[i]);if(l){if(r<=i)return l;var c=n[i];return l*("asc"===c||!0===c?1:-1)}}return t.index-e.index}(t,e,i)})}function Zt(t,e){var n=-1,i=ze(),a=t.length,o=i==No,s=o&&Ca<=a,r=s?le():null,l=[];r?(i=nt,o=!1):(s=!1,r=e?[]:l);t:for(;++n<a;){var c=t[n],u=e?e(c,n,t):c;if(o&&c==c){for(var d=r.length;d--;)if(r[d]===u)continue t;e&&r.push(u),l.push(c)}else i(r,u,0)<0&&((e||s)&&r.push(u),l.push(c))}return l}function Jt(t,e){for(var n=-1,i=e.length,a=C(i);++n<i;)a[n]=t[e[n]];return a}function qt(t,e,n,i){for(var a=t.length,o=i?a:-1;(i?o--:++o<a)&&e(t[o],o,t););return n?Qt(t,i?0:o,i?o+1:a):Qt(t,i?o+1:0,i?a:o)}function Kt(t,e){(o=t)instanceof $&&(o=o.value());for(var n=-1,i=e.length;++n<i;)var a=e[n],o=a.func.apply(a.thisArg,lt([o],a.args));return o}function Xt(t,e,n){var i=0,a=t?t.length:i;if("number"==typeof e&&e==e&&a<=V){for(;i<a;){var o=i+a>>>1,s=t[o];(n?s<=e:s<e)&&null!==s?i=1+o:a=o}return a}return $t(t,e,aa,n)}function $t(t,e,n,i){e=n(e);for(var a=0,o=t?t.length:0,s=e!=e,r=null===e,l=e===ua;a<o;){var c=j((a+o)/2),u=n(t[c]),d=u!==ua,f=u==u;(u=s?f||i:r?f&&d&&(i||null!=u):l?f&&(i||d):null!=u&&(i?u<=e:u<e))?a=c+1:o=c}return R(o,W)}function te(o,s,t){if("function"!=typeof o)return aa;if(s===ua)return o;switch(t){case 1:return function(t){return o.call(s,t)};case 3:return function(t,e,n){return o.call(s,t,e,n)};case 4:return function(t,e,n,i){return o.call(s,t,e,n,i)};case 5:return function(t,e,n,i,a){return o.call(s,t,e,n,i,a)}}return function(){return o.apply(s,arguments)}}function ee(t){var e=new b(t.byteLength);return new x(e).set(new x(t)),e}function ne(t,e,n){for(var i=n.length,a=-1,o=P(t.length-i,0),s=-1,r=e.length,l=C(r+o);++s<r;)l[s]=e[s];for(;++a<i;)l[n[a]]=t[a];for(;o--;)l[s++]=t[a++];return l}function ie(t,e,n){for(var i=-1,a=n.length,o=-1,s=P(t.length-a,0),r=-1,l=e.length,c=C(s+l);++o<s;)c[o]=t[o];for(var u=o;++r<l;)c[u+r]=e[r];for(;++i<a;)c[u+n[i]]=t[o++];return c}function ae(r,l){return function(t,i,e){var a=l?l():{};if(i=je(i,e,3),hi(t))for(var n=-1,o=t.length;++n<o;){var s=t[n];r(a,s,i(s,n,t),t)}else It(t,function(t,e,n){r(a,t,i(t,e,n),n)});return a}}function oe(l){return di(function(t,e){var n=-1,i=null==t?0:e.length,a=2<i?e[i-2]:ua,o=2<i?e[2]:ua,s=1<i?e[i-1]:ua;for("function"==typeof a?(a=te(a,s,5),i-=2):i-=(a="function"==typeof s?s:ua)?1:0,o&&Ye(e[0],e[1],o)&&(a=i<3?ua:a,i=1);++n<i;){var r=e[n];r&&l(t,r,a)}return t})}function se(o,s){return function(t,e){var n=t?Pe(t):0;if(!Ve(n))return o(t,e);for(var i=s?n:-1,a=en(t);(s?i--:++i<n)&&!1!==e(a[i],i,a););return t}}function re(l){return function(t,e,n){for(var i=en(t),a=n(t),o=a.length,s=l?o:-1;l?s--:++s<o;){var r=a[s];if(!1===e(i[r],r,i))break}return t}}function le(t){return E&&_?new et(t):null}function ce(o){return function(t){for(var e=-1,n=ea(Zi(t)),i=n.length,a="";++e<i;)a=o(a,n[e],e);return a}}function ue(i){return function(){var t=arguments;switch(t.length){case 0:return new i;case 1:return new i(t[0]);case 2:return new i(t[0],t[1]);case 3:return new i(t[0],t[1],t[2]);case 4:return new i(t[0],t[1],t[2],t[3]);case 5:return new i(t[0],t[1],t[2],t[3],t[4]);case 6:return new i(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new i(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=vt(i.prototype),n=i.apply(e,t);return vi(n)?n:e}}function de(a){return function t(e,n,i){return i&&Ye(e,n,i)&&(n=ua),(n=Ne(e,a,ua,ua,ua,ua,ua,n)).placeholder=t.placeholder,n}}function fe(n,i){return di(function(t){var e=t[0];return null==e?e:(t.push(i),n.apply(ua,t))})}function pe(l,c){return function(t,e,n){return 1!=(e=je(e=n&&Ye(t,e,n)?ua:e,n,3)).length||(n=function(t,e,n,i){for(var a=-1,o=t.length,s=i,r=s;++a<o;){var l=t[a],c=+e(l);n(c,s)&&(s=c,r=l)}return r}(t=hi(t)?t:tn(t),e,l,c),t.length&&n===c)?(i=e,a=l,r=s=o=c,It(t,function(t,e,n){n=+i(t,e,n),(a(n,s)||n===o&&n===r)&&(s=n,r=t)}),r):n;var i,a,o,s,r}}function he(i,a){return function(t,e,n){return e=je(e,n,3),hi(t)?-1<(n=xo(t,e,a))?t[n]:ua:_t(t,e,i)}}function me(i){return function(t,e,n){return t&&t.length?xo(t,e=je(e,n,3),i):-1}}function ge(i){return function(t,e,n){return _t(t,e=je(e,n,3),i,!0)}}function ye(l){return function(){for(var a=arguments.length,t=l?a:-1,e=0,o=C(a);l?t--:++t<a;){var n=o[e++]=arguments[t];if("function"!=typeof n)throw new v(ka);!r&&X.prototype.thru&&"wrapper"==Le(n)&&(r=new X([],!0))}for(t=r?-1:a;++t<a;)var i=Le(n=o[t]),s="wrapper"==i?Oe(n):ua,r=s&&We(s[0])&&s[1]==(Da|ma|ya|ba)&&!s[4].length&&1==s[9]?r[Le(s[0])].apply(r,s[3]):1==n.length&&We(n)?r[i]():r.thru(n);return function(){var t=arguments,e=t[0];if(r&&1==t.length&&hi(e)&&e.length>=Ca)return r.plant(e).value();for(var n=0,i=a?o[n].apply(this,t):e;++n<a;)i=o[n].call(this,i);return i}}}function ve(i,a){return function(t,e,n){return"function"==typeof e&&n===ua&&hi(t)?i(t,e):a(t,te(e,n,3))}}function De(i){return function(t,e,n){return"function"==typeof e&&n===ua||(e=te(e,n,3)),i(t,e,Ui)}}function be(i){return function(t,e,n){return"function"==typeof e&&n===ua||(e=te(e,n,3)),i(t,e)}}function Ae(o){return function(t,i,e){var a={};return i=je(i,e,3),St(t,function(t,e,n){n=i(t,e,n),a[e=o?n:e]=t=o?t:n}),a}}function Ie(i){return function(t,e,n){return t=Eo(t),(i?t:"")+_e(t,e,n)+(i?"":t)}}function Me(i){var a=di(function(t,e){var n=Ho(e,a.placeholder);return Ne(t,i,ua,e,n)});return a}function we(c,u){return function(t,e,n,i){var a,o,s,r,l=arguments.length<3;return"function"==typeof e&&i===ua&&hi(t)?c(t,e,n,l):(a=t,o=je(e,i,4),s=n,r=l,u(a,function(t,e,n){s=r?(r=!1,t):o(s,t,e,n)}),s)}}function Ce(l,c,u,d,f,p,h,m,g,y){var v=c&Da,D=c&fa,b=c&pa,A=c&ma,I=c&ha,M=c&ga,w=b?ua:ue(l);return function t(){for(var e=arguments.length,n=e,i=C(e);n--;)i[n]=arguments[n];if(d&&(i=ne(i,d,f)),p&&(i=ie(i,p,h)),A||M){var a=t.placeholder,o=Ho(i,a);if((e-=o.length)<y){var s=m?it(m):ua,r=P(y-e,0);return c|=A?ya:va,c&=~(A?va:ya),I||(c&=~(fa|pa)),s=[l,c,u,A?i:ua,A?o:ua,A?ua:i,A?ua:o,s,g,r],r=Ce.apply(ua,s),We(l)&&Xe(r,s),r.placeholder=a,r}}return a=D?u:this,r=b?a[l]:l,m&&(i=function(t,e){for(var n=t.length,i=R(e.length,n),a=it(t);i--;){var o=e[i];t[i]=He(o,n)?a[o]:ua}return t}(i,m)),v&&g<i.length&&(i.length=g),(r=this&&this!==To&&this instanceof t?w||ue(l):r).apply(a,i)}}function _e(t,e,n){return t=t.length,(e=+e)<=t||!L(e)?"":Xi(n=null==n?" ":n+"",S((t=e-t)/n.length)).slice(0,t)}function Te(s,t,r,l){var c=t&fa,u=ue(s);return function t(){for(var e=-1,n=arguments.length,i=-1,a=l.length,o=C(a+n);++i<a;)o[i]=l[i];for(;n--;)o[i++]=arguments[++e];return(this&&this!==To&&this instanceof t?u:s).apply(c?r:this,o)}}function ke(t){var n=a[t];return function(t,e){return(e=e!==ua&&+e||0)?(e=M(10,e),n(t*e)/e):n(t)}}function xe(o){return function(t,e,n,i){var a=je(n);return null==n&&a===gt?Xt(t,e,o):$t(t,e,a(n,i,1),o)}}function Ne(t,e,n,i,a,o,s,r){var l=e&pa;if(!l&&"function"!=typeof t)throw new v(ka);var c,u,d=i?i.length:0;d||(e&=~(ya|va),i=a=ua),d-=a?a.length:0,e&va&&(c=i,u=a,i=a=ua);var f,p,h,m=l?ua:Oe(t),s=[t,e,n,i,a,c,u,o,s,r];return m&&(function(t,e){var n,i=t[1],a=e[1],o=i|a,s=o<Da,r=a==Da&&i==ma||a==Da&&i==ba&&t[7].length<=e[8]||a==(Da|ba)&&i==ma;(s||r)&&(a&fa&&(t[2]=e[2],o|=i&fa?0:ha),(i=e[3])&&(n=t[3],t[3]=n?ne(n,i,e[4]):it(i),t[4]=n?Ho(t[3],xa):it(e[4])),(i=e[5])&&(n=t[5],t[5]=n?ie(n,i,e[6]):it(i),t[6]=n?Ho(t[5],xa):it(e[6])),(i=e[7])&&(t[7]=it(i)),a&Da&&(t[8]=null==t[8]?e[8]:R(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o)}(s,m),e=s[1],r=s[9]),s[9]=null==r?l?0:t.length:P(r-d,0)||0,e=e==fa?(f=s[0],p=s[2],h=ue(f),function t(){return(this&&this!==To&&this instanceof t?h:f).apply(p,arguments)}):(e!=ya&&e!=(fa|ya)||s[4].length?Ce:Te).apply(ua,s),(m?Yt:Xe)(e,s)}function Se(t,e,n,i,a,o,s){var r=-1,l=t.length,c=e.length;if(l!=c&&!(a&&l<c))return!1;for(;++r<l;){var u=t[r],d=e[r],f=i?i(a?d:u,a?u:d,r):ua;if(f!==ua){if(f)continue;return!1}if(a){if(!ut(e,function(t){return u===t||n(u,t,i,a,o,s)}))return!1}else if(u!==d&&!n(u,d,i,a,o,s))return!1}return!0}function Ee(t,e,n,i,a,o,s){var r=Fi(t),l=r.length;if(l!=Fi(e).length&&!a)return!1;for(var c=l;c--;){var u=r[c];if(!(a?u in e:y.call(e,u)))return!1}for(var d=a;++c<l;){var f=t[u=r[c]],p=e[u],h=i?i(a?p:f,a?f:p,u):ua;if(!(h===ua?n(f,p,i,a,o,s):h))return!1;d=d||"constructor"==u}if(!d){var m=t.constructor,g=e.constructor;if(m!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof g&&g instanceof g))return!1}return!0}function je(t,e,n){var i=(i=q.callback||ia)===ia?gt:i;return n?i(t,e,n):i}var Oe=Z?function(t){return Z.get(t)}:ra;function Le(t){for(var e=t.name,n=J[e],i=n?n.length:0;i--;){var a=n[i],o=a.func;if(null==o||o==t)return a.name}return e}function ze(t,e,n){var i=(i=q.indexOf||dn)===dn?No:i;return t?i(t,e,n):i}var Pe=Ut("length");function Re(t){for(var e=Qi(t),n=e.length;n--;)e[n][2]=Ge(e[n][1]);return e}function Fe(t,e){return e=null==t?ua:t[e],Di(e)?e:ua}function Ue(t,e,n){return null==t||Qe(e,t)||(t=1==(e=nn(e)).length?t:Ot(t,Qt(e,0,-1)),e=pn(e)),null==(e=null==t?t:t[e])?ua:e.apply(t,n)}function Be(t){return null!=t&&Ve(Pe(t))}function He(t,e){return t="number"==typeof t||vo.test(t)?+t:-1,e=null==e?G:e,-1<t&&t%1==0&&t<e}function Ye(t,e,n){if(!vi(n))return!1;var i=typeof e;return!!("number"==i?Be(n)&&He(e,n.length):"string"==i&&e in n)&&(e=n[e],t==t?t===e:e!=e)}function Qe(t,e){var n=typeof t;return!!("string"==n&&ro.test(t)||"number"==n)||!hi(t)&&(!so.test(t)||null!=e&&t in en(e))}function We(t){var e=Le(t);return e in $.prototype&&(t===(e=q[e])||!!(e=Oe(e))&&t===e[0])}function Ve(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=G}function Ge(t){return t==t&&!vi(t)}function Ze(t,e){t=en(t);for(var n=-1,i=e.length,a={};++n<i;){var o=e[n];o in t&&(a[o]=t[o])}return a}function Je(t,i){var a={};return Nt(t,function(t,e,n){i(t,e,n)&&(a[e]=t)}),a}var qe,Ke,Xe=(Ke=qe=0,function(t,e){var n=Zn(),i=wa-(n-Ke);if(Ke=n,0<i){if(++qe>=Ma)return t}else qe=0;return Yt(t,e)});function $e(t){for(var e=Ui(t),n=e.length,i=n&&t.length,a=!!i&&Ve(i)&&(hi(t)||pi(t)),o=-1,s=[];++o<n;){var r=e[o];(a&&He(r,i)||y.call(t,r))&&s.push(r)}return s}function tn(t){return null==t?[]:Be(t)?vi(t)?t:f(t):Vi(t)}function en(t){return vi(t)?t:f(t)}function nn(t){if(hi(t))return t;var a=[];return Eo(t).replace(lo,function(t,e,n,i){a.push(n?i.replace(po,"$1"):e||t)}),a}function an(t){return t instanceof $?t.clone():new X(t.__wrapped__,t.__chain__,it(t.__actions__))}var on=di(function(t,e){return Bo(t)&&Be(t)?At(t,Tt(e,!1,!0)):[]});function sn(t,e,n){return t&&t.length?Qt(t,(e=(n?Ye(t,e,n):null==e)?1:e)<0?0:e):[]}function rn(t,e,n){var i=t?t.length:0;return i?Qt(t,0,(e=i-(+((n?Ye(t,e,n):null==e)?1:e)||0))<0?0:e):[]}var ln=me(),cn=me(!0);function un(t){return t?t[0]:ua}function dn(t,e,n){var i=t?t.length:0;if(!i)return-1;if("number"==typeof n)n=n<0?P(i+n,0):n;else if(n){var a=Xt(t,e);return a<i&&(e==e?e===t[a]:t[a]!=t[a])?a:-1}return No(t,e,n||0)}var fn=di(function(t){for(var e=t.length,n=e,i=C(void 0),a=ze(),o=a==No,s=[];n--;){var r=t[n]=Be(r=t[n])?r:[];i[n]=o&&120<=r.length?le(n&&r):null}var l=t[0],c=-1,u=l?l.length:0,d=i[0];t:for(;++c<u;)if(r=l[c],(d?nt(d,r):a(s,r,0))<0){for(n=e;--n;){var f=i[n];if((f?nt(f,r):a(t[n],r,0))<0)continue t}d&&d.push(r),s.push(r)}return s});function pn(t){var e=t?t.length:0;return e?t[e-1]:ua}var hn=di(function(t,e){var n=ht(t,e=Tt(e));return Bt(t,e.sort(ko)),n});function mn(t){return sn(t,1)}var gn=xe(),yn=xe(!0);var vn=di(function(t){return Zt(Tt(t,!1,!0))});function Dn(t,e,n,i){if(!t||!t.length)return[];null!=e&&"boolean"!=typeof e&&(n=Ye(t,e,i=n)?ua:e,e=!1);var a=je();return null==n&&a===gt||(n=a(n,i,3)),(e&&ze()==No?function(t,e){for(var n,i=-1,a=t.length,o=-1,s=[];++i<a;){var r=t[i],l=e?e(r,i,t):r;i&&n===l||(n=l,s[++o]=r)}return s}:Zt)(t,n)}function bn(t){if(!t||!t.length)return[];var e=-1,n=0;t=st(t,function(t){return Be(t)&&(n=P(t.length,n),1)});for(var i=C(n);++e<n;)i[e]=rt(t,Ut(e));return i}function An(t,e,n){return t&&t.length?(t=bn(t),null==e?t:(e=te(e,n,4),rt(t,function(t){return ct(t,e,ua,!0)}))):[]}var In=di(function(t,e){return Be(t)?At(t,e):[]});var Mn=di(bn);function wn(t,e){var n=-1,i=t?t.length:0,a={};for(!i||e||hi(t[0])||(e=[]);++n<i;){var o=t[n];e?a[o]=e[n]:o&&(a[o[0]]=o[1])}return a}var Cn=di(function(t){var e=t.length,n=2<e?t[e-2]:ua,i=1<e?t[e-1]:ua;return 2<e&&"function"==typeof n?e-=2:(n=1<e&&"function"==typeof i?(--e,i):ua,i=ua),t.length=e,An(t,n,i)});function _n(t){return(t=q(t)).__chain__=!0,t}function Tn(t,e,n){return e.call(n,t)}var kn=di(function(e){return e=Tt(e),this.thru(function(t){return function(t,e){for(var n=-1,i=t.length,a=-1,o=e.length,s=C(i+o);++n<i;)s[n]=t[n];for(;++a<o;)s[n++]=e[a];return s}(hi(t)?t:[en(t)],e)})});var xn=di(function(t,e){return ht(t,Tt(e))}),Nn=ae(function(t,e,n){y.call(t,n)?++t[n]:t[n]=1});function Sn(t,e,n){return(hi(t)?ot:wt)(t,e="function"!=typeof(e=n&&Ye(t,e,n)?ua:e)||n!==ua?je(e,n,3):e)}function En(t,e,n){return(hi(t)?st:Ct)(t,e=je(e,n,3))}var jn=he(It),On=he(Mt,!0);var Ln=ve(at,It),zn=ve(function(t,e){for(var n=t.length;n--&&!1!==e(t[n],n,t););return t},Mt),Pn=ae(function(t,e,n){y.call(t,n)?t[n].push(e):t[n]=[e]});function Rn(t,e,n,i){var a=t?Pe(t):0;return Ve(a)||(a=(t=Vi(t)).length),n="number"!=typeof n||i&&Ye(e,n,i)?0:n<0?P(a+n,0):n||0,"string"==typeof t||!hi(t)&&Mi(t)?n<=a&&-1<t.indexOf(e,n):!!a&&-1<ze(t,e,n)}var Fn=ae(function(t,e,n){t[n]=e}),Un=di(function(t,n,i){var a=-1,o="function"==typeof n,s=Qe(n),r=Be(t)?C(t.length):[];return It(t,function(t){var e=o?n:s&&null!=t?t[n]:ua;r[++a]=e?e.apply(t,i):Ue(t,n,i)}),r});function Bn(t,e,n){return(hi(t)?rt:Pt)(t,e=je(e,n,3))}var Hn=ae(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Yn=we(ct,It),Qn=we(function(t,e,n,i){var a=t.length;for(i&&a&&(n=t[--a]);a--;)n=e(n,t[a],a,t);return n},Mt);function Wn(t,e,n){if(n?Ye(t,e,n):null==e)return 0<(i=(t=tn(t)).length)?t[Ht(0,i-1)]:ua;var i,a=-1,o=_i(t),s=(i=o.length)-1;for(e=R(!(e<0)&&+e||0,i);++a<e;){var r=Ht(a,s),l=o[r];o[r]=o[a],o[a]=l}return o.length=e,o}function Vn(t,e,n){return(hi(t)?ut:Wt)(t,e="function"!=typeof(e=n&&Ye(t,e,n)?ua:e)||n!==ua?je(e,n,3):e)}var Gn=di(function(t,e){if(null==t)return[];var n=e[2];return n&&Ye(e[0],e[1],n)&&(e.length=1),Gt(t,Tt(e),[])});var Zn=F||function(){return(new n).getTime()};function Jn(t,e){var n;if("function"!=typeof e){if("function"!=typeof t)throw new v(ka);var i=t;t=e,e=i}return function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=ua),n}}var qn=di(function(t,e,n){var i,a=fa;return n.length&&(i=Ho(n,qn.placeholder),a|=ya),Ne(t,a,e,n,i)}),Kn=di(function(t,e){for(var n=-1,i=(e=e.length?Tt(e):Ri(t)).length;++n<i;){var a=e[n];t[a]=Ne(t[a],fa,t)}return t}),Xn=di(function(t,e,n){var i,a=fa|pa;return n.length&&(i=Ho(n,Xn.placeholder),a|=ya),Ne(e,a,t,n,i)}),$n=de(ma),ti=de(ga);function ei(i,a,t){var o,s,r,l,c,u,d,f,p=0,h=!1,m=!0;if("function"!=typeof i)throw new v(ka);function e(t,e){e&&A(e),s=u=d=ua,t&&(p=Zn(),r=i.apply(c,o),u||s||(o=c=ua))}function g(){var t=a-(Zn()-l);t<=0||a<t?e(d,s):u=T(g,t)}function y(){e(m,u)}function n(){var t,e,n;return o=arguments,l=Zn(),c=this,d=m&&(u||!f),!1===h?t=f&&!u:(n=(e=h-(l-(p=s||f?p:l)))<=0||h<e)?(s=s&&A(s),p=l,r=i.apply(c,o)):s=s||T(y,e),n&&u?u=A(u):u||a===h||(u=T(g,a)),t&&(n=!0,r=i.apply(c,o)),!n||u||s||(o=c=ua),r}return a=!(a<0)&&+a||0,!0===t?m=!(f=!0):vi(t)&&(f=!!t.leading,h="maxWait"in t&&P(+t.maxWait||0,a),m="trailing"in t?!!t.trailing:m),n.cancel=function(){u&&A(u),s&&A(s),p=0,s=u=d=ua},n}var ni=di(function(t,e){return bt(t,1,e)}),ii=di(bt),ai=ye(),oi=ye(!0);function si(i,a){if("function"!=typeof i||a&&"function"!=typeof a)throw new v(ka);function o(){var t=arguments,e=a?a.apply(this,t):t[0],n=o.cache;return n.has(e)?n.get(e):(t=i.apply(this,t),o.cache=n.set(e,t),t)}return o.cache=new si.Cache,o}var ri=di(function(n,i){if(i=Tt(i),"function"!=typeof n||!ot(i,So))throw new v(ka);var a=i.length;return di(function(t){for(var e=R(t.length,a);e--;)t[e]=i[e](t[e]);return n.apply(this,t)})});var li=Me(ya),ci=Me(va),ui=di(function(t,e){return Ne(t,ba,ua,ua,ua,Tt(e))});function di(o,s){if("function"!=typeof o)throw new v(ka);return s=P(s===ua?o.length-1:+s||0,0),function(){for(var t=arguments,e=-1,n=P(t.length-s,0),i=C(n);++e<n;)i[e]=t[s+e];switch(s){case 0:return o.call(this,i);case 1:return o.call(this,t[0],i);case 2:return o.call(this,t[0],t[1],i)}for(var a=C(s+1),e=-1;++e<s;)a[e]=t[e];return a[s]=i,o.apply(this,a)}}function fi(t,e){return e<t}function pi(t){return Bo(t)&&Be(t)&&y.call(t,"callee")&&!w.call(t,"callee")}var hi=O||function(t){return Bo(t)&&Ve(t.length)&&m.call(t)==Sa};function mi(t,e,n,i){return(i=(n="function"==typeof n?te(n,i,3):ua)?n(t,e):ua)===ua?Lt(t,e,n):!!i}function gi(t){return Bo(t)&&"string"==typeof t.message&&m.call(t)==Oa}function yi(t){return vi(t)&&m.call(t)==La}function vi(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Di(t){return null!=t&&(yi(t)?D.test(u.call(t)):Bo(t)&&yo.test(t))}function bi(t){return"number"==typeof t||Bo(t)&&m.call(t)==za}function Ai(t){var e,n;return!(!Bo(t)||m.call(t)!=Pa||pi(t)||!(y.call(t,"constructor")||"function"!=typeof(e=t.constructor)||e instanceof e))&&(Nt(t,function(t,e){n=e}),n===ua||y.call(t,n))}function Ii(t){return vi(t)&&m.call(t)==Ra}function Mi(t){return"string"==typeof t||Bo(t)&&m.call(t)==Fa}function wi(t){return Bo(t)&&Ve(t.length)&&!!Co[m.call(t)]}function Ci(t,e){return t<e}function _i(t){var e=t?Pe(t):0;return Ve(e)?e?it(t):[]:Vi(t)}function Ti(t){return mt(t,Ui(t))}var ki=oe(function o(s,r,l,c,u){if(!vi(s))return s;var d=Be(r)&&(hi(r)||wi(r)),f=d?ua:Fi(r);return at(f||r,function(t,e){var n,i,a;Bo(t=f?r[e=t]:t)?function(t,e,n,i,a,o,s){for(var r=o.length,l=e[n];r--;)if(o[r]==l)return t[n]=s[r];var c=t[n],u=a?a(c,l,n,t,e):ua;(e=u===ua)&&(Be(u=l)&&(hi(l)||wi(l))?u=hi(c)?c:Be(c)?it(c):[]:Ai(l)||pi(l)?u=pi(c)?Ti(c):Ai(c)?c:{}:e=!1),o.push(l),s.push(u),e?t[n]=i(u,l,a,o,s):(u==u?u!==c:c==c)&&(t[n]=u)}(s,r,e,o,l,c=c||[],u=u||[]):(n=s[e],(i=(a=(i=l?l(n,t,e,s,r):ua)===ua)?t:i)===ua&&(!d||e in s)||!a&&(i==i?i===n:n!=n)||(s[e]=i))}),s}),xi=oe(function(t,e,n){return n?ft(t,e,n):pt(t,e)});var Ni=fe(xi,function(t,e){return t===ua?e:t}),Si=fe(ki,function t(e,n){return e===ua?n:ki(e,n,t)}),Ei=ge(St),ji=ge(Et),Oi=De(kt),Li=De(xt),zi=be(St),Pi=be(Et);function Ri(t){return jt(t,Ui(t))}var Fi=z?function(t){var e=null==t?ua:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&Be(t)?$e(t):vi(t)?z(t):[]}:$e;function Ui(t){if(null==t)return[];for(var e,n=(n=(t=vi(t)?t:f(t)).length)&&Ve(n)&&(hi(t)||pi(t))&&n||0,i=t.constructor,a=-1,o="function"==typeof i&&i.prototype===t,s=C(n),r=0<n;++a<n;)s[a]=a+"";for(e in t)r&&He(e,n)||"constructor"==e&&(o||!y.call(t,e))||s.push(e);return s}var Bi=Ae(!0),Hi=Ae(),Yi=di(function(t,e){if(null==t)return{};if("function"!=typeof e[0])return e=rt(Tt(e),s),Ze(t,At(Ui(t),e));var i=te(e[0],e[1],3);return Je(t,function(t,e,n){return!i(t,e,n)})});function Qi(t){t=en(t);for(var e=-1,n=Fi(t),i=n.length,a=C(i);++e<i;){var o=n[e];a[e]=[o,t[o]]}return a}var Wi=di(function(t,e){return null==t?{}:"function"==typeof e[0]?Je(t,te(e[0],e[1],3)):Ze(t,Tt(e))});function Vi(t){return Jt(t,Fi(t))}var Gi=ce(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)});function Zi(t){return(t=Eo(t))&&t.replace(Do,zo).replace(fo,"")}var Ji=ce(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});var qi=Ie(),Ki=Ie(!0);function Xi(t,e){var n="";if(t=Eo(t),(e=+e)<1||!t||!L(e))return n;for(;e%2&&(n+=t),t+=t,e=j(e/2););return n}var $i=ce(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),l=ce(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))});function ta(t,e,n){var i=t;return(t=Eo(t))?(n?Ye(i,e,n):null==e)?t.slice(Yo(t),Qo(t)+1):t.slice(jo(t,e+=""),Oo(t,e)+1):t}function ea(t,e,n){return n&&Ye(t,e,n)&&(e=ua),(t=Eo(t)).match(e||Io)||[]}var na=di(function(t,e){try{return t.apply(ua,e)}catch(t){return gi(t)?t:new i(t)}});function ia(t,e,n){return n&&Ye(t,e,n)&&(e=ua),Bo(t)?oa(t):gt(t,e)}function aa(t){return t}function oa(t){return Rt(yt(t,!0))}e=di(function(e,n){return function(t){return Ue(t,e,n)}}),o=di(function(e,n){return function(t){return Ue(e,t,n)}});function sa(i,t,e){var n,a;null==e&&(((o=(a=(n=vi(t))?Fi(t):ua)&&a.length?jt(t,a):ua)?o.length:n)||(o=!1,e=t,t=i,i=this));var o=o||jt(t,Fi(t)),s=!0,r=-1,l=yi(i),c=o.length;!1===e?s=!1:vi(e)&&"chain"in e&&(s=e.chain);for(;++r<c;){var u=o[r],d=t[u];i[u]=d,l&&(i.prototype[u]=function(n){return function(){var t=this.__chain__;if(s||t){var e=i(this.__wrapped__);return(e.__actions__=it(this.__actions__)).push({func:n,args:arguments,thisArg:i}),e.__chain__=t,e}return n.apply(i,lt([this.value()],arguments))}}(d))}return i}function ra(){}function la(t){return Qe(t)?Ut(t):(n=(e=t)+"",e=nn(t),function(t){return Ot(t,e,n)});var e,n}var ca,N=ke("ceil"),Mt=ke("floor"),F=pe(fi,H),O=pe(Ci,Y),H=ke("round");return q.prototype=K.prototype,(X.prototype=vt(K.prototype)).constructor=X,($.prototype=vt(K.prototype)).constructor=$,tt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},tt.prototype.get=function(t){return"__proto__"==t?ua:this.__data__[t]},tt.prototype.has=function(t){return"__proto__"!=t&&y.call(this.__data__,t)},tt.prototype.set=function(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this},et.prototype.push=function(t){var e=this.data;"string"==typeof t||vi(t)?e.set.add(t):e.hash[t]=!0},si.Cache=tt,q.after=function(t,e){if("function"!=typeof e){if("function"!=typeof t)throw new v(ka);var n=t;t=e,e=n}return t=L(t=+t)?t:0,function(){if(--t<1)return e.apply(this,arguments)}},q.ary=function(t,e,n){return n&&Ye(t,e,n)&&(e=ua),e=t&&null==e?t.length:P(+e||0,0),Ne(t,Da,ua,ua,ua,ua,e)},q.assign=xi,q.at=xn,q.before=Jn,q.bind=qn,q.bindAll=Kn,q.bindKey=Xn,q.callback=ia,q.chain=_n,q.chunk=function(t,e,n){e=(n?Ye(t,e,n):null==e)?1:P(j(e)||1,1);for(var i=0,a=t?t.length:0,o=-1,s=C(S(a/e));i<a;)s[++o]=Qt(t,i,i+=e);return s},q.compact=function(t){for(var e=-1,n=t?t.length:0,i=-1,a=[];++e<n;){var o=t[e];o&&(a[++i]=o)}return a},q.constant=function(t){return function(){return t}},q.countBy=Nn,q.create=function(t,e,n){var i=vt(t);return(e=n&&Ye(t,e,n)?ua:e)?pt(i,e):i},q.curry=$n,q.curryRight=ti,q.debounce=ei,q.defaults=Ni,q.defaultsDeep=Si,q.defer=ni,q.delay=ii,q.difference=on,q.drop=sn,q.dropRight=rn,q.dropRightWhile=function(t,e,n){return t&&t.length?qt(t,je(e,n,3),!0,!0):[]},q.dropWhile=function(t,e,n){return t&&t.length?qt(t,je(e,n,3),!0):[]},q.fill=function(t,e,n,i){var a=t?t.length:0;return a?(n&&"number"!=typeof n&&Ye(t,e,n)&&(n=0,i=a),function(t,e,n,i){var a=t.length;for((i=i===ua||a<i?a:+i||0)<0&&(i+=a),a=i<(n=(n=null!=n&&+n||0)<0?a<-n?0:a+n:n)?0:i>>>0,n>>>=0;n<a;)t[n++]=e;return t}(t,e,n,i)):[]},q.filter=En,q.flatten=function(t,e,n){var i=t?t.length:0;return n&&Ye(t,e,n)&&(e=!1),i?Tt(t,e):[]},q.flattenDeep=function(t){return t&&t.length?Tt(t,!0):[]},q.flow=ai,q.flowRight=oi,q.forEach=Ln,q.forEachRight=zn,q.forIn=Oi,q.forInRight=Li,q.forOwn=zi,q.forOwnRight=Pi,q.functions=Ri,q.groupBy=Pn,q.indexBy=Fn,q.initial=function(t){return rn(t,1)},q.intersection=fn,q.invert=function(t,e,n){n&&Ye(t,e,n)&&(e=ua);for(var i=-1,a=Fi(t),o=a.length,s={};++i<o;){var r=a[i],l=t[r];e?y.call(s,l)?s[l].push(r):s[l]=[r]:s[l]=r}return s},q.invoke=Un,q.keys=Fi,q.keysIn=Ui,q.map=Bn,q.mapKeys=Bi,q.mapValues=Hi,q.matches=oa,q.matchesProperty=function(t,e){return Ft(t,yt(e,!0))},q.memoize=si,q.merge=ki,q.method=e,q.methodOf=o,q.mixin=sa,q.modArgs=ri,q.negate=function(t){if("function"!=typeof t)throw new v(ka);return function(){return!t.apply(this,arguments)}},q.omit=Yi,q.once=function(t){return Jn(2,t)},q.pairs=Qi,q.partial=li,q.partialRight=ci,q.partition=Hn,q.pick=Wi,q.pluck=function(t,e){return Bn(t,la(e))},q.property=la,q.propertyOf=function(e){return function(t){return Ot(e,nn(t),t+"")}},q.pull=function(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var n=0,i=ze(),a=t.length;++n<a;)for(var o=0,s=t[n];-1<(o=i(e,s,o));)k.call(e,o,1);return e},q.pullAt=hn,q.range=function(t,e,n){n&&Ye(t,e,n)&&(e=n=ua),t=+t||0,null==e?(e=t,t=0):e=+e||0;for(var i=-1,a=P(S((e-t)/((n=null==n?1:+n||0)||1)),0),o=C(a);++i<a;)o[i]=t,t+=n;return o},q.rearg=ui,q.reject=function(t,i,e){var n=hi(t)?st:Ct;return i=je(i,e,3),n(t,function(t,e,n){return!i(t,e,n)})},q.remove=function(t,e,n){var i=[];if(!t||!t.length)return i;var a=-1,o=[],s=t.length;for(e=je(e,n,3);++a<s;){var r=t[a];e(r,a,t)&&(i.push(r),o.push(a))}return Bt(t,o),i},q.rest=mn,q.restParam=di,q.set=function(t,e,n){if(null==t)return t;for(var i=e+"",a=-1,o=(e=null!=t[i]||Qe(e,t)?[i]:nn(e)).length,s=o-1,r=t;null!=r&&++a<o;){var l=e[a];vi(r)&&(a==s?r[l]=n:null==r[l]&&(r[l]=He(e[a+1])?[]:{})),r=r[l]}return t},q.shuffle=function(t){return Wn(t,Y)},q.slice=function(t,e,n){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&Ye(t,e,n)&&(e=0,n=i),Qt(t,e,n)):[]},q.sortBy=function(t,i,e){if(null==t)return[];e&&Ye(t,i,e)&&(i=ua);var a=-1;return i=je(i,e,3),Vt(Pt(t,function(t,e,n){return{criteria:i(t,e,n),index:++a,value:t}}),Lo)},q.sortByAll=Gn,q.sortByOrder=function(t,e,n,i){return null==t?[]:(i&&Ye(e,n,i)&&(n=ua),Gt(t,e=hi(e)?e:null==e?[]:[e],n=hi(n)?n:null==n?[]:[n]))},q.spread=function(e){if("function"!=typeof e)throw new v(ka);return function(t){return e.apply(this,t)}},q.take=function(t,e,n){return t&&t.length?Qt(t,0,(e=(n?Ye(t,e,n):null==e)?1:e)<0?0:e):[]},q.takeRight=function(t,e,n){var i=t?t.length:0;return i?Qt(t,(e=i-(+((n?Ye(t,e,n):null==e)?1:e)||0))<0?0:e):[]},q.takeRightWhile=function(t,e,n){return t&&t.length?qt(t,je(e,n,3),!1,!0):[]},q.takeWhile=function(t,e,n){return t&&t.length?qt(t,je(e,n,3)):[]},q.tap=function(t,e,n){return e.call(n,t),t},q.throttle=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new v(ka);return!1===n?i=!1:vi(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),ei(t,e,{leading:i,maxWait:+e,trailing:a})},q.thru=Tn,q.times=function(t,e,n){if((t=j(t))<1||!L(t))return[];var i=-1,a=C(R(t,Q));for(e=te(e,n,1);++i<t;)i<Q?a[i]=e(i):e(i);return a},q.toArray=_i,q.toPlainObject=Ti,q.transform=function(t,i,a,e){var n=hi(t)||wi(t);return i=je(i,e,4),null==a&&(a=n||vi(t)?(e=t.constructor,n?hi(t)?new e:[]:vt(yi(e)?e.prototype:ua)):{}),(n?at:St)(t,function(t,e,n){return i(a,t,e,n)}),a},q.union=vn,q.uniq=Dn,q.unzip=bn,q.unzipWith=An,q.values=Vi,q.valuesIn=function(t){return Jt(t,Ui(t))},q.where=function(t,e){return En(t,Rt(e))},q.without=In,q.wrap=function(t,e){return Ne(e=null==e?aa:e,ya,ua,[t],[])},q.xor=function(){for(var t=-1,e=arguments.length;++t<e;){var n,i=arguments[t];Be(i)&&(n=n?lt(At(n,i),At(i,n)):i)}return n?Zt(n):[]},q.zip=Mn,q.zipObject=wn,q.zipWith=Cn,q.backflow=oi,q.collect=Bn,q.compose=oi,q.each=Ln,q.eachRight=zn,q.extend=xi,q.iteratee=ia,q.methods=Ri,q.object=wn,q.select=En,q.tail=mn,q.unique=Dn,sa(q,q),q.add=function(t,e){return(+t||0)+(+e||0)},q.attempt=na,q.camelCase=Gi,q.capitalize=function(t){return(t=Eo(t))&&t.charAt(0).toUpperCase()+t.slice(1)},q.ceil=N,q.clone=function(t,e,n,i){return e&&"boolean"!=typeof e&&Ye(t,e,n)?e=!1:"function"==typeof e&&(i=n,n=e,e=!1),"function"==typeof n?yt(t,e,te(n,i,1)):yt(t,e)},q.cloneDeep=function(t,e,n){return"function"==typeof e?yt(t,!0,te(e,n,1)):yt(t,!0)},q.deburr=Zi,q.endsWith=function(t,e,n){e+="";var i=(t=Eo(t)).length;return n=n===ua?i:R(!(n<0)&&+n||0,i),0<=(n-=e.length)&&t.indexOf(e,n)==n},q.escape=function(t){return(t=Eo(t))&&no.test(t)?t.replace(to,Po):t},q.escapeRegExp=function(t){return(t=Eo(t))&&uo.test(t)?t.replace(co,Ro):t||"(?:)"},q.every=Sn,q.find=jn,q.findIndex=ln,q.findKey=Ei,q.findLast=On,q.findLastIndex=cn,q.findLastKey=ji,q.findWhere=function(t,e){return jn(t,Rt(e))},q.first=un,q.floor=Mt,q.get=function(t,e,n){return(e=null==t?ua:Ot(t,nn(e),e+""))===ua?n:e},q.gt=fi,q.gte=function(t,e){return e<=t},q.has=function(t,e){if(null==t)return!1;var n=y.call(t,e);if(!n&&!Qe(e)){if(null==(t=1==(e=nn(e)).length?t:Ot(t,Qt(e,0,-1))))return!1;e=pn(e),n=y.call(t,e)}return n||Ve(t.length)&&He(e,t.length)&&(hi(t)||pi(t))},q.identity=aa,q.includes=Rn,q.indexOf=dn,q.inRange=function(t,e,n){return e=+e||0,n===ua?(n=e,e=0):n=+n||0,t>=R(e,n)&&t<P(e,n)},q.isArguments=pi,q.isArray=hi,q.isBoolean=function(t){return!0===t||!1===t||Bo(t)&&m.call(t)==Ea},q.isDate=function(t){return Bo(t)&&m.call(t)==ja},q.isElement=function(t){return!!t&&1===t.nodeType&&Bo(t)&&!Ai(t)},q.isEmpty=function(t){return null==t||(Be(t)&&(hi(t)||Mi(t)||pi(t)||Bo(t)&&yi(t.splice))?!t.length:!Fi(t).length)},q.isEqual=mi,q.isError=gi,q.isFinite=function(t){return"number"==typeof t&&L(t)},q.isFunction=yi,q.isMatch=function(t,e,n,i){return n="function"==typeof n?te(n,i,3):ua,zt(t,Re(e),n)},q.isNaN=function(t){return bi(t)&&t!=+t},q.isNative=Di,q.isNull=function(t){return null===t},q.isNumber=bi,q.isObject=vi,q.isPlainObject=Ai,q.isRegExp=Ii,q.isString=Mi,q.isTypedArray=wi,q.isUndefined=function(t){return t===ua},q.kebabCase=Ji,q.last=pn,q.lastIndexOf=function(t,e,n){var i=t?t.length:0;if(!i)return-1;var a=i;if("number"==typeof n)a=(n<0?P(i+n,0):R(n||0,i-1))+1;else if(n)return n=t[a=Xt(t,e,!0)-1],(e==e?e===n:n!=n)?a:-1;if(e!=e)return Uo(t,a,!0);for(;a--;)if(t[a]===e)return a;return-1},q.lt=Ci,q.lte=function(t,e){return t<=e},q.max=F,q.min=O,q.noConflict=function(){return To._=g,this},q.noop=ra,q.now=Zn,q.pad=function(t,e,n){var i=(t=Eo(t)).length;return(e=+e)<=i||!L(e)?t:(i=j(e=(e-i)/2),(n=_e("",S(e),n)).slice(0,i)+t+n)},q.padLeft=qi,q.padRight=Ki,q.parseInt=function(t,e,n){return e=(n?Ye(t,e,n):null==e)?0:e&&+e,t=ta(t),U(t,e||(go.test(t)?16:10))},q.random=function(t,e,n){var i=null==t,a=null==(e=n&&Ye(t,e,n)?n=ua:e);return null==n&&(a&&"boolean"==typeof t?(n=t,t=1):"boolean"==typeof e&&(n=e,a=!0)),t=+t||0,(a=i&&a?!(e=1):a)?(e=t,t=0):e=+e||0,n||t%1||e%1?(n=B(),R(t+n*(e-t+I("1e-"+((n+"").length-1))),e)):Ht(t,e)},q.reduce=Yn,q.reduceRight=Qn,q.repeat=Xi,q.result=function(t,e,n){var i=null==t?ua:t[e];return yi(i=i===ua&&(i=null==t||Qe(e,t)?i:null==(t=1==(e=nn(e)).length?t:Ot(t,Qt(e,0,-1)))?ua:t[pn(e)])===ua?n:i)?i.call(t):i},q.round=H,q.runInContext=t,q.size=function(t){var e=t?Pe(t):0;return Ve(e)?e:Fi(t).length},q.snakeCase=$i,q.some=Vn,q.sortedIndex=gn,q.sortedLastIndex=yn,q.startCase=l,q.startsWith=function(t,e,n){return t=Eo(t),n=null==n?0:R(!(n<0)&&+n||0,t.length),t.lastIndexOf(e,n)==n},q.sum=function(t,e,n){return 1==(e=je(e=n&&Ye(t,e,n)?ua:e,n,3)).length?function(t,e){for(var n=t.length,i=0;n--;)i+=+e(t[n])||0;return i}(hi(t)?t:tn(t),e):(i=e,a=0,It(t,function(t,e,n){a+=+i(t,e,n)||0}),a);var i,a},q.template=function(s,t,e){var n=q.templateSettings;e&&Ye(s,t,e)&&(t=e=ua),s=Eo(s),t=ft(pt({},e||t),n,dt);var r,l,n=ft(pt({},t.imports),n.imports,dt),i=Fi(n),a=Jt(n,i),c=0,n=t.interpolate||bo,u="__p += '",n=p((t.escape||bo).source+"|"+n.source+"|"+(n===oo?ho:bo).source+"|"+(t.evaluate||bo).source+"|$","g"),o="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++wo+"]")+"\n";if(s.replace(n,function(t,e,n,i,a,o){return n=n||i,u+=s.slice(c,o).replace(Ao,Fo),e&&(r=!0,u+="' +\n__e("+e+") +\n'"),a&&(l=!0,u+="';\n"+a+";\n__p += '"),n&&(u+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=o+t.length,t}),u+="';\n",(t=t.variable)||(u="with (obj) {\n"+u+"\n}\n"),u=(l?u.replace(qa,""):u).replace(Ka,"$1").replace(Xa,"$1;"),u="function("+(t||"obj")+") {\n"+(t?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}",(t=na(function(){return d(i,o+"return "+u).apply(ua,a)})).source=u,gi(t))throw t;return t},q.trim=ta,q.trimLeft=function(t,e,n){var i=t;return(t=Eo(t))?(n?Ye(i,e,n):null==e)?t.slice(Yo(t)):t.slice(jo(t,e+"")):t},q.trimRight=function(t,e,n){var i=t;return(t=Eo(t))?(n?Ye(i,e,n):null==e)?t.slice(0,Qo(t)+1):t.slice(0,Oo(t,e+"")+1):t},q.trunc=function(t,e,n){n&&Ye(t,e,n)&&(e=ua);var i,a=Aa,n=Ia;if(null!=e&&(vi(e)?(i="separator"in e?e.separator:i,a="length"in e?+e.length||0:a,n="omission"in e?Eo(e.omission):n):a=+e||0),a>=(t=Eo(t)).length)return t;if((e=a-n.length)<1)return n;if(a=t.slice(0,e),null==i)return a+n;if(Ii(i)){if(t.slice(e).search(i)){var o,s,r=t.slice(0,e);for((i=i.global?i:p(i.source,(mo.exec(i)||"")+"g")).lastIndex=0;o=i.exec(r);)s=o.index;a=a.slice(0,null==s?e:s)}}else t.indexOf(i,e)==e||-1<(e=a.lastIndexOf(i))&&(a=a.slice(0,e));return a+n},q.unescape=function(t){return(t=Eo(t))&&eo.test(t)?t.replace($a,Wo):t},q.uniqueId=function(t){var e=++h;return Eo(t)+e},q.words=ea,q.all=Sn,q.any=Vn,q.contains=Rn,q.eq=mi,q.detect=jn,q.foldl=Yn,q.foldr=Qn,q.head=un,q.include=Rn,q.inject=Yn,sa(q,(ca={},St(q,function(t,e){q.prototype[e]||(ca[e]=t)}),ca),!1),q.sample=Wn,q.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return Wn(t,e)}):Wn(this.value())},q.VERSION=da,at(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){q[t].placeholder=q}),at(["drop","take"],function(i,a){$.prototype[i]=function(t){var e=this.__filtered__;if(e&&!a)return new $(this);t=null==t?1:P(j(t)||0,0);var n=this.clone();return e?n.__takeCount__=R(n.__takeCount__,t):n.__views__.push({size:t,type:i+(n.__dir__<0?"Right":"")}),n},$.prototype[i+"Right"]=function(t){return this.reverse()[i](t).reverse()}}),at(["filter","map","takeWhile"],function(t,e){var i=e+1,a=i!=Ta;$.prototype[t]=function(t,e){var n=this.clone();return n.__iteratees__.push({iteratee:je(t,e,1),type:i}),n.__filtered__=n.__filtered__||a,n}}),at(["first","last"],function(t,e){var n="take"+(e?"Right":"");$.prototype[t]=function(){return this[n](1).value()[0]}}),at(["initial","rest"],function(t,e){var n="drop"+(e?"":"Right");$.prototype[t]=function(){return this.__filtered__?new $(this):this[n](1)}}),at(["pluck","where"],function(t,e){var n=e?"filter":"map",i=e?Rt:la;$.prototype[t]=function(t){return this[n](i(t))}}),$.prototype.compact=function(){return this.filter(aa)},$.prototype.reject=function(e,t){return e=je(e,t,1),this.filter(function(t){return!e(t)})},$.prototype.slice=function(t,e){t=null!=t&&+t||0;var n=this;return n.__filtered__&&(0<t||e<0)?new $(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==ua?(e=+e||0)<0?n.dropRight(-e):n.take(e-t):n)},$.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},$.prototype.toArray=function(){return this.take(Y)},St($.prototype,function(l,t){var c=/^(?:filter|map|reject)|While$/.test(t),u=/^(?:first|last)$/.test(t),d=q[u?"take"+("last"==t?"Right":""):t];d&&(q.prototype[t]=function(){var e=u?[1]:arguments,n=this.__chain__,t=this.__wrapped__,i=!!this.__actions__.length,a=t instanceof $,o=e[0],s=a||hi(t);function r(t){return u&&n?d(t,1)[0]:d.apply(ua,lt([t],e))}return s&&c&&"function"==typeof o&&1!=o.length&&(a=s=!1),o={func:Tn,args:[r],thisArg:ua},i=a&&!i,u&&!n?i?((t=t.clone()).__actions__.push(o),l.call(t)):d.call(ua,this.value())[0]:u||!s?this.thru(r):(t=i?t:new $(this),(t=l.apply(t,e)).__actions__.push(o),new X(t,n))})}),at(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var n=(/^(?:replace|split)$/.test(t)?c:r)[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",a=/^(?:join|pop|replace|shift)$/.test(t);q.prototype[t]=function(){var e=arguments;return a&&!this.__chain__?n.apply(this.value(),e):this[i](function(t){return n.apply(t,e)})}}),St($.prototype,function(t,e){var n,i=q[e];i&&(n=i.name,(J[n]||(J[n]=[])).push({name:e,func:i}))}),J[Ce(ua,pa).name]=[{name:"wrapper",func:ua}],$.prototype.clone=function(){var t=new $(this.__wrapped__);return t.__actions__=it(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=it(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=it(this.__views__),t},$.prototype.reverse=function(){var t;return this.__filtered__?((t=new $(this)).__dir__=-1,t.__filtered__=!0):(t=this.clone()).__dir__*=-1,t},$.prototype.value=function(){var t,e=this.__wrapped__.value(),n=this.__dir__,i=hi(e),a=n<0,o=i?e.length:0,s=(t=function(t,e,n){for(var i=-1,a=n.length;++i<a;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=R(e,t+s);break;case"takeRight":t=P(t,e-s)}}return{start:t,end:e}}(0,o,this.__views__)).start,r=(t=t.end)-s,l=a?t:s-1,c=this.__iteratees__,u=c.length,d=0,f=R(r,this.__takeCount__);if(!i||o<Ca||o==r&&f==r)return Kt(a&&i?e.reverse():e,this.__actions__);var p=[];t:for(;r--&&d<f;){for(var h=-1,m=e[l+=n];++h<u;){var g=(y=c[h]).iteratee,y=y.type,g=g(m);if(y==Ta)m=g;else if(!g){if(y==_a)continue t;break t}}p[d++]=m}return p},q.prototype.chain=function(){return _n(this)},q.prototype.commit=function(){return new X(this.value(),this.__chain__)},q.prototype.concat=kn,q.prototype.plant=function(t){for(var e,n=this;n instanceof K;){var i=an(n);e?a.__wrapped__=i:e=i;var a=i,n=n.__wrapped__}return a.__wrapped__=t,e},q.prototype.reverse=function(){function t(t){return n&&n.__dir__<0?t:t.reverse()}var e=this.__wrapped__;if(e instanceof $){var n=e;return(n=(n=this.__actions__.length?new $(this):n).reverse()).__actions__.push({func:Tn,args:[t],thisArg:ua}),new X(n,this.__chain__)}return this.thru(t)},q.prototype.toString=function(){return this.value()+""},q.prototype.run=q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=function(){return Kt(this.__wrapped__,this.__actions__)},q.prototype.collect=q.prototype.map,q.prototype.head=q.prototype.first,q.prototype.select=q.prototype.filter,q.prototype.tail=q.prototype.rest,q}();("function"!=typeof define||"object"!=typeof define.amd||!define.amd)&&c&&u?s?(u.exports=Vo)._=Vo:c._=Vo:To._=Vo}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],25:[function(t,e,n){function i(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}e.exports=function(t,e){return e=e||{},"string"==typeof t?function(t){if(!(1e4<(t=""+t).length)){t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(t){var e=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*e;case"days":case"day":case"d":return 864e5*e;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*e;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*e;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e}}}}(t):e.long?i(e=t,864e5,"day")||i(e,36e5,"hour")||i(e,6e4,"minute")||i(e,1e3,"second")||e+" ms":864e5<=(t=t)?Math.round(t/864e5)+"d":36e5<=t?Math.round(t/36e5)+"h":6e4<=t?Math.round(t/6e4)+"m":1e3<=t?Math.round(t/1e3)+"s":t+"ms"}},{}],26:[function(t,e,n){e.exports=t("./lib/retry")},{"./lib/retry":27}],27:[function(t,e,r){var n=t("./retry_operation");r.operation=function(t){var e=!1;t&&!0===t.forever&&(e=!0);t=r.timeouts(t);return new n(t,e)},r.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e,n={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(e in t)n[e]=t[e];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a<n.retries;a++)i.push(this.createTimeout(a,n));return i.sort(function(t,e){return t-e}),i},r.createTimeout=function(t,e){var n=e.randomize?Math.random()+1:1,t=Math.round(n*e.minTimeout*Math.pow(e.factor,t));return t=Math.min(t,e.maxTimeout)},r.wrap=function(i,a,t){if(a instanceof Array&&(t=a,a=null),!t)for(var e in t=[],i)"function"==typeof i[e]&&t.push(e);for(var n=0;n<t.length;n++){var o=t[n],s=i[o];i[o]=function(){var e=r.operation(a),t=Array.prototype.slice.call(arguments),n=t.pop();t.push(function(t){e.retry(t)||(t&&(arguments[0]=e.mainError()),n.apply(this,arguments))}),e.attempt(function(){s.apply(i,t)})},i[o].options=a}}},{"./retry_operation":28}],28:[function(t,e,n){function i(t,e){this._timeouts=t,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,e&&(this._cachedTimeouts=this._timeouts.slice(0))}(e.exports=i).prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;this._errors.push(t);t=this._timeouts.shift();if(void 0===t){if(!this._cachedTimeouts)return!1;this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),t=this._timeouts.shift()}var e=this;return setTimeout(function(){e._attempts++,e._operationTimeoutCb&&(e._timeout=setTimeout(function(){e._operationTimeoutCb(e._attempts)},e._operationTimeout)),e._fn(e._attempts)},t),!0},i.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._fn(this._attempts)},i.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},i.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},i.prototype.start=i.prototype.try,i.prototype.errors=function(){return this._errors},i.prototype.attempts=function(){return this._attempts},i.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,n=0,i=0;i<this._errors.length;i++){var a=this._errors[i],o=a.message,s=(t[o]||0)+1;n<=(t[o]=s)&&(e=a,n=s)}return e}},{}],29:[function(t,e,n){e.exports=function(){return[].slice.call(arguments,0).join("/").replace(/[\/]+/g,"/").replace(/\/\?/g,"?").replace(/\/\#/g,"#").replace(/\:\//g,"://")}},{}],30:[function(t,e,n){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function l(t){return"object"==typeof t&&null!==t}function c(t){return void 0===t}((e.exports=i).EventEmitter=i).prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},i.prototype.emit=function(t){var e,n,i,a,o,s;if(this._events||(this._events={}),"error"===t&&(!this._events.error||l(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(c(n=this._events[t]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(l(n))for(a=Array.prototype.slice.call(arguments,1),i=(s=n.slice()).length,o=0;o<i;o++)s[o].apply(this,a);return!0},i.prototype.on=i.prototype.addListener=function(t,e){var n;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?l(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,l(this._events[t])&&!this._events[t].warned&&(n=c(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&0<n&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.once=function(t,e){if(!r(e))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},i.prototype.removeListener=function(t,e){var n,i,a,o;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(a=(n=this._events[t]).length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(l(n)){for(o=a;0<o--;)if(n[o]===e||n[o].listener&&n[o].listener===e){i=o;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},i.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},i.prototype.listeners=function(t){t=this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[];return t},i.prototype.listenerCount=function(t){if(this._events){t=this._events[t];if(r(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(t,e){return t.listenerCount(e)}},{}],31:[function(t,e,n){var i,e=e.exports={},a=[],o=!1,s=-1;function r(){o=!1,i.length?a=i.concat(a):s=-1,a.length&&l()}function l(){if(!o){var t=setTimeout(r);o=!0;for(var e=a.length;e;){for(i=a,a=[];++s<e;)i&&i[s].run();s=-1,e=a.length}i=null,o=!1,clearTimeout(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}e.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new c(t,e)),1!==a.length||o||setTimeout(l,0)},c.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=u,e.addListener=u,e.once=u,e.off=u,e.removeListener=u,e.removeAllListeners=u,e.emit=u,e.binding=function(t){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(t){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},{}]},{},[]),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.PerfectScrollbar=e()}(this,function(){"use strict";function p(t){return getComputedStyle(t)}function l(t,e){for(var n in e){var i=e[n];"number"==typeof i&&(i+="px"),t.style[n]=i}return t}function c(t){var e=document.createElement("div");return e.className=t,e}var n="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function r(t,e){if(!n)throw new Error("No element matching method supported");return n.call(t,e)}function i(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function a(t,e){return Array.prototype.filter.call(t.children,function(t){return r(t,e)})}var y={main:"ps",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},o={x:null,y:null};function v(t,e){var n=t.element.classList,t=y.state.scrolling(e);n.contains(t)?clearTimeout(o[e]):n.add(t)}function D(t,e){o[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(y.state.scrolling(e))},t.settings.scrollingThreshold)}function s(t){this.element=t,this.handlers={}}var t={isEmpty:{configurable:!0}};s.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},s.prototype.unbind=function(e,n){var i=this;this.handlers[e]=this.handlers[e].filter(function(t){return!(!n||t===n)||(i.element.removeEventListener(e,t,!1),!1)})},s.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},t.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(s.prototype,t);function u(){this.eventElements=[]}function d(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}u.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new s(e),this.eventElements.push(t)),t},u.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},u.prototype.unbind=function(t,e,n){t=this.eventElement(t);t.unbind(e,n),t.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(t),1)},u.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},u.prototype.once=function(t,e,n){var i=this.eventElement(t),a=function(t){i.unbind(e,a),n(t)};i.bind(e,a)};function e(t,e,n,i,a){var o;if(void 0===i&&(i=!0),void 0===a&&(a=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,n,i,a){var o=n[0],s=n[1],r=n[2],l=n[3],c=n[4],u=n[5];void 0===i&&(i=!0);void 0===a&&(a=!1);n=t.element;t.reach[l]=null,n[r]<1&&(t.reach[l]="start");n[r]>t[o]-t[s]-1&&(t.reach[l]="end");e&&(n.dispatchEvent(d("ps-scroll-"+l)),e<0?n.dispatchEvent(d("ps-scroll-"+c)):0<e&&n.dispatchEvent(d("ps-scroll-"+u)),i&&function(t,e){v(t,e),D(t,e)}(t,l));t.reach[l]&&(e||a)&&n.dispatchEvent(d("ps-"+l+"-reach-"+t.reach[l]))}(t,n,o,i,a)}function f(t){return parseInt(t,10)||0}var h={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},b=function(t){var e=t.element,n=Math.floor(e.scrollTop);t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(a(e,y.element.rail("x")).forEach(i),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(a(e,y.element.rail("y")).forEach(i),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=m(t,f(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=f((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=m(t,f(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=f(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);e.isRtl?n.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:n.left=t.scrollLeft;e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i;l(e.scrollbarXRail,n);i={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?i.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth:i.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?i.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:i.left=e.scrollbarYLeft+t.scrollLeft;l(e.scrollbarYRail,i),l(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),l(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(y.state.active("x")):(e.classList.remove(y.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=0),t.scrollbarYActive?e.classList.add(y.state.active("y")):(e.classList.remove(y.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)};function m(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),e=t.settings.maxScrollbarLength?Math.min(e,t.settings.maxScrollbarLength):e}function g(e,t){var n,i,a,o=t[0],s=t[1],r=t[2],l=t[3],c=t[4],u=t[5],d=t[6],f=t[7],p=t[8],h=e.element;function m(t){h[d]=n+a*(t[r]-i),v(e,f),b(e),t.stopPropagation(),t.preventDefault()}function g(){D(e,f),e[p].classList.remove(y.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",m)}e.event.bind(e[c],"mousedown",function(t){n=h[d],i=t[r],a=(e[s]-e[o])/(e[l]-e[u]),e.event.bind(e.ownerDocument,"mousemove",m),e.event.once(e.ownerDocument,"mouseup",g),e[p].classList.add(y.state.clicking),t.stopPropagation(),t.preventDefault()})}function A(t,e){var n,i=this;if(void 0===e&&(e={}),!(t="string"==typeof t?document.querySelector(t):t)||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(n in(this.element=t).classList.add(y.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)i.settings[n]=e[n];function a(){return t.classList.add(y.state.focus)}function o(){return t.classList.remove(y.state.focus)}this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null,this.isRtl="rtl"===p(t).direction,this.isNegativeScroll=(s=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=s,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new u,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=c(y.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=c(y.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=p(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=f(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=f(s.borderLeftWidth)+f(s.borderRightWidth),l(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=f(s.marginLeft)+f(s.marginRight),l(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=c(y.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=c(y.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var r=p(this.scrollbarYRail);this.scrollbarYRight=parseInt(r.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=f(r.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?f((s=p(s=this.scrollbarY)).width)+f(s.paddingLeft)+f(s.paddingRight)+f(s.borderLeftWidth)+f(s.borderRightWidth):null,this.railBorderYWidth=f(r.borderTopWidth)+f(r.borderBottomWidth),l(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=f(r.marginTop)+f(r.marginBottom),l(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return I[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),b(this)}var I={"click-rail":function(n){n.event.bind(n.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),n.event.bind(n.scrollbarYRail,"mousedown",function(t){var e=t.pageY-window.pageYOffset-n.scrollbarYRail.getBoundingClientRect().top>n.scrollbarYTop?1:-1;n.element.scrollTop+=e*n.containerHeight,b(n),t.stopPropagation()}),n.event.bind(n.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),n.event.bind(n.scrollbarXRail,"mousedown",function(t){var e=t.pageX-window.pageXOffset-n.scrollbarXRail.getBoundingClientRect().left>n.scrollbarXLeft?1:-1;n.element.scrollLeft+=e*n.containerWidth,b(n),t.stopPropagation()})},"drag-thumb":function(t){g(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),g(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(o){var s=o.element;o.event.bind(o.ownerDocument,"keydown",function(t){if(!(t.isDefaultPrevented&&t.isDefaultPrevented()||t.defaultPrevented)&&(r(s,":hover")||r(o.scrollbarX,":focus")||r(o.scrollbarY,":focus"))){var e,n=document.activeElement||o.ownerDocument.activeElement;if(n){if("IFRAME"===n.tagName)n=n.contentDocument.activeElement;else for(;n.shadowRoot;)n=n.shadowRoot.activeElement;if(r(e=n,"input,[contenteditable]")||r(e,"select,[contenteditable]")||r(e,"textarea,[contenteditable]")||r(e,"button,[contenteditable]"))return}var i=0,a=0;switch(t.which){case 37:i=t.metaKey?-o.contentWidth:t.altKey?-o.containerWidth:-30;break;case 38:a=t.metaKey?o.contentHeight:t.altKey?o.containerHeight:30;break;case 39:i=t.metaKey?o.contentWidth:t.altKey?o.containerWidth:30;break;case 40:a=t.metaKey?-o.contentHeight:t.altKey?-o.containerHeight:-30;break;case 32:a=t.shiftKey?o.containerHeight:-o.containerHeight;break;case 33:a=o.containerHeight;break;case 34:a=-o.containerHeight;break;case 36:a=o.contentHeight;break;case 35:a=-o.contentHeight;break;default:return}o.settings.suppressScrollX&&0!==i||o.settings.suppressScrollY&&0!==a||(s.scrollTop-=a,s.scrollLeft+=i,b(o),function(t,e){var n=Math.floor(s.scrollTop);if(0===t){if(!o.scrollbarYActive)return;if(0===n&&0<e||n>=o.contentHeight-o.containerHeight&&e<0)return!o.settings.wheelPropagation}if(n=s.scrollLeft,0===e){if(!o.scrollbarXActive)return;if(0===n&&t<0||n>=o.contentWidth-o.containerWidth&&0<t)return!o.settings.wheelPropagation}return 1}(i,a)&&t.preventDefault())}})},wheel:function(l){var c=l.element;function t(t){var e,n,i,a,o=(i=(n=t).deltaX,a=-1*n.deltaY,void 0!==i&&void 0!==a||(i=-1*n.wheelDeltaX/6,a=n.wheelDeltaY/6),n.deltaMode&&1===n.deltaMode&&(i*=10,a*=10),i!=i&&a!=a&&(i=0,a=n.wheelDelta),n.shiftKey?[-a,-i]:[i,a]),s=o[0],r=o[1];!function(t,e,n){if(!h.isWebKit&&c.querySelector("select:focus"))return 1;if(c.contains(t))for(var i=t;i&&i!==c;){if(i.classList.contains(y.element.consuming))return 1;var a=p(i);if([a.overflow,a.overflowX,a.overflowY].join("").match(/(scroll|auto)/)){a=i.scrollHeight-i.clientHeight;if(0<a&&!(0===i.scrollTop&&0<n||i.scrollTop===a&&n<0))return 1;a=i.scrollWidth-i.clientWidth;if(0<a&&!(0===i.scrollLeft&&e<0||i.scrollLeft===a&&0<e))return 1}i=i.parentNode}}(t.target,s,r)&&(e=!1,l.settings.useBothWheelAxes?l.scrollbarYActive&&!l.scrollbarXActive?(r?c.scrollTop-=r*l.settings.wheelSpeed:c.scrollTop+=s*l.settings.wheelSpeed,e=!0):l.scrollbarXActive&&!l.scrollbarYActive&&(s?c.scrollLeft+=s*l.settings.wheelSpeed:c.scrollLeft-=r*l.settings.wheelSpeed,e=!0):(c.scrollTop-=r*l.settings.wheelSpeed,c.scrollLeft+=s*l.settings.wheelSpeed),b(l),(e=e||(n=s,i=r,a=Math.floor(c.scrollTop),o=0===c.scrollTop,s=a+c.offsetHeight===c.scrollHeight,r=0===c.scrollLeft,a=c.scrollLeft+c.offsetWidth===c.scrollWidth,!(a=Math.abs(i)>Math.abs(n)?o||s:r||a)||!l.settings.wheelPropagation))&&!t.ctrlKey&&(t.stopPropagation(),t.preventDefault()))}void 0!==window.onwheel?l.event.bind(c,"wheel",t):void 0!==window.onmousewheel&&l.event.bind(c,"mousewheel",t)},touch:function(s){var r,o,l,c,e;function u(t,e){r.scrollTop-=e,r.scrollLeft-=t,b(s)}function d(t){return t.targetTouches?t.targetTouches[0]:t}function f(t){return(!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(t.targetTouches&&1===t.targetTouches.length||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function t(t){f(t)&&(t=d(t),o.pageX=t.pageX,o.pageY=t.pageY,l=(new Date).getTime(),null!==e&&clearInterval(e))}function n(t){var e,n,i,a;f(t)&&(e=(a={pageX:(i=d(t)).pageX,pageY:i.pageY}).pageX-o.pageX,n=a.pageY-o.pageY,function(t,e,n){if(r.contains(t))for(var i=t;i&&i!==r;){if(i.classList.contains(y.element.consuming))return 1;var a=p(i);if([a.overflow,a.overflowX,a.overflowY].join("").match(/(scroll|auto)/)){a=i.scrollHeight-i.clientHeight;if(0<a&&!(0===i.scrollTop&&0<n||i.scrollTop===a&&n<0))return 1;a=i.scrollLeft-i.clientWidth;if(0<a&&!(0===i.scrollLeft&&e<0||i.scrollLeft===a&&0<e))return 1}i=i.parentNode}}(t.target,e,n)||(u(e,n),o=a,0<(a=(i=(new Date).getTime())-l)&&(c.x=e/a,c.y=n/a,l=i),function(t,e){var n=Math.floor(r.scrollTop),i=r.scrollLeft,a=Math.abs(t),o=Math.abs(e);if(a<o){if(e<0&&n===s.contentHeight-s.containerHeight||0<e&&0===n)return 0===window.scrollY&&0<e&&h.isChrome}else if(o<a&&(t<0&&i===s.contentWidth-s.containerWidth||0<t&&0===i))return 1;return 1}(e,n)&&t.preventDefault()))}function i(){s.settings.swipeEasing&&(clearInterval(e),e=setInterval(function(){s.isInitialized||!c.x&&!c.y||Math.abs(c.x)<.01&&Math.abs(c.y)<.01?clearInterval(e):(u(30*c.x,30*c.y),c.x*=.8,c.y*=.8)},10))}(h.supportsTouch||h.supportsIePointer)&&(r=s.element,o={},l=0,c={},e=null,h.supportsTouch?(s.event.bind(r,"touchstart",t),s.event.bind(r,"touchmove",n),s.event.bind(r,"touchend",i)):h.supportsIePointer&&(window.PointerEvent?(s.event.bind(r,"pointerdown",t),s.event.bind(r,"pointermove",n),s.event.bind(r,"pointerup",i)):window.MSPointerEvent&&(s.event.bind(r,"MSPointerDown",t),s.event.bind(r,"MSPointerMove",n),s.event.bind(r,"MSPointerUp",i))))}};return A.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,l(this.scrollbarXRail,{display:"block"}),l(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=f(p(this.scrollbarXRail).marginLeft)+f(p(this.scrollbarXRail).marginRight),this.railYMarginHeight=f(p(this.scrollbarYRail).marginTop)+f(p(this.scrollbarYRail).marginBottom),l(this.scrollbarXRail,{display:"none"}),l(this.scrollbarYRail,{display:"none"}),b(this),e(this,"top",0,!1,!0),e(this,"left",0,!1,!0),l(this.scrollbarXRail,{display:""}),l(this.scrollbarYRail,{display:""}))},A.prototype.onScroll=function(t){this.isAlive&&(b(this),e(this,"top",this.element.scrollTop-this.lastScrollTop),e(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},A.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),i(this.scrollbarX),i(this.scrollbarY),i(this.scrollbarXRail),i(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},A.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")},A}),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JsSIP=t()}(function(){return function i(a,o,s){function r(e,t){if(!o[e]){if(!a[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(l)return l(e,!0);n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n=o[e]={exports:{}};a[e][0].call(n.exports,function(t){return r(a[e][1][t]||t)},n,n.exports,i,a,o,s)}return o[e].exports}for(var l="function"==typeof require&&require,t=0;t<s.length;t++)r(s[t]);return r}({1:[function(t,e,n){"use strict";function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return r(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var l=t("./Utils"),i=t("./Constants"),a=t("./Grammar"),s=t("./URI"),c=t("./Socket"),u=t("./Exceptions");n.settings={authorization_user:null,password:null,realm:null,ha1:null,authorization_jwt:null,display_name:null,uri:null,contact_uri:null,instance_id:null,use_preloaded_route:!1,session_timers:!0,session_timers_refresh_method:i.UPDATE,session_timers_force_refresher:!1,no_answer_timeout:60,register:!0,register_expires:600,registrar_server:null,sockets:null,connection_recovery_max_interval:i.CONNECTION_RECOVERY_MAX_INTERVAL,connection_recovery_min_interval:i.CONNECTION_RECOVERY_MIN_INTERVAL,extra_headers:null,via_host:"".concat(l.createRandomToken(12),".invalid")};var d={mandatory:{sockets:function(t){var e=[];if(c.isSocket(t))e.push({socket:t});else{if(!Array.isArray(t)||!t.length)return;var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;Object.prototype.hasOwnProperty.call(a,"socket")&&c.isSocket(a.socket)?e.push(a):c.isSocket(a)&&e.push({socket:a})}}catch(t){i.e(t)}finally{i.f()}}return e},uri:function(t){/^sip:/i.test(t)||(t="".concat(i.SIP,":").concat(t));t=s.parse(t);return t&&t.user?t:void 0}},optional:{authorization_user:function(t){return-1===a.parse('"'.concat(t,'"'),"quoted_string")?void 0:t},authorization_jwt:function(t){if("string"==typeof t)return t},user_agent:function(t){if("string"==typeof t)return t},connection_recovery_max_interval:function(t){if(l.isDecimal(t)){t=Number(t);if(0<t)return t}},connection_recovery_min_interval:function(t){if(l.isDecimal(t)){t=Number(t);if(0<t)return t}},contact_uri:function(t){if("string"==typeof t){t=a.parse(t,"SIP_URI");if(-1!==t)return t}},display_name:function(t){return t},instance_id:function(t){return/^uuid:/i.test(t)&&(t=t.substr(5)),-1===a.parse(t,"uuid")?void 0:t},no_answer_timeout:function(t){if(l.isDecimal(t)){t=Number(t);if(0<t)return t}},session_timers:function(t){if("boolean"==typeof t)return t},session_timers_refresh_method:function(t){if("string"==typeof t&&((t=t.toUpperCase())===i.INVITE||t===i.UPDATE))return t},session_timers_force_refresher:function(t){if("boolean"==typeof t)return t},password:function(t){return String(t)},realm:function(t){return String(t)},ha1:function(t){return String(t)},register:function(t){if("boolean"==typeof t)return t},register_expires:function(t){if(l.isDecimal(t)){t=Number(t);if(0<t)return t}},registrar_server:function(t){/^sip:/i.test(t)||(t="".concat(i.SIP,":").concat(t));t=s.parse(t);return!t||t.user?void 0:t},use_preloaded_route:function(t){if("boolean"==typeof t)return t},extra_headers:function(t){var e=[];if(Array.isArray(t)&&t.length){var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;"string"==typeof a&&e.push(a)}}catch(t){i.e(t)}finally{i.f()}return e}}}};n.load=function(t,e){for(var n in d.mandatory){if(!e.hasOwnProperty(n))throw new u.ConfigurationError(n);var i=e[n],a=d.mandatory[n](i);if(void 0===a)throw new u.ConfigurationError(n,i);t[n]=a}for(var o in d.optional)if(e.hasOwnProperty(o)){var s=e[o];if(l.isEmpty(s))continue;var r=d.optional[o](s);if(void 0===r)throw new u.ConfigurationError(o,s);t[o]=r}}},{"./Constants":2,"./Exceptions":6,"./Grammar":7,"./Socket":23,"./URI":29,"./Utils":30}],2:[function(t,e,n){"use strict";t=t("../package.json");e.exports={USER_AGENT:"".concat(t.title," ").concat(t.version),SIP:"sip",SIPS:"sips",causes:{CONNECTION_ERROR:"Connection Error",REQUEST_TIMEOUT:"Request Timeout",SIP_FAILURE_CODE:"SIP Failure Code",INTERNAL_ERROR:"Internal Error",BUSY:"Busy",REJECTED:"Rejected",REDIRECTED:"Redirected",UNAVAILABLE:"Unavailable",NOT_FOUND:"Not Found",ADDRESS_INCOMPLETE:"Address Incomplete",INCOMPATIBLE_SDP:"Incompatible SDP",MISSING_SDP:"Missing SDP",AUTHENTICATION_ERROR:"Authentication Error",BYE:"Terminated",WEBRTC_ERROR:"WebRTC Error",CANCELED:"Canceled",NO_ANSWER:"No Answer",EXPIRES:"Expires",NO_ACK:"No ACK",DIALOG_ERROR:"Dialog Error",USER_DENIED_MEDIA_ACCESS:"User Denied Media Access",BAD_MEDIA_DESCRIPTION:"Bad Media Description",RTP_TIMEOUT:"RTP Timeout"},SIP_ERROR_CAUSES:{REDIRECTED:[300,301,302,305,380],BUSY:[486,600],REJECTED:[403,603],NOT_FOUND:[404,604],UNAVAILABLE:[480,410,408,430],ADDRESS_INCOMPLETE:[484,424],INCOMPATIBLE_SDP:[488,606],AUTHENTICATION_ERROR:[401,407]},ACK:"ACK",BYE:"BYE",CANCEL:"CANCEL",INFO:"INFO",INVITE:"INVITE",MESSAGE:"MESSAGE",NOTIFY:"NOTIFY",OPTIONS:"OPTIONS",REGISTER:"REGISTER",REFER:"REFER",UPDATE:"UPDATE",SUBSCRIBE:"SUBSCRIBE",DTMF_TRANSPORT:{INFO:"INFO",RFC2833:"RFC2833"},REASON_PHRASE:{100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",424:"Bad Location Information",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"JsSIP Internal Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"},ALLOWED_METHODS:"INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY,SUBSCRIBE",ACCEPTED_BODY_TYPES:"application/sdp, application/dtmf-relay",MAX_FORWARDS:69,SESSION_EXPIRES:90,MIN_SESSION_EXPIRES:60,CONNECTION_RECOVERY_MAX_INTERVAL:30,CONNECTION_RECOVERY_MIN_INTERVAL:2}},{"../package.json":42}],3:[function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("./Logger"),o=t("./SIPMessage"),s=t("./Constants"),r=t("./Transactions"),l=t("./Dialog/RequestSender"),c=t("./Utils"),u=new a("Dialog"),d={STATUS_EARLY:1,STATUS_CONFIRMED:2,STATUS_TERMINATED:3};function f(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:d.STATUS_CONFIRMED;if(function(t){if(!(t instanceof f))throw new TypeError("Cannot call a class as a function")}(this),this._owner=t,this._ua=t._ua,this._uac_pending_reply=!1,this._uas_pending_reply=!1,!e.hasHeader("contact"))return{error:"unable to create a Dialog without Contact header field"};e instanceof o.IncomingResponse&&(i=e.status_code<200?d.STATUS_EARLY:d.STATUS_CONFIRMED);t=e.parseHeader("contact");"UAS"===n?(this._id={call_id:e.call_id,local_tag:e.to_tag,remote_tag:e.from_tag,toString:function(){return this.call_id+this.local_tag+this.remote_tag}},this._state=i,this._remote_seqnum=e.cseq,this._local_uri=e.parseHeader("to").uri,this._remote_uri=e.parseHeader("from").uri,this._remote_target=t.uri,this._route_set=e.getHeaders("record-route"),this._ack_seqnum=this._remote_seqnum):"UAC"===n&&(this._id={call_id:e.call_id,local_tag:e.from_tag,remote_tag:e.to_tag,toString:function(){return this.call_id+this.local_tag+this.remote_tag}},this._state=i,this._local_seqnum=e.cseq,this._local_uri=e.parseHeader("from").uri,this._remote_uri=e.parseHeader("to").uri,this._remote_target=t.uri,this._route_set=e.getHeaders("record-route").reverse(),this._ack_seqnum=null),this._ua.newDialog(this),u.debug("new ".concat(n," dialog created with status ").concat(this._state===d.STATUS_EARLY?"EARLY":"CONFIRMED"))}e.exports=(a=[{key:"C",get:function(){return d}}],i((e=f).prototype,[{key:"id",get:function(){return this._id}},{key:"local_seqnum",get:function(){return this._local_seqnum},set:function(t){this._local_seqnum=t}},{key:"owner",get:function(){return this._owner}},{key:"uac_pending_reply",get:function(){return this._uac_pending_reply},set:function(t){this._uac_pending_reply=t}},{key:"uas_pending_reply",get:function(){return this._uas_pending_reply}},{key:"isTerminated",value:function(){return this._status===d.STATUS_TERMINATED}},{key:"update",value:function(t,e){this._state=d.STATUS_CONFIRMED,u.debug("dialog ".concat(this._id.toString(),"  changed to CONFIRMED state")),"UAC"===e&&(this._route_set=t.getHeaders("record-route").reverse())}},{key:"terminate",value:function(){u.debug("dialog ".concat(this._id.toString()," deleted")),this._ua.destroyDialog(this),this._state=d.STATUS_TERMINATED}},{key:"sendRequest",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=c.cloneArray(n.extraHeaders),a=c.cloneObject(n.eventHandlers),n=n.body||null,n=this._createRequest(t,i,n);return a.onAuthenticated=function(){e._local_seqnum+=1},new l(this,n,a).send(),n}},{key:"receiveRequest",value:function(t){this._checkInDialogRequest(t)&&(t.method===s.ACK&&null!==this._ack_seqnum?this._ack_seqnum=null:t.method===s.INVITE&&(this._ack_seqnum=t.cseq),this._owner.receiveRequest(t))}},{key:"_createRequest",value:function(t,e,n){e=c.cloneArray(e),this._local_seqnum||(this._local_seqnum=Math.floor(1e4*Math.random()));var i=t===s.CANCEL||t===s.ACK?this._local_seqnum:this._local_seqnum+=1;return new o.OutgoingRequest(t,this._remote_target,this._ua,{cseq:i,call_id:this._id.call_id,from_uri:this._local_uri,from_tag:this._id.local_tag,to_uri:this._remote_uri,to_tag:this._id.remote_tag,route_set:this._route_set},e,n)}},{key:"_checkInDialogRequest",value:function(e){var n=this;if(this._remote_seqnum)if(e.cseq<this._remote_seqnum){if(e.method!==s.ACK)return e.reply(500),!1;if(null===this._ack_seqnum||e.cseq!==this._ack_seqnum)return!1}else e.cseq>this._remote_seqnum&&(this._remote_seqnum=e.cseq);else this._remote_seqnum=e.cseq;if(e.method===s.INVITE||e.method===s.UPDATE&&e.body){if(!0===this._uac_pending_reply)e.reply(491);else{if(!0===this._uas_pending_reply){var t=1+(10*Math.random()|0);return e.reply(500,null,["Retry-After:".concat(t)]),!1}this._uas_pending_reply=!0,e.server_transaction.on("stateChanged",function t(){e.server_transaction.state!==r.C.STATUS_ACCEPTED&&e.server_transaction.state!==r.C.STATUS_COMPLETED&&e.server_transaction.state!==r.C.STATUS_TERMINATED||(e.server_transaction.removeListener("stateChanged",t),n._uas_pending_reply=!1)})}e.hasHeader("contact")&&e.server_transaction.on("stateChanged",function(){e.server_transaction.state===r.C.STATUS_ACCEPTED&&(n._remote_target=e.parseHeader("contact").uri)})}else e.method===s.NOTIFY&&e.hasHeader("contact")&&e.server_transaction.on("stateChanged",function(){e.server_transaction.state===r.C.STATUS_COMPLETED&&(n._remote_target=e.parseHeader("contact").uri)});return!0}}]),i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),f)},{"./Constants":2,"./Dialog/RequestSender":4,"./Logger":9,"./SIPMessage":22,"./Transactions":26,"./Utils":30}],4:[function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("../Constants"),o=t("../Transactions"),s=t("../RequestSender"),r={onRequestTimeout:function(){},onTransportError:function(){},onSuccessResponse:function(){},onErrorResponse:function(){},onAuthenticated:function(){},onDialogError:function(){}};function l(t,e,n){for(var i in function(t){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}(this),this._dialog=t,this._ua=t._ua,this._request=e,this._eventHandlers=n,this._reattempt=!1,this._reattemptTimer=null,r)Object.prototype.hasOwnProperty.call(r,i)&&(this._eventHandlers[i]||(this._eventHandlers[i]=r[i]))}e.exports=(i((e=l).prototype,[{key:"request",get:function(){return this._request}},{key:"send",value:function(){var e=this,n=new s(this._ua,this._request,{onRequestTimeout:function(){e._eventHandlers.onRequestTimeout()},onTransportError:function(){e._eventHandlers.onTransportError()},onAuthenticated:function(t){e._eventHandlers.onAuthenticated(t)},onReceiveResponse:function(t){e._receiveResponse(t)}});n.send(),(this._request.method===a.INVITE||this._request.method===a.UPDATE&&this._request.body)&&n.clientTransaction.state!==o.C.STATUS_TERMINATED&&(this._dialog.uac_pending_reply=!0,n.clientTransaction.on("stateChanged",function t(){n.clientTransaction.state!==o.C.STATUS_ACCEPTED&&n.clientTransaction.state!==o.C.STATUS_COMPLETED&&n.clientTransaction.state!==o.C.STATUS_TERMINATED||(n.clientTransaction.removeListener("stateChanged",t),e._dialog.uac_pending_reply=!1)}))}},{key:"_receiveResponse",value:function(t){var e=this;408===t.status_code||481===t.status_code?this._eventHandlers.onDialogError(t):t.method!==a.INVITE||491!==t.status_code||this._reattempt?200<=t.status_code&&t.status_code<300?this._eventHandlers.onSuccessResponse(t):300<=t.status_code&&this._eventHandlers.onErrorResponse(t):(this._request.cseq=this._dialog.local_seqnum+=1,this._reattemptTimer=setTimeout(function(){e._dialog.isTerminated()||(e._reattempt=!0,e.send())},1e3))}}]),Object.defineProperty(e,"prototype",{writable:!1}),l)},{"../Constants":2,"../RequestSender":21,"../Transactions":26}],5:[function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("./Logger"),r=t("./Utils"),l=new a("DigestAuthentication");function o(t){!function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),this._credentials=t,this._cnonce=null,this._nc=0,this._ncHex="00000000",this._algorithm=null,this._realm=null,this._nonce=null,this._opaque=null,this._stale=null,this._qop=null,this._method=null,this._uri=null,this._ha1=null,this._response=null}e.exports=(i((e=o).prototype,[{key:"get",value:function(t){switch(t){case"realm":return this._realm;case"ha1":return this._ha1;default:return void l.warn('get() | cannot get "%s" parameter',t)}}},{key:"authenticate",value:function(t,e){var n=t.method,i=t.ruri,a=t.body,t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(this._algorithm=e.algorithm,this._realm=e.realm,this._nonce=e.nonce,this._opaque=e.opaque,this._stale=e.stale,this._algorithm){if("MD5"!==this._algorithm)return l.warn('authenticate() | challenge with Digest algorithm different than "MD5", authentication aborted'),!1}else this._algorithm="MD5";if(!this._nonce)return l.warn("authenticate() | challenge without Digest nonce, authentication aborted"),!1;if(!this._realm)return l.warn("authenticate() | challenge without Digest realm, authentication aborted"),!1;if(!this._credentials.password){if(!this._credentials.ha1)return l.warn("authenticate() | no plain SIP password nor ha1 provided, authentication aborted"),!1;if(this._credentials.realm!==this._realm)return l.warn('authenticate() | no plain SIP password, and stored `realm` does not match the given `realm`, cannot authenticate [stored:"%s", given:"%s"]',this._credentials.realm,this._realm),!1}if(e.qop)if(-1<e.qop.indexOf("auth-int"))this._qop="auth-int";else{if(!(-1<e.qop.indexOf("auth")))return l.warn('authenticate() | challenge without Digest qop different than "auth" or "auth-int", authentication aborted'),!1;this._qop="auth"}else this._qop=null;this._method=n,this._uri=i,this._cnonce=t||r.createRandomToken(12),this._nc+=1;var o,s,t=Number(this._nc).toString(16);return this._ncHex="00000000".substr(0,8-t.length)+t,4294967296===this._nc&&(this._nc=1,this._ncHex="00000001"),this._credentials.password?this._ha1=r.calculateMD5("".concat(this._credentials.username,":").concat(this._realm,":").concat(this._credentials.password)):this._ha1=this._credentials.ha1,"auth"===this._qop?(o="".concat(this._method,":").concat(this._uri),s=r.calculateMD5(o),l.debug('authenticate() | using qop=auth [a2:"%s"]',o),this._response=r.calculateMD5("".concat(this._ha1,":").concat(this._nonce,":").concat(this._ncHex,":").concat(this._cnonce,":auth:").concat(s))):"auth-int"===this._qop?(o="".concat(this._method,":").concat(this._uri,":").concat(r.calculateMD5(a||"")),s=r.calculateMD5(o),l.debug('authenticate() | using qop=auth-int [a2:"%s"]',o),this._response=r.calculateMD5("".concat(this._ha1,":").concat(this._nonce,":").concat(this._ncHex,":").concat(this._cnonce,":auth-int:").concat(s))):null===this._qop&&(o="".concat(this._method,":").concat(this._uri),s=r.calculateMD5(o),l.debug('authenticate() | using qop=null [a2:"%s"]',o),this._response=r.calculateMD5("".concat(this._ha1,":").concat(this._nonce,":").concat(s))),l.debug("authenticate() | response generated"),!0}},{key:"toString",value:function(){var t=[];if(!this._response)throw new Error("response field does not exist, cannot generate Authorization header");return t.push("algorithm=".concat(this._algorithm)),t.push('username="'.concat(this._credentials.username,'"')),t.push('realm="'.concat(this._realm,'"')),t.push('nonce="'.concat(this._nonce,'"')),t.push('uri="'.concat(this._uri,'"')),t.push('response="'.concat(this._response,'"')),this._opaque&&t.push('opaque="'.concat(this._opaque,'"')),this._qop&&(t.push("qop=".concat(this._qop)),t.push('cnonce="'.concat(this._cnonce,'"')),t.push("nc=".concat(this._ncHex))),"Digest ".concat(t.join(", "))}}]),Object.defineProperty(e,"prototype",{writable:!1}),o)},{"./Logger":9,"./Utils":30}],6:[function(t,e,n){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}function l(n){var i=d();return function(){var t,e=p(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=p(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function c(t){var n="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return u(t,arguments,p(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),f(e,t)})(t)}function u(t,e,n){return(u=d()?Reflect.construct.bind():function(t,e,n){var i=[null];i.push.apply(i,e);i=new(Function.bind.apply(t,i));return n&&f(i,n.prototype),i}).apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(){r(a,c(Error));var i=l(a);function a(t,e){var n;return s(this,a),(n=i.call(this)).code=1,n.name="CONFIGURATION_ERROR",n.parameter=t,n.value=e,n.message=n.value?"Invalid value ".concat(JSON.stringify(n.value),' for parameter "').concat(n.parameter,'"'):"Missing parameter: ".concat(n.parameter),n}return o(a)}(),m=function(){r(i,c(Error));var n=l(i);function i(t){var e;return s(this,i),(e=n.call(this)).code=2,e.name="INVALID_STATE_ERROR",e.status=t,e.message="Invalid status: ".concat(t),e}return o(i)}(),g=function(){r(i,c(Error));var n=l(i);function i(t){var e;return s(this,i),(e=n.call(this)).code=3,e.name="NOT_SUPPORTED_ERROR",e.message=t,e}return o(i)}(),y=function(){r(i,c(Error));var n=l(i);function i(t){var e;return s(this,i),(e=n.call(this)).code=4,e.name="NOT_READY_ERROR",e.message=t,e}return o(i)}();e.exports={ConfigurationError:h,InvalidStateError:m,NotSupportedError:g,NotReadyError:y}},{}],7:[function(Hn,t,e){"use strict";function Yn(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g,escape)+'"'}t.exports=((t={parse:function(g,l){var t={CRLF:s,DIGIT:c,ALPHA:r,HEXDIG:u,WSP:d,OCTET:n,DQUOTE:f,SP:p,HTAB:h,alphanum:a,reserved:i,unreserved:m,mark:b,escaped:A,LWS:I,SWS:M,HCOLON:w,TEXT_UTF8_TRIM:C,TEXT_UTF8char:_,UTF8_NONASCII:T,UTF8_CONT:k,LHEX:function(){var t;return null===(t=c())&&(/^[a-f]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[a-f]"))),t},token:x,token_nodot:N,separators:function(){var t;return 40===g.charCodeAt(y)?(t="(",y++):(t=null,0===v&&D('"("')),null===t&&(41===g.charCodeAt(y)?(t=")",y++):(t=null,0===v&&D('")"')),null===t&&(60===g.charCodeAt(y)?(t="<",y++):(t=null,0===v&&D('"<"')),null===t&&(62===g.charCodeAt(y)?(t=">",y++):(t=null,0===v&&D('">"')),null===t&&(64===g.charCodeAt(y)?(t="@",y++):(t=null,0===v&&D('"@"')),null===t&&(44===g.charCodeAt(y)?(t=",",y++):(t=null,0===v&&D('","')),null===t&&(59===g.charCodeAt(y)?(t=";",y++):(t=null,0===v&&D('";"')),null===t&&(58===g.charCodeAt(y)?(t=":",y++):(t=null,0===v&&D('":"')),null===t&&(92===g.charCodeAt(y)?(t="\\",y++):(t=null,0===v&&D('"\\\\"')),null===t&&null===(t=f())&&(47===g.charCodeAt(y)?(t="/",y++):(t=null,0===v&&D('"/"')),null===t&&(91===g.charCodeAt(y)?(t="[",y++):(t=null,0===v&&D('"["')),null===t&&(93===g.charCodeAt(y)?(t="]",y++):(t=null,0===v&&D('"]"')),null===t&&(63===g.charCodeAt(y)?(t="?",y++):(t=null,0===v&&D('"?"')),null===t&&(61===g.charCodeAt(y)?(t="=",y++):(t=null,0===v&&D('"="')),null===t&&(123===g.charCodeAt(y)?(t="{",y++):(t=null,0===v&&D('"{"')),null===t&&(125===g.charCodeAt(y)?(t="}",y++):(t=null,0===v&&D('"}"')),null===t&&null===(t=p())&&(t=h())))))))))))))))),t},word:S,STAR:E,SLASH:j,EQUAL:O,LPAREN:L,RPAREN:z,RAQUOT:P,LAQUOT:R,COMMA:F,SEMI:U,COLON:B,LDQUOT:H,RDQUOT:Y,comment:function t(){var e,n,i=y,a=L();if(null!==a){for(e=[],null===(n=Q())&&null===(n=Z())&&(n=t());null!==n;)e.push(n),null===(n=Q())&&null===(n=Z())&&(n=t());null!==e&&null!==(n=z())?a=[a,e,n]:(a=null,y=i)}else a=null,y=i;return a},ctext:Q,quoted_string:W,quoted_string_clean:V,qdtext:G,quoted_pair:Z,SIP_URI_noparams:J,SIP_URI:q,uri_scheme:K,uri_scheme_sips:X,uri_scheme_sip:$,userinfo:tt,user:et,user_unreserved:nt,password:it,hostport:at,host:ot,hostname:st,domainlabel:rt,toplabel:lt,IPv6reference:ct,IPv6address:ut,h16:dt,ls32:ft,IPv4address:pt,dec_octet:ht,port:mt,uri_parameters:gt,uri_parameter:yt,transport_param:vt,user_param:Dt,method_param:bt,ttl_param:At,maddr_param:It,lr_param:Mt,other_param:wt,pname:Ct,pvalue:_t,paramchar:Tt,param_unreserved:kt,headers:xt,header:Nt,hname:St,hvalue:Et,hnv_unreserved:jt,Request_Response:function(){var t;return t=null===(t=ce())?Ot():t},Request_Line:Ot,Request_URI:Lt,absoluteURI:zt,hier_part:Pt,net_path:Rt,abs_path:Ft,opaque_part:Ut,uric:Bt,uric_no_slash:Ht,path_segments:Yt,segment:Qt,param:Wt,pchar:Vt,scheme:Gt,authority:Zt,srvr:Jt,reg_name:qt,query:Kt,SIP_Version:Xt,INVITEm:$t,ACKm:te,OPTIONSm:ee,BYEm:ne,CANCELm:ie,REGISTERm:ae,SUBSCRIBEm:oe,NOTIFYm:se,REFERm:re,Method:le,Status_Line:ce,Status_Code:ue,extension_code:de,Reason_Phrase:fe,Allow_Events:function(){var t,e,n,i,a,o=y;if(null!==(t=ze())){for(e=[],a=y,null!==(n=F())&&null!==(i=ze())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=F())&&null!==(i=ze())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},Call_ID:function(){var t,e,n,i,a=y,o=y;return null!==(t=S())?(i=y,64===g.charCodeAt(y)?(e="@",y++):(e=null,0===v&&D('"@"')),null!==e&&null!==(n=S())?e=[e,n]:(e=null,y=i),null!==(e=null!==e?e:"")?t=[t,e]:(t=null,y=o)):(t=null,y=o),null===(t=null!==t?void(Fn=g.substring(y,a)):t)&&(y=a),t},Contact:function(){var t,e,n,i,a,o,s=y;if(null===(t=E()))if(a=y,null!==(t=pe())){for(e=[],o=y,null!==(n=F())&&null!==(i=pe())?n=[n,i]:(n=null,y=o);null!==n;)e.push(n),o=y,null!==(n=F())&&null!==(i=pe())?n=[n,i]:(n=null,y=o);null!==e?t=[t,e]:(t=null,y=a)}else t=null,y=a;return null===(t=null!==t?function(){for(var t=Fn.multi_header.length,e=0;e<t;e++)if(null===Fn.multi_header[e].parsed){Fn=null;break}Fn=null!==Fn?Fn.multi_header:-1}():t)&&(y=s),t},contact_param:pe,name_addr:he,display_name:me,contact_params:ge,c_p_q:ye,c_p_expires:ve,delta_seconds:De,qvalue:be,generic_param:Ae,gen_value:Ie,Content_Disposition:function(){var t,e,n,i,a,o=y;if(null!==(t=Me())){for(e=[],a=y,null!==(n=U())&&null!==(i=we())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=we())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},disp_type:Me,disp_param:we,handling_param:Ce,Content_Encoding:function(){var t,e,n,i,a,o=y;if(null!==(t=x())){for(e=[],a=y,null!==(n=F())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=F())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},Content_Length:function(){var t,e,n=y;if(null!==(e=c()))for(t=[];null!==e;)t.push(e),e=c();else t=null;return null===(t=null!==t?void(Fn=parseInt(t.join(""))):t)&&(y=n),t},Content_Type:function(){var t,e=y;return null===(t=null!==(t=_e())?void(Fn=g.substring(y,e)):t)&&(y=e),t},media_type:_e,m_type:Te,discrete_type:ke,composite_type:xe,extension_token:Ne,x_token:Se,m_subtype:Ee,m_parameter:je,m_value:Oe,CSeq:function(){var t,e,n,i=y;return null!==(t=Le())&&null!==(e=I())&&null!==(n=le())?t=[t,e,n]:(t=null,y=i),t},CSeq_value:Le,Expires:function(){var t,e=y;return null===(t=null!==(t=De())?void(Fn=t):t)&&(y=e),t},Event:function(){var t,e,n,i,a,o=y,s=y;if(null!==(t=ze())){for(e=[],a=y,null!==(n=U())&&null!==(i=Ae())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=Ae())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null!==t&&(s=t[0],t=void(Fn.event=s.join("").toLowerCase())),null===t&&(y=o),t},event_type:ze,From:function(){var t,e,n,i,a,o=y,s=y;if(null!==(t=null===(t=J())?he():t)){for(e=[],a=y,null!==(n=U())&&null!==(i=Pe())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=Pe())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null===(t=null!==t?function(){var t=Fn.tag;try{Fn=new Rn(Fn.uri,Fn.display_name,Fn.params),t&&Fn.setParam("tag",t)}catch(t){Fn=-1}}():t)&&(y=o),t},from_param:Pe,tag_param:Re,Max_Forwards:function(){var t,e,n=y;if(null!==(e=c()))for(t=[];null!==e;)t.push(e),e=c();else t=null;return null===(t=null!==t?void(Fn=parseInt(t.join(""))):t)&&(y=n),t},Min_Expires:function(){var t,e=y;return null===(t=null!==(t=De())?void(Fn=t):t)&&(y=e),t},Name_Addr_Header:function(){for(var t,e,n,i,a,o,s=y,r=y,l=[],c=me();null!==c;)l.push(c),c=me();if(null!==l)if(null!==(c=R()))if(null!==(t=q()))if(null!==(e=P())){for(n=[],o=y,null!==(i=U())&&null!==(a=Ae())?i=[i,a]:(i=null,y=o);null!==i;)n.push(i),o=y,null!==(i=U())&&null!==(a=Ae())?i=[i,a]:(i=null,y=o);null!==n?l=[l,c,t,e,n]:(l=null,y=r)}else l=null,y=r;else l=null,y=r;else l=null,y=r;else l=null,y=r;return null===(l=null!==l?function(){try{Fn=new Rn(Fn.uri,Fn.display_name,Fn.params)}catch(t){Fn=-1}}():l)&&(y=s),l},Proxy_Authenticate:Fe,challenge:Fe,other_challenge:Ue,auth_param:Be,digest_cln:He,realm:Ye,realm_value:Qe,domain:We,URI:Ve,nonce:Ge,nonce_value:Ze,opaque:Je,stale:qe,algorithm:Ke,qop_options:Xe,qop_value:$e,Proxy_Require:function(){var t,e,n,i,a,o=y;if(null!==(t=x())){for(e=[],a=y,null!==(n=F())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=F())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},Record_Route:function(){var t,e,n,i,a,o=y,s=y;if(null!==(t=tn())){for(e=[],a=y,null!==(n=F())&&null!==(i=tn())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=F())&&null!==(i=tn())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null===(t=null!==t?function(){for(var t=Fn.multi_header.length,e=0;e<t;e++)if(null===Fn.multi_header[e].parsed){Fn=null;break}Fn=null!==Fn?Fn.multi_header:-1}():t)&&(y=o),t},rec_route:tn,Reason:function(){var t,e,n,i,a,o=y,s=y;if("sip"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"SIP"')),null!==(t=null===t?x():t)){for(e=[],a=y,null!==(n=U())&&null!==(i=en())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=en())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null!==t&&(s=t[0],Fn.protocol=s.toLowerCase(),Fn.params||(Fn.params={}),t=void(Fn.params.text&&'"'===Fn.params.text[0]&&(s=Fn.params.text,Fn.text=s.substring(1,s.length-1),delete Fn.params.text))),null===t&&(y=o),t},reason_param:en,reason_cause:nn,Require:function(){var t,e,n,i,a,o=y;if(null!==(t=x())){for(e=[],a=y,null!==(n=F())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=F())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},Route:function(){var t,e,n,i,a,o=y;if(null!==(t=an())){for(e=[],a=y,null!==(n=F())&&null!==(i=an())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=F())&&null!==(i=an())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},route_param:an,Subscription_State:function(){var t,e,n,i,a,o=y;if(null!==(t=on())){for(e=[],a=y,null!==(n=U())&&null!==(i=sn())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=sn())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},substate_value:on,subexp_params:sn,event_reason_value:rn,Subject:function(){var t;return null!==(t=C())?t:""},Supported:function(){var t,e,n,i,a,o=y;if(null!==(t=x())){for(e=[],a=y,null!==(n=F())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=F())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return null!==t?t:""},To:function(){var t,e,n,i,a,o=y,s=y;if(null!==(t=null===(t=J())?he():t)){for(e=[],a=y,null!==(n=U())&&null!==(i=ln())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=ln())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null===(t=null!==t?function(){var t=Fn.tag;try{Fn=new Rn(Fn.uri,Fn.display_name,Fn.params),t&&Fn.setParam("tag",t)}catch(t){Fn=-1}}():t)&&(y=o),t},to_param:ln,Via:function(){var t,e,n,i,a,o=y;if(null!==(t=cn())){for(e=[],a=y,null!==(n=F())&&null!==(i=cn())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=F())&&null!==(i=cn())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},via_param:cn,via_params:un,via_ttl:dn,via_maddr:fn,via_received:pn,via_branch:hn,response_port:mn,rport:gn,sent_protocol:yn,protocol_name:vn,transport:Dn,sent_by:bn,via_host:An,via_port:In,ttl:Mn,WWW_Authenticate:Fe,Session_Expires:function(){var t,e,n,i,a,o=y;if(null!==(t=wn())){for(e=[],a=y,null!==(n=U())&&null!==(i=Cn())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=Cn())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},s_e_expires:wn,s_e_params:Cn,s_e_refresher:_n,extension_header:function(){var t,e,n,i=y;return null!==(t=x())&&null!==(e=w())&&null!==(n=Tn())?t=[t,e,n]:(t=null,y=i),t},header_value:Tn,message_body:function(){for(var t=[],e=n();null!==e;)t.push(e),e=n();return t},uuid_URI:function(){var t,e,n=y;return"uuid:"===g.substr(y,5)?(t="uuid:",y+=5):(t=null,0===v&&D('"uuid:"')),null!==t&&null!==(e=kn())?t=[t,e]:(t=null,y=n),t},uuid:kn,hex4:xn,hex8:Nn,hex12:Sn,Refer_To:function(){var t,e,n,i,a,o=y,s=y;if(null!==(t=null===(t=J())?he():t)){for(e=[],a=y,null!==(n=U())&&null!==(i=Ae())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=Ae())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null===(t=null!==t?function(){try{Fn=new Rn(Fn.uri,Fn.display_name,Fn.params)}catch(t){Fn=-1}}():t)&&(y=o),t},Replaces:function(){var t,e,n,i,a,o=y;if(null!==(t=En())){for(e=[],a=y,null!==(n=U())&&null!==(i=jn())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=jn())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t},call_id:En,replaces_param:jn,to_tag:On,from_tag:Ln,early_flag:zn};if(void 0!==l){if(void 0===t[l])throw new Error("Invalid rule name: "+Yn(l)+".")}else l="CRLF";var y=0,v=0,o=0,e=[];function D(t){y<o||(o<y&&(o=y,e=[]),e.push(t))}function s(){var t;return"\r\n"===g.substr(y,2)?(t="\r\n",y+=2):(t=null,0===v&&D('"\\r\\n"')),t}function c(){var t;return/^[0-9]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[0-9]")),t}function r(){var t;return/^[a-zA-Z]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[a-zA-Z]")),t}function u(){var t;return/^[0-9a-fA-F]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[0-9a-fA-F]")),t}function d(){var t;return t=null===(t=p())?h():t}function n(){var t;return/^[\0-\xFF]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[\\0-\\xFF]")),t}function f(){var t;return/^["]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D('["]')),t}function p(){var t;return 32===g.charCodeAt(y)?(t=" ",y++):(t=null,0===v&&D('" "')),t}function h(){var t;return 9===g.charCodeAt(y)?(t="\t",y++):(t=null,0===v&&D('"\\t"')),t}function a(){var t;return/^[a-zA-Z0-9]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[a-zA-Z0-9]")),t}function i(){var t;return 59===g.charCodeAt(y)?(t=";",y++):(t=null,0===v&&D('";"')),null===t&&(47===g.charCodeAt(y)?(t="/",y++):(t=null,0===v&&D('"/"')),null===t&&(63===g.charCodeAt(y)?(t="?",y++):(t=null,0===v&&D('"?"')),null===t&&(58===g.charCodeAt(y)?(t=":",y++):(t=null,0===v&&D('":"')),null===t&&(64===g.charCodeAt(y)?(t="@",y++):(t=null,0===v&&D('"@"')),null===t&&(38===g.charCodeAt(y)?(t="&",y++):(t=null,0===v&&D('"&"')),null===t&&(61===g.charCodeAt(y)?(t="=",y++):(t=null,0===v&&D('"="')),null===t&&(43===g.charCodeAt(y)?(t="+",y++):(t=null,0===v&&D('"+"')),null===t&&(36===g.charCodeAt(y)?(t="$",y++):(t=null,0===v&&D('"$"')),null===t&&(44===g.charCodeAt(y)?(t=",",y++):(t=null,0===v&&D('","'))))))))))),t}function m(){var t;return t=null===(t=a())?b():t}function b(){var t;return 45===g.charCodeAt(y)?(t="-",y++):(t=null,0===v&&D('"-"')),null===t&&(95===g.charCodeAt(y)?(t="_",y++):(t=null,0===v&&D('"_"')),null===t&&(46===g.charCodeAt(y)?(t=".",y++):(t=null,0===v&&D('"."')),null===t&&(33===g.charCodeAt(y)?(t="!",y++):(t=null,0===v&&D('"!"')),null===t&&(126===g.charCodeAt(y)?(t="~",y++):(t=null,0===v&&D('"~"')),null===t&&(42===g.charCodeAt(y)?(t="*",y++):(t=null,0===v&&D('"*"')),null===t&&(39===g.charCodeAt(y)?(t="'",y++):(t=null,0===v&&D('"\'"')),null===t&&(40===g.charCodeAt(y)?(t="(",y++):(t=null,0===v&&D('"("')),null===t&&(41===g.charCodeAt(y)?(t=")",y++):(t=null,0===v&&D('")"')))))))))),t}function A(){var t,e,n,i=y,a=y;return 37===g.charCodeAt(y)?(t="%",y++):(t=null,0===v&&D('"%"')),null!==t&&null!==(e=u())&&null!==(n=u())?t=[t,e,n]:(t=null,y=a),null===(t=null!==t?t.join(""):t)&&(y=i),t}function I(){for(var t,e=y,n=y,i=y,a=[],o=d();null!==o;)a.push(o),o=d();if(null!==a&&null!==(o=s())?a=[a,o]:(a=null,y=i),null!==(a=null!==a?a:"")){if(null!==(t=d()))for(o=[];null!==t;)o.push(t),t=d();else o=null;null!==o?a=[a,o]:(a=null,y=n)}else a=null,y=n;return null===(a=null!==a?" ":a)&&(y=e),a}function M(){var t;return null!==(t=I())?t:""}function w(){var t,e,n=y,i=y,a=[];for(null===(t=p())&&(t=h());null!==t;)a.push(t),null===(t=p())&&(t=h());return null!==a?(58===g.charCodeAt(y)?(t=":",y++):(t=null,0===v&&D('":"')),null!==t&&null!==(e=M())?a=[a,t,e]:(a=null,y=i)):(a=null,y=i),null===(a=null!==a?":":a)&&(y=n),a}function C(){var t,e,n,i,a,o=y,s=y;if(null!==(e=_()))for(t=[];null!==e;)t.push(e),e=_();else t=null;if(null!==t){for(e=[],a=y,n=[],i=I();null!==i;)n.push(i),i=I();for(null!==n&&null!==(i=_())?n=[n,i]:(n=null,y=a);null!==n;){for(e.push(n),a=y,n=[],i=I();null!==i;)n.push(i),i=I();null!==n&&null!==(i=_())?n=[n,i]:(n=null,y=a)}null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null===(t=null!==t?g.substring(y,o):t)&&(y=o),t}function _(){var t;return/^[!-~]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[!-~]")),t=null===t?T():t}function T(){var t;return/^[\x80-\uFFFF]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[\\x80-\\uFFFF]")),t}function k(){var t;return/^[\x80-\xBF]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[\\x80-\\xBF]")),t}function x(){var t,e,n=y;if(null===(e=a())&&(45===g.charCodeAt(y)?(e="-",y++):(e=null,0===v&&D('"-"')),null===e&&(46===g.charCodeAt(y)?(e=".",y++):(e=null,0===v&&D('"."')),null===e&&(33===g.charCodeAt(y)?(e="!",y++):(e=null,0===v&&D('"!"')),null===e&&(37===g.charCodeAt(y)?(e="%",y++):(e=null,0===v&&D('"%"')),null===e&&(42===g.charCodeAt(y)?(e="*",y++):(e=null,0===v&&D('"*"')),null===e&&(95===g.charCodeAt(y)?(e="_",y++):(e=null,0===v&&D('"_"')),null===e&&(43===g.charCodeAt(y)?(e="+",y++):(e=null,0===v&&D('"+"')),null===e&&(96===g.charCodeAt(y)?(e="`",y++):(e=null,0===v&&D('"`"')),null===e&&(39===g.charCodeAt(y)?(e="'",y++):(e=null,0===v&&D('"\'"')),null===e&&(126===g.charCodeAt(y)?(e="~",y++):(e=null,0===v&&D('"~"')))))))))))),null!==e)for(t=[];null!==e;)t.push(e),null===(e=a())&&(45===g.charCodeAt(y)?(e="-",y++):(e=null,0===v&&D('"-"')),null===e&&(46===g.charCodeAt(y)?(e=".",y++):(e=null,0===v&&D('"."')),null===e&&(33===g.charCodeAt(y)?(e="!",y++):(e=null,0===v&&D('"!"')),null===e&&(37===g.charCodeAt(y)?(e="%",y++):(e=null,0===v&&D('"%"')),null===e&&(42===g.charCodeAt(y)?(e="*",y++):(e=null,0===v&&D('"*"')),null===e&&(95===g.charCodeAt(y)?(e="_",y++):(e=null,0===v&&D('"_"')),null===e&&(43===g.charCodeAt(y)?(e="+",y++):(e=null,0===v&&D('"+"')),null===e&&(96===g.charCodeAt(y)?(e="`",y++):(e=null,0===v&&D('"`"')),null===e&&(39===g.charCodeAt(y)?(e="'",y++):(e=null,0===v&&D('"\'"')),null===e&&(126===g.charCodeAt(y)?(e="~",y++):(e=null,0===v&&D('"~"'))))))))))));else t=null;return null===(t=null!==t?g.substring(y,n):t)&&(y=n),t}function N(){var t,e,n=y;if(null===(e=a())&&(45===g.charCodeAt(y)?(e="-",y++):(e=null,0===v&&D('"-"')),null===e&&(33===g.charCodeAt(y)?(e="!",y++):(e=null,0===v&&D('"!"')),null===e&&(37===g.charCodeAt(y)?(e="%",y++):(e=null,0===v&&D('"%"')),null===e&&(42===g.charCodeAt(y)?(e="*",y++):(e=null,0===v&&D('"*"')),null===e&&(95===g.charCodeAt(y)?(e="_",y++):(e=null,0===v&&D('"_"')),null===e&&(43===g.charCodeAt(y)?(e="+",y++):(e=null,0===v&&D('"+"')),null===e&&(96===g.charCodeAt(y)?(e="`",y++):(e=null,0===v&&D('"`"')),null===e&&(39===g.charCodeAt(y)?(e="'",y++):(e=null,0===v&&D('"\'"')),null===e&&(126===g.charCodeAt(y)?(e="~",y++):(e=null,0===v&&D('"~"'))))))))))),null!==e)for(t=[];null!==e;)t.push(e),null===(e=a())&&(45===g.charCodeAt(y)?(e="-",y++):(e=null,0===v&&D('"-"')),null===e&&(33===g.charCodeAt(y)?(e="!",y++):(e=null,0===v&&D('"!"')),null===e&&(37===g.charCodeAt(y)?(e="%",y++):(e=null,0===v&&D('"%"')),null===e&&(42===g.charCodeAt(y)?(e="*",y++):(e=null,0===v&&D('"*"')),null===e&&(95===g.charCodeAt(y)?(e="_",y++):(e=null,0===v&&D('"_"')),null===e&&(43===g.charCodeAt(y)?(e="+",y++):(e=null,0===v&&D('"+"')),null===e&&(96===g.charCodeAt(y)?(e="`",y++):(e=null,0===v&&D('"`"')),null===e&&(39===g.charCodeAt(y)?(e="'",y++):(e=null,0===v&&D('"\'"')),null===e&&(126===g.charCodeAt(y)?(e="~",y++):(e=null,0===v&&D('"~"')))))))))));else t=null;return null===(t=null!==t?g.substring(y,n):t)&&(y=n),t}function S(){var t,e,n=y;if(null===(e=a())&&(45===g.charCodeAt(y)?(e="-",y++):(e=null,0===v&&D('"-"')),null===e&&(46===g.charCodeAt(y)?(e=".",y++):(e=null,0===v&&D('"."')),null===e&&(33===g.charCodeAt(y)?(e="!",y++):(e=null,0===v&&D('"!"')),null===e&&(37===g.charCodeAt(y)?(e="%",y++):(e=null,0===v&&D('"%"')),null===e&&(42===g.charCodeAt(y)?(e="*",y++):(e=null,0===v&&D('"*"')),null===e&&(95===g.charCodeAt(y)?(e="_",y++):(e=null,0===v&&D('"_"')),null===e&&(43===g.charCodeAt(y)?(e="+",y++):(e=null,0===v&&D('"+"')),null===e&&(96===g.charCodeAt(y)?(e="`",y++):(e=null,0===v&&D('"`"')),null===e&&(39===g.charCodeAt(y)?(e="'",y++):(e=null,0===v&&D('"\'"')),null===e&&(126===g.charCodeAt(y)?(e="~",y++):(e=null,0===v&&D('"~"')),null===e&&(40===g.charCodeAt(y)?(e="(",y++):(e=null,0===v&&D('"("')),null===e&&(41===g.charCodeAt(y)?(e=")",y++):(e=null,0===v&&D('")"')),null===e&&(60===g.charCodeAt(y)?(e="<",y++):(e=null,0===v&&D('"<"')),null===e&&(62===g.charCodeAt(y)?(e=">",y++):(e=null,0===v&&D('">"')),null===e&&(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null===e&&(92===g.charCodeAt(y)?(e="\\",y++):(e=null,0===v&&D('"\\\\"')),null===e&&null===(e=f())&&(47===g.charCodeAt(y)?(e="/",y++):(e=null,0===v&&D('"/"')),null===e&&(91===g.charCodeAt(y)?(e="[",y++):(e=null,0===v&&D('"["')),null===e&&(93===g.charCodeAt(y)?(e="]",y++):(e=null,0===v&&D('"]"')),null===e&&(63===g.charCodeAt(y)?(e="?",y++):(e=null,0===v&&D('"?"')),null===e&&(123===g.charCodeAt(y)?(e="{",y++):(e=null,0===v&&D('"{"')),null===e&&(125===g.charCodeAt(y)?(e="}",y++):(e=null,0===v&&D('"}"')))))))))))))))))))))))),null!==e)for(t=[];null!==e;)t.push(e),null===(e=a())&&(45===g.charCodeAt(y)?(e="-",y++):(e=null,0===v&&D('"-"')),null===e&&(46===g.charCodeAt(y)?(e=".",y++):(e=null,0===v&&D('"."')),null===e&&(33===g.charCodeAt(y)?(e="!",y++):(e=null,0===v&&D('"!"')),null===e&&(37===g.charCodeAt(y)?(e="%",y++):(e=null,0===v&&D('"%"')),null===e&&(42===g.charCodeAt(y)?(e="*",y++):(e=null,0===v&&D('"*"')),null===e&&(95===g.charCodeAt(y)?(e="_",y++):(e=null,0===v&&D('"_"')),null===e&&(43===g.charCodeAt(y)?(e="+",y++):(e=null,0===v&&D('"+"')),null===e&&(96===g.charCodeAt(y)?(e="`",y++):(e=null,0===v&&D('"`"')),null===e&&(39===g.charCodeAt(y)?(e="'",y++):(e=null,0===v&&D('"\'"')),null===e&&(126===g.charCodeAt(y)?(e="~",y++):(e=null,0===v&&D('"~"')),null===e&&(40===g.charCodeAt(y)?(e="(",y++):(e=null,0===v&&D('"("')),null===e&&(41===g.charCodeAt(y)?(e=")",y++):(e=null,0===v&&D('")"')),null===e&&(60===g.charCodeAt(y)?(e="<",y++):(e=null,0===v&&D('"<"')),null===e&&(62===g.charCodeAt(y)?(e=">",y++):(e=null,0===v&&D('">"')),null===e&&(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null===e&&(92===g.charCodeAt(y)?(e="\\",y++):(e=null,0===v&&D('"\\\\"')),null===e&&null===(e=f())&&(47===g.charCodeAt(y)?(e="/",y++):(e=null,0===v&&D('"/"')),null===e&&(91===g.charCodeAt(y)?(e="[",y++):(e=null,0===v&&D('"["')),null===e&&(93===g.charCodeAt(y)?(e="]",y++):(e=null,0===v&&D('"]"')),null===e&&(63===g.charCodeAt(y)?(e="?",y++):(e=null,0===v&&D('"?"')),null===e&&(123===g.charCodeAt(y)?(e="{",y++):(e=null,0===v&&D('"{"')),null===e&&(125===g.charCodeAt(y)?(e="}",y++):(e=null,0===v&&D('"}"'))))))))))))))))))))))));else t=null;return null===(t=null!==t?g.substring(y,n):t)&&(y=n),t}function E(){var t,e,n,i=y,a=y;return null!==(t=M())?(42===g.charCodeAt(y)?(e="*",y++):(e=null,0===v&&D('"*"')),null!==e&&null!==(n=M())?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null===(t=null!==t?"*":t)&&(y=i),t}function j(){var t,e,n,i=y,a=y;return null!==(t=M())?(47===g.charCodeAt(y)?(e="/",y++):(e=null,0===v&&D('"/"')),null!==e&&null!==(n=M())?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null===(t=null!==t?"/":t)&&(y=i),t}function O(){var t,e,n,i=y,a=y;return null!==(t=M())?(61===g.charCodeAt(y)?(e="=",y++):(e=null,0===v&&D('"="')),null!==e&&null!==(n=M())?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null===(t=null!==t?"=":t)&&(y=i),t}function L(){var t,e,n,i=y,a=y;return null!==(t=M())?(40===g.charCodeAt(y)?(e="(",y++):(e=null,0===v&&D('"("')),null!==e&&null!==(n=M())?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null===(t=null!==t?"(":t)&&(y=i),t}function z(){var t,e,n,i=y,a=y;return null!==(t=M())?(41===g.charCodeAt(y)?(e=")",y++):(e=null,0===v&&D('")"')),null!==e&&null!==(n=M())?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null===(t=null!==t?")":t)&&(y=i),t}function P(){var t,e,n=y,i=y;return 62===g.charCodeAt(y)?(t=">",y++):(t=null,0===v&&D('">"')),null!==t&&null!==(e=M())?t=[t,e]:(t=null,y=i),null===(t=null!==t?">":t)&&(y=n),t}function R(){var t,e,n=y,i=y;return null!==(t=M())?(60===g.charCodeAt(y)?(e="<",y++):(e=null,0===v&&D('"<"')),null!==e?t=[t,e]:(t=null,y=i)):(t=null,y=i),null===(t=null!==t?"<":t)&&(y=n),t}function F(){var t,e,n,i=y,a=y;return null!==(t=M())?(44===g.charCodeAt(y)?(e=",",y++):(e=null,0===v&&D('","')),null!==e&&null!==(n=M())?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null===(t=null!==t?",":t)&&(y=i),t}function U(){var t,e,n,i=y,a=y;return null!==(t=M())?(59===g.charCodeAt(y)?(e=";",y++):(e=null,0===v&&D('";"')),null!==e&&null!==(n=M())?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null===(t=null!==t?";":t)&&(y=i),t}function B(){var t,e,n,i=y,a=y;return null!==(t=M())?(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=M())?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null===(t=null!==t?":":t)&&(y=i),t}function H(){var t,e,n=y,i=y;return null!==(t=M())&&null!==(e=f())?t=[t,e]:(t=null,y=i),null===(t=null!==t?'"':t)&&(y=n),t}function Y(){var t,e,n=y,i=y;return null!==(t=f())&&null!==(e=M())?t=[t,e]:(t=null,y=i),null===(t=null!==t?'"':t)&&(y=n),t}function Q(){var t;return/^[!-']/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[!-']")),null===t&&(/^[*-[]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[*-[]")),null===t&&(/^[\]-~]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[\\]-~]")),null===t&&null===(t=T())&&(t=I()))),t}function W(){var t,e,n,i,a=y,o=y;if(null!==(t=M()))if(null!==(e=f())){for(n=[],null===(i=G())&&(i=Z());null!==i;)n.push(i),null===(i=G())&&(i=Z());null!==n&&null!==(i=f())?t=[t,e,n,i]:(t=null,y=o)}else t=null,y=o;else t=null,y=o;return null===(t=null!==t?g.substring(y,a):t)&&(y=a),t}function V(){var t,e,n,i,a=y,o=y;if(null!==(t=M()))if(null!==(e=f())){for(n=[],null===(i=G())&&(i=Z());null!==i;)n.push(i),null===(i=G())&&(i=Z());null!==n&&null!==(i=f())?t=[t,e,n,i]:(t=null,y=o)}else t=null,y=o;else t=null,y=o;return null===(t=null!==t?(o=g.substring(y,a).trim()).substring(1,o.length-1).replace(/\\([\x00-\x09\x0b-\x0c\x0e-\x7f])/g,"$1"):t)&&(y=a),t}function G(){var t;return null===(t=I())&&(33===g.charCodeAt(y)?(t="!",y++):(t=null,0===v&&D('"!"')),null===t&&(/^[#-[]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[#-[]")),null===t&&(/^[\]-~]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[\\]-~]")),null===t&&(t=T())))),t}function Z(){var t,e,n=y;return 92===g.charCodeAt(y)?(t="\\",y++):(t=null,0===v&&D('"\\\\"')),null!==t?(/^[\0-\t]/.test(g.charAt(y))?(e=g.charAt(y),y++):(e=null,0===v&&D("[\\0-\\t]")),null===e&&(/^[\x0B-\f]/.test(g.charAt(y))?(e=g.charAt(y),y++):(e=null,0===v&&D("[\\x0B-\\f]")),null===e&&(/^[\x0E-]/.test(g.charAt(y))?(e=g.charAt(y),y++):(e=null,0===v&&D("[\\x0E-]")))),null!==e?t=[t,e]:(t=null,y=n)):(t=null,y=n),t}function J(){var t,e,n,i,a=y,o=y;return null!==(t=K())?(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=null!==(n=tt())?n:"")&&null!==(i=at())?t=[t,e,n,i]:(t=null,y=o)):(t=null,y=o),null===(t=null!==t?function(){try{Fn.uri=new Pn(Fn.scheme,Fn.user,Fn.host,Fn.port),delete Fn.scheme,delete Fn.user,delete Fn.host,delete Fn.host_type,delete Fn.port}catch(t){Fn=-1}}():t)&&(y=a),t}function q(){var t,e,n,i,a,o,s=y,r=y;return null!==(t=K())?(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=null!==(n=tt())?n:"")&&null!==(i=at())&&null!==(a=gt())&&null!==(o=null!==(o=xt())?o:"")?t=[t,e,n,i,a,o]:(t=null,y=r)):(t=null,y=r),null===(t=null!==t?function(){try{Fn.uri=new Pn(Fn.scheme,Fn.user,Fn.host,Fn.port,Fn.uri_params,Fn.uri_headers),delete Fn.scheme,delete Fn.user,delete Fn.host,delete Fn.host_type,delete Fn.port,delete Fn.uri_params,"SIP_URI"===l&&(Fn=Fn.uri)}catch(t){Fn=-1}}():t)&&(y=s),t}function K(){var t;return t=null===(t=X())?$():t}function X(){var t,e,n=y;return"sips"===g.substr(y,4).toLowerCase()?(t=g.substr(y,4),y+=4):(t=null,0===v&&D('"sips"')),null!==t&&(e=t,t=void(Fn.scheme=e.toLowerCase())),null===t&&(y=n),t}function $(){var t,e,n=y;return"sip"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"sip"')),null!==t&&(e=t,t=void(Fn.scheme=e.toLowerCase())),null===t&&(y=n),t}function tt(){var t,e,n,i,a=y,o=y;return null!==(t=et())?(i=y,58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=it())?e=[e,n]:(e=null,y=i),null!==(e=null!==e?e:"")?(64===g.charCodeAt(y)?(n="@",y++):(n=null,0===v&&D('"@"')),null!==n?t=[t,e,n]:(t=null,y=o)):(t=null,y=o)):(t=null,y=o),null===(t=null!==t?void(Fn.user=decodeURIComponent(g.substring(y-1,a))):t)&&(y=a),t}function et(){var t,e;if(null!==(e=null===(e=m())&&null===(e=A())?nt():e))for(t=[];null!==e;)t.push(e),null===(e=m())&&null===(e=A())&&(e=nt());else t=null;return t}function nt(){var t;return 38===g.charCodeAt(y)?(t="&",y++):(t=null,0===v&&D('"&"')),null===t&&(61===g.charCodeAt(y)?(t="=",y++):(t=null,0===v&&D('"="')),null===t&&(43===g.charCodeAt(y)?(t="+",y++):(t=null,0===v&&D('"+"')),null===t&&(36===g.charCodeAt(y)?(t="$",y++):(t=null,0===v&&D('"$"')),null===t&&(44===g.charCodeAt(y)?(t=",",y++):(t=null,0===v&&D('","')),null===t&&(59===g.charCodeAt(y)?(t=";",y++):(t=null,0===v&&D('";"')),null===t&&(63===g.charCodeAt(y)?(t="?",y++):(t=null,0===v&&D('"?"')),null===t&&(47===g.charCodeAt(y)?(t="/",y++):(t=null,0===v&&D('"/"'))))))))),t}function it(){var t,e=y,n=[];for(null===(t=m())&&null===(t=A())&&(38===g.charCodeAt(y)?(t="&",y++):(t=null,0===v&&D('"&"')),null===t&&(61===g.charCodeAt(y)?(t="=",y++):(t=null,0===v&&D('"="')),null===t&&(43===g.charCodeAt(y)?(t="+",y++):(t=null,0===v&&D('"+"')),null===t&&(36===g.charCodeAt(y)?(t="$",y++):(t=null,0===v&&D('"$"')),null===t&&(44===g.charCodeAt(y)?(t=",",y++):(t=null,0===v&&D('","')))))));null!==t;)n.push(t),null===(t=m())&&null===(t=A())&&(38===g.charCodeAt(y)?(t="&",y++):(t=null,0===v&&D('"&"')),null===t&&(61===g.charCodeAt(y)?(t="=",y++):(t=null,0===v&&D('"="')),null===t&&(43===g.charCodeAt(y)?(t="+",y++):(t=null,0===v&&D('"+"')),null===t&&(36===g.charCodeAt(y)?(t="$",y++):(t=null,0===v&&D('"$"')),null===t&&(44===g.charCodeAt(y)?(t=",",y++):(t=null,0===v&&D('","')))))));return null===(n=null!==n?void(Fn.password=g.substring(y,e)):n)&&(y=e),n}function at(){var t,e,n,i,a=y;return null!==(t=ot())?(i=y,58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=mt())?e=[e,n]:(e=null,y=i),null!==(e=null!==e?e:"")?t=[t,e]:(t=null,y=a)):(t=null,y=a),t}function ot(){var t,e=y;return null!==(t=null===(t=st())&&null===(t=pt())?ct():t)&&(Fn.host=g.substring(y,e).toLowerCase(),t=Fn.host),null===t&&(y=e),t}function st(){var t,e,n=y,i=y,a=[],o=y;for(null!==(t=rt())?(46===g.charCodeAt(y)?(e=".",y++):(e=null,0===v&&D('"."')),null!==e?t=[t,e]:(t=null,y=o)):(t=null,y=o);null!==t;)a.push(t),o=y,null!==(t=rt())?(46===g.charCodeAt(y)?(e=".",y++):(e=null,0===v&&D('"."')),null!==e?t=[t,e]:(t=null,y=o)):(t=null,y=o);return null!==a&&null!==(t=lt())?(46===g.charCodeAt(y)?(e=".",y++):(e=null,0===v&&D('"."')),null!==(e=null!==e?e:"")?a=[a,t,e]:(a=null,y=i)):(a=null,y=i),null!==a&&(i=n,Fn.host_type="domain",a=g.substring(y,i)),null===a&&(y=n),a}function rt(){var t,e,n,i=y;if(null!==(t=a())){for(e=[],null===(n=a())&&(45===g.charCodeAt(y)?(n="-",y++):(n=null,0===v&&D('"-"')),null===n&&(95===g.charCodeAt(y)?(n="_",y++):(n=null,0===v&&D('"_"'))));null!==n;)e.push(n),null===(n=a())&&(45===g.charCodeAt(y)?(n="-",y++):(n=null,0===v&&D('"-"')),null===n&&(95===g.charCodeAt(y)?(n="_",y++):(n=null,0===v&&D('"_"'))));null!==e?t=[t,e]:(t=null,y=i)}else t=null,y=i;return t}function lt(){var t,e,n,i=y;if(null!==(t=r())){for(e=[],null===(n=a())&&(45===g.charCodeAt(y)?(n="-",y++):(n=null,0===v&&D('"-"')),null===n&&(95===g.charCodeAt(y)?(n="_",y++):(n=null,0===v&&D('"_"'))));null!==n;)e.push(n),null===(n=a())&&(45===g.charCodeAt(y)?(n="-",y++):(n=null,0===v&&D('"-"')),null===n&&(95===g.charCodeAt(y)?(n="_",y++):(n=null,0===v&&D('"_"'))));null!==e?t=[t,e]:(t=null,y=i)}else t=null,y=i;return t}function ct(){var t,e,n,i=y,a=y;return 91===g.charCodeAt(y)?(t="[",y++):(t=null,0===v&&D('"["')),null!==t&&null!==(e=ut())?(93===g.charCodeAt(y)?(n="]",y++):(n=null,0===v&&D('"]"')),null!==n?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null!==t&&(a=i,Fn.host_type="IPv6",t=g.substring(y,a)),null===t&&(y=i),t}function ut(){var t,e,n,i,a,o,s,r,l,c,u,d,f,p,h=y,m=y;return null!==(t=dt())?(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=dt())?(58===g.charCodeAt(y)?(i=":",y++):(i=null,0===v&&D('":"')),null!==i&&null!==(a=dt())?(58===g.charCodeAt(y)?(o=":",y++):(o=null,0===v&&D('":"')),null!==o&&null!==(s=dt())?(58===g.charCodeAt(y)?(r=":",y++):(r=null,0===v&&D('":"')),null!==r&&null!==(l=dt())?(58===g.charCodeAt(y)?(c=":",y++):(c=null,0===v&&D('":"')),null!==c&&null!==(u=dt())?(58===g.charCodeAt(y)?(d=":",y++):(d=null,0===v&&D('":"')),null!==d&&null!==(f=ft())?t=[t,e,n,i,a,o,s,r,l,c,u,d,f]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,"::"===g.substr(y,2)?(t="::",y+=2):(t=null,0===v&&D('"::"')),null!==t&&null!==(e=dt())?(58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=dt())?(58===g.charCodeAt(y)?(a=":",y++):(a=null,0===v&&D('":"')),null!==a&&null!==(o=dt())?(58===g.charCodeAt(y)?(s=":",y++):(s=null,0===v&&D('":"')),null!==s&&null!==(r=dt())?(58===g.charCodeAt(y)?(l=":",y++):(l=null,0===v&&D('":"')),null!==l&&null!==(c=dt())?(58===g.charCodeAt(y)?(u=":",y++):(u=null,0===v&&D('":"')),null!==u&&null!==(d=ft())?t=[t,e,n,i,a,o,s,r,l,c,u,d]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,"::"===g.substr(y,2)?(t="::",y+=2):(t=null,0===v&&D('"::"')),null!==t&&null!==(e=dt())?(58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=dt())?(58===g.charCodeAt(y)?(a=":",y++):(a=null,0===v&&D('":"')),null!==a&&null!==(o=dt())?(58===g.charCodeAt(y)?(s=":",y++):(s=null,0===v&&D('":"')),null!==s&&null!==(r=dt())?(58===g.charCodeAt(y)?(l=":",y++):(l=null,0===v&&D('":"')),null!==l&&null!==(c=ft())?t=[t,e,n,i,a,o,s,r,l,c]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,"::"===g.substr(y,2)?(t="::",y+=2):(t=null,0===v&&D('"::"')),null!==t&&null!==(e=dt())?(58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=dt())?(58===g.charCodeAt(y)?(a=":",y++):(a=null,0===v&&D('":"')),null!==a&&null!==(o=dt())?(58===g.charCodeAt(y)?(s=":",y++):(s=null,0===v&&D('":"')),null!==s&&null!==(r=ft())?t=[t,e,n,i,a,o,s,r]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,"::"===g.substr(y,2)?(t="::",y+=2):(t=null,0===v&&D('"::"')),null!==t&&null!==(e=dt())?(58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=dt())?(58===g.charCodeAt(y)?(a=":",y++):(a=null,0===v&&D('":"')),null!==a&&null!==(o=ft())?t=[t,e,n,i,a,o]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,"::"===g.substr(y,2)?(t="::",y+=2):(t=null,0===v&&D('"::"')),null!==t&&null!==(e=dt())?(58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=ft())?t=[t,e,n,i]:(t=null,y=m)):(t=null,y=m),null===t&&(m=y,"::"===g.substr(y,2)?(t="::",y+=2):(t=null,0===v&&D('"::"')),null!==t&&null!==(e=ft())?t=[t,e]:(t=null,y=m),null===t&&(m=y,"::"===g.substr(y,2)?(t="::",y+=2):(t=null,0===v&&D('"::"')),null!==t&&null!==(e=dt())?t=[t,e]:(t=null,y=m),null===t&&(m=y,null!==(t=dt())?("::"===g.substr(y,2)?(e="::",y+=2):(e=null,0===v&&D('"::"')),null!==e&&null!==(n=dt())?(58===g.charCodeAt(y)?(i=":",y++):(i=null,0===v&&D('":"')),null!==i&&null!==(a=dt())?(58===g.charCodeAt(y)?(o=":",y++):(o=null,0===v&&D('":"')),null!==o&&null!==(s=dt())?(58===g.charCodeAt(y)?(r=":",y++):(r=null,0===v&&D('":"')),null!==r&&null!==(l=dt())?(58===g.charCodeAt(y)?(c=":",y++):(c=null,0===v&&D('":"')),null!==c&&null!==(u=ft())?t=[t,e,n,i,a,o,s,r,l,c,u]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,null!==(t=dt())?(p=y,58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=dt())?e=[e,n]:(e=null,y=p),null!==(e=null!==e?e:"")?("::"===g.substr(y,2)?(n="::",y+=2):(n=null,0===v&&D('"::"')),null!==n&&null!==(i=dt())?(58===g.charCodeAt(y)?(a=":",y++):(a=null,0===v&&D('":"')),null!==a&&null!==(o=dt())?(58===g.charCodeAt(y)?(s=":",y++):(s=null,0===v&&D('":"')),null!==s&&null!==(r=dt())?(58===g.charCodeAt(y)?(l=":",y++):(l=null,0===v&&D('":"')),null!==l&&null!==(c=ft())?t=[t,e,n,i,a,o,s,r,l,c]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,null!==(t=dt())?(p=y,58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=dt())?e=[e,n]:(e=null,y=p),null!==(e=null!==e?e:"")?(p=y,58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=dt())?n=[n,i]:(n=null,y=p),null!==(n=null!==n?n:"")?("::"===g.substr(y,2)?(i="::",y+=2):(i=null,0===v&&D('"::"')),null!==i&&null!==(a=dt())?(58===g.charCodeAt(y)?(o=":",y++):(o=null,0===v&&D('":"')),null!==o&&null!==(s=dt())?(58===g.charCodeAt(y)?(r=":",y++):(r=null,0===v&&D('":"')),null!==r&&null!==(l=ft())?t=[t,e,n,i,a,o,s,r,l]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,null!==(t=dt())?(p=y,58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=dt())?e=[e,n]:(e=null,y=p),null!==(e=null!==e?e:"")?(p=y,58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=dt())?n=[n,i]:(n=null,y=p),null!==(n=null!==n?n:"")?(p=y,58===g.charCodeAt(y)?(i=":",y++):(i=null,0===v&&D('":"')),null!==i&&null!==(a=dt())?i=[i,a]:(i=null,y=p),null!==(i=null!==i?i:"")?("::"===g.substr(y,2)?(a="::",y+=2):(a=null,0===v&&D('"::"')),null!==a&&null!==(o=dt())?(58===g.charCodeAt(y)?(s=":",y++):(s=null,0===v&&D('":"')),null!==s&&null!==(r=ft())?t=[t,e,n,i,a,o,s,r]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,null!==(t=dt())?(p=y,58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=dt())?e=[e,n]:(e=null,y=p),null!==(e=null!==e?e:"")?(p=y,58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=dt())?n=[n,i]:(n=null,y=p),null!==(n=null!==n?n:"")?(p=y,58===g.charCodeAt(y)?(i=":",y++):(i=null,0===v&&D('":"')),null!==i&&null!==(a=dt())?i=[i,a]:(i=null,y=p),null!==(i=null!==i?i:"")?(p=y,58===g.charCodeAt(y)?(a=":",y++):(a=null,0===v&&D('":"')),null!==a&&null!==(o=dt())?a=[a,o]:(a=null,y=p),null!==(a=null!==a?a:"")?("::"===g.substr(y,2)?(o="::",y+=2):(o=null,0===v&&D('"::"')),null!==o&&null!==(s=ft())?t=[t,e,n,i,a,o,s]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,null!==(t=dt())?(p=y,58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=dt())?e=[e,n]:(e=null,y=p),null!==(e=null!==e?e:"")?(p=y,58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=dt())?n=[n,i]:(n=null,y=p),null!==(n=null!==n?n:"")?(p=y,58===g.charCodeAt(y)?(i=":",y++):(i=null,0===v&&D('":"')),null!==i&&null!==(a=dt())?i=[i,a]:(i=null,y=p),null!==(i=null!==i?i:"")?(p=y,58===g.charCodeAt(y)?(a=":",y++):(a=null,0===v&&D('":"')),null!==a&&null!==(o=dt())?a=[a,o]:(a=null,y=p),null!==(a=null!==a?a:"")?(p=y,58===g.charCodeAt(y)?(o=":",y++):(o=null,0===v&&D('":"')),null!==o&&null!==(s=dt())?o=[o,s]:(o=null,y=p),null!==(o=null!==o?o:"")?("::"===g.substr(y,2)?(s="::",y+=2):(s=null,0===v&&D('"::"')),null!==s&&null!==(r=dt())?t=[t,e,n,i,a,o,s,r]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m),null===t&&(m=y,null!==(t=dt())?(p=y,58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=dt())?e=[e,n]:(e=null,y=p),null!==(e=null!==e?e:"")?(p=y,58===g.charCodeAt(y)?(n=":",y++):(n=null,0===v&&D('":"')),null!==n&&null!==(i=dt())?n=[n,i]:(n=null,y=p),null!==(n=null!==n?n:"")?(p=y,58===g.charCodeAt(y)?(i=":",y++):(i=null,0===v&&D('":"')),null!==i&&null!==(a=dt())?i=[i,a]:(i=null,y=p),null!==(i=null!==i?i:"")?(p=y,58===g.charCodeAt(y)?(a=":",y++):(a=null,0===v&&D('":"')),null!==a&&null!==(o=dt())?a=[a,o]:(a=null,y=p),null!==(a=null!==a?a:"")?(p=y,58===g.charCodeAt(y)?(o=":",y++):(o=null,0===v&&D('":"')),null!==o&&null!==(s=dt())?o=[o,s]:(o=null,y=p),null!==(o=null!==o?o:"")?(p=y,58===g.charCodeAt(y)?(s=":",y++):(s=null,0===v&&D('":"')),null!==s&&null!==(r=dt())?s=[s,r]:(s=null,y=p),null!==(s=null!==s?s:"")?("::"===g.substr(y,2)?(r="::",y+=2):(r=null,0===v&&D('"::"')),null!==r?t=[t,e,n,i,a,o,s,r]:(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m)):(t=null,y=m))))))))))))))),null!==t&&(m=h,Fn.host_type="IPv6",t=g.substring(y,m)),null===t&&(y=h),t}function dt(){var t,e,n,i,a=y;return null!==(t=u())&&null!==(e=null!==(e=u())?e:"")&&null!==(n=null!==(n=u())?n:"")&&null!==(i=null!==(i=u())?i:"")?t=[t,e,n,i]:(t=null,y=a),t}function ft(){var t,e,n,i=y;return null!==(t=dt())?(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e&&null!==(n=dt())?t=[t,e,n]:(t=null,y=i)):(t=null,y=i),t=null===t?pt():t}function pt(){var t,e,n,i,a,o,s,r=y,l=y;return null!==(t=ht())?(46===g.charCodeAt(y)?(e=".",y++):(e=null,0===v&&D('"."')),null!==e&&null!==(n=ht())?(46===g.charCodeAt(y)?(i=".",y++):(i=null,0===v&&D('"."')),null!==i&&null!==(a=ht())?(46===g.charCodeAt(y)?(o=".",y++):(o=null,0===v&&D('"."')),null!==o&&null!==(s=ht())?t=[t,e,n,i,a,o,s]:(t=null,y=l)):(t=null,y=l)):(t=null,y=l)):(t=null,y=l),null!==t&&(l=r,Fn.host_type="IPv4",t=g.substring(y,l)),null===t&&(y=r),t}function ht(){var t,e,n,i=y;return"25"===g.substr(y,2)?(t="25",y+=2):(t=null,0===v&&D('"25"')),null!==t?(/^[0-5]/.test(g.charAt(y))?(e=g.charAt(y),y++):(e=null,0===v&&D("[0-5]")),null!==e?t=[t,e]:(t=null,y=i)):(t=null,y=i),null===t&&(i=y,50===g.charCodeAt(y)?(t="2",y++):(t=null,0===v&&D('"2"')),null!==t?(/^[0-4]/.test(g.charAt(y))?(e=g.charAt(y),y++):(e=null,0===v&&D("[0-4]")),null!==e&&null!==(n=c())?t=[t,e,n]:(t=null,y=i)):(t=null,y=i),null===t&&(i=y,49===g.charCodeAt(y)?(t="1",y++):(t=null,0===v&&D('"1"')),null!==t&&null!==(e=c())&&null!==(n=c())?t=[t,e,n]:(t=null,y=i),null===t&&(i=y,/^[1-9]/.test(g.charAt(y))?(t=g.charAt(y),y++):(t=null,0===v&&D("[1-9]")),null!==t&&null!==(e=c())?t=[t,e]:(t=null,y=i),null===t&&(t=c())))),t}function mt(){var t,e,n,i,a,o=y,s=y;return null!==(t=null!==(t=c())?t:"")&&null!==(e=null!==(e=c())?e:"")&&null!==(n=null!==(n=c())?n:"")&&null!==(i=null!==(i=c())?i:"")&&null!==(a=null!==(a=c())?a:"")?t=[t,e,n,i,a]:(t=null,y=s),null!==t&&(s=t,s=parseInt(s.join("")),t=Fn.port=s),null===t&&(y=o),t}function gt(){var t,e,n=[],i=y;for(59===g.charCodeAt(y)?(t=";",y++):(t=null,0===v&&D('";"')),null!==t&&null!==(e=yt())?t=[t,e]:(t=null,y=i);null!==t;)n.push(t),i=y,59===g.charCodeAt(y)?(t=";",y++):(t=null,0===v&&D('";"')),null!==t&&null!==(e=yt())?t=[t,e]:(t=null,y=i);return n}function yt(){var t;return t=null===(t=vt())&&null===(t=Dt())&&null===(t=bt())&&null===(t=At())&&null===(t=It())&&null===(t=Mt())?wt():t}function vt(){var t,e,n=y,i=y;return"transport="===g.substr(y,10).toLowerCase()?(t=g.substr(y,10),y+=10):(t=null,0===v&&D('"transport="')),null!==t?("udp"===g.substr(y,3).toLowerCase()?(e=g.substr(y,3),y+=3):(e=null,0===v&&D('"udp"')),null===e&&("tcp"===g.substr(y,3).toLowerCase()?(e=g.substr(y,3),y+=3):(e=null,0===v&&D('"tcp"')),null===e&&("sctp"===g.substr(y,4).toLowerCase()?(e=g.substr(y,4),y+=4):(e=null,0===v&&D('"sctp"')),null===e&&("tls"===g.substr(y,3).toLowerCase()?(e=g.substr(y,3),y+=3):(e=null,0===v&&D('"tls"')),null===e&&(e=x())))),null!==e?t=[t,e]:(t=null,y=i)):(t=null,y=i),null!==t&&(i=t[1],Fn.uri_params||(Fn.uri_params={}),t=void(Fn.uri_params.transport=i.toLowerCase())),null===t&&(y=n),t}function Dt(){var t,e,n=y,i=y;return"user="===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"user="')),null!==t?("phone"===g.substr(y,5).toLowerCase()?(e=g.substr(y,5),y+=5):(e=null,0===v&&D('"phone"')),null===e&&("ip"===g.substr(y,2).toLowerCase()?(e=g.substr(y,2),y+=2):(e=null,0===v&&D('"ip"')),null===e&&(e=x())),null!==e?t=[t,e]:(t=null,y=i)):(t=null,y=i),null!==t&&(i=t[1],Fn.uri_params||(Fn.uri_params={}),t=void(Fn.uri_params.user=i.toLowerCase())),null===t&&(y=n),t}function bt(){var t,e,n=y,i=y;return"method="===g.substr(y,7).toLowerCase()?(t=g.substr(y,7),y+=7):(t=null,0===v&&D('"method="')),null!==t&&null!==(e=le())?t=[t,e]:(t=null,y=i),null!==t&&(i=t[1],Fn.uri_params||(Fn.uri_params={}),t=void(Fn.uri_params.method=i)),null===t&&(y=n),t}function At(){var t,e,n=y,i=y;return"ttl="===g.substr(y,4).toLowerCase()?(t=g.substr(y,4),y+=4):(t=null,0===v&&D('"ttl="')),null!==t&&null!==(e=Mn())?t=[t,e]:(t=null,y=i),null!==t&&(i=t[1],Fn.params||(Fn.params={}),t=void(Fn.params.ttl=i)),null===t&&(y=n),t}function It(){var t,e,n=y,i=y;return"maddr="===g.substr(y,6).toLowerCase()?(t=g.substr(y,6),y+=6):(t=null,0===v&&D('"maddr="')),null!==t&&null!==(e=ot())?t=[t,e]:(t=null,y=i),null!==t&&(i=t[1],Fn.uri_params||(Fn.uri_params={}),t=void(Fn.uri_params.maddr=i)),null===t&&(y=n),t}function Mt(){var t,e,n,i,a=y,o=y;return"lr"===g.substr(y,2).toLowerCase()?(t=g.substr(y,2),y+=2):(t=null,0===v&&D('"lr"')),null!==t?(i=y,61===g.charCodeAt(y)?(e="=",y++):(e=null,0===v&&D('"="')),null!==e&&null!==(n=x())?e=[e,n]:(e=null,y=i),null!==(e=null!==e?e:"")?t=[t,e]:(t=null,y=o)):(t=null,y=o),null!==t&&(Fn.uri_params||(Fn.uri_params={}),t=void(Fn.uri_params.lr=void 0)),null===t&&(y=a),t}function wt(){var t,e,n,i,a=y,o=y;return null!==(t=Ct())?(n=y,61===g.charCodeAt(y)?(i="=",y++):(i=null,0===v&&D('"="')),null!==i&&null!==(e=_t())?i=[i,e]:(i=null,y=n),null!==(i=null!==i?i:"")?t=[t,i]:(t=null,y=o)):(t=null,y=o),null!==t&&(i=t[0],o=t[1],Fn.uri_params||(Fn.uri_params={}),o=void 0===o?void 0:o[1],t=void(Fn.uri_params[i.toLowerCase()]=o)),null===t&&(y=a),t}function Ct(){var t,e,n=y;if(null!==(e=Tt()))for(t=[];null!==e;)t.push(e),e=Tt();else t=null;return null===(t=null!==t?t.join(""):t)&&(y=n),t}function _t(){var t,e,n=y;if(null!==(e=Tt()))for(t=[];null!==e;)t.push(e),e=Tt();else t=null;return null===(t=null!==t?t.join(""):t)&&(y=n),t}function Tt(){var t;return t=null===(t=kt())&&null===(t=m())?A():t}function kt(){var t;return 91===g.charCodeAt(y)?(t="[",y++):(t=null,0===v&&D('"["')),null===t&&(93===g.charCodeAt(y)?(t="]",y++):(t=null,0===v&&D('"]"')),null===t&&(47===g.charCodeAt(y)?(t="/",y++):(t=null,0===v&&D('"/"')),null===t&&(58===g.charCodeAt(y)?(t=":",y++):(t=null,0===v&&D('":"')),null===t&&(38===g.charCodeAt(y)?(t="&",y++):(t=null,0===v&&D('"&"')),null===t&&(43===g.charCodeAt(y)?(t="+",y++):(t=null,0===v&&D('"+"')),null===t&&(36===g.charCodeAt(y)?(t="$",y++):(t=null,0===v&&D('"$"')))))))),t}function xt(){var t,e,n,i,a,o,s=y;if(63===g.charCodeAt(y)?(t="?",y++):(t=null,0===v&&D('"?"')),null!==t)if(null!==(e=Nt())){for(n=[],o=y,38===g.charCodeAt(y)?(i="&",y++):(i=null,0===v&&D('"&"')),null!==i&&null!==(a=Nt())?i=[i,a]:(i=null,y=o);null!==i;)n.push(i),o=y,38===g.charCodeAt(y)?(i="&",y++):(i=null,0===v&&D('"&"')),null!==i&&null!==(a=Nt())?i=[i,a]:(i=null,y=o);null!==n?t=[t,e,n]:(t=null,y=s)}else t=null,y=s;else t=null,y=s;return t}function Nt(){var t,e,n,i=y,a=y;return null!==(t=St())?(61===g.charCodeAt(y)?(e="=",y++):(e=null,0===v&&D('"="')),null!==e&&null!==(n=Et())?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null!==t&&(n=t[0],a=t[2],n=n.join("").toLowerCase(),a=a.join(""),Fn.uri_headers||(Fn.uri_headers={}),t=void(Fn.uri_headers[n]?Fn.uri_headers[n].push(a):Fn.uri_headers[n]=[a])),null===t&&(y=i),t}function St(){var t,e;if(null!==(e=null===(e=jt())&&null===(e=m())?A():e))for(t=[];null!==e;)t.push(e),null===(e=jt())&&null===(e=m())&&(e=A());else t=null;return t}function Et(){var t,e=[];for(null===(t=jt())&&null===(t=m())&&(t=A());null!==t;)e.push(t),null===(t=jt())&&null===(t=m())&&(t=A());return e}function jt(){var t;return 91===g.charCodeAt(y)?(t="[",y++):(t=null,0===v&&D('"["')),null===t&&(93===g.charCodeAt(y)?(t="]",y++):(t=null,0===v&&D('"]"')),null===t&&(47===g.charCodeAt(y)?(t="/",y++):(t=null,0===v&&D('"/"')),null===t&&(63===g.charCodeAt(y)?(t="?",y++):(t=null,0===v&&D('"?"')),null===t&&(58===g.charCodeAt(y)?(t=":",y++):(t=null,0===v&&D('":"')),null===t&&(43===g.charCodeAt(y)?(t="+",y++):(t=null,0===v&&D('"+"')),null===t&&(36===g.charCodeAt(y)?(t="$",y++):(t=null,0===v&&D('"$"')))))))),t}function Ot(){var t,e,n,i,a,o=y;return null!==(t=le())&&null!==(e=p())&&null!==(n=Lt())&&null!==(i=p())&&null!==(a=Xt())?t=[t,e,n,i,a]:(t=null,y=o),t}function Lt(){var t;return t=null===(t=q())?zt():t}function zt(){var t,e,n,i=y;return null!==(t=Gt())?(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null!==e?null!==(n=null===(n=Pt())?Ut():n)?t=[t,e,n]:(t=null,y=i):(t=null,y=i)):(t=null,y=i),t}function Pt(){var t,e,n,i,a=y;return null!==(t=null===(t=Rt())?Ft():t)?(i=y,63===g.charCodeAt(y)?(e="?",y++):(e=null,0===v&&D('"?"')),null!==e&&null!==(n=Kt())?e=[e,n]:(e=null,y=i),null!==(e=null!==e?e:"")?t=[t,e]:(t=null,y=a)):(t=null,y=a),t}function Rt(){var t,e,n,i=y;return"//"===g.substr(y,2)?(t="//",y+=2):(t=null,0===v&&D('"//"')),null!==t&&null!==(e=Zt())&&null!==(n=null!==(n=Ft())?n:"")?t=[t,e,n]:(t=null,y=i),t}function Ft(){var t,e,n=y;return 47===g.charCodeAt(y)?(t="/",y++):(t=null,0===v&&D('"/"')),null!==t&&null!==(e=Yt())?t=[t,e]:(t=null,y=n),t}function Ut(){var t,e,n,i=y;if(null!==(t=Ht())){for(e=[],n=Bt();null!==n;)e.push(n),n=Bt();null!==e?t=[t,e]:(t=null,y=i)}else t=null,y=i;return t}function Bt(){var t;return t=null===(t=i())&&null===(t=m())?A():t}function Ht(){var t;return null===(t=m())&&null===(t=A())&&(59===g.charCodeAt(y)?(t=";",y++):(t=null,0===v&&D('";"')),null===t&&(63===g.charCodeAt(y)?(t="?",y++):(t=null,0===v&&D('"?"')),null===t&&(58===g.charCodeAt(y)?(t=":",y++):(t=null,0===v&&D('":"')),null===t&&(64===g.charCodeAt(y)?(t="@",y++):(t=null,0===v&&D('"@"')),null===t&&(38===g.charCodeAt(y)?(t="&",y++):(t=null,0===v&&D('"&"')),null===t&&(61===g.charCodeAt(y)?(t="=",y++):(t=null,0===v&&D('"="')),null===t&&(43===g.charCodeAt(y)?(t="+",y++):(t=null,0===v&&D('"+"')),null===t&&(36===g.charCodeAt(y)?(t="$",y++):(t=null,0===v&&D('"$"')),null===t&&(44===g.charCodeAt(y)?(t=",",y++):(t=null,0===v&&D('","'))))))))))),t}function Yt(){var t,e,n,i,a,o=y;if(null!==(t=Qt())){for(e=[],a=y,47===g.charCodeAt(y)?(n="/",y++):(n=null,0===v&&D('"/"')),null!==n&&null!==(i=Qt())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,47===g.charCodeAt(y)?(n="/",y++):(n=null,0===v&&D('"/"')),null!==n&&null!==(i=Qt())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t}function Qt(){for(var t,e,n,i=y,a=[],o=Vt();null!==o;)a.push(o),o=Vt();if(null!==a){for(o=[],n=y,59===g.charCodeAt(y)?(t=";",y++):(t=null,0===v&&D('";"')),null!==t&&null!==(e=Wt())?t=[t,e]:(t=null,y=n);null!==t;)o.push(t),n=y,59===g.charCodeAt(y)?(t=";",y++):(t=null,0===v&&D('";"')),null!==t&&null!==(e=Wt())?t=[t,e]:(t=null,y=n);null!==o?a=[a,o]:(a=null,y=i)}else a=null,y=i;return a}function Wt(){for(var t=[],e=Vt();null!==e;)t.push(e),e=Vt();return t}function Vt(){var t;return null===(t=m())&&null===(t=A())&&(58===g.charCodeAt(y)?(t=":",y++):(t=null,0===v&&D('":"')),null===t&&(64===g.charCodeAt(y)?(t="@",y++):(t=null,0===v&&D('"@"')),null===t&&(38===g.charCodeAt(y)?(t="&",y++):(t=null,0===v&&D('"&"')),null===t&&(61===g.charCodeAt(y)?(t="=",y++):(t=null,0===v&&D('"="')),null===t&&(43===g.charCodeAt(y)?(t="+",y++):(t=null,0===v&&D('"+"')),null===t&&(36===g.charCodeAt(y)?(t="$",y++):(t=null,0===v&&D('"$"')),null===t&&(44===g.charCodeAt(y)?(t=",",y++):(t=null,0===v&&D('","'))))))))),t}function Gt(){var t,e,n,i=y,a=y;if(null!==(t=r())){for(e=[],null===(n=r())&&null===(n=c())&&(43===g.charCodeAt(y)?(n="+",y++):(n=null,0===v&&D('"+"')),null===n&&(45===g.charCodeAt(y)?(n="-",y++):(n=null,0===v&&D('"-"')),null===n&&(46===g.charCodeAt(y)?(n=".",y++):(n=null,0===v&&D('"."')))));null!==n;)e.push(n),null===(n=r())&&null===(n=c())&&(43===g.charCodeAt(y)?(n="+",y++):(n=null,0===v&&D('"+"')),null===n&&(45===g.charCodeAt(y)?(n="-",y++):(n=null,0===v&&D('"-"')),null===n&&(46===g.charCodeAt(y)?(n=".",y++):(n=null,0===v&&D('"."')))));null!==e?t=[t,e]:(t=null,y=a)}else t=null,y=a;return null===(t=null!==t?void(Fn.scheme=g.substring(y,i)):t)&&(y=i),t}function Zt(){var t;return t=null===(t=Jt())?qt():t}function Jt(){var t,e,n=y,i=y;return null!==(t=tt())?(64===g.charCodeAt(y)?(e="@",y++):(e=null,0===v&&D('"@"')),null!==e?t=[t,e]:(t=null,y=i)):(t=null,y=i),null!==(t=null!==t?t:"")&&null!==(e=at())?t=[t,e]:(t=null,y=n),null!==t?t:""}function qt(){var t,e;if(null===(e=m())&&null===(e=A())&&(36===g.charCodeAt(y)?(e="$",y++):(e=null,0===v&&D('"$"')),null===e&&(44===g.charCodeAt(y)?(e=",",y++):(e=null,0===v&&D('","')),null===e&&(59===g.charCodeAt(y)?(e=";",y++):(e=null,0===v&&D('";"')),null===e&&(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null===e&&(64===g.charCodeAt(y)?(e="@",y++):(e=null,0===v&&D('"@"')),null===e&&(38===g.charCodeAt(y)?(e="&",y++):(e=null,0===v&&D('"&"')),null===e&&(61===g.charCodeAt(y)?(e="=",y++):(e=null,0===v&&D('"="')),null===e&&(43===g.charCodeAt(y)?(e="+",y++):(e=null,0===v&&D('"+"')))))))))),null!==e)for(t=[];null!==e;)t.push(e),null===(e=m())&&null===(e=A())&&(36===g.charCodeAt(y)?(e="$",y++):(e=null,0===v&&D('"$"')),null===e&&(44===g.charCodeAt(y)?(e=",",y++):(e=null,0===v&&D('","')),null===e&&(59===g.charCodeAt(y)?(e=";",y++):(e=null,0===v&&D('";"')),null===e&&(58===g.charCodeAt(y)?(e=":",y++):(e=null,0===v&&D('":"')),null===e&&(64===g.charCodeAt(y)?(e="@",y++):(e=null,0===v&&D('"@"')),null===e&&(38===g.charCodeAt(y)?(e="&",y++):(e=null,0===v&&D('"&"')),null===e&&(61===g.charCodeAt(y)?(e="=",y++):(e=null,0===v&&D('"="')),null===e&&(43===g.charCodeAt(y)?(e="+",y++):(e=null,0===v&&D('"+"'))))))))));else t=null;return t}function Kt(){for(var t=[],e=Bt();null!==e;)t.push(e),e=Bt();return t}function Xt(){var t,e,n,i,a,o,s=y,r=y;if("sip"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"SIP"')),null!==t)if(47===g.charCodeAt(y)?(e="/",y++):(e=null,0===v&&D('"/"')),null!==e){if(null!==(i=c()))for(n=[];null!==i;)n.push(i),i=c();else n=null;if(null!==n)if(46===g.charCodeAt(y)?(i=".",y++):(i=null,0===v&&D('"."')),null!==i){if(null!==(o=c()))for(a=[];null!==o;)a.push(o),o=c();else a=null;null!==a?t=[t,e,n,i,a]:(t=null,y=r)}else t=null,y=r;else t=null,y=r}else t=null,y=r;else t=null,y=r;return null===(t=null!==t?void(Fn.sip_version=g.substring(y,s)):t)&&(y=s),t}function $t(){var t;return"INVITE"===g.substr(y,6)?(t="INVITE",y+=6):(t=null,0===v&&D('"INVITE"')),t}function te(){var t;return"ACK"===g.substr(y,3)?(t="ACK",y+=3):(t=null,0===v&&D('"ACK"')),t}function ee(){var t;return"OPTIONS"===g.substr(y,7)?(t="OPTIONS",y+=7):(t=null,0===v&&D('"OPTIONS"')),t}function ne(){var t;return"BYE"===g.substr(y,3)?(t="BYE",y+=3):(t=null,0===v&&D('"BYE"')),t}function ie(){var t;return"CANCEL"===g.substr(y,6)?(t="CANCEL",y+=6):(t=null,0===v&&D('"CANCEL"')),t}function ae(){var t;return"REGISTER"===g.substr(y,8)?(t="REGISTER",y+=8):(t=null,0===v&&D('"REGISTER"')),t}function oe(){var t;return"SUBSCRIBE"===g.substr(y,9)?(t="SUBSCRIBE",y+=9):(t=null,0===v&&D('"SUBSCRIBE"')),t}function se(){var t;return"NOTIFY"===g.substr(y,6)?(t="NOTIFY",y+=6):(t=null,0===v&&D('"NOTIFY"')),t}function re(){var t;return"REFER"===g.substr(y,5)?(t="REFER",y+=5):(t=null,0===v&&D('"REFER"')),t}function le(){var t,e=y;return null!==(t=null===(t=$t())&&null===(t=te())&&null===(t=ee())&&null===(t=ne())&&null===(t=ie())&&null===(t=ae())&&null===(t=oe())&&null===(t=se())&&null===(t=re())?x():t)&&(Fn.method=g.substring(y,e),t=Fn.method),null===t&&(y=e),t}function ce(){var t,e,n,i,a,o=y;return null!==(t=Xt())&&null!==(e=p())&&null!==(n=ue())&&null!==(i=p())&&null!==(a=fe())?t=[t,e,n,i,a]:(t=null,y=o),t}function ue(){var t,e,n=y;return null!==(t=de())&&(e=t,t=void(Fn.status_code=parseInt(e.join("")))),null===t&&(y=n),t}function de(){var t,e,n,i=y;return null!==(t=c())&&null!==(e=c())&&null!==(n=c())?t=[t,e,n]:(t=null,y=i),t}function fe(){var t,e=y,n=[];for(null===(t=i())&&null===(t=m())&&null===(t=A())&&null===(t=T())&&null===(t=k())&&null===(t=p())&&(t=h());null!==t;)n.push(t),null===(t=i())&&null===(t=m())&&null===(t=A())&&null===(t=T())&&null===(t=k())&&null===(t=p())&&(t=h());return null===(n=null!==n?void(Fn.reason_phrase=g.substring(y,e)):n)&&(y=e),n}function pe(){var t,e,n,i,a,o=y,s=y;if(null!==(t=null===(t=J())?he():t)){for(e=[],a=y,null!==(n=U())&&null!==(i=ge())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=ge())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null===(t=null!==t?function(t){var e;Fn.multi_header||(Fn.multi_header=[]);try{e=new Rn(Fn.uri,Fn.display_name,Fn.params),delete Fn.uri,delete Fn.display_name,delete Fn.params}catch(t){e=null}Fn.multi_header.push({possition:y,offset:t,parsed:e})}(o):t)&&(y=o),t}function he(){var t,e,n,i,a=y;return null!==(t=null!==(t=me())?t:"")&&null!==(e=R())&&null!==(n=q())&&null!==(i=P())?t=[t,e,n,i]:(t=null,y=a),t}function me(){var t,e,n,i,a,o=y,s=y;if(null!==(t=x())){for(e=[],a=y,null!==(n=I())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=I())&&null!==(i=x())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null!==(t=null===t?V():t)&&(s=t,t=void(Fn.display_name="string"==typeof s?s:s[1].reduce(function(t,e){return t+e[0]+e[1]},s[0]))),null===t&&(y=o),t}function ge(){var t;return t=null===(t=ye())&&null===(t=ve())?Ae():t}function ye(){var t,e,n,i=y,a=y;return"q"===g.substr(y,1).toLowerCase()?(t=g.substr(y,1),y++):(t=null,0===v&&D('"q"')),null!==t&&null!==(e=O())&&null!==(n=be())?t=[t,e,n]:(t=null,y=a),null!==t&&(a=t[2],Fn.params||(Fn.params={}),t=void(Fn.params.q=a)),null===t&&(y=i),t}function ve(){var t,e,n,i=y,a=y;return"expires"===g.substr(y,7).toLowerCase()?(t=g.substr(y,7),y+=7):(t=null,0===v&&D('"expires"')),null!==t&&null!==(e=O())&&null!==(n=De())?t=[t,e,n]:(t=null,y=a),null!==t&&(a=t[2],Fn.params||(Fn.params={}),t=void(Fn.params.expires=a)),null===t&&(y=i),t}function De(){var t,e,n=y;if(null!==(e=c()))for(t=[];null!==e;)t.push(e),e=c();else t=null;return null===(t=null!==t?parseInt(t.join("")):t)&&(y=n),t}function be(){var t,e,n,i,a,o,s=y,r=y;return 48===g.charCodeAt(y)?(t="0",y++):(t=null,0===v&&D('"0"')),null!==t?(o=y,46===g.charCodeAt(y)?(e=".",y++):(e=null,0===v&&D('"."')),null!==e&&null!==(n=null!==(n=c())?n:"")&&null!==(i=null!==(i=c())?i:"")&&null!==(a=null!==(a=c())?a:"")?e=[e,n,i,a]:(e=null,y=o),null!==(e=null!==e?e:"")?t=[t,e]:(t=null,y=r)):(t=null,y=r),null===(t=null!==t?parseFloat(g.substring(y,s)):t)&&(y=s),t}function Ae(){var t,e,n,i,a=y,o=y;return null!==(t=x())?(n=y,null!==(i=O())&&null!==(e=Ie())?i=[i,e]:(i=null,y=n),null!==(i=null!==i?i:"")?t=[t,i]:(t=null,y=o)):(t=null,y=o),null!==t&&(i=t[0],o=t[1],Fn.params||(Fn.params={}),o=void 0===o?void 0:o[1],t=void(Fn.params[i.toLowerCase()]=o)),null===t&&(y=a),t}function Ie(){var t;return t=null===(t=x())&&null===(t=ot())?W():t}function Me(){var t;return"render"===g.substr(y,6).toLowerCase()?(t=g.substr(y,6),y+=6):(t=null,0===v&&D('"render"')),null===t&&("session"===g.substr(y,7).toLowerCase()?(t=g.substr(y,7),y+=7):(t=null,0===v&&D('"session"')),null===t&&("icon"===g.substr(y,4).toLowerCase()?(t=g.substr(y,4),y+=4):(t=null,0===v&&D('"icon"')),null===t&&("alert"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"alert"')),null===t&&(t=x())))),t}function we(){var t;return t=null===(t=Ce())?Ae():t}function Ce(){var t,e,n,i=y;return"handling"===g.substr(y,8).toLowerCase()?(t=g.substr(y,8),y+=8):(t=null,0===v&&D('"handling"')),null!==t&&null!==(e=O())?("optional"===g.substr(y,8).toLowerCase()?(n=g.substr(y,8),y+=8):(n=null,0===v&&D('"optional"')),null===n&&("required"===g.substr(y,8).toLowerCase()?(n=g.substr(y,8),y+=8):(n=null,0===v&&D('"required"')),null===n&&(n=x())),null!==n?t=[t,e,n]:(t=null,y=i)):(t=null,y=i),t}function _e(){var t,e,n,i,a,o,s,r=y;if(null!==(t=Te()))if(null!==(e=j()))if(null!==(n=Ee())){for(i=[],s=y,null!==(a=U())&&null!==(o=je())?a=[a,o]:(a=null,y=s);null!==a;)i.push(a),s=y,null!==(a=U())&&null!==(o=je())?a=[a,o]:(a=null,y=s);null!==i?t=[t,e,n,i]:(t=null,y=r)}else t=null,y=r;else t=null,y=r;else t=null,y=r;return t}function Te(){var t;return t=null===(t=ke())?xe():t}function ke(){var t;return"text"===g.substr(y,4).toLowerCase()?(t=g.substr(y,4),y+=4):(t=null,0===v&&D('"text"')),null===t&&("image"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"image"')),null===t&&("audio"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"audio"')),null===t&&("video"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"video"')),null===t&&("application"===g.substr(y,11).toLowerCase()?(t=g.substr(y,11),y+=11):(t=null,0===v&&D('"application"')),null===t&&(t=Ne()))))),t}function xe(){var t;return"message"===g.substr(y,7).toLowerCase()?(t=g.substr(y,7),y+=7):(t=null,0===v&&D('"message"')),null===t&&("multipart"===g.substr(y,9).toLowerCase()?(t=g.substr(y,9),y+=9):(t=null,0===v&&D('"multipart"')),null===t&&(t=Ne())),t}function Ne(){var t;return t=null===(t=x())?Se():t}function Se(){var t,e,n=y;return"x-"===g.substr(y,2).toLowerCase()?(t=g.substr(y,2),y+=2):(t=null,0===v&&D('"x-"')),null!==t&&null!==(e=x())?t=[t,e]:(t=null,y=n),t}function Ee(){var t;return t=null===(t=Ne())?x():t}function je(){var t,e,n,i=y;return null!==(t=x())&&null!==(e=O())&&null!==(n=Oe())?t=[t,e,n]:(t=null,y=i),t}function Oe(){var t;return t=null===(t=x())?W():t}function Le(){var t,e,n,i=y;if(null!==(e=c()))for(t=[];null!==e;)t.push(e),e=c();else t=null;return null!==t&&(n=t,t=void(Fn.value=parseInt(n.join("")))),null===t&&(y=i),t}function ze(){var t,e,n,i,a,o=y;if(null!==(t=N())){for(e=[],a=y,46===g.charCodeAt(y)?(n=".",y++):(n=null,0===v&&D('"."')),null!==n&&null!==(i=N())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,46===g.charCodeAt(y)?(n=".",y++):(n=null,0===v&&D('"."')),null!==n&&null!==(i=N())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t}function Pe(){var t;return t=null===(t=Re())?Ae():t}function Re(){var t,e,n,i=y,a=y;return"tag"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"tag"')),null!==t&&null!==(e=O())&&null!==(n=x())?t=[t,e,n]:(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.tag=a)),null===t&&(y=i),t}function Fe(){var t,e,n,i,a,o,s,r=y;if("digest"===g.substr(y,6).toLowerCase()?(t=g.substr(y,6),y+=6):(t=null,0===v&&D('"Digest"')),null!==t)if(null!==(e=I()))if(null!==(n=He())){for(i=[],s=y,null!==(a=F())&&null!==(o=He())?a=[a,o]:(a=null,y=s);null!==a;)i.push(a),s=y,null!==(a=F())&&null!==(o=He())?a=[a,o]:(a=null,y=s);null!==i?t=[t,e,n,i]:(t=null,y=r)}else t=null,y=r;else t=null,y=r;else t=null,y=r;return t=null===t?Ue():t}function Ue(){var t,e,n,i,a,o,s,r=y;if(null!==(t=x()))if(null!==(e=I()))if(null!==(n=Be())){for(i=[],s=y,null!==(a=F())&&null!==(o=Be())?a=[a,o]:(a=null,y=s);null!==a;)i.push(a),s=y,null!==(a=F())&&null!==(o=Be())?a=[a,o]:(a=null,y=s);null!==i?t=[t,e,n,i]:(t=null,y=r)}else t=null,y=r;else t=null,y=r;else t=null,y=r;return t}function Be(){var t,e,n,i=y;return null!==(t=x())&&null!==(e=O())?null!==(n=null===(n=x())?W():n)?t=[t,e,n]:(t=null,y=i):(t=null,y=i),t}function He(){var t;return t=null===(t=Ye())&&null===(t=We())&&null===(t=Ge())&&null===(t=Je())&&null===(t=qe())&&null===(t=Ke())&&null===(t=Xe())?Be():t}function Ye(){var t,e,n,i=y;return"realm"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"realm"')),null!==t&&null!==(e=O())&&null!==(n=Qe())?t=[t,e,n]:(t=null,y=i),t}function Qe(){var t,e,n=y;return null!==(t=V())&&(e=t,t=void(Fn.realm=e)),null===t&&(y=n),t}function We(){var t,e,n,i,a,o,s,r,l=y;if("domain"===g.substr(y,6).toLowerCase()?(t=g.substr(y,6),y+=6):(t=null,0===v&&D('"domain"')),null!==t)if(null!==(e=O()))if(null!==(n=H()))if(null!==(i=Ve())){if(a=[],r=y,null!==(s=p()))for(o=[];null!==s;)o.push(s),s=p();else o=null;for(null!==o&&null!==(s=Ve())?o=[o,s]:(o=null,y=r);null!==o;){if(a.push(o),r=y,null!==(s=p()))for(o=[];null!==s;)o.push(s),s=p();else o=null;null!==o&&null!==(s=Ve())?o=[o,s]:(o=null,y=r)}null!==a&&null!==(o=Y())?t=[t,e,n,i,a,o]:(t=null,y=l)}else t=null,y=l;else t=null,y=l;else t=null,y=l;else t=null,y=l;return t}function Ve(){var t;return t=null===(t=zt())?Ft():t}function Ge(){var t,e,n,i=y;return"nonce"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"nonce"')),null!==t&&null!==(e=O())&&null!==(n=Ze())?t=[t,e,n]:(t=null,y=i),t}function Ze(){var t,e,n=y;return null!==(t=V())&&(e=t,t=void(Fn.nonce=e)),null===t&&(y=n),t}function Je(){var t,e,n,i=y,a=y;return"opaque"===g.substr(y,6).toLowerCase()?(t=g.substr(y,6),y+=6):(t=null,0===v&&D('"opaque"')),null!==t&&null!==(e=O())&&null!==(n=V())?t=[t,e,n]:(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.opaque=a)),null===t&&(y=i),t}function qe(){var t,e,n,i,a=y;return"stale"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"stale"')),null!==t&&null!==(e=O())?(i=y,"true"===g.substr(y,4).toLowerCase()?(n=g.substr(y,4),y+=4):(n=null,0===v&&D('"true"')),null===(n=null!==n?void(Fn.stale=!0):n)&&(y=i),null===n&&(i=y,"false"===g.substr(y,5).toLowerCase()?(n=g.substr(y,5),y+=5):(n=null,0===v&&D('"false"')),null===(n=null!==n?void(Fn.stale=!1):n)&&(y=i)),null!==n?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),t}function Ke(){var t,e,n,i=y,a=y;return"algorithm"===g.substr(y,9).toLowerCase()?(t=g.substr(y,9),y+=9):(t=null,0===v&&D('"algorithm"')),null!==t&&null!==(e=O())?("md5"===g.substr(y,3).toLowerCase()?(n=g.substr(y,3),y+=3):(n=null,0===v&&D('"MD5"')),null===n&&("md5-sess"===g.substr(y,8).toLowerCase()?(n=g.substr(y,8),y+=8):(n=null,0===v&&D('"MD5-sess"')),null===n&&(n=x())),null!==n?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.algorithm=a.toUpperCase())),null===t&&(y=i),t}function Xe(){var t,e,n,i,a,o,s,r,l,c=y;if("qop"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"qop"')),null!==t)if(null!==(e=O()))if(null!==(n=H())){if(r=y,null!==(i=$e())){for(a=[],l=y,44===g.charCodeAt(y)?(o=",",y++):(o=null,0===v&&D('","')),null!==o&&null!==(s=$e())?o=[o,s]:(o=null,y=l);null!==o;)a.push(o),l=y,44===g.charCodeAt(y)?(o=",",y++):(o=null,0===v&&D('","')),null!==o&&null!==(s=$e())?o=[o,s]:(o=null,y=l);null!==a?i=[i,a]:(i=null,y=r)}else i=null,y=r;null!==i&&null!==(a=Y())?t=[t,e,n,i,a]:(t=null,y=c)}else t=null,y=c;else t=null,y=c;else t=null,y=c;return t}function $e(){var t,e,n=y;return"auth-int"===g.substr(y,8).toLowerCase()?(t=g.substr(y,8),y+=8):(t=null,0===v&&D('"auth-int"')),null===t&&("auth"===g.substr(y,4).toLowerCase()?(t=g.substr(y,4),y+=4):(t=null,0===v&&D('"auth"')),null===t&&(t=x())),null!==t&&(e=t,Fn.qop||(Fn.qop=[]),t=void Fn.qop.push(e.toLowerCase())),null===t&&(y=n),t}function tn(){var t,e,n,i,a,o=y,s=y;if(null!==(t=he())){for(e=[],a=y,null!==(n=U())&&null!==(i=Ae())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=Ae())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=s)}else t=null,y=s;return null===(t=null!==t?function(t){var e;Fn.multi_header||(Fn.multi_header=[]);try{e=new Rn(Fn.uri,Fn.display_name,Fn.params),delete Fn.uri,delete Fn.display_name,delete Fn.params}catch(t){e=null}Fn.multi_header.push({possition:y,offset:t,parsed:e})}(o):t)&&(y=o),t}function en(){var t;return t=null===(t=nn())?Ae():t}function nn(){var t,e,n,i,a=y,o=y;if("cause"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"cause"')),null!==t)if(null!==(e=O())){if(null!==(i=c()))for(n=[];null!==i;)n.push(i),i=c();else n=null;null!==n?t=[t,e,n]:(t=null,y=o)}else t=null,y=o;else t=null,y=o;return null!==t&&(o=t[2],t=void(Fn.cause=parseInt(o.join("")))),null===t&&(y=a),t}function an(){var t,e,n,i,a,o=y;if(null!==(t=he())){for(e=[],a=y,null!==(n=U())&&null!==(i=Ae())?n=[n,i]:(n=null,y=a);null!==n;)e.push(n),a=y,null!==(n=U())&&null!==(i=Ae())?n=[n,i]:(n=null,y=a);null!==e?t=[t,e]:(t=null,y=o)}else t=null,y=o;return t}function on(){var t,e=y;return"active"===g.substr(y,6).toLowerCase()?(t=g.substr(y,6),y+=6):(t=null,0===v&&D('"active"')),null===t&&("pending"===g.substr(y,7).toLowerCase()?(t=g.substr(y,7),y+=7):(t=null,0===v&&D('"pending"')),null===t&&("terminated"===g.substr(y,10).toLowerCase()?(t=g.substr(y,10),y+=10):(t=null,0===v&&D('"terminated"')),null===t&&(t=x()))),null===(t=null!==t?void(Fn.state=g.substring(y,e)):t)&&(y=e),t}function sn(){var t,e,n,i,a=y,o=y;return"reason"===g.substr(y,6).toLowerCase()?(t=g.substr(y,6),y+=6):(t=null,0===v&&D('"reason"')),null!==t&&null!==(e=O())&&null!==(n=rn())?t=[t,e,n]:(t=null,y=o),null===(t=null!==t?void(void 0!==(i=t[2])&&(Fn.reason=i)):t)&&(y=a),null===t&&(o=a=y,"expires"===g.substr(y,7).toLowerCase()?(t=g.substr(y,7),y+=7):(t=null,0===v&&D('"expires"')),null!==t&&null!==(e=O())&&null!==(n=De())?t=[t,e,n]:(t=null,y=o),null===(t=null!==t?void(void 0!==(i=t[2])&&(Fn.expires=i)):t)&&(y=a),null===t&&(o=a=y,"retry_after"===g.substr(y,11).toLowerCase()?(t=g.substr(y,11),y+=11):(t=null,0===v&&D('"retry_after"')),null!==t&&null!==(e=O())&&null!==(n=De())?t=[t,e,n]:(t=null,y=o),null===(t=null!==t?void(void 0!==(o=t[2])&&(Fn.retry_after=o)):t)&&(y=a),null===t&&(t=Ae()))),t}function rn(){var t;return"deactivated"===g.substr(y,11).toLowerCase()?(t=g.substr(y,11),y+=11):(t=null,0===v&&D('"deactivated"')),null===t&&("probation"===g.substr(y,9).toLowerCase()?(t=g.substr(y,9),y+=9):(t=null,0===v&&D('"probation"')),null===t&&("rejected"===g.substr(y,8).toLowerCase()?(t=g.substr(y,8),y+=8):(t=null,0===v&&D('"rejected"')),null===t&&("timeout"===g.substr(y,7).toLowerCase()?(t=g.substr(y,7),y+=7):(t=null,0===v&&D('"timeout"')),null===t&&("giveup"===g.substr(y,6).toLowerCase()?(t=g.substr(y,6),y+=6):(t=null,0===v&&D('"giveup"')),null===t&&("noresource"===g.substr(y,10).toLowerCase()?(t=g.substr(y,10),y+=10):(t=null,0===v&&D('"noresource"')),null===t&&("invariant"===g.substr(y,9).toLowerCase()?(t=g.substr(y,9),y+=9):(t=null,0===v&&D('"invariant"')),null===t&&(t=x()))))))),t}function ln(){var t;return t=null===(t=Re())?Ae():t}function cn(){var t,e,n,i,a,o,s,r=y;if(null!==(t=yn()))if(null!==(e=I()))if(null!==(n=bn())){for(i=[],s=y,null!==(a=U())&&null!==(o=un())?a=[a,o]:(a=null,y=s);null!==a;)i.push(a),s=y,null!==(a=U())&&null!==(o=un())?a=[a,o]:(a=null,y=s);null!==i?t=[t,e,n,i]:(t=null,y=r)}else t=null,y=r;else t=null,y=r;else t=null,y=r;return t}function un(){var t;return t=null===(t=dn())&&null===(t=fn())&&null===(t=pn())&&null===(t=hn())&&null===(t=mn())?Ae():t}function dn(){var t,e,n,i=y,a=y;return"ttl"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"ttl"')),null!==t&&null!==(e=O())&&null!==(n=Mn())?t=[t,e,n]:(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.ttl=a)),null===t&&(y=i),t}function fn(){var t,e,n,i=y,a=y;return"maddr"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"maddr"')),null!==t&&null!==(e=O())&&null!==(n=ot())?t=[t,e,n]:(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.maddr=a)),null===t&&(y=i),t}function pn(){var t,e,n,i=y,a=y;return"received"===g.substr(y,8).toLowerCase()?(t=g.substr(y,8),y+=8):(t=null,0===v&&D('"received"')),null!==t&&null!==(e=O())?null!==(n=null===(n=pt())?ut():n)?t=[t,e,n]:(t=null,y=a):(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.received=a)),null===t&&(y=i),t}function hn(){var t,e,n,i=y,a=y;return"branch"===g.substr(y,6).toLowerCase()?(t=g.substr(y,6),y+=6):(t=null,0===v&&D('"branch"')),null!==t&&null!==(e=O())&&null!==(n=x())?t=[t,e,n]:(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.branch=a)),null===t&&(y=i),t}function mn(){var t,e,n,i,a=y;return"rport"===g.substr(y,5).toLowerCase()?(t=g.substr(y,5),y+=5):(t=null,0===v&&D('"rport"')),null!==t?(i=y,null!==(e=O())&&null!==(n=gn())?e=[e,n]:(e=null,y=i),null!==(e=null!==e?e:"")?t=[t,e]:(t=null,y=a)):(t=null,y=a),t}function gn(){var t,e,n,i,a,o=y,s=y;return null!==(t=null!==(t=c())?t:"")&&null!==(e=null!==(e=c())?e:"")&&null!==(n=null!==(n=c())?n:"")&&null!==(i=null!==(i=c())?i:"")&&null!==(a=null!==(a=c())?a:"")?t=[t,e,n,i,a]:(t=null,y=s),null!==t&&(s=t,t=void(Fn.rport=parseInt(s.join("")))),null===t&&(y=o),t}function yn(){var t,e,n,i,a,o=y;return null!==(t=vn())&&null!==(e=j())&&null!==(n=x())&&null!==(i=j())&&null!==(a=Dn())?t=[t,e,n,i,a]:(t=null,y=o),t}function vn(){var t,e,n=y;return"sip"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"SIP"')),null!==(t=null===t?x():t)&&(e=t,t=void(Fn.protocol=e)),null===t&&(y=n),t}function Dn(){var t,e,n=y;return"udp"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"UDP"')),null===t&&("tcp"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"TCP"')),null===t&&("tls"===g.substr(y,3).toLowerCase()?(t=g.substr(y,3),y+=3):(t=null,0===v&&D('"TLS"')),null===t&&("sctp"===g.substr(y,4).toLowerCase()?(t=g.substr(y,4),y+=4):(t=null,0===v&&D('"SCTP"')),null===t&&(t=x())))),null!==t&&(e=t,t=void(Fn.transport=e)),null===t&&(y=n),t}function bn(){var t,e,n,i,a=y;return null!==(t=An())?(i=y,null!==(e=B())&&null!==(n=In())?e=[e,n]:(e=null,y=i),null!==(e=null!==e?e:"")?t=[t,e]:(t=null,y=a)):(t=null,y=a),t}function An(){var t,e=y;return null===(t=null!==(t=null===(t=pt())&&null===(t=ct())?st():t)?void(Fn.host=g.substring(y,e)):t)&&(y=e),t}function In(){var t,e,n,i,a,o=y,s=y;return null!==(t=null!==(t=c())?t:"")&&null!==(e=null!==(e=c())?e:"")&&null!==(n=null!==(n=c())?n:"")&&null!==(i=null!==(i=c())?i:"")&&null!==(a=null!==(a=c())?a:"")?t=[t,e,n,i,a]:(t=null,y=s),null!==t&&(s=t,t=void(Fn.port=parseInt(s.join("")))),null===t&&(y=o),t}function Mn(){var t,e,n,i=y,a=y;return null!==(t=c())&&null!==(e=null!==(e=c())?e:"")&&null!==(n=null!==(n=c())?n:"")?t=[t,e,n]:(t=null,y=a),null===(t=null!==t?parseInt(t.join("")):t)&&(y=i),t}function wn(){var t,e,n=y;return null!==(t=De())&&(e=t,t=void(Fn.expires=e)),null===t&&(y=n),t}function Cn(){var t;return t=null===(t=_n())?Ae():t}function _n(){var t,e,n,i=y,a=y;return"refresher"===g.substr(y,9).toLowerCase()?(t=g.substr(y,9),y+=9):(t=null,0===v&&D('"refresher"')),null!==t&&null!==(e=O())?("uac"===g.substr(y,3).toLowerCase()?(n=g.substr(y,3),y+=3):(n=null,0===v&&D('"uac"')),null===n&&("uas"===g.substr(y,3).toLowerCase()?(n=g.substr(y,3),y+=3):(n=null,0===v&&D('"uas"'))),null!==n?t=[t,e,n]:(t=null,y=a)):(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.refresher=a.toLowerCase())),null===t&&(y=i),t}function Tn(){var t,e=[];for(null===(t=_())&&null===(t=k())&&(t=I());null!==t;)e.push(t),null===(t=_())&&null===(t=k())&&(t=I());return e}function kn(){var t,e,n,i,a,o,s,r,l,c=y,u=y;return null!==(t=Nn())?(45===g.charCodeAt(y)?(e="-",y++):(e=null,0===v&&D('"-"')),null!==e&&null!==(n=xn())?(45===g.charCodeAt(y)?(i="-",y++):(i=null,0===v&&D('"-"')),null!==i&&null!==(a=xn())?(45===g.charCodeAt(y)?(o="-",y++):(o=null,0===v&&D('"-"')),null!==o&&null!==(s=xn())?(45===g.charCodeAt(y)?(r="-",y++):(r=null,0===v&&D('"-"')),null!==r&&null!==(l=Sn())?t=[t,e,n,i,a,o,s,r,l]:(t=null,y=u)):(t=null,y=u)):(t=null,y=u)):(t=null,y=u)):(t=null,y=u),null!==t&&(t[0],t=void(Fn=g.substring(y+5,c))),null===t&&(y=c),t}function xn(){var t,e,n,i,a=y;return null!==(t=u())&&null!==(e=u())&&null!==(n=u())&&null!==(i=u())?t=[t,e,n,i]:(t=null,y=a),t}function Nn(){var t,e,n=y;return null!==(t=xn())&&null!==(e=xn())?t=[t,e]:(t=null,y=n),t}function Sn(){var t,e,n,i=y;return null!==(t=xn())&&null!==(e=xn())&&null!==(n=xn())?t=[t,e,n]:(t=null,y=i),t}function En(){var t,e,n,i,a=y,o=y;return null!==(t=S())?(i=y,64===g.charCodeAt(y)?(e="@",y++):(e=null,0===v&&D('"@"')),null!==e&&null!==(n=S())?e=[e,n]:(e=null,y=i),null!==(e=null!==e?e:"")?t=[t,e]:(t=null,y=o)):(t=null,y=o),null===(t=null!==t?void(Fn.call_id=g.substring(y,a)):t)&&(y=a),t}function jn(){var t;return t=null===(t=On())&&null===(t=Ln())&&null===(t=zn())?Ae():t}function On(){var t,e,n,i=y,a=y;return"to-tag"===g.substr(y,6)?(t="to-tag",y+=6):(t=null,0===v&&D('"to-tag"')),null!==t&&null!==(e=O())&&null!==(n=x())?t=[t,e,n]:(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.to_tag=a)),null===t&&(y=i),t}function Ln(){var t,e,n,i=y,a=y;return"from-tag"===g.substr(y,8)?(t="from-tag",y+=8):(t=null,0===v&&D('"from-tag"')),null!==t&&null!==(e=O())&&null!==(n=x())?t=[t,e,n]:(t=null,y=a),null!==t&&(a=t[2],t=void(Fn.from_tag=a)),null===t&&(y=i),t}function zn(){var t,e=y;return"early-only"===g.substr(y,10)?(t="early-only",y+=10):(t=null,0===v&&D('"early-only"')),null===(t=null!==t?void(Fn.early_only=!0):t)&&(y=e),t}var Pn=Hn("./URI"),Rn=Hn("./NameAddrHeader"),Fn={};if(null!==t[l]()&&y===g.length)return Fn;var Un=Math.max(y,o),Bn=Un<g.length?g.charAt(Un):null,t=function(){for(var t=1,e=1,n=!1,i=0;i<Math.max(y,o);i++)var a=g.charAt(i),n="\n"===a?(n||t++,!(e=1)):"\r"===a||"\u2028"===a||"\u2029"===a?(t++,e=1,!0):(e++,!1);return{line:t,column:e}}();return new this.SyntaxError(function(t){t.sort();for(var e=null,n=[],i=0;i<t.length;i++)t[i]!==e&&(n.push(t[i]),e=t[i]);return n}(e),Bn,Un,t.line,t.column),-1},toSource:function(){return this._source},SyntaxError:function(t,e,n,i,a){this.name="SyntaxError",this.expected=t,this.found=e,this.message=function(t,e){var n;switch(t.length){case 0:n="end of input";break;case 1:n=t[0];break;default:n=t.slice(0,t.length-1).join(", ")+" or "+t[t.length-1]}return"Expected "+n+" but "+(e?Yn(e):"end of input")+" found."}(t,e),this.offset=n,this.line=i,this.column=a}}).SyntaxError.prototype=Error.prototype,t)},{"./NameAddrHeader":11,"./URI":29}],8:[function(t,e,n){"use strict";var i=t("../package.json"),a=t("./Constants"),o=t("./Exceptions"),s=t("./Utils"),r=t("./UA"),l=t("./URI"),c=t("./NameAddrHeader"),u=t("./Grammar"),d=t("./WebSocketInterface"),f=t("./SIPMessage"),p=t("./Parser"),h=t("./DigestAuthentication");t("debug")("JsSIP")("version %s",i.version),e.exports={C:a,Exceptions:o,Utils:s,UA:r,URI:l,NameAddrHeader:c,WebSocketInterface:d,Grammar:u,SIPMessage:f,Parser:p,DigestAuthentication:h,debug:t("debug"),get name(){return i.title},get version(){return i.version}}},{"../package.json":42,"./Constants":2,"./DigestAuthentication":5,"./Exceptions":6,"./Grammar":7,"./NameAddrHeader":11,"./Parser":14,"./SIPMessage":22,"./UA":28,"./URI":29,"./Utils":30,"./WebSocketInterface":31,debug:34}],9:[function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("debug"),o="JsSIP";function s(t){!function(t){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}(this),t?(this._debug=a.default("".concat(o,":").concat(t)),this._warn=a.default("".concat(o,":WARN:").concat(t)),this._error=a.default("".concat(o,":ERROR:").concat(t))):(this._debug=a.default(o),this._warn=a.default("".concat(o,":WARN")),this._error=a.default("".concat(o,":ERROR"))),this._debug.log=console.info.bind(console),this._warn.log=console.warn.bind(console),this._error.log=console.error.bind(console)}e.exports=(i((e=s).prototype,[{key:"debug",get:function(){return this._debug}},{key:"warn",get:function(){return this._warn}},{key:"error",get:function(){return this._error}}]),Object.defineProperty(e,"prototype",{writable:!1}),s)},{debug:34}],10:[function(t,e,n){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=t("events").EventEmitter,i=t("./Logger"),d=t("./Constants"),f=t("./SIPMessage"),p=t("./Utils"),h=t("./RequestSender"),m=t("./Exceptions"),g=t("./URI"),y=new i("Message");e.exports=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(o,u);var t,n,i,a=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=c(n);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=c(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function o(t){var e;return function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(e=a.call(this))._ua=t,e._request=null,e._closed=!1,e._direction=null,e._local_identity=null,e._remote_identity=null,e._is_replied=!1,e._data={},e}return r((t=o).prototype,[{key:"direction",get:function(){return this._direction}},{key:"local_identity",get:function(){return this._local_identity}},{key:"remote_identity",get:function(){return this._remote_identity}},{key:"send",value:function(t,e){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},a=t;if(void 0===t||void 0===e)throw new TypeError("Not enough arguments");if(!(t=this._ua.normalizeTarget(t)))throw new TypeError("Invalid target: ".concat(a));var o,s=p.cloneArray(i.extraHeaders),r=p.cloneObject(i.eventHandlers),l=i.contentType||"text/plain",a={};for(o in i.fromUserName&&(a.from_uri=new g("sip",i.fromUserName,this._ua.configuration.uri.host),s.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))),i.fromDisplayName&&(a.from_display_name=i.fromDisplayName),r)Object.prototype.hasOwnProperty.call(r,o)&&this.on(o,r[o]);s.push("Content-Type: ".concat(l)),this._request=new f.OutgoingRequest(d.MESSAGE,t,this._ua,a,s),e&&(this._request.body=e);e=new h(this._ua,this._request,{onRequestTimeout:function(){n._onRequestTimeout()},onTransportError:function(){n._onTransportError()},onReceiveResponse:function(t){n._receiveResponse(t)}});this._newMessage("local",this._request),e.send()}},{key:"init_incoming",value:function(t){this._request=t,this._newMessage("remote",t),this._is_replied||(this._is_replied=!0,t.reply(200)),this._close()}},{key:"accept",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=p.cloneArray(t.extraHeaders),t=t.body;if("incoming"!==this._direction)throw new m.NotSupportedError('"accept" not supported for outgoing Message');if(this._is_replied)throw new Error("incoming Message already replied");this._is_replied=!0,this._request.reply(200,null,e,t)}},{key:"reject",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.status_code||480,n=t.reason_phrase,i=p.cloneArray(t.extraHeaders),t=t.body;if("incoming"!==this._direction)throw new m.NotSupportedError('"reject" not supported for outgoing Message');if(this._is_replied)throw new Error("incoming Message already replied");if(e<300||700<=e)throw new TypeError("Invalid status_code: ".concat(e));this._is_replied=!0,this._request.reply(e,n,i,t)}},{key:"_receiveResponse",value:function(t){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(t.status_code):break;case/^2[0-9]{2}$/.test(t.status_code):this._succeeded("remote",t);break;default:var e=p.sipErrorCause(t.status_code);this._failed("remote",t,e)}}},{key:"_onRequestTimeout",value:function(){this._closed||this._failed("system",null,d.causes.REQUEST_TIMEOUT)}},{key:"_onTransportError",value:function(){this._closed||this._failed("system",null,d.causes.CONNECTION_ERROR)}},{key:"_close",value:function(){this._closed=!0,this._ua.destroyMessage(this)}},{key:"_newMessage",value:function(t,e){"remote"===t?(this._direction="incoming",this._local_identity=e.to,this._remote_identity=e.from):"local"===t&&(this._direction="outgoing",this._local_identity=e.from,this._remote_identity=e.to),this._ua.newMessage(this,{originator:t,message:this,request:e})}},{key:"_failed",value:function(t,e,n){y.debug("MESSAGE failed"),this._close(),y.debug('emit "failed"'),this.emit("failed",{originator:t,response:e||null,cause:n})}},{key:"_succeeded",value:function(t,e){y.debug("MESSAGE succeeded"),this._close(),y.debug('emit "succeeded"'),this.emit("succeeded",{originator:t,response:e})}}]),Object.defineProperty(t,"prototype",{writable:!1}),o}()},{"./Constants":2,"./Exceptions":6,"./Logger":9,"./RequestSender":21,"./SIPMessage":22,"./URI":29,"./Utils":30,events:33}],11:[function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("./URI"),o=t("./Grammar");function s(t,e,n){if(function(t){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}(this),!(t&&t instanceof a))throw new TypeError('missing or invalid "uri" parameter');for(var i in this._uri=t,this._parameters={},this.display_name=e,n)Object.prototype.hasOwnProperty.call(n,i)&&this.setParam(i,n[i])}e.exports=(t=[{key:"parse",value:function(t){return-1!==(t=o.parse(t,"Name_Addr_Header"))?t:void 0}}],i((e=s).prototype,[{key:"uri",get:function(){return this._uri}},{key:"display_name",get:function(){return this._display_name},set:function(t){this._display_name=0===t?"0":t}},{key:"setParam",value:function(t,e){t&&(this._parameters[t.toLowerCase()]=null==e?null:e.toString())}},{key:"getParam",value:function(t){if(t)return this._parameters[t.toLowerCase()]}},{key:"hasParam",value:function(t){if(t)return!!this._parameters.hasOwnProperty(t.toLowerCase())}},{key:"deleteParam",value:function(t){if(t=t.toLowerCase(),this._parameters.hasOwnProperty(t)){var e=this._parameters[t];return delete this._parameters[t],e}}},{key:"clearParams",value:function(){this._parameters={}}},{key:"clone",value:function(){return new s(this._uri.clone(),this._display_name,JSON.parse(JSON.stringify(this._parameters)))}},{key:"_quote",value:function(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}},{key:"toString",value:function(){var t,e=this._display_name?'"'.concat(this._quote(this._display_name),'" '):"";for(t in e+="<".concat(this._uri.toString(),">"),this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,t)&&(e+=";".concat(t),null!==this._parameters[t]&&(e+="=".concat(this._parameters[t])));return e}}]),i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),s)},{"./Grammar":7,"./URI":29}],12:[function(t,e,n){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=t("events").EventEmitter,i=t("./Logger"),f=t("./Constants"),p=t("./Utils"),h=t("./Dialog"),m=new i("Notifier"),g={NOTIFY_RESPONSE_TIMEOUT:0,NOTIFY_TRANSPORT_ERROR:1,NOTIFY_NON_OK_RESPONSE:2,NOTIFY_FAILED_AUTHENTICATION:3,SEND_FINAL_NOTIFY:4,RECEIVE_UNSUBSCRIBE:5,SUBSCRIPTION_EXPIRED:6,STATE_PENDING:0,STATE_ACTIVE:1,STATE_TERMINATED:2};e.exports=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(l,d);var t,e,n,i,r=(n=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=u(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}(this,i?(t=u(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function l(t,e,n,i){var a=i.extraHeaders,o=i.allowEvents,s=i.pending;if(function(t){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}(this),m.debug("new"),i=r.call(this),!e)throw new TypeError("subscribe is undefined");if(!n)throw new TypeError("contentType is undefined");i._ua=t,i._initial_subscribe=e,i._expires_timestamp=null,i._expires_timer=null,i._state=s?g.STATE_PENDING:g.STATE_ACTIVE,i._terminated_reason=null,i._terminated_retry_after=null,i.data={},i._dialog=null;s=e.getHeader("event");i._content_type=n,i._expires=parseInt(e.getHeader("expires")),i._headers=p.cloneArray(a),i._headers.push("Event: ".concat(s)),i._contact=i._headers.find(function(t){return t.startsWith("Contact")}),i._contact||(i._contact="Contact: <sip:".concat(e.to.uri.user,"@").concat(p.createRandomToken(12),".invalid;transport=ws>"),i._headers.push(i._contact)),o&&i._headers.push("Allow-Events: ".concat(o)),i._target=e.from.uri.user,e.to_tag=p.newTag();e=new h(c(i),e,"UAS");if(e.error)throw m.warn(e.error),new Error("SUBSCRIBE missed Contact");return i._dialog=e,0<i._expires&&i._setExpiresTimer(),i}return e=[{key:"C",get:function(){return g}}],o((t=l).prototype,[{key:"C",get:function(){return g}},{key:"receiveRequest",value:function(t){var e,n,i;t.method===f.SUBSCRIBE?(null==(i=t.getHeader("expires"))&&m.debug("Missed expires header. Set by default ".concat(i="900")),this._expires=parseInt(i),t.reply(200,null,["Expires: ".concat(this._expires),"".concat(this._contact)]),e=t.body,n=t.getHeader("content-type"),(i=0===this._expires)||this._setExpiresTimer(),m.debug('emit "subscribe"'),this.emit("subscribe",i,t,e,n),i&&this._dialogTerminated(g.RECEIVE_UNSUBSCRIBE)):t.reply(405)}},{key:"start",value:function(){m.debug("start()"),this.receiveRequest(this._initial_subscribe)}},{key:"setActiveState",value:function(){m.debug("setActiveState()"),this._state===g.STATE_PENDING&&(this._state=g.STATE_ACTIVE)}},{key:"notify",value:function(){var t,e,n=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;m.debug("notify()"),this._dialog?(t=this._stateNumberToString(this._state),this._state!==g.STATE_TERMINATED?(e=Math.floor((this._expires_timestamp-(new Date).getTime())/1e3),t+=";expires=".concat(e=e<0?0:e)):(this._terminated_reason&&(t+=";reason=".concat(this._terminated_reason)),null!==this._terminated_retry_after&&(t+=";retry-after=".concat(this._terminated_retry_after))),(e=this._headers.slice()).push("Subscription-State: ".concat(t)),i&&e.push("Content-Type: ".concat(this._content_type)),this._dialog.sendRequest(f.NOTIFY,{body:i,extraHeaders:e,eventHandlers:{onRequestTimeout:function(){n._dialogTerminated(g.NOTIFY_RESPONSE_TIMEOUT)},onTransportError:function(){n._dialogTerminated(g.NOTIFY_TRANSPORT_ERROR)},onErrorResponse:function(t){401===t.status_code||407===t.status_code?n._dialogTerminated(g.NOTIFY_FAILED_AUTHENTICATION):n._dialogTerminated(g.NOTIFY_NON_OK_RESPONSE)},onDialogError:function(){n._dialogTerminated(g.NOTIFY_NON_OK_RESPONSE)}}})):m.warn("final notify has sent")}},{key:"terminate",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;m.debug("terminate()"),this._state=g.STATE_TERMINATED,this._terminated_reason=e,this._terminated_retry_after=n,this.notify(t),this._dialogTerminated(g.SEND_FINAL_NOTIFY)}},{key:"state",get:function(){return this._state}},{key:"id",get:function(){return this._dialog?this._dialog.id:null}},{key:"_dialogTerminated",value:function(t){var e;this._dialog&&(this._state=g.STATE_TERMINATED,clearTimeout(this._expires_timer),this._dialog&&(this._dialog.terminate(),this._dialog=null),e=t===g.SUBSCRIPTION_EXPIRED,m.debug('emit "terminated" code='.concat(t,", send final notify=").concat(e)),this.emit("terminated",t,e))}},{key:"_setExpiresTimer",value:function(){var t=this;this._expires_timestamp=(new Date).getTime()+1e3*this._expires,clearTimeout(this._expires_timer),this._expires_timer=setTimeout(function(){t._dialog&&(t._terminated_reason="timeout",t.notify(),t._dialogTerminated(g.SUBSCRIPTION_EXPIRED))},1e3*this._expires)}},{key:"_stateNumberToString",value:function(t){switch(t){case g.STATE_PENDING:return"pending";case g.STATE_ACTIVE:return"active";case g.STATE_TERMINATED:return"terminated";default:throw new TypeError("wrong state value")}}}]),o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),l}()},{"./Constants":2,"./Dialog":3,"./Logger":9,"./Utils":30,events:33}],13:[function(t,e,n){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=t("events").EventEmitter,i=t("./Logger"),d=t("./Constants"),f=t("./SIPMessage"),p=t("./Utils"),h=t("./RequestSender"),m=t("./Exceptions"),g=new i("Options");e.exports=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(o,u);var t,n,i,a=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=c(n);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=c(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function o(t){var e;return function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(e=a.call(this))._ua=t,e._request=null,e._closed=!1,e._direction=null,e._local_identity=null,e._remote_identity=null,e._is_replied=!1,e._data={},e}return r((t=o).prototype,[{key:"direction",get:function(){return this._direction}},{key:"local_identity",get:function(){return this._local_identity}},{key:"remote_identity",get:function(){return this._remote_identity}},{key:"send",value:function(t,e){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},a=t;if(void 0===t)throw new TypeError("A target is required for OPTIONS");if(!(t=this._ua.normalizeTarget(t)))throw new TypeError("Invalid target: ".concat(a));var o,a=p.cloneArray(i.extraHeaders),s=p.cloneObject(i.eventHandlers),i=i.contentType||"application/sdp";for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&this.on(o,s[o]);a.push("Content-Type: ".concat(i)),this._request=new f.OutgoingRequest(d.OPTIONS,t,this._ua,null,a),e&&(this._request.body=e);e=new h(this._ua,this._request,{onRequestTimeout:function(){n._onRequestTimeout()},onTransportError:function(){n._onTransportError()},onReceiveResponse:function(t){n._receiveResponse(t)}});this._newOptions("local",this._request),e.send()}},{key:"init_incoming",value:function(t){this._request=t,this._newOptions("remote",t),this._is_replied||(this._is_replied=!0,t.reply(200)),this._close()}},{key:"accept",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=p.cloneArray(t.extraHeaders),t=t.body;if("incoming"!==this._direction)throw new m.NotSupportedError('"accept" not supported for outgoing Options');if(this._is_replied)throw new Error("incoming Options already replied");this._is_replied=!0,this._request.reply(200,null,e,t)}},{key:"reject",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.status_code||480,n=t.reason_phrase,i=p.cloneArray(t.extraHeaders),t=t.body;if("incoming"!==this._direction)throw new m.NotSupportedError('"reject" not supported for outgoing Options');if(this._is_replied)throw new Error("incoming Options already replied");if(e<300||700<=e)throw new TypeError("Invalid status_code: ".concat(e));this._is_replied=!0,this._request.reply(e,n,i,t)}},{key:"_receiveResponse",value:function(t){if(!this._closed)switch(!0){case/^1[0-9]{2}$/.test(t.status_code):break;case/^2[0-9]{2}$/.test(t.status_code):this._succeeded("remote",t);break;default:var e=p.sipErrorCause(t.status_code);this._failed("remote",t,e)}}},{key:"_onRequestTimeout",value:function(){this._closed||this._failed("system",null,d.causes.REQUEST_TIMEOUT)}},{key:"_onTransportError",value:function(){this._closed||this._failed("system",null,d.causes.CONNECTION_ERROR)}},{key:"_close",value:function(){this._closed=!0,this._ua.destroyMessage(this)}},{key:"_newOptions",value:function(t,e){"remote"===t?(this._direction="incoming",this._local_identity=e.to,this._remote_identity=e.from):"local"===t&&(this._direction="outgoing",this._local_identity=e.from,this._remote_identity=e.to),this._ua.newOptions(this,{originator:t,message:this,request:e})}},{key:"_failed",value:function(t,e,n){g.debug("OPTIONS failed"),this._close(),g.debug('emit "failed"'),this.emit("failed",{originator:t,response:e||null,cause:n})}},{key:"_succeeded",value:function(t,e){g.debug("OPTIONS succeeded"),this._close(),g.debug('emit "succeeded"'),this.emit("succeeded",{originator:t,response:e})}}]),Object.defineProperty(t,"prototype",{writable:!1}),o}()},{"./Constants":2,"./Exceptions":6,"./Logger":9,"./RequestSender":21,"./SIPMessage":22,"./Utils":30,events:33}],14:[function(t,e,n){"use strict";function h(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return r(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var i=t("./Logger"),m=t("./Grammar"),g=t("./SIPMessage"),l=new i("Parser");n.parseMessage=function(t,e){var n,i,a=t.indexOf("\r\n");if(-1!==a){var o=t.substring(0,a),s=m.parse(o,"Request_Response");if(-1!==s){s.status_code?((n=new g.IncomingResponse).status_code=s.status_code,n.reason_phrase=s.reason_phrase):((n=new g.IncomingRequest(e)).method=s.method,n.ruri=s.uri),n.data=t;for(var r=a+2;;){if(-2===(a=function(t,e){var n,i=e,a=0;if(t.substring(i,i+2).match(/(^\r\n)/))return-2;for(;0===a;){if(-1===(n=t.indexOf("\r\n",i)))return n;!t.substring(n+2,n+4).match(/(^\r\n)/)&&t.charAt(n+2).match(/(^\s+)/)?i=n+2:a=n}return a}(t,r))){i=r+2;break}if(-1===a)return void l.warn("parseMessage() | malformed message");if(!0!==(s=function(t,e,n,i){var a,o=e.indexOf(":",n),s=e.substring(n,o).trim(),r=e.substring(o+1,i).trim();switch(s.toLowerCase()){case"via":case"v":t.addHeader("via",r),1===t.getHeaders("via").length?(a=t.parseHeader("Via"))&&(t.via=a,t.via_branch=a.branch):a=0;break;case"from":case"f":t.setHeader("from",r),(a=t.parseHeader("from"))&&(t.from=a,t.from_tag=a.getParam("tag"));break;case"to":case"t":t.setHeader("to",r),(a=t.parseHeader("to"))&&(t.to=a,t.to_tag=a.getParam("tag"));break;case"record-route":if(-1===(a=m.parse(r,"Record_Route")))a=void 0;else{var l,c=h(a);try{for(c.s();!(l=c.n()).done;){var u=l.value;t.addHeader("record-route",r.substring(u.possition,u.offset)),t.headers["Record-Route"][t.getHeaders("record-route").length-1].parsed=u.parsed}}catch(t){c.e(t)}finally{c.f()}}break;case"call-id":case"i":t.setHeader("call-id",r),(a=t.parseHeader("call-id"))&&(t.call_id=r);break;case"contact":case"m":if(-1===(a=m.parse(r,"Contact")))a=void 0;else{var d,f=h(a);try{for(f.s();!(d=f.n()).done;){var p=d.value;t.addHeader("contact",r.substring(p.possition,p.offset)),t.headers.Contact[t.getHeaders("contact").length-1].parsed=p.parsed}}catch(t){f.e(t)}finally{f.f()}}break;case"content-length":case"l":t.setHeader("content-length",r),a=t.parseHeader("content-length");break;case"content-type":case"c":t.setHeader("content-type",r),a=t.parseHeader("content-type");break;case"cseq":t.setHeader("cseq",r),(a=t.parseHeader("cseq"))&&(t.cseq=a.value),t instanceof g.IncomingResponse&&(t.method=a.method);break;case"max-forwards":t.setHeader("max-forwards",r),a=t.parseHeader("max-forwards");break;case"www-authenticate":t.setHeader("www-authenticate",r),a=t.parseHeader("www-authenticate");break;case"proxy-authenticate":t.setHeader("proxy-authenticate",r),a=t.parseHeader("proxy-authenticate");break;case"session-expires":case"x":t.setHeader("session-expires",r),(a=t.parseHeader("session-expires"))&&(t.session_expires=a.expires,t.session_expires_refresher=a.refresher);break;case"refer-to":case"r":t.setHeader("refer-to",r),(a=t.parseHeader("refer-to"))&&(t.refer_to=a);break;case"replaces":t.setHeader("replaces",r),(a=t.parseHeader("replaces"))&&(t.replaces=a);break;case"event":case"o":t.setHeader("event",r),(a=t.parseHeader("event"))&&(t.event=a);break;default:t.addHeader(s,r),a=0}return void 0!==a||{error:'error parsing header "'.concat(s,'"')}}(n,t,r,a)))return void l.warn("parseMessage() |",s.error);r=a+2}return n.hasHeader("content-length")?(e=n.getHeader("content-length"),n.body=t.substr(i,e)):n.body=t.substring(i),n}l.warn('parseMessage() | error parsing first line of SIP message: "'.concat(o,'"'))}else l.warn("parseMessage() | no CRLF found, not a SIP message")}},{"./Grammar":7,"./Logger":9,"./SIPMessage":22}],15:[function(t,e,n){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return r(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=t("events").EventEmitter,f=t("sdp-transform"),i=t("./Logger"),w=t("./Constants"),C=t("./Exceptions"),p=t("./Transactions"),_=t("./Utils"),h=t("./Timers"),m=t("./SIPMessage"),g=t("./Dialog"),y=t("./RequestSender"),v=t("./RTCSession/DTMF"),D=t("./RTCSession/Info"),b=t("./RTCSession/ReferNotifier"),A=t("./RTCSession/ReferSubscriber"),I=t("./URI"),T=new i("RTCSession"),k={STATUS_NULL:0,STATUS_INVITE_SENT:1,STATUS_1XX_RECEIVED:2,STATUS_INVITE_RECEIVED:3,STATUS_WAITING_FOR_ANSWER:4,STATUS_ANSWERED:5,STATUS_WAITING_FOR_ACK:6,STATUS_CANCELED:7,STATUS_TERMINATED:8,STATUS_CONFIRMED:9},x=["audio","video"];e.exports=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(s,d);var t,e,n,i,a=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=u(n);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=u(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function s(t){var e;return function(t){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}(this),T.debug("new"),(e=a.call(this))._id=null,e._ua=t,e._status=k.STATUS_NULL,e._dialog=null,e._earlyDialogs={},e._contact=null,e._from_tag=null,e._to_tag=null,e._connection=null,e._connectionPromiseQueue=Promise.resolve(),e._request=null,e._is_canceled=!1,e._cancel_reason="",e._is_confirmed=!1,e._late_sdp=!1,e._rtcOfferConstraints=null,e._rtcAnswerConstraints=null,e._localMediaStream=null,e._localMediaStreamLocallyGenerated=!1,e._rtcReady=!0,e._iceReady=!1,e._timers={ackTimer:null,expiresTimer:null,invite2xxTimer:null,userNoAnswerTimer:null},e._direction=null,e._local_identity=null,e._remote_identity=null,e._start_time=null,e._end_time=null,e._tones=null,e._audioMuted=!1,e._videoMuted=!1,e._localHold=!1,e._remoteHold=!1,e._sessionTimers={enabled:e._ua.configuration.session_timers,refreshMethod:e._ua.configuration.session_timers_refresh_method,defaultExpires:w.SESSION_EXPIRES,currentExpires:null,running:!1,refresher:!1,timer:null},e._referSubscribers={},e._data={},e}return e=[{key:"C",get:function(){return k}}],l((t=s).prototype,[{key:"C",get:function(){return k}},{key:"causes",get:function(){return w.causes}},{key:"id",get:function(){return this._id}},{key:"connection",get:function(){return this._connection}},{key:"contact",get:function(){return this._contact}},{key:"direction",get:function(){return this._direction}},{key:"local_identity",get:function(){return this._local_identity}},{key:"remote_identity",get:function(){return this._remote_identity}},{key:"start_time",get:function(){return this._start_time}},{key:"end_time",get:function(){return this._end_time}},{key:"data",get:function(){return this._data},set:function(t){this._data=t}},{key:"status",get:function(){return this._status}},{key:"isInProgress",value:function(){switch(this._status){case k.STATUS_NULL:case k.STATUS_INVITE_SENT:case k.STATUS_1XX_RECEIVED:case k.STATUS_INVITE_RECEIVED:case k.STATUS_WAITING_FOR_ANSWER:return!0;default:return!1}}},{key:"isEstablished",value:function(){switch(this._status){case k.STATUS_ANSWERED:case k.STATUS_WAITING_FOR_ACK:case k.STATUS_CONFIRMED:return!0;default:return!1}}},{key:"isEnded",value:function(){switch(this._status){case k.STATUS_CANCELED:case k.STATUS_TERMINATED:return!0;default:return!1}}},{key:"isMuted",value:function(){return{audio:this._audioMuted,video:this._videoMuted}}},{key:"isOnHold",value:function(){return{local:this._localHold,remote:this._remoteHold}}},{key:"connect",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0;T.debug("connect()");var i,a=t,o=_.cloneObject(e.eventHandlers),s=_.cloneArray(e.extraHeaders),r=_.cloneObject(e.mediaConstraints,{audio:!0,video:!0}),l=e.mediaStream||null,c=_.cloneObject(e.pcConfig,{iceServers:[]}),u=e.rtcConstraints||null,d=e.rtcOfferConstraints||null;if(this._rtcOfferConstraints=d,this._rtcAnswerConstraints=e.rtcAnswerConstraints||null,this._data=e.data||this._data,void 0===t)throw new TypeError("Not enough arguments");if(this._status!==k.STATUS_NULL)throw new C.InvalidStateError(this._status);if(!window.RTCPeerConnection)throw new C.NotSupportedError("WebRTC not supported");if(!(t=this._ua.normalizeTarget(t)))throw new TypeError("Invalid target: ".concat(a));for(i in this._sessionTimers.enabled&&_.isDecimal(e.sessionTimersExpires)&&(e.sessionTimersExpires>=w.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=e.sessionTimersExpires:this._sessionTimers.defaultExpires=w.SESSION_EXPIRES),o)Object.prototype.hasOwnProperty.call(o,i)&&this.on(i,o[i]);this._from_tag=_.newTag();var f=e.anonymous||!1,a={from_tag:this._from_tag};this._contact=this._ua.contact.toString({anonymous:f,outbound:!0}),f?(a.from_display_name="Anonymous",a.from_uri=new I("sip","anonymous","anonymous.invalid"),s.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString())),s.push("Privacy: id")):e.fromUserName&&(a.from_uri=new I("sip",e.fromUserName,this._ua.configuration.uri.host),s.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))),e.fromDisplayName&&(a.from_display_name=e.fromDisplayName),s.push("Contact: ".concat(this._contact)),s.push("Content-Type: application/sdp"),this._sessionTimers.enabled&&s.push("Session-Expires: ".concat(this._sessionTimers.defaultExpires).concat(this._ua.configuration.session_timers_force_refresher?";refresher=uac":"")),this._request=new m.InitialOutgoingInviteRequest(t,this._ua,a,s),this._id=this._request.call_id+this._from_tag,this._createRTCConnection(c,u),this._direction="outgoing",this._local_identity=this._request.from,this._remote_identity=this._request.to,n&&n(this),this._newRTCSession("local",this._request),this._sendInitialRequest(r,d,l)}},{key:"init_incoming",value:function(t,e){var n=this;T.debug("init_incoming()");var i,a=t.hasHeader("Content-Type")?t.getHeader("Content-Type").toLowerCase():void 0;t.body&&"application/sdp"!==a?t.reply(415):(this._status=k.STATUS_INVITE_RECEIVED,this._from_tag=t.from_tag,this._id=t.call_id+this._from_tag,this._request=t,this._contact=this._ua.contact.toString(),t.hasHeader("expires")&&(i=1e3*t.getHeader("expires")),t.to_tag=_.newTag(),this._createDialog(t,"UAS",!0)?(t.body?this._late_sdp=!1:this._late_sdp=!0,this._status=k.STATUS_WAITING_FOR_ANSWER,this._timers.userNoAnswerTimer=setTimeout(function(){t.reply(408),n._failed("local",null,w.causes.NO_ANSWER)},this._ua.configuration.no_answer_timeout),i&&(this._timers.expiresTimer=setTimeout(function(){n._status===k.STATUS_WAITING_FOR_ANSWER&&(t.reply(487),n._failed("system",null,w.causes.EXPIRES))},i)),this._direction="incoming",this._local_identity=t.to,this._remote_identity=t.from,e&&e(this),this._newRTCSession("remote",t),this._status!==k.STATUS_TERMINATED&&(i=["Contact: ".concat(this._contact)],void 0!==(e=this._ua.modes.ringing_header_mode)&&(Array.isArray(e)?i=i.concat(e):i.push(e)),t.reply(180,null,i),this._progress("local",null))):t.reply(500,"Missing Contact header field"))}},{key:"answer",value:function(){var n=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};T.debug("answer()");var i=this._request,e=_.cloneArray(t.extraHeaders),a=_.cloneObject(t.mediaConstraints),o=t.mediaStream||null,s=_.cloneObject(t.pcConfig,{iceServers:[]}),r=t.rtcConstraints||null,l=t.rtcAnswerConstraints||null,c=_.cloneObject(t.rtcOfferConstraints),u=!1,d=!1,f=!1,p=!1;if(this._rtcAnswerConstraints=l,this._rtcOfferConstraints=t.rtcOfferConstraints||null,this._data=t.data||this._data,"incoming"!==this._direction)throw new C.NotSupportedError('"answer" not supported for outgoing RTCSession');if(this._status!==k.STATUS_WAITING_FOR_ANSWER)throw new C.InvalidStateError(this._status);if(this._sessionTimers.enabled&&_.isDecimal(t.sessionTimersExpires)&&(t.sessionTimersExpires>=w.MIN_SESSION_EXPIRES?this._sessionTimers.defaultExpires=t.sessionTimersExpires:this._sessionTimers.defaultExpires=w.SESSION_EXPIRES),this._status=k.STATUS_ANSWERED,this._createDialog(i,"UAS")){clearTimeout(this._timers.userNoAnswerTimer),e.unshift("Contact: ".concat(this._contact));t=i.parseSDP();Array.isArray(t.media)||(t.media=[t.media]);var h,m=M(t.media);try{for(m.s();!(h=m.n()).done;){var g=h.value;"audio"===g.type&&(u=!0,g.direction&&"sendrecv"!==g.direction||(f=!0)),"video"===g.type&&(d=!0,g.direction&&"sendrecv"!==g.direction||(p=!0))}}catch(n){m.e(n)}finally{m.f()}if(o&&!1===a.audio){var y,v=M(o.getAudioTracks());try{for(v.s();!(y=v.n()).done;){var D=y.value;o.removeTrack(D)}}catch(n){v.e(n)}finally{v.f()}}if(o&&!1===a.video){var b,A=M(o.getVideoTracks());try{for(A.s();!(b=A.n()).done;){var I=b.value;o.removeTrack(I)}}catch(n){A.e(n)}finally{A.f()}}o||void 0!==a.audio||(a.audio=f),o||void 0!==a.video||(a.video=p),o||u||c.offerToReceiveAudio||(a.audio=!1),o||d||c.offerToReceiveVideo||(a.video=!1),this._createRTCConnection(s,r),Promise.resolve().then(function(){return o||(a.audio||a.video?(n._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(a).catch(function(t){if(n._status===k.STATUS_TERMINATED)throw new Error("terminated");throw i.reply(480),n._failed("local",null,w.causes.USER_DENIED_MEDIA_ACCESS),T.warn('emit "getusermediafailed" [error:%o]',t),n.emit("getusermediafailed",t),new Error("getUserMedia() failed")})):void 0)}).then(function(e){if(n._status===k.STATUS_TERMINATED)throw new Error("terminated");(n._localMediaStream=e)&&e.getTracks().forEach(function(t){n._connection.addTrack(t,e)})}).then(function(){if(!n._late_sdp){var t={originator:"remote",type:"offer",sdp:i.body};T.debug('emit "sdp"'),n.emit("sdp",t);var e=new RTCSessionDescription({type:"offer",sdp:t.sdp});return n._connectionPromiseQueue=n._connectionPromiseQueue.then(function(){return n._connection.setRemoteDescription(e)}).catch(function(t){throw i.reply(488),n._failed("system",null,w.causes.WEBRTC_ERROR),T.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),n.emit("peerconnection:setremotedescriptionfailed",t),new Error("peerconnection.setRemoteDescription() failed")}),n._connectionPromiseQueue}}).then(function(){if(n._status===k.STATUS_TERMINATED)throw new Error("terminated");return n._connecting(i),(n._late_sdp?n._createLocalDescription("offer",n._rtcOfferConstraints):n._createLocalDescription("answer",l)).catch(function(){throw i.reply(500),new Error("_createLocalDescription() failed")})}).then(function(t){if(n._status===k.STATUS_TERMINATED)throw new Error("terminated");n._handleSessionTimersInIncomingRequest(i,e),i.reply(200,null,e,t,function(){n._status=k.STATUS_WAITING_FOR_ACK,n._setInvite2xxTimer(i,t),n._setACKTimer(),n._accepted("local")},function(){n._failed("system",null,w.causes.CONNECTION_ERROR)})}).catch(function(t){n._status!==k.STATUS_TERMINATED&&T.warn(t)})}else i.reply(500,"Error creating dialog")}},{key:"terminate",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};T.debug("terminate()");var n,i,a=t.cause||w.causes.BYE,o=_.cloneArray(t.extraHeaders),s=t.body,r=t.status_code,l=t.reason_phrase;if(this._status===k.STATUS_TERMINATED)throw new C.InvalidStateError(this._status);switch(this._status){case k.STATUS_NULL:case k.STATUS_INVITE_SENT:case k.STATUS_1XX_RECEIVED:if(T.debug("canceling session"),r&&(r<200||700<=r))throw new TypeError("Invalid status_code: ".concat(r));r&&(l=l||w.REASON_PHRASE[r]||"",n="SIP ;cause=".concat(r,' ;text="').concat(l,'"')),this._status===k.STATUS_NULL||this._status===k.STATUS_INVITE_SENT?(this._is_canceled=!0,this._cancel_reason=n):this._status===k.STATUS_1XX_RECEIVED&&this._request.cancel(n),this._status=k.STATUS_CANCELED,this._failed("local",null,w.causes.CANCELED);break;case k.STATUS_WAITING_FOR_ANSWER:case k.STATUS_ANSWERED:if(T.debug("rejecting session"),(r=r||480)<300||700<=r)throw new TypeError("Invalid status_code: ".concat(r));this._request.reply(r,l,o,s),this._failed("local",null,w.causes.REJECTED);break;case k.STATUS_WAITING_FOR_ACK:case k.STATUS_CONFIRMED:if(T.debug("terminating session"),l=t.reason_phrase||w.REASON_PHRASE[r]||"",r&&(r<200||700<=r))throw new TypeError("Invalid status_code: ".concat(r));r&&o.push("Reason: SIP ;cause=".concat(r,'; text="').concat(l,'"')),this._status===k.STATUS_WAITING_FOR_ACK&&"incoming"===this._direction&&this._request.server_transaction.state!==p.C.STATUS_TERMINATED?(i=this._dialog,this.receiveRequest=function(t){t.method===w.ACK&&(e.sendRequest(w.BYE,{extraHeaders:o,body:s}),i.terminate())},this._request.server_transaction.on("stateChanged",function(){e._request.server_transaction.state===p.C.STATUS_TERMINATED&&(e.sendRequest(w.BYE,{extraHeaders:o,body:s}),i.terminate())}),this._ended("local",null,a),this._dialog=i,this._ua.newDialog(i)):(this.sendRequest(w.BYE,{extraHeaders:o,body:s}),this._ended("local",null,a))}}},{key:"sendDTMF",value:function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};T.debug("sendDTMF() | tones: %s",t);var o=0,s=a.duration||null,r=a.interToneGap||null,e=a.transportType||w.DTMF_TRANSPORT.INFO;if(void 0===t)throw new TypeError("Not enough arguments");if(this._status!==k.STATUS_CONFIRMED&&this._status!==k.STATUS_WAITING_FOR_ACK&&this._status!==k.STATUS_1XX_RECEIVED)throw new C.InvalidStateError(this._status);if(e!==w.DTMF_TRANSPORT.INFO&&e!==w.DTMF_TRANSPORT.RFC2833)throw new TypeError("invalid transportType: ".concat(e));if(!(t="number"==typeof t?t.toString():t)||"string"!=typeof t||!t.match(/^[0-9A-DR#*,]+$/i))throw new TypeError("Invalid tones: ".concat(t));if(s&&!_.isDecimal(s))throw new TypeError("Invalid tone duration: ".concat(s));if(s=s?s<v.C.MIN_DURATION?(T.debug('"duration" value is lower than the minimum allowed, setting it to '.concat(v.C.MIN_DURATION," milliseconds")),v.C.MIN_DURATION):s>v.C.MAX_DURATION?(T.debug('"duration" value is greater than the maximum allowed, setting it to '.concat(v.C.MAX_DURATION," milliseconds")),v.C.MAX_DURATION):Math.abs(s):v.C.DEFAULT_DURATION,a.duration=s,r&&!_.isDecimal(r))throw new TypeError("Invalid interToneGap: ".concat(r));r=r?r<v.C.MIN_INTER_TONE_GAP?(T.debug('"interToneGap" value is lower than the minimum allowed, setting it to '.concat(v.C.MIN_INTER_TONE_GAP," milliseconds")),v.C.MIN_INTER_TONE_GAP):Math.abs(r):v.C.DEFAULT_INTER_TONE_GAP,e!==w.DTMF_TRANSPORT.RFC2833?this._tones?this._tones+=t:(this._tones=t,function t(){var e,n,i=this;this._status===k.STATUS_TERMINATED||!this._tones||o>=this._tones.length?this._tones=null:(e=this._tones[o],o+=1,e=","===e?2e3:(n=new v(this),a.eventHandlers={onFailed:function(){i._tones=null}},n.send(e,a),s+r),setTimeout(t.bind(this),e))}.call(this)):(e=this._getDTMFRTPSender())&&(t=e.toneBuffer+t,e.insertDTMF(t,s,r))}},{key:"sendInfo",value:function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(T.debug("sendInfo()"),this._status!==k.STATUS_CONFIRMED&&this._status!==k.STATUS_WAITING_FOR_ACK&&this._status!==k.STATUS_1XX_RECEIVED)throw new C.InvalidStateError(this._status);new D(this).send(t,e,n)}},{key:"mute",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{audio:!0,video:!1};T.debug("mute()");var e=!1,n=!1;!1===this._audioMuted&&t.audio&&(this._audioMuted=e=!0,this._toggleMuteAudio(!0)),!1===this._videoMuted&&t.video&&(this._videoMuted=n=!0,this._toggleMuteVideo(!0)),!0!==e&&!0!==n||this._onmute({audio:e,video:n})}},{key:"unmute",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{audio:!0,video:!0};T.debug("unmute()");var e=!1,n=!1;!0!==this._audioMuted||!t.audio||(this._audioMuted=!(e=!0))===this._localHold&&this._toggleMuteAudio(!1),!0!==this._videoMuted||!t.video||(this._videoMuted=!(n=!0))===this._localHold&&this._toggleMuteVideo(!1),!0!==e&&!0!==n||this._onunmute({audio:e,video:n})}},{key:"hold",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0;if(T.debug("hold()"),this._status!==k.STATUS_WAITING_FOR_ACK&&this._status!==k.STATUS_CONFIRMED)return!1;if(!0===this._localHold)return!1;if(!this._isReadyToReOffer())return!1;this._localHold=!0,this._onhold("local");var i={succeeded:function(){n&&n()},failed:function(){t.terminate({cause:w.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Hold Failed"})}};return e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:i,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:i,extraHeaders:e.extraHeaders}),!0}},{key:"unhold",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0;if(T.debug("unhold()"),this._status!==k.STATUS_WAITING_FOR_ACK&&this._status!==k.STATUS_CONFIRMED)return!1;if(!1===this._localHold)return!1;if(!this._isReadyToReOffer())return!1;this._localHold=!1,this._onunhold("local");var i={succeeded:function(){n&&n()},failed:function(){t.terminate({cause:w.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Unhold Failed"})}};return e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:i,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:i,extraHeaders:e.extraHeaders}),!0}},{key:"renegotiate",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0;T.debug("renegotiate()");var i=e.rtcOfferConstraints||null;if(this._status!==k.STATUS_WAITING_FOR_ACK&&this._status!==k.STATUS_CONFIRMED)return!1;if(!this._isReadyToReOffer())return!1;var a={succeeded:function(){n&&n()},failed:function(){t.terminate({cause:w.causes.WEBRTC_ERROR,status_code:500,reason_phrase:"Media Renegotiation Failed"})}};return this._setLocalMediaStatus(),e.useUpdate?this._sendUpdate({sdpOffer:!0,eventHandlers:a,rtcOfferConstraints:i,extraHeaders:e.extraHeaders}):this._sendReinvite({eventHandlers:a,rtcOfferConstraints:i,extraHeaders:e.extraHeaders}),!0}},{key:"refer",value:function(t,e){var n=this;T.debug("refer()");var i=t;if(this._status!==k.STATUS_WAITING_FOR_ACK&&this._status!==k.STATUS_CONFIRMED)return!1;if(!(t=this._ua.normalizeTarget(t)))throw new TypeError("Invalid target: ".concat(i));i=new A(this);i.sendRefer(t,e);var a=i.id;return(this._referSubscribers[a]=i).on("requestFailed",function(){delete n._referSubscribers[a]}),i.on("accepted",function(){delete n._referSubscribers[a]}),i.on("failed",function(){delete n._referSubscribers[a]}),i}},{key:"sendRequest",value:function(t,e){return T.debug("sendRequest()"),this._dialog.sendRequest(t,e)}},{key:"receiveRequest",value:function(t){var e=this;if(T.debug("receiveRequest()"),t.method===w.CANCEL)this._status!==k.STATUS_WAITING_FOR_ANSWER&&this._status!==k.STATUS_ANSWERED||(this._status=k.STATUS_CANCELED,this._request.reply(487),this._failed("remote",t,w.causes.CANCELED));else switch(t.method){case w.ACK:if(this._status!==k.STATUS_WAITING_FOR_ACK)return;if(this._status=k.STATUS_CONFIRMED,clearTimeout(this._timers.ackTimer),clearTimeout(this._timers.invite2xxTimer),this._late_sdp){if(!t.body){this.terminate({cause:w.causes.MISSING_SDP,status_code:400});break}var n={originator:"remote",type:"answer",sdp:t.body};T.debug('emit "sdp"'),this.emit("sdp",n);var i=new RTCSessionDescription({type:"answer",sdp:n.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(function(){return e._connection.setRemoteDescription(i)}).then(function(){e._is_confirmed||e._confirmed("remote",t)}).catch(function(t){e.terminate({cause:w.causes.BAD_MEDIA_DESCRIPTION,status_code:488}),T.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),e.emit("peerconnection:setremotedescriptionfailed",t)})}else this._is_confirmed||this._confirmed("remote",t);break;case w.BYE:this._status===k.STATUS_CONFIRMED||this._status===k.STATUS_WAITING_FOR_ACK?(t.reply(200),this._ended("remote",t,w.causes.BYE)):this._status===k.STATUS_INVITE_RECEIVED||this._status===k.STATUS_WAITING_FOR_ANSWER?(t.reply(200),this._request.reply(487,"BYE Received"),this._ended("remote",t,w.causes.BYE)):t.reply(403,"Wrong Status");break;case w.INVITE:this._status===k.STATUS_CONFIRMED?t.hasHeader("replaces")?this._receiveReplaces(t):this._receiveReinvite(t):t.reply(403,"Wrong Status");break;case w.INFO:this._status===k.STATUS_1XX_RECEIVED||this._status===k.STATUS_WAITING_FOR_ANSWER||this._status===k.STATUS_ANSWERED||this._status===k.STATUS_WAITING_FOR_ACK||this._status===k.STATUS_CONFIRMED?(a=t.hasHeader("Content-Type")?t.getHeader("Content-Type").toLowerCase():void 0)&&a.match(/^application\/dtmf-relay/i)?new v(this).init_incoming(t):void 0!==a?new D(this).init_incoming(t):t.reply(415):t.reply(403,"Wrong Status");break;case w.UPDATE:this._status===k.STATUS_CONFIRMED?this._receiveUpdate(t):t.reply(403,"Wrong Status");break;case w.REFER:this._status===k.STATUS_CONFIRMED?this._receiveRefer(t):t.reply(403,"Wrong Status");break;case w.NOTIFY:var a={event:t.event,request:t,taken:!1};if(this.emit("sipEvent",a),a.taken){t.reply(200);break}this._status===k.STATUS_CONFIRMED?this._receiveNotify(t):t.reply(403,"Wrong Status");break;default:t.reply(501)}}},{key:"onTransportError",value:function(){T.warn("onTransportError()"),this._status!==k.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:w.causes.CONNECTION_ERROR,cause:w.causes.CONNECTION_ERROR})}},{key:"onRequestTimeout",value:function(){T.warn("onRequestTimeout()"),this._status!==k.STATUS_TERMINATED&&this.terminate({status_code:408,reason_phrase:w.causes.REQUEST_TIMEOUT,cause:w.causes.REQUEST_TIMEOUT})}},{key:"onDialogError",value:function(){T.warn("onDialogError()"),this._status!==k.STATUS_TERMINATED&&this.terminate({status_code:500,reason_phrase:w.causes.DIALOG_ERROR,cause:w.causes.DIALOG_ERROR})}},{key:"newDTMF",value:function(t){T.debug("newDTMF()"),this.emit("newDTMF",t)}},{key:"newInfo",value:function(t){T.debug("newInfo()"),this.emit("newInfo",t)}},{key:"_isReadyToReOffer",value:function(){return this._rtcReady?this._dialog?!0!==this._dialog.uac_pending_reply&&!0!==this._dialog.uas_pending_reply||(T.debug("_isReadyToReOffer() | there is another INVITE/UPDATE transaction in progress"),!1):(T.debug("_isReadyToReOffer() | session not established yet"),!1):(T.debug("_isReadyToReOffer() | internal WebRTC status not ready"),!1)}},{key:"_close",value:function(){if(T.debug("close()"),this._localMediaStream&&this._localMediaStreamLocallyGenerated&&(T.debug("close() | closing local MediaStream"),_.closeMediaStream(this._localMediaStream)),this._status!==k.STATUS_TERMINATED){if(this._status=k.STATUS_TERMINATED,this._connection)try{this._connection.close()}catch(t){T.warn("close() | error closing the RTCPeerConnection: %o",t)}for(var t in this._timers)Object.prototype.hasOwnProperty.call(this._timers,t)&&clearTimeout(this._timers[t]);for(var e in clearTimeout(this._sessionTimers.timer),this._dialog&&(this._dialog.terminate(),delete this._dialog),this._earlyDialogs)Object.prototype.hasOwnProperty.call(this._earlyDialogs,e)&&(this._earlyDialogs[e].terminate(),delete this._earlyDialogs[e]);for(var n in this._referSubscribers)Object.prototype.hasOwnProperty.call(this._referSubscribers,n)&&delete this._referSubscribers[n];this._ua.destroyRTCSession(this)}}},{key:"_setInvite2xxTimer",value:function(e,n){var i=h.T1;this._timers.invite2xxTimer=setTimeout(function t(){this._status===k.STATUS_WAITING_FOR_ACK&&(e.reply(200,null,["Contact: ".concat(this._contact)],n),i<h.T2&&(i*=2)>h.T2&&(i=h.T2),this._timers.invite2xxTimer=setTimeout(t.bind(this),i))}.bind(this),i)}},{key:"_setACKTimer",value:function(){var t=this;this._timers.ackTimer=setTimeout(function(){t._status===k.STATUS_WAITING_FOR_ACK&&(T.debug("no ACK received, terminating the session"),clearTimeout(t._timers.invite2xxTimer),t.sendRequest(w.BYE),t._ended("remote",null,w.causes.NO_ACK))},h.TIMER_H)}},{key:"_createRTCConnection",value:function(t,e){var n=this;this._connection=new RTCPeerConnection(t,e),this._connection.addEventListener("iceconnectionstatechange",function(){var e,t=n._connection.iceConnectionState;"failed"===t&&n.terminate({cause:w.causes.RTP_TIMEOUT,status_code:408,reason_phrase:w.causes.RTP_TIMEOUT}),void 0!==n._ua.modes.chrome_rtp_timeout_fix&&navigator.webkitGetUserMedia&&"disconnected"===t&&(e=n._ua.modes.chrome_rtp_timeout_fix,T.debug("AC: Chrome RTP timeout fix: iceConnectionState==disconnected: check that this will continue for ".concat(e," seconds...")),function t(){"disconnected"===n._connection.iceConnectionState?0<e--?setTimeout(t,1e3):(T.debug("AC: Chrome RTP timeout fix: Hangup call"),n.terminate({cause:w.causes.RTP_TIMEOUT,status_code:408,reason_phrase:w.causes.RTP_TIMEOUT})):T.debug("AC: Chrome RTP timeout fix: iceConnectionState=".concat(n._connection.iceConnectionState))}())}),T.debug('emit "peerconnection"'),this.emit("peerconnection",{peerconnection:this._connection})}},{key:"_createLocalDescription",value:function(s,e){var r=this;if(T.debug("createLocalDescription()"),"offer"!==s&&"answer"!==s)throw new Error('createLocalDescription() | invalid type "'.concat(s,'"'));var l=this._connection;return this._rtcReady=!1,Promise.resolve().then(function(){return"offer"===s?l.createOffer(e).catch(function(t){return T.warn('emit "peerconnection:createofferfailed" [error:%o]',t),r.emit("peerconnection:createofferfailed",t),Promise.reject(t)}):l.createAnswer(e).catch(function(t){return T.warn('emit "peerconnection:createanswerfailed" [error:%o]',t),r.emit("peerconnection:createanswerfailed",t),Promise.reject(t)})}).then(function(t){return l.setLocalDescription(t).catch(function(t){return r._rtcReady=!0,T.warn('emit "peerconnection:setlocaldescriptionfailed" [error:%o]',t),r.emit("peerconnection:setlocaldescriptionfailed",t),Promise.reject(t)})}).then(function(){var t=e&&e.iceRestart;if("complete"===l.iceGatheringState&&!t||"gathering"===l.iceGatheringState&&r._iceReady){r._rtcReady=!0;t={originator:"local",type:s,sdp:l.localDescription.sdp};return T.debug('emit "sdp"'),r.emit("sdp",t),Promise.resolve(t.sdp)}return new Promise(function(e){var n,i,a=!1;r._iceReady=!1;function o(){l.removeEventListener("icecandidate",n),l.removeEventListener("icegatheringstatechange",i),a=!0,r._rtcReady=!0,r._iceReady=!0;var t={originator:"local",type:s,sdp:l.localDescription.sdp};T.debug('emit "sdp"'),r.emit("sdp",t),e(t.sdp)}l.addEventListener("icecandidate",n=function(t){t=t.candidate;t?r.emit("icecandidate",{candidate:t,ready:o}):a||o()}),l.addEventListener("icegatheringstatechange",i=function(){"complete"!==l.iceGatheringState||a||o()}),void 0!==r._ua.modes.ice_timeout_fix&&setTimeout(function(){a||(T.debug("AC: ICE gathering timeout fix"),o())},r._ua.modes.ice_timeout_fix)})})}},{key:"_createDialog",value:function(t,e,n){var i="UAS"===e?t.to_tag:t.from_tag,a="UAS"===e?t.from_tag:t.to_tag,i=t.call_id+i+a,a=this._earlyDialogs[i];if(n)return!!a||((a=new g(this,t,e,g.C.STATUS_EARLY)).error?(T.debug(a.error),this._failed("remote",t,w.causes.INTERNAL_ERROR),!1):(this._earlyDialogs[i]=a,!0));if(this._from_tag=t.from_tag,this._to_tag=t.to_tag,a)return a.update(t,e),this._dialog=a,delete this._earlyDialogs[i],!0;e=new g(this,t,e);return e.error?(T.debug(e.error),this._failed("remote",t,w.causes.INTERNAL_ERROR),!1):(this._dialog=e,!0)}},{key:"_receiveReinvite",value:function(i){var e=this;T.debug("receiveReinvite()");var t=i.hasHeader("Content-Type")?i.getHeader("Content-Type").toLowerCase():void 0,a={request:i,callback:void 0,reject:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};o=!0;var e=t.status_code||403,n=t.reason_phrase||"",t=_.cloneArray(t.extraHeaders);if(this._status!==k.STATUS_CONFIRMED)return!1;if(e<300||700<=e)throw new TypeError("Invalid status_code: ".concat(e));i.reply(e,n,t)}.bind(this)},o=!1;if(this.emit("reinvite",a),!o)return this._late_sdp=!1,i.body?"application/sdp"!==t?(T.debug("invalid Content-Type"),void i.reply(415)):void this._processInDialogSdpOffer(i).then(function(t){e._status!==k.STATUS_TERMINATED&&n.call(e,t)}).catch(function(t){T.warn(t)}):(this._late_sdp=!0,this._remoteHold&&(this._remoteHold=!1,this._onunhold("remote")),void(this._connectionPromiseQueue=this._connectionPromiseQueue.then(function(){return e._createLocalDescription("offer",e._rtcOfferConstraints)}).then(function(t){n.call(e,t)}).catch(function(){i.reply(500)})));function n(t){var e=this,n=["Contact: ".concat(this._contact)];this._handleSessionTimersInIncomingRequest(i,n),this._late_sdp&&(t=this._mangleOffer(t)),i.reply(200,null,n,t,function(){e._status=k.STATUS_WAITING_FOR_ACK,e._setInvite2xxTimer(i,t),e._setACKTimer()}),"function"==typeof a.callback&&a.callback()}}},{key:"_receiveUpdate",value:function(i){var e=this;T.debug("receiveUpdate()");var t=i.hasHeader("Content-Type")?i.getHeader("Content-Type").toLowerCase():void 0,n={request:i,callback:void 0,reject:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};a=!0;var e=t.status_code||403,n=t.reason_phrase||"",t=_.cloneArray(t.extraHeaders);if(this._status!==k.STATUS_CONFIRMED)return!1;if(e<300||700<=e)throw new TypeError("Invalid status_code: ".concat(e));i.reply(e,n,t)}.bind(this)},a=!1;if(this.emit("update",n),!a)if(i.body){if("application/sdp"!==t)return T.debug("invalid Content-Type"),void i.reply(415);this._processInDialogSdpOffer(i).then(function(t){e._status!==k.STATUS_TERMINATED&&o.call(e,t)}).catch(function(t){T.warn(t)})}else o.call(this,null);function o(t){var e=["Contact: ".concat(this._contact)];this._handleSessionTimersInIncomingRequest(i,e),i.reply(200,null,e,t),"function"==typeof n.callback&&n.callback()}}},{key:"_processInDialogSdpOffer",value:function(e){var n=this;T.debug("_processInDialogSdpOffer()");var t,i=e.parseSDP(),a=!1,o=M(i.media);try{for(o.s();!(t=o.n()).done;){var s=t.value;if(-1!==x.indexOf(s.type)){var r=s.direction||i.direction||"sendrecv";if("sendonly"!==r&&"inactive"!==r){a=!1;break}a=!0}}}catch(e){o.e(e)}finally{o.f()}var l={originator:"remote",type:"offer",sdp:e.body};T.debug('emit "sdp"'),this.emit("sdp",l);var c=new RTCSessionDescription({type:"offer",sdp:l.sdp});return this._connectionPromiseQueue=this._connectionPromiseQueue.then(function(){if(n._status===k.STATUS_TERMINATED)throw new Error("terminated");return n._connection.setRemoteDescription(c).catch(function(t){throw e.reply(488),T.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),n.emit("peerconnection:setremotedescriptionfailed",t),t})}).then(function(){if(n._status===k.STATUS_TERMINATED)throw new Error("terminated");!0===n._remoteHold&&!1===a?(n._remoteHold=!1,n._onunhold("remote")):!1===n._remoteHold&&!0===a&&(n._remoteHold=!0,n._onhold("remote"))}).then(function(){if(n._status===k.STATUS_TERMINATED)throw new Error("terminated");return n._createLocalDescription("answer",n._rtcAnswerConstraints).catch(function(t){throw e.reply(500),T.warn('emit "peerconnection:createtelocaldescriptionfailed" [error:%o]',t),t})}).catch(function(t){T.warn("_processInDialogSdpOffer() failed [error: %o]",t)}),this._connectionPromiseQueue}},{key:"_receiveRefer",value:function(a){var n=this;if(T.debug("receiveRefer()"),!a.refer_to)return T.debug("no Refer-To header field present in REFER"),void a.reply(400);if(a.refer_to.uri.scheme!==w.SIP)return T.debug("Refer-To header field points to a non-SIP URI scheme"),void a.reply(416);a.reply(202);var o=new b(this,a.cseq);T.debug('emit "refer"'),this.emit("refer",{request:a,accept:function(t,e){!function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(t="function"==typeof t?t:null,this._status!==k.STATUS_WAITING_FOR_ACK&&this._status!==k.STATUS_CONFIRMED)return!1;var n,i=new s(this._ua);i.on("progress",function(t){t=t.response;o.notify(t.status_code,t.reason_phrase)}),i.on("accepted",function(t){t=t.response;o.notify(t.status_code,t.reason_phrase)}),i.on("_failed",function(t){var e=t.message,t=t.cause;e?o.notify(e.status_code,e.reason_phrase):o.notify(487,t)}),a.refer_to.uri.hasHeader("replaces")&&(n=decodeURIComponent(a.refer_to.uri.getHeader("replaces")),e.extraHeaders=_.cloneArray(e.extraHeaders),e.extraHeaders.push("Replaces: ".concat(n))),i.connect(a.refer_to.uri.toAor(),e,t)}.call(n,t,e)},reject:function(){!function(){o.notify(603)}.call(n)}})}},{key:"_receiveNotify",value:function(t){if("refer"===(T.debug("receiveNotify()"),t.event||t.reply(400),t.event.event)){var e;if(t.event.params&&t.event.params.id)e=t.event.params.id,e=this._referSubscribers[e];else{if(1!==Object.keys(this._referSubscribers).length)return void t.reply(400,"Missing event id parameter");e=this._referSubscribers[Object.keys(this._referSubscribers)[0]]}e?(e.receiveNotify(t),t.reply(200)):t.reply(481,"Subscription does not exist")}else t.reply(489)}},{key:"_receiveReplaces",value:function(i){var e=this;T.debug("receiveReplaces()"),this.emit("replaces",{request:i,accept:function(t){!function(t){var e=this;if(this._status!==k.STATUS_WAITING_FOR_ACK&&this._status!==k.STATUS_CONFIRMED)return!1;var n=new s(this._ua);n.on("confirmed",function(){e.terminate()}),n.init_incoming(i,t)}.call(e,t)},reject:function(){!function(){T.debug("Replaced INVITE rejected by the user"),i.reply(486)}.call(e)}})}},{key:"_sendInitialRequest",value:function(t,n,e){var i=this,a=new y(this._ua,this._request,{onRequestTimeout:function(){i.onRequestTimeout()},onTransportError:function(){i.onTransportError()},onAuthenticated:function(t){i._request=t},onReceiveResponse:function(t){i._receiveInviteResponse(t)}});Promise.resolve().then(function(){return e||(t.audio||t.video?(i._localMediaStreamLocallyGenerated=!0,navigator.mediaDevices.getUserMedia(t).catch(function(t){if(i._status===k.STATUS_TERMINATED)throw new Error("terminated");throw i._failed("local",null,w.causes.USER_DENIED_MEDIA_ACCESS),T.warn('emit "getusermediafailed" [error:%o]',t),i.emit("getusermediafailed",t),t})):void 0)}).then(function(e){if(i._status===k.STATUS_TERMINATED)throw new Error("terminated");return(i._localMediaStream=e)&&e.getTracks().forEach(function(t){i._connection.addTrack(t,e)}),i._connecting(i._request),i._createLocalDescription("offer",n).catch(function(t){throw i._failed("local",null,w.causes.WEBRTC_ERROR),t})}).then(function(t){if(i._is_canceled||i._status===k.STATUS_TERMINATED)throw new Error("terminated");i._request.body=t,i._status=k.STATUS_INVITE_SENT,T.debug('emit "sending" [request:%o]',i._request),i.emit("sending",{request:i._request}),a.send()}).catch(function(t){i._status!==k.STATUS_TERMINATED&&T.warn(t)})}},{key:"_getDTMFRTPSender",value:function(){var t=this._connection.getSenders().find(function(t){return t.track&&"audio"===t.track.kind});if(t&&t.dtmf)return t.dtmf;T.warn("sendDTMF() | no local audio track to send DTMF with")}},{key:"_receiveInviteResponse",value:function(e){var n=this;if(T.debug("receiveInviteResponse()"),this._dialog&&200<=e.status_code&&e.status_code<=299){if(this._dialog.id.call_id===e.call_id&&this._dialog.id.local_tag===e.from_tag&&this._dialog.id.remote_tag===e.to_tag)return void this.sendRequest(w.ACK);var t=new g(this,e,"UAC");return void 0!==t.error?void T.debug(t.error):(this.sendRequest(w.ACK),void this.sendRequest(w.BYE))}if(this._is_canceled)100<=e.status_code&&e.status_code<200?this._request.cancel(this._cancel_reason):200<=e.status_code&&e.status_code<299&&this._acceptAndTerminate(e);else if(this._status===k.STATUS_INVITE_SENT||this._status===k.STATUS_1XX_RECEIVED)switch(!0){case/^100$/.test(e.status_code):this._status=k.STATUS_1XX_RECEIVED;break;case/^1[0-9]{2}$/.test(e.status_code):if(!e.to_tag){T.debug("1xx response received without to tag");break}if(e.hasHeader("contact")&&!this._createDialog(e,"UAC",!0))break;if(this._status=k.STATUS_1XX_RECEIVED,!e.body){this._progress("remote",e);break}var i={originator:"remote",type:"answer",sdp:e.body};T.debug('emit "sdp"'),this.emit("sdp",i);var a=new RTCSessionDescription({type:"answer",sdp:i.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(function(){return n._connection.setRemoteDescription(a)}).then(function(){return n._progress("remote",e)}).catch(function(t){T.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),n.emit("peerconnection:setremotedescriptionfailed",t)});break;case/^2[0-9]{2}$/.test(e.status_code):if(this._status=k.STATUS_CONFIRMED,!e.body){this._acceptAndTerminate(e,400,w.causes.MISSING_SDP),this._failed("remote",e,w.causes.BAD_MEDIA_DESCRIPTION);break}if(!this._createDialog(e,"UAC"))break;var o={originator:"remote",type:"answer",sdp:e.body};T.debug('emit "sdp"'),this.emit("sdp",o);var s=new RTCSessionDescription({type:"answer",sdp:o.sdp});this._connectionPromiseQueue=this._connectionPromiseQueue.then(function(){if("stable"===n._connection.signalingState)return n._connection.createOffer(n._rtcOfferConstraints).then(function(t){return n._connection.setLocalDescription(t)}).catch(function(t){n._acceptAndTerminate(e,500,t.toString()),n._failed("local",e,w.causes.WEBRTC_ERROR)})}).then(function(){n._connection.setRemoteDescription(s).then(function(){n._handleSessionTimersInIncomingResponse(e),n._accepted("remote",e),n.sendRequest(w.ACK),n._confirmed("local",null)}).catch(function(t){n._acceptAndTerminate(e,488,"Not Acceptable Here"),n._failed("remote",e,w.causes.BAD_MEDIA_DESCRIPTION),T.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),n.emit("peerconnection:setremotedescriptionfailed",t)})});break;default:o=_.sipErrorCause(e.status_code);this._failed("remote",e,o)}}},{key:"_sendReinvite",value:function(){var n=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};T.debug("sendReinvite()");var i=_.cloneArray(t.extraHeaders),a=_.cloneObject(t.eventHandlers),e=t.rtcOfferConstraints||this._rtcOfferConstraints||null,o=!1;function s(t){a.failed&&a.failed(t)}i.push("Contact: ".concat(this._contact)),i.push("Content-Type: application/sdp"),this._sessionTimers.running&&i.push("Session-Expires: ".concat(this._sessionTimers.currentExpires,";refresher=").concat(this._sessionTimers.refresher?"uac":"uas")),this._connectionPromiseQueue=this._connectionPromiseQueue.then(function(){return n._createLocalDescription("offer",e)}).then(function(t){var e={originator:"local",type:"offer",sdp:t=n._mangleOffer(t)};T.debug('emit "sdp"'),n.emit("sdp",e),n.sendRequest(w.INVITE,{extraHeaders:i,body:t,eventHandlers:{onSuccessResponse:function(t){(function(t){var e,n,i=this;this._status!==k.STATUS_TERMINATED&&(this.sendRequest(w.ACK),o||(this._handleSessionTimersInIncomingResponse(t),t.body&&t.hasHeader("Content-Type")&&"application/sdp"===t.getHeader("Content-Type").toLowerCase()?(e={originator:"remote",type:"answer",sdp:t.body},T.debug('emit "sdp"'),this.emit("sdp",e),n=new RTCSessionDescription({type:"answer",sdp:e.sdp}),this._connectionPromiseQueue=this._connectionPromiseQueue.then(function(){return i._connection.setRemoteDescription(n)}).then(function(){a.succeeded&&a.succeeded(t)}).catch(function(t){s.call(i),T.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),i.emit("peerconnection:setremotedescriptionfailed",t)})):s.call(this)))}).call(n,t),o=!0},onErrorResponse:function(t){s.call(n,t)},onTransportError:function(){n.onTransportError()},onRequestTimeout:function(){n.onRequestTimeout()},onDialogError:function(){n.onDialogError()}}})}).catch(function(){s()})}},{key:"_sendUpdate",value:function(){var n=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};T.debug("sendUpdate()");var i=_.cloneArray(t.extraHeaders),a=_.cloneObject(t.eventHandlers),e=t.rtcOfferConstraints||this._rtcOfferConstraints||null,o=t.sdpOffer||!1,s=!1;function r(t){var e,n,i=this;this._status===k.STATUS_TERMINATED||s||(this._handleSessionTimersInIncomingResponse(t),o?t.body&&t.hasHeader("Content-Type")&&"application/sdp"===t.getHeader("Content-Type").toLowerCase()?(e={originator:"remote",type:"answer",sdp:t.body},T.debug('emit "sdp"'),this.emit("sdp",e),n=new RTCSessionDescription({type:"answer",sdp:e.sdp}),this._connectionPromiseQueue=this._connectionPromiseQueue.then(function(){return i._connection.setRemoteDescription(n)}).then(function(){a.succeeded&&a.succeeded(t)}).catch(function(t){l.call(i),T.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]',t),i.emit("peerconnection:setremotedescriptionfailed",t)})):l.call(this):a.succeeded&&a.succeeded(t))}function l(t){a.failed&&a.failed(t)}i.push("Contact: ".concat(this._contact)),this._sessionTimers.running&&i.push("Session-Expires: ".concat(this._sessionTimers.currentExpires,";refresher=").concat(this._sessionTimers.refresher?"uac":"uas")),o?(i.push("Content-Type: application/sdp"),this._connectionPromiseQueue=this._connectionPromiseQueue.then(function(){return n._createLocalDescription("offer",e)}).then(function(t){var e={originator:"local",type:"offer",sdp:t=n._mangleOffer(t)};T.debug('emit "sdp"'),n.emit("sdp",e),n.sendRequest(w.UPDATE,{extraHeaders:i,body:t,eventHandlers:{onSuccessResponse:function(t){r.call(n,t),s=!0},onErrorResponse:function(t){l.call(n,t)},onTransportError:function(){n.onTransportError()},onRequestTimeout:function(){n.onRequestTimeout()},onDialogError:function(){n.onDialogError()}}})}).catch(function(){l.call(n)})):this.sendRequest(w.UPDATE,{extraHeaders:i,eventHandlers:{onSuccessResponse:function(t){r.call(n,t)},onErrorResponse:function(t){l.call(n,t)},onTransportError:function(){n.onTransportError()},onRequestTimeout:function(){n.onRequestTimeout()},onDialogError:function(){n.onDialogError()}}})}},{key:"_acceptAndTerminate",value:function(t,e,n){T.debug("acceptAndTerminate()");var i=[];e&&(n=n||w.REASON_PHRASE[e]||"",i.push("Reason: SIP ;cause=".concat(e,'; text="').concat(n,'"'))),(this._dialog||this._createDialog(t,"UAC"))&&(this.sendRequest(w.ACK),this.sendRequest(w.BYE,{extraHeaders:i})),this._status=k.STATUS_TERMINATED}},{key:"_mangleOffer",value:function(t){if(!this._localHold&&!this._remoteHold)return t;if(t=f.parse(t),this._localHold&&!this._remoteHold){T.debug("mangleOffer() | me on hold, mangling offer");var e,n=M(t.media);try{for(n.s();!(e=n.n()).done;){var i=e.value;-1!==x.indexOf(i.type)&&(!i.direction||"sendrecv"===i.direction?i.direction="sendonly":"recvonly"===i.direction&&(i.direction="inactive"))}}catch(t){n.e(t)}finally{n.f()}}else if(this._localHold&&this._remoteHold){T.debug("mangleOffer() | both on hold, mangling offer");var a,o=M(t.media);try{for(o.s();!(a=o.n()).done;){var s=a.value;-1!==x.indexOf(s.type)&&(s.direction="inactive")}}catch(t){o.e(t)}finally{o.f()}}else if(this._remoteHold){T.debug("mangleOffer() | remote on hold, mangling offer");var r,l=M(t.media);try{for(l.s();!(r=l.n()).done;){var c=r.value;-1!==x.indexOf(c.type)&&(!c.direction||"sendrecv"===c.direction?c.direction="recvonly":"recvonly"===c.direction&&(c.direction="inactive"))}}catch(t){l.e(t)}finally{l.f()}}return f.write(t)}},{key:"_setLocalMediaStatus",value:function(){var t=!0,e=!0;(this._localHold||this._remoteHold)&&(e=t=!1),this._audioMuted&&(t=!1),this._videoMuted&&(e=!1),this._toggleMuteAudio(!t),this._toggleMuteVideo(!e)}},{key:"_handleSessionTimersInIncomingRequest",value:function(t,e){this._sessionTimers.enabled&&(t=t.session_expires&&t.session_expires>=w.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=t.session_expires,t.session_expires_refresher||"uas"):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,"uas"),e.push("Session-Expires: ".concat(this._sessionTimers.currentExpires,";refresher=").concat(t)),this._sessionTimers.refresher="uas"===t,this._runSessionTimer())}},{key:"_handleSessionTimersInIncomingResponse",value:function(t){this._sessionTimers.enabled&&(t=t.session_expires&&t.session_expires>=w.MIN_SESSION_EXPIRES?(this._sessionTimers.currentExpires=t.session_expires,t.session_expires_refresher||"uac"):(this._sessionTimers.currentExpires=this._sessionTimers.defaultExpires,"uac"),this._sessionTimers.refresher="uac"===t,this._runSessionTimer())}},{key:"_runSessionTimer",value:function(){var t=this,e=this._sessionTimers.currentExpires;this._sessionTimers.running=!0,clearTimeout(this._sessionTimers.timer),this._sessionTimers.refresher?this._sessionTimers.timer=setTimeout(function(){t._status!==k.STATUS_TERMINATED&&t._isReadyToReOffer()&&(T.debug("runSessionTimer() | sending session refresh request"),t._sessionTimers.refreshMethod===w.UPDATE?t._sendUpdate():t._sendReinvite())},500*e):this._sessionTimers.timer=setTimeout(function(){t._status!==k.STATUS_TERMINATED&&(T.warn("runSessionTimer() | timer expired, terminating the session"),t.terminate({cause:w.causes.REQUEST_TIMEOUT,status_code:408,reason_phrase:"Session Timer Expired"}))},1100*e)}},{key:"_toggleMuteAudio",value:function(t){var e,n=M(this._connection.getSenders().filter(function(t){return t.track&&"audio"===t.track.kind}));try{for(n.s();!(e=n.n()).done;)e.value.track.enabled=!t}catch(t){n.e(t)}finally{n.f()}}},{key:"_toggleMuteVideo",value:function(t){var e,n=M(this._connection.getSenders().filter(function(t){return t.track&&"video"===t.track.kind}));try{for(n.s();!(e=n.n()).done;)e.value.track.enabled=!t}catch(t){n.e(t)}finally{n.f()}}},{key:"_newRTCSession",value:function(t,e){T.debug("newRTCSession()"),this._ua.newRTCSession(this,{originator:t,session:this,request:e})}},{key:"_connecting",value:function(t){T.debug("session connecting"),T.debug('emit "connecting"'),this.emit("connecting",{request:t})}},{key:"_progress",value:function(t,e){T.debug("session progress"),T.debug('emit "progress"'),this.emit("progress",{originator:t,response:e||null})}},{key:"_accepted",value:function(t,e){T.debug("session accepted"),this._start_time=new Date,T.debug('emit "accepted"'),this.emit("accepted",{originator:t,response:e||null})}},{key:"_confirmed",value:function(t,e){T.debug("session confirmed"),this._is_confirmed=!0,T.debug('emit "confirmed"'),this.emit("confirmed",{originator:t,ack:e||null})}},{key:"_ended",value:function(t,e,n){T.debug("session ended"),this._end_time=new Date,this._close(),T.debug('emit "ended"'),this.emit("ended",{originator:t,message:e||null,cause:n})}},{key:"_failed",value:function(t,e,n){T.debug("session failed"),T.debug('emit "_failed"'),this.emit("_failed",{originator:t,message:e||null,cause:n}),this._close(),T.debug('emit "failed"'),this.emit("failed",{originator:t,message:e||null,cause:n})}},{key:"_onhold",value:function(t){T.debug("session onhold"),this._setLocalMediaStatus(),T.debug('emit "hold"'),this.emit("hold",{originator:t})}},{key:"_onunhold",value:function(t){T.debug("session onunhold"),this._setLocalMediaStatus(),T.debug('emit "unhold"'),this.emit("unhold",{originator:t})}},{key:"_onmute",value:function(t){var e=t.audio,t=t.video;T.debug("session onmute"),this._setLocalMediaStatus(),T.debug('emit "muted"'),this.emit("muted",{audio:e,video:t})}},{key:"_onunmute",value:function(t){var e=t.audio,t=t.video;T.debug("session onunmute"),this._setLocalMediaStatus(),T.debug('emit "unmuted"'),this.emit("unmuted",{audio:e,video:t})}}]),l(t,e),Object.defineProperty(t,"prototype",{writable:!1}),s}()},{"./Constants":2,"./Dialog":3,"./Exceptions":6,"./Logger":9,"./RTCSession/DTMF":16,"./RTCSession/Info":17,"./RTCSession/ReferNotifier":18,"./RTCSession/ReferSubscriber":19,"./RequestSender":21,"./SIPMessage":22,"./Timers":25,"./Transactions":26,"./URI":29,"./Utils":30,events:33,"sdp-transform":39}],16:[function(t,e,n){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=t("events").EventEmitter,i=t("../Logger"),d=t("../Constants"),f=t("../Exceptions"),p=t("../Utils"),h=new i("RTCSession:DTMF"),m={MIN_DURATION:70,MAX_DURATION:6e3,DEFAULT_DURATION:100,MIN_INTER_TONE_GAP:50,DEFAULT_INTER_TONE_GAP:500};e.exports=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(o,u);var t,n,i,a=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=c(n);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=c(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function o(t){var e;return function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(e=a.call(this))._session=t,e._direction=null,e._tone=null,e._duration=null,e._request=null,e}return r((t=o).prototype,[{key:"tone",get:function(){return this._tone}},{key:"duration",get:function(){return this._duration}},{key:"send",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(void 0===t)throw new TypeError("Not enough arguments");if(this._direction="outgoing",this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new f.InvalidStateError(this._session.status);var i=p.cloneArray(n.extraHeaders);if(this.eventHandlers=p.cloneObject(n.eventHandlers),"string"==typeof t)t=t.toUpperCase();else{if("number"!=typeof t)throw new TypeError("Invalid tone: ".concat(t));t=t.toString()}if(!t.match(/^[0-9A-DR#*]$/))throw new TypeError("Invalid tone: ".concat(t));this._tone=t,this._duration=n.duration,i.push("Content-Type: application/dtmf-relay");n="Signal=".concat(this._tone,"\r\n");n+="Duration=".concat(this._duration),this._session.newDTMF({originator:"local",dtmf:this,request:this._request}),this._session.sendRequest(d.INFO,{extraHeaders:i,eventHandlers:{onSuccessResponse:function(t){e.emit("succeeded",{originator:"remote",response:t})},onErrorResponse:function(t){e.eventHandlers.onFailed&&e.eventHandlers.onFailed(),e.emit("failed",{originator:"remote",response:t})},onRequestTimeout:function(){e._session.onRequestTimeout()},onTransportError:function(){e._session.onTransportError()},onDialogError:function(){e._session.onDialogError()}},body:n})}},{key:"init_incoming",value:function(t){var e,n=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/,i=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;this._direction="incoming",(this._request=t).reply(200),t.body&&(1<=(e=t.body.split("\n")).length&&n.test(e[0])&&(this._tone=e[0].replace(n,"$2")),2<=e.length&&i.test(e[1])&&(this._duration=parseInt(e[1].replace(i,"$2"),10))),this._duration||(this._duration=m.DEFAULT_DURATION),this._tone?this._session.newDTMF({originator:"remote",dtmf:this,request:t}):h.debug("invalid INFO DTMF received, discarded")}}]),Object.defineProperty(t,"prototype",{writable:!1}),o}(),e.exports.C=m},{"../Constants":2,"../Exceptions":6,"../Logger":9,"../Utils":30,events:33}],17:[function(t,e,n){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=t("events").EventEmitter,d=t("../Constants"),f=t("../Exceptions"),p=t("../Utils");e.exports=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(o,u);var t,n,i,a=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=c(n);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=c(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function o(t){var e;return function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(e=a.call(this))._session=t,e._direction=null,e._contentType=null,e._body=null,e}return r((t=o).prototype,[{key:"contentType",get:function(){return this._contentType}},{key:"body",get:function(){return this._body}},{key:"send",value:function(t,e){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(this._direction="outgoing",e&&void 0===t)throw new TypeError("Not enough arguments");if(this._session.status!==this._session.C.STATUS_CONFIRMED&&this._session.status!==this._session.C.STATUS_WAITING_FOR_ACK)throw new f.InvalidStateError(this._session.status);this._contentType=t,this._body=e;i=p.cloneArray(i.extraHeaders);t&&i.push("Content-Type: ".concat(t)),this._session.newInfo({originator:"local",info:this,request:this.request}),this._session.sendRequest(d.INFO,{extraHeaders:i,eventHandlers:{onSuccessResponse:function(t){n.emit("succeeded",{originator:"remote",response:t})},onErrorResponse:function(t){n.emit("failed",{originator:"remote",response:t})},onTransportError:function(){n._session.onTransportError()},onRequestTimeout:function(){n._session.onRequestTimeout()},onDialogError:function(){n._session.onDialogError()}},body:e})}},{key:"init_incoming",value:function(t){this._direction="incoming",(this.request=t).reply(200),this._contentType=t.hasHeader("Content-Type")?t.getHeader("Content-Type").toLowerCase():void 0,this._body=t.body,this._session.newInfo({originator:"remote",info:this,request:t})}}]),Object.defineProperty(t,"prototype",{writable:!1}),o}()},{"../Constants":2,"../Exceptions":6,"../Utils":30,events:33}],18:[function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("../Logger"),o=t("../Constants"),s=new a("RTCSession:ReferNotifier"),r="refer",l="message/sipfrag;version=2.0",c=300;function u(t,e,n){!function(t){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}(this),this._session=t,this._id=e,this._expires=n||c,this._active=!0,this.notify(100)}e.exports=(i((e=u).prototype,[{key:"notify",value:function(t,e){if(s.debug("notify()"),!1!==this._active){var n;e=e||o.REASON_PHRASE[t]||"",n=200<=t?"terminated;reason=noresource":"active;expires=".concat(this._expires);try{this._session.sendRequest(o.NOTIFY,{extraHeaders:["Event: ".concat(r,";id=").concat(this._id),"Subscription-State: ".concat(n),"Content-Type: ".concat(l)],body:"SIP/2.0 ".concat(t," ").concat(e),eventHandlers:{onErrorResponse:function(){this._active=!1}}})}catch(t){s.debug("send NOTIFY exception [ignored]")}}}}]),Object.defineProperty(e,"prototype",{writable:!1}),u)},{"../Constants":2,"../Logger":9}],19:[function(t,e,n){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=t("events").EventEmitter,i=t("../Logger"),d=t("../Constants"),f=t("../Grammar"),p=t("../Utils"),h=new i("RTCSession:ReferSubscriber");e.exports=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(o,u);var t,n,i,a=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=c(n);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=c(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function o(t){var e;return function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(e=a.call(this))._id=null,e._session=t,e}return r((t=o).prototype,[{key:"id",get:function(){return this._id}},{key:"sendRefer",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};h.debug("sendRefer()");var i,a=p.cloneArray(n.extraHeaders),o=p.cloneObject(n.eventHandlers);for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&this.on(i,o[i]);var s=null;n.replaces&&(s=n.replaces._request.call_id,s+=";to-tag=".concat(n.replaces._to_tag),s+=";from-tag=".concat(n.replaces._from_tag),s=encodeURIComponent(s));var s="Refer-To: <".concat(t).concat(s?"?Replaces=".concat(s):"",">");a.push(s),a.some(function(t){return t.toLowerCase().startsWith("referred-by:")})||(s="Referred-By: <".concat(this._session._ua._configuration.uri._scheme,":").concat(this._session._ua._configuration.uri._user,"@").concat(this._session._ua._configuration.uri._host,">"),a.push(s)),a.push("Contact: ".concat(this._session.contact));a=this._session.sendRequest(d.REFER,{extraHeaders:a,eventHandlers:{onSuccessResponse:function(t){e._requestSucceeded(t)},onErrorResponse:function(t){e._requestFailed(t,d.causes.REJECTED)},onTransportError:function(){e._requestFailed(null,d.causes.CONNECTION_ERROR)},onRequestTimeout:function(){e._requestFailed(null,d.causes.REQUEST_TIMEOUT)},onDialogError:function(){e._requestFailed(null,d.causes.DIALOG_ERROR)}}});this._id=a.cseq}},{key:"receiveNotify",value:function(t){if(h.debug("receiveNotify()"),t.body){var e=f.parse(t.body.trim().split("\r\n",1)[0],"Status_Line");if(-1!==e)switch(!0){case/^100$/.test(e.status_code):this.emit("trying",{request:t,status_line:e});break;case/^1[0-9]{2}$/.test(e.status_code):this.emit("progress",{request:t,status_line:e});break;case/^2[0-9]{2}$/.test(e.status_code):this.emit("accepted",{request:t,status_line:e});break;default:this.emit("failed",{request:t,status_line:e})}else h.debug('receiveNotify() | error parsing NOTIFY body: "'.concat(t.body,'"'))}}},{key:"_requestSucceeded",value:function(t){h.debug("REFER succeeded"),h.debug('emit "requestSucceeded"'),this.emit("requestSucceeded",{response:t})}},{key:"_requestFailed",value:function(t,e){h.debug("REFER failed"),h.debug('emit "requestFailed"'),this.emit("requestFailed",{response:t||null,cause:e})}}]),Object.defineProperty(t,"prototype",{writable:!1}),o}()},{"../Constants":2,"../Grammar":7,"../Logger":9,"../Utils":30,events:33}],20:[function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("./Logger"),o=t("./Utils"),s=t("./Constants"),r=t("./SIPMessage"),l=t("./RequestSender"),c=new a("Registrator");function u(t,e){!function(t){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}(this),this._reg_id=1,this._ua=t,this._transport=e,this._registrar=t.configuration.registrar_server,this._expires=t.configuration.register_expires,this._call_id=o.createRandomToken(22),this._cseq=0,this._to_uri=t.configuration.uri,this._registrationTimer=null,this._registering=!1,this._registered=!1,this._contact=this._ua.contact.toString(),this._contact+=";+sip.ice",this._extraHeaders=[],this._extraContactParams="",this._sipInstance='"<urn:uuid:'.concat(this._ua.configuration.instance_id,'>"'),this._contact+=";reg-id=".concat(this._reg_id),this._contact+=";+sip.instance=".concat(this._sipInstance),this._auth=null}e.exports=(i((e=u).prototype,[{key:"registered",get:function(){return this._registered}},{key:"setExtraHeaders",value:function(t){Array.isArray(t)||(t=[]),this._extraHeaders=t.slice()}},{key:"setExtraContactParams",value:function(t){for(var e in t instanceof Object||(t={}),this._extraContactParams="",t){var n;Object.prototype.hasOwnProperty.call(t,e)&&(n=t[e],this._extraContactParams+=";".concat(e),n&&(this._extraContactParams+="=".concat(n)))}}},{key:"register",value:function(){var t,i=this;this._registering?c.debug("Register request in progress..."):((t=this._extraHeaders.slice()).push("Contact: ".concat(this._contact,";expires=").concat(this._expires).concat(this._extraContactParams)),t.push("Expires: ".concat(this._expires)),this._auth&&t.push(this._auth),t=new r.OutgoingRequest(s.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1},t),t=new l(this._ua,t,{onRequestTimeout:function(){i._registrationFailure(null,s.causes.REQUEST_TIMEOUT)},onTransportError:function(){i._registrationFailure(null,s.causes.CONNECTION_ERROR)},onAuthenticated:function(t){var e,n;i._cseq+=1,i._ua.modes.cache_register_auth_mode&&((n=t.getHeader(e="Authorization"))||(n=t.getHeader(e="Proxy-Authorization")))&&(i._auth="".concat(e,": ").concat(n))},onReceiveResponse:function(t){if(t.cseq===i._cseq)switch(null!==i._registrationTimer&&(clearTimeout(i._registrationTimer),i._registrationTimer=null),!0){case/^1[0-9]{2}$/.test(t.status_code):break;case/^2[0-9]{2}$/.test(t.status_code):if(i._registering=!1,!t.hasHeader("Contact")){c.debug("no Contact header in response to REGISTER, response ignored");break}var e=t.headers.Contact.reduce(function(t,e){return t.concat(e.parsed)},[]),n=e.find(function(t){return i._sipInstance===t.getParam("+sip.instance")&&i._reg_id===parseInt(t.getParam("reg-id"))});if(!(n=n||e.find(function(t){return t.uri.user===i._ua.contact.uri.user}))){c.debug("no Contact header pointing to us, response ignored");break}e=(e=!(e=n.getParam("expires"))&&t.hasHeader("expires")?t.getHeader("expires"):e)||i._expires,e=140<=(e=(e=Number(e))<10?10:e)?1e3*e/2+Math.floor(1e3*(e/2-70)*Math.random()):1e3*e-5e3;i._registrationTimer=setTimeout(function(){i._registrationTimer=null,0===i._ua.listeners("registrationExpiring").length?i.register():i._ua.emit("registrationExpiring")},e),n.hasParam("temp-gruu")&&(i._ua.contact.temp_gruu=n.getParam("temp-gruu").replace(/"/g,"")),n.hasParam("pub-gruu")&&(i._ua.contact.pub_gruu=n.getParam("pub-gruu").replace(/"/g,"")),i._registered||(i._registered=!0,i._ua.registered({response:t}));break;case/^423$/.test(t.status_code):t.hasHeader("min-expires")?(i._expires=Number(t.getHeader("min-expires")),i._expires<10&&(i._expires=10),i.register()):(c.debug("423 response received for REGISTER without Min-Expires"),i._registrationFailure(t,s.causes.SIP_FAILURE_CODE));break;default:n=o.sipErrorCause(t.status_code);i._registrationFailure(t,n)}}}),this._registering=!0,t.send())}},{key:"unregister",value:function(){var t,n=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this._registered?(this._registered=!1,null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),t=this._extraHeaders.slice(),e.all?t.push("Contact: *".concat(this._extraContactParams)):t.push("Contact: ".concat(this._contact,";expires=0").concat(this._extraContactParams)),t.push("Expires: 0"),this._auth&&t.push(this._auth),t=new r.OutgoingRequest(s.REGISTER,this._registrar,this._ua,{to_uri:this._to_uri,call_id:this._call_id,cseq:this._cseq+=1},t),new l(this._ua,t,{onRequestTimeout:function(){n._unregistered(null,s.causes.REQUEST_TIMEOUT)},onTransportError:function(){n._unregistered(null,s.causes.CONNECTION_ERROR)},onAuthenticated:function(){n._cseq+=1},onReceiveResponse:function(t){switch(!0){case/^1[0-9]{2}$/.test(t.status_code):break;case/^2[0-9]{2}$/.test(t.status_code):n._unregistered(t);break;default:var e=o.sipErrorCause(t.status_code);n._unregistered(t,e)}}}).send(),this._auth=null):c.debug("already unregistered")}},{key:"close",value:function(){this._registered&&this.unregister()}},{key:"onTransportClosed",value:function(){this._registering=!1,null!==this._registrationTimer&&(clearTimeout(this._registrationTimer),this._registrationTimer=null),this._registered&&(this._registered=!1,this._ua.unregistered({}))}},{key:"_registrationFailure",value:function(t,e){this._registering=!1,this._ua.registrationFailed({response:t||null,cause:e}),this._registered&&(this._registered=!1,this._ua.unregistered({response:t||null,cause:e}))}},{key:"_unregistered",value:function(t,e){this._registering=!1,this._registered=!1,this._ua.unregistered({response:t||null,cause:e||null})}}]),Object.defineProperty(e,"prototype",{writable:!1}),u)},{"./Constants":2,"./Logger":9,"./RequestSender":21,"./SIPMessage":22,"./Utils":30}],21:[function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("./Logger"),o=t("./Constants"),s=t("./DigestAuthentication"),r=t("./Transactions"),l=new a("RequestSender"),c={onRequestTimeout:function(){},onTransportError:function(){},onReceiveResponse:function(){},onAuthenticated:function(){}};function u(t,e,n){for(var i in function(t){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}(this),this._ua=t,this._eventHandlers=n,this._method=e.method,this._request=e,this._auth=null,this._challenged=!1,this._staled=!1,c)Object.prototype.hasOwnProperty.call(c,i)&&(this._eventHandlers[i]||(this._eventHandlers[i]=c[i]));t.status!==t.C.STATUS_USER_CLOSED||this._method===o.BYE&&this._method===o.ACK||this._eventHandlers.onTransportError()}e.exports=(i((e=u).prototype,[{key:"send",value:function(){var e=this,t={onRequestTimeout:function(){e._eventHandlers.onRequestTimeout()},onTransportError:function(){e._eventHandlers.onTransportError()},onReceiveResponse:function(t){e._receiveResponse(t)}};switch(this._method){case"INVITE":this.clientTransaction=new r.InviteClientTransaction(this._ua,this._ua.transport,this._request,t);break;case"ACK":this.clientTransaction=new r.AckClientTransaction(this._ua,this._ua.transport,this._request,t);break;default:this.clientTransaction=new r.NonInviteClientTransaction(this._ua,this._ua.transport,this._request,t)}this._ua._configuration.authorization_jwt&&this._request.setHeader("Authorization",this._ua._configuration.authorization_jwt),this.clientTransaction.send()}},{key:"_receiveResponse",value:function(t){var e,n,i=t.status_code;if(401!==i&&407!==i||null===this._ua.configuration.password&&null===this._ua.configuration.ha1)this._eventHandlers.onReceiveResponse(t);else{if(n=401===t.status_code?(e=t.parseHeader("www-authenticate"),"authorization"):(e=t.parseHeader("proxy-authenticate"),"proxy-authorization"),!e)return l.debug("".concat(t.status_code," with wrong or missing challenge, cannot authenticate")),void this._eventHandlers.onReceiveResponse(t);!this._challenged||!this._staled&&!0===e.stale?(this._auth||(i=this._ua.getCredential(e.realm),this._auth=new s(i)),this._auth.authenticate(this._request,e)?(this._challenged=!0,this._ua.updateCredential(e.realm,this._auth.get("realm"),this._auth.get("ha1")),e.stale&&(this._staled=!0),this._request=this._request.clone(),this._request.cseq+=1,this._request.setHeader("cseq","".concat(this._request.cseq," ").concat(this._method)),this._request.setHeader(n,this._auth.toString()),this._eventHandlers.onAuthenticated(this._request),this.send()):this._eventHandlers.onReceiveResponse(t)):this._eventHandlers.onReceiveResponse(t)}}}]),Object.defineProperty(e,"prototype",{writable:!1}),u)},{"./Constants":2,"./DigestAuthentication":5,"./Logger":9,"./Transactions":26}],22:[function(t,e,n){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=o(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=o(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return c(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var f=t("sdp-transform"),p=t("./Logger"),D=t("./Constants"),b=t("./Utils"),h=t("./NameAddrHeader"),m=t("./Grammar"),g=new p("SIPMessage"),y=(d(w,[{key:"setHeader",value:function(t,e){for(var n=new RegExp("^\\s*".concat(t,"\\s*:"),"i"),i=0;i<this.extraHeaders.length;i++)n.test(this.extraHeaders[i])&&this.extraHeaders.splice(i,1);this.headers[b.headerize(t)]=Array.isArray(e)?e:[e]}},{key:"getHeader",value:function(t){var e=this.headers[b.headerize(t)];if(e){if(e[0])return e[0]}else{var n,i=new RegExp("^\\s*".concat(t,"\\s*:"),"i"),a=v(this.extraHeaders);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(i.test(o))return o.substring(o.indexOf(":")+1).trim()}}catch(t){a.e(t)}finally{a.f()}}}},{key:"getHeaders",value:function(t){var e=this.headers[b.headerize(t)],n=[];if(e){var i,a=v(e);try{for(a.s();!(i=a.n()).done;){var o=i.value;n.push(o)}}catch(t){a.e(t)}finally{a.f()}return n}var s,r=new RegExp("^\\s*".concat(t,"\\s*:"),"i"),l=v(this.extraHeaders);try{for(l.s();!(s=l.n()).done;){var c=s.value;r.test(c)&&n.push(c.substring(c.indexOf(":")+1).trim())}}catch(t){l.e(t)}finally{l.f()}return n}},{key:"hasHeader",value:function(t){if(this.headers[b.headerize(t)])return!0;var e,n=new RegExp("^\\s*".concat(t,"\\s*:"),"i"),i=v(this.extraHeaders);try{for(i.s();!(e=i.n()).done;){var a=e.value;if(n.test(a))return!0}}catch(t){i.e(t)}finally{i.f()}return!1}},{key:"parseSDP",value:function(t){return!t&&this.sdp||(this.sdp=f.parse(this.body||"")),this.sdp}},{key:"toString",value:function(){var t,e="".concat(this.method," ").concat(this.ruri," SIP/2.0\r\n");for(t in this.headers)if(Object.prototype.hasOwnProperty.call(this.headers,t)){var n,i=v(this.headers[t]);try{for(i.s();!(n=i.n()).done;){var a=n.value;e+="".concat(t,": ").concat(a,"\r\n")}}catch(e){i.e(e)}finally{i.f()}}var o,s=v(this.extraHeaders);try{for(s.s();!(o=s.n()).done;){var r=o.value;e+="".concat(r.trim(),"\r\n")}}catch(e){s.e(e)}finally{s.f()}var l=[];switch(this.method){case D.REGISTER:l.push("path","gruu");break;case D.INVITE:this.ua.configuration.session_timers&&l.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&l.push("gruu"),l.push("ice","replaces");break;case D.UPDATE:this.ua.configuration.session_timers&&l.push("timer"),l.push("ice")}l.push("outbound");var c=this.ua.configuration.user_agent||D.USER_AGENT;return e+="Allow: ".concat(D.ALLOWED_METHODS,"\r\n"),e+="Supported: ".concat(l,"\r\n"),e+="User-Agent: ".concat(c,"\r\n"),this.body?(c=b.str_utf8_length(this.body),e+="Content-Length: ".concat(c,"\r\n\r\n"),e+=this.body):e+="Content-Length: 0\r\n\r\n",e}},{key:"clone",value:function(){var e=new w(this.method,this.ruri,this.ua);return Object.keys(this.headers).forEach(function(t){e.headers[t]=this.headers[t].slice()},this),e.body=this.body,e.extraHeaders=b.cloneArray(this.extraHeaders),e.to=this.to,e.from=this.from,e.call_id=this.call_id,e.cseq=this.cseq,e}}]),w),A=function(){r(s,y);var o=l(s);function s(t,e,n,i,a){return u(this,s),(a=o.call(this,D.INVITE,t,e,n,i,a)).transaction=null,a}return d(s,[{key:"cancel",value:function(t){this.transaction.cancel(t)}},{key:"clone",value:function(){var e=new s(this.ruri,this.ua);return Object.keys(this.headers).forEach(function(t){e.headers[t]=this.headers[t].slice()},this),e.body=this.body,e.extraHeaders=b.cloneArray(this.extraHeaders),e.to=this.to,e.from=this.from,e.call_id=this.call_id,e.cseq=this.cseq,e.transaction=this.transaction,e}}]),s}(),I=(d(M,[{key:"addHeader",value:function(t,e){e={raw:e};t=b.headerize(t),this.headers[t]?this.headers[t].push(e):this.headers[t]=[e]}},{key:"getHeader",value:function(t){t=this.headers[b.headerize(t)];if(t)return t[0]?t[0].raw:void 0}},{key:"getHeaders",value:function(t){var e=this.headers[b.headerize(t)],n=[];if(!e)return[];var i,a=v(e);try{for(a.s();!(i=a.n()).done;){var o=i.value;n.push(o.raw)}}catch(t){a.e(t)}finally{a.f()}return n}},{key:"hasHeader",value:function(t){return!!this.headers[b.headerize(t)]}},{key:"parseHeader",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(t=b.headerize(t),this.headers[t]){if(!(e>=this.headers[t].length)){var n=this.headers[t][e],i=n.raw;if(n.parsed)return n.parsed;var a=m.parse(i,t.replace(/-/g,"_"));return-1===a?(this.headers[t].splice(e,1),void g.debug('error parsing "'.concat(t,'" header field with value "').concat(i,'"'))):n.parsed=a}g.debug('not so many "'.concat(t,'" headers present'))}else g.debug('header "'.concat(t,'" not present'))}},{key:"s",value:function(t,e){return this.parseHeader(t,e)}},{key:"setHeader",value:function(t,e){e={raw:e};this.headers[b.headerize(t)]=[e]}},{key:"parseSDP",value:function(t){return!t&&this.sdp||(this.sdp=f.parse(this.body||"")),this.sdp}},{key:"toString",value:function(){return this.data}}]),M),t=function(){r(i,I);var n=l(i);function i(t){var e;return u(this,i),(e=n.call(this)).ua=t,e.headers={},e.ruri=null,e.transport=null,e.server_transaction=null,e}return d(i,[{key:"reply",value:function(t,e,n,i,a,o){var s=[],r=this.getHeader("To");if(e=e||null,!(t=t||null)||t<100||699<t)throw new TypeError("Invalid status_code: ".concat(t));if(e&&"string"!=typeof e&&!(e instanceof String))throw new TypeError("Invalid reason_phrase: ".concat(e));e=e||D.REASON_PHRASE[t]||"",n=b.cloneArray(n),this.ua.configuration.extra_headers&&(n=n.concat(this.ua.configuration.extra_headers));var l="SIP/2.0 ".concat(t," ").concat(e,"\r\n");if(this.method===D.INVITE&&100<t&&t<=200){var c,u=v(this.getHeaders("record-route"));try{for(u.s();!(c=u.n()).done;){var d=c.value;l+="Record-Route: ".concat(d,"\r\n")}}catch(t){u.e(t)}finally{u.f()}}var f,p=v(this.getHeaders("via"));try{for(p.s();!(f=p.n()).done;){var h=f.value;l+="Via: ".concat(h,"\r\n")}}catch(t){p.e(t)}finally{p.f()}!this.to_tag&&100<t?r+=";tag=".concat(b.newTag()):this.to_tag&&!this.s("to").hasParam("tag")&&(r+=";tag=".concat(this.to_tag)),l+="To: ".concat(r,"\r\n"),l+="From: ".concat(this.getHeader("From"),"\r\n"),l+="Call-ID: ".concat(this.call_id,"\r\n"),l+="CSeq: ".concat(this.cseq," ").concat(this.method,"\r\n");var m,g=v(n);try{for(g.s();!(m=g.n()).done;){var y=m.value;l+="".concat(y.trim(),"\r\n")}}catch(t){g.e(t)}finally{g.f()}switch(this.method){case D.INVITE:this.ua.configuration.session_timers&&s.push("timer"),(this.ua.contact.pub_gruu||this.ua.contact.temp_gruu)&&s.push("gruu"),s.push("ice","replaces");break;case D.UPDATE:this.ua.configuration.session_timers&&s.push("timer"),i&&s.push("ice"),s.push("replaces")}s.push("outbound"),this.method===D.OPTIONS?(l+="Allow: ".concat(D.ALLOWED_METHODS,"\r\n"),l+="Accept: ".concat(D.ACCEPTED_BODY_TYPES,"\r\n")):405===t?l+="Allow: ".concat(D.ALLOWED_METHODS,"\r\n"):415===t&&(l+="Accept: ".concat(D.ACCEPTED_BODY_TYPES,"\r\n")),l+="Supported: ".concat(s,"\r\n"),i?(n=b.str_utf8_length(i),l+="Content-Type: application/sdp\r\n",l+="Content-Length: ".concat(n,"\r\n\r\n"),l+=i):l+="Content-Length: ".concat(0,"\r\n\r\n"),this.server_transaction.receiveResponse(t,l,a,o)}},{key:"reply_sl",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=this.getHeaders("via");if(!t||t<100||699<t)throw new TypeError("Invalid status_code: ".concat(t));if(e&&"string"!=typeof e&&!(e instanceof String))throw new TypeError("Invalid reason_phrase: ".concat(e));var i,e=e||D.REASON_PHRASE[t]||"",a="SIP/2.0 ".concat(t," ").concat(e,"\r\n"),o=v(n);try{for(o.s();!(i=o.n()).done;){var s=i.value;a+="Via: ".concat(s,"\r\n")}}catch(t){o.e(t)}finally{o.f()}n=this.getHeader("To");if(!this.to_tag&&100<t?n+=";tag=".concat(b.newTag()):this.to_tag&&!this.s("to").hasParam("tag")&&(n+=";tag=".concat(this.to_tag)),a+="To: ".concat(n,"\r\n"),a+="From: ".concat(this.getHeader("From"),"\r\n"),a+="Call-ID: ".concat(this.call_id,"\r\n"),a+="CSeq: ".concat(this.cseq," ").concat(this.method,"\r\n"),this.ua.configuration.extra_headers){var r,l=v(this.ua.configuration.extra_headers);try{for(l.s();!(r=l.n()).done;){var c=r.value;a+="".concat(c.trim(),"\r\n")}}catch(t){l.e(t)}finally{l.f()}}a+="Content-Length: ".concat(0,"\r\n\r\n"),this.transport.send(a)}}]),i}(),p=function(){r(n,I);var e=l(n);function n(){var t;return u(this,n),(t=e.call(this)).headers={},t.status_code=null,t.reason_phrase=null,t}return d(n)}();function M(){u(this,M),this.data=null,this.headers=null,this.method=null,this.via=null,this.via_branch=null,this.call_id=null,this.cseq=null,this.from=null,this.from_tag=null,this.to=null,this.to_tag=null,this.body=null,this.sdp=null}function w(t,e,n,i,a,o){if(u(this,w),!t||!e||!n)return null;i=i||{},this.ua=n,this.headers={},this.method=t,this.ruri=e,this.body=o,this.extraHeaders=b.cloneArray(a),this.ua.configuration.extra_headers&&(this.extraHeaders=this.extraHeaders.concat(this.ua.configuration.extra_headers)),i.route_set?this.setHeader("route",i.route_set):n.configuration.use_preloaded_route&&this.setHeader("route","<".concat(n.transport.sip_uri,";lr>")),this.setHeader("via",""),this.setHeader("max-forwards",D.MAX_FORWARDS);var o=i.to_uri||e,a=i.to_tag?{tag:i.to_tag}:null,e=void 0!==i.to_display_name?i.to_display_name:null;this.to=new h(o,e,a),this.setHeader("to",this.to.toString());o=i.from_uri||n.configuration.uri,e={tag:i.from_tag||b.newTag()},a=void 0!==i.from_display_name?i.from_display_name:n.configuration.display_name||null;this.from=new h(o,a,e),this.setHeader("from",this.from.toString());n=i.call_id||n.configuration.jssip_id+b.createRandomToken(15);this.call_id=n,this.setHeader("call-id",n);i=i.cseq||Math.floor(1e4*Math.random());this.cseq=i,this.setHeader("cseq","".concat(i," ").concat(t))}e.exports={OutgoingRequest:y,InitialOutgoingInviteRequest:A,IncomingRequest:t,IncomingResponse:p}},{"./Constants":2,"./Grammar":7,"./Logger":9,"./NameAddrHeader":11,"./Utils":30,"sdp-transform":39}],23:[function(t,e,n){"use strict";var i=t("./Logger"),a=t("./Utils"),o=t("./Grammar"),s=new i("Socket");n.isSocket=function(e){if(Array.isArray(e))return!1;if(void 0===e)return s.warn("undefined JsSIP.Socket instance"),!1;try{if(!a.isString(e.url))throw s.warn("missing or invalid JsSIP.Socket url property"),new Error("Missing or invalid JsSIP.Socket url property");if(!a.isString(e.via_transport))throw s.warn("missing or invalid JsSIP.Socket via_transport property"),new Error("Missing or invalid JsSIP.Socket via_transport property");if(-1===o.parse(e.sip_uri,"SIP_URI"))throw s.warn("missing or invalid JsSIP.Socket sip_uri property"),new Error("missing or invalid JsSIP.Socket sip_uri property")}catch(e){return!1}try{["connect","disconnect","send"].forEach(function(t){if(!a.isFunction(e[t]))throw s.warn("missing or invalid JsSIP.Socket method: ".concat(t)),new Error("Missing or invalid JsSIP.Socket method: ".concat(t))})}catch(e){return!1}return!0}},{"./Grammar":7,"./Logger":9,"./Utils":30}],24:[function(t,e,n){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=t("events").EventEmitter,i=t("./Logger"),f=t("./Constants"),p=t("./Utils"),h=t("./Grammar"),m=t("./SIPMessage"),g=t("./RequestSender"),y=t("./Dialog"),v=new i("Subscriber"),D={SUBSCRIBE_RESPONSE_TIMEOUT:0,SUBSCRIBE_TRANSPORT_ERROR:1,SUBSCRIBE_NON_OK_RESPONSE:2,SUBSCRIBE_BAD_OK_RESPONSE:3,SUBSCRIBE_FAILED_AUTHENTICATION:4,UNSUBSCRIBE_TIMEOUT:5,RECEIVE_FINAL_NOTIFY:6,RECEIVE_BAD_NOTIFY:7,STATE_PENDING:0,STATE_ACTIVE:1,STATE_TERMINATED:2,STATE_INIT:3,STATE_NOTIFY_WAIT:4};e.exports=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(d,c);var t,e,n,i,u=(n=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=l(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=l(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function d(t,e,n,i,a){var o=a.expires,s=a.contentType,r=a.allowEvents,l=a.params,c=a.extraHeaders;if(function(t){if(!(t instanceof d))throw new TypeError("Cannot call a class as a function")}(this),v.debug("new"),a=u.call(this),!e)throw new TypeError("target is undefined");if(!n)throw new TypeError("eventName is undefined");if(!i)throw new TypeError("accept is undefined");a._ua=t,a._target=e,a._expires=o=0!==o&&!o?900:o,a._content_type=s,a._params=p.cloneObject(l),a._params.from_uri||(a._params.from_uri=a._ua.configuration.uri),a._params.from_tag=p.newTag(),a._params.to_tag=null,a._params.call_id=p.createRandomToken(20),void 0===a._params.cseq&&(a._params.cseq=Math.floor(1e4*Math.random()+1)),a._state=D.STATE_INIT,a._dialog=null,a._expires_timer=null,a._expires_timestamp=null,a._terminated=!1,a._unsubscribe_timeout_timer=null,a.data={};n=h.parse(n,"Event");if(-1===n)throw new TypeError("eventName - wrong format");a._event_name=n.event,a._event_id=n.params&&n.params.id;n=a._event_name;return a._event_id&&(n+=";id=".concat(a._event_id)),a._headers=p.cloneArray(c),a._headers=a._headers.concat(["Event: ".concat(n),"Expires: ".concat(a._expires),"Accept: ".concat(i)]),a._headers.find(function(t){return t.startsWith("Contact")})||(i="Contact: ".concat(a._ua._contact.toString()),a._headers.push(i)),r&&a._headers.push("Allow-Events: ".concat(r)),a._queue=[],a}return e=[{key:"C",get:function(){return D}}],o((t=d).prototype,[{key:"C",get:function(){return D}},{key:"onRequestTimeout",value:function(){this._dialogTerminated(D.SUBSCRIBE_RESPONSE_TIMEOUT)}},{key:"onTransportError",value:function(){this._dialogTerminated(D.SUBSCRIBE_TRANSPORT_ERROR)}},{key:"receiveRequest",value:function(t){if(t.method!==f.NOTIFY)return v.warn("received non-NOTIFY request"),void t.reply(405);var e=t.parseHeader("Event");if(!e)return v.warn("missed Event header"),t.reply(400),void this._dialogTerminated(D.RECEIVE_BAD_NOTIFY);var n=e.event,i=e.params&&e.params.id;if(n!==this._event_name||i!==this._event_id)return v.warn("Event header does not match SUBSCRIBE"),t.reply(489),void this._dialogTerminated(D.RECEIVE_BAD_NOTIFY);var a=t.parseHeader("subscription-state");if(!a)return v.warn("missed Subscription-State header"),t.reply(400),void this._dialogTerminated(D.RECEIVE_BAD_NOTIFY);t.reply(200);var o=this._stateStringToNumber(a.state),e=this._state;e!==D.STATE_TERMINATED&&o!==D.STATE_TERMINATED&&(this._state=o,void 0!==a.expires)&&(n=a.expires,i=(new Date).getTime()+1e3*n,2e3<this._expires_timestamp-i&&(v.debug("update sending re-SUBSCRIBE time"),this._scheduleSubscribe(n))),e!==D.STATE_PENDING&&o===D.STATE_PENDING?(v.debug('emit "pending"'),this.emit("pending")):e!==D.STATE_ACTIVE&&o===D.STATE_ACTIVE&&(v.debug('emit "active"'),this.emit("active"));var s,e=t.body,o=o===D.STATE_TERMINATED;e&&(s=t.getHeader("content-type"),v.debug('emit "notify"'),this.emit("notify",o,t,e,s)),o&&(s=a.reason,o=void 0,a.params&&void 0!==a.params["retry-after"]&&(o=parseInt(a.params["retry-after"])),this._dialogTerminated(D.RECEIVE_FINAL_NOTIFY,s,o))}},{key:"subscribe",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;v.debug("subscribe()"),this._state===D.STATE_INIT?this._sendInitialSubscribe(t,this._headers):this._sendSubsequentSubscribe(t,this._headers)}},{key:"terminate",value:function(){var t,e=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;v.debug("terminate()"),this._terminated||(this._terminated=!0,t=this._headers.map(function(t){return t.startsWith("Expires")?"Expires: 0":t}),this._state===D.STATE_INIT?this._sendInitialSubscribe(n,t):this._sendSubsequentSubscribe(n,t),this._unsubscribe_timeout_timer=setTimeout(function(){e._dialogTerminated(D.UNSUBSCRIBE_TIMEOUT)},3e4))}},{key:"state",get:function(){return this._state}},{key:"id",get:function(){return this._dialog?this._dialog.id:null}},{key:"_sendInitialSubscribe",value:function(t,e){var n=this;if(t){if(!this._content_type)throw new TypeError("content_type is undefined");(e=e.slice()).push("Content-Type: ".concat(this._content_type))}this._state=D.STATE_NOTIFY_WAIT;t=new m.OutgoingRequest(f.SUBSCRIBE,this._ua.normalizeTarget(this._target),this._ua,this._params,e,t);new g(this._ua,t,{onRequestTimeout:function(){n.onRequestTimeout()},onTransportError:function(){n.onTransportError()},onReceiveResponse:function(t){n._receiveSubscribeResponse(t)}}).send()}},{key:"_receiveSubscribeResponse",value:function(t){if(200<=t.status_code&&t.status_code<300){if(null===this._dialog){var e=new y(this,t,"UAC");if(e.error)return v.warn(e.error),void this._dialogTerminated(D.SUBSCRIBE_BAD_OK_RESPONSE);this._dialog=e,v.debug('emit "accepted"'),this.emit("accepted");var n,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return r(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(this._queue);try{for(i.s();!(n=i.n()).done;){var a=n.value;v.debug("dequeue subscribe"),this._sendSubsequentSubscribe(a.body,a.headers)}}catch(t){i.e(t)}finally{i.f()}}e=t.getHeader("expires");0===e||e||(v.warn("response without Expires header"),e="900");e=parseInt(e);0<e&&this._scheduleSubscribe(e)}else 401===t.status_code||407===t.status_code?this._dialogTerminated(D.SUBSCRIBE_FAILED_AUTHENTICATION):300<=t.status_code&&this._dialogTerminated(D.SUBSCRIBE_NON_OK_RESPONSE)}},{key:"_sendSubsequentSubscribe",value:function(t,e){var n=this;if(this._state!==D.STATE_TERMINATED){if(!this._dialog)return v.debug("enqueue subscribe"),void this._queue.push({body:t,headers:e.slice()});if(t){if(!this._content_type)throw new TypeError("content_type is undefined");(e=e.slice()).push("Content-Type: ".concat(this._content_type))}this._dialog.sendRequest(f.SUBSCRIBE,{body:t,extraHeaders:e,eventHandlers:{onRequestTimeout:function(){n.onRequestTimeout()},onTransportError:function(){n.onTransportError()},onSuccessResponse:function(t){n._receiveSubscribeResponse(t)},onErrorResponse:function(t){n._receiveSubscribeResponse(t)},onDialogError:function(t){n._receiveSubscribeResponse(t)}}})}}},{key:"_dialogTerminated",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0;this._state!==D.STATE_TERMINATED&&(this._state=D.STATE_TERMINATED,clearTimeout(this._expires_timer),clearTimeout(this._unsubscribe_timeout_timer),this._dialog&&(this._dialog.terminate(),this._dialog=null),v.debug('emit "terminated" code='.concat(t)),this.emit("terminated",t,e,n))}},{key:"_scheduleSubscribe",value:function(t){var e=this,n=140<=t?1e3*t/2+Math.floor(1e3*(t/2-70)*Math.random()):1e3*t-5e3;this._expires_timestamp=(new Date).getTime()+1e3*t,v.debug("next SUBSCRIBE will be sent in ".concat(Math.floor(n/1e3)," sec")),clearTimeout(this._expires_timer),this._expires_timer=setTimeout(function(){e._expires_timer=null,e._sendSubsequentSubscribe(null,e._headers)},n)}},{key:"_stateStringToNumber",value:function(t){switch(t){case"pending":return D.STATE_PENDING;case"active":return D.STATE_ACTIVE;case"terminated":return D.STATE_TERMINATED;case"init":return D.STATE_INIT;case"notify_wait":return D.STATE_NOTIFY_WAIT;default:throw new TypeError("wrong state value")}}}]),o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),d}()},{"./Constants":2,"./Dialog":3,"./Grammar":7,"./Logger":9,"./RequestSender":21,"./SIPMessage":22,"./Utils":30,events:33}],25:[function(t,e,n){"use strict";e.exports={T1:500,T2:4e3,T4:5e3,TIMER_B:32e3,TIMER_D:0,TIMER_F:32e3,TIMER_H:32e3,TIMER_I:0,TIMER_J:0,TIMER_K:0,TIMER_L:32e3,TIMER_M:32e3,PROVISIONAL_RESPONSE_INTERVAL:6e4}},{}],26:[function(t,e,n){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=s(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,i?(t=s(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=t("events").EventEmitter,p=t("./Logger"),h=t("./Constants"),m=t("./SIPMessage"),g=t("./Timers"),y=new p("NonInviteClientTransaction"),v=new p("InviteClientTransaction"),D=new p("AckClientTransaction"),b=new p("NonInviteServerTransaction"),A=new p("InviteServerTransaction"),I={STATUS_TRYING:1,STATUS_PROCEEDING:2,STATUS_CALLING:3,STATUS_ACCEPTED:4,STATUS_COMPLETED:5,STATUS_TERMINATED:6,STATUS_CONFIRMED:7,NON_INVITE_CLIENT:"nict",NON_INVITE_SERVER:"nist",INVITE_CLIENT:"ict",INVITE_SERVER:"ist"},M=function(){c(s,f);var o=u(s);function s(t,e,n,i){var a;r(this,s),(a=o.call(this)).type=I.NON_INVITE_CLIENT,a.id="z9hG4bK".concat(Math.floor(1e7*Math.random())),a.ua=t,a.transport=e,a.request=n,a.eventHandlers=i;e="SIP/2.0/".concat(e.via_transport);return e+=" ".concat(t.configuration.via_host,";branch=").concat(a.id),a.request.setHeader("via",e),a.ua.newTransaction(d(a)),a}return l(s,[{key:"C",get:function(){return I}},{key:"stateChanged",value:function(t){this.state=t,this.emit("stateChanged")}},{key:"send",value:function(){var t=this;this.stateChanged(I.STATUS_TRYING),this.F=setTimeout(function(){t.timer_F()},g.TIMER_F),this.transport.send(this.request)||this.onTransportError()}},{key:"onTransportError",value:function(){y.debug("transport error occurred, deleting transaction ".concat(this.id)),clearTimeout(this.F),this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onTransportError()}},{key:"timer_F",value:function(){y.debug("Timer F expired for transaction ".concat(this.id)),this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout()}},{key:"timer_K",value:function(){this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"receiveResponse",value:function(t){var e=t.status_code;if(e<200)switch(this.state){case I.STATUS_TRYING:case I.STATUS_PROCEEDING:this.stateChanged(I.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(t)}else switch(this.state){case I.STATUS_TRYING:case I.STATUS_PROCEEDING:this.stateChanged(I.STATUS_COMPLETED),clearTimeout(this.F),408===e?this.eventHandlers.onRequestTimeout():this.eventHandlers.onReceiveResponse(t),this.timer_K()}}}]),s}(),w=function(){c(s,f);var o=u(s);function s(t,e,n,i){var a;r(this,s),(a=o.call(this)).type=I.INVITE_CLIENT,a.id="z9hG4bK".concat(Math.floor(1e7*Math.random())),a.ua=t,a.transport=e,a.request=n,a.eventHandlers=i,n.transaction=d(a);e="SIP/2.0/".concat(e.via_transport);return e+=" ".concat(t.configuration.via_host,";branch=").concat(a.id),a.request.setHeader("via",e),a.ua.newTransaction(d(a)),a}return l(s,[{key:"C",get:function(){return I}},{key:"stateChanged",value:function(t){this.state=t,this.emit("stateChanged")}},{key:"send",value:function(){var t=this;this.stateChanged(I.STATUS_CALLING),this.B=setTimeout(function(){t.timer_B()},g.TIMER_B),this.transport.send(this.request)||this.onTransportError()}},{key:"onTransportError",value:function(){clearTimeout(this.B),clearTimeout(this.M),this.state!==I.STATUS_ACCEPTED&&(v.debug("transport error occurred, deleting transaction ".concat(this.id)),this.eventHandlers.onTransportError()),this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"timer_M",value:function(){v.debug("Timer M expired for transaction ".concat(this.id)),this.state===I.STATUS_ACCEPTED&&(clearTimeout(this.B),this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this))}},{key:"timer_B",value:function(){v.debug("Timer B expired for transaction ".concat(this.id)),this.state===I.STATUS_CALLING&&(this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this),this.eventHandlers.onRequestTimeout())}},{key:"timer_D",value:function(){v.debug("Timer D expired for transaction ".concat(this.id)),clearTimeout(this.B),this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"sendACK",value:function(t){var e=new m.OutgoingRequest(h.ACK,this.request.ruri,this.ua,{route_set:this.request.getHeaders("route"),call_id:this.request.getHeader("call-id"),cseq:this.request.cseq});e.setHeader("from",this.request.getHeader("from")),e.setHeader("via",this.request.getHeader("via")),e.setHeader("to",t.getHeader("to")),this.transport.send(e),this.timer_D()}},{key:"cancel",value:function(t){var e;this.state===I.STATUS_PROCEEDING&&((e=new m.OutgoingRequest(h.CANCEL,this.request.ruri,this.ua,{route_set:this.request.getHeaders("route"),call_id:this.request.getHeader("call-id"),cseq:this.request.cseq})).setHeader("from",this.request.getHeader("from")),e.setHeader("via",this.request.getHeader("via")),e.setHeader("to",this.request.getHeader("to")),t&&e.setHeader("reason",t),this.transport.send(e))}},{key:"receiveResponse",value:function(t){var e=this,n=t.status_code;if(100<=n&&n<=199)switch(this.state){case I.STATUS_CALLING:this.stateChanged(I.STATUS_PROCEEDING),this.eventHandlers.onReceiveResponse(t);break;case I.STATUS_PROCEEDING:this.eventHandlers.onReceiveResponse(t)}else if(200<=n&&n<=299)switch(this.state){case I.STATUS_CALLING:case I.STATUS_PROCEEDING:this.stateChanged(I.STATUS_ACCEPTED),this.M=setTimeout(function(){e.timer_M()},g.TIMER_M),this.eventHandlers.onReceiveResponse(t);break;case I.STATUS_ACCEPTED:this.eventHandlers.onReceiveResponse(t)}else if(300<=n&&n<=699)switch(this.state){case I.STATUS_CALLING:case I.STATUS_PROCEEDING:this.stateChanged(I.STATUS_COMPLETED),this.sendACK(t),this.eventHandlers.onReceiveResponse(t);break;case I.STATUS_COMPLETED:this.sendACK(t)}}}]),s}(),C=function(){c(s,f);var o=u(s);function s(t,e,n,i){var a;r(this,s),(a=o.call(this)).id="z9hG4bK".concat(Math.floor(1e7*Math.random())),a.transport=e,a.request=n,a.eventHandlers=i;e="SIP/2.0/".concat(e.via_transport);return e+=" ".concat(t.configuration.via_host,";branch=").concat(a.id),a.request.setHeader("via",e),a}return l(s,[{key:"C",get:function(){return I}},{key:"send",value:function(){this.transport.send(this.request)||this.onTransportError()}},{key:"onTransportError",value:function(){D.debug("transport error occurred for transaction ".concat(this.id)),this.eventHandlers.onTransportError()}}]),s}(),t=function(){c(o,f);var a=u(o);function o(t,e,n){var i;return r(this,o),(i=a.call(this)).type=I.NON_INVITE_SERVER,i.id=n.via_branch,i.ua=t,i.transport=e,i.request=n,i.last_response="",n.server_transaction=d(i),i.state=I.STATUS_TRYING,t.newTransaction(d(i)),i}return l(o,[{key:"C",get:function(){return I}},{key:"stateChanged",value:function(t){this.state=t,this.emit("stateChanged")}},{key:"timer_J",value:function(){b.debug("Timer J expired for transaction ".concat(this.id)),this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"onTransportError",value:function(){this.transportError||(this.transportError=!0,b.debug("transport error occurred, deleting transaction ".concat(this.id)),this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this))}},{key:"receiveResponse",value:function(t,e,n,i){if(100===t)switch(this.state){case I.STATUS_TRYING:this.stateChanged(I.STATUS_PROCEEDING),this.transport.send(e)||this.onTransportError();break;case I.STATUS_PROCEEDING:this.last_response=e,this.transport.send(e)?n&&n():(this.onTransportError(),i&&i())}else if(200<=t&&t<=699)switch(this.state){case I.STATUS_TRYING:case I.STATUS_PROCEEDING:this.stateChanged(I.STATUS_COMPLETED),this.last_response=e,this.timer_J(),this.transport.send(e)?n&&n():(this.onTransportError(),i&&i())}}}]),o}(),p=function(){c(o,f);var a=u(o);function o(t,e,n){var i;return r(this,o),(i=a.call(this)).type=I.INVITE_SERVER,i.id=n.via_branch,i.ua=t,i.transport=e,i.request=n,i.last_response="",n.server_transaction=d(i),i.state=I.STATUS_PROCEEDING,t.newTransaction(d(i)),i.resendProvisionalTimer=null,n.reply(100),i}return l(o,[{key:"C",get:function(){return I}},{key:"stateChanged",value:function(t){this.state=t,this.emit("stateChanged")}},{key:"timer_H",value:function(){A.debug("Timer H expired for transaction ".concat(this.id)),this.state===I.STATUS_COMPLETED&&A.debug("ACK not received, dialog will be terminated"),this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"timer_I",value:function(){this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this)}},{key:"timer_L",value:function(){A.debug("Timer L expired for transaction ".concat(this.id)),this.state===I.STATUS_ACCEPTED&&(this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this))}},{key:"onTransportError",value:function(){this.transportError||(this.transportError=!0,A.debug("transport error occurred, deleting transaction ".concat(this.id)),null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),clearTimeout(this.L),clearTimeout(this.H),this.stateChanged(I.STATUS_TERMINATED),this.ua.destroyTransaction(this))}},{key:"resend_provisional",value:function(){this.transport.send(this.last_response)||this.onTransportError()}},{key:"receiveResponse",value:function(t,e,n,i){var a=this;if(100<=t&&t<=199&&this.state===I.STATUS_PROCEEDING&&(this.transport.send(e)||this.onTransportError(),this.last_response=e),100<t&&t<=199&&this.state===I.STATUS_PROCEEDING)null===this.resendProvisionalTimer&&(this.resendProvisionalTimer=setInterval(function(){a.resend_provisional()},g.PROVISIONAL_RESPONSE_INTERVAL));else if(200<=t&&t<=299)switch(this.state){case I.STATUS_PROCEEDING:this.stateChanged(I.STATUS_ACCEPTED),this.last_response=e,this.L=setTimeout(function(){a.timer_L()},g.TIMER_L),null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null);case I.STATUS_ACCEPTED:this.transport.send(e)?n&&n():(this.onTransportError(),i&&i())}else 300<=t&&t<=699&&this.state===I.STATUS_PROCEEDING&&(null!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=null),this.transport.send(e)?(this.stateChanged(I.STATUS_COMPLETED),this.H=setTimeout(function(){a.timer_H()},g.TIMER_H),n&&n()):(this.onTransportError(),i&&i()))}}]),o}();e.exports={C:I,NonInviteClientTransaction:M,InviteClientTransaction:w,AckClientTransaction:C,NonInviteServerTransaction:t,InviteServerTransaction:p,checkTransaction:function(t,e){var n,i=t._transactions;switch(e.method){case h.INVITE:if(n=i.ist[e.via_branch])return n.state===I.STATUS_PROCEEDING&&n.transport.send(n.last_response),!0;break;case h.ACK:if(!(n=i.ist[e.via_branch]))return!1;if(n.state===I.STATUS_ACCEPTED)return!1;if(n.state===I.STATUS_COMPLETED)return n.state=I.STATUS_CONFIRMED,n.timer_I(),!0;break;case h.CANCEL:return(n=i.ist[e.via_branch])?(e.reply_sl(200),n.state!==I.STATUS_PROCEEDING):(e.reply_sl(481),!0);default:if(n=i.nist[e.via_branch]){switch(n.state){case I.STATUS_TRYING:break;case I.STATUS_PROCEEDING:case I.STATUS_COMPLETED:n.transport.send(n.last_response)}return!0}}}}},{"./Constants":2,"./Logger":9,"./SIPMessage":22,"./Timers":25,events:33}],27:[function(t,e,n){"use strict";function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return r(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("./Logger"),o=t("./Socket"),t=t("./Constants"),s=new a("Transport"),l={STATUS_CONNECTED:0,STATUS_CONNECTING:1,STATUS_DISCONNECTED:2,SOCKET_STATUS_READY:0,SOCKET_STATUS_ERROR:1,recovery_options:{min_interval:t.CONNECTION_RECOVERY_MIN_INTERVAL,max_interval:t.CONNECTION_RECOVERY_MAX_INTERVAL}};function u(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:l.recovery_options;!function(t){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}(this),s.debug("new()"),this._ua=t,this.status=l.STATUS_DISCONNECTED,this.socket=null,this.sockets=[],this.recovery_options=n,this.recover_attempts=0,this.recovery_timer=null,this.close_requested=!1;try{this.textDecoder=new TextDecoder("utf8")}catch(t){s.warn("cannot use TextDecoder: ".concat(t))}if(void 0===e)throw new TypeError("Invalid argument. undefined 'sockets' argument");(e=!(e instanceof Array)?[e]:e).forEach(function(t){if(!o.isSocket(t.socket))throw new TypeError("Invalid argument. invalid 'JsSIP.Socket' instance");if(t.weight&&!Number(t.weight))throw new TypeError("Invalid argument. 'weight' attribute is not a number");this.sockets.push({socket:t.socket,weight:t.weight||0,status:l.SOCKET_STATUS_READY})},this),this._getSocket()}e.exports=(i((e=u).prototype,[{key:"via_transport",get:function(){return this.socket.via_transport}},{key:"url",get:function(){return this.socket.url}},{key:"sip_uri",get:function(){return this.socket.sip_uri}},{key:"connect",value:function(){s.debug("connect()"),this.isConnected()?s.debug("Transport is already connected"):this.isConnecting()?s.debug("Transport is connecting"):(this.close_requested=!1,this.status=l.STATUS_CONNECTING,this.onconnecting({socket:this.socket,attempts:this.recover_attempts}),this.close_requested||(this.socket.onconnect=this._onConnect.bind(this),this.socket.ondisconnect=this._onDisconnect.bind(this),this.socket.ondata=this._onData.bind(this),this.socket.connect()))}},{key:"disconnect",value:function(){s.debug("close()"),this.close_requested=!0,this.recover_attempts=0,this.status=l.STATUS_DISCONNECTED,null!==this.recovery_timer&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.socket.onconnect=function(){},this.socket.ondisconnect=function(){},this.socket.ondata=function(){},this.socket.disconnect(),this.ondisconnect({socket:this.socket,error:!1})}},{key:"send",value:function(t){if(s.debug("send()"),!this.isConnected())return s.warn("unable to send message, transport is not connected"),!1;t=t.toString();return s.debug("sending message:\n\n".concat(t,"\n")),this.socket.send(t)}},{key:"isConnected",value:function(){return this.status===l.STATUS_CONNECTED}},{key:"isConnecting",value:function(){return this.status===l.STATUS_CONNECTING}},{key:"_get_number_of_sbc",value:function(){return this.sockets.length}},{key:"_switch_sbc",value:function(){var t=this.ondisconnect;this.ondisconnect=function(){},this.disconnect(),this.ondisconnect=t,this.close_requested=!1,this.sockets.forEach(function(t){this.socket===t.socket&&(t.status=l.SOCKET_STATUS_ERROR)},this),this._getSocket(),this.connect()}},{key:"_register_redirect",value:function(t){var e,n=null,i=c(this.sockets);try{for(i.s();!(e=i.n()).done;){var a=e.value;if(a.socket.url===t){n=a.socket;break}}}catch(t){i.e(t)}finally{i.f()}if(null===n&&!t.includes(":",6)){t+=":443";var o,s=c(this.sockets);try{for(s.s();!(o=s.n()).done;){var r=o.value;if(r.socket.url===t){n=r.socket;break}}}catch(t){s.e(t)}finally{s.f()}}if(null===n)return!1;var l=this.ondisconnect;return this.ondisconnect=function(){},this.disconnect(),this.ondisconnect=l,this.socket=n,this.connect(),!0}},{key:"_reconnect",value:function(){var t=this;this.recover_attempts+=1;var e=Math.floor(Math.random()*Math.pow(2,this.recover_attempts)+1);e<this.recovery_options.min_interval?e=this.recovery_options.min_interval:e>this.recovery_options.max_interval&&(e=this.recovery_options.max_interval),s.debug("reconnection attempt: ".concat(this.recover_attempts,". next connection attempt in ").concat(e," seconds")),this.recovery_timer=setTimeout(function(){t.close_requested||t.isConnected()||t.isConnecting()||(t._getSocket(),t.connect())},1e3*e)}},{key:"_getSocket",value:function(){var e=[];if(this.sockets.forEach(function(t){t.status!==l.SOCKET_STATUS_ERROR&&(0===e.length?e.push(t):t.weight>e[0].weight?e=[t]:t.weight===e[0].weight&&e.push(t))}),0===e.length)return this.sockets.forEach(function(t){t.status=l.SOCKET_STATUS_READY}),void this._getSocket();var t=Math.floor(Math.random()*e.length);this.socket=e[t].socket}},{key:"_onConnect",value:function(){this.recover_attempts=0,this._ha_connect_time=void 0,this.status=l.STATUS_CONNECTED,null!==this.recovery_timer&&(clearTimeout(this.recovery_timer),this.recovery_timer=null),this.onconnect({socket:this})}},{key:"_onDisconnect",value:function(t,e,n){var i=this.status;if(this.status=l.STATUS_DISCONNECTED,this.ondisconnect({socket:this.socket,error:t,code:e,reason:n}),!this.close_requested){if(void 0!==this._ua.modes.sbc_ha_pairs_mode){if(i===l.STATUS_CONNECTED)return s.debug("AC: SBC HA pairs mode: Reconnect to the same SBC ".concat(this._ua.modes.sbc_ha_pairs_mode," seconds left")),this._ha_connect_time=(new Date).getTime()+1e3*this._ua.modes.sbc_ha_pairs_mode,void this._connect2();if(void 0!==this._ha_connect_time){i=this._ha_connect_time-(new Date).getTime();if(0<i)return s.debug("AC: SBC HA pairs mode: Repeat ".concat(i/1e3," seconds left")),void this._connect2();s.debug("AC: SBC HA pairs mode: Failed"),this._ha_connect_time=void 0}}this.sockets.forEach(function(t){this.socket===t.socket&&(t.status=l.SOCKET_STATUS_ERROR)},this),this._reconnect()}}},{key:"_connect2",value:function(){var t,e=this,n=0;this._ha_last_connect&&(n=500<(t=(new Date).getTime()-this._ha_last_connect)?0:500-t),this.recovery_timer=setTimeout(function(){e.close_requested||e.isConnected()||e.isConnecting()||(e._ha_last_connect=(new Date).getTime(),e.connect())},n)}},{key:"_onData",value:function(t){if("\r\n"!==t){if("string"!=typeof t){try{t=this.textDecoder?this.textDecoder.decode(t):String.fromCharCode.apply(null,new Uint8Array(t))}catch(t){return void s.debug("received binary message failed to be converted into string, message discarded")}s.debug("received binary message:\n\n".concat(t,"\n"))}else s.debug("received text message:\n\n".concat(t,"\n"));this.ondata({transport:this,message:t})}else s.debug("received message with CRLF Keep Alive response")}}]),Object.defineProperty(e,"prototype",{writable:!1}),u)},{"./Constants":2,"./Logger":9,"./Socket":23}],28:[function(t,e,n){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=t("events").EventEmitter,i=t("./Logger"),f=t("./Constants"),p=t("./Registrator"),h=t("./RTCSession"),m=t("./Subscriber"),g=t("./Notifier"),y=t("./Message"),v=t("./Options"),D=t("./Transactions"),b=t("./Transport"),A=t("./Utils"),I=t("./Exceptions"),M=t("./URI"),w=t("./Parser"),C=t("./SIPMessage"),_=t("./sanityCheck"),T=t("./Config"),k=new i("UA"),x={STATUS_INIT:0,STATUS_READY:1,STATUS_USER_CLOSED:2,STATUS_NOT_READY:3,CONFIGURATION_ERROR:1,NETWORK_ERROR:2};e.exports=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(o,d);var t,e,n,i,a=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=u(n);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}(this,i?(t=u(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function o(t){var e;if(function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(e=a.call(this)).modes={},e._credentials={},e._cache={credentials:{}},e._configuration=Object.assign({},T.settings),e._dynConfiguration={},e._dialogs={},e._applicants={},e._sessions={},e._transport=null,e._contact=null,e._status=x.STATUS_INIT,e._error=null,e._transactions={nist:{},nict:{},ist:{},ict:{}},e._data={},e._closeTimer=null,void 0===t)throw new TypeError("Not enough arguments");try{e._loadConfig(t)}catch(t){throw e._status=x.STATUS_NOT_READY,e._error=x.CONFIGURATION_ERROR,t}return e._registrator=new p(c(e)),e}return e=[{key:"C",get:function(){return x}}],r((t=o).prototype,[{key:"C",get:function(){return x}},{key:"status",get:function(){return this._status}},{key:"contact",get:function(){return this._contact}},{key:"configuration",get:function(){return this._configuration}},{key:"transport",get:function(){return this._transport}},{key:"start",value:function(){k.debug("start()"),this._status===x.STATUS_INIT?this._transport.connect():this._status===x.STATUS_USER_CLOSED?(k.debug("restarting UA"),null!==this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null,this._transport.disconnect()),this._status=x.STATUS_INIT,this._transport.connect()):this._status===x.STATUS_READY?k.debug("UA is in READY status, not restarted"):k.debug("ERROR: connection is down, Auto-Recovery system is trying to reconnect"),this._dynConfiguration.register=this._configuration.register}},{key:"register",value:function(){k.debug("register()"),this._dynConfiguration.register=!0,this._registrator.register()}},{key:"unregister",value:function(t){k.debug("unregister()"),this._dynConfiguration.register=!1,this._registrator.unregister(t)}},{key:"registrator",value:function(){return this._registrator}},{key:"isRegistered",value:function(){return this._registrator.registered}},{key:"isConnected",value:function(){return this._transport.isConnected()}},{key:"call",value:function(t,e){k.debug("call()");var n=new h(this);return n.connect(t,e),n}},{key:"sendMessage",value:function(t,e,n){k.debug("sendMessage()");var i=new y(this);return i.send(t,e,n),i}},{key:"subscribe",value:function(t,e,n,i){return k.debug("subscribe()"),new m(this,t,e,n,i)}},{key:"notify",value:function(t,e,n){return k.debug("notify()"),new g(this,t,e,n)}},{key:"addCredential",value:function(t){this._credentials[t.realm]=A.cloneObject(t)}},{key:"getCredential",value:function(t){return this._credentials[t]||{username:this._configuration.authorization_user,password:this._configuration.password,realm:this._configuration.realm,ha1:this._configuration.ha1}}},{key:"updateCredential",value:function(t,e,n){t=this._credentials[t];t?(t.realm=e,t.ha1=n):(this.set("realm",e),this.set("ha1",n))}},{key:"sendOptions",value:function(t,e,n){k.debug("sendOptions()");var i=new v(this);return i.send(t,e,n),i}},{key:"terminateSessions",value:function(t){for(var e in k.debug("terminateSessions()"),this._sessions)this._sessions[e].isEnded()||this._sessions[e].terminate(t)}},{key:"stop",value:function(){var t=this;if(k.debug("stop()"),this._dynConfiguration={},this._status!==x.STATUS_USER_CLOSED){this._registrator.close();var e,n,i=Object.keys(this._sessions).length;for(e in this._sessions)if(Object.prototype.hasOwnProperty.call(this._sessions,e)){k.debug("closing session ".concat(e));try{this._sessions[e].terminate()}catch(t){}}for(n in this._applicants)if(Object.prototype.hasOwnProperty.call(this._applicants,n))try{this._applicants[n].close()}catch(t){}this._status=x.STATUS_USER_CLOSED,0===Object.keys(this._transactions.nict).length+Object.keys(this._transactions.nist).length+Object.keys(this._transactions.ict).length+Object.keys(this._transactions.ist).length&&0===i?this._transport.disconnect():this._closeTimer=setTimeout(function(){t._closeTimer=null,t._transport.disconnect()},2e3)}else k.debug("UA already closed")}},{key:"normalizeTarget",value:function(t){return A.normalizeTarget(t,this._configuration.hostport_params)}},{key:"get",value:function(t){switch(t){case"authorization_user":return this._configuration.authorization_user;case"realm":return this._configuration.realm;case"ha1":return this._configuration.ha1;case"authorization_jwt":return this._configuration.authorization_jwt;default:return void k.warn('get() | cannot get "%s" parameter in runtime',t)}}},{key:"set",value:function(t,e){switch(t){case"authorization_user":this._configuration.authorization_user=String(e);break;case"password":this._configuration.password=String(e);break;case"realm":this._configuration.realm=String(e);break;case"ha1":this._configuration.ha1=String(e),this._configuration.password=null;break;case"authorization_jwt":this._configuration.authorization_jwt=String(e);break;case"display_name":this._configuration.display_name=e;break;default:return k.warn('set() | cannot set "%s" parameter in runtime',t),!1}return!0}},{key:"registerRedirect",value:function(t){return!!this._transport._register_redirect(t)||(k.debug('registerRedirect: ignored, "'.concat(t,'" is not found in configuration')),!1)}},{key:"switchSBC",value:function(t){return this._transport._get_number_of_sbc()<2?(k.debug("switchSBC: ignored, no other SBC"),!1):(t&&this._registrator._unregistered(null,f.causes.CONNECTION_ERROR),this._transport._switch_sbc(),!0)}},{key:"getNumberOfSBC",value:function(){return this._transport._get_number_of_sbc()}},{key:"newTransaction",value:function(t){this._transactions[t.type][t.id]=t,this.emit("newTransaction",{transaction:t})}},{key:"destroyTransaction",value:function(t){delete this._transactions[t.type][t.id],this.emit("transactionDestroyed",{transaction:t})}},{key:"newDialog",value:function(t){this._dialogs[t.id]=t}},{key:"destroyDialog",value:function(t){delete this._dialogs[t.id]}},{key:"newMessage",value:function(t,e){this._applicants[t]=t,this.emit("newMessage",e)}},{key:"newOptions",value:function(t,e){this._applicants[t]=t,this.emit("newOptions",e)}},{key:"destroyMessage",value:function(t){delete this._applicants[t]}},{key:"newRTCSession",value:function(t,e){this._sessions[t.id]=t,this.emit("newRTCSession",e)}},{key:"destroyRTCSession",value:function(t){delete this._sessions[t.id]}},{key:"registered",value:function(t){this.emit("registered",t)}},{key:"unregistered",value:function(t){this.emit("unregistered",t)}},{key:"registrationFailed",value:function(t){this.emit("registrationFailed",t)}},{key:"receiveRequest",value:function(t){var e,n,i,a=t.method;if(t.ruri.user!==this._configuration.uri.user&&t.ruri.user!==this._contact.uri.user)return k.debug("Request-URI does not point to us"),void(t.method!==f.ACK&&t.reply_sl(404));if(t.ruri.scheme!==f.SIPS){if(!D.checkTransaction(this,t)){if(a===f.INVITE?new D.InviteServerTransaction(this,this._transport,t):a!==f.ACK&&a!==f.CANCEL&&new D.NonInviteServerTransaction(this,this._transport,t),a===f.OPTIONS){if(0===this.listeners("newOptions").length)return void t.reply(200);new v(this).init_incoming(t)}else if(a===f.MESSAGE){if(0===this.listeners("newMessage").length)return void t.reply(405);new y(this).init_incoming(t)}else if(a===f.SUBSCRIBE){if(0===this.listeners("newSubscribe").length)return void t.reply(405)}else if(a===f.INVITE&&!t.to_tag&&0===this.listeners("newRTCSession").length)return void t.reply(405);if(t.to_tag)(e=this._findDialog(t.call_id,t.from_tag,t.to_tag))?e.receiveRequest(t):a===f.NOTIFY?(n=this._findSession(t))?n.receiveRequest(t):(k.debug("received NOTIFY request for a non existent subscription"),t.reply(481,"Subscription does not exist")):a!==f.ACK&&t.reply(481);else switch(a){case f.INVITE:window.RTCPeerConnection?t.hasHeader("replaces")?(i=t.replaces,(e=this._findDialog(i.call_id,i.from_tag,i.to_tag))?(n=e.owner).isEnded()?t.reply(603):n.receiveRequest(t):t.reply(481)):(n=new h(this)).init_incoming(t):(k.warn("INVITE received but WebRTC is not supported"),t.reply(488));break;case f.BYE:t.reply(481);break;case f.CANCEL:(n=this._findSession(t))?n.receiveRequest(t):k.debug("received CANCEL request for a non existent session");break;case f.ACK:break;case f.NOTIFY:this.emit("sipEvent",{event:t.event,request:t}),t.reply(200);break;case f.SUBSCRIBE:this.emit("newSubscribe",{event:t.event,request:t});break;default:t.reply(405)}}}else t.reply_sl(416)}},{key:"_findSession",value:function(t){var e=t.call_id,n=t.from_tag,t=t.to_tag,n=this._sessions[e+n],t=this._sessions[e+t];return n||t||null}},{key:"_findDialog",value:function(t,e,n){var i=this._dialogs[t+e+n];return i||(this._dialogs[t+n+e]||null)}},{key:"_loadConfig",value:function(t){try{T.load(this._configuration,t)}catch(t){throw t}0===this._configuration.display_name&&(this._configuration.display_name="0"),this._configuration.instance_id||(this._configuration.instance_id=A.newUUID()),this._configuration.jssip_id=A.createRandomToken(5);var e=this._configuration.uri.clone();e.user=null,this._configuration.hostport_params=e.toString().replace(/^sip:/i,"");try{this._transport=new b(this,this._configuration.sockets,{max_interval:this._configuration.connection_recovery_max_interval,min_interval:this._configuration.connection_recovery_min_interval}),this._transport.onconnecting=function(t){this.emit("connecting",t)}.bind(this),this._transport.onconnect=function(t){this._status!==x.STATUS_USER_CLOSED&&(this._status=x.STATUS_READY,this._error=null,this.emit("connected",t),this._dynConfiguration.register&&this._registrator.register())}.bind(this),this._transport.ondisconnect=function(t){for(var e=0,n=["nict","ict","nist","ist"];e<n.length;e++){var i,a=n[e];for(i in this._transactions[a])Object.prototype.hasOwnProperty.call(this._transactions[a],i)&&this._transactions[a][i].onTransportError()}this.emit("disconnected",t),this._registrator.onTransportClosed(),this._status!==x.STATUS_USER_CLOSED&&(this._status=x.STATUS_NOT_READY,this._error=x.NETWORK_ERROR)}.bind(this),this._transport.ondata=function(t){var e,n=t.transport,i=t.message;if((i=w.parseMessage(i,this))&&!(this._status===x.STATUS_USER_CLOSED&&i instanceof C.IncomingRequest)&&_(i,this,n))if(i instanceof C.IncomingRequest)i.transport=n,this.receiveRequest(i);else if(i instanceof C.IncomingResponse)switch(i.method){case f.INVITE:(e=this._transactions.ict[i.via_branch])&&e.receiveResponse(i);break;case f.ACK:break;default:(e=this._transactions.nict[i.via_branch])&&e.receiveResponse(i)}}.bind(this)}catch(t){throw k.warn(t),new I.ConfigurationError("sockets",this._configuration.sockets)}delete this._configuration.sockets,this._configuration.authorization_user||(this._configuration.authorization_user=this._configuration.uri.user),this._configuration.registrar_server||((e=this._configuration.uri.clone()).user=null,e.clearParams(),e.clearHeaders(),this._configuration.registrar_server=e),this._configuration.no_answer_timeout*=1e3,this._configuration.contact_uri?this._configuration.via_host=this._configuration.contact_uri.host:this._configuration.contact_uri=new M("sip",A.createRandomToken(8),this._configuration.via_host,null,{transport:"ws"}),this._contact={pub_gruu:null,temp_gruu:null,uri:this._configuration.contact_uri,toString:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.anonymous||null,n=t.outbound||null,t="<";return t+=e?this.temp_gruu||"sip:anonymous@anonymous.invalid;transport=ws":this.pub_gruu||this.uri.toString(),!n||(e?this.temp_gruu:this.pub_gruu)||(t+=";ob"),t+">"}};var n,i,a=["authorization_user","password","realm","ha1","authorization_jwt","display_name","register"];for(n in this._configuration)Object.prototype.hasOwnProperty.call(this._configuration,n)&&(-1!==a.indexOf(n)?Object.defineProperty(this._configuration,n,{writable:!0,configurable:!1}):Object.defineProperty(this._configuration,n,{writable:!1,configurable:!1}));for(i in k.debug("configuration parameters after validation:"),this._configuration)if(Object.prototype.hasOwnProperty.call(T.settings,i))switch(i){case"uri":case"registrar_server":k.debug("- ".concat(i,": ").concat(this._configuration[i]));break;case"password":case"ha1":case"authorization_jwt":k.debug("- ".concat(i,": NOT SHOWN"));break;default:k.debug("- ".concat(i,": ").concat(JSON.stringify(this._configuration[i])))}}}]),r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}()},{"./Config":1,"./Constants":2,"./Exceptions":6,"./Logger":9,"./Message":10,"./Notifier":12,"./Options":13,"./Parser":14,"./RTCSession":15,"./Registrator":20,"./SIPMessage":22,"./Subscriber":24,"./Transactions":26,"./Transport":27,"./URI":29,"./Utils":30,"./sanityCheck":32,events:33}],29:[function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var l=t("./Constants"),c=t("./Utils"),a=t("./Grammar");function u(t,e,n,i){var a,o,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{};if(function(t){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}(this),!n)throw new TypeError('missing or invalid "host" parameter');for(a in this._parameters={},this._headers={},this._scheme=t||l.SIP,this._user=e,this._host=n,this._port=i,s)Object.prototype.hasOwnProperty.call(s,a)&&this.setParam(a,s[a]);for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&this.setHeader(o,r[o])}e.exports=(t=[{key:"parse",value:function(t){return-1!==(t=a.parse(t,"SIP_URI"))?t:void 0}}],i((e=u).prototype,[{key:"scheme",get:function(){return this._scheme},set:function(t){this._scheme=t.toLowerCase()}},{key:"user",get:function(){return this._user},set:function(t){this._user=t}},{key:"host",get:function(){return this._host},set:function(t){this._host=t.toLowerCase()}},{key:"port",get:function(){return this._port},set:function(t){this._port=0===t?t:parseInt(t,10)||null}},{key:"setParam",value:function(t,e){t&&(this._parameters[t.toLowerCase()]=null==e?null:e.toString())}},{key:"getParam",value:function(t){if(t)return this._parameters[t.toLowerCase()]}},{key:"hasParam",value:function(t){if(t)return!!this._parameters.hasOwnProperty(t.toLowerCase())}},{key:"deleteParam",value:function(t){if(t=t.toLowerCase(),this._parameters.hasOwnProperty(t)){var e=this._parameters[t];return delete this._parameters[t],e}}},{key:"clearParams",value:function(){this._parameters={}}},{key:"setHeader",value:function(t,e){this._headers[c.headerize(t)]=Array.isArray(e)?e:[e]}},{key:"getHeader",value:function(t){if(t)return this._headers[c.headerize(t)]}},{key:"hasHeader",value:function(t){if(t)return!!this._headers.hasOwnProperty(c.headerize(t))}},{key:"deleteHeader",value:function(t){if(t=c.headerize(t),this._headers.hasOwnProperty(t)){var e=this._headers[t];return delete this._headers[t],e}}},{key:"clearHeaders",value:function(){this._headers={}}},{key:"clone",value:function(){return new u(this._scheme,this._user,this._host,this._port,JSON.parse(JSON.stringify(this._parameters)),JSON.parse(JSON.stringify(this._headers)))}},{key:"toString",value:function(){var t,e,n=[],i="".concat(this._scheme,":");for(t in this._user&&(i+="".concat(c.escapeUser(this._user),"@")),i+=this._host,!this._port&&0!==this._port||(i+=":".concat(this._port)),this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,t)&&(i+=";".concat(t),null!==this._parameters[t]&&(i+="=".concat(this._parameters[t])));for(e in this._headers)if(Object.prototype.hasOwnProperty.call(this._headers,e)){var a,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return r(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(this._headers[e]);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.push("".concat(e,"=").concat(s))}}catch(n){o.e(n)}finally{o.f()}}return 0<n.length&&(i+="?".concat(n.join("&"))),i}},{key:"toAor",value:function(t){var e="".concat(this._scheme,":");return this._user&&(e+="".concat(c.escapeUser(this._user),"@")),e+=this._host,t&&(this._port||0===this._port)&&(e+=":".concat(this._port)),e}}]),i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),u)},{"./Constants":2,"./Grammar":7,"./Utils":30}],30:[function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return c(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s=t("./Constants"),u=t("./URI"),i=t("./Grammar");n.str_utf8_length=function(t){return unescape(encodeURIComponent(t)).length};var d=n.isFunction=function(t){return void 0!==t&&"[object Function]"===Object.prototype.toString.call(t)};n.isString=function(t){return void 0!==t&&"[object String]"===Object.prototype.toString.call(t)},n.isDecimal=function(t){return!isNaN(t)&&parseFloat(t)===parseInt(t,10)},n.isEmpty=function(t){return null===t||""===t||void 0===t||Array.isArray(t)&&0===t.length||"number"==typeof t&&isNaN(t)},n.hasMethods=function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var a=0,o=n;a<o.length;a++){var s=o[a];if(d(t[s]))return!1}return!0};var a=n.createRandomToken=function(t){for(var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:32,n="",i=0;i<t;i++)n+=(Math.random()*e|0).toString(e);return n};n.newTag=function(){return a(10)},n.newUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},n.hostType=function(t){if(t)return-1!==(t=i.parse(t,"host"))?t.host_type:void 0};var f=n.escapeUser=function(t){return encodeURIComponent(decodeURIComponent(t)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")};n.normalizeTarget=function(t,e){if(t){if(t instanceof u)return t;if("string"==typeof t){var n,i,a,o=t.split("@");switch(o.length){case 1:if(!e)return;n=t,i=e;break;case 2:n=o[0],i=o[1];break;default:n=o.slice(0,o.length-1).join("@"),i=o[o.length-1]}return n=n.replace(/^(sips?|tel):/i,""),/^[-.()]*\+?[0-9\-.()]+$/.test(n)&&(n=n.replace(/[-.()]/g,"")),t="".concat(s.SIP,":").concat(f(n),"@").concat(i),(a=u.parse(t))?a:void 0}}},n.headerize=function(t){for(var e={"Call-Id":"Call-ID",Cseq:"CSeq","Www-Authenticate":"WWW-Authenticate"},n=t.toLowerCase().replace(/_/g,"-").split("-"),i="",a=n.length,o=0;o<a;o++)0!==o&&(i+="-"),i+=n[o].charAt(0).toUpperCase()+n[o].substring(1);return i=e[i]?e[i]:i},n.sipErrorCause=function(t){for(var e in s.SIP_ERROR_CAUSES)if(-1!==s.SIP_ERROR_CAUSES[e].indexOf(t))return s.causes[e];return s.causes.SIP_FAILURE_CODE},n.getRandomTestNetIP=function(){return"192.0.2.".concat(Math.floor(254*Math.random()+1))},n.calculateMD5=function(t){function r(t,e){return t<<e|t>>>32-e}function l(t,e){var n=2147483648&t,i=2147483648&e,a=1073741824&t,o=1073741824&e,e=(1073741823&t)+(1073741823&e);return a&o?2147483648^e^n^i:a|o?1073741824&e?3221225472^e^n^i:1073741824^e^n^i:e^n^i}function e(t,e,n,i,a,o,s){return t=l(t,l(l(e&n|~e&i,a),s)),l(r(t,o),e)}function n(t,e,n,i,a,o,s){return t=l(t,l(l(e&i|n&~i,a),s)),l(r(t,o),e)}function i(t,e,n,i,a,o,s){return t=l(t,l(l(e^n^i,a),s)),l(r(t,o),e)}function a(t,e,n,i,a,o,s){return t=l(t,l(l(n^(e|~i),a),s)),l(r(t,o),e)}function o(t){for(var e="",n="",i=0;i<=3;i++)e+=(n="0".concat((t>>>8*i&255).toString(16))).substr(n.length-2,2);return e}for(var s,c,u,d,f=function(t){for(var e,n=t.length,i=n+8,i=16*((i-i%64)/64+1),a=new Array(i-1),o=0,s=0;s<n;)o=s%4*8,a[e=(s-s%4)/4]=a[e]|t.charCodeAt(s)<<o,s++;return a[e=(s-s%4)/4]=a[e]|128<<(o=s%4*8),a[i-2]=n<<3,a[i-1]=n>>>29,a}(t=function(t){for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e+=String.fromCharCode(i):(127<i&&i<2048?e+=String.fromCharCode(i>>6|192):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128)),e+=String.fromCharCode(63&i|128))}return e}(t)),p=1732584193,h=4023233417,m=2562383102,g=271733878,y=0;y<f.length;y+=16)p=e(s=p,c=h,u=m,d=g,f[y+0],7,3614090360),g=e(g,p,h,m,f[y+1],12,3905402710),m=e(m,g,p,h,f[y+2],17,606105819),h=e(h,m,g,p,f[y+3],22,3250441966),p=e(p,h,m,g,f[y+4],7,4118548399),g=e(g,p,h,m,f[y+5],12,1200080426),m=e(m,g,p,h,f[y+6],17,2821735955),h=e(h,m,g,p,f[y+7],22,4249261313),p=e(p,h,m,g,f[y+8],7,1770035416),g=e(g,p,h,m,f[y+9],12,2336552879),m=e(m,g,p,h,f[y+10],17,4294925233),h=e(h,m,g,p,f[y+11],22,2304563134),p=e(p,h,m,g,f[y+12],7,1804603682),g=e(g,p,h,m,f[y+13],12,4254626195),m=e(m,g,p,h,f[y+14],17,2792965006),p=n(p,h=e(h,m,g,p,f[y+15],22,1236535329),m,g,f[y+1],5,4129170786),g=n(g,p,h,m,f[y+6],9,3225465664),m=n(m,g,p,h,f[y+11],14,643717713),h=n(h,m,g,p,f[y+0],20,3921069994),p=n(p,h,m,g,f[y+5],5,3593408605),g=n(g,p,h,m,f[y+10],9,38016083),m=n(m,g,p,h,f[y+15],14,3634488961),h=n(h,m,g,p,f[y+4],20,3889429448),p=n(p,h,m,g,f[y+9],5,568446438),g=n(g,p,h,m,f[y+14],9,3275163606),m=n(m,g,p,h,f[y+3],14,4107603335),h=n(h,m,g,p,f[y+8],20,1163531501),p=n(p,h,m,g,f[y+13],5,2850285829),g=n(g,p,h,m,f[y+2],9,4243563512),m=n(m,g,p,h,f[y+7],14,1735328473),p=i(p,h=n(h,m,g,p,f[y+12],20,2368359562),m,g,f[y+5],4,4294588738),g=i(g,p,h,m,f[y+8],11,2272392833),m=i(m,g,p,h,f[y+11],16,1839030562),h=i(h,m,g,p,f[y+14],23,4259657740),p=i(p,h,m,g,f[y+1],4,2763975236),g=i(g,p,h,m,f[y+4],11,1272893353),m=i(m,g,p,h,f[y+7],16,4139469664),h=i(h,m,g,p,f[y+10],23,3200236656),p=i(p,h,m,g,f[y+13],4,681279174),g=i(g,p,h,m,f[y+0],11,3936430074),m=i(m,g,p,h,f[y+3],16,3572445317),h=i(h,m,g,p,f[y+6],23,76029189),p=i(p,h,m,g,f[y+9],4,3654602809),g=i(g,p,h,m,f[y+12],11,3873151461),m=i(m,g,p,h,f[y+15],16,530742520),p=a(p,h=i(h,m,g,p,f[y+2],23,3299628645),m,g,f[y+0],6,4096336452),g=a(g,p,h,m,f[y+7],10,1126891415),m=a(m,g,p,h,f[y+14],15,2878612391),h=a(h,m,g,p,f[y+5],21,4237533241),p=a(p,h,m,g,f[y+12],6,1700485571),g=a(g,p,h,m,f[y+3],10,2399980690),m=a(m,g,p,h,f[y+10],15,4293915773),h=a(h,m,g,p,f[y+1],21,2240044497),p=a(p,h,m,g,f[y+8],6,1873313359),g=a(g,p,h,m,f[y+15],10,4264355552),m=a(m,g,p,h,f[y+6],15,2734768916),h=a(h,m,g,p,f[y+13],21,1309151649),p=a(p,h,m,g,f[y+4],6,4149444226),g=a(g,p,h,m,f[y+11],10,3174756917),m=a(m,g,p,h,f[y+2],15,718787259),h=a(h,m,g,p,f[y+9],21,3951481745),p=l(p,s),h=l(h,c),m=l(m,u),g=l(g,d);return(o(p)+o(h)+o(m)+o(g)).toLowerCase()},n.closeMediaStream=function(t){if(t)try{if(t.getTracks){var e,n=l(t.getTracks());try{for(n.s();!(e=n.n()).done;)e.value.stop()}catch(t){n.e(t)}finally{n.f()}}else{var i,a=l(t.getAudioTracks());try{for(a.s();!(i=a.n()).done;)i.value.stop()}catch(t){a.e(t)}finally{a.f()}var o,s=l(t.getVideoTracks());try{for(s.s();!(o=s.n()).done;)o.value.stop()}catch(t){s.e(t)}finally{s.f()}}}catch(e){"function"!=typeof t.stop&&"object"!==r(t.stop)||t.stop()}},n.cloneArray=function(t){return t&&t.slice()||[]},n.cloneObject=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t&&Object.assign({},t)||e}},{"./Constants":2,"./Grammar":7,"./URI":29}],31:[function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=t("./Logger"),o=t("./Grammar"),s=new a("WebSocketInterface");function r(t){!function(t){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this),s.debug('new() [url:"%s"]',t),this._url=t,this._sip_uri=null,this._via_transport=null,this._ws=null;var e=o.parse(t,"absoluteURI");if(-1===e)throw s.warn("invalid WebSocket URI: ".concat(t)),new TypeError("Invalid argument: ".concat(t));if("wss"!==e.scheme&&"ws"!==e.scheme)throw s.warn("invalid WebSocket URI scheme: ".concat(e.scheme)),new TypeError("Invalid argument: ".concat(t));this._sip_uri="sip:".concat(e.host).concat(e.port?":".concat(e.port):"",";transport=ws"),this._via_transport=e.scheme.toUpperCase()}e.exports=(i((e=r).prototype,[{key:"via_transport",get:function(){return this._via_transport},set:function(t){this._via_transport=t.toUpperCase()}},{key:"sip_uri",get:function(){return this._sip_uri}},{key:"url",get:function(){return this._url}},{key:"connect",value:function(){if(s.debug("connect()"),this.isConnected())s.debug("WebSocket ".concat(this._url," is already connected"));else if(this.isConnecting())s.debug("WebSocket ".concat(this._url," is connecting"));else{this._ws&&this.disconnect(),s.debug("connecting to WebSocket ".concat(this._url));try{this._ws=new WebSocket(this._url,"sip"),this._ws.binaryType="arraybuffer",this._ws.onopen=this._onOpen.bind(this),this._ws.onclose=this._onClose.bind(this),this._ws.onmessage=this._onMessage.bind(this),this._ws.onerror=this._onError.bind(this)}catch(t){this._onError(t)}}}},{key:"disconnect",value:function(){s.debug("disconnect()"),this._ws&&(this._ws.onopen=function(){},this._ws.onclose=function(){},this._ws.onmessage=function(){},this._ws.onerror=function(){},this._ws.close(),this._ws=null)}},{key:"send",value:function(t){return s.debug("send()"),this.isConnected()?(this._ws.send(t),!0):(s.warn("unable to send message, WebSocket is not open"),!1)}},{key:"isConnected",value:function(){return this._ws&&this._ws.readyState===this._ws.OPEN}},{key:"isConnecting",value:function(){return this._ws&&this._ws.readyState===this._ws.CONNECTING}},{key:"_onOpen",value:function(){s.debug("WebSocket ".concat(this._url," connected")),this.onconnect()}},{key:"_onClose",value:function(t){var e=t.wasClean,n=t.code,t=t.reason;s.debug("WebSocket ".concat(this._url," closed")),!1===e&&s.debug("WebSocket abrupt disconnection"),this.ondisconnect(!e,n,t)}},{key:"_onMessage",value:function(t){t=t.data;s.debug("received WebSocket message"),this.ondata(t)}},{key:"_onError",value:function(t){s.warn("WebSocket ".concat(this._url," error: "),t)}}]),Object.defineProperty(e,"prototype",{writable:!1}),r)},{"./Grammar":7,"./Logger":9}],32:[function(t,e,n){"use strict";function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return r(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var u,d,f,i=t("./Logger"),s=t("./Constants"),p=t("./SIPMessage"),l=t("./Utils"),a=new i("sanityCheck"),h=[function(){for(var t=0,e=["from","to","call_id","cseq","via"];t<e.length;t++){var n=e[t];if(!u.hasHeader(n))return a.debug("missing mandatory header field : ".concat(n,", dropping the response")),!1}}],m=[function(){if("sip"!==u.s("to").uri.scheme)return y(416),!1},function(){if(!u.to_tag&&u.call_id.substr(0,5)===d.configuration.jssip_id)return y(482),!1},function(){if(l.str_utf8_length(u.body)<u.getHeader("content-length"))return y(400),!1},function(){var t,e=u.from_tag,n=u.call_id,i=u.cseq;if(!u.to_tag)if(u.method===s.INVITE){if(d._transactions.ist[u.via_branch])return!1;for(var a in d._transactions.ist)if(Object.prototype.hasOwnProperty.call(d._transactions.ist,a)&&(t=d._transactions.ist[a]).request.from_tag===e&&t.request.call_id===n&&t.request.cseq===i)return y(482),!1}else{if(d._transactions.nist[u.via_branch])return!1;for(var o in d._transactions.nist)if(Object.prototype.hasOwnProperty.call(d._transactions.nist,o)&&(t=d._transactions.nist[o]).request.from_tag===e&&t.request.call_id===n&&t.request.cseq===i)return y(482),!1}}],g=[function(){if(1<u.getHeaders("via").length)return a.debug("more than one Via header field present in the response, dropping the response"),!1},function(){if(l.str_utf8_length(u.body)<u.getHeader("content-length"))return a.debug("message body length is lower than the value in Content-Length header field, dropping the response"),!1}];function y(t){var e,n=u.getHeaders("via"),i="SIP/2.0 ".concat(t," ").concat(s.REASON_PHRASE[t],"\r\n"),a=c(n);try{for(a.s();!(e=a.n()).done;){var o=e.value;i+="Via: ".concat(o,"\r\n")}}catch(t){a.e(t)}finally{a.f()}n=u.getHeader("To"),u.to_tag||(n+=";tag=".concat(l.newTag())),i+="To: ".concat(n,"\r\n"),i+="From: ".concat(u.getHeader("From"),"\r\n"),i+="Call-ID: ".concat(u.call_id,"\r\n"),i+="CSeq: ".concat(u.cseq," ").concat(u.method,"\r\n"),f.send(i+="\r\n")}e.exports=function(t,e,n){u=t,d=e,f=n;var i,a=c(h);try{for(a.s();!(i=a.n()).done;)if(!1===(0,i.value)())return!1}catch(t){a.e(t)}finally{a.f()}if(u instanceof p.IncomingRequest){var o,s=c(m);try{for(s.s();!(o=s.n()).done;)if(!1===(0,o.value)())return!1}catch(t){s.e(t)}finally{s.f()}}else if(u instanceof p.IncomingResponse){var r,l=c(g);try{for(l.s();!(r=l.n()).done;)if(!1===(0,r.value)())return!1}catch(t){l.e(t)}finally{l.f()}}return!0}},{"./Constants":2,"./Logger":9,"./SIPMessage":22,"./Utils":30}],33:[function(t,e,n){var r=Object.create||function(t){function e(){}return e.prototype=t,new e},s=Object.keys||function(t){var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return e},i=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((e.exports=a).EventEmitter=a).prototype._events=void 0,a.prototype._maxListeners=void 0;var o,l=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),o=0===c.x}catch(t){o=!1}function u(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function d(t,e,n,i){var a,o,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');return(a=t._events)?(a.newListener&&(t.emit("newListener",e,n.listener||n),a=t._events),o=a[e]):(a=t._events=r(null),t._eventsCount=0),o?("function"==typeof o?o=a[e]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),!o.warned&&(s=u(t))&&0<s&&o.length>s&&(o.warned=!0,(s=new Error("Possible EventEmitter memory leak detected. "+o.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.')).name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=o.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message))):(o=a[e]=n,++t._eventsCount),t}function f(){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 t=new Array(arguments.length),e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function p(t,e,n){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},e=i.call(f,t);return e.listener=n,t.wrapFn=e}function h(t,e,n){t=t._events;if(!t)return[];e=t[e];return e?"function"==typeof e?n?[e.listener||e]:[e]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(e):g(e,e.length):[]}function m(t){var e=this._events;if(e){t=e[t];if("function"==typeof t)return 1;if(t)return t.length}return 0}function g(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}o?Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(t){if("number"!=typeof t||t<0||t!=t)throw new TypeError('"defaultMaxListeners" must be a positive number');l=t}}):a.defaultMaxListeners=l,a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(t){var e,n,i,a,o,s,r="error"===t;if(s=this._events)r=r&&null==s.error;else if(!r)return!1;if(r){if((e=1<arguments.length?arguments[1]:e)instanceof Error)throw e;r=new Error('Unhandled "error" event. ('+e+")");throw r.context=e,r}if(!(n=s[t]))return!1;var l="function"==typeof n;switch(i=arguments.length){case 1:!function(t,e){if(l)t.call(e);else for(var n=t.length,i=g(t,n),a=0;a<n;++a)i[a].call(e)}(n,this);break;case 2:!function(t,e,n,i){if(e)t.call(n,i);else for(var a=t.length,o=g(t,a),s=0;s<a;++s)o[s].call(n,i)}(n,l,this,arguments[1]);break;case 3:!function(t,e,n,i,a){if(e)t.call(n,i,a);else for(var o=t.length,s=g(t,o),r=0;r<o;++r)s[r].call(n,i,a)}(n,l,this,arguments[1],arguments[2]);break;case 4:!function(t,e,n,i,a,o){if(e)t.call(n,i,a,o);else for(var s=t.length,r=g(t,s),l=0;l<s;++l)r[l].call(n,i,a,o)}(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(i-1),o=1;o<i;o++)a[o-1]=arguments[o];!function(t,e,n){if(l)t.apply(e,n);else for(var i=t.length,a=g(t,i),o=0;o<i;++o)a[o].apply(e,n)}(n,this,a)}return!0},a.prototype.on=a.prototype.addListener=function(t,e){return d(this,t,e,!1)},a.prototype.prependListener=function(t,e){return d(this,t,e,!0)},a.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,p(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,p(this,t,e)),this},a.prototype.removeListener=function(t,e){var n,i,a,o,s;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=r(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(a=-1,o=n.length-1;0<=o;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,a=o;break}if(a<0)return this;0===a?n.shift():function(t){for(var e=a,n=e+1,i=t.length;n<i;e+=1,n+=1)t[e]=t[n];t.pop()}(n),1===n.length&&(i[t]=n[0]),i.removeListener&&this.emit("removeListener",t,s||e)}return this},a.prototype.removeAllListeners=function(t){var e,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[t]&&(0==--this._eventsCount?this._events=r(null):delete n[t]),this;if(0===arguments.length){for(var i,a=s(n),o=0;o<a.length;++o)"removeListener"!==(i=a[o])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(e)for(o=e.length-1;0<=o;o--)this.removeListener(t,e[o]);return this},a.prototype.listeners=function(t){return h(this,t,!0)},a.prototype.rawListeners=function(t){return h(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],34:[function(n,a,i){!function(e){!function(){i.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),this.useColors){var i="color: "+this.color;t.splice(1,0,i,"color: inherit");let e=0,n=0;t[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(e++,"%c"===t&&(n=e))}),t.splice(n,0,i)}},i.save=function(t){try{t?i.storage.setItem("debug",t):i.storage.removeItem("debug")}catch(t){}},i.load=function(){let t;try{t=i.storage.getItem("debug")}catch(t){}return!t&&void 0!==e&&"env"in e&&(t=e.env.DEBUG),t},i.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},i.storage=function(){try{return localStorage}catch(t){}}(),i.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),i.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],i.log=console.debug||console.log||(()=>{}),a.exports=n("./common")(i);const t=a.exports["formatters"];t.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}.call(this)}.call(this,n("_process"))},{"./common":35,_process:37}],35:[function(t,e,n){e.exports=function(e){function r(t){let n,e,i,a=null;function s(...a){if(s.enabled){const o=s,t=Number(new Date),e=t-(n||t);o.diff=e,o.prev=n,o.curr=t,n=t,a[0]=r.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");let i=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(t,e)=>{if("%%"===t)return"%";i++;const n=r.formatters[e];if("function"==typeof n){const r=a[i];t=n.call(o,r),a.splice(i,1),i--}return t}),r.formatArgs.call(o,a),(o.log||r.log).apply(o,a)}}return s.namespace=t,s.useColors=r.useColors(),s.color=r.selectColor(t),s.extend=o,s.destroy=r.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(e!==r.namespaces&&(e=r.namespaces,i=r.enabled(t)),i),set:t=>{a=t}}),"function"==typeof r.init&&r.init(s),s}function o(t,e){const n=r(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function n(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return((r.debug=r).default=r).coerce=function(t){return t instanceof Error?t.stack||t.message:t},r.disable=function(){var t=[...r.names.map(n),...r.skips.map(n).map(t=>"-"+t)].join(",");return r.enable(""),t},r.enable=function(t){let e;r.save(t),r.namespaces=t,r.names=[],r.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(e=0;e<i;e++)n[e]&&("-"===(t=n[e].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+t.slice(1)+"$")):r.names.push(new RegExp("^"+t+"$")))},r.enabled=function(t){if("*"===t[t.length-1])return!0;let e,n;for(e=0,n=r.skips.length;e<n;e++)if(r.skips[e].test(t))return!1;for(e=0,n=r.names.length;e<n;e++)if(r.names[e].test(t))return!0;return!1},r.humanize=t("ms"),r.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(t=>{r[t]=e[t]}),r.names=[],r.skips=[],r.formatters={},r.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return r.colors[Math.abs(n)%r.colors.length]},r.enable(r.load()),r}},{ms:36}],36:[function(t,e,n){var o=864e5;function s(t,e,n,i){e=1.5*n<=e;return Math.round(t/n)+" "+i+(e?"s":"")}e.exports=function(n,t){t=t||{};var e,i,a=typeof n;if("string"==a&&0<n.length)return function(t){if(!(100<(t=String(n)).length)){t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(t){var e=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*e;case"weeks":case"week":case"w":return 6048e5*e;case"days":case"day":case"d":return e*o;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*e;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*e;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}();if("number"==a&&isFinite(n))return t.long?(e=n,i=Math.abs(e),o<=i?s(e,i,o,"day"):36e5<=i?s(e,i,36e5,"hour"):6e4<=i?s(e,i,6e4,"minute"):1e3<=i?s(e,i,1e3,"second"):e+" ms"):(i=n,e=Math.abs(i),o<=e?Math.round(i/o)+"d":36e5<=e?Math.round(i/36e5)+"h":6e4<=e?Math.round(i/6e4)+"m":1e3<=e?Math.round(i/1e3)+"s":i+"ms");throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))}},{}],37:[function(t,e,n){var i,a,e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function r(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(t){a=s}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=r(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function m(){}e.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new h(t,e)),1!==c.length||u||r(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=m,e.addListener=m,e.once=m,e.off=m,e.removeListener=m,e.removeAllListeners=m,e.emit=m,e.prependListener=m,e.prependOnceListener=m,e.listeners=function(t){return[]},e.binding=function(t){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(t){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},{}],38:[function(t,e,n){var i=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(t){return t.encoding?"rtpmap:%d %s/%s/%s":t.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(t){return null!=t.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(t){return null!=t.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(t){return"extmap:%d"+(t.direction?"/%s":"%v")+(t["encrypt-uri"]?" %s":"%v")+" %s"+(t.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(t){return null!=t.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(t){var e="candidate:%s %d %s %d %s %d typ %s";return e+=null!=t.raddr?" raddr %s rport %d":"%v%v",e+=null!=t.tcptype?" tcptype %s":"%v",null!=t.generation&&(e+=" generation %d"),(e+=null!=t["network-id"]?" network-id %d":"%v")+(null!=t["network-cost"]?" network-cost %d":"%v")}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(t){var e="ssrc:%d";return null!=t.attribute&&(e+=" %s",null!=t.value&&(e+=":%s")),e}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(t){return null!=t.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(t){return t.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(t){return"imageattr:%s %s %s"+(t.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(t){return"simulcast:%s %s"+(t.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(t){return"ts-refclk:%s"+(null!=t.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(t){var e="mediaclk:";return e+=null!=t.id?"id=%s %s":"%v%s",e+=null!=t.mediaClockValue?"=%s":"",(e+=null!=t.rateNumerator?" rate=%s":"")+(null!=t.rateDenominator?"/%s":"")}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(i).forEach(function(t){i[t].forEach(function(t){t.reg||(t.reg=/(.*)/),t.format||(t.format="%s")})})},{}],39:[function(t,e,n){var i=t("./parser"),t=t("./writer");n.write=t,n.parse=i.parse,n.parseParams=i.parseParams,n.parseFmtpConfig=i.parseFmtpConfig,n.parsePayloads=i.parsePayloads,n.parseRemoteCandidates=i.parseRemoteCandidates,n.parseImageAttributes=i.parseImageAttributes,n.parseSimulcastStreamList=i.parseSimulcastStreamList},{"./parser":40,"./writer":41}],40:[function(t,e,n){function o(t){return String(Number(t))===t?Number(t):t}function r(t,e,n){var i=t.name&&t.names;t.push&&!e[t.push]?e[t.push]=[]:i&&!e[t.name]&&(e[t.name]={}),i=t.push?{}:i?e[t.name]:e,function(t,e,n,i){if(i&&!n)e[i]=o(t[1]);else for(var a=0;a<n.length;a+=1)null!=t[a+1]&&(e[n[a]]=o(t[a+1]))}(n.match(t.reg),i,t.names,t.name),t.push&&e[t.push].push(i)}var l=t("./grammar"),i=RegExp.prototype.test.bind(/^([a-z])=(.*)/);n.parse=function(t){var e={},o=[],s=e;return t.split(/(\r\n|\r|\n)/).filter(i).forEach(function(t){var e=t[0],n=t.slice(2);"m"===e&&(o.push({rtp:[],fmtp:[]}),s=o[o.length-1]);for(var i=0;i<(l[e]||[]).length;i+=1){var a=l[e][i];if(a.reg.test(n))return r(a,s,n)}}),e.media=o,e};function a(t,e){var n=e.split(/=(.+)/,2);return 2===n.length?t[n[0]]=o(n[1]):1===n.length&&1<e.length&&(t[n[0]]=void 0),t}n.parseParams=function(t){return t.split(/;\s?/).reduce(a,{})},n.parseFmtpConfig=n.parseParams,n.parsePayloads=function(t){return t.toString().split(" ").map(Number)},n.parseRemoteCandidates=function(t){for(var e=[],n=t.split(" ").map(o),i=0;i<n.length;i+=3)e.push({component:n[i],ip:n[i+1],port:n[i+2]});return e},n.parseImageAttributes=function(t){return t.split(" ").map(function(t){return t.substring(1,t.length-1).split(",").reduce(a,{})})},n.parseSimulcastStreamList=function(t){return t.split(";").map(function(t){return t.split(",").map(function(t){var e,n=!1;return"~"!==t[0]?e=o(t):(e=o(t.substring(1,t.length)),n=!0),{scid:e,paused:n}})})}},{"./grammar":38}],41:[function(t,e,n){function o(t,e,n){var i=[t+"="+(e.format instanceof Function?e.format(e.push?n:n[e.name]):e.format)];if(e.names)for(var a=0;a<e.names.length;a+=1){var o=e.names[a];e.name?i.push(n[e.name][o]):i.push(n[e.names[a]])}else i.push(n[e.name]);return function(t){var n=1,i=arguments,a=i.length;return t.replace(r,function(t){if(a<=n)return t;var e=i[n];switch(n+=1,t){case"%%":return"%";case"%s":return String(e);case"%d":return Number(e);case"%v":return""}})}.apply(null,i)}var s=t("./grammar"),r=/%[sdv%]/g,l=["v","o","s","i","u","e","p","c","b","t","r","z","a"],c=["i","c","b","a"];e.exports=function(t,e){e=e||{},null==t.version&&(t.version=0),null==t.name&&(t.name=" "),t.media.forEach(function(t){null==t.payloads&&(t.payloads="")});var n=e.outerOrder||l,i=e.innerOrder||c,a=[];return n.forEach(function(n){s[n].forEach(function(e){e.name in t&&null!=t[e.name]?a.push(o(n,e,t)):e.push in t&&null!=t[e.push]&&t[e.push].forEach(function(t){a.push(o(n,e,t))})})}),t.media.forEach(function(t){a.push(o("m",s.m[0],t)),i.forEach(function(n){s[n].forEach(function(e){e.name in t&&null!=t[e.name]?a.push(o(n,e,t)):e.push in t&&null!=t[e.push]&&t[e.push].forEach(function(t){a.push(o(n,e,t))})})})}),a.join("\r\n")+"\r\n"}},{"./grammar":38}],42:[function(t,e,n){e.exports={name:"jssip",title:"JsSIP",description:"the Javascript SIP library",version:"3.10.0",homepage:"https://jssip.net",contributors:["José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)","Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)"],types:"lib/JsSIP.d.ts",main:"lib-es5/JsSIP.js",keywords:["sip","websocket","webrtc","node","browser","library"],license:"MIT",repository:{type:"git",url:"https://github.com/versatica/JsSIP.git"},bugs:{url:"https://github.com/versatica/JsSIP/issues"},dependencies:{"@types/events":"^3.0.0","@types/debug":"^4.1.7",debug:"^4.3.1",events:"^3.3.0","sdp-transform":"^2.14.1"},devDependencies:{"@babel/core":"^7.19.6","@babel/preset-env":"^7.19.4","ansi-colors":"^3.2.4",browserify:"^16.5.1",eslint:"^5.16.0","fancy-log":"^1.3.3",gulp:"^4.0.2","gulp-babel":"^8.0.0","gulp-eslint":"^5.0.0","gulp-expect-file":"^1.0.2","gulp-header":"^2.0.9","gulp-nodeunit-runner":"^0.2.2","gulp-plumber":"^1.2.1","gulp-rename":"^1.4.0","gulp-uglify-es":"^1.0.4",pegjs:"^0.7.0","vinyl-buffer":"^1.0.1","vinyl-source-stream":"^2.0.0"},scripts:{lint:"node npm-scripts.js lint",test:"node npm-scripts.js test",prepublish:"node npm-scripts.js prepublish",release:"node npm-scripts.js release"}}},{}]},{},[8])(8)});class AudioCodesUA{constructor(){return this._isInitialized=!1,this.serverConfig={},this.account={user:null,userAuth:null,displayName:null,password:null,registerExpires:600,useSessionTimer:!1},this.constraints={audio:!0,video:!0},this.chromiumBased=[{n:"Edge",s:"edg/"},{n:"Opera",s:"opr/"},{n:"Samsung",s:"samsungbrowser/"},{n:"Yandex",s:"yabrowser/"}],this.modes={video_call_audio_answer_firefox_fix:!0,video_call_audio_answer_safari_fix:!0,ice_timeout_fix:2e3,chrome_rtp_timeout_fix:13,sbc_ha_pairs_mode:void 0,ringing_header_mode:void 0,sbc_switch_register5xx_mode:!0,cache_register_auth_mode:!0,check_remote_sdp_mode:!0},this.credentials=[],this.listeners={},this.registerExtraHeaders=null,this.jssipUA=null,this.browser="",this.browserVersion=0,this.browserName="",this.os="other",this.reconnectMin=2,this.reconnectMax=30,this.u17=void 0,this.activeCalls=0,this.wsPingStarted=!1,this.wsSocket=null,this.wsOnMessage=null,this.wsPingMs=0,this.wsOrigPingMs=0,this.wsThrottlingPingMs=0,this.wsVisibility=!1,this.wsCall=!1,this.wsLog=0,this.wsPongTimeout=!0,this.wsIsThrottling=!1,this.wsPingJob=null,this.wsPingTime=null,this.wsNextPingTime=null,this.wsPongReceived=!1,this.wsPongSupported=null,this.wsPongTimeoutTime=null,this.wsPongDelays=null,this.wsPongDelaysIx=0,this.wsPongReport=0,this.wsPongReportCounter=0,this.wsPongDist=!1,this.wsIsPingDebugLog=!1,this.dtmfUseWebRTC=!0,this.dtmfDuration=250,this.dtmfInterToneGap=250,this.enableAddVideo=!1,this.oauthToken=null,this.oauthTokenUseInInvite=!0,this.networkPriority=void 0,AudioCodesUA.ac_log=console.log,AudioCodesUA.js_log=null,void 0===AudioCodesUA.instance&&(AudioCodesUA.instance=this),this._detectBrowser(),this._detectOS(),this.webrtcapi=AudioCodesWebRTCWrapper,this.replacedCall=null,this.codecFilter=null,this.AUDIO=Symbol("audio"),this.VIDEO=Symbol("video"),this.RECVONLY_VIDEO=Symbol("recvonly_video"),AudioCodesUA.instance}version(){return"1.19.0"}getBrowserName(){return this.browserName}getBrowser(){return this.browser}getBrowserVersion(){return this.browserVersion}getOS(){return this.os}getWR(){return this.webrtcapi}checkAvailableDevices(){return this.getWR().checkAvailableDevices()}getServerAddress(){if(null===this.wsSocket)return null;let t=this.wsSocket.url;return t.endsWith("/")&&(t=t.slice(0,-1)),t}setOAuthToken(t,e=!0){this.oauthToken=t,this.oauthTokenUseInInvite=e,this.setRegisterExtraHeaders(this.registerExtraHeaders)}setUserAgent(t){this.u17=t}setConstraints(t,e,n){var i=this.browser,a=this.browser+"|"+this.os;if(null===t||t===i||t===a){if(AudioCodesUA.ac_log(`AC: setConstraints ${t} ${e}  `+JSON.stringify(n)),"audio"!==e&&"video"!==e)throw new TypeError("Wrong type: "+e);this.constraints[e]=n}else AudioCodesUA.ac_log(`AC: setConstraints ${t} - ignored, no current browser`)}setConstraint(t,e,n){if(null!=n?AudioCodesUA.ac_log(`AC: setConstraint ${t} ${e}=`+JSON.stringify(n)):AudioCodesUA.ac_log(`AC: setConstraint remove ${t} `+e),"audio"!==t&&"video"!==t)throw new TypeError("Wrong type: "+t);null!=n?(!0===this.constraints[t]&&(this.constraints[t]={}),this.constraints[t][e]=n):!0!==this.constraints[t]&&!1!==this.constraints[t]&&(delete this.constraints[t][e],0===Object.keys(this.constraints[t]).length&&(this.constraints[t]=!0))}setBrowsersConstraints(t){var e,n,i=this.browser,a=this.browser+"|"+this.os;for(e in t)e!==i&&e!==a||(void 0!==(n=t[e]).audio&&this.setConstraints(e,"audio",n.audio),void 0!==n.video&&this.setConstraints(e,"video",n.video))}setCodecFilter(t){t&&(AudioCodesUA.ac_log("AC: setCodecFilter "+JSON.stringify(t)),this.codecFilter=this._cf_unpack(t))}setServerConfig(t,e,n=[]){this.serverConfig={addresses:t,domain:e,iceServers:this._convertIceList(n)},AudioCodesUA.ac_log("AC: setServerConfig() "+JSON.stringify(this.serverConfig))}setReconnectIntervals(t,e){AudioCodesUA.ac_log(`AC: setReconnectIntervals min=${t} max=`+e),this.reconnectMin=t,this.reconnectMax=e}setAccount(t,e,n,i){null!=e&&0!==e.length||(e=void 0),null!=i&&0!==i.length||(i=t);let a=this.account;a.user=t,a.displayName=e,a.password=n,a.authUser=i}setRegisterExpires(t){AudioCodesUA.ac_log("AC: setRegisterExpires="+t),this.account.registerExpires=t}setUseSessionTimer(t){AudioCodesUA.ac_log("AC: setUseSessionTimer="+t),this.account.useSessionTimer=t}setDtmfOptions(t,e=null,n=null){AudioCodesUA.ac_log(`AC: setDtmfOptions useWebRTC=${t} duration=${e} interToneGap=`+n),this.dtmfUseWebRTC=t,null!==e&&(this.dtmfDuration=e),null!==n&&(this.dtmfInterToneGap=n)}setEnableAddVideo(t){AudioCodesUA.ac_log("AC: setEnableAddVideo="+t),this.enableAddVideo=t}getEnableAddVideo(){return this.enableAddVideo}getAccount(){return this.account}setListeners(t){AudioCodesUA.ac_log("AC: setListeners()");for(var e of["loginStateChanged","outgoingCallProgress","callTerminated","callConfirmed","callShowStreams","incomingCall","callHoldStateChanged"])if(!(e in t))throw new Error(e+" listener is missed");this.listeners=t}static getSessionStatusName(t){switch(t){case 0:return"NULL (0)";case 1:return"INVITE_SENT (1)";case 2:return"1XX_RECEIVED (2)";case 3:return"INVITE_RECEIVED (3)";case 4:return"WAITING_FOR_ANSWER (4)";case 5:return"ANSWERED (5)";case 6:return"WAITING_FOR_ACK (6)";case 7:return"CANCELED (7)";case 8:return"TERMINATED (8)";case 9:return"CONFIRMED (9)";default:return"Unknown ("+t+")"}}setAcLogger(t){AudioCodesUA.ac_log=t}setJsSipLogger(t){AudioCodesUA.js_log=t}isInitialized(){return this._isInitialized}setModes(t={}){AudioCodesUA.ac_log("AC: setModes() "+JSON.stringify(t)),Object.assign(this.modes,t),this._normalizeModes()}_normalizeModes(){function t(t,e){return"number"==typeof t&&t<=e?void 0:t}let e=this.modes;e.sbc_ha_pairs_mode=t(e.sbc_ha_pairs_mode,0),e.chrome_rtp_timeout_fix=t(e.chrome_rtp_timeout_fix,0)}init(n=!0){if(AudioCodesUA.ac_log("AC: init() autoLogin="+n),!this._isInitialized){this._isInitialized=!0,JsSIP.debug.enable("JsSIP:*"),JsSIP.debug.formatArgs=function(){AudioCodesUA.js_log&&(this.log=AudioCodesUA.js_log)};let t=[];for(var i of this.serverConfig.addresses)i instanceof Array?t.push({socket:new JsSIP.WebSocketInterface(i[0]),weight:i[1]}):t.push(new JsSIP.WebSocketInterface(i));let e={sockets:t,uri:"sip:"+this.account.user+"@"+this.serverConfig.domain,contact_uri:"sip:"+this.account.user+"@"+this._randomToken(12)+".invalid;transport=ws",authorization_user:this.account.authUser,password:this.account.password,register:n,session_timers:this.account.useSessionTimer,register_expires:this.account.registerExpires,user_agent:this.u17,connection_recovery_min_interval:this.reconnectMin,connection_recovery_max_interval:this.reconnectMax};this.account.displayName&&0<this.account.displayName.length&&(e.display_name=this.account.displayName),this.jssipUA=new JsSIP.UA(e),this.setRegisterExtraHeaders(this.registerExtraHeaders),this._setUACallbacks(),AudioCodesUA.ac_log("AC: applied SDK modes: "+JSON.stringify(this.modes,(t,e)=>void 0===e?"<undefined>":e)),this.jssipUA.modes=this.modes;for(var a of this.credentials)this.jssipUA.addCredential(a);this.credentials=[],this.jssipUA.start()}}deinit(){this._isInitialized=!1,this.jssipUA&&this.jssipUA.stop()}setRegisterExtraHeaders(e){if(this.registerExtraHeaders=e,this.jssipUA){let t=null!==e?e:[];null!==this.oauthToken&&(t=t.slice()).push("Authorization: Bearer "+this.oauthToken),this.jssipUA.registrator().setExtraHeaders(t)}}getRegisterExtraHeaders(){return this.registerExtraHeaders}login(){AudioCodesUA.ac_log("AC: login()"),this.jssipUA.register()}logout(){AudioCodesUA.ac_log("AC: logout()"),this.jssipUA.isRegistered()&&this.jssipUA.unregister()}switchSBC(t=!0){return AudioCodesUA.ac_log("AC: switchSBC()"),this.jssipUA.switchSBC(t)}getNumberOfSBC(){return this.jssipUA.getNumberOfSBC()}setWebSocketKeepAlive(t,e=!0,n=!0,i=0,a=!1){if(AudioCodesUA.ac_log(`AC: setWebSocketKeepAlive pingInterval=${t} pongTimeout=`+e+` timerThrottlingBestEffort=${JSON.stringify(n)} pongReport=${i} pongDist=`+a),"number"!=typeof t||"boolean"!=typeof e)throw new TypeError("setWebSocketKeepAlive: wrong type of first or second argument");this.wsPingMs=this.wsOrigPingMs=1e3*t,this.wsPongTimeout=e,this.wsPongReport=i,this.wsPongDist=a,this.wsPongReportCounter=0;n=(a=!(this.wsIsThrottling=!1)===n?{log:0,chrome:{interval:1,visibility:!0,call:!0,log:1}}:!1===n?{log:0}:n)[this.browser];this.wsThrottlingPingMs=n&&void 0!==n.interval?1e3*n.interval:0,this.wsVisibility=!(!n||void 0===n.visibility)&&n.visibility,this.wsCall=!(!n||void 0===n.call)&&n.call,this.wsLog=(n&&void 0!==n.log?n:a).log,this.wsPongDelays=new Array(0<this.wsPongReport?this.wsPongReport:50),(this.wsPongDelaysIx=0)!==this.wsOrigPingMs&&0!==this.wsThrottlingPingMs&&this.wsVisibility&&document.addEventListener("visibilitychange",this._onVisibilityChange.bind(this))}_pingLog(){return` (ping=${this.wsPingMs/1e3} sec)`}_visibilityLog(t){let e="AC: keep-alive: Page is "+(document.hidden?"hidden":"visible");document.hidden&&(this.wsCall&&(e+=", "+(0===this.activeCalls?"no active call":"active call")),e+=" and "+(this.wsIsThrottling?"was":"was not")+" trottling"),t&&(e+=this._pingLog()),AudioCodesUA.ac_log(e)}_activeCallsLog(t){let e="AC: keep-alive: "+(0===this.activeCalls?"Call ended":"Call started");0===this.activeCalls&&(this.wsVisibility&&(e+=", page is "+(document.hidden?"hidden":"visible")),e+=" and "+(this.wsIsThrottling?"was":"was not")+" trottling"),t&&(e+=this._pingLog()),AudioCodesUA.ac_log(e)}_onActiveCallsChange(t){if(this.activeCalls+=t,this.wsCall&&0!==this.wsPingMs&&0!==this.wsThrottlingPingMs)if(this.activeCalls<0&&AudioCodesUA.ac_log("Warning: keep-alive: activeCalls < 0"),0===this.activeCalls){if((!this.wsVisibility||document.hidden)&&this.wsIsThrottling&&this.wsPingMs<this.wsThrottlingPingMs)return this.wsPingMs=this.wsThrottlingPingMs,void this._activeCallsLog(!0);2<=this.wsLog&&this._activeCallsLog(!1)}else if(1===this.activeCalls&&0<t){if(this.wsPingMs>this.wsOrigPingMs)return this.wsPingMs=this.wsOrigPingMs,void this._activeCallsLog(!0);2<=this.wsLog&&this._activeCallsLog(!1)}}_onVisibilityChange(){if(this.wsVisibility&&0!==this.wsPingMs&&0!==this.wsThrottlingPingMs)if(document.hidden){if(this.wsCall&&0===this.activeCalls&&this.wsIsThrottling&&this.wsPingMs<this.wsThrottlingPingMs)return this.wsPingMs=this.wsThrottlingPingMs,void this._visibilityLog(!0);2<=this.wsLog&&this._visibilityLog(!1)}else{if(this.wsPingMs>this.wsOrigPingMs)return this.wsPingMs=this.wsOrigPingMs,void this._visibilityLog(!0);2<=this.wsLog&&this._visibilityLog(!1)}}_onMessageHook(t){"\r\n"===t.data?this._onPong():this.wsOnMessage(t)}_onPong(){if(this.wsPingStarted){let t;this.wsPongReceived=!0,null===this.wsPongSupported&&(AudioCodesUA.ac_log("AC: keep-alive: Server supports CRLF pong"),this.wsPongSupported=!0),null!==this.wsPongTimeoutTime?(t=Date.now()-this.wsPongTimeoutTime,this.wsPongTimeoutTime=null,AudioCodesUA.ac_log("AC: keep-alive: Received pong that exceeded the timeout, delay="+t)):t=Date.now()-this.wsPingTime;let e=this.wsPingMs-t;e<0&&(AudioCodesUA.ac_log(`AC: nextPing calculated to ${e}ms, so resetting to 0ms.`),e=0),null!==this.wsPingJob&&clearTimeout(this.wsPingJob),this.wsPingJob=setTimeout(this._sendPing.bind(this),e),this.wsPongDelays[this.wsPongDelaysIx]=t,this.wsPongDelaysIx=this.wsPongDelaysIx+1,this.wsPongDelaysIx===this.wsPongDelays.length&&(this.wsPongDelaysIx=0),0<this.wsPongReport&&this.wsPongReportCounter++}}_onPongTimeout(t){if(AudioCodesUA.ac_log(`AC: keep-alive: Pong timeout (not received within ${t/1e3} seconds)`),AudioCodesUA.ac_log("AC: keep-alive: Previous pongs statistics: "+this._createPongReport(!0)),this.wsPongTimeout){AudioCodesUA.ac_log("AC: keep-alive: Close websocket connection"),this._stopWsKeepAlive();let t=this.wsSocket;t.onopen=void 0,t.onerror=void 0,t.onclose=void 0,t.onmessage=void 0,setTimeout(()=>{try{t.close()}catch(t){AudioCodesUA.ac_log("AC: Close websocket error",t)}},0),this.wsWebSocketInterface._ws=null,this.wsWebSocketInterface._onClose.call(this.wsWebSocketInterface,{wasClean:!1,code:1001,reason:"Going Away"})}else AudioCodesUA.ac_log("AC: keep-alive: Warning: websocket is not closed, because pongTimeout=false")}_sendPing(){try{var t=Date.now();if(null!==this.wsPingTime){var e=t-this.wsNextPingTime;3<=this.wsLog&&AudioCodesUA.ac_log("AC: keep-alive: timer deviation (ms): "+e);var n=this.wsPingMs;if(1e4<=Math.abs(e)&&((0<this.wsLog||!this.wsIsThrottling)&&(AudioCodesUA.ac_log(`AC: keep-alive detected timer throttling: ${Math.round(e/1e3)} seconds `+(0<e?"later":"earlier")),0===this.wsLog&&AudioCodesUA.ac_log("AC: keep-alive: The next timer throttling will not be shown in the logs, because log==0")),this.wsIsThrottling=!0,this.wsPingMs<this.wsThrottlingPingMs&&(this.wsPingMs=this.wsThrottlingPingMs,AudioCodesUA.ac_log("AC: keep-alive: ping interval increased "+this._pingLog()))),null!==this.wsPongSupported||this.wsPongReceived||(AudioCodesUA.ac_log("AC: keep-alive: Server does not support CRLF pong."),this.wsPongSupported=!1),this.wsPongSupported&&!this.wsPongReceived&&null===this.wsPongTimeoutTime){if(this._onPongTimeout(n),this.wsPongTimeout)return;this.wsPongTimeoutTime=this.wsPingTime}}this.wsPingTime=t,this.wsNextPingTime=this.wsPingTime+this.wsPingMs,this.wsPongReceived=!1,this.wsSocket.readyState===WebSocket.OPEN?(this.wsIsPingDebugLog&&AudioCodesUA.ac_log("AC: send ping"),this.wsSocket.send("\r\n\r\n")):AudioCodesUA.ac_log("AC: keep-alive: Warning: Cannot send Ping, websocket state="+this.wsSocket.readyState),this.wsPingJob=setTimeout(this._sendPing.bind(this),this.wsPingMs),0<this.wsPongReport&&this.wsPongReportCounter>=this.wsPongReport&&(this.wsPongReportCounter=0,AudioCodesUA.ac_log("AC: keep-alive: Pong statistics: "+this._createPongReport(this.wsPongDist)))}catch(t){AudioCodesUA.ac_log("AC: keep-alive: send ping error",t)}}_startWsKeepAlive(){var t=this.jssipUA._transport;this.wsWebSocketInterface=t.socket,this.wsSocket=this.wsWebSocketInterface._ws,0!==this.wsPingMs&&(this.wsOnMessage=this.wsSocket.onmessage,this.wsSocket.onmessage=this._onMessageHook.bind(this),this._stopWsKeepAlive(),this.wsPingTime=null,this.wsPingStarted=!0,this.wsPongSupported=null,this.wsPingJob=setTimeout(this._sendPing.bind(this),this.wsPingMs))}_stopWsKeepAlive(){this.wsPingStarted=!1,null!==this.wsPingJob&&(clearTimeout(this.wsPingJob),this.wsPingJob=null)}_createPongReport(e){let n,i="",a=!1,o=1e6,s=0;e&&(n=new Array(this.wsPingMs/1e3*4).fill(0));let r=0;for(let t=0;t<this.wsPongDelays.length;t++){var l=this.wsPongDelays[t];if(void 0!==l&&(r++,l<o&&(o=l),l>s&&(s=l),e)){let t=Math.floor(l/250);t>=n.length&&(t=n.length-1,a=!0),n[t]++}}if(e){i="\r\npongs distribution (1/4 second step): ";for(let t=0;t<n.length;t++)i+=n[t].toString(),t!==n.length-1&&(i+=(t+1)%4==0?",":" ");a&&(i+=" (+)")}return`pongs=${r} delay=${o}..${s} ms`+i}setPingDebugLog(t){this.wsIsPingDebugLog=t}_setUACallbacks(){this.jssipUA.on("connected",()=>{AudioCodesUA.ac_log('AC>>: loginStateChanged: isLogin=false "connected"'),this._startWsKeepAlive(),this.listeners.loginStateChanged(!1,"connected",null)}),this.jssipUA.on("disconnected",()=>{this._stopWsKeepAlive(),AudioCodesUA.ac_log('AC>>: loginStateChanged: isLogin=false "disconnected"'),this.listeners.loginStateChanged(!1,"disconnected",null)}),this.jssipUA.on("registered",t=>{AudioCodesUA.ac_log('AC>>: loginStateChanged: isLogin=true "login"'),this.listeners.loginStateChanged(!0,"login",t.response)}),this.jssipUA.on("unregistered",t=>{AudioCodesUA.ac_log('AC>>: loginStateChanged: isLogin=false "logout"'),this.listeners.loginStateChanged(!1,"logout",t.response)}),this.jssipUA.on("registrationFailed",t=>{var e=t.response?t.response.status_code:0;if(300<=e&&e<400){var n=t.response.parseHeader("contact");if(n){let t=n.uri,e="wss://"+t.host;if(t.port&&443!==t.port&&(e+=":"+t.port.toString()),AudioCodesUA.ac_log(`AC: registerRedirect("${e}")`),this.jssipUA.registerRedirect(e))return}else AudioCodesUA.ac_log('AC: 3xx response without "Contact" is ignored')}else if(500<=e&&e<600&&AudioCodesUA.instance.modes.sbc_switch_register5xx_mode&&AudioCodesUA.instance.switchSBC(!1))return;AudioCodesUA.ac_log('AC>>: loginStateChanged: isLogin=false "login failed"'),this.listeners.loginStateChanged(!1,"login failed",t.response||null)}),this.listeners.incomingMessage&&this.jssipUA.on("newMessage",t=>{"remote"===t.originator&&(AudioCodesUA.ac_log("AC>>: incomingMessage",t),this.listeners.incomingMessage(null,AudioCodesUA.instance._get_from(t.request),AudioCodesUA.instance._get_content_type(t.request),t.request.body,t.request))}),this.listeners.incomingNotify&&this.jssipUA.on("sipEvent",t=>{AudioCodesUA.ac_log("AC>>: incoming out of dialog NOTIFY",t),this.listeners.incomingNotify(null,t.event?t.event.event:null,AudioCodesUA.instance._get_from(t.request),AudioCodesUA.instance._get_content_type(t.request),t.request.body,t.request)||t.request.reply(481)}),this.listeners.incomingSubscribe&&this.jssipUA.on("newSubscribe",t=>{let e=t.request,n=e.parseHeader("event"),i=e.getHeaders("accept");AudioCodesUA.ac_log("AC>>: incomingSubscribe",e,n.event,i);t=this.listeners.incomingSubscribe(e,n.event,i);0<t&&e.reply(t)}),this.jssipUA.on("newRTCSession",function(a){AudioCodesUA.ac_log(`AC: event ${"remote"===a.originator?"incoming":"outgoing"} "newRTCSession"`,a);let t,o=new AudioCodesSession(a.session);if(o.js_session.on("sipEvent",function(t){var e;AudioCodesUA.instance.listeners.incomingNotify&&(e=this.data.ac_session,AudioCodesUA.ac_log("AC>>: incoming NOTIFY",e,t),t.taken=AudioCodesUA.instance.listeners.incomingNotify(e,t.event?t.event.event:null,AudioCodesUA.instance._get_from(t.request),AudioCodesUA.instance._get_content_type(t.request),t.request.body,t.request))}),o.js_session.on("newInfo",function(t){var e;AudioCodesUA.instance.listeners.incomingInfo&&"local"!==t.originator&&(e=this.data.ac_session,AudioCodesUA.ac_log("AC>>: incoming INFO",e,t),AudioCodesUA.instance.listeners.incomingInfo(e,AudioCodesUA.instance._get_from(t.request),AudioCodesUA.instance._get_content_type(t.request),t.request.body,t.request))}),o.js_session.on("replaces",function(t){AudioCodesUA.instance.replacedCall=this.data.ac_session,AudioCodesUA.ac_log("AC>>: incoming INVITE with Replaces. This call will be replaced:",this.data.ac_session),t.accept()}),o.js_session.on("sdp",function(t){AudioCodesUA.instance._sdp_checking(this,t)}),o.js_session.on("connecting",function(t){AudioCodesUA.ac_log("AC>>: connecting");var e=AudioCodesUA.instance.codecFilter;e&&(AudioCodesUA.instance._cf_filter("audio",this.data.ac_session,e.audio),AudioCodesUA.instance._cf_filter("video",this.data.ac_session,e.video))}),o.js_session.on("reinvite",function(e){if(AudioCodesUA.instance.listeners.callIncomingReinvite){let t=this.data.ac_session;AudioCodesUA.ac_log("AC>>: callIncomingReinvite start"),AudioCodesUA.instance.listeners.callIncomingReinvite(t,!0,e.request),e.callback=function(){AudioCodesUA.ac_log("AC>>: callIncomingIncomingReinvite end"),AudioCodesUA.instance.listeners.callIncomingReinvite(t,!1,null)}}}),o.js_session.on("hold",function(t){var e=this.data.ac_session,t="remote"===t.originator;AudioCodesUA.ac_log(`AC>>: callHoldStateChanged isHold=true isRemote=${t} session:`,e),AudioCodesUA.instance.listeners.callHoldStateChanged(e,!0,t)}),o.js_session.on("unhold",function(t){var e=this.data.ac_session,t="remote"===t.originator;AudioCodesUA.ac_log(`AC>>: callHoldStateChanged isHold=false isRemote=${t} session:`,e),AudioCodesUA.instance.listeners.callHoldStateChanged(e,!1,t)}),o.js_session.on("progress",function(t){var e;"remote"===t.originator&&(e=this.data.ac_session,AudioCodesUA.ac_log("AC>>: outgoingCallProgress",e),AudioCodesUA.instance.listeners.outgoingCallProgress(e,t.response))}),o.js_session.on("failed",function(e){let t=this.data.ac_session,n=null;if("Redirected"===e.cause&&e.message&&e.message.headers){let t=e.message.parseHeader("Contact");t&&(n=t.uri.toString())}AudioCodesUA.ac_log("AC>>: callTerminated (failed)",t,e.cause,n),AudioCodesUA.instance.listeners.callTerminated(t,e.message,e.cause,n)}),o.js_session.on("accepted",function(t){let e=this.data.ac_session;e.data._accepted=!0,"remote"===t.originator&&(e.data._ok_response=t.response)}),"remote"===a.originator&&null!==AudioCodesUA.instance.replacedCall&&o.js_session.removeAllListeners("confirmed"),o.js_session.on("confirmed",function(){let t,e=this.data.ac_session,n=null;t="_ok_response"in e.data?(n=e.data._ok_response,delete e.data._ok_response,"ACK sent"):"ACK received",o.data._video_call_audio_answer_firefox&&(o.data._video_call_audio_answer_firefox=!1,AudioCodesUA.ac_log("AC: [video call/audio answer] Firefox workaround. Send re-INVITE"),o.sendReInvite({showStreams:!0})),AudioCodesUA.ac_log("AC>>: callConfirmed",e,t),AudioCodesUA.instance._onActiveCallsChange.call(AudioCodesUA.instance,1),AudioCodesUA.instance.listeners.callConfirmed(e,n,t)}),o.js_session.on("ended",function(t){let e=this.data.ac_session;e.data._screenSharing&&e._onEndedScreenSharing.call(e,"call terminated"),AudioCodesUA.ac_log("AC>>: callTerminated (ended)",e,t.cause),AudioCodesUA.instance._onActiveCallsChange.call(AudioCodesUA.instance,-1),AudioCodesUA.instance.listeners.callTerminated(e,t.message,t.cause)}),o.js_session.on("refer",function(t){if(AudioCodesUA.instance.listeners.transfereeCreatedCall){let e=this.data.ac_session;var n;!AudioCodesUA.instance.listeners.transfereeRefer||AudioCodesUA.instance.listeners.transfereeRefer(e,t.request)?(AudioCodesUA.ac_log("AC>>: incoming REFER accepted"),n=e.isScreenSharing()?e.doesScreenSharingReplaceCamera():e.hasSendVideo(),n=AudioCodesUA.instance._callOptions(n,!0),t.accept(t=>{t.data._created_by_refer=e},n)):(AudioCodesUA.ac_log("AC>>: incoming REFER rejected"),t.reject())}else AudioCodesUA.ac_log("AC>>: incoming REFER rejected, because transfereeCreatedCall is not set"),t.reject()}),o._setEnabledReceiveVideo(AudioCodesUA.instance.enableAddVideo),o.js_session.connection?(AudioCodesUA.instance._set_connection_listener(o),AudioCodesUA.ac_log('AC: connection exists, set "track" listener')):(AudioCodesUA.ac_log("AC: peer connection does not exist, wait creation"),o.js_session.on("peerconnection",()=>{AudioCodesUA.instance._set_connection_listener(o),AudioCodesUA.ac_log('AC: [event connection] connection created, set "track" listener')})),t="remote"===a.originator?a.request.from:a.request.to,o.data._user=t.uri.user,o.data._host=t.uri.host,o.data._display_name=t.display_name,o.data._create_time=new Date,"remote"===a.originator){let e,n,i,t=null;if(null!==AudioCodesUA.instance.replacedCall&&(t=AudioCodesUA.instance.replacedCall,AudioCodesUA.instance.replacedCall=null),a.request.body){i=!0;let t=new AudioCodesSDP(a.request.body);[e,n]=t.getMediaDirection("video",!0)}else i=!1,o.data._incoming_invite_without_sdp=!0,e=n=!0,AudioCodesUA.ac_log("AC: warning incoming INVITE without SDP");o._setVideoState(e,n),AudioCodesUA.ac_log(`AC>>: incomingCall ${o.hasVideo()?"video":"audio"} from "${o.data._display_name}" `+o.data._user,o,t),AudioCodesUA.instance.listeners.incomingCall(o,a.request,t,i)}else o.js_session.data._created_by_refer?(AudioCodesUA.ac_log("AC>>: outgoing call created by REFER"),o.data._created_by_refer=o.js_session.data._created_by_refer,AudioCodesUA.instance.listeners.transfereeCreatedCall(o)):AudioCodesUA.ac_log("AC>>: outgoing call created by phone.call()")})}_get_from(t){return{user:t.from.uri.user,host:t.from.uri.host,displayName:t.from.display_name||null}}_get_content_type(t){t=t.headers["Content-Type"];return t&&0<t.length?t[0].parsed:null}_set_connection_listener(a){AudioCodesUA.instance.getWR().connection.addEventListener(a.js_session.connection,"track",n=>{var t;if(AudioCodesUA.ac_log('AC>>: "track" event kind= '+n.track.kind,n),0<n.streams.length?(t=n.streams[0],AudioCodesUA.ac_log("AC: set call remote stream id="+t.id,a),a.data._remoteMediaStream=t):AudioCodesUA.ac_log('AC: Warning "track" event without stream'),"video"===n.track.kind)return a.hasEnabledReceiveVideo()||(a.data._video_call_audio_answer_safari&&(n.track.onmute=()=>{AudioCodesUA.ac_log('AC: [video call/audio answer] Safari fix. Fired video track "mute" event.  Call callShowStream'),n.track.onmute=null;var t=a.getRTCLocalStream(),e=a.getRTCRemoteStream();AudioCodesUA.ac_log("AC>>: callShowStreams",a,t,e),AudioCodesUA.instance.listeners.callShowStreams(a,t,e)},AudioCodesUA.ac_log('AC: [video call/audio answer] Safari fix. Set video track "mute" event listener'),a.data._video_call_audio_answer_safari=!1),AudioCodesUA.ac_log('AC>>: event "track" video and !hasEnabledReceiveVideo therefore change transceiver direction.',a),null!==(e=AudioCodesUA.instance.getWR().connection.getTransceiver(a.js_session.connection,"video"))&&(i=a.hasEnabledSendVideo()?"sendonly":"inactive",AudioCodesUA.instance.getWR().transceiver.setDirection(e,i))),void(AudioCodesUA.instance.codecFilter&&AudioCodesUA.instance._cf_filter("video",a,AudioCodesUA.instance.codecFilter.video));var e=a.getRTCLocalStream(),i=a.getRTCRemoteStream();AudioCodesUA.ac_log("AC>>: callShowStreams",a,e,i),AudioCodesUA.instance.listeners.callShowStreams(a,e,i)})}_check_remote_sdp(t,e){try{e.codec_map||(e.codec_map={});var n=t.getMedia("audio");AudioCodesUA.instance._check_remote_m(n,e.codec_map);var i=t.getMedia("video");i&&AudioCodesUA.instance._check_remote_m(i,e.codec_map)}catch(t){AudioCodesUA.ac_log("AC:SDP exception",t)}}_check_remote_m(t,n){let i={};function e(t,e){var n=e.indexOf(" ",t);return-1===n?["?","?"]:[e.substring(t,n),e.substring(n+1).toLowerCase()]}for(var a of t){var o,s;a.startsWith("a=rtpmap:")?([o,s]=e(9,a),i[o]||(i[o]={}),i[o].rtpmap=s):a.startsWith("a=fmtp:")&&([s,a]=e(7,a),i[s]||(i[s]={}),i[s].fmtp=a)}for(var r of Object.keys(i))if(n[r])i[r].rtpmap===n[r].rtpmap?i[r].fmtp!==n[r].fmtp&&AudioCodesUA.ac_log(`AC:SDP [The same payload type and codec name, different fmtp] pt=${r} rtpmap=${i[r].rtpmap} fmtp=${i[r].fmtp}, previously was fmtp=`+n[r].fmtp):(64<=parseInt(r)||i[r].rtpmap&&n[r].rtpmap)&&AudioCodesUA.ac_log(`AC:SDP [The same payload type, different codec names] pt=${r} rtpmap=${i[r].rtpmap}, previously was rtpmap=`+n[r].rtpmap);else{let t,e=i[r];for(var[l,c]of Object.entries(n))if(e.rtpmap===c.rtpmap&&e.fmtp===c.fmtp){t=l;break}var u;t?(u=n[t],e.fmtp||u.fmtp?AudioCodesUA.ac_log(`AC:SDP [The same codec name used with different payload types] pt=${r} rtpmap=${e.rtpmap} fmtp=${e.fmtp}, previously was pt=${t} rtpmap=${u.rtpmap} fmtp=`+u.fmtp):AudioCodesUA.ac_log(`AC:SDP [The same codec name used with different payload types] pt=${r} rtpmap=${e.rtpmap}, previously was pt=${t} rtpmap=`+u.rtpmap)):n[r]=e}}_sdp_checking(t,e){let n,i,a,o=e.originator+" "+e.type,s=t.data.ac_session;try{n=new AudioCodesSDP(e.sdp),[i,a]=n.getMediaDirection("video","remote"===e.originator)}catch(e){return void AudioCodesUA.ac_log("AC: cannot parse SDP",e)}var r=s.data._initial;switch("answer"===e.type&&(s.data._initial=!1),AudioCodesUA.ac_log(`AC: Event "sdp" ${r?"initial":""} ${o}   Session state:`+AudioCodesUA.getSessionStatusName(t._status)),o){case"remote offer":AudioCodesUA.instance.modes.check_remote_sdp_mode&&AudioCodesUA.instance._check_remote_sdp(n,t.data);break;case"remote answer":if(AudioCodesUA.instance.modes.check_remote_sdp_mode&&AudioCodesUA.instance._check_remote_sdp(n,t.data),s.isLocalHold()||s.isRemoteHold())break;s._setVideoState(i,a);break;case"local offer":AudioCodesUA.instance.networkPriority&&AudioCodesUA.instance._set_senders_dscp(t);break;case"local answer":if(s.isLocalHold()||s.isRemoteHold())break;AudioCodesUA.instance.networkPriority&&AudioCodesUA.instance._set_senders_dscp(t),s._setVideoState(i,a)}}_set_senders_dscp(t){var e;"chrome"===AudioCodesUA.instance.browser&&(AudioCodesUA.ac_log("AC: _set_senders_dscp()"),e=AudioCodesUA.instance.networkPriority,AudioCodesUA.instance._set_dscp(t,"audio",e),AudioCodesUA.instance._set_dscp(t,"video",e))}_set_dscp(t,i,a){let e=t.connection,o=AudioCodesUA.instance.getWR().connection.getTransceiver(e,i);return o||"video"!==i?Promise.resolve().then(()=>{var t=o.sender.getParameters();if(!t)throw new Error("sender getParameters() returns undefined");let e=t.encodings;if(!e)throw new Error("parameters encodings is undefined");if(0===e.length)throw new Error("parameters encodings is empty array");var n=e[0].networkPriority;if(!n)throw new Error("parameters encodings networkPriority is undefined");return n===a||(e[0].networkPriority=a,o.sender.setParameters(t).then(()=>(AudioCodesUA.ac_log(`AC: DSCP: ${i} "${a}"`),!0)))}).catch(t=>(AudioCodesUA.ac_log(`AC: DSCP: ${i} error: `+t),!1)):Promise.resolve(!1)}_cf_unpack(t){if(!t)return null;let n={};for(let e in t)for(var i in n[e]={},t[e])n[e][i]=t[e][i].map(t=>function(t,e){var n=e.indexOf("/"),i=e.indexOf("#"),a=-1!==n?n:-1!==i?i:void 0;let o={mimeType:(t+"/"+e.substring(0,a)).toLowerCase()};return-1!==n&&(o.clockRate=parseInt(e.substring(n+1,-1!==i?i:void 0))),-1!==i&&(o.sdpFmtpLine=e.substring(i+1)),o}(e,t));return n}_cf_pack(t){return t.map(t=>function(t){let e=t.mimeType.substring(6).toLowerCase();return t.clockRate&&(e+="/"+t.clockRate),t.sdpFmtpLine&&(e+="#"+t.sdpFmtpLine),e}(t))}_cf_str(t){return JSON.stringify(AudioCodesUA.instance._cf_pack(t))}_cf_match(t,e){var n,i=t.mimeType.toLowerCase();for(n of e)if(n.mimeType===i){if(n.clockRate&&n.clockRate!==t.clockRate)continue;if(n.sdpFmtpLine&&n.sdpFmtpLine!==t.sdpFmtpLine)continue;return!0}return!1}_cf_find(t,e){let n=[];for(var i of e){var a=i.mimeType.toLowerCase();t.mimeType===a&&(t.clockRate&&t.clockRate!==i.clockRate||t.sdpFmtpLine&&t.sdpFmtpLine!==i.sdpFmtpLine||n.push(i))}return n}_cf_filter(o,n,s){if(s&&!n.data[`_used_${o}_codec_filter`])try{let t=n.getRTCPeerConnection(),e=AudioCodesUA.instance.getWR().connection.getTransceiver(t,o);if(e)if(n.data[`_used_${o}_codec_filter`]=!0,RTCRtpSender.getCapabilities&&RTCRtpReceiver.getCapabilities&&e.setCodecPreferences){let t=RTCRtpSender.getCapabilities(o).codecs,n=RTCRtpReceiver.getCapabilities(o).codecs,i=[];for(let e of n)-1===t.findIndex(t=>e.mimeType===t.mimeType&&e.clockRate===t.clockRate&&e.sdpFmtpLine===t.sdpFmtpLine)&&i.push(e);let a=t.concat(i);var r;if(AudioCodesUA.ac_log(`AC: ${o} codec-filter original: ${AudioCodesUA.instance._cf_str(a)}
(receiver: ${i.length})`),s.remove&&0<s.remove.length&&(r=a.length,(a=a.filter(t=>!AudioCodesUA.instance._cf_match(t,s.remove))).length<r&&AudioCodesUA.ac_log(`AC: ${o} codec-filter remaining: `+AudioCodesUA.instance._cf_str(a))),s.priority&&0<s.priority.length){let t=[];for(var l of s.priority){let e=AudioCodesUA.instance._cf_find(l,a);0!==e.length&&(t=t.concat(e),a=a.filter(t=>!e.includes(t)))}a=t.concat(a),AudioCodesUA.ac_log(`AC: ${o} codec-filter changed priority: `+AudioCodesUA.instance._cf_str(a))}e.setCodecPreferences(a)}else AudioCodesUA.ac_log("AC: codec-filter is not supported.");else"audio"===o&&AudioCodesUA.ac_log("AC: codec-filter: cannot get audio transceiver")}catch(o){return void AudioCodesUA.ac_log("AC: codec filter exception",o)}}_convertIceList(t){let e=[];for(var n of t)"string"==typeof n&&(n={urls:"stun:"+n}),e.push(n);return e}_randomToken(e){let n="";for(let t=0;t<e;t++)n+=Math.floor(36*Math.random()).toString(36);return n}_detectBrowser(){try{let t=navigator.userAgent;if(this.browser="other",this.browserName=t,this.browserVersion=0,navigator.mozGetUserMedia)this.browser="firefox",this.browserName=t.match(/Firefox\/([.\d]+)$/)[0],this.browserVersion=parseInt(t.match(/Firefox\/(\d+)\./)[1],10);else if(navigator.webkitGetUserMedia){this.browser="chrome",this.browserName=t.match(/Chrom(e|ium)\/([\d]+)/)[0],this.browserVersion=parseInt(t.match(/Chrom(e|ium)\/(\d+)\./)[2],10);let e=t.toLowerCase();for(let t=0;t<this.chromiumBased.length;t++){var n=this.chromiumBased[t].s,i=e.indexOf(n);if(-1!==i){var a=e.substring(i+n.length).match(/([.\d]+)/)[1];this.browserName+=" ("+this.chromiumBased[t].n+"/"+a+")";break}}}else window.safari?(this.browser="safari",this.browserName="Safari/"+t.match(/Version\/([.\d]+)/)[1],this.browserVersion=parseInt(t.match(/Version\/(\d+)\./)[1],10)):-1!==t.indexOf("Edge/")&&(this.browser="other",this.browserName=t.match(/Edge\/([.\d]+)/)[0],this.browserVersion=parseInt(t.match(/Edge\/(\d+).(\d+)$/)[2],10));/iPad|iPhone|iPod/.test(t)&&(this.browserName=t,t.includes("CriOS")?(this.browser="chrome",this.browserVersion=parseInt(t.match(/CriOS\/(\d+)\./)[1],10)):t.includes("FxiOS")?(this.browser="firefox",this.browserVersion=parseInt(t.match(/FxiOS\/(\d+)\./)[1],10)):(this.browser="safari",this.browserVersion=parseInt(t.match(/Version\/(\d+)\./)[1],10)))}catch(t){AudioCodesUA.ac_log("AC: Browser detection error",t),this.browser="other",this.browserName=navigator.userAgent,this.browserVersion=0}}_detectOS(){this._detectOS1(),"other"===this.os&&this._detectOS2()}_detectOS1(){try{let t=!!navigator.userAgentData&&navigator.userAgentData.platform;if(!t)return;"windows"!==(t=t.toLowerCase())&&"linux"!==t&&"android"!==t&&"macos"!==t||(this.os=t)}catch(t){AudioCodesUA.ac_log("AC: detectOS1 error",t),this.os="other"}}_detectOS2(){try{let t=navigator.platform;if(!t)return;(t=t.toLowerCase()).startsWith("win")?this.os="windows":t.startsWith("android")?this.os="android":t.startsWith("linux")?navigator.userAgent.includes("Android")?this.os="android":this.os="linux":t.startsWith("mac")?this.os="macos":/ipad|iphone|ipod/.test(t)&&(this.os="ios")}catch(t){AudioCodesUA.ac_log("AC: detectOS2 error",t),this.os="other"}}_mediaConstraints(t){let e=AudioCodesUA.instance,n={audio:e.constraints.audio};return t&&(n.video=e.constraints.video),n}_callOptions(t,e,n=null,i=null){let a={},o=AudioCodesUA.instance;return"chrome"===o.browser&&o.networkPriority&&(a={rtcConstraints:{optional:[{googDscp:!0}]}}),null!==i&&Object.assign(a,i),a.mediaConstraints=o._mediaConstraints(t),void 0===a.pcConfig&&(a.pcConfig={}),a.pcConfig.iceServers=o.serverConfig.iceServers,null!==n&&(n=n.slice()),null!==o.oauthToken&&o.oauthTokenUseInInvite&&e&&(n=null===n?[]:n).push("Authorization: Bearer "+o.oauthToken),null!==n&&(a.extraHeaders=n),a}call(t,e,n=null,i=null){if(!1===t?t=AudioCodesUA.instance.AUDIO:!0===t&&(t=AudioCodesUA.instance.VIDEO),"symbol"!=typeof t||![AudioCodesUA.instance.AUDIO,AudioCodesUA.instance.VIDEO].includes(t))throw new TypeError("Illegal videoOption="+t.toString());e=e.replace(/\s+/g,""),AudioCodesUA.ac_log(`AC: call ${t.description} to `+e);let a=this._callOptions(t===AudioCodesUA.instance.VIDEO,!0,n,i),o=this.jssipUA.call(e,a);a.mediaStream&&(o._localMediaStreamLocallyGenerated=!0);let s=o.data.ac_session;return s._setEnabledSendVideo(t===AudioCodesUA.instance.VIDEO),t===AudioCodesUA.instance.VIDEO&&s._setEnabledReceiveVideo(!0),s}sendMessage(t,i,a="text/plain"){return AudioCodesUA.ac_log(`AC: sendMessage to: ${t} "${i}"`),new Promise((e,n)=>{this.jssipUA.sendMessage(t,i,{contentType:a,eventHandlers:{succeeded:t=>e(t),failed:t=>n(t)}})})}isScreenSharingSupported(){return AudioCodesUA.instance.getWR().hasDisplayMedia()}openScreenSharing(){return this.isScreenSharingSupported()?(AudioCodesUA.ac_log("AC: openScreenSharing()"),AudioCodesUA.instance.getWR().getDisplayMedia().then(t=>t).catch(t=>{throw AudioCodesUA.ac_log("AC: openScreenSharing() error",t),t})):(AudioCodesUA.ac_log("AC: openScreenSharing: screen sharing is not supported in the browser"),Promise.reject("Screen sharing is not supported"))}closeScreenSharing(e){if(AudioCodesUA.ac_log("AC: closeScreenSharing()"),e){e=e.getVideoTracks();if(0!=e.length){let t=e[0];"live"===t.readyState&&(t.stop(),t.dispatchEvent(new Event("ended")))}}}setNetworkPriority(t){if(AudioCodesUA.ac_log("AC: setNetworkPriority "+t),void 0!==t&&"high"!==t&&"medium"!==t&&"low"!==t&&"very-low"!==t)throw new TypeError("setNetworkPriority: illegal value: "+t);this.networkPriority=t}subscribe(...t){return this.jssipUA.subscribe(...t)}notify(...t){return this.jssipUA.notify(...t)}addCredential(t){if(!t.realm||!t.password||!t.username)throw new TypeError("wrong credential structure");this.credentials.push(t)}}class AudioCodesSession{constructor(t){this.js_session=t,this.data={_user:null,_display_name:null,_create_time:null,_initial:!0,_remoteMediaStream:null,_wasUsedSendVideo:!1,_screenSharing:null,_video:{send:!1,receive:!1,enabledSend:!1,enabledReceive:!1}},t.data.ac_session=this}getRTCPeerConnection(){return this.js_session.connection}getRTCLocalStream(){return this.js_session._localMediaStream}getRTCRemoteStream(){return this.data._remoteMediaStream}isEstablished(){return this.js_session.isEstablished()}isTerminated(){return this.js_session.isEnded()}isOutgoing(){return"outgoing"===this.js_session.direction}isAudioMuted(){return this.js_session.isMuted().audio}isVideoMuted(){return this.js_session.isMuted().video}wasAccepted(){return!0===this.data._accepted}getReplacesHeader(){if(!this.js_session.isEstablished()||!this.js_session._dialog)return AudioCodesUA.ac_log("getReplacesHeader(): call is not established"),null;var t=this.js_session._dialog.id;return`${t.call_id};to-tag=${t.remote_tag};from-tag=`+t.local_tag}muteAudio(t){AudioCodesUA.ac_log(`AC: muteAudio() arg=${t} `),t?this.js_session.mute({audio:!0,video:!1}):this.js_session.unmute({audio:!0,video:!1})}muteVideo(t){AudioCodesUA.ac_log(`AC: muteVideo() arg=${t} `),t?this.js_session.mute({audio:!1,video:!0}):this.js_session.unmute({audio:!1,video:!0})}sendDTMF(t){let e=AudioCodesUA.instance.dtmfUseWebRTC;e&&"safari"===AudioCodesUA.instance.browser&&void 0===AudioCodesUA.instance.getWR().connection.getDTMFSender(this.js_session.connection)&&(e=!1),AudioCodesUA.ac_log(`AC: sendDTMF() tone=${t} `+(e?"[RFC2833]":"[INFO]"));var n={duration:AudioCodesUA.instance.dtmfDuration,interToneGap:AudioCodesUA.instance.dtmfInterToneGap,transportType:e?"RFC2833":"INFO"};this.js_session.sendDTMF(t,n)}sendInfo(t,e,n=null){AudioCodesUA.ac_log("AC: sendInfo()",t,e,n),this.js_session.sendInfo(e,t,null!==n?{extraHeaders:n}:void 0)}duration(){let t=this.js_session.start_time;if(!t)return 0;let e=this.js_session.end_time;return e=e||new Date,Math.floor((e.getTime()-t.getTime())/1e3)}hasSendVideo(){return this.data._video.send}hasReceiveVideo(){return this.data._video.receive}hasVideo(){return this.hasSendVideo()&&this.hasReceiveVideo()}getVideoState(){return this.hasSendVideo()&&this.hasReceiveVideo()?"sendrecv":this.hasSendVideo()?"sendonly":this.hasReceiveVideo()?"recvonly":"inactive"}_setVideoState(t,e){AudioCodesUA.ac_log(`AC: _setVideoState(send=${t}, receive=${e})`),this.data._video.send=t,this.data._video.receive=e}hasEnabledSendVideo(){return this.data._video.enabledSend}hasEnabledReceiveVideo(){return this.data._video.enabledReceive}getEnabledVideoState(){return this.hasEnabledSendVideo()&&this.hasEnabledReceiveVideo()?"sendrecv":this.hasEnabledSendVideo()?"sendonly":this.hasEnabledReceiveVideo()?"recvonly":"inactive"}_setEnabledSendVideo(t){AudioCodesUA.ac_log(`AC: _setEnabledSendVideo(${t})`),this.data._video.enabledSend=t}_setEnabledReceiveVideo(t){AudioCodesUA.ac_log(`AC: _setEnabledReceiveVideo(${t})`),this.data._video.enabledReceive=t}answer(t,n=null,i=null){if(this.data._answer_called)AudioCodesUA.ac_log("AC: answer() is already called. [Ignored]");else{if(!(this.data._answer_called=!0)===t?t=AudioCodesUA.instance.AUDIO:!0===t&&(t=AudioCodesUA.instance.VIDEO),"symbol"!=typeof t||![AudioCodesUA.instance.AUDIO,AudioCodesUA.instance.RECVONLY_VIDEO,AudioCodesUA.instance.VIDEO].includes(t))throw new TypeError("Illegal videoOption="+t.toString());var a,o,s;switch(AudioCodesUA.ac_log(`AC: ${t.description} answer`),this.hasVideo()||t!==AudioCodesUA.instance.RECVONLY_VIDEO&&t!==AudioCodesUA.instance.VIDEO||(AudioCodesUA.ac_log('AC: incoming INVITE without video, so answer can be only "audio"'),t=AudioCodesUA.instance.AUDIO),this.hasVideo()&&t===AudioCodesUA.instance.AUDIO&&(a=(s=AudioCodesUA.instance).browser,o=s.modes,s=s.browserVersion,"firefox"===a&&o.video_call_audio_answer_firefox_fix?this.data._video_call_audio_answer_firefox=!0:"safari"===a&&(!0===o.video_call_audio_answer_safari_fix&&s<14||"force"===o.video_call_audio_answer_safari_fix)&&(this.data._video_call_audio_answer_safari=!0)),t){case AudioCodesUA.instance.AUDIO:this._setEnabledSendVideo(!1),this.data._incoming_invite_without_sdp?this._setEnabledReceiveVideo(AudioCodesUA.instance.enableAddVideo):this._setEnabledReceiveVideo(!this.hasVideo()&&AudioCodesUA.instance.enableAddVideo),this._setVideoState(!1,!1);break;case AudioCodesUA.instance.VIDEO:this._setEnabledSendVideo(!0),this._setEnabledReceiveVideo(!0),this._setVideoState(!0,!0);break;case AudioCodesUA.instance.RECVONLY_VIDEO:this._setEnabledSendVideo(!1),this._setEnabledReceiveVideo(!0),this._setVideoState(!1,!0)}let e=AudioCodesUA.instance._callOptions(t===AudioCodesUA.instance.VIDEO,!1,n,i);Promise.resolve().then(()=>e.mediaStream||AudioCodesUA.instance.getWR().getUserMedia(e.mediaConstraints)).then(t=>{e.mediaStream=t,this.js_session._localMediaStreamLocallyGenerated=!0,AudioCodesUA.ac_log("AC: answer options:",e),this.js_session.answer(e)}).catch(t=>{AudioCodesUA.ac_log("AC: getUserMedia failure",t),this.reject(488)})}}reject(e=486,n=null){AudioCodesUA.ac_log("AC: reject()");try{let t={status_code:e};n&&(t.extraHeaders=n),this.js_session.terminate(t)}catch(e){AudioCodesUA.ac_log("AC: call reject error:",e)}}terminate(){AudioCodesUA.ac_log("AC: terminate()");try{this.js_session.terminate()}catch(t){AudioCodesUA.ac_log("AC: call terminate error:",t)}}redirect(e,n=302,i=null){AudioCodesUA.ac_log("AC: redirect() callTo="+e);try{let t={status_code:n,extraHeaders:["Contact: "+AudioCodesUA.instance.jssipUA.normalizeTarget(e)]};i&&t.extraHeaders.push(...i),this.js_session.terminate(t)}catch(e){AudioCodesUA.ac_log("AC: call redirect error:",e)}}isLocalHold(){return this.js_session.isOnHold().local}isRemoteHold(){return this.js_session.isOnHold().remote}isReadyToReOffer(){return this.js_session._isReadyToReOffer()}hold(n){return AudioCodesUA.ac_log(`AC: hold(${n})`),new Promise((t,e)=>{(n?this.js_session.hold:this.js_session.unhold).call(this.js_session,{},()=>{AudioCodesUA.ac_log("AC: hold()/unhold() is completed"),t()})||(AudioCodesUA.ac_log("AC: hold()/unhold() failed"),e())})}enableReceiveVideo(t){this._setEnabledReceiveVideo(t);var e=this.getRTCPeerConnection(),n=AudioCodesUA.instance.getWR().connection.getTransceiver(e,"video");return null!==n&&(e=this.getEnabledVideoState(),AudioCodesUA.instance.getWR().transceiver.setDirection(n,e)),AudioCodesUA.ac_log(`AC: enableReceiveVideo(${t}) `+(null!==n?"":"No video transceiver")),null!==n}startSendingVideo(t={}){let n=t&&!1!==t.enabledReceiveVideo;return this.hasEnabledSendVideo()?(AudioCodesUA.ac_log("AC: startSendingVideo(). Already started"),Promise.reject("video already started")):(AudioCodesUA.ac_log("AC: startSendingVideo()"),AudioCodesUA.instance.getWR().getUserMedia({video:AudioCodesUA.instance.constraints.video}).catch(t=>{throw AudioCodesUA.ac_log("AC: startSendingVideo() getUserMedia failure",t),t}).then(t=>{t=t.getVideoTracks()[0];this.getRTCLocalStream().addTrack(t),this._setEnabledSendVideo(!0),this._setEnabledReceiveVideo(n);let e=this.data._wasUsedSendVideo;return AudioCodesUA.instance.getWR().connection.addVideo(this.getRTCPeerConnection(),this.getRTCLocalStream(),t,this.hasEnabledReceiveVideo(),e).then(()=>{!e&&AudioCodesUA.instance.codecFilter&&AudioCodesUA.instance._cf_filter("video",this,AudioCodesUA.instance.codecFilter.video)}).catch(t=>{throw AudioCodesUA.ac_log("AC: startSendingVideo(). Adding video error",t),t})}).then(()=>this._renegotiate(t)))}stopSendingVideo(t={}){return this.hasEnabledSendVideo()?(AudioCodesUA.ac_log("AC: stopSendingVideo()"),AudioCodesUA.instance.getWR().connection.removeVideo(this.getRTCPeerConnection(),this.getRTCLocalStream()).catch(t=>{throw AudioCodesUA.ac_log("AC: stopSendingVideo(). Remove video error",t),t}).then(()=>(this._setEnabledSendVideo(!1),this.data._wasUsedSendVideo=!0,this._renegotiate(t)))):(AudioCodesUA.ac_log("AC: stopSendingVideo(). Already stopped"),Promise.reject("video already stopped"))}_doRenegotiate(e){return this.js_session.isEnded()?Promise.reject("call is ended"):new Promise(t=>{if(!this.js_session.renegotiate(e,()=>t(!0)))return t(!1)})}_renegotiate(e,n=30,i=500){return AudioCodesUA.ac_log("AC: _renegotiate() attemptsLeft="+n),this._doRenegotiate(e).then(t=>{if(t)return AudioCodesUA.ac_log("AC: Renegotiation success"),!0;if(n<=1)throw new Error("Too many attempts");return new Promise(t=>setTimeout(t,i)).then(()=>this._renegotiate(e,n-1,i))}).catch(t=>{throw AudioCodesUA.ac_log("AC: Renegotiation failed",t),t})}sendReInvite(n={}){return AudioCodesUA.ac_log("AC: sendReInvite()"),this._renegotiate(n).then(()=>{var t,e;n.showStreams&&(t=this.getRTCLocalStream(),e=this.getRTCRemoteStream(),AudioCodesUA.ac_log("AC>>: [after send re-INVITE] callShowStreams",this,t,e),AudioCodesUA.instance.listeners.callShowStreams(this,t,e))})}startScreenSharing(t,e={localScreenSharing:!0,enabledReceiveVideo:!0,separateVideo:!1}){if(AudioCodesUA.ac_log("AC: startScreenSharing"),!t)return Promise.reject("missed stream argument");if(this.data._screenSharing)return Promise.reject("the call is already using screen-sharing");let n=e&&!1!==e.enabledReceiveVideo,i=t.getVideoTracks()[0],a=void 0;e.localScreenSharing&&(a=this._onEndedScreenSharingTrack.bind(this),i.addEventListener("ended",a)),this.data._screenSharing={stream:t,onended:a,hadSendVideo:this.hasSendVideo()};let o=this.data._wasUsedSendVideo;return this._setEnabledSendVideo(!0),this._setEnabledReceiveVideo(n),AudioCodesUA.instance.getWR().connection.addVideo(this.getRTCPeerConnection(),this.getRTCLocalStream(),i,this.hasEnabledReceiveVideo(),o).then(()=>{!o&&AudioCodesUA.instance.codecFilter&&AudioCodesUA.instance._cf_filter("video",this,AudioCodesUA.instance.codecFilter.video)}).catch(t=>{throw AudioCodesUA.ac_log("AC: startScreenSharing() error",t),this.data._screenSharing=null,t}).then(()=>this._renegotiate({extraHeaders:["X-Screen-Sharing: on"]}))}stopScreenSharing(){return AudioCodesUA.ac_log("AC: stopScreenSharing"),this.data._screenSharing?this._onEndedScreenSharing("called stopScreenSharing()"):Promise.reject("the call does not use screen-sharing")}isScreenSharing(){return!!this.data._screenSharing}doesScreenSharingReplaceCamera(){var t=this.data._screenSharing;return t&&t.hadSendVideo}_onEndedScreenSharingTrack(){return this._onEndedScreenSharing("track ended")}_onEndedScreenSharing(t){let i=this.data._screenSharing;this.data._screenSharing=null;let e=i.stream,n=i.onended;return e&&n&&e.getVideoTracks()[0].removeEventListener("ended",n),Promise.resolve().then(()=>{if(!this.isTerminated()){var t=this.getRTCPeerConnection(),e=this.getRTCLocalStream(),n={extraHeaders:["X-Screen-Sharing: off"]};return i.hadSendVideo?(AudioCodesUA.ac_log("AC: screen sharing stopped - restore previously sending video track"),AudioCodesUA.instance.getWR().connection.replaceSenderTrack(t,"video",e),this._renegotiate(n)):(AudioCodesUA.ac_log("AC: screen sharing stopped - stop send video"),this.stopSendingVideo(n))}}).then(()=>{AudioCodesUA.instance.listeners.callScreenSharingEnded&&(AudioCodesUA.ac_log(`AC>>: callScreenSharingEnded "${t}"`,this,e),AudioCodesUA.instance.listeners.callScreenSharingEnded(this,e))})}setRemoteHoldState(){this.js_session._remoteHold=!0}sendRefer(t,e=null){if(!AudioCodesUA.instance.listeners.transferorNotification)throw new Error("transferorNotification listener is missed");let n=this,i={eventHandlers:{requestSucceeded(){AudioCodesUA.ac_log("AC>>: transferorNotification progress [REFER accepted]"),AudioCodesUA.instance.listeners.transferorNotification(n,0)},requestFailed(){AudioCodesUA.ac_log("AC>>: transferorNotification failed [REFER failed]"),AudioCodesUA.instance.listeners.transferorNotification(n,-1)},trying(){AudioCodesUA.ac_log("AC>>: transferorNotification progress [NOTIFY 1xx]"),AudioCodesUA.instance.listeners.transferorNotification(n,0)},progress(){AudioCodesUA.ac_log("AC>>: transferorNotification progress [NOTIFY 1xx]"),AudioCodesUA.instance.listeners.transferorNotification(n,0)},accepted(){AudioCodesUA.ac_log("AC>>: transferorNotification success [NOTIFY 2xx]"),AudioCodesUA.instance.listeners.transferorNotification(n,1)},failed(){AudioCodesUA.ac_log("AC>>: transferorNotification failed [NOTIFY >= 300]"),AudioCodesUA.instance.listeners.transferorNotification(n,-1)}}};null!==e&&(i.replaces=e.js_session),this.js_session.refer(t,i)}}class AudioCodesSDP{constructor(t){this.start=[],this.media=[];let e=t.split("\n").map(t=>t.trim()).filter(t=>0<t.length),n=this.start;for(var i of e)i.startsWith("m=")&&(n=[],this.media.push(n)),n.push(i)}getMedia(t){for(var e of this.media)if(0<e.length&&e[0].startsWith("m="+t))return e;return null}checkSendRecv(t){switch(t){case"a=sendrecv":return"sendrecv";case"a=sendonly":return"sendonly";case"a=recvonly":return"recvonly";case"a=inactive":return"inactive";default:return null}}getMediaDirectionValue(t){let e,n=this.getMedia(t);if(null===n)return null;let i="sendrecv";for(var a of this.start)if(null!==(e=this.checkSendRecv(a))){i=e;break}for(var o of n)if(null!==(e=this.checkSendRecv(o))){i=e;break}return i}getMediaDirection(t,e){var n=this.getMediaDirectionValue(t);switch(n){case"sendrecv":return[!0,!0,n];case"sendonly":return e?[!1,!0,n]:[!0,!1,n];case"recvonly":return e?[!0,!1,n]:[!1,!0,n];case null:case"inactive":return[!1,!1,n]}}toString(){let t=this.start;for(var e of this.media)t=t.concat(e);return t.join("\r\n")+"\r\n"}}let AudioCodesWebRTCWrapper={getUserMedia:t=>(AudioCodesUA.ac_log("[webrtc] getUserMedia constraints="+JSON.stringify(t)),navigator.mediaDevices.getUserMedia(t)),hasDisplayMedia:()=>navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia,getDisplayMedia:()=>(AudioCodesUA.ac_log("[webrtc] getDisplayMedia"),navigator.mediaDevices.getDisplayMedia({video:!0})),mediaDevices:{enumerateDevices:()=>navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices?navigator.mediaDevices.enumerateDevices():Promise.reject("WebRTC is not supported"),addDeviceChangeListener(t){navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",t)},removeDeviceChangeListener(t){navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",t)}},checkAvailableDevices(){if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return Promise.reject("WebRTC is not supported");let e=!1,n=!1,i=!1;return navigator.mediaDevices.enumerateDevices().then(t=>(t.forEach(function(t){switch(t.kind){case"videoinput":e=!0;break;case"audioinput":n=!0;break;case"audiooutput":i=!0}}),void 0===navigator.webkitGetUserMedia&&(i=!0),i?n?Promise.resolve(e):Promise.reject("Missing a microphone! Please connect one and reload"):Promise.reject("Missing a speaker! Please connect one and reload")))},transceiver:{setDirection(t,e){let n="";null!==t.sender.track?n=t.sender.track.kind:null!==t.receiver.track&&(n=t.receiver.track.kind),AudioCodesUA.ac_log(`[webrtc] set ${n} transceiver direction=`+e),t.direction=e}},stream:{getInfo(t){function e(t){return 0<t.length?t[0].enabled.toString():"-"}return null===t?Promise.resolve("stream is null"):Promise.resolve(`audio: ${e(t.getAudioTracks())} video: `+e(t.getVideoTracks()))}},connection:{getTransceiversInfo(t){function e(t){return null===t?"none":`d=${t.direction} c=`+t.currentDirection}var n=t.getTransceivers(),i=AudioCodesUA.instance.getWR().connection.getTransceiver(t,"audio"),t=AudioCodesUA.instance.getWR().connection.getTransceiver(t,"video");return Promise.resolve(`(${n.length}) audio ${e(i)} video `+e(t))},getTransceiver(t,e){for(var n of t.getTransceivers()){if(null!==n.sender&&null!==n.sender.track&&n.sender.track.kind===e)return n;if(null!==n.receiver&&null!==n.receiver.track&&n.receiver.track.kind===e)return n}return null},addEventListener:(t,e,n)=>(AudioCodesUA.ac_log("[webrtc] Connection addEventListener "+e),"track"!==e?Promise.reject("Wrong event name: "+e):(t.addEventListener(e,n),Promise.resolve())),getDTMFSender(t){t=t.getSenders().find(t=>t.track&&"audio"===t.track.kind);if(t&&t.dtmf)return t.dtmf},addVideo(t,e,n,i,a){AudioCodesUA.ac_log("[webrtc] Connection addVideo");let o=AudioCodesUA.instance.getWR().connection.getTransceiver(t,"video");return null!==o&&(i=i?"sendrecv":"sendonly",AudioCodesUA.instance.getWR().transceiver.setDirection(o,i)),null===o||null===o.sender.track&&!a?(AudioCodesUA.ac_log("[webrtc] addVideo (connection addTrack)"),t.addTrack(n,e),Promise.resolve(!0)):(AudioCodesUA.ac_log("[webrtc] addVideo (video transceiver sender replaceTrack)"),o.sender.replaceTrack(n).then(()=>!1))},removeVideo(t,e){AudioCodesUA.ac_log("[webrtc] Connection removeVideo");var n=AudioCodesUA.instance.getWR().connection.getTransceiver(t,"video");if(null===n)return Promise.reject("no video transceiver found");if(t.removeTrack(n.sender),e)for(var i of e.getVideoTracks())e.removeTrack(i),i.stop();return Promise.resolve()},replaceSenderTrack(t,e,n){AudioCodesUA.ac_log("[webrtc] ReplaceSenderTrack "+e);let i=null;for(var a of t.getSenders())if(null!==a.track&&a.track.kind===e){i=a;break}if(null===i)return Promise.reject(`No ${e} sender`);n="audio"===e?n.getAudioTracks():n.getVideoTracks();return 0===n.length?Promise.reject(`No ${e} track`):i.replaceTrack(n[0])},getStats(t,i){let a="";return t.getStats(null).then(t=>(t.forEach(e=>{if(i.includes(e.type)){a+=" {";let t=!0;for(var n of Object.keys(e))t?t=!1:a+=",",a+=n+"="+e[n];a+="} \r\n"}}),a))}}};"use strict";class AudioPlayer{constructor(t=!0){this.logger=console.log,this.audioCtx=null,this.sounds={},this.source=null,this.resolve=null,this.gain=null,this.streamDestination=null,this.dtmfTones={1:[{f:[697,1209],t:.2}],2:[{f:[697,1336],t:.2}],3:[{f:[697,1477],t:.2}],4:[{f:[770,1209],t:.2}],5:[{f:[770,1336],t:.2}],6:[{f:[770,1477],t:.2}],7:[{f:[852,1209],t:.2}],8:[{f:[852,1336],t:.2}],9:[{f:[852,1477],t:.2}],"*":[{f:[941,1209],t:.2}],0:[{f:[941,1336],t:.2}],"#":[{f:[941,1477],t:.2}]},this.browser=this._browser(),this.encodings={chrome:["mp3","aac","ogg"],firefox:["mp3","aac","ogg"],safari:["mp3","aac"],ios_safari:["mp3","aac"],other:["mp3","aac","ogg"]}[this.browser],t&&(this.createCtx(),this.isDisabled()&&console.log("AudioPlayer: AudioContext is suspended [Autoplay Policy]"))}_browser(){return/iPad|iPhone|iPod/.test(navigator.userAgent)?"ios_safari":navigator.mozGetUserMedia?"firefox":navigator.webkitGetUserMedia?"chrome":window.safari?"safari":"other"}createCtx(){try{this.audioCtx=new(window.AudioContext||window.webkitAudioContext)}catch(t){this.logger("AudioPlayer: cannot create audioContext",t)}}init(t,e=void 0){this.logger=t,this.logger(`AudioPlayer: init  (${this.browser})`),void 0!==e&&(this.audioCtx=e),"safari"!==this.browser&&"ios_safari"!==this.browser||this._setDecodeAudioDataShim(this.audioCtx)}_setDecodeAudioDataShim(i){let a=i.decodeAudioData;i.decodeAudioData=t=>new Promise((e,n)=>{a.call(i,t,t=>e(t),t=>n(t))})}_setStartRenderingShim(t){let n=t.startRendering;t.startRendering=()=>new Promise(e=>{t.oncomplete=t=>{e(t.renderedBuffer)},n.call(t)})}isDisabled(){switch(this.browser){case"chrome":case"safari":case"ios_safari":return this.isSuspended();default:return!1}}enable(){switch(this.browser){case"chrome":case"safari":case"ios_safari":return this.resume();default:return Promise.resolve()}}isSuspended(){return"suspended"===this.audioCtx.state}resume(){return this.audioCtx.resume()}suspend(){return this.audioCtx.suspend()}play(l){return this.audioCtx?this.isDisabled()&&l.dropDisabled?Promise.resolve("drop sound for disabled"):new Promise((i,a)=>{this.stop(),this.resolve=i;try{var o=this.sounds[l.name];if(!o)return this.logger("AudioPlayer: no sound: "+l.name),void a("No sound");this.logger("AudioPlayer: play:",l),this.source=this.audioCtx.createBufferSource(),this.source.buffer=o,this.source.onended=t=>{this.logger("AudioPlayer: onended "+l.name),i(!0)},this.source.onerror=t=>{this.logger("AudioPlayer: onerror callback",t),this._releaseResources(),a("onerror callback")},this.gain=this.audioCtx.createGain();var s=l.volume||1;this.gain.gain.setValueAtTime(s,this.audioCtx.currentTime),this.source.connect(this.gain),l.streamDestination?(this.streamDestination=l.streamDestination,this.gain.connect(this.streamDestination)):(this.streamDestination=null,this.gain.connect(this.audioCtx.destination));var r=l.clipStart||0;let t=l.clipEnd||null;!0!==l.loop&&!l.repeat||(this.source.loop=!0,this.source.loopStart=r,t&&(this.source.loopEnd=t));let e=null;l.duration?e=l.duration:l.repeat?(null===t&&(t=this.source.buffer.duration),e=(t-r)*l.repeat):null!==t&&(e=t-r);let n=0;l.startDelay&&(n=this.audioCtx.currentTime+l.startDelay,e&&(e+=l.startDelay)),this.source.start(n,r),e&&this.source.stop(this.audioCtx.currentTime+e)}catch(t){this.logger("AudioPlayer: play error",t),a(t)}}):Promise.reject("No audio context")}_releaseResources(){this.source&&this.logger("AudioPlayer: release resources");try{this.source&&this.source.stop()}catch(t){}try{this.gain&&this.gain.disconnect(),this.source&&this.source.disconnect(),this.streamDestination&&this.streamDestination.disconnect(),this.gain=null,this.source=null,this.streamDestination=null}catch(t){this.logger("AudioPlayer: release resources error",t)}}stop(){this._releaseResources(),this.resolve&&(this.resolve("stopped externally"),this.resolve=null)}async downloadSounds(t,e,n=this.encodings,i=!1){this.logger("AudioPlayer: downloadSounds",e);for(var a of e)await this.downloadSound(t,a,n,i)}async downloadSound(n,t,e=this.encodings,i=!1){let a=null,o,s;t instanceof Object?(o=Object.keys(t)[0],s=t[o]):o=s=t;for(var r of e){var l=s+"."+r;let e=null;var c=Date.now();try{let t=await fetch(n+l,{credentials:"same-origin"});e=await t.arrayBuffer()}catch(t){continue}r=Date.now();try{if(a=await this.audioCtx.decodeAudioData(e),!i)break;var u=Date.now();this.logger("AudioPlayer [test] "+l+" is downloaded (%s) and decoded (%s)",((r-c)/1e3).toFixed(3),((u-r)/1e3).toFixed(3))}catch(t){this.logger("AudioPlayer: decoding error: "+s,t);continue}}return null!==a?this.sounds[o]=a:this.logger("AudioPlayer: Cannot download & decode: "+s),a}generateTone(o,s){function r(t){return void 0===t?[]:Array.isArray(t)?t:[t]}try{let t=0,e=0;for(var l of s)t+=l.t,e=Math.max(e,r(l.f).length);var c,u=this.audioCtx.sampleRate,d=u*t;let n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,d,u);"safari"!==this.browser&&"ios_safari"!==this.browser||this._setStartRenderingShim(n);let i=new Array(e);for(let t=0;t<i.length;t++)i[t]=n.createOscillator(),i[t].connect(n.destination);let a=0;for(let t=0,e=s.length;t<e;t++){var f=s[t],p=r(f.f);for(let t=0;t<i.length;t++){var h=t<p.length?p[t]:0;i[t].frequency.setValueAtTime(h,n.currentTime+a)}a+=f.t}for(c of i)c.start(0),c.stop(n.currentTime+t);return n.startRendering().then(t=>{for(var e of i)e.disconnect();this.sounds[o]=t})}catch(t){return this.logger("AudioPlayer: cannot generate tone",t),Promise.reject(t)}}async generateTonesSuite(t){for(const e in t)await this.generateTone(e,t[e])}generateTones(t,e){return this.generateTonesSuite(Object.assign({ringingTone:t,busyTone:e},this.dtmfSuite))}}let c2c_serverConfig={domain:"",addresses:[],iceServers:[]},c2c_config={call:"Kore_WebRTC",caller:"Anonymous",callerDN:"Anonymous",type:"audio",videoSize:{width:"320px",height:"240px"},messageDisplayTime:5,restoreCallMaxDelay:20,keepAlivePing:15,keepAlivePong:15,keepAliveStats:60,keepAliveDist:!1},c2c_soundConfig={generateTones:{ringingTone:[{f:400,t:1.5},{t:3.5}],busyTone:[{f:400,t:.5},{t:.5}],disconnectTone:[{f:400,t:.5},{t:.5}]},play:{outgoingCallProgress:{name:"ringingTone",loop:!0,volume:.2},busy:{name:"busyTone",volume:.2,repeat:4},disconnect:{name:"disconnectTone",volume:.2,repeat:3}}},c2c_phone=new AudioCodesUA,c2c_audioPlayer=new AudioPlayer,c2c_activeCall=null,c2c_restoreCall=null,c2c_sbcDisconnectCounter=0;const c2c_sbcDisconnectCounterMax=5;let c2c_messageId=0;function c2c_init(){if(c2c_phone.setAcLogger(c2c_ac_log),c2c_phone.setJsSipLogger(c2c_js_log),c2c_ac_log("------ Date: %s -------",(new Date).toDateString()),c2c_ac_log("Browser: "+c2c_phone.getBrowserName()+" Internal name: "+c2c_phone.getBrowser()),c2c_ac_log("SIP: %s",JsSIP.C.USER_AGENT),c2c_ac_log("AudioCodes API: %s",c2c_phone.version()),!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return c2c_info("No WebRTC"),void c2c_disableWidget("WebRTC API is not supported in this browser !");"https:"!==location.protocol&&"file:"!==location.protocol&&c2c_ac_log('Warning: for the URL used "'+location.protocol+'" protocol'),window.addEventListener("beforeunload",c2c_onBeforeUnload),c2c_setButtonForCall(),c2c_audioPlayer.init(c2c_ac_log),c2c_audioPlayer.generateTonesSuite(c2c_soundConfig.generateTones).then(()=>{c2c_ac_log("audioPlayer: tones are generated")}).catch(t=>{c2c_ac_log("audioPlayer: error during tone generation",t)});var t=localStorage.getItem("c2c_restoreCall");null!==t&&(localStorage.removeItem("c2c_restoreCall"),c2c_restoreCall=JSON.parse(t),(t=Math.ceil(Math.abs(c2c_restoreCall.time-(new Date).getTime())/1e3))>c2c_config.c2c_restoreCallMaxDelay?(c2c_ac_log("No restore call, delay is too long ("+t+" seconds)"),c2c_restoreCall=null):(c2c_ac_log("Trying to restore call",c2c_restoreCall),c2c_call()))}function c2c_timestamp(){let t=new Date;var e=t.getHours(),n=t.getMinutes(),i=t.getSeconds();return(e<10?"0"+e:e)+":"+(n<10?"0"+n:n)+":"+(i<10?"0"+i:i)+"."+("00"+t.getMilliseconds()).slice(-3)+" "}function c2c_ac_log(){let t=[].slice.call(arguments);console.log.apply(console,[c2c_timestamp()+" c2c: %c"+t[0]].concat(["color: BlueViolet;"],t.slice(1)))}function c2c_js_log(){let t=[].slice.call(arguments);console.log.apply(console,[c2c_timestamp()+" jssip: "+t[0]].concat(t.slice(1)))}function c2c_searchServerAddress(n,i){i=i.toLowerCase();for(let e=0;e<n.length;e++){var a=n[e];let t=a instanceof Array?a[0]:a;if(t.toLowerCase()===i)return e}return-1}function c2c_initSIP(t){var e;null!==c2c_restoreCall&&(-1!==(e=c2c_searchServerAddress(c2c_serverConfig.addresses,c2c_restoreCall.address))?(c2c_ac_log('Page reloading, raise priority of previously connected server: "'+c2c_restoreCall.address+'"'),c2c_serverConfig.addresses[e]=[c2c_restoreCall.address,1e3]):c2c_ac_log("Cannot find previously connected server: "+c2c_restoreCall.address+" in configuration")),c2c_phone.setServerConfig(c2c_serverConfig.addresses,c2c_serverConfig.domain,c2c_serverConfig.iceServers),c2c_phone.setAccount(t.user,t.displayName,t.password),c2c_phone.setWebSocketKeepAlive(c2c_config.keepAlivePing,c2c_config.keepAlivePong,c2c_config.keepAliveStats,c2c_config.keepAliveDist),c2c_phone.setListeners({loginStateChanged:function(t,e){switch(e){case"connected":if(c2c_ac_log("phone>>> loginStateChanged: connected"),null!==c2c_activeCall){c2c_ac_log("phone: active call exists (SBC might have switched over to secondary)");break}null!==c2c_restoreCall?(c2c_ac_log("send INVITE with Replaces to restore call"),c2c_makeCall(c2c_restoreCall.callTo,"sendrecv"===c2c_restoreCall.video||"sendonly"===c2c_restoreCall.video?c2c_phone.VIDEO:c2c_phone.AUDIO,["Replaces: "+c2c_restoreCall.replaces])):c2c_makeCall(c2c_config.call,"video"===c2c_config.type?c2c_phone.VIDEO:c2c_phone.AUDIO);break;case"disconnected":c2c_ac_log("phone>>> loginStateChanged: disconnected"),c2c_phone.isInitialized()&&c2c_sbcDisconnectCounter++>=c2c_sbcDisconnectCounterMax&&(c2c_ac_log("phone: SBC connection failed !"),c2c_info("SBC connection is failed",!0),c2c_phone.deinit());break;case"login failed":c2c_ac_log("phone>>> loginStateChanged: login failed");break;case"login":c2c_ac_log("phone>>> loginStateChanged: login");break;case"logout":c2c_ac_log("phone>>> loginStateChanged: logout")}},outgoingCallProgress:function(t,e){c2c_ac_log("phone>>> outgoing call progress"),c2c_setButtonForHangup(!1),c2c_info("Ringing",!0),c2c_audioPlayer.play(c2c_soundConfig.play.outgoingCallProgress)},callTerminated:function(t,e,n,i){if(c2c_ac_log("phone>>> call terminated callback, cause=%o",n),c2c_activeCall=null,"Redirected"===n)return c2c_ac_log("Redirect call to %s",i),void c2c_makeCall(i,"video"===c2c_config.type?c2c_phone.VIDEO:c2c_phone.AUDIO);c2c_info(n,!0),c2c_audioPlayer.stop(),t.isOutgoing()&&!t.wasAccepted()?c2c_audioPlayer.play(c2c_soundConfig.play.busy):c2c_audioPlayer.play(c2c_soundConfig.play.disconnect),c2c_phone.deinit(),c2c_setButtonForStopCalling(),c2c_setButtonForCall(),c2c_setCallOpen(!1),document.getElementById("c2c_remote_video").style.display="none",c2c_restoreCall=null},callConfirmed:function(t,e,n){if(c2c_ac_log("phone>>> callConfirmed"),c2c_setButtonForStopCalling(),c2c_setButtonForHangup(),c2c_setCallOpen(!0),c2c_info("Call is established",!0),null!==c2c_restoreCall&&c2c_restoreCall.hold.includes("remote")&&(c2c_ac_log("Restore remote hold"),c2c_info("Hold"),c2c_activeCall.setRemoteHoldState()),c2c_activeCall.hasReceiveVideo()){let t=document.getElementById("c2c_remote_video");t.style.display="block",t.style.width=c2c_config.videoSize.width,t.style.height=c2c_config.videoSize.height}},callShowStreams:function(t,e,n){c2c_ac_log("phone>>> callShowStreams"),c2c_audioPlayer.stop();let i=document.getElementById("c2c_remote_video");i.srcObject=n},incomingCall:function(t,e){c2c_ac_log("phone>>> incomingCall"),t.reject()},callHoldStateChanged:function(t,e,n){c2c_ac_log("phone>>> callHoldStateChanged"),t.isRemoteHold()?c2c_info("Hold"):c2c_info("Unhold",!0)},callIncomingReinvite:function(t,e,n){if(!e){let t=document.getElementById("c2c_remote_video");c2c_activeCall.hasReceiveVideo()?(t.style.display="block",t.style.width=c2c_config.videoSize.width,t.style.height=c2c_config.videoSize.height):t.style.display="none"}}}),c2c_sbcDisconnectCounter=0,c2c_phone.setEnableAddVideo("video"===c2c_config.type),c2c_phone.init(!1)}function c2c_onBeforeUnload(){var t;c2c_ac_log("phone>>> beforeunload event"),null!==c2c_phone&&c2c_phone.isInitialized()&&null!==c2c_activeCall&&(c2c_activeCall.isEstablished()?(t={callTo:c2c_activeCall.data._user,video:c2c_activeCall.getVideoState(),replaces:c2c_activeCall.getReplacesHeader(),time:(new Date).getTime(),hold:(c2c_activeCall.isLocalHold()?"local":"")+(c2c_activeCall.isRemoteHold()?"remote":""),address:c2c_phone.getServerAddress()},localStorage.setItem("c2c_restoreCall",JSON.stringify(t))):c2c_activeCall.terminate())}function c2c_setButtonForCall(){let t=document.getElementById("c2c_button");t.onclick=c2c_call,t.className="c2c_button_call",t.querySelector("span").innerText="Call",t.querySelector("svg").setAttribute("class","c2c_icon_call")}function c2c_setButtonForHangup(t=!0){let e=document.getElementById("c2c_button");e.onclick=c2c_hangup,e.className="c2c_button_hangup",e.querySelector("span").innerText="Hangup",t&&e.querySelector("svg").setAttribute("class","c2c_icon_hangup")}function c2c_setButtonForCalling(){let t=document.getElementById("c2c_button");t.onclick=()=>{c2c_ac_log("ignored [call already pressed]")},t.querySelector("svg").setAttribute("class","c2c_icon_calling")}function c2c_setButtonForStopCalling(){document.querySelector("#c2c_button svg").setAttribute("class","c2c_icon_hangup")}function c2c_setCallOpen(t){document.getElementById("c2c_div").className=t?"c2c_div_call_established":""}function c2c_disableWidget(t){c2c_ac_log(t),document.getElementById("c2c_button").disabled=!0,document.getElementById("c2c_div").className="c2c_div_disabled",document.querySelector("#c2c_button svg").setAttribute("class","c2c_icon_disabled")}function c2c_info(t,e=!1){let n=document.getElementById("c2c_span_message");var i;n.innerText=t,n.dataset.id=++c2c_messageId,e&&(i=n.dataset.id,setTimeout(()=>{n.dataset.id===i&&(n.innerText="")},1e3*c2c_config.messageDisplayTime))}function c2c_call(){c2c_info("Connecting",!0),c2c_audioPlayer.stop(),c2c_setButtonForCalling(),c2c_enableSound().then(()=>c2c_phone.checkAvailableDevices()).then(()=>{c2c_initSIP({user:c2c_config.caller,displayName:c2c_config.callerDN,password:""})}).catch(t=>{c2c_ac_log("Check available devices error:",t),c2c_info(t,!0),c2c_setButtonForCall()})}function c2c_makeCall(t,e,n=null){if(null!==c2c_activeCall)throw"Already exists active call";c2c_info("Calling",!0),c2c_activeCall=c2c_phone.call(e,t,n)}function c2c_hangup(){c2c_enableSound(),null!==c2c_activeCall&&(c2c_activeCall.terminate(),c2c_activeCall=null)}function c2c_enableSound(){return c2c_audioPlayer.isDisabled()?(c2c_ac_log("Let enable sound..."),c2c_audioPlayer.enable().then(()=>{c2c_ac_log("Sound is enabled")}).catch(t=>{c2c_ac_log("Cannot enable sound",t)})):Promise.resolve()}function AgentDesktop(a,t){this.authResponse=null,console.log("agentdesktop uuId",a),userIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAAC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uiV67Xfpb+7+11/n7zfu997v0eoUKGYrlFTw6Ak6gJIJ2kFlR3kZyRl0hJkKssUljUvafuFEUmYlfw/uXUMPeu/CYEbytRRgSRhmXYQNa69euLGvyxQ6OlFHQ0UU6YGbzJhYaoc2J5AWkwPNjcfmpBSjqGKIqJHqVRmyhxOJEs+L3UzFNc1SY2zJHEO/sgEsr2l5heVggEa38F7ig4EJYovOE01grHDcRZyMfcA4jlTIxhbPCXyMQv3HCP/WcdQF0mVutcJtgojJDCBuoliBQzkR6eGqSohLc+QA1LVdBT1Vm4VgODPnMi3eoOTLSewODSLULC9nKve+bzvlCDZMAifxDAzfdN48/UDjOTn8i+kRVhYAj3wQQ7M0voKxhemXb3DOwgBizRUWQeByUsXAlJDFeUBRi28CApnc7WfjjS24MLxs+XcPMGwpFRAbhw7j562A4Xb+uEXjKPAsaH2MTVWh/dz+rb53V5jxs+PYCPzGys/DV9gVMqSgdYrHXeUXTZti+sfbah7Xbfs6yV1XQzDoLfnH8KL1ObNCLQOdXTDZWFkKA58Pw+1qkbOgbn+9gEyVhZeJEELnDJNoQ24fYnTtbq5Zqcv3H4ZP1K/bJiN7Ca8Skj5WKXszJpiq2jfzFWXoZoCh3D3/WRVYGxRw4i9HwrF+3mXqKOOUvNn+dPVuW7ns59BnaW6myj/FnaM8UtfUOWq7V5kGpG5NraKCqM1jLpJTjnWXyDe06o+PYoaSy0XUSNS6GZ3LR2p9M6kclhGzURmOp2dLL6zC4jbW6JAmB1RAxgVvvfflvq/xdWIvLQd/YTiExGOkYu1WyVXe3bc2sp0+zGneM6kU9mSMKzyxzFxbk9owntJ4BG3hp2GcE8vuBSDqeI1qipqhR2KTKgwM8VfUlWACmADGsntQZXsHsuCJkDq0AD5Iz0kla0mqaVKCK0c5EjvD7WHTOQEQMMGAAAAAElFTkSuQmCC",t&&(this.authResponse=t,autoStartCobrowse());var l=this;this.phone=new AudioCodesUA,this.activeCall=null,this.callDetails=null,this.callAccepted=!1,this.callMuted=!1,this.showPhonePanel=!1,this.showVideo=!1,this.screenSharingStream=null,this.agentProfileIcon=null,this.phoneConfig={reconnectIntervalMin:2,reconnectIntervalMax:30,registerExpires:600,useSessionTimer:!1,keepAlivePing:10,keepAlivePong:10,keepAliveStats:60,keepAliveDist:!1,restoreCall:!0,restoreServer:!0,restoreCallMaxDelay:20,dtmfUseWebRTC:!0,dtmfDuration:null,dtmfInterToneGap:null,avoidTwoWayHold:!0,enableAddVideo:!0,addLoggerTimestamp:!0,useWebrtcTracer:!1,audioAutoAnswerNoSdp:!0,switchSbcAtInvite5xx:!0,modes:{ice_timeout_fix:2e3,chrome_rtp_timeout_fix:13,sbc_ha_pairs_mode:void 0,ringing_header_mode:"Allow-Events: talk,hold,conference"},constraints:{chrome:{audio:{echoCancellation:!0}},firefox:{audio:{echoCancellation:!0}},safari:{audio:{echoCancellation:!0}},ios_safari:{audio:{echoCancellation:!0}}},version:"18-Nov-2020"},this.callTerminated=function(){koreJquery("#callcontainer").empty(),this.removeAudoVideoContainer(),this.disableMinimizeButton(!1)},this.sendCallTerminateEvent=function(){l.callDetails.type="call_agent_webrtc_terminated";var t={event:"event"};t.message={body:l.callDetails,type:""},o.sendMessage(t,function(t){})},this.showFooterButtons=function(e,t){var n=null;e&&(n=`<div class="footer-btn-a-v-attch">
                <div id="closecall" class="btn_actions enable-audio">
                    <img title="End Call" src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDIwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBkPSJNMTguMjYzOSA3LjU0OTg5QzE4Ljk3NyA3LjU0OTg5IDE5LjU1NTEgNi45NzE3NyAxOS41NTUxIDYuMjU4NjJMMTkuNTU1MSA0LjY2NTQ4QzE5LjU1NTEgMy4wODM3IDE4LjQ5NTkgMS42ODA4NiAxNi45NjQyIDEuMjgwMDVDMTUuMjUzNiAwL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DI2QzE0LjA0MDQgMy45NTMzMiAxMy42MTQ1IDMuODQ5NTQgMTMuMTEzNSAzLjc0OTM0QzEyLjExODcgMy41NTYwOSAxMC44MzM5IDMuNDAyMjEgOS42Mjc4OSAzLjM5ODYzQzguNDIxODggMy40MDIyMSA3LjI0ODA3IDMuNTU5NjcgNi4zNTM0IDMuNzYwMDhDNS45MDYwNyAzLjg1NjcgNS41MzM4OSAzLjk2NDA2IDUuMjQwNDMgNC4wNzg1OEM1LjA5MDEzIDQuMTM1ODQgNC45NjEzIDQuMTkzMDkgNC44Mjg4OSA0LjI4MjU2QzQuNzY0NDcgNC4zMjU1IDQuNjk2NDggNC4zNzkxOSA0LjYyMTMyIDQuNDY4NjVDNC41NDI1OSA0LjU1NDU0IDQuNDQyMzkgNC43MTIgNC40NDIzOSA0Ljk0MTA0TDQuNDQyMzkgNi4yNTA4M0wxLjQ1NDE5IDYuMjU0NDFWNC42NTgzMkMxLjQ1NDE5IDMuNjYzNDUgMi4xMTYyNSAyLjc4NjY3IDMuMDc4OTEgMi41MzI1OUM0Ljc5MzEgMi4wODUyNSA1LjM3Mjg1IDEuODQxOSA5LjYyNzkgMS44MzgzMkMxMy44ODI5IDEuODQxOSAxNC45NDU4IDIuMDg4ODMgMTYuNjM0OSAyLjUzMjU5QzE3LjU5NzYgMi43ODY2NyAxOC4yNTk3IDMuNjYzNDUgMTguMjU5NyA0LjY1ODMyTDE4LjI1OTcgNi4yNTQ0MVoiIGZpbGw9IndoaXRlIi8+DQo8L3N2Zz4NCg==" />						
                </div>		
                <div id="muteaudio" class="btn_actions mute-audio">
                    <img title="Mute Audio" class="mute-img" src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxNCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik03LjAwMDA2IDAuODMyMDMxQzQuO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MyODggMTEuMDU2NSAxNC4yOTI1IDExLjExNjcgMTQuMjUyOEMxMS4yMzIgMTQuMTc2NCAxMS4zNDM2IDE0LjA5NTMgMTEuNDUxNSAxNC4wMDkzQzExLjQ2NzQgMTMuOTk2OCAxMS40ODQ1IDEzLjk4NTcgMTEuNTAwMiAxMy45NzNDMTEuNjE1OCAxMy44Nzg0IDExLjcyNSAxMy43NzY0IDExLjgzMTEgMTMuNjcxNUwxMC45ODkyIDEyLjgyOTVDMTAuMzQ2IDEzLjQ2MDcgOS40NzAzOSAxMy44NTU1IDguNTAwNTIgMTMuODU1NUM2LjUzNzE4IDEzLjg1NTUgNC45MzgwMiAxMi4yNTYzIDQuOTM4MDIgMTAuMjkzVjYuNzc4NEwwLjc1NzggMi41OTgxOUMwLjY3MjE0MiAyLjUxNDc2IDAuNjEzNjYzIDIuNDA3NDIgMC41OTAwMTggMi4yOTAyMUMwLjU2NjM3NCAyLjE3MyAwLjU3ODY2MyAyLjA1MTM5IDAuNjI1Mjc5IDEuOTQxMjhDMC42NzE4OTYgMS44MzExNyAwLjc1MDY2OCAxLjczNzcgMC44NTEyODUgMS42NzMxQzAuOTUxOTAxIDEuNjA4NSAxLjA2OTY4IDEuNTc1NzggMS4xODkyIDEuNTc5MjJaTTYuMTI1NTIgNy45NjU5VjEwLjI5M0M2LjEyNTUyIDExLjYwMzIgNy4xOTAzMSAxMi42NjggOC41MDA1MiAxMi42NjhDOS4xNDQ1MiAxMi42NjggOS43Mjc4OCAxMi40MTIgMTAuMTU1IDExLjk5NTRMNi4xMjU1MiA3Ljk2NTlaIiBmaWxsPSJ3aGl0ZSIvPg0KPC9zdmc+DQo=" />						                        
                </div>`,t&&(n+=`
                <div id="videobuttons" class="btn_actions enable-video active-">
                    <img class="video-unmute" src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxOCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6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NjJDMS41ODMwMSAxMS43NDgzIDEuMzQzNzUgMTEuNDc0OSAxLjM0Mzc1IDExLjEyMzNWNC44NzMzNEMxLjM0Mzc1IDQuNTIxNzggMS41ODMwMSA0LjI0ODM0IDEuODkwNjIgNC4yNDgzNFpNMTYuNjU2MiA1LjAxMDA2VjEwLjk4NjZMMTMuMzc1IDguODk2NzhWNy4xMzQwOUwxNi42NTYyIDUuMDEwMDZaIiBmaWxsPSJ3aGl0ZSIvPg0KPC9zdmc+DQo=" />
                </div>`),n+="</div>");var i=koreJquery("#callbuttons");i.empty(),i.append(n);var a=koreJquery("#muteaudio");a.off("click").on("click",function(t){var e=l.activeCall.isAudioMuted();l.activeCall.muteAudio(!e),e?a.removeClass("active-"):a.addClass("active-")}),koreJquery("#closecall").off("click").on("click",function(t){e&&(l.activeCall.terminate(),l.sendCallTerminateEvent())});var o,s=!0;t&&(o=koreJquery("#videobuttons")).off("click").on("click",function(t){if(l.activeCall){s=!s;let t=document.getElementById("local_video_tmp").srcObject;t.getVideoTracks().forEach(t=>t.enabled=s),s?(koreJquery("#local_video_tmp").show(),o.addClass("active-"),koreJquery("#agentyou").hide()):(o.removeClass("active-"),koreJquery("#local_video_tmp").hide(),koreJquery("#agentyou").show())}else console.log("there is no active call, hence cannot toggle send video")})},this.fullScreen=!1,this.callConnected=function(t,e){var s=`<div do-not-mutate="true" class="video-audio-chat-container">
            <div class="video-chat-">
                <div class="video-name-title">${e}</div>
                <div id ='audiovideocallcontainer'></div>
            </div>
            <div id="callbuttons"></div>
        </div>`,t=t?"video":"audio",r=`<div id="video_view" class="video-view- audio-view-">
            <div class="agent-profile-img">
                <img style='height: 30px; width:30px; top:0px;left:0px;position: absolute; border-radius: 50%;'
                    src="${l.agentProfileIcon}"> 
            </div>
            <div class="title">Connected ${t} Call...</div>
            <div class="audio-info">Disconnecting ${t} call doesn't end conversation</div>
        </div>`,t=document.getElementById("callcontainer");t&&(t.remove(),t=null),t||((t=document.createElement("div")).id="callcontainer",document.getElementById("agentcontainer").appendChild(t)),setTimeout(()=>{var n=koreJquery("#callcontainer");n.empty(),n.append(s);var i=koreJquery("#audiovideocallcontainer");if(i.empty(),l.callDetails.videoCall){i.append(`<div id="video_view" class="video-view-">
            <video id="remote_video_tmp" autoplay="autoplay" playsinline style="display: block;"></video>
            <div class="action-minimize-audio-control">
                <div id="maximizevideo" class="maximize-video">
                    <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC44NTQ4IDEwLjQwMTRDMTUuMTkxNCAxMC40MDE0IDE1LjQ2NzcgMTAuNjU5MSAxNS40OTc0IDEwLjk4NzlMMTUuNSAxMS4wNDY2VjEzLjMzMTVDMTUuNSAxNC40OTk5IDE0LjU3NTkgMTUuNDUyNSAxMy40MTg4IDE1LjQ5ODNMMTMuMzMxNSAxNS41SDExLjA0NjZDMTAuNjkwMyAxNS41IDEwLjQwMTQgMTUuMjExMiAxMC40MDE0IDE0Ljg1NDhDMTAuNDAxNCAxNC41MTgzIDEwLjY1OTEgMTQuMjQyIDEwLjk4NzkgMTQuMjEyM0wxMS4wNDY2IDE0LjIwOTdIMTMuMzMxNUMxMy43OTU0IDE0LjIwOTcgMTQuMTc1MyAxMy44NSAxNC4yMDc1IDEzLjM5NDNMMTQuMjA5NyAxMy4zMzE1VjExLjA0NjZDMTQuMjA5NyAxMC42OTAzIDE0LjQ5ODUgMTAuNDAxNCAxNC44NTQ4IDEwLjQwMTRaTTEuMTQ1MTYgMTAuNDAxNEMxLjQ4MTY4IDEwLjQwMTQgMS43NTgwMiAxMC42NTkxIDEuNzg3NjkgMTAuOTg3OUwxLjc5MDMyIDExLjA0NjZWMTMu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yIDE1LjIxMTIgNS41OTg1NyAxNC44NTQ4IDUuNTk4NTdDMTQuNTE4MyA1LjU5ODU3IDE0LjI0MiA1LjM0MDkyIDE0LjIxMjMgNS4wMTIxM0wxNC4yMDk3IDQuOTUzNDFWMi42Njg0NkMxNC4yMDk3IDIuMjA0NTYgMTMuODUgMS44MjQ2OCAxMy4zOTQzIDEuNzkyNTNMMTMuMzMxNSAxLjc5MDMySDExLjA0NjZDMTAuNjkwMyAxLjc5MDMyIDEwLjQwMTQgMS41MDE0NyAxMC40MDE0IDEuMTQ1MTZDMTAuNDAxNCAwLjgwODY0NCAxMC42NTkxIDAuNTMyMzAzIDEwLjk4NzkgMC41MDI2MzdMMTEuMDQ2NiAwLjVIMTMuMzMxNVoiIGZpbGw9IiMyMDIxMjQiLz4KPC9zdmc+Cg==" />
                </div>
            </div>
            <div id="showselfvideocontainer" class="show-self-video-container">
                <div class="show-self-video">
                    <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDAuMzk4NDM4QzYuNTcxODggMC4zOTg0MzggMy42OTY4OCAyLjgxMDk0IDIuOTc1IDYuMDIzNDRDMy4wNDg0NCA2LjAxNTYyIDMuMTI1IDUuOTk4NDQgMy4yIDUuOTk4NDRDMy40MDQ2OSA1Ljk5ODQ0IDMuNjAxNTYgNi4wNDA2MyAzLjc4NzUgNi4wOTg0NEM0LjQ2NTYzIDMuMjkzNzUgNi45ODkwNiAxLjE5ODQ0IDEwIDEuMTk4NDRDMTMuMDA5NCAxLjE5ODQ0IDE1LjUzNDQgMy4yOTM3NSAxNi4yMTI1IDYuMDk4NDRDMTYuMzk4NCA2LjA0MDYzIDE2LjU5MzggNS45OTg0NCAxNi44IDUuOTk4NDRDMTYuODc1IDUuOTk4NDQ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NyAxMy4xNjI1IDE4LjM5ODRIMTMuNkMxNS4zOTY5IDE4LjM5ODQgMTYuNjQwNiAxNy40OTUzIDE3LjA1IDE1Ljk3MzRDMTYuOTY1NiAxNS45ODQ0IDE2Ljg4NTkgMTUuOTk4NCAxNi44IDE1Ljk5ODRDMTYuNjAzMSAxNS45OTg0IDE2LjQxNzIgMTUuOTY0MSAxNi4yMzc1IDE1LjkxMDlaTTkuMiAxNi43OTg0QzguNTM5MDYgMTYuNzk4NCA4IDE3LjMzNzUgOCAxNy45OTg0QzggMTguNjU5NCA4LjUzOTA2IDE5LjE5ODQgOS4yIDE5LjE5ODRIMTEuMkMxMS44NjA5IDE5LjE5ODQgMTIuNCAxOC42NTk0IDEyLjQgMTcuOTk4NEMxMi40IDE3LjMzNzUgMTEuODYwOSAxNi43OTg0IDExLjIgMTYuNzk4NEg5LjJaIiBmaWxsPSIjMjAyMTI0Ii8+Cjwvc3ZnPgo=" />
                </div>
            </div>
            <div id="selfvideocontainer" class="self-video-container">
            <div class="self-video">
                <div id="agentyou" class="video-user-alphabet">YOU</div>
                <video id="local_video_tmp" autoplay="autoplay" playsinline style="display: block;"></video>
            </div>
            <div id="closeselfvideo" class="close-video">
                <img width: 10px; style='height: 10px;top:-5px;left:-9px;position: absolute;' 
                     src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACuSURBVHgBnZLBDcMgDEWdsoBLF6AVvXeEbla6Ta7doJmgC/SQY08pGxAHJZGVGIiChLCNH/4yBqBlzPUGG9eUq6JRhQ9qDf7fNVnoYh901Iinl/K++yHqigIuB0cogKP9bNtvzSRYZ842jK+uoHhHObIUAU5Bijsk+81l41HfmTy5mlg5I+8AcjSIdkpqrMa6R24DhW7P0FJerttJqAgX/0mCh5ErQSt4mu09Q94DEcdaRcYvY1cAAAAASUVORK5CYII=" />
            </div>
            </div>
        </div>
       `),koreJquery("#agentyou").hide();var a=document.getElementById("local_video");a.srcObject=a.srcObject,a.volume=0;n=document.getElementById("local_video_tmp");n&&(n.srcObject=a.srcObject,n.volume=0);let t=document.getElementById("remote_video");t.volume=.5;let e=document.getElementById("remote_video_tmp");t&&e&&(e.srcObject=t.srcObject,e.volume=.5),koreJquery("#selfvideocontainer").draggable({containment:".video-audio-chat-container"}),koreJquery("#selfvideocontainer").css({top:"65px",right:"15px",left:""}),i.css({position:"absolute",width:"90%",height:"74%",top:"24%","background-color":"black"});var o=koreJquery("#showselfvideocontainer").hide();koreJquery("#closeselfvideo").off("click").on("click",function(t){koreJquery("#selfvideocontainer").hide(),o.show()}),o.off("click").on("click",function(t){koreJquery("#selfvideocontainer").show(),o.hide()}),koreJquery("#maximizevideo").off("click").on("click",function(t){var e=document.getElementById("audiovideocallcontainer");l.fullScreen?(l.fullScreen=!1,document.exitFullscreen(),koreJquery("#selfvideocontainer").draggable({containment:".video-audio-chat-container"}),koreJquery("#selfvideocontainer").css({top:"65px",right:"15px",left:""})):(koreJquery("#selfvideocontainer").css({top:"174px",right:"15px",left:""}),koreJquery("#selfvideocontainer").draggable({containment:"document"}),l.fullScreen=!0,e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen())})}else i.append(r);l.disableMinimizeButton(!0),l.showFooterButtons(!0,l.callDetails.videoCall)},1e3)},this.disableMinimizeButton=function(t){var e=document.getElementsByClassName("minimize-btn");e&&0<e.length&&(e[0].disabled=t)},this.callConnecting=function(t,e){t=t?"Video":"Audio",e=`<div class="video-audio-chat-container">
            <div class="video-chat-">
                <div class="video-name-title">${e}</div>
                <div id="video_view" class="video-view- audio-view-">
                    <div class="agent-profile-img">
                        <img style='height: 30px; width:30px; top:0px;left:0px;position: absolute; border-radius: 50%;'
                            src="${l.agentProfileIcon}"> 
                    </div>
                    <div class="title">Connecting ${t} Call...</div>
                    <div class="audio-info">Disconnecting ${t} call doesn't end conversation</div>
                </div>										
            </div>
            <div id="callbuttons"></div>
        </div>`,t=koreJquery("#callcontainer");t.empty(),t.append(e),t.draggable({handle:koreJquery("#callcontainer").find(".video-name-title"),containment:"document"}).resizable({handles:"n, e, w, s",containment:"document",minWidth:300,minHeight:375}),l.showFooterButtons(!1,l.callDetails.videoCall)},this.showScreenShareMessage=function(t,e){var n=`
        <div class="initial-video-audio-container">
            <div class="ad-img-block">
                <img src="${l.agentProfileIcon}" />
            </div>
            <div class="content-desc">
                <div class="name">${e}</div>
                <div class="type-text">is requesting for a screenshare</div>
            </div>
            <div class="controls-v-a">
                <img id="rejectcall" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMCSURBVHgBxZjPaxNBFMffzG43oFCSo1gwMW3BUxPwR/HSBKwUT/XeYIX2asV/IO1/YC+CtFBLejdHaYXGW7ViVy8e2pL14k0SCoLdpDu+t/lhkmbNTDY/vpDsJHmb/fDezLz3hoGi8tOJsFPW50FjUyBYAgQEgeGLJKCIYwtHFjjOB7tczt4yc5bK/zNZw5M7s4sc4IlgCKEmUwixPn6490bGuCPQ8e0HCc75Fg7D4E8Wgq11AvMEOoolgsERI+0weA69lGAvz0rna3EzVwRZoO+xRNgwjLc4jEF/ZNm2nWw3v5gHzD74D1FXUE1AFKZRwzgaAExN5hlCNYaPN/5Kc2aAMKTY6Egg3fhF3UO0rBljWzAEOY6TnPj8PkfjuocQJg1DUnVbqYzpjbwDgw1Vq8JVhgoQemdF9k5jMiprqmRLWcC90jIHyf0mMHkTxjKvILSc6mgbWl5wbWWhKCX9vP/ohvZibHwRXTQnc9PFr0L1YSlyK/z58s0TJrSUgsLGDvzey4GsbCF+6KDxGczS0ips7vyDos8bGU+YwmYGVIRhm9IRJgyK8oLyA+NKiEQFSLoI8YaiYsgXTEVBvV5cdaHLnvIF4wJx8CvmMe5SerXs7MpLjXPGDZnHRFdQkUJGmVYZyGsC+4ISYGnPrkfjTLEQ84Kp7Uud9ilPHgYftZVrkbDsxvg/mF5A4W79mnNdz8reQKlDZmnT6qOQhZYWlPKZzljWXRcn92b3mZBrbwITUTg/PpUxVbLF+WNGD3fjlWXvwDZISvoBirYCxDpd6zvH6d2HeRheTWRFP+1GaFDfGLGMfApDEjWQtXEdiGpaanlhwGpts5tSh1YqrWIMTRicLO1qabXxiyagCPZHjPPHZAgDgMHiPhnJNbfUl5Jr5OCda9hnKNOFwWe1/tA227tQth3vx5yi/+RX7LYwpI4FQ7WB7EVHa9FKrjWEXlI6sKq2S0qJGD2Sw8t2zw6sWpWfnsMjvfI8tpszQF6rlMCNR3r4QogL8ZXr5WzkQO1I7y91mFsdhEgKrAAAAABJRU5ErkJggg=="  />
                <img id="acceptcall" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMfSURBVHgBxZg/TBNRHMe/v1cQCTGpCerg4AHGlEXEwZWDiDLS4GBjohJjIokJRF2IA7Az2NGpEmM6GRwN/isxDsACLt6kNyhBoqYJktIW7vl+154tWuiV67Xfpb+7+11/n7zfu997v0eoUKGYrlFTw6Ak6gJIJ2kFlR3kZyRl0hJkKssUljUvafuFEUmYlfw/uXUMPeu/CYEbytRRgSRhmXYQNa69euLGvyxQ6OlFHQ0UU6YGbzJhYaoc2J5AWkwPNjcfmpBSjqGKIqJHqVRmyhxOJEs+L3UzFNc1SY2zJHEO/sgEsr2l5heVggEa38F7ig4EJYovOE01grHDcRZyMfcA4jlTIxhbPCXyMQv3HCP/WcdQF0mVutcJtgojJDCBuoliBQzkR6eGqSohLc+QA1LVdBT1Vm4VgODPnMi3eoOTLSewODSLULC9nKve+bzvlCDZMAifxDAzfdN48/UDjOTn8i+kRVhYAj3wQQ7M0voKxhemXb3DOwgBizRUWQeByUsXAlJDFeUBRi28CApnc7WfjjS24MLxs+XcPMGwpFRAbhw7j562A4Xb+uEXjKPAsaH2MTVWh/dz+rb53V5jxs+PYCPzGys/DV9gVMqSgdYrHXeUXTZti+sfbah7Xbfs6yV1XQzDoLfnH8KL1ObNCLQOdXTDZWFkKA58Pw+1qkbOgbn+9gEyVhZeJEELnDJNoQ24fYnTtbq5Zqcv3H4ZP1K/bJiN7Ca8Skj5WKXszJpiq2jfzFWXoZoCh3D3/WRVYGxRw4i9HwrF+3mXqKOOUvNn+dPVuW7ns59BnaW6myj/FnaM8UtfUOWq7V5kGpG5NraKCqM1jLpJTjnWXyDe06o+PYoaSy0XUSNS6GZ3LR2p9M6kclhGzURmOp2dLL6zC4jbW6JAmB1RAxgVvvfflvq/xdWIvLQd/YTiExGOkYu1WyVXe3bc2sp0+zGneM6kU9mSMKzyxzFxbk9owntJ4BG3hp2GcE8vuBSDqeI1qipqhR2KTKgwM8VfUlWACmADGsntQZXsHsuCJkDq0AD5Iz0kla0mqaVKCK0c5EjvD7WHTOQEQMMGAAAAAElFTkSuQmCC" />
            </div>
        </div>`,i=koreJquery("#toast");i.empty(),i.append(n);e=koreJquery("#rejectcall"),n=koreJquery("#acceptcall");e.off("click").on("click",function(t){l.activeCall&&l.activeCall.isScreenSharing()&&(l.sendControlMessage("screenshare_end"),l.callDetails.videoCall||l.sendVideo(!1),l.activeCall.stopScreenSharing()),i.empty()}),n.off("click").on("click",function(t){l.activeCall&&l.screenShare(l.callDetails),i.empty()})},this.showIncomingCallMessage=function(t,e){var n=t?"video":"audio",t=document.getElementById("toast");t&&(t.remove(),t=null),t||((t=document.createElement("div")).id="toast",document.body.appendChild(t));var a=`
        <div class="initial-video-audio-container">
            <div class="ad-img-block">
                <img src="${l.agentProfileIcon}" />
            </div>
            <div class="content-desc">
                <div class="name">${e}</div>
                <div class="type-text">is trying to ${n} call you</div>
            </div>
            <div class="controls-v-a">
                <img id="rejectcall" src="${rejectIcon}"/>
                <img id="acceptcall" src= "${acceptIcon}"/>
            </div>
        </div>`;setTimeout(()=>{var i=koreJquery("#toast");i.empty(),i.append(a);var t=koreJquery("#rejectcall"),e=koreJquery("#acceptcall");t.off("click").on("click",function(t){l.callDetails.type="call_agent_webrtc_rejected";var e={event:"event"};e.message={body:l.callDetails,type:""},o.sendMessage(e,function(t){}),l.activeCall&&l.activeCall.terminate(),l.callAccepted=!1,i.empty()}),e.off("click").on("click",function(t){l.callDetails.type="call_agent_webrtc_accepted";var e={event:"event"};e.message={body:l.callDetails,type:""},o.sendMessage(e,function(t){}),l.addAudioVideoContainer(),l.callConnecting(l.callDetails.videoCall,l.callDetails.firstName),l.callAgent(),i.empty();var n=setTimeout(()=>{null!==l.activeCall&&l.activeCall.isEstablished()||l.callTerminated(),clearTimeout(n)},15e3)})},100)},this.showCobrowseRequest=function(e){var i=document.getElementById("toast");i&&(i.remove(),i=null),i||((i=document.createElement("div")).id="toast",document.body.appendChild(i));var t=document.getElementById("cobrowse-toolbar");t&&t.remove();var n=e&&e.firstName,t=`
        <div class="initial-video-audio-container">
            <div class="ad-img-block">
                <img src="${l.agentProfileIcon}" />
            </div>
            <div class="content-desc">
                <div class="name">${n}</div>
                <div class="type-text">is requesting a CoBrowse session with you</div>
            </div>
            <div class="controls-v-a">
                <img id="rejectcall" src="${rejectIcon}"/>
                <img id="acceptcall" src= "${acceptIcon}"/>
            </div>
        </div>`;(i=koreJquery("#toast")).empty(),i.append(t);n=koreJquery("#rejectcall"),t=koreJquery("#acceptcall");n.off("click").on("click",function(t){var e={cobrowse_rejected:!0,type:"cobrowse_rejected"},n={event:"event"};n.message={body:e,type:""},o.sendMessage(n,function(t){}),i.empty()}),t.off("click").on("click",function(t){i.empty(),e.userId=a,cobrowseInitialize(e),localStorage.setItem("cobrowseRequest",JSON.stringify(e))})},this.sendCoBrowseEvent=function(t,e){l.socket.emit("cobrowseevent",{room:t,event:e},t=>{console.log("sent and received ack",t)})},koreJquery=(window&&window.KoreSDK&&window.KoreSDK.dependencies&&window.KoreSDK.dependencies.jQuery?window.KoreSDK.dependencies:window).jQuery,console.log("window.KoreSDK",window.KoreSDK,a);var o=requireKr("/KoreBot.js").singletoninstance(),s=o.sendMessage;o.sendMessage=function(t,e){var n,i,a=localStorage.getItem("pagesVisited"),o=[];a&&"[]"!=a&&(n=(o=JSON.parse(a))[0],i=moment(n.timestamp),a=moment(),i=moment.duration(a.diff(i)).asSeconds(),n.timespent=i),localStorage.setItem("pagesVisited",JSON.stringify(o)),t.agentDesktopMeta={pagesVisited:o},s.call(this,t,e)},overrideFlag=!1,o.on("message",t=>{overrideFlag||((e=document.getElementsByClassName("close-btn"))&&0<e.length?(koreJquery(".close-btn").off("click").on("click",function(t){koreJquery("#smartassist-menu").show()}),overrideFlag=!0):console.log("close button not found"));var e=JSON.parse(t.data);"events"===e.type&&e.message&&"call_agent_webrtc"===e.message.type?(l.callDetails=e.message,l.agentProfileIcon=l.userIcon,l.callDetails.profileIcon&&"undefined"!==l.callDetails.profileIcon&&(l.agentProfileIcon=l.callDetails.profileIcon),console.log("payload=",e.message),l.callAccepted=!1,l.showPhonePanel=!0,l.callDetails.restoreCall?(l.activeCall&&l.activeCall.terminate(),l.callAgent(),l.callAccepted=!0,l.showVideo=!0):this.showIncomingCallMessage(l.callDetails.videoCall,l.callDetails.firstName)):"events"===e.type&&e.message&&"terminate_agent_webrtc"===e.message.type?(l.removeAudoVideoContainer(),l.showPhonePanel=!1,l.showVideo=!1,l.activeCall&&(l.activeCall.terminate(),l.phone.deinit()),koreJquery("#toast").empty()):"events"===e.type&&e.message&&"webrtc_screenshare"===e.message.type?this.showScreenShareMessage(l.callDetails.videoCall,l.callDetails.firstName):"events"===e.type&&e.message&&"webrtc_screenshare_cancel"===e.message.type?(l.callDetails.videoCall||l.sendVideo(!1),l.screenSharingStream&&l.phone.closeScreenSharing(),l.activeCall&&l.activeCall.isScreenSharing()&&l.activeCall.stopScreenSharing()):"events"===e.type&&e.message&&"cobrowse"===e.message.type?(console.log("cobrowse request ",e.message),l.agentProfileIcon=l.userIcon,e.message.profileIcon&&"undefined"!==e.message.profileIcon&&(l.agentProfileIcon=e.message.profileIcon),this.showCobrowseRequest(e.message)):"events"===e.type&&e.message&&"close_cobrowse"===e.message.type?(koreJquery("#toast").empty(),stopCoBrowse(!1)):"events"===e.type&&e.message&&"clear_pagevisit_history"===e.message.type&&(localStorage.removeItem("pagesVisited"),t=[],e=this.getPageTitle(),t.push({page:e,timestamp:new moment}),localStorage.setItem("pagesVisited",JSON.stringify(t)))}),this.getPageTitle=function(){var t=document.title,e=document.getElementsByTagName("meta");if(e&&0<e.length)for(var n=0;n<e.length;n++)"title"!==e[n].name&&"og:title"!==e[n].name||(t=e[n].content);return console.log("page title ",t),t},this.addAudioVideoContainer=function(){var t=document.getElementsByClassName("kore-chat-body"),e=document.getElementById("agentcontainer");e?e.style.display="block":t&&0<t.length&&((e=document.createElement("div")).id="agentcontainer",e.style.height="25%",t[0].parentNode.insertBefore(e,t[0]),t[0].style.position="relative"),koreJquery("#callcontainer").length||koreJquery("#agentcontainer").append('<div id="callcontainer" class="callcontainer"></div>'),t[0].style.top="0px",t[0].style.height="54%";t=document.getElementsByClassName("kore-chat-window");t[0].style.top="0px",t[0].style.maxHeight="99%",t[0].style.height="97%"},this.removeAudoVideoContainer=function(){var t=document.getElementsByClassName("kore-chat-body"),e=document.getElementById("agentcontainer");e&&(e.style.display="none",t[0].style.height="78%")},this.sendVideo=function(e){let t=document.getElementById("local_video_tmp");t=t||document.getElementById("local_video");let n=t.srcObject;n&&n.getVideoTracks()&&n.getVideoTracks().forEach(t=>t.enabled=e)},this.screenShare=function(t){var e=Promise.resolve();return!self.callDetails.videoCall&&l.activeCall.hasEnabledSendVideo()&&l.sendVideo(!1),e.then(()=>{if(null===l.screenSharingStream)return l.phone.openScreenSharing().then(t=>{l.screenSharingStream=t,l.screenSharingStream.getVideoTracks()[0].onended=function(){l.sendVideo(l.callDetails.videoCall),l.sendControlMessage("screenshare_end")}})}).then(()=>(l.sendControlMessage("screenshare_start"),l.sendVideo(!0),l.activeCall.startScreenSharing(screenSharingStream))).catch(t=>{console.log("guiScreenSharing: error: "+t),l.sendControlMessage("screenshare_end")}).finally(()=>{})},this.initSipStack=function(t,e){console.log("this.phoneConfig",this.phoneConfig),this.phone.setServerConfig(e.addresses,e.domain,e.iceServers),this.phone.setReconnectIntervals(this.phoneConfig.reconnectIntervalMin,this.phoneConfig.reconnectIntervalMax),this.phone.setRegisterExpires(this.phoneConfig.registerExpires),this.phone.setUseSessionTimer(this.phoneConfig.useSessionTimer),this.phone.setDtmfOptions(this.phoneConfig.dtmfUseWebRTC,this.phoneConfig.dtmfDuration,this.phoneConfig.dtmfInterToneGap),this.phone.setBrowsersConstraints(this.phoneConfig.constraints),this.phone.setEnableAddVideo(this.phoneConfig.enableAddVideo),this.phone.setAcLogger(console.log),this.phone.setModes(this.phoneConfig.modes),this.phone.setAccount(t.user,t.displayName,t.user,t.user);var a=this;this.phone.setListeners({loginStateChanged:function(t,e){switch(e){case"connected":console.log("phone>>> loginStateChanged: connected"),a._makeCall();break;case"disconnected":console.log("phone>>> loginStateChanged: disconnected");break;case"login failed":console.log("phone>>> loginStateChanged: login failed");break;case"login":console.log("phone>>> loginStateChanged: login");break;case"logout":console.log("phone>>> loginStateChanged: logout")}},callScreenSharingEnded:function(t,e){console.log("phone>>> callScreenSharingEnded",t),l.sendControlMessage("screenshare_end"),l.phone.closeScreenSharing(l.screenSharingStream),l.sendVideo(l.callDetails.videoCall),l.screenSharingStream=null},outgoingCallProgress:function(t,e){console.log("phone>>> outgoing call progress")},callTerminated:function(t,e,n,i){a?.screenSharingStream&&this.callScreenSharingEnded(t),koreJquery("#rejectPhone").show(),console.log("phone>>> call terminated callback, cause=%o",n),t===a.activeCall?(a.activeCall=null,console.warn("Call terminated: "+n),a.phone.deinit(),console.log("call_terminated_panel"),a.callAccepted=!1,a.callMuted=!1,a.showPhonePanel=!1,a.showVideo=!1,l.callTerminated()):console.log("terminated no active call")},callConfirmed:function(t,e,n){l.callConnected(l.callDetails.videoCall,l.callDetails.firstName),console.log("phone>>> callConfirmed ",new Date,t.hasReceiveVideo());t.getRTCRemoteStream();a.callDetails.videoCall||l.sendVideo(!1),console.log("call established")},callShowStreams:function(t,e,n){console.log("phone>>> callShowStreams");var i=document.getElementById("remote_video");console.log("remoteVideo",i),i.srcObject=n,i.volume=.5,console.log("remoteStream",n);i=document.getElementById("local_video");i.srcObject=e,i.volume=0,i.mute=!1;var a=setInterval(function(){if(document.getElementById("remote_video_tmp")){let t=document.getElementById("remote_video");t.srcObject=n;let e=document.getElementById("remote_video_tmp");e.srcObject=t.srcObject,e.volume=.5,clearInterval(a)}},100)},incomingCall:function(t,e,n,i){console.log("phone>>> incomingCall",t,e,n,i),t.data.incoming_invite_hasSDP=i,t.reject()},callHoldStateChanged:function(t,e,n){console.log("hold")}}),console.log("Connecting..."),a.phone.init(!0)},this.sendControlMessage=function(t){var e=l.callDetails.sipURI,e=e.substring(e.indexOf(":")+1,e.indexOf("@"));l.phone.sendMessage(e,t)},this.callAgent=function(){console.log("this.callDetails",this.callDetails);var t=this.callDetails.sipURI,e=t.substring(t.indexOf(":")+1,t.indexOf("@"));console.log("sipURI",t,"sipUser",e,this.phone.VIDEO);e={};e.addresses=this.callDetails.addresses,e.domain=this.callDetails.domain,e.iceServers=this.callDetails.iceServers||[],this.initSipStack({user:this.callDetails.userId||"Anonymous",displayName:this.callDetails.userId||a,password:""},e)},this._makeCall=function(){var t=self.callDetails.sipURI,e=t.substring(t.indexOf(":")+1,t.indexOf("@"));navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(t=>{t.getTracks().forEach(function(t){t.stop()}),self.callDetails.videoCall?self.activeCall=self.phone.call(self.phone.VIDEO,e):self.activeCall=self.phone.call(self.phone.AUDIO,e)})},this.toggleButtons=function(){this.callAccepted?(this.callDetails&&!this.callDetails.videoCall?koreJquery("#acceptPhone").html('<i id="mic-icon" class="fas fa-phone-slash"></i>'):koreJquery("#acceptPhone").html('<i id="mic-icon" class="fas fa-video-slash"></i>'),koreJquery("#rejectPhone").hide()):this.callDetails&&!this.callDetails.videoCall?koreJquery("#acceptPhone").html('<i id="mic-icon" class="fas fa-phone-volume"></i>'):koreJquery("#acceptPhone").html('<i id="mic-icon" class="fas fa-video"></i>'),koreJquery("#mutePhone").show(),this.callMuted?koreJquery("#mutePhone").html('<i id="mic-icon" class="fas fa-microphone-slash">'):koreJquery("#mutePhone").html('<i id="mic-icon" class="fas fa-microphone">')},this.updateGui=function(){this.toggleButtons(),this.showPhonePanel?koreJquery("#phonepanel").show():koreJquery("#phonepanel").hide(),this.showVideo?koreJquery("#video_view").show():koreJquery("#video_view").hide()},koreJquery("#acceptPhone").off("click").on("click",function(t){l.callAccepted=!l.callAccepted,l.showVideo=!l.showVideo,l.callAccepted?l.callAgent():(l.activeCall&&l.activeCall.terminate(),l.showPhonePanel=!1),l.updateGui()}),koreJquery("#rejectPhone").off("click").on("click",function(t){l.activeCall&&l.activeCall.terminate(),l.callAccepted=!1,l.showPhonePanel=!1,l.updateGui()}),koreJquery("#mutePhone").off("click").on("click",function(t){l.callMuted=!l.callMuted;var e=l.activeCall.isAudioMuted();l.activeCall.muteAudio(!e),l.updateGui()}),koreJquery("#toast").length||koreJquery("#chatContainer").append('<div id="toast"></div>')}!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.io=e():t.io=e()}(self,function(){return i={},a.m=n=[function(t,e){t.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(t,e,n){var s=n(24),r=n(25),l=String.fromCharCode(30);t.exports={protocol:4,encodePacket:s,encodePayload:function(t,n){var i=t.length,a=new Array(i),o=0;t.forEach(function(t,e){s(t,!1,function(t){a[e]=t,++o===i&&n(a.join(l))})})},decodePacket:r,decodePayload:function(t,e){for(var n=t.split(l),i=[],a=0;a<n.length;a++){var o=r(n[a],e);if(i.push(o),"error"===o.type)break}return i}}},function(t,e,n){function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}(t.exports=i).prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},i.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var a=0;a<i.length;a++)if((n=i[a])===e||n.fn===e){i.splice(a,1);break}return 0===i.length&&delete this._callbacks["$"+t],this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n)for(var i=0,a=(n=n.slice(0)).length;i<a;++i)n[i].apply(this,e);return this},i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){var i=n(0);t.exports.pick=function(n){for(var t=arguments.length,e=new Array(1<t?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];return e.reduce(function(t,e){return n.hasOwnProperty(e)&&(t[e]=n[e]),t},{})};var a=setTimeout,o=clearTimeout;t.exports.installTimerFunctions=function(t,e){e.useNativeTimers?(t.setTimeoutFn=a.bind(i),t.clearTimeoutFn=o.bind(i)):(t.setTimeoutFn=setTimeout.bind(i),t.clearTimeoutFn=clearTimeout.bind(i))}},function(t,e,n){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function r(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=c(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,i?(t=c(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=n(1),d=n(2),f=n(3).installTimerFunctions,n=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(i,d);var n=r(i);function i(t){var e;return function(t){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this),e=n.call(this),f(l(e),t),e.opts=t,e.query=t.query,e.readyState="",e.socket=t.socket,e}return o(i.prototype,[{key:"onError",value:function(t,e){t=new Error(t);return t.type="TransportError",t.description=e,this.emit("error",t),this}},{key:"open",value:function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(t){"open"===this.readyState&&this.write(t)}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,this.emit("open")}},{key:"onData",value:function(t){t=u.decodePacket(t,this.socket.binaryType);this.onPacket(t)}},{key:"onPacket",value:function(t){this.emit("packet",t)}},{key:"onClose",value:function(){this.readyState="closed",this.emit("close")}}]),i}();t.exports=n},function(t,e){e.encode=function(t){var e,n="";for(e in t)t.hasOwnProperty(e)&&(n.length&&(n+="&"),n+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n},e.decode=function(t){for(var e={},n=t.split("&"),i=0,a=n.length;i<a;i++){var o=n[i].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e,n){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(t){e=Object.getOwnPropertyDescriptor(t,e);return e.get?e.get.call(n):e.value}})(t,e,n||t)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=l(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=l(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;var d,f=n(2),p=n(30),h=n(15);e.protocol=5,(n=d=e.PacketType||(e.PacketType={}))[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK";u(m,[{key:"encode",value:function(t){return t.type!==d.EVENT&&t.type!==d.ACK||!h.hasBinary(t)?[this.encodeAsString(t)]:(t.type=t.type===d.EVENT?d.BINARY_EVENT:d.BINARY_ACK,this.encodeAsBinary(t))}},{key:"encodeAsString",value:function(t){var e=""+t.type;return t.type!==d.BINARY_EVENT&&t.type!==d.BINARY_ACK||(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data)),e}},{key:"encodeAsBinary",value:function(t){var e=p.deconstructPacket(t),t=this.encodeAsString(e.packet),e=e.buffers;return e.unshift(t),e}}]),n=m;function m(){c(this,m)}e.Encoder=n;n=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(r,f);var t=s(r);function r(){return c(this,r),t.call(this)}return u(r,[{key:"add",value:function(t){var e;if("string"==typeof t)(e=this.decodeString(t)).type===d.BINARY_EVENT||e.type===d.BINARY_ACK?(this.reconstructor=new g(e),0===e.attachments&&i(l(r.prototype),"emit",this).call(this,"decoded",e)):i(l(r.prototype),"emit",this).call(this,"decoded",e);else{if(!h.isBinary(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,i(l(r.prototype),"emit",this).call(this,"decoded",e))}}},{key:"decodeString",value:function(t){var e=0,n={type:Number(t.charAt(0))};if(void 0===d[n.type])throw new Error("unknown packet type "+n.type);if(n.type===d.BINARY_EVENT||n.type===d.BINARY_ACK){for(var i=e+1;"-"!==t.charAt(++e)&&e!=t.length;);i=t.substring(i,e);if(i!=Number(i)||"-"!==t.charAt(e))throw new Error("Illegal attachments");n.attachments=Number(i)}if("/"===t.charAt(e+1)){for(var a=e+1;++e&&","!==t.charAt(e)&&e!==t.length;);n.nsp=t.substring(a,e)}else n.nsp="/";a=t.charAt(e+1);if(""!==a&&Number(a)==a){for(var o=e+1;++e;){var s=t.charAt(e);if(null==s||Number(s)!=s){--e;break}if(e===t.length)break}n.id=Number(t.substring(o,e+1))}if(t.charAt(++e)){o=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(e));if(!r.isPayloadValid(n.type,o))throw new Error("invalid payload");n.data=o}return n}},{key:"destroy",value:function(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}],[{key:"isPayloadValid",value:function(t,e){switch(t){case d.CONNECT:return"object"===a(e);case d.DISCONNECT:return void 0===e;case d.CONNECT_ERROR:return"string"==typeof e||"object"===a(e);case d.EVENT:case d.BINARY_EVENT:return Array.isArray(e)&&0<e.length;case d.ACK:case d.BINARY_ACK:return Array.isArray(e)}}}]),r}();e.Decoder=n;var g=(u(y,[{key:"takeBinaryData",value:function(t){if(this.buffers.push(t),this.buffers.length!==this.reconPack.attachments)return null;t=p.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),y);function y(t){c(this,y),this.packet=t,this.buffers=[],this.reconPack=t}},function(t,e){var l=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,n=t.indexOf("["),i=t.indexOf("]");-1!=n&&-1!=i&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));for(var a,o=l.exec(t||""),s={},r=14;r--;)s[c[r]]=o[r]||"";return-1!=n&&-1!=i&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=(i=s.path,e=i.replace(/\/{2,9}/g,"/").split("/"),"/"!=i.substr(0,1)&&0!==i.length||e.splice(0,1),"/"==i.substr(i.length-1,1)&&e.splice(e.length-1,1),e),s.queryKey=(e=s.query,a={},e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,n){e&&(a[e]=n)}),a),s}},function(t,e,n){function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=a(n);return function(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}(this,i?(t=a(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.Manager=void 0;var u=n(20),d=n(3),f=n(14),p=n(6),h=n(16),m=n(31),o=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}(o,n(17).StrictEventEmitter);var a=l(o);function o(t,e){var n,i;!function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(n=a.call(this)).nsps={},n.subs=[],t&&"object"===s(t)&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",n.opts=e,(0,d.installTimerFunctions)(c(n),e),n.reconnection(!1!==e.reconnection),n.reconnectionAttempts(e.reconnectionAttempts||1/0),n.reconnectionDelay(e.reconnectionDelay||1e3),n.reconnectionDelayMax(e.reconnectionDelayMax||5e3),n.randomizationFactor(null!==(i=e.randomizationFactor)&&void 0!==i?i:.5),n.backoff=new m({min:n.reconnectionDelay(),max:n.reconnectionDelayMax(),jitter:n.randomizationFactor()}),n.timeout(null==e.timeout?2e4:e.timeout),n._readyState="closed",n.uri=t;t=e.parser||p;return n.encoder=new t.Encoder,n.decoder=new t.Decoder,n._autoConnect=!1!==e.autoConnect,n._autoConnect&&n.open(),n}return i(o.prototype,[{key:"reconnection",value:function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}},{key:"reconnectionAttempts",value:function(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}},{key:"reconnectionDelay",value:function(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}},{key:"randomizationFactor",value:function(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}},{key:"reconnectionDelayMax",value:function(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}},{key:"timeout",value:function(t){return arguments.length?(this._timeout=t,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var n=this;if(~this._readyState.indexOf("open"))return this;this.engine=u(this.uri,this.opts);var t=this.engine,i=this;this._readyState="opening";var a,o,s=(this.skipReconnect=!1,h.on)(t,"open",function(){i.onopen(),e&&e()}),r=(0,h.on)(t,"error",function(t){i.cleanup(),i._readyState="closed",n.emitReserved("error",t),e?e(t):i.maybeReconnectOnOpen()});return!1!==this._timeout&&(0===(a=this._timeout)&&s(),o=this.setTimeoutFn(function(){s(),t.close(),t.emit("error",new Error("timeout"))},a),this.opts.autoUnref&&o.unref(),this.subs.push(function(){clearTimeout(o)})),this.subs.push(s),this.subs.push(r),this}},{key:"connect",value:function(t){return this.open(t)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var t=this.engine;this.subs.push((0,h.on)(t,"ping",this.onping.bind(this)),(0,h.on)(t,"data",this.ondata.bind(this)),(0,h.on)(t,"error",this.onerror.bind(this)),(0,h.on)(t,"close",this.onclose.bind(this)),(0,h.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(t){this.decoder.add(t)}},{key:"ondecoded",value:function(t){this.emitReserved("packet",t)}},{key:"onerror",value:function(t){this.emitReserved("error",t)}},{key:"socket",value:function(t,e){var n=this.nsps[t];return n||(n=new f.Socket(this,t,e),this.nsps[t]=n),n}},{key:"_destroy",value:function(t){for(var e=0,n=Object.keys(this.nsps);e<n.length;e++){var i=n[e];if(this.nsps[i].active)return}this._close()}},{key:"_packet",value:function(t){for(var e=this.encoder.encode(t),n=0;n<e.length;n++)this.engine.write(e[n],t.options)}},{key:"cleanup",value:function(){this.subs.forEach(function(t){return t()}),this.subs.length=0,this.decoder.destroy()}},{key:"_close",value:function(){this.skipReconnect=!0,this._reconnecting=!1,"opening"===this._readyState&&this.cleanup(),this.backoff.reset(),this._readyState="closed",this.engine&&this.engine.close()}},{key:"disconnect",value:function(){return this._close()}},{key:"onclose",value:function(t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()}},{key:"reconnect",value:function(){var e=this;if(this._reconnecting||this.skipReconnect)return this;var t,n,i=this;this.backoff.attempts>=this._reconnectionAttempts?(this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1):(t=this.backoff.duration(),this._reconnecting=!0,n=this.setTimeoutFn(function(){i.skipReconnect||(e.emitReserved("reconnect_attempt",i.backoff.attempts),i.skipReconnect||i.open(function(t){t?(i._reconnecting=!1,i.reconnect(),e.emitReserved("reconnect_error",t)):i.onreconnect()}))},t),this.opts.autoUnref&&n.unref(),this.subs.push(function(){clearTimeout(n)}))}},{key:"onreconnect",value:function(){var t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}]),o}();e.Manager=o},function(t,e,n){var s=n(10),r=n(23),l=n(27),n=n(28);e.polling=function(t){var e,n,i=!1,a=!1,o=!1!==t.jsonp;if("undefined"!=typeof location&&(e="https:"===location.protocol,n=(n=location.port)||(e?443:80),i=t.hostname!==location.hostname||n!==t.port,a=t.secure!==e),t.xdomain=i,t.xscheme=a,"open"in new s(t)&&!t.forceJSONP)return new r(t);if(!o)throw new Error("JSONP disabled");return new l(t)},e.websocket=n},function(t,e,n){var a=n(22),o=n(0);t.exports=function(t){var e=t.xdomain,n=t.xscheme,i=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||a))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(t){}if(!e)try{return new o[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(t){}}},function(t,e,n){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=r(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=r(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=n(4),c=n(5),u=n(1),d=n(13),n=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(e,l);var t=s(e);function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.apply(this,arguments)}return i(e.prototype,[{key:"name",get:function(){return"polling"}},{key:"doOpen",value:function(){this.poll()}},{key:"pause",value:function(t){var e=this;this.readyState="pausing";function n(){e.readyState="paused",t()}var i;this.polling||!this.writable?(i=0,this.polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))):n()}},{key:"poll",value:function(){this.polling=!0,this.doPoll(),this.emit("poll")}},{key:"onData",value:function(t){var e=this;u.decodePayload(t,this.socket.binaryType).forEach(function(t){return"opening"===e.readyState&&"open"===t.type&&e.onOpen(),"close"===t.type?(e.onClose(),!1):void e.onPacket(t)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState&&this.poll())}},{key:"doClose",value:function(){function t(){e.write([{type:"close"}])}var e=this;"open"===this.readyState?t():this.once("open",t)}},{key:"write",value:function(t){var e=this;this.writable=!1,u.encodePayload(t,function(t){e.doWrite(t,function(){e.writable=!0,e.emit("drain")})})}},{key:"uri",value:function(){var t=this.query||{},e=this.opts.secure?"https":"http",n="";return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=d()),this.supportsBinary||t.sid||(t.b64=1),t=c.encode(t),this.opts.port&&("https"==e&&443!==Number(this.opts.port)||"http"==e&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),t.length&&(t="?"+t),e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+t}}]),e}();t.exports=n},function(t,e){var n=Object.create(null);n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";var i=Object.create(null);Object.keys(n).forEach(function(t){i[n[t]]=t}),t.exports={PACKET_TYPES:n,PACKET_TYPES_REVERSE:i,ERROR_PACKET:{type:"error",data:"parser error"}}},function(t,e,n){var i,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={},s=0,r=0;function l(t){for(var e="";e=a[t%64]+e,0<(t=Math.floor(t/64)););return e}function c(){var t=l(+new Date);return t!==i?(s=0,i=t):t+"."+l(s++)}for(;r<64;r++)o[a[r]]=r;c.encode=l,c.decode=function(t){var e=0;for(r=0;r<t.length;r++)e=64*e+o[t.charAt(r)];return e},t.exports=c},function(t,e,n){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(t){e=Object.getOwnPropertyDescriptor(t,e);return e.get?e.get.call(n):e.value}})(t,e,n||t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=u(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=u(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.Socket=void 0;var d=n(6),f=n(16),p=n(17),h=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),n=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(o,p.StrictEventEmitter);var a=c(o);function o(t,e,n){var i;return function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(i=a.call(this)).connected=!1,i.disconnected=!0,i.receiveBuffer=[],i.sendBuffer=[],i.ids=0,i.acks={},i.flags={},i.io=t,i.nsp=e,n&&n.auth&&(i.auth=n.auth),i.io._autoConnect&&i.open(),i}return i(o.prototype,[{key:"subEvents",value:function(){var t;this.subs||(t=this.io,this.subs=[(0,f.on)(t,"open",this.onopen.bind(this)),(0,f.on)(t,"packet",this.onpacket.bind(this)),(0,f.on)(t,"error",this.onerror.bind(this)),(0,f.on)(t,"close",this.onclose.bind(this))])}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.unshift("message"),this.emit.apply(this,e),this}},{key:"emit",value:function(t){if(h.hasOwnProperty(t))throw new Error('"'+t+'" is a reserved event name');for(var e=arguments.length,n=new Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];n.unshift(t);var a={type:d.PacketType.EVENT,data:n,options:{}};a.options.compress=!1!==this.flags.compress,"function"==typeof n[n.length-1]&&(this.acks[this.ids]=n.pop(),a.id=this.ids++);t=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!t||!this.connected)||(this.connected?this.packet(a):this.sendBuffer.push(a)),this.flags={},this}},{key:"packet",value:function(t){t.nsp=this.nsp,this.io._packet(t)}},{key:"onopen",value:function(){var e=this;"function"==typeof this.auth?this.auth(function(t){e.packet({type:d.PacketType.CONNECT,data:t})}):this.packet({type:d.PacketType.CONNECT,data:this.auth})}},{key:"onerror",value:function(t){this.connected||this.emitReserved("connect_error",t)}},{key:"onclose",value:function(t){this.connected=!1,this.disconnected=!0,delete this.id,this.emitReserved("disconnect",t)}},{key:"onpacket",value:function(t){if(t.nsp===this.nsp)switch(t.type){case d.PacketType.CONNECT:t.data&&t.data.sid?(e=t.data.sid,this.onconnect(e)):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case d.PacketType.EVENT:case d.PacketType.BINARY_EVENT:this.onevent(t);break;case d.PacketType.ACK:case d.PacketType.BINARY_ACK:this.onack(t);break;case d.PacketType.DISCONNECT:this.ondisconnect();break;case d.PacketType.CONNECT_ERROR:var e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}},{key:"onevent",value:function(t){var e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}},{key:"emitEvent",value:function(t){if(this._anyListeners&&this._anyListeners.length){var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t){if(t){if("string"==typeof t)return r(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,e=function(){};return{s:e,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f: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.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(this._anyListeners.slice());try{for(n.s();!(e=n.n()).done;)e.value.apply(this,t)}catch(t){n.e(t)}finally{n.f()}}s(u(o.prototype),"emit",this).apply(this,t)}},{key:"ack",value:function(i){var a=this,o=!1;return function(){if(!o){o=!0;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];a.packet({type:d.PacketType.ACK,id:i,data:e})}}}},{key:"onack",value:function(t){var e=this.acks[t.id];"function"==typeof e&&(e.apply(this,t.data),delete this.acks[t.id])}},{key:"onconnect",value:function(t){this.id=t,this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emitReserved("connect")}},{key:"emitBuffered",value:function(){var e=this;this.receiveBuffer.forEach(function(t){return e.emitEvent(t)}),this.receiveBuffer=[],this.sendBuffer.forEach(function(t){return e.packet(t)}),this.sendBuffer=[]}},{key:"ondisconnect",value:function(){this.destroy(),this.onclose("io server disconnect")}},{key:"destroy",value:function(){this.subs&&(this.subs.forEach(function(t){return t()}),this.subs=void 0),this.io._destroy(this)}},{key:"disconnect",value:function(){return this.connected&&this.packet({type:d.PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{key:"close",value:function(){return this.disconnect()}},{key:"compress",value:function(t){return this.flags.compress=t,this}},{key:"volatile",get:function(){return this.flags.volatile=!0,this}},{key:"onAny",value:function(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}},{key:"prependAny",value:function(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}},{key:"offAny",value:function(t){if(!this._anyListeners)return this;if(t){for(var e=this._anyListeners,n=0;n<e.length;n++)if(t===e[n])return e.splice(n,1),this}else this._anyListeners=[];return this}},{key:"listenersAny",value:function(){return this._anyListeners||[]}}]),o}();e.Socket=n},function(t,e,n){function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.hasBinary=e.isBinary=void 0;var i="function"==typeof ArrayBuffer,a=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);function l(t){return i&&(t instanceof ArrayBuffer||(e=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer))||o&&t instanceof Blob||r&&t instanceof File;var e}e.isBinary=l,e.hasBinary=function t(e,n){if(!e||"object"!==s(e))return!1;if(Array.isArray(e)){for(var i=0,a=e.length;i<a;i++)if(t(e[i]))return!0;return!1}if(l(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return t(e.toJSON(),!0);for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return!0;return!1}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.on=void 0,e.on=function(t,e,n){return t.on(e,n),function(){t.off(e,n)}}},function(t,e,n){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(t){e=Object.getOwnPropertyDescriptor(t,e);return e.get?e.get.call(n):e.value}})(t,e,n||t)}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=c(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=c(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.StrictEventEmitter=void 0;var o=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}(o,n(2));var t=l(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),t.apply(this,arguments)}return i(o.prototype,[{key:"on",value:function(t,e){return s(c(o.prototype),"on",this).call(this,t,e),this}},{key:"once",value:function(t,e){return s(c(o.prototype),"once",this).call(this,t,e),this}},{key:"emit",value:function(t){for(var e,n=arguments.length,i=new Array(1<n?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(e=s(c(o.prototype),"emit",this)).call.apply(e,[this,t].concat(i)),this}},{key:"emitReserved",value:function(t){for(var e,n=arguments.length,i=new Array(1<n?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(e=s(c(o.prototype),"emit",this)).call.apply(e,[this,t].concat(i)),this}},{key:"listeners",value:function(t){return s(c(o.prototype),"listeners",this).call(this,t)}}]),o}();e.StrictEventEmitter=o},function(t,e,n){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.io=e.Socket=e.Manager=e.protocol=void 0;var s=n(19),r=n(8);t.exports=e=i;var l=e.managers={};function i(t,e){"object"===o(t)&&(e=t,t=void 0);var n=(0,s.url)(t,(e=e||{}).path||"/socket.io"),i=n.source,a=n.id,t=n.path,t=l[a]&&t in l[a].nsps,a=e.forceNew||e["force new connection"]||!1===e.multiplex||t?new r.Manager(i,e):(l[a]||(l[a]=new r.Manager(i,e)),l[a]);return n.query&&!e.query&&(e.query=n.queryKey),a.socket(n.path,e)}e.io=i;var a=n(6);Object.defineProperty(e,"protocol",{enumerable:!0,get:function(){return a.protocol}}),e.connect=i;var c=n(8);Object.defineProperty(e,"Manager",{enumerable:!0,get:function(){return c.Manager}});var u=n(14);Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return u.Socket}}),e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.url=void 0;var a=n(7);e.url=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=t,i=(i=2<arguments.length?arguments[2]:void 0)||"undefined"!=typeof location&&location;"string"==typeof(t=null==t?i.protocol+"//"+i.host:t)&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?i.protocol+t:i.host+t),/^(https?|wss?):\/\//.test(t)||(t=i.protocol+"//"+t),n=a(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";t=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+t+":"+n.port+e,n.href=n.protocol+"://"+t+(i&&i.port===n.port?"":":"+n.port),n}},function(t,e,n){var i=n(21);t.exports=function(t,e){return new i(t,e)},t.exports.Socket=i,t.exports.protocol=i.protocol,t.exports.Transport=n(4),t.exports.transports=n(9),t.exports.parser=n(1)},function(t,e,n){function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=u(n);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}(this,i?(t=u(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=n(9),p=n(2),h=n(1),m=n(7),g=n(5),y=n(3).installTimerFunctions,n=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}(d,p);var i=l(d);function d(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),e=i.call(this),t&&"object"===o(t)&&(n=t,t=null),t?(t=m(t),n.hostname=t.host,n.secure="https"===t.protocol||"wss"===t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=m(n.host).host),y(c(e),n),e.secure=null!=n.secure?n.secure:"undefined"!=typeof location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=e.secure?"443":"80"),e.hostname=n.hostname||("undefined"!=typeof location?location.hostname:"localhost"),e.port=n.port||("undefined"!=typeof location&&location.port?location.port:e.secure?443:80),e.transports=n.transports||["polling","websocket"],e.readyState="",e.writeBuffer=[],e.prevBufferLen=0,e.opts=a({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,jsonp:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),e.opts.path=e.opts.path.replace(/\/$/,"")+"/","string"==typeof e.opts.query&&(e.opts.query=g.decode(e.opts.query)),e.id=null,e.upgrades=null,e.pingInterval=null,e.pingTimeout=null,e.pingTimeoutTimer=null,"function"==typeof addEventListener&&(e.opts.closeOnBeforeunload&&addEventListener("beforeunload",function(){e.transport&&(e.transport.removeAllListeners(),e.transport.close())},!1),"localhost"!==e.hostname&&(e.offlineEventListener=function(){e.onClose("transport close")},addEventListener("offline",e.offlineEventListener,!1))),e.open(),e}return s(d.prototype,[{key:"createTransport",value:function(t){var e=function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}(this.opts.query);e.EIO=h.protocol,e.transport=t,this.id&&(e.sid=this.id);e=a({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new f[t](e)}},{key:"open",value:function(){var t,e=this;if(this.opts.rememberUpgrade&&d.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(function(){e.emit("error","No transports available")},0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}},{key:"setTransport",value:function(t){var e=this;this.transport&&this.transport.removeAllListeners(),(this.transport=t).on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",function(){e.onClose("transport close")})}},{key:"probe",value:function(t){var e=this,n=this.createTransport(t,{probe:1}),i=!1;d.priorWebsocketSuccess=!1;var a=function(){i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",function(t){i||("pong"===t.type&&"probe"===t.data?(e.upgrading=!0,e.emit("upgrading",n),n&&(d.priorWebsocketSuccess="websocket"===n.name,e.transport.pause(function(){i||"closed"!==e.readyState&&(u(),e.setTransport(n),n.send([{type:"upgrade"}]),e.emit("upgrade",n),n=null,e.upgrading=!1,e.flush())}))):((t=new Error("probe error")).transport=n.name,e.emit("upgradeError",t)))}))};function o(){i||(i=!0,u(),n.close(),n=null)}var s=function(t){t=new Error("probe error: "+t);t.transport=n.name,o(),e.emit("upgradeError",t)};function r(){s("transport closed")}function l(){s("socket closed")}function c(t){n&&t.name!==n.name&&o()}var u=function(){n.removeListener("open",a),n.removeListener("error",s),n.removeListener("close",r),e.removeListener("close",l),e.removeListener("upgrading",c)};n.once("open",a),n.once("error",s),n.once("close",r),this.once("close",l),this.once("upgrading",c),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",d.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},{key:"onPacket",value:function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emit("ping"),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}}},{key:"onHandshake",value:function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}},{key:"resetPingTimeout",value:function(){var t=this;this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(function(){t.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}},{key:"onDrain",value:function(){this.writeBuffer.splice(0,this.prevBufferLen),(this.prevBufferLen=0)===this.writeBuffer.length?this.emit("drain"):this.flush()}},{key:"flush",value:function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))}},{key:"write",value:function(t,e,n){return this.sendPacket("message",t,e,n),this}},{key:"send",value:function(t,e,n){return this.sendPacket("message",t,e,n),this}},{key:"sendPacket",value:function(t,e,n,i){"function"==typeof e&&(i=e,e=void 0),"function"==typeof n&&(i=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState&&((n=n||{}).compress=!1!==n.compress,this.emit("packetCreate",n={type:t,data:e,options:n}),this.writeBuffer.push(n),i&&this.once("flush",i),this.flush())}},{key:"close",value:function(){function t(){n.removeListener("upgrade",t),n.removeListener("upgradeError",t),i()}function e(){n.once("upgrade",t),n.once("upgradeError",t)}var n=this,i=function(){n.onClose("forced close"),n.transport.close()};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",function(){(n.upgrading?e:i)()}):(this.upgrading?e:i)()),this}},{key:"onError",value:function(t){d.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)}},{key:"onClose",value:function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingIntervalTimer),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emit("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(t){for(var e=[],n=0,i=t.length;n<i;n++)~this.transports.indexOf(t[n])&&e.push(t[n]);return e}}]),d}();n.priorWebsocketSuccess=!1,n.protocol=h.protocol,t.exports=n},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=f(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,i?(t=f(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=n(10),h=n(11),m=n(2),g=n(3),y=g.pick,v=g.installTimerFunctions,g=n(0);function D(){}var b=null!=new p({xdomain:!1}).responseType,n=function(){l(o,h);var a=u(o);function o(t){var e,n,i;s(this,o),e=a.call(this,t),"undefined"!=typeof location&&(n="https:"===location.protocol,i=(i=location.port)||(n?443:80),e.xd="undefined"!=typeof location&&t.hostname!==location.hostname||i!==t.port,e.xs=t.secure!==n);t=t&&t.forceBase64;return e.supportsBinary=b&&!t,e}return r(o,[{key:"request",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i(t,{xd:this.xd,xs:this.xs},this.opts),new A(this.uri(),t)}},{key:"doWrite",value:function(t,e){var n=this,t=this.request({method:"POST",data:t});t.on("success",e),t.on("error",function(t){n.onError("xhr post error",t)})}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t}}]),o}(),A=function(){l(a,m);var i=u(a);function a(t,e){var n;return s(this,a),n=i.call(this),v(d(n),e),n.opts=e,n.method=e.method||"GET",n.uri=t,n.async=!1!==e.async,n.data=void 0!==e.data?e.data:null,n.create(),n}return r(a,[{key:"create",value:function(){var t=this,e=y(this.opts,"agent","enablesXDR","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;var n=this.xhr=new p(e);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}catch(t){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{n.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),this.hasXDR()?(n.onload=function(){t.onLoad()},n.onerror=function(){t.onError(n.responseText)}):n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?t.onLoad():t.setTimeoutFn(function(){t.onError("number"==typeof n.status?n.status:0)},0))},n.send(this.data)}catch(e){return void this.setTimeoutFn(function(){t.onError(e)},0)}"undefined"!=typeof document&&(this.index=a.requestsCount++,a.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(t){this.emit("data",t),this.onSuccess()}},{key:"onError",value:function(t){this.emit("error",t),this.cleanup(!0)}},{key:"cleanup",value:function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=D:this.xhr.onreadystatechange=D,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete a.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var t=this.xhr.responseText;null!==t&&this.onData(t)}},{key:"hasXDR",value:function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR}},{key:"abort",value:function(){this.cleanup()}}]),a}();function I(){for(var t in A.requests)A.requests.hasOwnProperty(t)&&A.requests[t].abort()}A.requestsCount=0,A.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",I):"function"==typeof addEventListener&&addEventListener("onpagehide"in g?"pagehide":"unload",I,!1)),t.exports=n,t.exports.Request=A},function(t,e,n){function o(t,e){var n=new FileReader;return n.onload=function(){var t=n.result.split(",")[1];e("b"+t)},n.readAsDataURL(t)}var s=n(12).PACKET_TYPES,r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),l="function"==typeof ArrayBuffer;t.exports=function(t,e,n){var i=t.type,a=t.data;return r&&a instanceof Blob?e?n(a):o(a,n):l&&(a instanceof ArrayBuffer||(t=a,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer))?e?n(a instanceof ArrayBuffer?a:a.buffer):o(new Blob([a]),n):n(s[i]+(a||""))}},function(t,e,n){var i,a=n(12),o=a.PACKET_TYPES_REVERSE,s=a.ERROR_PACKET;"function"==typeof ArrayBuffer&&(i=n(26));function r(t,e){return"blob"===e&&t instanceof ArrayBuffer?new Blob([t]):t}t.exports=function(t,e){if("string"!=typeof t)return{type:"message",data:r(t,e)};var n=t.charAt(0);return"b"===n?{type:"message",data:function(t,e){if(i){var n=i.decode(t);return r(n,e)}return{base64:!0,data:t}}(t.substring(1),e)}:o[n]?1<t.length?{type:o[n],data:t.substring(1)}:{type:o[n]}:s}},function(t,e){var u;u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.encode=function(t){for(var e=new Uint8Array(t),n=e.length,i="",a=0;a<n;a+=3)i+=u[e[a]>>2],i+=u[(3&e[a])<<4|e[a+1]>>4],i+=u[(15&e[a+1])<<2|e[a+2]>>6],i+=u[63&e[a+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},e.decode=function(t){var e,n,i,a,o=.75*t.length,s=t.length,r=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);for(var o=new ArrayBuffer(o),l=new Uint8Array(o),c=0;c<s;c+=4)e=u.indexOf(t[c]),n=u.indexOf(t[c+1]),i=u.indexOf(t[c+2]),a=u.indexOf(t[c+3]),l[r++]=e<<2|n>>4,l[r++]=(15&n)<<4|i>>2,l[r++]=(3&i)<<6|63&a;return o}},function(t,e,n){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(t){e=Object.getOwnPropertyDescriptor(t,e);return e.get?e.get.call(n):e.value}})(t,e,n||t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function r(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=c(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,i?(t=c(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u,d=n(11),f=n(0),p=/\n/g,h=/\\n/g,n=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,d);var e=r(n);function n(t){return function(t){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this),(t=e.call(this,t)).query=t.query||{},u=u||(f.___eio=f.___eio||[]),t.index=u.length,u.push(t.onData.bind(l(t))),t.query.j=t.index,t}return i(n.prototype,[{key:"supportsBinary",get:function(){return!1}},{key:"doClose",value:function(){this.script&&(this.script.onerror=function(){},this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o(c(n.prototype),"doClose",this).call(this)}},{key:"doPoll",value:function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&this.setTimeoutFn(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)}},{key:"doWrite",value:function(t,e){var n,i,a,o,s=this;function r(){l(),e()}this.form||(i=document.createElement("form"),a=document.createElement("textarea"),o=this.iframeId="eio_iframe_"+this.index,i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=o,i.method="POST",i.setAttribute("accept-charset","utf-8"),a.name="d",i.appendChild(a),document.body.appendChild(i),this.form=i,this.area=a),this.form.action=this.uri();var l=function(){if(s.iframe)try{s.form.removeChild(s.iframe)}catch(t){s.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+s.iframeId+'">';n=document.createElement(t)}catch(t){(n=document.createElement("iframe")).name=s.iframeId,n.src="javascript:0"}n.id=s.iframeId,s.form.appendChild(n),s.iframe=n};l(),t=t.replace(h,"\\\n"),this.area.value=t.replace(p,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===s.iframe.readyState&&r()}:this.iframe.onload=r}}]),n}();t.exports=n},function(t,e,n){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function r(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=l(n);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i?(t=l(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var c=n(4),u=n(1),d=n(5),f=n(13),p=n(3).pick,n=n(29),h=n.WebSocket,m=n.usingBrowserWebSocket,g=n.defaultBinaryType,y=n.nextTick,v="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),n=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(i,c);var n=r(i);function i(t){var e;return function(t){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this),(e=n.call(this,t)).supportsBinary=!t.forceBase64,e}return o(i.prototype,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var t=this.uri(),e=this.opts.protocols,n=v?{}:p(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=m&&!v?e?new h(t,e):new h(t):new h(t,e,n)}catch(t){return this.emit("error",t)}this.ws.binaryType=this.socket.binaryType||g,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var a=this;this.writable=!1;for(var t=0;t<e.length;t++)!function(t){var n=e[t],i=t===e.length-1;u.encodePacket(n,a.supportsBinary,function(t){var e={};m||(n.options&&(e.compress=n.options.compress),a.opts.perMessageDeflate&&("string"==typeof t?Buffer.byteLength(t):t.length)<a.opts.perMessageDeflate.threshold&&(e.compress=!1));try{m?a.ws.send(t):a.ws.send(t,e)}catch(t){}i&&y(function(){a.writable=!0,a.emit("drain")},a.setTimeoutFn)})}(t)}},{key:"onClose",value:function(){c.prototype.onClose.call(this)}},{key:"doClose",value:function(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}},{key:"uri",value:function(){var t=this.query||{},e=this.opts.secure?"wss":"ws",n="";return this.opts.port&&("wss"==e&&443!==Number(this.opts.port)||"ws"==e&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=f()),this.supportsBinary||(t.b64=1),(t=d.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+t}},{key:"check",value:function(){return!(!h||"__initialize"in h&&this.name===i.prototype.name)}}]),i}();t.exports=n},function(t,e,n){var i=n(0),n="function"==typeof Promise&&"function"==typeof Promise.resolve?function(t){return Promise.resolve().then(t)}:function(t,e){return e(t,0)};t.exports={WebSocket:i.WebSocket||i.MozWebSocket,usingBrowserWebSocket:!0,defaultBinaryType:"arraybuffer",nextTick:n}},function(t,e,n){function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.reconstructPacket=e.deconstructPacket=void 0;var c=n(15);e.deconstructPacket=function(t){var e=[],n=t.data,t=t;return t.data=function t(e,n){if(!e)return e;if(c.isBinary(e)){var i={_placeholder:!0,num:n.length};return n.push(e),i}if(Array.isArray(e)){for(var a=new Array(e.length),o=0;o<e.length;o++)a[o]=t(e[o],n);return a}if("object"!==l(e)||e instanceof Date)return e;var s,r={};for(s in e)e.hasOwnProperty(s)&&(r[s]=t(e[s],n));return r}(n,e),t.attachments=e.length,{packet:t,buffers:e}},e.reconstructPacket=function(t,e){return t.data=function t(e,n){if(!e)return e;if(e&&e._placeholder)return n[e.num];if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]=t(e[i],n);else if("object"===l(e))for(var a in e)e.hasOwnProperty(a)&&(e[a]=t(e[a],n));return e}(t.data,e),t.attachments=void 0,t}},function(t,e){function n(t){this.ms=(t=t||{}).min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=0<t.jitter&&t.jitter<=1?t.jitter:0,this.attempts=0}(t.exports=n).prototype.duration=function(){var t,e,n=this.ms*Math.pow(this.factor,this.attempts++);return this.jitter&&(t=Math.random(),e=Math.floor(t*this.jitter*n),n=0==(1&Math.floor(10*t))?n-e:n+e),0|Math.min(n,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}}],a.c=i,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=18);function a(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,a),e.l=!0,e.exports}var n,i}),koreJquery=(window&&window.KoreSDK&&window.KoreSDK.dependencies&&window.KoreSDK.dependencies.jQuery?window.KoreSDK.dependencies:window).jQuery,$(document).ready(function(){koreJquery("#local_video").length||koreJquery("body").append('<video id="local_video" autoplay="autoplay" playsinline style="width:0px;height:0px"></video>'),koreJquery("#remote_video").length||koreJquery("body").append('<video id="remote_video" autoplay="autoplay" playsinline style="width:0px;height:0px"></video>')}),window.KoreAgentDesktop=AgentDesktop;var releasebtn,reconnectbtn,reconnectbtnimg,releasebtnimg,drawbtn,drawbtnimg,erasebtn,erasebtnimg,colorbtn,colorbtnimg,stopbtn,stopbtnimg,voffbtn,voffbtnimg,vonbtn,vonbtnimg,prevDrawX,prevDrawY,noControlImage="data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciICB2aWV3Qm94PSIwIDAgNTAgNTAiIHdpZHRoPSI1MHB4IiBoZWlnaHQ9IjUwcHgiPjxwYXRoIGQ9Ik0gOSAzIEMgNi4yNTM5MDYgMyA0IDUuMjUzOTA2IDQgOCBMIDQgMzQgQyA0IDM2Ljc0NjA5NCA2LjI1MzkwNiAzOSA5IDM5IEwgMTIuOTE3OTY5IDM5IEMgMTIuODk4NDM4IDQwLjEyMTA5NCAxMi45MDYyNSA0MS4yNjE3MTkgMTIuNjU2MjUgNDIuMTkxNDA2IEMgMTIuMzMyMDMxIDQzLjQxNDA2MyAxMS43NjE3MTkgNDQuMzc4OTA2IDEwLjQ4NDM3NSA0NS4xNDA2MjUgQyAxMC4xMDE1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OSA3IDE5IDEyIDE5czkuMjctMy4xMSAxMS03LjVDMjEuMjcgNy4xMSAxNyA0IDEyIDR6bTAgNWMxLjM4IDAgMi41IDEuMTIgMi41IDIuNVMxMy4zOCAxNCAxMiAxNHMtMi41LTEuMTItMi41LTIuNVMxMC42MiA5IDEyIDltMC0yYy0yLjQ4IDAtNC41IDIuMDItNC41IDQuNVM5LjUyIDE2IDEyIDE2czQuNS0yLjAyIDQuNS00LjVTMTQuNDggNyAxMiA3eiIvPjwvc3ZnPg==",socket=null,stopFn=null,peer=null,dataChannel=null,requestAccepted=!1,drawEnabled=!1;function stopCoBrowse(t=!0,e=!0){console.log("cobrowse >>> stopping cobrowse"),agentDrawPaths=[],userDrawPaths=[],removeTooltip(),requestAccepted=drawEnabled=!1,e&&localStorage.removeItem("cobrowseRequest");e=document.getElementById("kamousepointer");e&&(e.style.display="none"),t&&sendDCMessage(JSON.stringify({type:"terminate_cobrowse"})),setTimeout(()=>{closeChannel(),null!==socket&&socket.disconnect(),socket=null},1e3),removeCanvas(),removeMousePointer(),removeTooltip();t=document.getElementById("cobrowse-toolbar");t&&t.remove()}function closeChannel(){dataChannel&&"open"===dataChannel.readyState&&(console.log("cobrowse >>> closing channel"),dataChannel.close()),dataChannel=null,stopFn&&stopFn()}function koreGenerateUUID(){console.info("generating UUID");var n=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(n+=performance.now()),"u-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:3&e|8).toString(16)})}function createTooltip(t,e){var n,i;document.getElementById("cobrowse-tooltip")||(n=document.documentElement,t={position:"absolute",display:"inline-block",borderBottom:"1px dotted black",zIndex:1e5,left:(i=(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)+t.x)+20+"px",top:(window.pageYOffset||n.scrollTop)-(n.clientTop||0)+t.y-20+"px",padding:"10px, 15px",height:"36px",backgroundColor:"#202124",borderRadius:"4px",width:"auto",whitespace:"nowrap"},i+100>document.body.clientWidth&&(t.left=i-100+"px"),(i=document.createElement("div")).setAttribute("do-not-mutate",!0),i.id="cobrowse-tooltip",Object.assign(i.style,t),document.getElementsByTagName("BODY")[0].append(i),(t=document.createElement("div")).id="cobrowse-tooltip-text",Object.assign(t.style,{color:"#fff",textAlign:"center",textAlign:"center",padding:"10px",borderRadius:"6px",position:"absolute",zIndex:1,height:"14px",lineHeight:"0px",width:"max-content",backgroundColor:"black",whitespace:"nowrap",display:"inline-block",fontStyle:"normal",fontWeight:600,fontSize:"10px"}),i.append(t),t.textContent=e)}function removeTooltip(){var t=document.getElementById("cobrowse-tooltip");t&&t.remove(),(t=document.getElementById("cobrowse-tooltip-text"))&&t.remove()}function drawAllLines(t){var e=document.getElementById("cb-canvas");if(e){const l=e.getContext("2d");if(0<t.length)for(var n=0;n<t.length;n++)for(var i=t[n].color,a=t[n].subPath,o=0;o<a.length-1;o++){var s=a[o],r=a[o+1];l.beginPath(),l.moveTo(s.x,s.y),l.lineTo(r.x,r.y),l.strokeStyle=i,l.lineWidth=this.lineWidth,l.stroke()}}}function drawLines(t){var e=document.getElementById("cb-canvas");if(e){const l=e.getContext("2d");if(t&&0<t.length)for(var n=0;n<t.length;n++)for(var i=t[n].color,a=t[n].subPath,o=0;o<a.length-1;o++){var s=a[o],r=a[o+1];l.beginPath(),l.moveTo(s.x,s.y),l.lineTo(r.x,r.y),l.strokeStyle=i,l.lineWidth=3,l.stroke()}}}function createDrawingBoard(){var t,e=document,n=(window,e.documentElement.scrollHeight),i=e.documentElement.scrollWidth;e.getElementById("cb-canvas")||((t=e.createElement("canvas")).id="cb-canvas",t.className="rr-ignore",t.setAttribute("do-not-mutate","true"),t.width=i,t.height=n,t.style.backgroundColor="transparent",t.style.top="0px",t.style.left="0px",t.style.position="absolute",t.style.zIndex="10000",e.body.append(t))}userDrawPaths=[],agentDrawPaths=[];var subPaths=[],sketchColor="black",drawStarted=!1;function drawLine(t,e,n,i,a){t=t.getContext("2d");t.strokeStyle=sketchColor,t.beginPath(),t.moveTo(e,n),t.lineTo(i,a),t.lineWidth=lineWidth,t.stroke(),prevDrawX=i,prevDrawY=a}function eraseLastDrawing(){var t;document.getElementById("cb-canvas")&&(0<userDrawPaths.length&&userDrawPaths.splice(userDrawPaths.length-1,1),clearCanvas(),drawAllLines(userDrawPaths),drawAllLines(agentDrawPaths),dataChannel&&"open"===dataChannel.readyState&&(t={type:"target_draw",drawPaths:userDrawPaths},sendDCMessage(JSON.stringify(t))))}function handleDraw(t){var n;drawbtnimg.src=drawEnabled?drawDisabledImage:drawEnabledImage,drawEnabled=!drawEnabled,removeTooltip(),drawEnabled?(createTooltip(t,"Draw Mode On"),createDrawingBoard(),(n=document.getElementById("cb-canvas")).onmousemove=t=>{var e;drawEnabled&&drawStarted&&(e=t.offsetX,t=t.offsetY,subPaths.push({x:e,y:t}),drawLine(n,prevDrawX,prevDrawY,e,t))},n.onmousedown=t=>{drawEnabled&&(prevDrawX=t.offsetX,prevDrawY=t.offsetY,subPaths.push({x:t.offsetX,y:t.offsetY}),drawStarted=!0)},n.onmouseup=t=>{var e;drawEnabled&&(0<subPaths.length&&(userDrawPaths.push({color:sketchColor,subPath:subPaths}),e={type:"target_draw",drawPaths:userDrawPaths},sendDCMessage(JSON.stringify(e))),drawStarted=!1),subPaths=[]}):(userDrawPaths=[],clearCanvas(),agentDrawPaths.length<1?removeCanvas():drawLines(agentDrawPaths),dataChannel&&"open"===dataChannel.readyState&&sendDCMessage(JSON.stringify({type:"target_stop_draw"}))),drawEnabled||createTooltip(t,"Draw Mode Off")}function createCobrowseToolBar(){var t,e,n,i=document.getElementById("cobrowse-toolbar");i||((i=document.createElement("DIV")).id="cobrowse-toolbar",i.style.display="table",i.style.alignItems="flex-start",i.style.zIndex=1e5,i.style.cursor="move",i.style.height="172px",i.style.width="40px",i.style.background="#FFFFFF",i.style.boxShadow="0px 2px 5px rgba(0, 0, 0, 0.25)",i.style.borderRadius="2px",i.style.left="calc(100% - 50px)",i.style.top="40%",i.style.fontWeight="normal",i.style.fontSize="14px",i.style.lineHeight="20px",i.style.color="#FFFFFF",i.style.position="fixed",i.style.paddingBottom="5px",i.classList.add("rr-block"),i.style.border="none",i.setAttribute("do-not-mutate","true"),t={cursor:"pointer",width:"30px",height:"30px",borderRadius:"2px",marginTop:"5px",marginLeft:"5px",alignItems:"center",display:"flex"},e={width:"20px",height:"20px",marginLeft:"5px"},releasebtn=document.createElement("div"),Object.assign(releasebtn.style,t),releasebtn.style.backgroundColor="#F5F8FA",releasebtn.setAttribute("do-not-mutate","true"),releasebtnimg=document.createElement("img"),Object.assign(releasebtnimg.style,e),releasebtnimg.src=noControlImage,releasebtn.append(releasebtnimg),releasebtn.onmouseover=t=>{requestAccepted&&createTooltip(t,"Release Control"),requestAccepted||createTooltip(t,"Control-Off")},releasebtn.onmouseout=t=>{removeTooltip()},releasebtn.onclick=t=>{requestAccepted?(createTooltip(t,"Release Control"),releasebtnimg.src=noControlImage,releaseControl(),requestAccepted=!1):(createTooltip(t,"Agent Not in Control"),releasebtnimg.src=noControlImage)},i.append(releasebtn),reconnectbtn=document.createElement("div"),Object.assign(reconnectbtn.style,t),reconnectbtn.style.backgroundColor="#F5F8FA",reconnectbtn.setAttribute("do-not-mutate","true"),reconnectbtnimg=document.createElement("img"),Object.assign(reconnectbtnimg.style,e),reconnectbtnimg.src=reconnectImage,reconnectbtn.append(reconnectbtnimg),reconnectbtn.onmouseover=t=>{createTooltip(t,"Reconnect")},reconnectbtn.onmouseout=t=>{removeTooltip()},reconnectbtn.onclick=t=>{closeChannel(),setTimeout(()=>{autoStartCobrowse()},1e3)},i.append(reconnectbtn),drawbtn=document.createElement("div"),Object.assign(drawbtn.style,t),drawbtn.style.backgroundColor="#F5F8FA",drawbtn.setAttribute("do-not-mutate","true"),drawbtnimg=document.createElement("img"),Object.assign(drawbtnimg.style,e),drawbtnimg.src=drawDisabledImage,drawbtn.append(drawbtnimg),drawbtn.onclick=t=>{handleDraw(t)},drawbtn.onmouseover=t=>{drawEnabled&&createTooltip(t,"Draw Mode On"),drawEnabled||createTooltip(t,"Draw Mode Off")},drawbtn.onmouseout=t=>{removeTooltip()},i.append(drawbtn),erasebtn=document.createElement("div"),Object.assign(erasebtn.style,t),erasebtn.style.backgroundColor="#F5F8FA",erasebtn.setAttribute("do-not-mutate","true"),erasebtnimg=document.createElement("img"),Object.assign(erasebtnimg.style,e),erasebtnimg.src=eraserImage,erasebtn.append(erasebtnimg),erasebtn.onmouseover=t=>{createTooltip(t,"Undo last draw")},erasebtn.onmouseout=t=>{removeTooltip()},erasebtn.onclick=t=>{eraseLastDrawing()},i.append(erasebtn),colorbtn=document.createElement("div"),Object.assign(colorbtn.style,t),colorbtn.style.backgroundColor="#F5F8FA",colorbtn.setAttribute("do-not-mutate","true"),colorbtnimg=document.createElement("img"),Object.assign(colorbtnimg.style,e),colorbtnimg.src=pickColorImage,colorbtn.append(colorbtnimg),(n=document.createElement("INPUT")).id="colorId",n.type="color",n.value="#00000",n.style.visibility="hidden",n.onchange=t=>{var e=document.getElementById("colorId");sketchColor=e.value},colorbtn.append(n),colorbtn.onmouseover=t=>{createTooltip(t,"Pick color")},colorbtn.onmouseout=t=>{removeTooltip()},colorbtn.onclick=t=>{document.getElementById("colorId").click()},i.append(colorbtn),vonbtn=document.createElement("div"),Object.assign(vonbtn.style,t),vonbtn.style.backgroundColor="#F5F8FA",vonbtn.setAttribute("do-not-mutate","true"),vonbtnimg=document.createElement("img"),Object.assign(vonbtnimg.style,e),Object.assign(vonbtnimg.style,{height:"12.85px",width:"12.85px",marginLeft:"9px"}),vonbtnimg.src=visibilityOnImage,vonbtn.append(vonbtnimg),vonbtn.onmouseover=t=>{document.activeElement.classList.contains("rr-block")?createTooltip(t,"Show Input"):createTooltip(t,"Block Input")},vonbtn.onmouseout=t=>{removeTooltip()},vonbtn.onclick=t=>{var e=document.activeElement;document.activeElement.classList.contains("rr-block")?(e.classList.remove("rr-block"),vonbtnimg.src=visibilityOffImage,createTooltip(t,"Show Input")):(e.classList.add("rr-block"),vonbtnimg.src=visibilityOnImage,createTooltip(t,"Block Input")),rrweb&&stopFn&&rrweb.record.takeFullSnapshot(!0)},i.append(vonbtn),stopbtn=document.createElement("div"),Object.assign(stopbtn.style,t),stopbtn.style.backgroundColor="rgb(255, 38, 97)",stopbtn.setAttribute("do-not-mutate","true"),stopbtnimg=document.createElement("img"),Object.assign(stopbtnimg.style,e),Object.assign(stopbtnimg.style,{height:"12.85px",width:"12.85px",marginLeft:"9px"}),stopbtnimg.src=closeImage,stopbtn.append(stopbtnimg),stopbtn.onmouseover=t=>{createTooltip(t,"Stop CoBrowse")},stopbtn.onmouseout=t=>{removeTooltip()},i.append(stopbtn),document.getElementsByTagName("BODY")[0].append(i),setTimeout(()=>{dragElement(i),stopbtn.onclick=t=>{terminateCobrowse()}},1e3))}function dragElement(e){var n=0,i=0,a=0,o=0;function t(t){(t=t||window.event).preventDefault(),a=t.clientX,o=t.clientY,document.onmouseup=r,document.onmousemove=s}function s(t){(t=t||window.event).preventDefault(),n=a-t.clientX,i=o-t.clientY,a=t.clientX,o=t.clientY,e.style.top=e.offsetTop-i+"px",e.style.left=e.offsetLeft-n+"px"}function r(t){(t=t||window.event).preventDefault(),t.stopPropagation(),document.onmouseup=null,document.onmousemove=null}document.getElementById(e.id)?document.getElementById(e.id).onmousedown=t:e.onmousedown=t}function removeCanvas(){var t=document.getElementById("cb-canvas");t&&(clearCanvas(),t.remove())}lineWidth=3;var imageMousePointer=null;function removeMousePointer(){(imageMousePointer=document.getElementById("kamousepointer"))&&imageMousePointer.remove()}function clearCanvas(){var t=document.getElementById("cb-canvas");if(t){const e=t.getContext("2d");e.clearRect(0,0,t.width,t.height)}}function createMousePointer(){var t;(imageMousePointer=document.getElementById("kamousepointer"))?imageMousePointer.setAttribute("do-not-mutate","true"):((imageMousePointer=document.createElement("div")).id="kamousepointer",imageMousePointer.style.top=-100,imageMousePointer.setAttribute("do-not-mutate","true"),imageMousePointer.style.left=-100,imageMousePointer.style.display="none",imageMousePointer.style.zIndex=1e4,imageMousePointer.style.position="absolute",imageMousePointer.style.width="20px",imageMousePointer.style.height="20px",imageMousePointer.style.transition="left .05s linear,top .05s linear",imageMousePointer.style.backgroundSize="contain",imageMousePointer.style.backgroundPosition="50%",imageMousePointer.style.backgroundRepeat="no-repeat",imageMousePointer.style.backgroundImage='url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMwMCIgd2lkdGg9IjMwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBkYXRhLW5hbWU9IkxheWVyIDEiIHZpZXdCb3g9IjAgMCA1MCA1MCI+PHBhdGggZD0iTTQ4LjcxIDQyLjkxTDM0LjA4IDI4LjI5IDQ0LjMzIDE4YTEgMSAwIDAwLS4zMy0xLjYxTDIuMzUgMS4wNmExIDEgMCAwMC0xLjI5IDEuMjlMMTYuMzkgNDRhMSAxIDAgMDAxLjY1LjM2bDEwLjI1LTEwLjI4IDE0LjYyIDE0LjYzYTEgMSAwIDAwMS40MSAwbDQuMzgtNC4zOGExIDEgMCAwMC4wMS0xLjQyem0tNS4wOSAzLjY3TDI5IDMyYTEgMSAwIDAwLTEuNDEgMGwtOS44NSA5Ljg1TDMuNjkgMy42OWwzOC4xMiAxNEwzMiAyNy41OEExIDEgMCAwMDMyIDI5bDE0LjU5IDE0LjYyeiIvPjwvc3ZnPg==")',imageMousePointer.style.borderColor="transparent",imageMousePointer.className="rr-ignore agent-mouse",(t=document.createElement("div")).style.content="",t.style.display="inline-block",t.style.width="20px",t.style.height="20px",t.style.background="#4950f6",t.style.borderRadius="100%",t.style.transform="translate(-50%,-50%)",t.style.opacity=".3",t.className="rr-block agent-mouse-circle",imageMousePointer.appendChild(t),document.body.appendChild(imageMousePointer))}function sendDCMessage(t){dataChannel&&"open"===dataChannel.readyState&&dataChannel.send(t)}function releaseControl(){sendDCMessage(JSON.stringify({type:"request_control",response:"released"}))}function cobrowseInitialize(e){createCobrowseToolBar();var i="";function t(){function n(t,e,n){var i,a,n=s(l,n||{}),o=null;for(i in r)if(r[i].test(e)){o=i;break}if(!o)throw new SyntaxError("Only HTMLEvents and MouseEvents interfaces are supported");return document.createEvent?(a=document.createEvent(o),"HTMLEvents"==o?a.initEvent(e,n.bubbles,n.cancelable):a.initMouseEvent(e,n.bubbles,n.cancelable,document.defaultView,n.button,n.x,n.y,n.x,n.y,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,t),t.dispatchEvent(a)):(n.clientX=n.x,n.clientY=n.y,a=s(document.createEventObject(),n),t.fireEvent("on"+e,a)),t}function s(t,e){for(var n in e)t[n]=e[n];return t}console.log("cobrowse >>> joining room ",e.conversationId),function(){for(var t=document.getElementsByTagName("*"),e=0,n=t.length;e<n;e++){var i=t[e];rrweb.createCbId(i)}}(),socket.emit("start_cobrowse",{conversationId:e.conversationId}),socket.on("ice-candidate",function(t){console.log("cobrowse >>> handlingIceCandidate ",t);new RTCIceCandidate(t.candidate);peer.addIceCandidate(t.candidate).catch(t=>console.log(t))}),socket.on("offer",function(e){console.log("cobrowse >>> handlingOffer ",e);var t=new RTCSessionDescription(e.sdp);peer.setRemoteDescription(t).then(()=>{}).then(()=>peer.createAnswer()).then(t=>peer.setLocalDescription(t)).then(()=>{var t={conversationId:e.caller,sdp:peer.localDescription};socket.emit("answer",t)}).catch(t=>{console.log(t)}),peer.ondatachannel=t=>{console.log("cobrowse >>>  datachannel from source",t),null!==dataChannel&&(dataChannel.close(),dataChannel=null),null===dataChannel&&((dataChannel=t.channel).onmessage=t=>{!function(t){t=JSON.parse(t.data);if("start_event_msg"===t.type)i="";else if("message"===t.type)t.data&&"undefined"!==t.data&&null!=typeof t.data&&(i+=t.data);else if("stop_event_msg"===t.type)try{i&&"undefined"!==i&&null!=typeof i&&function(t){"target_mouse_move"===t.type?function(t){var e=t.x,t=t.y;imageMousePointer||createMousePointer();imageMousePointer.style.top=t+"px",imageMousePointer.style.left=e+"px",imageMousePointer.style.display="block"}(t):"target_key_up"!==t.type||"INPUT"!==t.tagName||"text"!==t.targetType&&"email"!==t.targetType?"target_key_down"!==t.type&&"target_key_up"!==t.type||"DIV"!==t.tagName?"target_mouse_click"===t.type?function(t){var e=t.cbId,e=document.querySelectorAll(`[cb-id="${e}"]`);e&&0<e.length&&n(e[0],"click",t)}(t):"target_mouse_over"===t.type?function(t){var e=t.cbId,e=document.querySelectorAll(`[cb-id="${e}"]`);e&&0<e.length&&n(e[0],"mouseover",t)}(t):"target_scroll"===t.type?function(t){var e=t.cbId;rrweb.scrollByAgent=!0,"fullDocument"===e?window.scrollTo(t.scrollLeft,t.scrollTop):(e=document.querySelectorAll(`[cb-id="${e}"]`))&&0<e.length&&(console.log("scrolling",t.scrollLeft,t.scrollTop),e[0].scrollTo(t.scrollLeft,t.scrollTop));setTimeout(()=>{rrweb.scrollByAgent=!1},500)}(t):"target_draw"===t.type?(createDrawingBoard(),clearCanvas(),agentDrawPaths=t.drawPaths,drawLines(t.drawPaths),drawLines(userDrawPaths)):"target_stop_draw"===t.type?(agentDrawPaths=[],clearCanvas(),drawAllLines(userDrawPaths),userDrawPaths.length<1&&removeCanvas()):"request_control"===t.type?function(t){var e=t&&t.firstName,e=`
                <div class="initial-video-audio-container" do-not-mutate="true">
                    <div class="ad-img-block">
                        <img src="${this.agentProfileIcon}" />
                    </div>
                    <div class="content-desc">
                        <div class="name">${e}</div>
                        <div class="type-text">${t.confirmMessage}</div>
                    </div>
                    <div class="controls-v-a">
                        <img id="rejectcall" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMCSURBVHgBxZjPaxNBFMffzG43oFCSo1gwMW3BUxPwR/HSBKwUT/XeYIX2asV/IO1/YC+CtFBLejdHaYXGW7ViVy8e2pL14k0SCoLdpDu+t/lhkm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EjvD7WHTOQEQMMGAAAAAElFTkSuQmCC"/>
                    </div>
                </div>`,n=document.getElementById("toast");n||((n=document.createElement("div")).id="toast",document.body.appendChild(n));n.innerHTML=e;t=document.getElementById("rejectcall"),e=document.getElementById("acceptcall");t.onclick=t=>{n.innerHTML="",requestAccepted=!1,releasebtnimg&&(releasebtnimg.src=noControlImage);sendDCMessage(JSON.stringify({type:"request_control",response:"rejected"}))},e.onclick=t=>{requestAccepted=!0,releasebtnimg&&(releasebtnimg.src=releaseControlImage),n.innerHTML="";createMousePointer(),sendDCMessage(JSON.stringify({type:"request_control",response:"accepted"}))}}(t.data):"release_control"===t.type&&(requestAccepted=!1,releasebtnimg&&(releasebtnimg.src=noControlImage),userDrawPaths.length<1&&removeCanvas()):function(e){var t=e.cbId,n=document.querySelectorAll(`[cb-id="${t}"]`);if(n&&0<n.length)if(0<=e.which&&e.which<=46){if([8,9,8,13,46].includes(e.which)){if(13!==e.which)return n[0].setAttribute("do-not-mutate","true"),n[0].textContent=e.textContent;n[0].removeAttribute("do-not-mutate"),setTimeout(()=>{var t=new KeyboardEvent("keydown",{bubbles:!0,cancelBubble:!1,cancelable:!0,charCode:e.charCode,code:e.code,composed:!0,ctrlKey:e.ctrlKey,currentTarget:null,isTrusted:!0,key:e.key,keyCode:e.keyCode,shiftKey:e.shiftKey,altKey:e.altKey,type:"keydown",which:e.which});n[0].dispatchEvent(t);sendDCMessage(JSON.stringify({type:"enterkey_dispatched"}))},100)}}else n[0].setAttribute("do-not-mutate","true"),n[0].textContent=e.textContent,setTimeout(()=>{n[0].removeAttribute("do-not-mutate")},200)}(t):function(t){var e=t.cbId,t=t.value,e=document.querySelectorAll(`[cb-id="${e}"]`);e&&0<e.length&&(e[0].value=t)}(t)}(JSON.parse(i))}catch(t){console.log("error msg",t,i)}else"fullsnapshot"===t.type?(console.log("taking fullsnapshot"),rrweb.record.takeFullSnapshot(!0)):"set_request_control"===t.type&&(requestAccepted=t.data,releasebtnimg&&(!0===t.data?releasebtnimg.src=releaseControlImage:releasebtnimg.src=noControlImage),createMousePointer())}(t)},dataChannel.onclose=()=>{peer&&"connected"===peer.connectionState&&(console.log("cobrowse >>> stopping peer connection"),peer.close(),peer=null),stopCoBrowse(!1,!1)},dataChannel.onopen=()=>{console.log("cobrowse >>> start recording"),stopFn=rrweb.record({emit(t){!function(t){var e=16384;sendDCMessage(JSON.stringify({type:"start_event_msg"}));let n=JSON.stringify(t);if(n.length>e){for(var i=Math.floor(n.length/e),t=n.length%e,a=0;a<i;a++){var o=n.substring(a*e,a*e+e);sendDCMessage(JSON.stringify({type:"message",data:o}))}0<t&&(o=n.substring(n.length-t,n.length),sendDCMessage(JSON.stringify({type:"message",data:o})))}else sendDCMessage(JSON.stringify({type:"message",data:n}));sendDCMessage(JSON.stringify({type:"stop_event_msg"}))}(t)},collectFonts:!0,collectFonts:!0,userTriggeredOnInput:!0,maskTextClass:"rr-mask"})})}}),socket.on("stop_cobrowse",stopCoBrowse),(peer=function(){try{var t={iceServers:e.iceServers||[]};return new RTCPeerConnection(t)}catch(t){return console.log("cobrowse >>> error from peer connection failed"),new RTCPeerConnection}}()).onicecandidate=t=>{t.candidate&&(t={conversationId:e.conversationId,candidate:t.candidate},console.log("cobrowse >>> emitting ice-candidate",t),socket.emit("ice-candidate",t))};var r={HTMLEvents:/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,MouseEvents:/^(?:click|dblclick|mouse(?:down|up|over|move|out))$/},l={pointerX:0,pointerY:0,button:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,bubbles:!0,cancelable:!0}}requestAccepted=!1,releasebtnimg&&(releasebtnimg.src=noControlImage),console.log("cobrowse >>> cobrowseRequest",e),e.userId||(e.userId=koreGenerateUUID()),null===socket?socket=io(e.cobrowseUrl+"/cobrowse",{query:{userId:this.authResponse.userInfo.userId,authToken:this.authResponse.authorization.accessToken,accountId:this.authResponse.userInfo.accountId},path:"/agentassist/api/v1/chat",transports:["websocket","polling","flashsocket"]}):t(),socket.on("connect",()=>{t()})}function autoStartCobrowse(){if(this.authResponse&&this.authResponse.userInfo){console.log("cobrowse >>> starting cobrowse");let t=localStorage.getItem("cobrowseRequest");console.log(t),socket&&socket.connected&&(socket.disconnect(),socket=null),t&&setTimeout(()=>{cobrowseInitialize(JSON.parse(t))},500),document.body.addEventListener("focus",focusHandler,!0),document.body.onfocusin=focusHandler}}function terminateCobrowse(){stopCoBrowse()}function focusHandler(t){vonbtnimg&&(document.activeElement.classList.contains("rr-block")?vonbtnimg.src=visibilityOnImage:vonbtnimg.src=visibilityOffImage)}var koreCoBrowse=function(t){t.agentclient=AgentDesktop,t.initialize=cobrowseInitialize,Object.defineProperty(t,"__esModule",{value:!0}),console.log("cobrowse >>> koreCoBrowse initialize");var e=document.getElementsByTagName("BODY")[0];return e&&"loaded"===e.readyState?autoStartCobrowse():window.addEventListener?window.addEventListener("load",autoStartCobrowse,!1):window.attachEvent("onload",autoStartCobrowse),t}({}),rrweb=function(V){var k,G=function(){return(G=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};function Z(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&i>=t.length?void 0:t)&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,a,o=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)s.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return s}function J(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(z(arguments[e]));return t}function x(t){return t.nodeType===t.ELEMENT_NODE}function N(t){var e=null===t||void 0===t?void 0:t.host;return Boolean(e&&e.shadowRoot&&e.shadowRoot===t)}function q(t){var e=t.maskInputOptions,n=t.tagName,i=t.type,a=t.value,t=t.maskInputFn,a=a||"";return a=e[n.toLowerCase()]||e[i]?t?t(a):"*".repeat(a.length):a}(he=k=k||{})[he.Document=0]="Document",he[he.DocumentType=1]="DocumentType",he[he.Element=2]="Element",he[he.Text=3]="Text",he[he.CDATA=4]="CDATA",he[he.Comment=5]="Comment";var S=1,T=RegExp("[^a-z0-9-_:]"),E=-2;function j(t){try{var e=t.rules||t.cssRules;return e?Array.from(e).map(n).join(""):null}catch(t){return null}}function n(t){return"styleSheet"in t?j(t.styleSheet)||"":t.cssText}var e=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,d=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,f=/^(data:)([^,]*),(.*)/i;function O(t,u){return(t||"").replace(e,function(t,e,n,i,a,o){o=n||a||o,i=e||i||"";if(!o)return t;if(!d.test(o))return"url("+i+o+i+")";if(f.test(o))return"url("+i+o+i+")";if("/"===o[0])return"url("+i+((t=(t=-1<(t=u).indexOf("//")?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0])+o)+i+")";var s=u.split("/"),o=o.split("/");s.pop();for(var r=0,l=o;r<l.length;r++){var c=l[r];"."!==c&&(".."===c?s.pop():s.push(c))}return"url("+i+s.join("/")+i+")"})}var c=/^[^ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/;function p(t,e){if(!e||""===e.trim())return e;t=t.createElement("a");return t.href=e,ye(t),t.href}function L(){var t=document.createElement("a");return t.href="",ye(t),t.href}function P(t,e,n,i){return"src"!==n&&("href"!==n&&"xlink:href"!==n||!i)&&("background"!==n||!i||"table"!==e&&"td"!==e&&"th"!==e)?"srcset"===n&&i?function(t,e){if(""===e.trim())return e;var n=0;function i(t){var t=t.exec(e.substring(n));return t?(t=t[0],n+=t.length,t):""}for(var a=[];;){if(i(u),n>=e.length)break;if(","===(s=i(c)).slice(-1))s=p(t,s.substring(0,s.length-1)),a.push(s);else for(var o="",s=p(t,s),r=!1;;){var l=e.charAt(n);if(""===l){a.push((s+o).trim());break}if(r)")"===l&&(r=!1);else{if(","===l){n+=1,a.push((s+o).trim());break}"("===l&&(r=!0)}o+=l,n+=1}}return a.join(", ")}(t,i):"style"===n&&i?O(i,L()):i:p(t,i)}function R(t,e,n){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return t.nodeType,t.TEXT_NODE,R(t.parentNode,e,n);if("string"==typeof e){if(t.classList.contains(e))return!0}else t.classList.forEach(function(t){if(e.test(t))return!0});return!(!n||!t.matches(n))||R(t.parentNode,e,n)}function F(e,t){var n,i=t.doc,a=t.blockClass,o=t.blockSelector,s=t.maskTextClass,r=t.maskTextSelector,l=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,d=t.maskTextFn,f=t.maskInputFn,p=t.recordCanvas,h=t.keepIframeSrcFn;switch(i.__sn&&(n=1===(t=i.__sn.id)?void 0:t),e.nodeType){case e.DOCUMENT_NODE:return{type:k.Document,childNodes:[],rootId:n};case e.DOCUMENT_TYPE_NODE:return{type:k.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:n};case e.ELEMENT_NODE:if(e.getAttribute&&"true"===e.getAttribute("do-not-mutate"))return console.log("got do-not-mutate",e),!1;for(var m,g,y=function(t,e,n){if("string"==typeof e){if(t.classList.contains(e))return!0}else for(var i=0;i<t.classList.length;i++){var a=t.classList[i];if(e.test(a))return!0}return!!n&&t.matches(n)}(e,a,o),v=(m=e)instanceof HTMLFormElement?"form":(m=m.tagName.toLowerCase().trim(),T.test(m)?"div":m),D={},b=0,A=Array.from(e.attributes);b<A.length;b++){var I=A[b],M=I.name,w=I.value;D[M]=P(i,v,M,w)}return"link"!==v||!l||(g=j(m=Array.from(i.styleSheets).find(function(t){return t.href===e.href})))&&(delete D.rel,delete D.href,D._cssText=O(g,m.href)),"style"===v&&e.sheet&&!(e.innerText||e.textContent||"").trim().length&&(g=j(e.sheet))&&(D._cssText=O(g,L())),"input"!==v&&"textarea"!==v&&"select"!==v||(w=e.value,"text"===D.type&&console.log("text"),"radio"!==D.type&&"checkbox"!==D.type&&"submit"!==D.type&&"button"!==D.type&&w?D.value=q({type:D.type,tagName:v,value:w,maskInputOptions:u,maskInputFn:f}):e.checked&&(D.checked=e.checked)),"option"===v&&(e.selected?D.selected=!0:delete D.selected),"canvas"===v&&p&&(D.rr_dataURL=e.toDataURL()),"audio"!==v&&"video"!==v||(D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(D.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(D.rr_scrollTop=e.scrollTop),y&&(_=(C=e.getBoundingClientRect()).width,C=C.height,D={class:D.class,rr_width:_+"px",rr_height:C+"px"}),"iframe"!==v||h(D.src)||delete D.src,{type:k.Element,tagName:v,attributes:D,childNodes:[],isSVG:"svg"===(_=e).tagName||_ instanceof SVGElement||void 0,needBlock:y,rootId:n};case e.TEXT_NODE:var C=e.parentNode&&e.parentNode.tagName,_=e.textContent,y="STYLE"===C||void 0,C="SCRIPT"===C||void 0;return y&&_&&(_=O(_,L())),C&&(_="SCRIPT_PLACEHOLDER"),!y&&!C&&R(e,s,r)&&_&&(_=d?d(_):_.replace(/[\S]/g,"*")),{type:k.Text,textContent:_||"",isStyle:y,rootId:n};case e.CDATA_SECTION_NODE:return{type:k.CDATA,textContent:"",rootId:n};case e.COMMENT_NODE:return{type:k.Comment,textContent:e.textContent||"",rootId:n};default:return!1}}function U(t){return void 0===t?"":t.toLowerCase()}function B(e,t){var n=t.doc,i=t.map,a=t.blockClass,o=t.blockSelector,s=t.maskTextClass,r=t.maskTextSelector,l=t.skipChild,c=void 0!==l&&l,l=t.inlineStylesheet,u=void 0===l||l,l=t.maskInputOptions,d=void 0===l?{}:l,f=t.maskTextFn,p=t.maskInputFn,h=t.slimDOMOptions,l=t.recordCanvas,m=void 0!==l&&l,g=t.onSerialize,y=t.onIframeLoad,l=t.iframeLoadTimeout,v=void 0===l?5e3:l,l=t.keepIframeSrcFn,D=void 0===l?function(){return!1}:l,l=t.preserveWhiteSpace,b=void 0===l||l,t=F(e,{doc:n,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:r,inlineStylesheet:u,maskInputOptions:d,maskTextFn:f,maskInputFn:p,recordCanvas:m,keepIframeSrcFn:D});if(!t)return null;var l="__sn"in e?e.__sn.id:!function(t,e){if(e.comment&&t.type===k.Comment)return 1;if(t.type===k.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&"preload"===t.attributes.rel&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return 1;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(U(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===U(t.attributes.name)||"icon"===U(t.attributes.rel)||"apple-touch-icon"===U(t.attributes.rel)||"shortcut icon"===U(t.attributes.rel))))return 1;if("meta"===t.tagName){if(e.headMetaDescKeywords&&U(t.attributes.name).match(/^description|keywords$/))return 1;if(e.headMetaSocial&&(U(t.attributes.property).match(/^(og|twitter|fb):/)||U(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===U(t.attributes.name)))return 1;if(e.headMetaRobots&&("robots"===U(t.attributes.name)||"googlebot"===U(t.attributes.name)||"bingbot"===U(t.attributes.name)))return 1;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return 1;if(e.headMetaAuthorship&&("author"===U(t.attributes.name)||"generator"===U(t.attributes.name)||"framework"===U(t.attributes.name)||"publisher"===U(t.attributes.name)||"progid"===U(t.attributes.name)||U(t.attributes.property).match(/^article:/)||U(t.attributes.property).match(/^product:/)))return 1;if(e.headMetaVerification&&("google-site-verification"===U(t.attributes.name)||"yandex-verification"===U(t.attributes.name)||"csrf-token"===U(t.attributes.name)||"p:domain_verify"===U(t.attributes.name)||"verify-v1"===U(t.attributes.name)||"verification"===U(t.attributes.name)||"shopify-checkout-api-token"===U(t.attributes.name)))return 1}}}(t,h)&&(b||t.type!==k.Text||t.isStyle||t.textContent.replace(/^\s+|\s+$/gm,"").length)?S++:E,A=Object.assign(t,{id:l});if(e.__sn=A,l===E)return null;i[l]=e,g&&g(e);l=!c;if(A.type===k.Element&&(l=l&&!A.needBlock,delete A.needBlock),(A.type===k.Document||A.type===k.Element)&&l){h.headWhitespace&&t.type===k.Element&&"head"===t.tagName&&(b=!1);for(var I={doc:n,map:i,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:r,skipChild:c,inlineStylesheet:u,maskInputOptions:d,maskTextFn:f,maskInputFn:p,slimDOMOptions:h,recordCanvas:m,preserveWhiteSpace:b,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:v,keepIframeSrcFn:D},M=0,w=Array.from(e.childNodes);M<w.length;M++)(C=B(w[M],I))&&A.childNodes.push(C);if(x(e)&&e.shadowRoot){A.isShadowHost=!0;for(var C,_=0,T=Array.from(e.shadowRoot.childNodes);_<T.length;_++)(C=B(T[_],I))&&(C.isShadow=!0,A.childNodes.push(C))}}return e.parentNode&&N(e.parentNode)&&(A.isShadow=!0),A.type===k.Element&&"iframe"===A.tagName&&function(t,e,n){var i=t.contentWindow;if(i){var a,o,s=!1;try{a=i.document.readyState}catch(t){return}"complete"===a?i.location.href===(i="about:blank")&&t.src!==i&&""!==t.src?t.addEventListener("load",e):setTimeout(e,0):(o=setTimeout(function(){s||(e(),s=!0)},n),t.addEventListener("load",function(){clearTimeout(o),s=!0,e()}))}}(e,function(){var t=e.contentDocument;t&&y&&((t=B(t,{doc:t,map:i,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:r,skipChild:!1,inlineStylesheet:u,maskInputOptions:d,maskTextFn:f,maskInputFn:p,slimDOMOptions:h,recordCanvas:m,preserveWhiteSpace:b,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:v,keepIframeSrcFn:D}))&&y(e,t))},v),A}var w=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function a(i,n){void 0===n&&(n={});var a=1,o=1;function s(t){var e=t.match(/\n/g);e&&(a+=e.length);e=t.lastIndexOf("\n");o=-1===e?o+t.length:t.length-e}function r(){var e={line:a,column:o};return function(t){return t.position=new l(e),m(),t}}var l=function(t){this.start=t,this.end={line:a,column:o},this.source=n.source};l.prototype.content=i;var c=[];function u(t){var e=new Error(n.source+":"+a+":"+o+": "+t);if(e.reason=t,e.filename=n.source,e.line=a,e.column=o,e.source=i,!n.silent)throw e;c.push(e)}function d(){return h(/^{\s*/)}function f(){return h(/^}/)}function p(){var t,e,n=[];for(m(),g(n);i.length&&"}"!==i.charAt(0)&&(e=function(){if("@"===i[0])return function(){var t=r(),e=h(/^@([-\w]+)?keyframes\s*/);if(e){var n=e[1];if(!(e=h(/^([-\w]+)\s*/)))return u("@keyframes missing name");var i,e=e[1];if(!d())return u("@keyframes missing '{'");for(var a=g();i=function(){var t,e=[],n=r();for(;t=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),h(/^,\s*/);if(e.length)return n({type:"keyframe",values:e,declarations:b()})}();)a.push(i),a=a.concat(g());return f()?t({type:"keyframes",name:e,vendor:n,keyframes:a}):u("@keyframes missing '}'")}}()||function(){var t=r(),e=h(/^@media *([^{]+)/);if(e){var n=C(e[1]);if(!d())return u("@media missing '{'");e=g().concat(p());return f()?t({type:"media",media:n,rules:e}):u("@media missing '}'")}}()||function(){var t=r(),e=h(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return t({type:"custom-media",name:C(e[1]),media:C(e[2])})}()||function(){var t=r(),e=h(/^@supports *([^{]+)/);if(e){var n=C(e[1]);if(!d())return u("@supports missing '{'");e=g().concat(p());return f()?t({type:"supports",supports:n,rules:e}):u("@supports missing '}'")}}()||A()||I()||M()||function(){var t=r(),e=h(/^@([-\w]+)?document *([^{]+)/);if(e){var n=C(e[1]),i=C(e[2]);if(!d())return u("@document missing '{'");e=g().concat(p());return f()?t({type:"document",document:i,vendor:n,rules:e}):u("@document missing '}'")}}()||function(){var t=r();if(h(/^@page */)){var e=v()||[];if(!d())return u("@page missing '{'");for(var n,i=g();n=D();)i.push(n),i=i.concat(g());return f()?t({type:"page",selectors:e,declarations:i}):u("@page missing '}'")}}()||function(){var t=r();if(h(/^@host\s*/)){if(!d())return u("@host missing '{'");var e=g().concat(p());return f()?t({type:"host",rules:e}):u("@host missing '}'")}}()||function(){var t=r();if(h(/^@font-face\s*/)){if(!d())return u("@font-face missing '{'");for(var e,n=g();e=D();)n.push(e),n=n.concat(g());return f()?t({type:"font-face",declarations:n}):u("@font-face missing '}'")}}()}()||(e=t=void 0,t=r(),(e=v())?(g(),t({type:"rule",selectors:e,declarations:b()})):u("selector missing")));)!1!==e&&(n.push(e),g(n));return n}function h(t){var e=t.exec(i);if(e){t=e[0];return s(t),i=i.slice(t.length),e}}function m(){h(/^\s*/)}function g(t){var e;for(void 0===t&&(t=[]);e=y();)!1!==e&&t.push(e),e=y();return t}function y(){var t=r();if("/"===i.charAt(0)&&"*"===i.charAt(1)){for(var e=2;""!==i.charAt(e)&&("*"!==i.charAt(e)||"/"!==i.charAt(e+1));)++e;if(""===i.charAt((e+=2)-1))return u("End of comment missing");var n=i.slice(2,e-2);return o+=2,s(n),i=i.slice(e),o+=2,t({type:"comment",comment:n})}}function v(){var t=h(/^([^{]+)/);if(t)return C(t[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(t){return t.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(t){return t.replace(/\u200C/g,",")})}function D(){var t=r(),e=h(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(e){var n=C(e[0]);if(!h(/^:\s*/))return u("property missing ':'");e=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),e=t({type:"declaration",property:n.replace(w,""),value:e?C(e[0]).replace(w,""):""});return h(/^[;\s]*/),e}}function b(){var t,e=[];if(!d())return u("missing '{'");for(g(e);t=D();)!1!==t&&(e.push(t),g(e)),t=D();return f()?e:u("missing '}'")}var t,A=e("import"),I=e("charset"),M=e("namespace");function e(i){var a=new RegExp("^@"+i+"\\s*([^;]+);");return function(){var t=r(),e=h(a);if(e){var n={type:i};return n[i]=e[1].trim(),t(n)}}}return function e(t,n){var i=t&&"string"==typeof t.type;var a=i?t:n;for(var o=0,s=Object.keys(t);o<s.length;o++){var r=s[o],r=t[r];Array.isArray(r)?r.forEach(function(t){e(t,a)}):r&&"object"==typeof r&&e(r,a)}i&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((t=p(),{type:"stylesheet",stylesheet:{source:n.source,rules:t,parsingErrors:c}}))}function C(t){return t?t.replace(/^\s+|\s+$/g,""):""}var o={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};var D,s=/([^\\]):hover/,r=new RegExp(s,"g");function h(t,e){var n=null==e?void 0:e.stylesWithHoverClass.get(t);if(n)return n;n=a(t,{silent:!0});if(!n.stylesheet)return t;var i=[];if(n.stylesheet.rules.forEach(function(t){"selectors"in t&&(t.selectors||[]).forEach(function(t){s.test(t)&&i.push(t)})}),0===i.length)return t;n=new RegExp(i.filter(function(t,e){return i.indexOf(t)===e}).sort(function(t,e){return e.length-t.length}).map(function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("|"),"g"),n=t.replace(n,function(t){var e=t.replace(r,"$1.\\:hover");return t+", "+e});return null!=e&&e.stylesWithHoverClass.set(t,n),n}function l(){return{stylesWithHoverClass:new Map}}function m(l,t){var e,n,c=t.doc,u=t.hackCss,d=t.cache;switch(l.type){case k.Document:return c.implementation.createDocument(null,"",null);case k.DocumentType:return c.implementation.createDocumentType(l.name||"html",l.publicId,l.systemId);case k.Element:var f=n="link"===(n=o[(e=l).tagName]||e.tagName)&&e.attributes._cssText?"style":n,p=l.isSVG?c.createElementNS("http://www.w3.org/2000/svg",f):c.createElement(f);ye(p);for(var i in l.attributes)!function(t){if(!l.attributes.hasOwnProperty(t))return;var e,n=l.attributes[t];if("option"===f&&"selected"===t&&!1===n)return;if(n="boolean"==typeof n||"number"==typeof n?"":n,t.startsWith("rr_")){if("canvas"===f&&"rr_dataURL"===t&&((e=document.createElement("img")).src=n,e.onload=function(){var t=p.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},ye(e)),"rr_width"===t&&(p.style.width=n),"rr_height"===t&&(p.style.height=n),"rr_mediaCurrentTime"===t&&(p.currentTime=l.attributes.rr_mediaCurrentTime),"rr_mediaState"===t)switch(n){case"played":p.play().catch(function(t){return console.warn("media playback error",t)});break;case"paused":p.pause()}}else{var i="textarea"===f&&"value"===t,a="style"===f&&"_cssText"===t;if(a&&u&&(n=h(n,d)),i||a){for(var a=c.createTextNode(n),o=0,s=Array.from(p.childNodes);o<s.length;o++){var r=s[o];r.nodeType===p.TEXT_NODE&&p.removeChild(r)}return p.appendChild(a)}try{if(l.isSVG&&"xlink:href"===t)p.setAttributeNS("http://www.w3.org/1999/xlink",t,n);else if("onload"===t||"onclick"===t||"onmouse"===t.substring(0,7))p.setAttribute("_"+t,n);else{if("meta"===f&&"Content-Security-Policy"===l.attributes["http-equiv"]&&"content"===t)return p.setAttribute("csp-content",n);"link"===f&&"preload"===l.attributes.rel&&"script"===l.attributes.as||"link"===f&&"prefetch"===l.attributes.rel&&"string"==typeof l.attributes.href&&l.attributes.href.endsWith(".js")||p.setAttribute(t,n)}}catch(t){}}}(i);if(l.isShadowHost)if(p.shadowRoot)for(;p.shadowRoot.firstChild;)p.shadowRoot.removeChild(p.shadowRoot.firstChild);else p.attachShadow({mode:"open"});return p;case k.Text:return c.createTextNode(l.isStyle&&u?h(l.textContent,d):l.textContent);case k.CDATA:return c.createCDATASection(l.textContent);case k.Comment:return c.createComment(l.textContent);default:return null}}function g(t,e){var n=e.doc,i=e.map,a=e.skipChild,o=void 0!==a&&a,a=e.hackCss,s=void 0===a||a,r=e.afterAppend,l=e.cache,c=m(t,{doc:n,hackCss:s,cache:l});if(!c)return null;if(t.rootId&&console.assert(i[t.rootId]===n,"Target document should has the same root id."),t.type===k.Document&&(n.close(),n.open(),c=n),i[(c.__sn=t).id]=c,(t.type===k.Document||t.type===k.Element)&&!o)for(var u=0,d=t.childNodes;u<d.length;u++){var f=d[u],p=g(f,{doc:n,map:i,skipChild:!1,hackCss:s,afterAppend:r,cache:l});p?((f.isShadow&&x(c)&&c.shadowRoot?c.shadowRoot:c).appendChild(p),r&&r(p)):console.warn("Failed to rebuild",f)}return c}function y(t,e){for(var n in t)t[n]&&(n=t[n],e(n))}function v(t,e){var n=e.doc,i=e.onVisit,a=e.hackCss,o={},e=g(t,{doc:n,map:o,skipChild:!1,hackCss:void 0===a||a,afterAppend:e.afterAppend,cache:e.cache});return y(o,function(t){i&&i(t),function(t){var e=t.__sn;if(e.type===k.Element){var n,i,a=t;for(n in e.attributes)e.attributes.hasOwnProperty(n)&&n.startsWith("rr_")&&(i=e.attributes[n],"rr_scrollLeft"===n&&(a.scrollLeft=i),"rr_scrollTop"===n&&(a.scrollTop=i))}}(t)}),[e,o]}function K(t,e,n){void 0===n&&(n=document);var i={capture:!0,passive:!0};return n.addEventListener(t,e,i),function(){return n.removeEventListener(t,e,i)}}function b(){return{map:{},getId:function(t){return t&&t.__sn?t.__sn.id:-1},getNode:function(t){return this.map[t]||null},removeNodeFromMap:function(t){var e=this,n=t.__sn&&t.__sn.id;delete this.map[n],t.childNodes&&t.childNodes.forEach(function(t){return e.removeNodeFromMap(t)})},has:function(t){return this.map.hasOwnProperty(t)},reset:function(){this.map={}}}}V.EventType=void 0,(de=V.EventType||(V.EventType={}))[de.DomContentLoaded=0]="DomContentLoaded",de[de.Load=1]="Load",de[de.FullSnapshot=2]="FullSnapshot",de[de.IncrementalSnapshot=3]="IncrementalSnapshot",de[de.Meta=4]="Meta",de[de.Custom=5]="Custom",de[de.Plugin=6]="Plugin",V.IncrementalSource=void 0,(st=V.IncrementalSource||(V.IncrementalSource={}))[st.Mutation=0]="Mutation",st[st.MouseMove=1]="MouseMove",st[st.MouseInteraction=2]="MouseInteraction",st[st.Scroll=3]="Scroll",st[st.ViewportResize=4]="ViewportResize",st[st.Input=5]="Input",st[st.TouchMove=6]="TouchMove",st[st.MediaInteraction=7]="MediaInteraction",st[st.StyleSheetRule=8]="StyleSheetRule",st[st.CanvasMutation=9]="CanvasMutation",st[st.Font=10]="Font",st[st.Log=11]="Log",st[st.Drag=12]="Drag",st[st.StyleDeclaration=13]="StyleDeclaration",V.MouseInteractions=void 0,(pe=V.MouseInteractions||(V.MouseInteractions={}))[pe.MouseUp=0]="MouseUp",pe[pe.MouseDown=1]="MouseDown",pe[pe.Click=2]="Click",pe[pe.ContextMenu=3]="ContextMenu",pe[pe.DblClick=4]="DblClick",pe[pe.Focus=5]="Focus",pe[pe.Blur=6]="Blur",pe[pe.TouchStart=7]="TouchStart",pe[pe.TouchMove_Departed=8]="TouchMove_Departed",pe[pe.TouchEnd=9]="TouchEnd",pe[pe.TouchCancel=10]="TouchCancel",(he=D=D||{})[he.Play=0]="Play",he[he.Pause=1]="Pause",he[he.Seeked=2]="Seeked",V.ReplayerEvents=void 0,(de=V.ReplayerEvents||(V.ReplayerEvents={})).Start="start",de.Pause="pause",de.Resume="resume",de.Resize="resize",de.Finish="finish",de.FullsnapshotRebuilded="fullsnapshot-rebuilded",de.LoadStylesheetStart="load-stylesheet-start",de.LoadStylesheetEnd="load-stylesheet-end",de.SkipStart="skip-start",de.SkipEnd="skip-end",de.MouseInteraction="mouse-interaction",de.EventCast="event-cast",de.CustomEvent="custom-event",de.Flush="flush",de.StateChange="state-change",de.PlayBack="play-back";var i="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";function X(o,s,r){void 0===r&&(r={});var l=null,c=0;return function(t){var e=Date.now();c||!1!==r.leading||(c=e);var n=s-(e-c),i=this,a=arguments;n<=0||s<n?(l&&(window.clearTimeout(l),l=null),c=e,o.apply(i,a)):l||!1===r.trailing||(l=window.setTimeout(function(){c=!1===r.leading?0:Date.now(),l=null,o.apply(i,a)},n))}}function $(t,e,n,i,a){var o=(a=void 0===a?window:a).Object.getOwnPropertyDescriptor(t,e);return a.Object.defineProperty(t,e,i?n:{set:function(t){var e=this;setTimeout(function(){n.set.call(e,t)},0),o&&o.set&&o.set.call(this,t)}}),function(){return $(t,e,o||{},!0)}}function tt(t,e,n){try{if(!(e in t))return function(){};var i=t[e],a=n(i);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:i}})),t[e]=a,function(){t[e]=i}}catch(t){return function(){}}}function et(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nt(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function it(t,e){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return t.nodeType,t.TEXT_NODE,it(t.parentNode,e);var n=!1;return"string"==typeof e?n=t.classList.contains(e):t.classList.forEach(function(t){e.test(t)&&(n=!0)}),n||it(t.parentNode,e)}function A(t){return"__sn"in t&&t.__sn.id===E}function I(t,e){if(N(t))return!1;var n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||I(t.parentNode,e))}function at(t){return Boolean(t.changedTouches)}function H(t){"NodeList"in(t=void 0===t?window:t)&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}V.mirror={map:{},getId:function(){return console.error(i),-1},getNode:function(){return console.error(i),null},removeNodeFromMap:function(){console.error(i)},has:function(){return console.error(i),!1},reset:function(){console.error(i)}},"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(V.mirror=new Proxy(V.mirror,{get:function(t,e,n){return"map"===e&&console.error(i),Reflect.get(t,e,n)}}));var M=(t.prototype.add=function(t){var e=this.indexes.get(t.parentId),t={id:t.node.id,mutation:t,children:[],texts:[],attributes:[]};e?(t.parent=e).children[t.id]=t:this.tree[t.id]=t,this.indexes.set(t.id,t)},t.prototype.remove=function(n,e){var i=this,t=this.indexes.get(n.parentId),a=this.indexes.get(n.id),o=function(t){i.removeIdSet.add(t);t=e.getNode(t);null!=t&&t.childNodes.forEach(function(t){"__sn"in t&&o(t.__sn.id)})},s=function(t){i.removeIdSet.add(t.id),Object.values(t.children).forEach(function(t){return s(t)});var e=i.indexes.get(t.id);!e||(t=e.parent)&&(delete e.parent,delete t.children[e.id],i.indexes.delete(n.id))};a?(t?(delete a.parent,delete t.children[a.id],this.indexes.delete(n.id)):(delete this.tree[a.id],this.indexes.delete(a.id)),s(a)):(this.removeNodeMutations.push(n),o(n.id))},t.prototype.text=function(t){var e=this.indexes.get(t.id);(e?e.texts:this.textMutations).push(t)},t.prototype.attribute=function(t){var e=this.indexes.get(t.id);(e?e.attributes:this.attributeMutations).push(t)},t.prototype.scroll=function(t){this.scrollMap.set(t.id,t)},t.prototype.input=function(t){this.inputMap.set(t.id,t)},t.prototype.flush=function(){var e,t,n=this,i=this.tree,a=this.removeNodeMutations,o=this.textMutations,s=this.attributeMutations,r={source:V.IncrementalSource.Mutation,removes:a,texts:o,attributes:s,adds:[]},l=function(t,e){e&&n.removeIdSet.add(t.id),r.texts=r.texts.concat(e?[]:t.texts).filter(function(t){return!n.removeIdSet.has(t.id)}),r.attributes=r.attributes.concat(e?[]:t.attributes).filter(function(t){return!n.removeIdSet.has(t.id)}),n.removeIdSet.has(t.id)||n.removeIdSet.has(t.mutation.parentId)||e?Object.values(t.children).forEach(function(t){return l(t,!0)}):(r.adds.push(t.mutation),t.children&&Object.values(t.children).forEach(function(t){return l(t,!1)}))};Object.values(i).forEach(function(t){return l(t,!1)});try{for(var c=Z(this.scrollMap.keys()),u=c.next();!u.done;u=c.next()){var d=u.value;this.removeIdSet.has(d)&&this.scrollMap.delete(d)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}try{for(var f=Z(this.inputMap.keys()),p=f.next();!p.done;p=f.next()){d=p.value;this.removeIdSet.has(d)&&this.inputMap.delete(d)}}catch(t){m={error:t}}finally{try{p&&!p.done&&(h=f.return)&&h.call(f)}finally{if(m)throw m.error}}var h=new Map(this.scrollMap),m=new Map(this.inputMap);return this.reset(),{mutationData:r,scrollMap:h,inputMap:m}},t.prototype.reset=function(){this.tree=[],this.indexes=new Map,this.removeNodeMutations=[],this.textMutations=[],this.attributeMutations=[],this.removeIdSet=new Set,this.scrollMap=new Map,this.inputMap=new Map},t.prototype.idRemoved=function(t){return this.removeIdSet.has(t)},t);function t(){this.reset()}function _(t){function e(t,e){return e={value:t,parent:e,children:[]},a[t.node.id]=e}var n,i,a={},o=[];try{for(var s=Z(t),r=s.next();!r.done;r=s.next()){var l,c,u,d=r.value,f=d.nextId,p=d.parentId;f&&f in a?(l=a[f]).parent?(c=l.parent.children.indexOf(l),l.parent.children.splice(c,0,e(d,l.parent))):(c=o.indexOf(l),o.splice(c,0,e(d,null))):p in a?(u=a[p]).children.push(e(d,u)):o.push(e(d,null))}}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o}function Y(t,e){e(t.value);for(var n=t.children.length-1;0<=n;n--)Y(t.children[n],e)}function Q(t){return"__sn"in t&&(t.__sn.type===k.Element&&"iframe"===t.__sn.tagName)}function W(t,e){var n=null===(t=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===t?void 0:t.frameElement;if(!n||n===e)return{x:0,y:0,relativeScale:1,absoluteScale:1};t=n.getBoundingClientRect(),e=W(n,e),n=t.height/n.clientHeight;return{x:t.x*e.relativeScale+e.x,y:t.y*e.relativeScale+e.y,relativeScale:n,absoluteScale:e.absoluteScale*n}}function ot(t){return Boolean(null===t||void 0===t?void 0:t.shadowRoot)}var st=Object.freeze({__proto__:null,on:K,createMirror:b,get _mirror(){return V.mirror},throttle:X,hookSetter:$,patch:tt,getWindowHeight:et,getWindowWidth:nt,isBlocked:it,isIgnored:A,isAncestorRemoved:I,isTouchEvent:at,polyfill:H,TreeIndex:M,queueToResolveTrees:_,iterateResolveTree:Y,isIframeINode:Q,getBaseDimension:W,hasShadowRoot:ot});function rt(t){return"__ln"in t}var lt=(ct.prototype.get=function(t){if(t>=this.length)throw new Error("Position outside of list range");for(var e=this.head,n=0;n<t;n++)e=(null==e?void 0:e.next)||null;return e},ct.prototype.addNode=function(t){var e,n={value:t,previous:null,next:null};t.__ln=n,t.previousSibling&&rt(t.previousSibling)?(e=t.previousSibling.__ln.next,n.next=e,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,e&&(e.previous=n)):t.nextSibling&&rt(t.nextSibling)&&t.nextSibling.__ln.previous?(e=t.nextSibling.__ln.previous,n.previous=e,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,e&&(e.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),this.length++},ct.prototype.removeNode=function(t){var e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)},ct);function ct(){this.length=0,this.head=null}function ut(t){return"__sn"in t}var dt=(ft.prototype.init=function(t,e,n,i,a,o,s,r,l,c,u,d,f,p,h){this.blockClass=e,this.blockSelector=n,this.maskTextClass=i,this.maskTextSelector=a,this.inlineStylesheet=o,this.maskInputOptions=s,this.maskTextFn=r,this.maskInputFn=l,this.recordCanvas=c,this.slimDOMOptions=u,this.emissionCallback=t,this.doc=d,this.mirror=f,this.iframeManager=p,this.shadowDomManager=h},ft.prototype.freeze=function(){this.frozen=!0},ft.prototype.unfreeze=function(){this.frozen=!1,this.emit()},ft.prototype.isFrozen=function(){return this.frozen},ft.prototype.lock=function(){this.locked=!0},ft.prototype.unlock=function(){this.locked=!1,this.emit()},ft);function ft(){var D=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(t){t.forEach(D.processMutation),D.emit()},this.emit=function(){var e,t,n;if(!D.frozen&&!D.locked){for(var a=[],o=new lt,s=function(t){for(var e=t,n=E;n===E;)n=(e=e&&e.nextSibling)&&D.mirror.getId(e);return n=-1===n&&it(t.nextSibling,D.blockClass)?null:n},i=function(e){var t=e.getRootNode?null===(i=e.getRootNode())||void 0===i?void 0:i.host:null,n=!(D.doc.contains(e)||t instanceof Node&&D.doc.contains(t));if(e.parentNode&&!n){var i=N(e.parentNode)?D.mirror.getId(t):D.mirror.getId(e.parentNode),n=s(e);if(-1===i||-1===n)return o.addNode(e);t=B(e,{doc:D.doc,map:D.mirror.map,blockClass:D.blockClass,blockSelector:D.blockSelector,maskTextClass:D.maskTextClass,maskTextSelector:D.maskTextSelector,skipChild:!0,inlineStylesheet:D.inlineStylesheet,maskInputOptions:D.maskInputOptions,maskTextFn:D.maskTextFn,maskInputFn:D.maskInputFn,slimDOMOptions:D.slimDOMOptions,recordCanvas:D.recordCanvas,onSerialize:function(t){Q(t)&&D.iframeManager.addIframe(t),ot(e)&&D.shadowDomManager.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(t,e){D.iframeManager.attachIframe(t,e)}});t&&a.push({parentId:i,nextId:n,node:t})}};D.mapRemoves.length;)D.mirror.removeNodeFromMap(D.mapRemoves.shift());try{for(var r=Z(D.movedSet),l=r.next();!l.done;l=r.next()){var c=l.value;ht(D.removes,c,D.mirror)&&!D.movedSet.has(c.parentNode)||i(c)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}try{for(var u=Z(D.addedSet),d=u.next();!d.done;d=u.next()){c=d.value;!mt(D.droppedSet,c)&&!ht(D.removes,c,D.mirror)||mt(D.movedSet,c)?i(c):D.droppedSet.add(c)}}catch(t){v={error:t}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(v)throw v.error}}for(var f=null;o.length;){var p=null;if(f&&(g=D.mirror.getId(f.value.parentNode),y=s(f.value),-1!==g&&-1!==y&&(p=f)),!p)for(var h=o.length-1;0<=h;h--){var m=o.get(h);if(m){var g=D.mirror.getId(m.value.parentNode),y=s(m.value);if(-1!==g&&-1!==y){p=m;break}}}if(!p){for(;o.head;)o.removeNode(o.head.value);break}f=p.previous,o.removeNode(p.value),i(p.value)}var v={texts:D.texts.map(function(t){return{id:D.mirror.getId(t.node),value:t.value}}).filter(function(t){return D.mirror.has(t.id)}),attributes:D.attributes.map(function(t){return{id:D.mirror.getId(t.node),attributes:t.attributes}}).filter(function(t){return D.mirror.has(t.id)}),removes:D.removes,adds:a};(v.texts.length||v.attributes.length||v.removes.length||v.adds.length)&&(D.texts=[],D.attributes=[],D.removes=[],D.addedSet=new Set,D.movedSet=new Set,D.droppedSet=new Set,D.movedMap={},D.emissionCallback(v))}},this.processMutation=function(i){if(!A(i.target))switch(i.type){case"characterData":var t=i.target.textContent;it(i.target,D.blockClass)||t===i.oldValue||D.texts.push({value:R(i.target,D.maskTextClass,D.maskTextSelector)&&t?D.maskTextFn?D.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:i.target});break;case"attributes":var e=i.target,t=i.target.getAttribute(i.attributeName);if("value"===i.attributeName&&(t=q({maskInputOptions:D.maskInputOptions,tagName:i.target.tagName,type:i.target.getAttribute("type"),value:t,maskInputFn:D.maskInputFn})),it(i.target,D.blockClass)||t===i.oldValue)return;var n=D.attributes.find(function(t){return t.node===i.target});if(n||(n={node:i.target,attributes:{}},D.attributes.push(n)),"style"===i.attributeName){var a=D.doc.createElement("span");ye(a),i.oldValue&&a.setAttribute("style",i.oldValue),void 0!==n.attributes.style&&null!==n.attributes.style||(n.attributes.style={});for(var o=n.attributes.style,s=0;s<e.style.length;s++){var r=e.style[s],l=e.style.getPropertyValue(r),c=e.style.getPropertyPriority(r);l==a.style.getPropertyValue(r)&&c==a.style.getPropertyPriority(r)||(o[r]=""==c?l:[l,c])}for(s=0;s<a.style.length;s++){r=a.style[s];""!==e.style.getPropertyValue(r)&&e.style.getPropertyValue(r)||(o[r]=!1)}}else n.attributes[i.attributeName]=P(D.doc,i.target.tagName,i.attributeName,t);break;case"childList":i.addedNodes.forEach(function(t){return D.genAdds(t,i.target)}),i.removedNodes.forEach(function(t){var e=D.mirror.getId(t),n=N(i.target)?D.mirror.getId(i.target.host):D.mirror.getId(i.target);it(t,D.blockClass)||it(i.target,D.blockClass)||A(t)||(D.addedSet.has(t)?(pt(D.addedSet,t),D.droppedSet.add(t)):D.addedSet.has(i.target)&&-1===e||I(i.target,D.mirror)||(D.movedSet.has(t)&&D.movedMap[e+"@"+n]?pt(D.movedSet,t):D.removes.push({parentId:n,id:e,isShadow:!!N(i.target)||void 0})),D.mapRemoves.push(t))})}},this.genAdds=function(t,e){if(!(t&&t.getAttribute&&"true"===t.getAttribute("do-not-mutate")||e&&e.getAttribute&&"true"===e.getAttribute("do-not-mutate")||it(t,D.blockClass)||e&&it(e,D.blockClass))){if(ut(t)){if(A(t))return;D.movedSet.add(t);var n=null;(n=e&&ut(e)?e.__sn.id:n)&&(D.movedMap[t.__sn.id+"@"+n]=!0)}else D.addedSet.add(t),D.droppedSet.delete(t);t.childNodes.forEach(function(t){return D.genAdds(t)})}}}function pt(e,t){e.delete(t),t.childNodes.forEach(function(t){return pt(e,t)})}function ht(t,e,n){e=e.parentNode;if(!e)return!1;var i=n.getId(e);return!!t.some(function(t){return t.id===i})||ht(t,e,n)}function mt(t,e){e=e.parentNode;return!!e&&(!!t.has(e)||mt(t,e))}var gt=[],yt="undefined"!=typeof CSSGroupingRule;function vt(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function Dt(t,e,n,i,a,o,s,r,l,c,u,d,f,p,h,m){var g=new dt;gt.push(g),g.init(t,n,i,a,o,s,r,l,c,u,d,e,f,p,h);f=window.MutationObserver||window.__rrMutationObserver,h=null===(p=null===(h=null===(p=window)||void 0===p?void 0:p.Zone)||void 0===h?void 0:h.__symbol__)||void 0===p?void 0:p.call(h,"MutationObserver"),g=new(f=h&&window[h]?window[h]:f)(g.processMutations.bind(g));return g.observe(m,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),g}function bt(a,n,o,s,t){if(!1===t.mouseInteraction)return function(){};var e=!0===t.mouseInteraction||void 0===t.mouseInteraction?{}:t.mouseInteraction,r=[];return Object.keys(V.MouseInteractions).filter(function(t){return Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==e[t]}).forEach(function(t){var i,e=t.toLowerCase(),t=(i=t,function(t){var e,n=vt(t);it(n,s)||(e=at(t)?t.changedTouches[0]:t)&&(t=o.getId(n),n=e.clientX,e=e.clientY,a({type:V.MouseInteractions[i],id:t,x:n,y:e}))});r.push(K(e,t,n))}),function(){r.forEach(function(t){return t()})}}function At(i,a,o,s,t){return K("scroll",X(function(t){var e,n=vt(t);n&&!it(n,s)&&(e=o.getId(n),n===a?(t=a.scrollingElement||a.documentElement,i({id:e,x:t.scrollLeft,y:t.scrollTop})):i({id:e,x:n.scrollLeft,y:n.scrollTop}))},t.scroll||100),a)}function It(t,e){t=G({},t);return e||delete t.userTriggered,t}var Mt=["INPUT","TEXTAREA","SELECT"],wt=new WeakMap;function Ct(t){var e;return e=t,t=[],e=(yt&&e.parentRule instanceof CSSGroupingRule?Array.from(e.parentRule.cssRules):Array.from(e.parentStyleSheet.cssRules)).indexOf(e),t.unshift(e),t}function _t(n,i,a){function t(e){return function(t){t=vt(t);t&&!it(t,i)&&n({type:e,id:a.getId(t),currentTime:t.currentTime})}}var e=[K("play",t(D.Play)),K("pause",t(D.Pause)),K("seeked",t(D.Seeked))];return function(){e.forEach(function(t){return t()})}}function Tt(s,n,r){var e,t,i=Object.getOwnPropertyNames(CanvasRenderingContext2D.prototype),a=[];try{for(var o=Z(i),l=o.next();!l.done;l=o.next())!function(o){try{if("function"!=typeof CanvasRenderingContext2D.prototype[o])return;var e=tt(CanvasRenderingContext2D.prototype,o,function(e){return function(){for(var i=this,a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];return it(this.canvas,n)||setTimeout(function(){var t,e,n=J(a);"drawImage"===o&&n[0]&&n[0]instanceof HTMLCanvasElement&&(e=null==(e=null==(t=(e=n[0]).getContext("2d"))?void 0:t.getImageData(0,0,e.width,e.height))?void 0:e.data,n[0]=JSON.stringify(e)),s({id:r.getId(i.canvas),property:o,args:n})},0),e.apply(this,a)}});a.push(e)}catch(t){e=$(CanvasRenderingContext2D.prototype,o,{set:function(t){s({id:r.getId(this.canvas),property:o,args:[t],setter:!0})}});a.push(e)}}(l.value)}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return function(){a.forEach(function(t){return t()})}}function kt(t,e){var n,i,a,o,s,r,l,c,u,d,f,p,h,m;a=e=void 0===e?{}:e,o=(k=t).mutationCb,s=k.mousemoveCb,r=k.mouseInteractionCb,l=k.scrollCb,c=k.viewportResizeCb,u=k.inputCb,d=k.mediaInteractionCb,f=k.styleSheetRuleCb,p=k.styleDeclarationCb,h=k.canvasMutationCb,m=k.fontCb,k.mutationCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.mutation&&a.mutation.apply(a,J(t)),o.apply(void 0,J(t))},k.mousemoveCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.mousemove&&a.mousemove.apply(a,J(t)),s.apply(void 0,J(t))},k.mouseInteractionCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.mouseInteraction&&a.mouseInteraction.apply(a,J(t)),r.apply(void 0,J(t))},k.scrollCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.scroll&&a.scroll.apply(a,J(t)),l.apply(void 0,J(t))},k.viewportResizeCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.viewportResize&&a.viewportResize.apply(a,J(t)),c.apply(void 0,J(t))},k.inputCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.input&&a.input.apply(a,J(t)),u.apply(void 0,J(t))},k.mediaInteractionCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.mediaInteaction&&a.mediaInteaction.apply(a,J(t)),d.apply(void 0,J(t))},k.styleSheetRuleCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.styleSheetRule&&a.styleSheetRule.apply(a,J(t)),f.apply(void 0,J(t))},k.styleDeclarationCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.styleDeclaration&&a.styleDeclaration.apply(a,J(t)),p.apply(void 0,J(t))},k.canvasMutationCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.canvasMutation&&a.canvasMutation.apply(a,J(t)),h.apply(void 0,J(t))},k.fontCb=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.font&&a.font.apply(a,J(t)),m.apply(void 0,J(t))};var g,y,v,D,b,A,I,M,w,C,_,T,k,x=Dt(t.mutationCb,t.doc,t.blockClass,t.blockSelector,t.maskTextClass,t.maskTextSelector,t.inlineStylesheet,t.maskInputOptions,t.maskTextFn,t.maskInputFn,t.recordCanvas,t.slimDOMOptions,t.mirror,t.iframeManager,t.shadowDomManager,t.doc),N=function(n,t,e,a){if(!1===t.mousemove)return function(){};var o,i="number"==typeof t.mousemove?t.mousemove:50,t="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],r=X(function(t){var e=Date.now()-o;n(s.map(function(t){return t.timeOffset-=e,t}),t),s=[],o=null},t),l=[K("mousemove",i=X(function(t){var e=vt(t),n=at(t)?t.changedTouches[0]:t,i=n.clientX,n=n.clientY;o=o||Date.now(),s.push({x:i,y:n,id:a.getId(e),timeOffset:Date.now()-o}),r("undefined"!=typeof DragEvent&&t instanceof DragEvent?V.IncrementalSource.Drag:t instanceof MouseEvent?V.IncrementalSource.MouseMove:V.IncrementalSource.TouchMove)},i,{trailing:!1}),e),K("touchmove",i,e),K("drag",i,e)];return function(){l.forEach(function(t){return t()})}}(t.mousemoveCb,t.sampling,t.doc,t.mirror),S=bt(t.mouseInteractionCb,t.doc,t.mirror,t.blockClass,t.sampling),E=At(t.scrollCb,t.doc,t.mirror,t.blockClass,t.sampling),j=(g=t.viewportResizeCb,v=y=-1,K("resize",X(function(){var t=et(),e=nt();y===t&&v===e||(g({width:Number(e),height:Number(t)}),y=t,v=e)},200),window)),O=(D=t.inputCb,b=t.doc,A=t.mirror,I=t.blockClass,M=t.ignoreClass,w=t.maskInputOptions,C=t.maskInputFn,e=t.sampling,_=t.userTriggeredOnInput,T=("last"===e.input?["change"]:["input","change"]).map(function(t){return K(t,L,b)}),k=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),e=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"]],k&&k.set&&T.push.apply(T,J(e.map(function(t){return $(t[0],t[1],{set:function(){L({target:this})}})}))),function(){T.forEach(function(t){return t()})});function L(t){var e,n,i=vt(t),a=t.isTrusted;!i||!i.tagName||Mt.indexOf(i.tagName)<0||it(i,I)||(e=i.type,i.classList.contains(M)||(t=i.value,n=!1,"radio"===e||"checkbox"===e?n=i.checked:(w[i.tagName.toLowerCase()]||w[e])&&(t=q({maskInputOptions:w,tagName:i.tagName,type:e,value:t,maskInputFn:C})),z(i,It({text:t,isChecked:n,userTriggered:a},_)),a=i.name,"radio"===e&&a&&n&&b.querySelectorAll('input[type="radio"][name="'+a+'"]').forEach(function(t){t!==i&&z(t,It({text:t.value,isChecked:!n,userTriggered:!1},_))})))}function z(t,e){var n=wt.get(t);n&&n.text===e.text&&n.isChecked===e.isChecked||(wt.set(t,e),t=A.getId(t),D(G(G({},e),{id:t})))}var P=_t(t.mediaInteractionCb,t.blockClass,t.mirror),R=function(i,a){var o=CSSStyleSheet.prototype.insertRule;CSSStyleSheet.prototype.insertRule=function(t,e){var n=a.getId(this.ownerNode);return-1!==n&&i({id:n,adds:[{rule:t,index:e}]}),o.apply(this,arguments)};var n=CSSStyleSheet.prototype.deleteRule;if(CSSStyleSheet.prototype.deleteRule=function(t){var e=a.getId(this.ownerNode);return-1!==e&&i({id:e,removes:[{index:t}]}),n.apply(this,arguments)},!yt)return function(){CSSStyleSheet.prototype.insertRule=o,CSSStyleSheet.prototype.deleteRule=n};var s=CSSGroupingRule.prototype.insertRule;CSSGroupingRule.prototype.insertRule=function(t,e){var n=a.getId(this.parentStyleSheet.ownerNode);return-1!==n&&i({id:n,adds:[{rule:t,index:J(Ct(this),[e||0])}]}),s.apply(this,arguments)};var r=CSSGroupingRule.prototype.deleteRule;return CSSGroupingRule.prototype.deleteRule=function(t){var e=a.getId(this.parentStyleSheet.ownerNode);return-1!==e&&i({id:e,removes:[{index:J(Ct(this),[t])}]}),r.apply(this,arguments)},function(){CSSStyleSheet.prototype.insertRule=o,CSSStyleSheet.prototype.deleteRule=n,CSSGroupingRule.prototype.insertRule=s,CSSGroupingRule.prototype.deleteRule=r}}(t.styleSheetRuleCb,t.mirror),F=function(a,o){var s=CSSStyleDeclaration.prototype.setProperty;CSSStyleDeclaration.prototype.setProperty=function(t,e,n){var i=o.getId(null===(i=null===(i=this.parentRule)||void 0===i?void 0:i.parentStyleSheet)||void 0===i?void 0:i.ownerNode);return-1!==i&&a({id:i,set:{property:t,value:e,priority:n},index:Ct(this.parentRule)}),s.apply(this,arguments)};var n=CSSStyleDeclaration.prototype.removeProperty;return CSSStyleDeclaration.prototype.removeProperty=function(t){var e=o.getId(null===(e=null===(e=this.parentRule)||void 0===e?void 0:e.parentStyleSheet)||void 0===e?void 0:e.ownerNode);return-1!==e&&a({id:e,remove:{property:t},index:Ct(this.parentRule)}),n.apply(this,arguments)},function(){CSSStyleDeclaration.prototype.setProperty=s,CSSStyleDeclaration.prototype.removeProperty=n}}(t.styleDeclarationCb,t.mirror),U=t.recordCanvas?Tt(t.canvasMutationCb,t.blockClass,t.mirror):function(){},B=t.collectFonts?function(n){var t=[],a=new WeakMap,o=FontFace;window.FontFace=function(t,e,n){var i=new o(t,e,n);return a.set(i,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),i};var e=tt(document.fonts,"add",function(t){return function(e){return setTimeout(function(){var t=a.get(e);t&&(n(t),a.delete(e))},0),t.apply(this,[e])}});return t.push(function(){window.FonFace=o}),t.push(e),function(){t.forEach(function(t){return t()})}}(t.fontCb):function(){},H=[];try{for(var Y=Z(t.plugins),Q=Y.next();!Q.done;Q=Y.next()){var W=Q.value;H.push(W.observer(W.callback,W.options))}}catch(t){n={error:t}}finally{try{Q&&!Q.done&&(i=Y.return)&&i.call(Y)}finally{if(n)throw n.error}}return function(){x.disconnect(),N(),S(),E(),j(),O(),P(),R(),F(),U(),B(),H.forEach(function(t){return t()})}}var xt=(Nt.prototype.addIframe=function(t){this.iframes.set(t,!0)},Nt.prototype.addLoadListener=function(t){this.loadListener=t},Nt.prototype.attachIframe=function(t,e){this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null!==(e=this.loadListener)&&void 0!==e&&e.call(this,t)},Nt);function Nt(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}var St,Et,jt=(Ot.prototype.addShadowRoot=function(t,e){Dt(this.mutationCb,e,this.bypassOptions.blockClass,this.bypassOptions.blockSelector,this.bypassOptions.maskTextClass,this.bypassOptions.maskTextSelector,this.bypassOptions.inlineStylesheet,this.bypassOptions.maskInputOptions,this.bypassOptions.maskTextFn,this.bypassOptions.maskInputFn,this.bypassOptions.recordCanvas,this.bypassOptions.slimDOMOptions,this.mirror,this.bypassOptions.iframeManager,this,t),At(this.scrollCb,t,this.mirror,this.bypassOptions.blockClass,this.bypassOptions.sampling)},Ot);function Ot(t){this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror}function Lt(t){return G(G({},t),{timestamp:Date.now()})}var zt=b();function Pt(t){var i=(t=void 0===t?{}:t).emit,a=t.checkoutEveryNms,o=t.checkoutEveryNth,e=t.blockClass,v=void 0===e?"rr-block":e,n=t.blockSelector,D=void 0===n?null:n,s=t.ignoreClass,r=void 0===s?"rr-ignore":s,l=t.maskTextClass,b=void 0===l?"rr-mask":l,c=t.maskTextSelector,A=void 0===c?null:c,e=t.inlineStylesheet,I=void 0===e||e,n=t.maskAllInputs,s=t.maskInputOptions,l=t.slimDOMOptions,u=t.maskInputFn,M=t.maskTextFn,d=t.hooks,f=t.packFn,c=t.sampling,p=void 0===c?{}:c,e=t.mousemoveWait,c=t.recordCanvas,w=void 0!==c&&c,c=t.userTriggeredOnInput,h=void 0!==c&&c,c=t.collectFonts,m=void 0!==c&&c,g=t.plugins,t=t.keepIframeSrcFn,C=void 0===t?function(){return!1}:t;if(!i)throw new Error("emit function is required");void 0!==e&&void 0===p.mousemove&&(p.mousemove=e);var y,_=!0===n?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==s?s:{password:!0},T=!0===l||"all"===l?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===l,headMetaDescKeywords:"all"===l}:l||{};H();var k=0;St=function(t,e){var n;null===(n=gt[0])||void 0===n||!n.isFrozen()||t.type===V.EventType.FullSnapshot||t.type===V.EventType.IncrementalSnapshot&&t.data.source===V.IncrementalSource.Mutation||gt.forEach(function(t){return t.unfreeze()}),i(f?f(t):t,e),t.type===V.EventType.FullSnapshot?(y=t,k=0):t.type===V.EventType.IncrementalSnapshot&&(t.data.source===V.IncrementalSource.Mutation&&t.data.isAttachIframe||(k++,e=o&&o<=k,t=a&&t.timestamp-y.timestamp>a,(e||t)&&Et(!0)))};function x(t){St(Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.Mutation},t)}))}function N(t){if(!ge){t=Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.Scroll},t)});return St(t)}}var S=new xt({mutationCb:x}),E=new jt({mutationCb:x,scrollCb:N,bypassOptions:{blockClass:v,blockSelector:D,maskTextClass:b,maskTextSelector:A,inlineStylesheet:I,maskInputOptions:_,maskTextFn:M,maskInputFn:u,recordCanvas:w,sampling:p,slimDOMOptions:T,iframeManager:S},mirror:zt});Et=function(t){var e;void 0===t&&(t=!1),St(Lt({type:V.EventType.Meta,data:{href:window.location.href,width:nt(),height:et()}}),t),gt.forEach(function(t){return t.lock()});var n,i,a,o,s,r,l,c,u,d,f,p,h,m,g=z((n=document,a=(y=(i={blockClass:v,blockSelector:D,maskTextClass:b,maskTextSelector:A,inlineStylesheet:I,maskAllInputs:_,maskTextFn:M,slimDOM:T,recordCanvas:w,onSerialize:function(t){Q(t)&&S.addIframe(t),ot(t)&&E.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,e){S.attachIframe(t,e)},keepIframeSrcFn:C})||{}).blockClass,o=y.blockSelector,s=y.maskTextClass,r=y.maskTextSelector,l=y.inlineStylesheet,c=y.recordCanvas,u=void 0!==(m=y.maskAllInputs)&&m,d=y.maskTextFn,f=y.maskInputFn,p=void 0!==(g=y.slimDOM)&&g,h=y.preserveWhiteSpace,t=y.onSerialize,i=y.onIframeLoad,m=y.iframeLoadTimeout,g=y.keepIframeSrcFn,[B(n,{doc:n,map:y={},blockClass:void 0===a?"rr-block":a,blockSelector:void 0===o?null:o,maskTextClass:void 0===s?"rr-mask":s,maskTextSelector:void 0===r?null:r,skipChild:!1,inlineStylesheet:void 0===l||l,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,recordCanvas:void 0!==c&&c,preserveWhiteSpace:h,onSerialize:t,onIframeLoad:i,iframeLoadTimeout:m,keepIframeSrcFn:void 0===g?function(){return!1}:g}),y]),2),y=g[0],g=g[1];if(!y)return console.warn("Failed to snapshot the document");zt.map=g,St(Lt({type:V.EventType.FullSnapshot,data:{node:y,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(e=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===e?void 0:e.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(e=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===e?void 0:e.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),gt.forEach(function(t){return t.unlock()})};try{var j=[];j.push(K("DOMContentLoaded",function(){St(Lt({type:V.EventType.DomContentLoaded,data:{}}))}));var O=function(t){return kt({mutationCb:x,mousemoveCb:function(t,e){return St(Lt({type:V.EventType.IncrementalSnapshot,data:{source:e,positions:t}}))},mouseInteractionCb:function(t){return St(Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.MouseInteraction},t)}))},scrollCb:N,viewportResizeCb:function(t){return St(Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.ViewportResize},t)}))},inputCb:function(t){return St(Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.Input},t)}))},mediaInteractionCb:function(t){return St(Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.MediaInteraction},t)}))},styleSheetRuleCb:function(t){return St(Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.StyleSheetRule},t)}))},styleDeclarationCb:function(t){return St(Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.StyleDeclaration},t)}))},canvasMutationCb:function(t){return St(Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.CanvasMutation},t)}))},fontCb:function(t){return St(Lt({type:V.EventType.IncrementalSnapshot,data:G({source:V.IncrementalSource.Font},t)}))},blockClass:v,ignoreClass:r,maskTextClass:b,maskTextSelector:A,maskInputOptions:_,inlineStylesheet:I,sampling:p,recordCanvas:w,userTriggeredOnInput:h,collectFonts:m,doc:t,maskInputFn:u,maskTextFn:M,blockSelector:D,slimDOMOptions:T,mirror:zt,iframeManager:S,shadowDomManager:E,plugins:(null==g?void 0:g.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return St(Lt({type:V.EventType.Plugin,data:{plugin:e.name,payload:t}}))}}}))||[]},d)};S.addLoadListener(function(t){j.push(O(t.contentDocument))});var L=function(){Et(),j.push(O(document))};return"interactive"===document.readyState||"complete"===document.readyState?L():j.push(K("load",function(){St(Lt({type:V.EventType.Load,data:{}})),L()},window)),function(){j.forEach(function(t){return t()})}}catch(t){console.warn(t)}}function Rt(i){return i=i||Object.create(null),{on:function(t,e){(i[t]||(i[t]=[])).push(e)},off:function(t,e){i[t]&&i[t].splice(i[t].indexOf(e)>>>0,1)},emit:function(e,n){(i[e]||[]).slice().map(function(t){t(n)}),(i["*"]||[]).slice().map(function(t){t(e,n)})}}}Pt.addCustomEvent=function(t,e){if(!St)throw new Error("please add custom event after start recording");St(Lt({type:V.EventType.Custom,data:{tag:t,payload:e}}))},Pt.freezePage=function(){gt.forEach(function(t){return t.freeze()})},Pt.takeFullSnapshot=function(t){if(!Et)throw new Error("please take full snapshot after start recording");Et(t)},Pt.mirror=zt;function Ft(r,l){var t,i,c,u,n,e;function d(t,e){this.scrollLeft=t,this.scrollTop=e}function a(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function o(t,e){return"Y"===e?t.clientHeight+n<t.scrollHeight:"X"===e?t.clientWidth+n<t.scrollWidth:void 0}function s(t,e){e=r.getComputedStyle(t,null)["overflow"+e];return"auto"===e||"scroll"===e}function f(t){for(;t!==l.body&&!1===(n=void 0,n=o(e=t,"Y")&&s(e,"Y"),e=o(e,"X")&&s(e,"X"),n||e);)t=t.parentNode||t.host;var e,n;return t}function p(t){var e,n=(u()-t.startTime)/i;e=n=1<n?1:n,n=.5*(1-Math.cos(Math.PI*e)),e=t.startX+(t.x-t.startX)*n,n=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,e,n),e===t.x&&n===t.y||r.requestAnimationFrame(p.bind(r,t))}function h(t,e,n){var i,a,o,s=u(),t=t===l.body?(a=(i=r).scrollX||r.pageXOffset,o=r.scrollY||r.pageYOffset,c.scroll):(a=(i=t).scrollLeft,o=t.scrollTop,d);p({scrollable:i,method:t,startTime:s,startX:a,startY:o,x:e,y:n})}void 0===r&&(r=window),"scrollBehavior"in(l=void 0===l?document:l).documentElement.style&&!0!==r.__forceSmoothScrollPolyfill__||(t=r.HTMLElement||r.Element,i=468,c={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:t.prototype.scroll||d,scrollIntoView:t.prototype.scrollIntoView},u=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now,e=r.navigator.userAgent,n=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(e)?1:0,r.scroll=r.scrollTo=function(){void 0!==arguments[0]&&(!0!==a(arguments[0])?h.call(r,l.body,void 0!==arguments[0].left?~~arguments[0].left:r.scrollX||r.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:r.scrollY||r.pageYOffset):c.scroll.call(r,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:r.scrollX||r.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:r.scrollY||r.pageYOffset))},r.scrollBy=function(){void 0!==arguments[0]&&(a(arguments[0])?c.scrollBy.call(r,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(r,l.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset)))},t.prototype.scroll=t.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==a(arguments[0])){var t=arguments[0].left,e=arguments[0].top;h.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},t.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==a(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},t.prototype.scrollIntoView=function(){var t,e,n;!0!==a(arguments[0])?(e=(t=f(this)).getBoundingClientRect(),n=this.getBoundingClientRect(),t!==l.body?(h.call(this,t,t.scrollLeft+n.left-e.left,t.scrollTop+n.top-e.top),"fixed"!==r.getComputedStyle(t).position&&r.scrollBy({left:e.left,top:e.top,behavior:"smooth"})):r.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):c.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])})}var Ut,Bt=(Ht.prototype.addAction=function(t){var e=this.findActionIndex(t);this.actions.splice(e,0,t)},Ht.prototype.addActions=function(t){this.actions=this.actions.concat(t)},Ht.prototype.start=function(){this.timeOffset=0;var i=performance.now(),a=this.actions,o=this;this.raf=requestAnimationFrame(function t(){var e=performance.now();for(o.timeOffset+=(e-i)*o.speed,i=e;a.length;){var n=a[0];if(!(o.timeOffset>=n.delay))break;a.shift(),n.doAction()}(0<a.length||o.liveMode)&&(o.raf=requestAnimationFrame(t))})},Ht.prototype.clear=function(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0},Ht.prototype.setSpeed=function(t){this.speed=t},Ht.prototype.toggleLiveMode=function(t){this.liveMode=t},Ht.prototype.isActive=function(){return null!==this.raf},Ht.prototype.findActionIndex=function(t){for(var e=0,n=this.actions.length-1;e<=n;){var i=Math.floor((e+n)/2);if(this.actions[i].delay<t.delay)e=i+1;else{if(!(this.actions[i].delay>t.delay))return i+1;n=i-1}}return e},Ht);function Ht(t,e){void 0===t&&(t=[]),this.timeOffset=0,this.raf=null,this.actions=t,this.speed=e}function Yt(t,e){if(t.type!==V.EventType.IncrementalSnapshot||t.data.source!==V.IncrementalSource.MouseMove)return t.delay=t.timestamp-e,t.delay;var n=t.data.positions[0].timeOffset,n=t.timestamp+n;return t.delay=n-e,n-e}function Qt(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,a,o=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)s.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return s}(pe=Ut=Ut||{})[pe.NotStarted=0]="NotStarted",pe[pe.Running=1]="Running",pe[pe.Stopped=2]="Stopped";var Wt={type:"xstate.init"};function Vt(t){return void 0===t?[]:[].concat(t)}function Gt(t){return{type:"xstate.assign",assignment:t}}function Zt(t,e){return"string"==typeof(t="string"==typeof t&&e&&e[t]?e[t]:t)?{type:t}:"function"==typeof t?{type:t.name,exec:t}:t}function Jt(e){return function(t){return e===t}}function qt(t){return"string"==typeof t?{type:t}:t}function Kt(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Jt(t)}}function Xt(t,e,i){var a=e,o=!1;return[t.filter(function(e){if("xstate.assign"!==e.type)return!0;o=!0;var n=Object.assign({},a);return"function"==typeof e.assignment?n=e.assignment(a,i):Object.keys(e.assignment).forEach(function(t){n[t]="function"==typeof e.assignment[t]?e.assignment[t](a,i):e.assignment[t]}),a=n,!1}),a,o]}function $t(C,e){void 0===e&&(e={});var t=Qt(Xt(Vt(C.states[C.initial].entry).map(function(t){return Zt(t,e.actions)}),C.context,Wt),2),n=t[0],t=t[1],_={config:C,_options:e,initialState:{value:C.initial,actions:n,context:t,matches:Jt(C.initial)},transition:function(t,e){var n,i,t="string"==typeof t?{value:t,context:C.context}:t,a=t.value,o=t.context,s=qt(e),r=C.states[a];if(r.on){e=Vt(r.on[s.type]);try{for(var l=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&i>=t.length?void 0:t)&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),c=l.next();!c.done;c=l.next()){var u=c.value;if(void 0===u)return Kt(a,o);var d="string"==typeof u?{target:u}:u,f=d.target,p=d.actions,h=void 0===p?[]:p,m=d.cond,g=void 0===m?function(){return!0}:m,y=void 0===f,v=null!=f?f:a,D=C.states[v];if(g(o,s)){var b=Qt(Xt((y?Vt(h):[].concat(r.exit,h,D.entry).filter(function(t){return t})).map(function(t){return Zt(t,_._options.actions)}),o,s),3),A=b[0],I=b[1],M=b[2],w=null!=f?f:a;return{value:w,context:I,actions:A,changed:f!==a||0<A.length||M,matches:Jt(w)}}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}return Kt(a,o)}};return _}function te(e,n){return e.actions.forEach(function(t){t=t.exec;return t&&t(e.context,n)})}function ee(e){var n=e.initialState,i=Ut.NotStarted,a=new Set,o={_machine:e,send:function(t){i===Ut.Running&&(n=e.transition(n,t),te(n,qt(t)),a.forEach(function(t){return t(n)}))},subscribe:function(t){return a.add(t),t(n),{unsubscribe:function(){return a.delete(t)}}},start:function(t){return t&&(t="object"==typeof t?t:{context:e.config.context,value:t},n={value:t.value,actions:[],context:t.context,matches:Jt(t.value)}),i=Ut.Running,te(n,Wt),o},stop:function(){return i=Ut.Stopped,a.clear(),o},get state(){return n},get status(){return i}};return o}function ne(t,e){var g=e.getCastFn,y=e.applyEventsSynchronously,v=e.emitter;return ee($t({id:"player",context:t,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Gt({lastPlayedEvent:function(t,e){return"CAST_EVENT"===e.type?e.payload.event:t.lastPlayedEvent}}),recordTimeOffset:Gt(function(t,e){var n=t.timeOffset;return"payload"in e&&"timeOffset"in e.payload&&(n=e.payload.timeOffset),G(G({},t),{timeOffset:n,baselineTime:t.events[0].timestamp+n})}),play:function(t){var e,n,i,a=t.timer,o=t.events,s=t.baselineTime,r=t.lastPlayedEvent;a.clear();try{for(var l=Z(o),c=l.next();!c.done;c=l.next())Yt(c.value,s)}catch(t){u={error:t}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(u)throw u.error}}var u=function(t,e){for(var n=t.length-1;0<=n;n--){var i=t[n];if(i.type===V.EventType.Meta&&i.timestamp<=e)return t.slice(n)}return t}(o,s),d=null==r?void 0:r.timestamp;(null==r?void 0:r.type)===V.EventType.IncrementalSnapshot&&r.data.source===V.IncrementalSource.MouseMove&&(d=r.timestamp+(null===(o=r.data.positions[0])||void 0===o?void 0:o.timeOffset)),s<(d||0)&&v.emit(V.ReplayerEvents.PlayBack);var f=new Array,p=new Array;try{for(var h=Z(u),m=h.next();!m.done;m=h.next())!function(t){if(d&&d<s&&(t.timestamp<=d||t===r))return;var e;t.timestamp<s?f.push(t):(e=g(t,!1),p.push({doAction:function(){e(),v.emit(V.ReplayerEvents.EventCast,t)},delay:t.delay}))}(m.value)}catch(t){n={error:t}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}y(f),v.emit(V.ReplayerEvents.Flush),a.addActions(p),a.start()},pause:function(t){t.timer.clear()},resetLastPlayedEvent:Gt(function(t){return G(G({},t),{lastPlayedEvent:null})}),startLive:Gt({baselineTime:function(t,e){return t.timer.toggleLiveMode(!0),t.timer.start(),"TO_LIVE"===e.type&&e.payload.baselineTime?e.payload.baselineTime:Date.now()}}),addEvent:Gt(function(t,e){var n=t.baselineTime,i=t.timer,a=t.events;if("ADD_EVENT"===e.type){var o=e.payload.event;Yt(o,n);var s=a.length-1;if(!a[s]||a[s].timestamp<=o.timestamp)a.push(o);else{for(var e=-1,r=0;r<=s;){var l=Math.floor((r+s)/2);a[l].timestamp<=o.timestamp?r=l+1:s=l-1}-1===e&&(e=r),a.splice(e,0,o)}var n=o.timestamp<n,c=g(o,n);n?c():i.isActive()&&i.addAction({doAction:function(){c(),v.emit(V.ReplayerEvents.EventCast,o)},delay:o.delay})}return G(G({},t),{events:a})})}}))}var ie;function ae(t,e){t=t[e[0]];return 1===e.length?t:ae(t.cssRules[e[1]].cssRules,e.slice(2))}function oe(t){var e=J(t),t=e.pop();return{positions:e,index:t}}function se(t,r){t.forEach(function(t){var e,n,i,a,o,s;if(t.type===ie.Insert)try{Array.isArray(t.index)?(o=(i=oe(t.index)).positions,s=i.index,ae(r.sheet.cssRules,o).insertRule(t.cssText,s)):null!==(e=r.sheet)&&void 0!==e&&e.insertRule(t.cssText,t.index)}catch(t){}else if(t.type===ie.Remove)try{Array.isArray(t.index)?(o=(a=oe(t.index)).positions,s=a.index,ae(r.sheet.cssRules,o).deleteRule(s||0)):null!==(n=r.sheet)&&void 0!==n&&n.deleteRule(t.index)}catch(t){}else t.type===ie.Snapshot?function(i,o){var t;try{var e=Array.from((null===(t=o.sheet)||void 0===t?void 0:t.cssRules)||[]).map(function(t){return t.cssText}),n=Object.entries(e).reverse(),a=e.length;n.forEach(function(t){var e,n=z(t,2),t=n[0],n=n[1],n=i.indexOf(n);if(-1===n||a<n)try{null!==(e=o.sheet)&&void 0!==e&&e.deleteRule(Number(t))}catch(t){}a=n}),i.forEach(function(t,e){var n,i,a;try{(null===(i=null===(n=o.sheet)||void 0===n?void 0:n.cssRules[e])||void 0===i?void 0:i.cssText)!==t&&null!==(a=o.sheet)&&void 0!==a&&a.insertRule(t,e)}catch(t){}})}catch(t){}}(t.cssTexts,r):t.type===ie.SetProperty?ae(r.sheet.cssRules,t.index).style.setProperty(t.property,t.value,t.priority):t.type===ie.RemoveProperty&&ae(r.sheet.cssRules,t.index).style.removeProperty(t.property)})}(he=ie=ie||{})[he.Insert=0]="Insert",he[he.Remove=1]="Remove",he[he.Snapshot=2]="Snapshot",he[he.SetProperty=3]="SetProperty",he[he.RemoveProperty=4]="RemoveProperty";var re=Rt,le="[replayer]",ce={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function ue(t){return t.type==V.EventType.IncrementalSnapshot&&(t.data.source==V.IncrementalSource.TouchMove||t.data.source==V.IncrementalSource.MouseInteraction&&t.data.type==V.MouseInteractions.TouchStart)}var de=(Object.defineProperty(fe.prototype,"timer",{get:function(){return this.service.state.context.timer},enumerable:!1,configurable:!0}),fe.prototype.on=function(t,e){return this.emitter.on(t,e),this},fe.prototype.off=function(t,e){return this.emitter.off(t,e),this},fe.prototype.setConfig=function(e){var n=this;Object.keys(e).forEach(function(t){n.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))},fe.prototype.getMetaData=function(){var t=this.service.state.context.events[0],e=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:e.timestamp,totalTime:e.timestamp-t.timestamp}},fe.prototype.getCurrentTime=function(){return this.timer.timeOffset+this.getTimeOffset()},fe.prototype.getTimeOffset=function(){var t=this.service.state.context;return t.baselineTime-t.events[0].timestamp},fe.prototype.getMirror=function(){return this.mirror},fe.prototype.play=function(t){void 0===t&&(t=0),this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}}),null!==(t=this.iframe.contentDocument)&&void 0!==t&&t.getElementsByTagName("html")[0].classList.remove("rrweb-paused"),this.emitter.emit(V.ReplayerEvents.Start)},fe.prototype.pause=function(t){void 0===t&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof t&&(this.play(t),this.service.send({type:"PAUSE"})),null!==(t=this.iframe.contentDocument)&&void 0!==t&&t.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(V.ReplayerEvents.Pause)},fe.prototype.resume=function(t){void 0===t&&(t=0),console.warn("The 'resume' will be departed in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(V.ReplayerEvents.Resume)},fe.prototype.startLive=function(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})},fe.prototype.addEvent=function(t){var e=this,n=this.config.unpackFn?this.config.unpackFn(t):t;ue(n)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(function(){return e.service.send({type:"ADD_EVENT",payload:{event:n}})})},fe.prototype.enableInteract=function(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"},fe.prototype.disableInteract=function(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"},fe.prototype.resetCache=function(){this.cache=l()},fe.prototype.setupDom=function(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");var t=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&t.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",t.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Ft(this.iframe.contentWindow,this.iframe.contentDocument),H(this.iframe.contentWindow))},fe.prototype.handleResize=function(t){var e,n;this.iframe.style.display="inherit";try{for(var i=Z([this.mouseTail,this.iframe]),a=i.next();!a.done;a=i.next()){var o=a.value;o&&(o.setAttribute("width",String(t.width)),o.setAttribute("height",String(t.height)))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},fe.prototype.applyEventsSynchronously=function(t){var e,n;try{for(var i=Z(t),a=i.next();!a.done;a=i.next()){var o=a.value;switch(o.type){case V.EventType.DomContentLoaded:case V.EventType.Load:case V.EventType.Custom:continue;case V.EventType.FullSnapshot:case V.EventType.Meta:case V.EventType.Plugin:break;case V.EventType.IncrementalSnapshot:if(o.data.source===V.IncrementalSource.MediaInteraction)continue}this.getCastFn(o,!0)()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}this.mousePos&&this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),!(this.mousePos=null)===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null},fe.prototype.getCastFn=function(s,r){var l,c=this;switch(void 0===r&&(r=!1),s.type){case V.EventType.DomContentLoaded:case V.EventType.Load:break;case V.EventType.Custom:l=function(){c.emitter.emit(V.ReplayerEvents.CustomEvent,s)};break;case V.EventType.Meta:l=function(){return c.emitter.emit(V.ReplayerEvents.Resize,{width:s.data.width,height:s.data.height})};break;case V.EventType.FullSnapshot:l=function(){if(c.firstFullSnapshot){if(c.firstFullSnapshot===s)return void(c.firstFullSnapshot=!0)}else c.firstFullSnapshot=!0;c.rebuildFullSnapshot(s,r),c.iframe.contentWindow.scrollTo(s.data.initialOffset)};break;case V.EventType.IncrementalSnapshot:l=function(){var t,e;if(c.applyIncremental(s,r),!r&&(s===c.nextUserInteractionEvent&&(c.nextUserInteractionEvent=null,c.backToNormal()),c.config.skipInactive&&!c.nextUserInteractionEvent)){try{for(var n=Z(c.service.state.context.events),i=n.next();!i.done;i=n.next()){var a=i.value;if(!(a.timestamp<=s.timestamp)&&c.isUserInteraction(a)){a.delay-s.delay>1e4*c.speedService.state.context.timer.speed&&(c.nextUserInteractionEvent=a);break}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}c.nextUserInteractionEvent&&(e=c.nextUserInteractionEvent.delay-s.delay,e={speed:Math.min(Math.round(e/5e3),c.config.maxSpeed)},c.speedService.send({type:"FAST_FORWARD",payload:e}),c.emitter.emit(V.ReplayerEvents.SkipStart,e))}}}return function(){var e,t;l&&l();try{for(var n=Z(c.config.plugins||[]),i=n.next();!i.done;i=n.next())i.value.handler(s,r,{replayer:c})}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}c.service.send({type:"CAST_EVENT",payload:{event:s}});var a,o=c.service.state.context.events.length-1;s===c.service.state.context.events[o]&&(a=function(){o<c.service.state.context.events.length-1||(c.backToNormal(),c.service.send("END"),c.emitter.emit(V.ReplayerEvents.Finish))},s.type===V.EventType.IncrementalSnapshot&&s.data.source===V.IncrementalSource.MouseMove&&s.data.positions.length?setTimeout(function(){a()},Math.max(0,50-s.data.positions[0].timeOffset)):a())}},fe.prototype.rebuildFullSnapshot=function(t,e){var n=this;if(void 0===e&&(e=!1),!this.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&console.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};var i=[];this.mirror.map=v(t.data.node,{doc:this.iframe.contentDocument,afterAppend:function(t){n.collectIframeAndAttachDocument(i,t)},cache:this.cache})[1];var a=this;try{for(var o=Z(i),s=o.next();!s.done;s=o.next()){var r=s.value;!function(e,t){var n;a.attachDocumentToIframe(e,t),a.newDocumentQueue=a.newDocumentQueue.filter(function(t){return t!==e}),t.contentDocument&&(t=(n=t.contentDocument).documentElement,n=n.head,a.insertStyleRules(t,n))}(r.mutationInQueue,r.builtNode)}}catch(t){c={error:t}}finally{try{s&&!s.done&&(l=o.return)&&l.call(o)}finally{if(c)throw c.error}}var l=this.iframe.contentDocument,c=l.documentElement,l=l.head;this.insertStyleRules(c,l),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(V.ReplayerEvents.FullsnapshotRebuilded,t),e||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()},fe.prototype.insertStyleRules=function(t,e){var n=document.createElement("style");t.insertBefore(n,e);var i=["."+this.config.blockClass+" { background: #ccc }","noscript { display: none !important; }"].concat(this.config.insertStyleRules);this.config.pauseAnimation&&i.push("html.rrweb-paused * { animation-play-state: paused !important; }");for(var a=0;a<i.length;a++)n.sheet.insertRule(i[a],a)},fe.prototype.attachDocumentToIframe=function(t,e){var n,i,a=this,o=[];if(!e.contentDocument)for(var s=e.parentNode;s;){if(this.fragmentParentMap.has(s)){var r=s,l=this.fragmentParentMap.get(r);this.restoreRealParent(r,l);break}s=s.parentNode}g(t.node,{doc:e.contentDocument,map:this.mirror.map,hackCss:!0,skipChild:!1,afterAppend:function(t){a.collectIframeAndAttachDocument(o,t)},cache:this.cache});var c=this;try{for(var u=Z(o),d=u.next();!d.done;d=u.next()){var f=d.value;!function(e,t){var n;c.attachDocumentToIframe(e,t),c.newDocumentQueue=c.newDocumentQueue.filter(function(t){return t!==e}),t.contentDocument&&(t=(n=t.contentDocument).documentElement,n=n.head,c.insertStyleRules(t,n))}(f.mutationInQueue,f.builtNode)}}catch(t){n={error:t}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}},fe.prototype.collectIframeAndAttachDocument=function(t,e){var n;!Q(e)||(n=this.newDocumentQueue.find(function(t){return t.parentId===e.__sn.id}))&&t.push({mutationInQueue:n,builtNode:e})},fe.prototype.waitForStylesheetLoad=function(){var e,n,i,t,a,o=this,s=null===(s=this.iframe.contentDocument)||void 0===s?void 0:s.head;s&&(e=new Set,i=this.service.state,this.emitter.on(V.ReplayerEvents.Start,t=function(){i=o.service.state}),this.emitter.on(V.ReplayerEvents.Pause,t),a=function(){o.emitter.off(V.ReplayerEvents.Start,t),o.emitter.off(V.ReplayerEvents.Pause,t)},s.querySelectorAll('link[rel="stylesheet"]').forEach(function(t){t.sheet||(e.add(t),t.addEventListener("load",function(){e.delete(t),0===e.size&&-1!==n&&(i.matches("playing")&&o.play(o.getCurrentTime()),o.emitter.emit(V.ReplayerEvents.LoadStylesheetEnd),n&&window.clearTimeout(n),a())}))}),0<e.size&&(this.service.send({type:"PAUSE"}),this.emitter.emit(V.ReplayerEvents.LoadStylesheetStart),n=window.setTimeout(function(){i.matches("playing")&&o.play(o.getCurrentTime()),n=-1,a()},this.config.loadTimeout)))},fe.prototype.preloadAllImages=function(){var e,t,n=this;this.service.state;function i(){n.service.state}this.emitter.on(V.ReplayerEvents.Start,i),this.emitter.on(V.ReplayerEvents.Pause,i);try{for(var a=Z(this.service.state.context.events),o=a.next();!o.done;o=a.next()){var s,r,l,c=o.value;c.type!==V.EventType.IncrementalSnapshot||c.data.source!==V.IncrementalSource.CanvasMutation||"drawImage"!==c.data.property||"string"!=typeof c.data.args[0]||this.imageMap.has(c)||(null==(l=null==(r=(s=document.createElement("canvas")).getContext("2d"))?void 0:r.createImageData(s.width,s.height))||l.data,JSON.parse(c.data.args[0]),null!=r&&r.putImageData(l,0,0))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},fe.prototype.applyIncremental=function(n,i){var t,e,a=this,o=n.data;switch(o.source){case V.IncrementalSource.Mutation:i&&(o.adds.forEach(function(t){return a.treeIndex.add(t)}),o.texts.forEach(function(t){return a.treeIndex.text(t)}),o.attributes.forEach(function(t){return a.treeIndex.attribute(t)}),o.removes.forEach(function(t){return a.treeIndex.remove(t,a.mirror)}));try{this.applyMutation(o,i)}catch(t){this.warn("Exception in mutation "+(t.message||t),o)}break;case V.IncrementalSource.Drag:case V.IncrementalSource.TouchMove:case V.IncrementalSource.MouseMove:i?(e=o.positions[o.positions.length-1],this.mousePos={x:e.x,y:e.y,id:e.id,debugData:o}):(o.positions.forEach(function(t){var e={doAction:function(){a.moveAndHover(t.x,t.y,t.id,i,o)},delay:t.timeOffset+n.timestamp-a.service.state.context.baselineTime};a.timer.addAction(e)}),this.timer.addAction({doAction:function(){},delay:n.delay-(null===(c=o.positions[0])||void 0===c?void 0:c.timeOffset)}));break;case V.IncrementalSource.MouseInteraction:if(-1===o.id)break;var s,r=new Event(V.MouseInteractions[o.type].toLowerCase());if(!(s=this.mirror.getNode(o.id)))return this.debugNodeNotFound(o,o.id);this.emitter.emit(V.ReplayerEvents.MouseInteraction,{type:o.type,target:s});var l=this.config.triggerFocus;switch(o.type){case V.MouseInteractions.Blur:"blur"in s&&s.blur();break;case V.MouseInteractions.Focus:l&&s.focus&&s.focus({preventScroll:!0});break;case V.MouseInteractions.Click:case V.MouseInteractions.TouchStart:case V.MouseInteractions.TouchEnd:i?(o.type===V.MouseInteractions.TouchStart?this.touchActive=!0:o.type===V.MouseInteractions.TouchEnd&&(this.touchActive=!1),this.mousePos={x:o.x,y:o.y,id:o.id,debugData:o}):(o.type===V.MouseInteractions.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x,o.y,o.id,i,o),o.type===V.MouseInteractions.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===V.MouseInteractions.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===V.MouseInteractions.TouchEnd&&this.mouse.classList.remove("touch-active"));break;case V.MouseInteractions.TouchCancel:i?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:s.dispatchEvent(r)}break;case V.IncrementalSource.Scroll:if(-1===o.id)break;if(i){this.treeIndex.scroll(o);break}this.applyScroll(o);break;case V.IncrementalSource.ViewportResize:this.emitter.emit(V.ReplayerEvents.Resize,{width:o.width,height:o.height});break;case V.IncrementalSource.Input:if(-1===o.id)break;if(i){this.treeIndex.input(o);break}this.applyInput(o);break;case V.IncrementalSource.MediaInteraction:if(!(s=this.mirror.getNode(o.id)))return this.debugNodeNotFound(o,o.id);var c=s;try{o.currentTime&&(c.currentTime=o.currentTime),o.type===D.Pause&&c.pause(),o.type===D.Play&&c.play()}catch(t){this.config.showWarning&&console.warn("Failed to replay media interactions: "+(t.message||t))}break;case V.IncrementalSource.StyleSheetRule:if(!(s=this.mirror.getNode(o.id)))return this.debugNodeNotFound(o,o.id);var u,d=s,f=s.parentNode,p=this.fragmentParentMap.has(f),h=p?null:d.sheet;h||(this.virtualStyleRulesMap.has(s)?u=this.virtualStyleRulesMap.get(s):(u=[],this.virtualStyleRulesMap.set(s,u))),o.adds&&o.adds.forEach(function(t){var e,n,i,a=t.rule,t=t.index;if(h)try{Array.isArray(t)?(n=(e=oe(t)).positions,i=e.index,ae(h.cssRules,n).insertRule(a,i)):(i=void 0===t?void 0:Math.min(t,h.cssRules.length),h.insertRule(a,i))}catch(t){}else null!=u&&u.push({cssText:a,index:t,type:ie.Insert})}),o.removes&&o.removes.forEach(function(t){var e,n,i,t=t.index;if(p)null!=u&&u.push({index:t,type:ie.Remove});else try{Array.isArray(t)?(n=(e=oe(t)).positions,i=e.index,ae(h.cssRules,n).deleteRule(i||0)):null!=h&&h.deleteRule(t)}catch(t){}});break;case V.IncrementalSource.StyleDeclaration:if(!(s=this.mirror.getNode(o.id)))return this.debugNodeNotFound(o,o.id);d=s,f=s.parentNode,f=this.fragmentParentMap.has(f)?null:d.sheet,d=[];f||(this.virtualStyleRulesMap.has(s)?d=this.virtualStyleRulesMap.get(s):this.virtualStyleRulesMap.set(s,d=[])),o.set&&(f?ae(f.rules,o.index).style.setProperty(o.set.property,o.set.value,o.set.priority):d.push(G({type:ie.SetProperty,index:o.index},o.set))),o.remove&&(f?ae(f.rules,o.index).style.removeProperty(o.remove.property):d.push(G({type:ie.RemoveProperty,index:o.index},o.remove)));break;case V.IncrementalSource.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(!(s=this.mirror.getNode(o.id)))return this.debugNodeNotFound(o,o.id);try{var m=s.getContext("2d");if(o.setter)return void(m[o.property]=o.args[0]);var g,y=m[o.property];"drawImage"===o.property&&"string"==typeof o.args[0]&&(g=this.imageMap.get(n),o.args[0]=g),y.apply(m,o.args)}catch(t){this.warnCanvasMutationFailed(o,o.id,t)}break;case V.IncrementalSource.Font:try{var v=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);null!==(t=this.iframe.contentDocument)&&void 0!==t&&t.fonts.add(v)}catch(t){this.config.showWarning&&console.warn(t)}}},fe.prototype.applyMutation=function(l,c){var e,t,u=this;l.removes.forEach(function(e){var n=u.mirror.getNode(e.id);if(!n)return l.removes.find(function(t){return t.id===e.parentId})?void 0:u.warnNodeNotFound(l,e.id);var i=u.mirror.getNode(e.parentId);if(!i)return u.warnNodeNotFound(l,e.parentId);if(e.isShadow&&ot(i)&&(i=i.shadowRoot),u.mirror.removeNodeFromMap(n),i){var a=null,o="__sn"in i?u.fragmentParentMap.get(i):void 0;o&&o.contains(n)?i=o:u.fragmentParentMap.has(n)&&(a=u.fragmentParentMap.get(n),u.fragmentParentMap.delete(n),n=a);try{i.removeChild(n)}catch(t){if(!(t instanceof DOMException))throw t;u.warn("parent could not remove child in mutation",i,o,n,a,l)}}});function n(t){var e;if(!u.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");var n=u.mirror.getNode(t.parentId);if(!n)return(t.node.type===k.Document?u.newDocumentQueue:f).push(t);var i=null;u.iframe.contentDocument.contains?i=u.iframe.contentDocument.contains(n):u.iframe.contentDocument.body.contains&&(i=u.iframe.contentDocument.body.contains(n));var a=0<(null===(e=(a=n).getElementsByTagName)||void 0===e?void 0:e.call(a,"iframe").length);if(c&&i&&!Q(n)&&!a){var o=document.createDocumentFragment();for(u.mirror.map[t.parentId]=o,u.fragmentParentMap.set(o,n),u.storeState(n);n.firstChild;)o.appendChild(n.firstChild);n=o}if(t.node.isShadow&&ot(n)&&(n=n.shadowRoot),a=i=null,t.previousId&&(i=u.mirror.getNode(t.previousId)),t.nextId&&(a=u.mirror.getNode(t.nextId)),p(t))return f.push(t);if(!t.node.rootId||u.mirror.getNode(t.node.rootId)){var s=t.node.rootId?u.mirror.getNode(t.node.rootId):u.iframe.contentDocument;if(Q(n))u.attachDocumentToIframe(t,n);else{var r,l=g(t.node,{doc:s,map:u.mirror.map,skipChild:!0,hackCss:!0,cache:u.cache});if(-1!==t.previousId&&-1!==t.nextId){if(i&&i.nextSibling&&i.nextSibling.parentNode)n.insertBefore(l,i.nextSibling);else if(a&&a.parentNode)n.contains(a)?n.insertBefore(l,a):n.insertBefore(l,null);else{if(n===s)for(;s.firstChild;)s.removeChild(s.firstChild);n.appendChild(l)}Q(l)&&((r=u.newDocumentQueue.find(function(t){return t.parentId===l.__sn.id}))&&(u.attachDocumentToIframe(r,l),u.newDocumentQueue=u.newDocumentQueue.filter(function(t){return t!==r})),l.contentDocument&&(a=(i=l.contentDocument).documentElement,i=i.head,u.insertStyleRules(a,i))),(t.previousId||t.nextId)&&u.legacy_resolveMissingNode(d,n,l,t)}else d[t.node.id]={node:l,mutation:t}}}}var d=G({},this.legacy_missingNodeRetryMap),f=[],p=function(t){var e=null;return t.nextId&&(e=u.mirror.getNode(t.nextId)),null!==t.nextId&&void 0!==t.nextId&&-1!==t.nextId&&!e};l.adds.forEach(function(t){n(t)});for(var i=Date.now();f.length;){var a=_(f);if(f.length=0,500<Date.now()-i){this.warn("Timeout in the loop, please check the resolve tree data:",a);break}try{for(var o=(e=void 0,Z(a)),s=o.next();!s.done;s=o.next()){var r=s.value;this.mirror.getNode(r.value.parentId)?Y(r,function(t){n(t)}):this.debug("Drop resolve tree since there is no parent for the root node.",r)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}Object.keys(d).length&&Object.assign(this.legacy_missingNodeRetryMap,d),l.texts.forEach(function(e){var t=u.mirror.getNode(e.id);if(!t)return l.removes.find(function(t){return t.id===e.id})?void 0:u.warnNodeNotFound(l,e.id);(t=u.fragmentParentMap.has(t)?u.fragmentParentMap.get(t):t).textContent=e.value}),l.attributes.forEach(function(e){var t,n=u.mirror.getNode(e.id);if(!n)return l.removes.find(function(t){return t.id===e.id})?void 0:u.warnNodeNotFound(l,e.id);for(t in u.fragmentParentMap.has(n)&&(n=u.fragmentParentMap.get(n)),e.attributes)if("string"==typeof t){var i=e.attributes[t];if(null===i)n.removeAttribute(t);else if("string"==typeof i)try{n.setAttribute(t,i)}catch(t){u.config.showWarning&&console.warn("An error occurred may due to the checkout feature.",t)}else if("style"===t){var a,o,s=i,r=n;for(a in s)!1===s[a]?r.style.removeProperty(a):s[a]instanceof Array?(o=s[a],r.style.setProperty(a,o[0],o[1])):(o=s[a],r.style.setProperty(a,o))}}})},fe.prototype.applyScroll=function(t){var e=this.mirror.getNode(t.id);if(!e)return this.debugNodeNotFound(t,t.id);if(e===this.iframe.contentDocument)this.iframe.contentWindow.scrollTo({top:t.y,left:t.x,behavior:"smooth"});else try{e.scrollTop=t.y,e.scrollLeft=t.x}catch(t){}},fe.prototype.applyInput=function(t){var e=this.mirror.getNode(t.id);if(!e)return this.debugNodeNotFound(t,t.id);try{e.checked=t.isChecked,e.value=t.text}catch(t){}},fe.prototype.legacy_resolveMissingNode=function(t,e,n,i){var a,o,s=i.previousId,i=i.nextId,s=s&&t[s],i=i&&t[i];s&&(a=s.node,o=s.mutation,e.insertBefore(a,n),delete t[o.node.id],delete this.legacy_missingNodeRetryMap[o.node.id],(o.previousId||o.nextId)&&this.legacy_resolveMissingNode(t,e,a,o)),i&&(a=i.node,o=i.mutation,e.insertBefore(a,n.nextSibling),delete t[o.node.id],delete this.legacy_missingNodeRetryMap[o.node.id],(o.previousId||o.nextId)&&this.legacy_resolveMissingNode(t,e,a,o))},fe.prototype.moveAndHover=function(t,e,n,i,a){var o=this.mirror.getNode(n);if(!o)return this.debugNodeNotFound(a,n);n=W(o,this.iframe),t=t*n.absoluteScale+n.x,n=e*n.absoluteScale+n.y;this.mouse.style.left=t+"px",this.mouse.style.top=n+"px",i||this.drawMouseTail({x:t,y:n}),this.hoverElements(o)},fe.prototype.drawMouseTail=function(e){var t,n,i,a,o,s=this;this.mouseTail&&(a=!0===this.config.mouseTail?ce:Object.assign({},ce,this.config.mouseTail),t=a.lineCap,n=a.lineWidth,i=a.strokeStyle,a=a.duration,o=function(){var e;!s.mouseTail||(e=s.mouseTail.getContext("2d"))&&s.tailPositions.length&&(e.clearRect(0,0,s.mouseTail.width,s.mouseTail.height),e.beginPath(),e.lineWidth=n,e.lineCap=t,e.strokeStyle=i,e.moveTo(s.tailPositions[0].x,s.tailPositions[0].y),s.tailPositions.forEach(function(t){return e.lineTo(t.x,t.y)}),e.stroke())},this.tailPositions.push(e),o(),setTimeout(function(){s.tailPositions=s.tailPositions.filter(function(t){return t!==e}),o()},a/this.speedService.state.context.timer.speed))},fe.prototype.hoverElements=function(t){var e;null!==(e=this.iframe.contentDocument)&&void 0!==e&&e.querySelectorAll(".\\:hover").forEach(function(t){t.classList.remove(":hover")});for(var n=t;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement},fe.prototype.isUserInteraction=function(t){return t.type===V.EventType.IncrementalSnapshot&&(t.data.source>V.IncrementalSource.Mutation&&t.data.source<=V.IncrementalSource.Input)},fe.prototype.backToNormal=function(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(V.ReplayerEvents.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))},fe.prototype.restoreRealParent=function(t,e){(this.mirror.map[e.__sn.id]=e).__sn.type===k.Element&&"textarea"===e.__sn.tagName&&t.textContent&&(e.value=t.textContent),e.appendChild(t),this.restoreState(e)},fe.prototype.storeState=function(t){var e,n;if(t&&t.nodeType===t.ELEMENT_NODE){var i=t;(i.scrollLeft||i.scrollTop)&&this.elementStateMap.set(t,{scroll:[i.scrollLeft,i.scrollTop]}),"STYLE"===i.tagName&&function(t,e){var n;try{var i=Array.from((null===(n=t.sheet)||void 0===n?void 0:n.cssRules)||[]).map(function(t){return t.cssText});e.set(t,[{type:ie.Snapshot,cssTexts:i}])}catch(t){}}(i,this.virtualStyleRulesMap);i=i.children;try{for(var a=Z(Array.from(i)),o=a.next();!o.done;o=a.next()){var s=o.value;this.storeState(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}},fe.prototype.restoreState=function(t){var e,n;if(t.nodeType===t.ELEMENT_NODE){var i,a=t;this.elementStateMap.has(t)&&((i=this.elementStateMap.get(t)).scroll&&(a.scrollLeft=i.scroll[0],a.scrollTop=i.scroll[1]),this.elementStateMap.delete(t));a=a.children;try{for(var o=Z(Array.from(a)),s=o.next();!s.done;s=o.next()){var r=s.value;this.restoreState(r)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}},fe.prototype.restoreNodeSheet=function(t){var e=this.virtualStyleRulesMap.get(t);"STYLE"===t.nodeName&&e&&se(e,t)},fe.prototype.warnNodeNotFound=function(t,e){this.treeIndex.idRemoved(e)?this.warn("Node with id '"+e+"' was previously removed. ",t):this.warn("Node with id '"+e+"' not found. ",t)},fe.prototype.warnCanvasMutationFailed=function(t,e,n){this.warn("Has error on update canvas '"+e+"'",t,n)},fe.prototype.debugNodeNotFound=function(t,e){this.treeIndex.idRemoved(e)?this.debug(le,"Node with id '"+e+"' was previously removed. ",t):this.debug(le,"Node with id '"+e+"' not found. ",t)},fe.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.config.showWarning&&console.warn.apply(console,J([le],t))},fe.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.config.showDebug&&console.log.apply(console,J([le],t))},fe);function fe(t,e){var g=this;if(this.mouseTail=null,this.tailPositions=[],this.emitter=re(),this.legacy_missingNodeRetryMap={},this.cache=l(),this.imageMap=new Map,this.mirror=b(),this.firstFullSnapshot=null,this.newDocumentQueue=[],this.mousePos=null,((this.touchActive=null)==e||!e.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");var n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:ce};this.config=Object.assign({},n,e),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(V.ReplayerEvents.Resize,this.handleResize),this.setupDom(),this.treeIndex=new M,this.fragmentParentMap=new Map,this.elementStateMap=new Map,this.virtualStyleRulesMap=new Map,this.emitter.on(V.ReplayerEvents.Flush,function(){var e,t,n,i,a,o,s=g.treeIndex.flush(),r=s.scrollMap,s=s.inputMap;g.fragmentParentMap.forEach(function(t,e){return g.restoreRealParent(e,t)});try{for(var l=Z(g.virtualStyleRulesMap.keys()),c=l.next();!c.done;c=l.next()){var u=c.value;g.restoreNodeSheet(u)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}g.fragmentParentMap.clear(),g.elementStateMap.clear(),g.virtualStyleRulesMap.clear();try{for(var d=Z(r.values()),f=d.next();!f.done;f=d.next()){var p=f.value;g.applyScroll(p)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}try{for(var h=Z(s.values()),m=h.next();!m.done;m=h.next()){p=m.value;g.applyInput(p)}}catch(t){a={error:t}}finally{try{m&&!m.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}}),this.emitter.on(V.ReplayerEvents.PlayBack,function(){g.firstFullSnapshot=null,g.mirror.reset()});n=new Bt([],(null==e?void 0:e.speed)||n.speed);this.service=ne({events:t.map(function(t){return e&&e.unpackFn?e.unpackFn(t):t}).sort(function(t,e){return t.timestamp-e.timestamp}),timer:n,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(function(t){g.emitter.emit(V.ReplayerEvents.StateChange,{player:t})}),this.speedService=ee($t({id:"speed",context:{normalSpeed:-1,timer:n},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:function(t,e){"payload"in e&&t.timer.setSpeed(e.payload.speed)},recordSpeed:Gt({normalSpeed:function(t){return t.timer.speed}}),restoreSpeed:function(t){t.timer.setSpeed(t.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe(function(t){g.emitter.emit(V.ReplayerEvents.StateChange,{speed:t})});var i,a,n=this.service.state.context.events.find(function(t){return t.type===V.EventType.Meta}),o=this.service.state.context.events.find(function(t){return t.type===V.EventType.FullSnapshot});n&&(n=n.data,i=n.width,a=n.height,setTimeout(function(){g.emitter.emit(V.ReplayerEvents.Resize,{width:i,height:a})},0)),o&&setTimeout(function(){g.firstFullSnapshot||(g.firstFullSnapshot=o,g.rebuildFullSnapshot(o),g.iframe.contentWindow.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(ue)&&this.mouse.classList.add("touch-device")}var pe=Pt.addCustomEvent,he=Pt.freezePage,me=0,ge=!1;function ye(t){t&&t.getAttribute&&null===t.getAttribute("cb-id")&&(t.setAttribute("cb-id",me),me++)}return V.Replayer=de,V.addCustomEvent=pe,V.freezePage=he,V.record=Pt,V.utils=st,V.createCbId=ye,V.cbIdCount=me,V.scrollByAgent=ge,Object.defineProperty(V,"__esModule",{value:!0}),V}({});function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Resampler(t,e,n,i,a){this.fromSampleRate=t,this.toSampleRate=e,this.channels=0|n,this.outputBufferSize=i,this.noReturn=!!a,this.initialize()}!function(c){window.PureJSCarousel=function(t){this.carousel=document.querySelector(t.carousel),this.slides=this.carousel.querySelectorAll(t.slide),this.btnNext=this.carousel.querySelector(t.btnNext)||null,this.btnPrev=this.carousel.querySelector(t.btnPrev)||null,this.activeIndex=t.activeIndex||0,this.oneByOne=t.oneByOne||!1,this.speed=t.speed||400,this.delay=t.delay||0,this.effect=t.effect||"linear",this.infinite=t.infinite||!1,this.autoplay=t.autoplay||!1,this.autoplayDelay=t.autoplayDelay||400,this.autoplayDirection=t.autoplayDirection||"next",this.autoplayTimer=null,this.minPos=null,this.slidesToShow=null,this.maxIndex=null,this.isEnabled=null,this.build()},PureJSCarousel.prototype.build=function(){var t,e,n,i,a=this,o=window.innerWidth,s=window.innerHeight;a.minPos=c(a.carousel).width()-a.slides.length*c(a.slides[0]).width(),a.slidesToShow=Math.round(c(a.carousel).width()/c(a.slides[0]).width()),a.maxIndex=0,a.isEnabled=1,a.carousel.className+=" purejscarousel",a.slidesContainer=document.createElement("div"),a.carousel.insertBefore(a.slidesContainer,a.slides[0]),a.slidesContainer.className+=" purejscarousel-slides-container",!0===a.infinite?(a.slidesContainer.style.marginLeft=-(a.slides[0].offsetWidth*a.slides.length)+"px",a.slidesContainer.style.width=a.slides[0].offsetWidth*a.slides.length*3+"px"):(a.slidesContainer.style.marginLeft="0px",a.slidesContainer.style.width=(c(a.slides[0]).width()+54)*a.slides.length+"px"),("ontouchstart"in window||navigator.maxTouchPoints)&&(a.slidesContainer.addEventListener("touchstart",function(t){this.setAttribute("data-start-touch-x",t.targetTouches[0].pageX),this.setAttribute("data-start-margin",parseInt(this.style.marginLeft))}),a.slidesContainer.addEventListener("touchmove",function(t){this.setAttribute("data-active-touch-x",t.targetTouches[0].pageX),this.style.marginLeft=parseInt(this.getAttribute("data-start-margin"))+(parseInt(this.getAttribute("data-active-touch-x"))-parseInt(this.getAttribute("data-start-touch-x")))+"px"}),a.slidesContainer.addEventListener("touchend",function(){var t=0<parseInt(this.getAttribute("data-active-touch-x"))-parseInt(this.getAttribute("data-start-touch-x"))?"prev":"next",e=(!0===a.oneByOne?c(a.slidesContainer?.children[0]):c(a.carousel)).width();Math.abs(parseInt(this.getAttribute("data-active-touch-x"))-parseInt(this.getAttribute("data-start-touch-x")))>=e/2&&(!0===a.infinite||"next"==t&&a.activeIndex<a.maxIndex||"prev"==t&&0<a.activeIndex)?"next"==t?a.goToNextSlide():a.goToPrevSlide():("undefined"!==a.slidesContainer.style.transition&&(a.slidesContainer.style.transition="margin-left "+a.speed+"ms "+a.effect+" "+a.delay+"ms"),a.slidesContainer.style.marginLeft=parseInt(this.getAttribute("data-start-margin"))+"px","undefined"===a.slidesContainer.style.transition?"undefined"!==a.slidesContainer.style.transition&&(a.slidesContainer.style.transition=null):setTimeout(function(){"undefined"!==a.slidesContainer.style.transition&&(a.slidesContainer.style.transition=null)},a.speed+a.delay))})),a.dotsContainer=document.createElement("div"),a.carousel.insertBefore(a.dotsContainer,a.slides[0]),a.dotsContainer.className+=" purejscarousel-dots-container",a.dots=[],t=!0===a.oneByOne?!0===a.infinite?a.slides.length:(c(a.slidesContainer).width()-c(a.carousel).width())/c(a.slides[0]).width()+1:!0===a.infinite?Math.ceil(a.slidesContainer.offsetWidth/a.carousel.offsetWidth/3):Math.ceil(c(a.slidesContainer).width()/c(a.carousel).width());for(e=0;e<t;e++){var r=document.createElement("button");r.className="purejscarousel-dot"+(0===e?" active":""),r.setAttribute("data-index",e),r.setAttribute("type","button"),function(t,e){window.addEventListener?t.addEventListener("click",function(){e.goToSlide(parseInt(this.getAttribute("data-index")))}):window.attachEvent?t.attachEvent("onclick",function(){e.goToSlide(parseInt(this.getAttribute("data-index")))}):t.onclick=function(){e.goToSlide(parseInt(this.getAttribute("data-index")))}}(r,a),a.dots.push(r),a.dotsContainer.appendChild(r)}for(a.maxIndex=t-1,a.btnPrev?a.btnPrev.setAttribute("data-is-native",1):(a.btnPrev=document.createElement("button"),a.btnPrev.setAttribute("class",""),a.btnPrev.setAttribute("type","button"),a.btnPrev.setAttribute("data-is-native",0),a.carousel.insertBefore(a.btnPrev,a.slides[0])),a.btnPrev.className+=" purejscarousel-btn purejscarousel-btn-prev fa fa-sort-asc hideNow",window.addEventListener?a.btnPrev.addEventListener("click",function(){a.goToPrevSlide()}):window.attachEvent?a.btnPrev.attachEvent("onclick",function(){a.goToPrevSlide()}):a.btnPrev.onclick=function(){a.goToPrevSlide()},0===a.activeIndex&&(a.btnPrev.disabled=!0),a.btnNext?a.btnNext.setAttribute("data-is-native",1):(a.btnNext=document.createElement("button"),a.btnNext.setAttribute("class",""),a.btnNext.setAttribute("type","button"),a.btnNext.setAttribute("data-is-native",0),a.carousel.insertBefore(a.btnNext,a.slides[0])),a.btnNext.className+=" purejscarousel-btn purejscarousel-btn-next fa fa-sort-asc",window.addEventListener?a.btnNext.addEventListener("click",function(){a.goToNextSlide()}):window.attachEvent?a.btnNext.attachEvent("onclick",function(){a.goToNextSlide()}):a.btnNext.onclick=function(){a.goToNextSlide()},a.activeIndex===a.maxIndex&&(a.btnNext.disabled=!0),e=0;e<a.slides.length;e++)a.slides[e].className+=" purejscarousel-slide",a.slidesContainer.appendChild(a.slides[e]);if(!0===a.infinite){for(e=0;e<a.slides.length;e++)(i=a.slides[e].cloneNode(!0)).className+=" purejscarousel-slide-clone",a.slidesContainer.appendChild(i);for(e=0;e<a.slides.length;e++)(i=a.slides[e].cloneNode(!0)).className+=" purejscarousel-slide-clone",a.slidesContainer.insertBefore(i,a.slidesContainer.querySelectorAll(".purejscarousel-slide")[e])}function l(){this.carousel&&(this.minPos=this.carousel.offsetWidth-this.slides.length*this.slides[0].offsetWidth),window.innerWidth===o&&window.innerHeight===s||(clearTimeout(n),n=setTimeout(function(){a.destroy(),a.build()},400))}window.addEventListener?window.addEventListener("resize",l):window.attachEvent?window.attachEvent("onresize",l):window.onresize=l,a.autoplayTimer=!0===a.autoplay?"next"===a.autoplayDirection?setTimeout(function(){a.goToNextSlide()},a.autoplayDelay):setTimeout(function(){a.goToPrevSlide()},a.autoplayDelay):null},PureJSCarousel.prototype.computeResize=function(){this.carousel&&(this.slidesContainer.offsetLeft-this.slides[0].offsetWidth<=this.minPos?this.btnNext.classList.add("hideNow"):this.btnNext.classList.remove("hideNow"),this.btnPrev.classList.remove("hideNow"),2<this.dots.length&&-1!==this.dots[1].className.indexOf("active")?this.btnPrev.classList.add("hideNow"):this.btnPrev.classList.remove("hideNow"),this.btnNext.classList.remove("hideNow"))},PureJSCarousel.prototype.enableControl=function(){var t;for(this.btnNext.disabled=!1,this.btnPrev.disabled=!1,t=0;t<this.dots.length;t++)this.dots[t].disabled=!1;!(this.dots[this.activeIndex].disabled=!0)===this.infinite&&(this.activeIndex===this.maxIndex&&(this.btnNext.disabled=!0),0===this.activeIndex&&(this.btnPrev.disabled=!0)),("ontouchstart"in window||navigator.maxTouchPoints)&&(this.slidesContainer.disabled=!1)},PureJSCarousel.prototype.disableControl=function(){var t;for(this.btnNext.disabled=!0,this.btnPrev.disabled=!0,t=0;t<this.dots.length;t++)this.dots[t].disabled=!0;("ontouchstart"in window||navigator.maxTouchPoints)&&(this.slidesContainer.disabled=!0)},PureJSCarousel.prototype.goToNextSlide=function(){var t;this.carousel&&(this.minPos=this.carousel.offsetWidth-this.slides.length*this.slides[0].offsetWidth),!1===this.btnNext.disabled&&(t=!0===this.infinite?this.activeIndex+1>this.maxIndex?0:this.activeIndex+1:this.activeIndex+1>this.maxIndex?this.activeIndex:this.activeIndex+1,this.goToSlide(t,"next","dirBtn")),!(this.slidesContainer.offsetLeft-this.slides[0].offsetWidth<=this.minPos)||this.carousel.offsetWidth<350&&t<this.slides.length-1?this.btnNext.classList.remove("hideNow"):this.btnNext.classList.add("hideNow"),this.btnPrev.classList.remove("hideNow")},PureJSCarousel.prototype.goToPrevSlide=function(){var t;this.carousel&&(this.minPos=this.carousel.offsetWidth-this.slides.length*this.slides[0].offsetWidth),!1===this.btnPrev.disabled&&(t=!0===this.infinite&&this.activeIndex-1<0?this.maxIndex:this.activeIndex-1,this.goToSlide(t,"prev","dirBtn")),2<this.dots.length&&-1!==this.dots[1].className.indexOf("active")?this.btnPrev.classList.add("hideNow"):this.btnPrev.classList.remove("hideNow"),this.btnNext.classList.remove("hideNow")},PureJSCarousel.prototype.goToSlide=function(e,t,n){var i,a=this,o=t||(e>this.activeIndex?"next":"prev"),s=this.slidesContainer.offsetWidth/(!0===this.infinite?3:1),r=(!0===this.oneByOne?this.slides[0]:this.carousel).offsetWidth,t=!0===this.infinite?-s:Math.max(-r*this.activeIndex,this.minPos),n="dirBtn"===n?r:Math.abs(r*(this.activeIndex-e));function l(){var t;if("transition"in document.body.style&&(a.slidesContainer.style.transition=null,a.slidesContainer.removeEventListener("transitionend",l)),a.dots[a.activeIndex].className=a.dots[a.activeIndex].className.replace(" active",""),a.activeIndex=e,a.dots[a.activeIndex].className+=" active",!0===a.infinite){for(t=0;t<i;t++)"next"===o?a.slidesContainer.appendChild(a.slidesContainer.children[0]):a.slidesContainer.insertBefore(a.slidesContainer.lastElementChild,a.slidesContainer.children[0]);a.slidesContainer.style.marginLeft=-a.slidesContainer.offsetWidth/3+"px"}a.enableControl(),a.autoplayTimer=!0===a.autoplay?"next"===a.autoplayDirection?setTimeout(function(){a.goToNextSlide()},a.autoplayDelay):setTimeout(function(){a.goToPrevSlide()},a.autoplayDelay):null}!1===this.oneByOne&&("next"===o&&e===this.maxIndex||"prev"===o&&this.activeIndex===this.maxIndex)&&(n=n+s-(this.maxIndex+1)*r),i=n/this.slides[0].offsetWidth,n=!0===this.infinite?"next"===o?t-n:t+n:"next"===o?Math.max(this.minPos,t-n):Math.min(0,t+n),this.disableControl(),"transition"in document.body.style&&(this.slidesContainer.style.transition="margin-left "+this.speed+"ms "+this.effect+" "+this.delay+"ms"),this.slidesContainer.style.marginLeft=n+"px","transition"in document.body.style?(this.slidesContainer.addEventListener("transitionend",l),a.enableControl()):l()},PureJSCarousel.prototype.destroy=function(){var t,e;if(1===this.isEnabled){if(this.isEnabled=0,this.carousel.className=this.carousel.className.replace(" purejscarousel",""),this.carousel.removeChild(this.dotsContainer),"1"===this.btnNext.getAttribute("data-is-native").toString()?this.btnNext.className=this.btnNext.className.replace(" purejscarousel-btn purejscarousel-btn-next",""):(this.carousel.removeChild(this.btnNext),this.btnNext=null),"1"===this.btnPrev.getAttribute("data-is-native").toString()?this.btnPrev.className=this.btnPrev.className.replace(" purejscarousel-btn purejscarousel-btn-prev",""):(this.carousel.removeChild(this.btnPrev),this.btnPrev=null),!0===this.infinite)for(t=this.carousel.querySelectorAll(".purejscarousel-slide-clone"),e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e]);for(e=0;e<this.slides.length;e++)this.slides[e].className=this.slides[e].className.replace(" pure-js-carousel-slide",""),this.carousel.insertBefore(this.slides[e],this.slidesContainer);this.carousel.removeChild(this.slidesContainer),this.minPos=null,this.slidesToShow=null,this.maxIndex=null,!(this.isEnabled=null)===this.autoplay&&(clearTimeout(this.autoplayTimer),this.autoplayTimer=null)}}}($),window.KoreWidgetSDK=function(){var t,e,n;if(window&&window.KoreSDK&&window.KoreSDK.dependencies&&window.KoreSDK.dependencies.jQuery)t=window.KoreSDK.dependencies.jQuery;else t=window.jQuery;if(window.jstz)e=window.jstz;else e=requireKr(2).jstz;if(window.PerfectScrollbar&&typeof PerfectScrollbar==="function")n=window.PerfectScrollbar;return function(g,e,y){var s;function a(t){this.init(t);this.initVariables();this.jqueryManupulations();this.addPolyFils();var e=this;n()}function n(){var t=window.addEventListener?"addEventListener":"attachEvent";var e=window[t];var n=t=="attachEvent"?"onmessage":"message";e(n,function(t){if(t.data&&t.data.event){var e=t.data;switch(e.event){case"formEvent":o(t.data);break;default:break}}},false)}a.prototype=Object.create(g.prototype);a.prototype.addPolyFils=function(){var t=this;if(!Array.from)Array.from=function(){var e=Object.prototype.toString;var u=function(t){return typeof t==="function"||e.call(t)==="[object Function]"};var n=function(t){var e=Number(t);if(isNaN(e))return 0;if(e===0||!isFinite(e))return e;return(e>0?1:-1)*Math.floor(Math.abs(e))};var i=Math.pow(2,53)-1;var d=function(t){var e=n(t);return Math.min(Math.max(e,0),i)};return function t(e){var n=this;var i=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var a=arguments.length>1?arguments[1]:void undefined;var o;if(typeof a!=="undefined"){if(!u(a))throw new TypeError("Array.from: when provided, the second argument must be a function");if(arguments.length>2)o=arguments[2]}var s=d(i.length);var r=u(n)?Object(new n(s)):new Array(s);var l=0;var c;while(l<s){c=i[l];if(a)r[l]=typeof o==="undefined"?a(c,l):a.call(o,c,l);else r[l]=c;l+=1}r.length=s;return r}}()};a.prototype.jqueryManupulations=function(){var i=this;g.prototype.tmplProxy=function(t,e,n){return this.tmpl(g.extend(i.getTemplateMethods(),t),e,n)}};a.prototype.initVariables=function(){this.vars={};var t=this.vars;t.timezone=e.determine();t.latitude="";t.longitude="";t.initialWidgetData={};t.cacheData=[]};a.prototype.show=function(t,e){var a=this;var o=a.vars.initialWidgetData;a.config.container=e||{};window.koreWidgetSDKInstance=a;var n=a.vars.timezone.name();var i=a.vars.latitude;var s=a.vars.longitude;var r=a.config;a.getServerDataGen("/widgetsdk/"+r.botOptions.botInfo._id+"/panels?resolveWidgets=true&from="+r.botOptions.userIdentity,"get").done(function(t){if(t&&t.length)t.sort(function(t,e){var n=new Date(t.lMod).getTime();var i=new Date(e.lMod).getTime();return i-n});o.panels=t;var e=[];for(var n=0;n<o.panels.length;n++){if(o.panels[n].widgets&&o.panels[n].widgets.length)o.panels[n].widgets.forEach(function(t){if(!t.id)t.id=t._id});e.push(o.panels[n])}if(e.length){g(".kore-chat-window .kr-wiz-menu-chat").removeClass("hide");g(".kore-chat-window").addClass("has-panels")}var i=g(a.getTemplate("menu")).tmplProxy({panelData:e,helpers:b,baseUrl:baseUrl,botDetails:a.config.botOptions.botInfo});a.bindTemplateEvents(i,"menu",e);if(g(a.config.container.menu).find(".menuItemCntr").length>0)g(a.config.container.menu).find(".menuItemCntr").remove();g(a.config.container.menu).addClass("kr-wiz-menu-css");g(a.config.container.menu).append(i);if(y)if(!a.vars.menuPSObj)a.vars.menuPSObj=new y(g(a.config.container.menu).find(".menuItemBox").get(0),{suppressScrollX:true});else a.vars.menuPSObj.update();a.maintainCache();setTimeout(function(){a.triggerEvent("onPanelsLoaded")},100)})};function o(t){if(t&&t.metaData&&t.metaData.queryParams&&t.metaData.queryParams.widgetId){var e=g(".widgetPanel#"+t.metaData.queryParams.widgetId);var n=e.find(".webFormWidget").attr("paneldetail");var i=JSON.parse(n);if(t.action==="formCancel"||t.action==="formClose")s.refreshElement(n);else{var a={success:true,successMsg:"Form Submitted Successfully"};var o=g(s.getTemplate("webForm")).tmplProxy({tempdata:a,panelDetail:i});s.bindTemplateEvents(o,"webForm");e.find(".widgetContentPanel ").html(o)}}e.find("button").addClass("active");setTimeout(function(){if(e.find("button").length)s.refreshElement(n)},5e3)}a.prototype.maintainCache=function(){var e=this;var t=e.vars.initialWidgetData;var n=e.vars.cacheData;var i=0;for(var a=0;a<t.panels.length;a++)for(var o=0;o<t.panels[a].widgets.length;o++)if(t.panels[a].widgets[o].type==="List"&&t.panels[a].widgets[o].priority){var s=t.panels[a].widgets[o].hook.api;if(t.panels[a].widgets[o].hook.params)s=t.panels[a].widgets[o].hook.api+"?"+g.param(t.panels[a].widgets[o].hook.params);n.push({api:s,response:e.getServerDataGen(t.panels[a].widgets[o].hook.api,t.panels[a].widgets[o].hook.method,t.panels[a].widgets[o].hook.body,t.panels[a].widgets[o].hook.params).done(function(t){e.modifyJSON(i++)})})}else if(t.panels[a].widgets[o].type==="FilteredList"&&t.panels[a].widgets[o].priority)for(var r=0;r<t.panels[a].widgets[o].filters.length;r++){var s=t.panels[a].widgets[o].filters[r].hook.api;if(t.panels[a].widgets[o].filters[r].hook.params)s=t.panels[a].widgets[o].filters[r].hook.api+"?"+g.param(t.panels[a].widgets[o].filters[r].hook.params);n.push({api:s,response:e.getServerDataGen(t.panels[a].widgets[o].filters[r].hook.api,t.panels[a].widgets[o].filters[r].hook.method,t.panels[a].widgets[o].filters[r].hook.body,t.panels[a].widgets[o].filters[r].hook.params).done(function(t){e.modifyJSON(i++)})})}};a.prototype.modifyJSON=function(t){var e=this;var n=e.vars.initialWidgetData;var i=e.vars.cacheData;if(t<n.panels.length)return;else for(var a=0;a<i.length;a++)if(i[a].response&&i[a].response.responseJSON)i[a].response=i[a].response.responseJSON;else i[a].response=i[a].response};a.prototype.getTemplate=function(t){var e='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">        <div class="menuItemCntr">        <div class="sdkBotIcon" {{if botDetails && botDetails.name}} title="${botDetails.name}"{{/if}}>        <img aria-hidden="true" class="menuIconMobile" onClick="openPanel(\'closePanel\',\''+" "+"','"+"true"+'\')"  src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDcwcHgiIGhlaWdodD0iNDcwcHgiIHZpZXdCb3g9IjAgMCA0NzAgNDcwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1My4yICg3MjY0MykgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+bWVudS1pY29uPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Im1lbnUtaWNvbiIgZmlsbD0iIzc2NzY4OCIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPHBhdGggZD0iTTUzLjMzMywxMDYuNjY3IEw0MTYsMTA2LjY2NyBDNDQ1LjQxNywxMDYuNjY3IDQ2OS4zMzMsODIuNzQgNDY5LjMzMyw1My4zMzQgQzQ2OS4zMzMsMjMuOTI4IDQ0NS40MTcsMCA0MTYsMCBMNTMuMzMzLDAgQzIzLjkxNywwIDAsMjMuOTI3IDAsNTMuMzMzIEMwLDgyLjczOSAyMy45MTcsMTA2LjY2NyA1My4zMzMsMTA2LjY2NyBaIiBpZD0iUGF0aCI+PC9wYXRoPgogICAgICAgICAgICA8cGF0aCBkPSJNNDE2LDE4MS4zMzMgTDUzLjMzMywxODEuMzMzIEMyMy45MTcsMTgxLjMzMyAwLDIwNS4yNiAwLDIzNC42NjcgQzAsMjY0LjA3NCAyMy45MTcsMjg4IDUzLjMzMywyODggTDQxNiwyODggQzQ0NS40MTcsMjg4IDQ2OS4zMzMsMjY0LjA3MyA0NjkuMzMzLDIzNC42NjcgQzQ2OS4zMzMsMjA1LjI2MSA0NDUuNDE3LDE4MS4zMzMgNDE2LDE4MS4zMzMgWiIgaWQ9IlBhdGgiPjwvcGF0aD4KICAgICAgICAgICAgPHBhdGggZD0iTTQxNiwzNjIuNjY3IEw1My4zMzMsMzYyLjY2NyBDMjMuOTE3LDM2Mi42NjcgMCwzODYuNTk0IDAsNDE2IEMwLDQ0NS40MDYgMjMuOTE3LDQ2OS4zMzMgNTMuMzMzLDQ2OS4zMzMgTDQxNiw0NjkuMzMzIEM0NDUuNDE3LDQ2OS4zMzMgNDY5LjMzMyw0NDUuNDA2IDQ2OS4zMzMsNDE2IEM0NjkuMzMzLDM4Ni41OTQgNDQ1LjQxNywzNjIuNjY3IDQxNiwzNjIuNjY3IFoiIGlkPSJQYXRoIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=" >        <img aria-hidden="true" src="${botDetails.icon}" onClick="openPanel(\'closePanel\',\''+" "+"','"+"true"+'\')" class="iconBot" onerror="this.onerror=null;this.src=\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzBweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMzAgMzAiIHZlcnNpb249IjEuMSIgeG1sbnM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DYyMTc3OSwxMy40MjgyMDMzIDIwLjA3MTc5NjgsMTQgMTksMTQgQzE3LjM0MzE0NTgsMTQgMTYsMTIuNjU2ODU0MiAxNiwxMSBDMTYsOS4zNDMxNDU3NSAxNy4zNDMxNDU4LDggMTksOCBMMTksOCBaIE0xOSwxOCBDMTguNDQ3NzE1MywxOCAxOCwxOC40NDc3MTUzIDE4LDE5IEMxOCwxOS41NTIyODQ3IDE4LjQ0NzcxNTMsMjAgMTksMjAgQzE5LjU1MjI4NDcsMjAgMjAsMTkuNTUyMjg0NyAyMCwxOSBDMjAsMTguNDQ3NzE1MyAxOS41NTIyODQ3LDE4IDE5LDE4IFogTTE5LDE2IEMyMC42NTY4NTQyLDE2IDIyLDE3LjM0MzE0NTggMjIsMTkgQzIyLDIwLjY1Njg1NDIgMjAuNjU2ODU0MiwyMiAxOSwyMiBDMTcuMzQzMTQ1OCwyMiAxNiwyMC42NTY4NTQyIDE2LDE5IEMxNiwxNy4zNDMxNDU4IDE3LjM0MzE0NTgsMTYgMTksMTYgWiIgaWQ9IlNoYXBlIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\';">        <span  aria-hidden="true" class="botName">${botDetails.name}</span>        </div>          <div tabindex="0" class="menuItemBox" tabindex="0" aria-live="assertive" aria-label="Panels List">              {{each(key, msgItem) panelData}}              <div aria-live="polite" role="region" tabindex="0" onClick="openPanel(\'${msgItem._id}\')" class="menuItemContainer {{if msgItem && msgItem._id}}${msgItem._id}{{/if}}" {{if msgItem && msgItem.name}}title="${msgItem.name}"{{/if}}>                  <img src="${msgItem.icon}" class="menuItem" panels-menu-id="${msgItem._id}" id="${msgItem.name}"  onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/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z6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';">                 <span role="listitem" class="panelNameTooltip">${msgItem.name}</span>              </div>              {{/each}}          </div>          <div class="sdkThemeContainer" aria-live="polite" title="Themes">          <i role="region" aria-label="Select a theme for widgets"  tabindex="0" class="icon-More dropbtnWidgt sdkThemeIcon"  onclick="showDropdown(this)"></i>          <ul class="dropdown-contentWidgt  rmpmW themeContent" aria-live="polite" role="list" style="list-style:none;">                  <li role="heading" class="themeTitle">Theme</li>                  <li role="listitem" class="dropdown-item action themeName" id="defaultTheme-kore">Theme One<span></span></li>                  <li role="listitem" class="dropdown-item action themeName" id="darkTheme-kore">Theme Two<span></span></li>                  <li role="listitem" class="dropdown-item action themeName" id="defaultTheme-kora">Theme Three<span></span></li>                  <li role="listitem" class="dropdown-item action themeName" id="darkTheme-kora">Theme Four<span></span></li>          </ul>          </div>        </div>      <\/script>';var n='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="headerLeft">            <p class="headerWidgetTitle newHeader">${widgetData.title}</p>            {{if tempData && tempData.description}}            <p class="headerWidgetDesc" id="widgetDisc">${tempData.description}</p>            {{/if}}          </div>          {{if tempData && ((tempData.sortOptions && tempData.sortOptions.length)|| (tempData && tempData.headerOptions && (tempData.headerOptions.type==="text") && tempData.headerOptions.text) || (tempData.headerOptions && tempData.headerOptions.type==="menu" && tempData.headerOptions.menu && tempData.headerOptions.menu.length) || (tempData.headerOptions && tempData.headerOptions.type==="image" && tempData.headerOptions && tempData.headerOptions.image && tempData.headerOptions.image.image_src) || (tempData.filterOptions && tempData.filterOptions.length) || (tempData.headerOptions && tempData.headerOptions.type==="button" && tempData.headerOptions.button && tempData.headerOptions.button.title) || (tempData.headerOptions && tempData.headerOptions.type==="url" && tempData.headerOptions.url && tempData.headerOptions.url.title))}}            <div class="headerRight">                {{if tempData && tempData.sortOptions && tempData.sortOptions.length}}                  <div class="headerTitleSorting">                    <i class="icon-More dropbtnWidgt sortingIcon"  onclick="showDropdown(this)"></i>                    <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                    {{each(key1, sort) tempData.sortOptions}}                             <li class="dropdown-item action {{if sort.isSelect}}selected{{/if}}" sort-obj ="${JSON.stringify(sort)}" action-type="sortOptions">${sort.title}<span class="selectedFilterTick"></span></li>                    {{/each}}                     </ul>                  </div>                {{/if}}                {{if tempData && tempData.filterOptions && tempData.filterOptions.length}}                  <div class="headerTitleFilters action" action-type="filter" filterObj= "${JSON.stringify(tempData)}"></div>                {{/if}}                {{if tempData && tempData.headerOptions && tempData.headerOptions.type==="button" && tempData.headerOptions.button && tempData.headerOptions.button.title}}                  <div class="headerTitleBTN action" action-type="default" actionObj="${JSON.stringify(tempData.headerOptions.button)}">${tempData.headerOptions.button.title}</div>                {{/if}}                {{if tempData && tempData.headerOptions && tempData.headerOptions.type==="text" && tempData.headerOptions.text}}                  <div class="headerTitleTEXT" action-type="default">${tempData.headerOptions.text}</div>                {{/if}}                {{if tempData && tempData.headerOptions && tempData.headerOptions.type==="url" && tempData.headerOptions.url && tempData.headerOptions.url.title}}                  <div class="headerTitleURL action" action-type="url" actionObj="${JSON.stringify(tempData.headerOptions.url)}">${tempData.headerOptions.url.title}</div>                {{/if}}                {{if tempData && tempData.headerOptions && tempData.headerOptions.type==="image" && tempData.headerOptions.image && tempData.headerOptions.image.image_src}}                <div class="headerTitleIMG action" action-type="default" actionObj="${JSON.stringify(tempData.headerOptions.image)}"><img src="${tempData.headerOptions.image.image_src}" class="headerIcon"></div>                {{/if}}                {{if tempData && tempData.headerOptions && tempData.headerOptions.type==="menu" && tempData.headerOptions.menu && tempData.headerOptions.menu.length}}                <div class="headerTitleMenu">                <i class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)"></i>                <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                {{each(key1, menuBtn) tempData.headerOptions.menu}}                         <li class="dropdown-item action" actionObj="${JSON.stringify(menuBtn)}" action-type="default">${menuBtn.title}</li>                 {{/each}}                 </ul>                </div>                {{/if}}            </div>          {{/if}}      <\/script>';var i='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="mainTemplateCntr" role="heading" id="${widgetData._id}" {{if panelDetail}}panelDetail="${JSON.stringify(panelDetail)}{{/if}}">              <div class="widgetTitle">              <img class="menuIconMobile" tabindex="0"  onClick="openPanel(\'closePanel\',\''+" "+"','"+"true"+'\')"  src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDcwcHgiIGhlaWdodD0iNDcwcHgiIHZpZXdCb3g9IjAgMCA0NzAgNDcwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1My4yICg3MjY0MykgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+bWVudS1pY29uPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Im1lbnUtaWNvbiIgZmlsbD0iIzc2NzY4OCIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPHBhdGggZD0iTTUzLjMzMywxMDYuNjY3IEw0MTYsMTA2LjY2NyBDNDQ1LjQxNywxMDYuNjY3IDQ2OS4zMzMsODIuNzQgNDY5LjMzMyw1My4zMzQgQzQ2OS4zMzMsMjMuOTI4IDQ0NS40MTcsMCA0MTYsMCBMNTMuMzMzLDAgQzIzLjkxNywwIDAsMjMuOTI3IDAsNTMuMzMzIEMwLDgyLjczOSAyMy45MTcsMTA2LjY2NyA1My4zMzMsMTA2LjY2NyBaIiBpZD0iUGF0aCI+PC9wYXRoPgogICAgICAgICAgICA8cGF0aCBkPSJNNDE2LDE4MS4zMzMgTDUzLjMzMywxODEuMzMzIEMyMy45MTcsMTgxLjMzMyAwLDIwNS4yNiAwLDIzNC42NjcgQzAsMjY0LjA3NCAyMy45MTcsMjg4IDUzLjMzMywyODggTDQxNiwyODggQzQ0NS40MTcsMjg4IDQ2OS4zMzMsMjY0LjA3MyA0NjkuMzMzLDIzNC42NjcgQzQ2OS4zMzMsMjA1LjI2MSA0NDUuNDE3LDE4MS4zMzMgNDE2LDE4MS4zMzMgWiIgaWQ9IlBhdGgiPjwvcGF0aD4KICAgICAgICAgICAgPHBhdGggZD0iTTQxNiwzNjIuNjY3IEw1My4zMzMsMzYyLjY2NyBDMjMuOTE3LDM2Mi42NjcgMCwzODYuNTk0IDAsNDE2IEMwLDQ0NS40MDYgMjMuOTE3LDQ2OS4zMzMgNTMuMzMzLDQ2OS4zMzMgTDQxNiw0NjkuMzMzIEM0NDUuNDE3LDQ2OS4zMzMgNDY5LjMzMyw0NDUuNDA2IDQ2OS4zMzMsNDE2IEM0NjkuMzMzLDM4Ni41OTQgNDQ1LjQxNywzNjIuNjY3IDQxNiwzNjIuNjY3IFoiIGlkPSJQYXRoIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=">              <img class="widgetMobileIcon"src="${widgetData.icon}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAA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bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';">              <span aria-hidden="true" class="panelWidgetName">${widgetData.name}</span>              <span class="panelHeaderActions">                <span onClick="refreshElement(\'${JSON.stringify(panelDetail)}\',\'refreshPanel\')" class="panelRefresh"></span>                <span class="panelSetting"></span>                <span class="panelMin"></span>                <span onClick="openPanel(\'${widgetData._id}\')" class="panelClose"></span>              </span>              </div>              <div role="contentinfo" aria-live="assertive" aria-relevant="additions all" class="mainTemplateBdr {{if widgetData.widgets && widgetData.widgets.length > 1}}scroll{{else}}scroll{{/if}}">                  {{each(key1, widget) widgetData.widgets}}                       <div class="widgetPanel" id="${widget.id}">                      {{if widget && widget.title}}                      <div class="panelHeader" >                        <div class="headerLeft fullWidthTitle">                          <p class="headerWidgetTitle">${widget.title}</p>                        </div>                      </div>                      {{/if}}                          {{if widget && widget.filterOptions}}                              <div id="${widget.id}"  class="widgetContParent">                                  <div class="filter">                                      <ul class="filterCntr">                                          {{each(key, widgetFilter) widget.filterOptions}}                                               <li class="{{if key === 0}}active{{else}}unActive{{/if}}" style="background: ${widgetData.theme};" id="${widgetFilter.id}" onclick="filterTabs(\'.mainTemplateCntr\',\'${widget.id}\',\'${widgetFilter.id}\')">${widgetFilter.title}</li>                                          {{/each}}                                      </ul>                                      <div class="progress"><div  class="slider"> <div class="line"></div><div class="subline inc"></div> <div class="subline dec"></div></div></div>                                      {{each(key, widgetFilter) widget.filterOptions}}                                           <div {{if widgetData.widgets && widgetData.widgets.length === 1}} onscroll="scrollData(\'${JSON.stringify(panelDetail)}\',\'${JSON.stringify(widgetFilter)}\',\'maintemplate\',this)" {{/if}}  class="widgetContentPanel ${widget.id}_content  {{if widgetData.widgets && widgetData.widgets.length === 1}}scroll{{/if}}" id="${widgetFilter.id}_content" {{if key > 0}}style="display: none;"{{/if}}><div class="loaderRing"><div></div><div></div><div></div><div></div></div></div>                                      {{/each}}                                  </div>                              </div>                          {{else}}                              <div id="${widget.id}" class="widgetContParent">                                  <div class="progress"><div  class="slider"> <div class="line"></div><div class="subline inc"></div> <div class="subline dec"></div></div></div>                                  <div {{if widgetData.widgets && widgetData.widgets.length === 1}} onscroll="scrollData(\'${JSON.stringify(panelDetail)}\',\'${JSON.stringify(widget)}\',\'maintemplate\', this)" {{/if}}    id="${widget.id}_content" class="widgetContentPanel {{if widgetData.widgets && widgetData.widgets.length === 1}}scroll{{/if}}"><div class="loaderRing"><div></div><div></div><div></div><div></div></div></div>                              </div>                          {{/if}}                      </div>                  {{/each}}                   <div class="bottomOverlayContainer" id="widgetSdkBottomOverlayContainer">                  </div>              </div>          </div>      <\/script>';var a='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div role="contentinfo" class="viewMoreCntr" id="${widgetData._id}">              <div class="widgetTitle"><i class="icon-Arrow-Material viewMoreBack" onclick="removeViewMore()"></i> ${widgetData.name}</div>              <div class="taskSelectCntr"><i class="icon-Close1" onclick="removeTaskSelection()"></i> <span class="taskCount">1 task selected</span></div>              <div class="mainTemplateBdr">                  {{each(key, widget) widgetData.widgets}}                       <div class="widgetPanel">                      {{if widget && widget.title}}                          <div class="panelHeader padd10">${widget.title}</div>                      {{/if}}                          {{if widget && widget.filterOptions}}                              <div id="${widget.id}" class="panelCntr" style="border-bottom: 5px solid var(--sdk-primary-border-color);">                                  <div class="filter">                                      <ul class="filterCntr">                                          {{each(key, widgetFilter) widget.filterOptions}}                                               <li class="{{if (widgetData._id === panelDetail.panel && widget.id === panelDetail.subpanel && widgetFilter.id === panelDetail.filter)}}active{{else}}unActive{{/if}}" style="background: ${widgetData.theme};" id="${widgetFilter.id}" onclick="filterTabs(\'.viewMoreCntr\',\'${widget.id}\',\'${widgetFilter.id}\')">${widgetFilter.title}</li>                                          {{/each}}                                      </ul>                                      {{each(key, widgetFilter) widget.filterOptions}}                                           <div onscroll="scrollData(\'${JSON.stringify(panelDetail)}\', \'${JSON.stringify(widgetFilter)}\',\'viewmore\', this)" class="scroll widgetContentPanel ${widget.id}_content" id="${widgetFilter.id}_content" style="display:{{if (widgetData._id === panelDetail.panel && widget.id === panelDetail.subpanel && widgetFilter.id === panelDetail.filter)}}block{{else}}none{{/if}};"><div class="loaderRing"><div></div><div></div><div></div><div></div></div></div>                                      {{/each}}                                  </div>                              </div>                          {{else}}                              <div id="${widget.id}" class="scroll" style="border-bottom: 5px solid var(--sdk-primary-border-color);"><div class="loaderRing"><div></div><div></div><div></div><div></div></div></div>                          {{/if}}                      </div>                  {{/each}}               </div>              <div class="taskSelectFootCntr">                  <button role=""button" tabindex="0" class="btn complete" onclick="taskSend(\'complete\')">Complete</button>                  <button role=""button" tabindex="0" class="btn changeduedate" onclick="taskSend(\'changeduedate\')">Change due date</button>              </div>          </div>      <\/script>';var o='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="meetingWidget_Root" >               <div class="meetingWidget_Box">                  {{each(key, myMsgItem) tempdata.elements}}                       {{if helpers.checkMeetingHeaderTimeline(tempdata.elements, key)}}                          <div class="timeline">{{html helpers.getTimeline(myMsgItem.data.duration.start, "fulldate", "meetings")}}</div>                       {{/if}}                      <div class="carosalItem eleCntr {{if helpers.compareCurntTimeAndTimln_minutes(myMsgItem.data.duration.start,myMsgItem.data.duration.end, null) <= 5}}timeactive{{/if}}" template-type="${myMsgItem.template_type}">                      <div class="carosalCntr">                          <div class="meetingCntr">                              <div class="smeetingLft" style="display:none;">                                  {{if myMsgItem.day}}                                      <div class="timeCntr">{{if myMsgItem.localDay.intial}}<div>${myMsgItem.localDay.intial}</div>{{/if}}{{if myMsgItem.localDay.time}}<div>${myMsgItem.localDay.time}</div>{{/if}}<div>${myMsgItem.localDay.last}</div></div>                                  {{else}}                                      <div class="timeCntr">{{html helpers.getTimeline(new Date(parseInt(myMsgItem.data.duration.start)), "time")}}<br>{{html helpers.getTimeline(new Date(parseInt(myMsgItem.data.duration.end)), "time")}}</div>                                  {{/if}}                              </div>                              {{if helpers.compareCurntTimeAndTimln_minutes(myMsgItem.data.duration.start,myMsgItem.data.duration.end, null) <= 5}}                              <div class="meetingRft" style="border: 1px solid ${myMsgItem.data.color}">                              <div class="meetingTitle" {{if myMsgItem.data.color}}style="background:${myMsgItem.data.color};color:#ffffff!important"{{/if}}><div class="titleAlign">${myMsgItem.title}                              {{else}}                              <div class="meetingRft" {{if myMsgItem.data.color}}style="border: 1px solid ${hexToRGBMeeting(myMsgItem.data.color)}"{{/if}}>                                  <div class="meetingTitle" {{if myMsgItem.data.color}}style="background:${hexToRGBMeeting(myMsgItem.data.color)};"{{/if}}{{if $("body").hasClass("darkTheme")}}style="color:#ffffff"{{else}}style="color:#000000"{{/if}}><div class="titleAlign">${myMsgItem.title}                              {{/if}}                                  <i  class="icon-More dropbtnWidgt hide"  onclick="showDropdown(this)"></i>                                          <ul  class="dropdown-contentWidgt  rmpmW" style="list-style:none;">                                          {{each(key1, actionbtnli) myMsgItem.actions}}                                               {{if actionbtnli.type !== "dial"}}                                              {{if actionbtnli.type === "postback"}}                                                      <li class="dropdown-item" actionObj="${JSON.stringify(actionbtnli)}" mainObj="${JSON.stringify(myMsgItem)}" onclick="passMeetingUtterances(this)">"${actionbtnli.title}"</li>                                                  {{else}}                                                      <li class="dropdown-item" actionObj="${JSON.stringify(actionbtnli)}" mainObj="${JSON.stringify(myMsgItem)}"  onclick="passMeetingUtterances(this)">${actionbtnli.title}</li>                                                  {{/if}}                                              {{/if}}                                          {{/each}}                                      </ul>                                  </div>                              </div>                              <div class="timeCountrCntr hide">                              {{if helpers.compareCurntTimeAndTimln_minutes(myMsgItem.data.duration.start,myMsgItem.data.duration.end, null) <= 0}}                                      <i class="redDot"></i>                               {{/if}}                                    <span  id="m_${key}"> {{html meetingTimer( tempdata.elements,myMsgItem, key)}}</span>                                  </div>                              {{if myMsgItem.day}}                              <div class="timeCntr"> <i class="icon-Time1 icon16Gray"></i>{{if myMsgItem.localDay.intial}}<span>${myMsgItem.localDay.intial}</span>{{/if}}{{if myMsgItem.localDay.time}}<span> ${myMsgItem.localDay.time}</span>{{/if}}<span>${myMsgItem.localDay.last}</span></div>                          {{else}}                              <div class="timeCntr"><i class="icon-Time1 icon16Gray"></i><span>{{html helpers.getTimeline(new Date(parseInt(myMsgItem.data.duration.start)), "time")}} - {{html helpers.getTimeline(new Date(parseInt(myMsgItem.data.duration.end)), "time")}}</span>                              {{if helpers.compareCurntTimeAndTimln_minutes(myMsgItem.data.duration.start,myMsgItem.data.duration.end, null) > 5}}                              <span class="timeCountrCntr" id="m_${key}">                                     {{html meetingTimer( tempdata.elements,myMsgItem, key)}}                               {{/if}}                               </span>                              </div>                          {{/if}}                              {{if myMsgItem.location}}<div class="meetingPlaceCntr"><i class="meetingPlace icon-Material---Location1"></i> {{if isURL(myMsgItem.location).status}}<a class="meetingUrlText" href="${isURL(myMsgItem.location).location}"  target="_blank">${myMsgItem.location}</a>{{else}}${myMsgItem.location}{{/if}}</div>{{/if}}                              {{if myMsgItem.data.attendees && myMsgItem.data.attendees.length}}                                  <div class="meetingMemberCntr">                                      <span><i class="meetingUser icon-Material-Person"></i></span><span class="meetingMemberCntrText">{{if myMsgItem.data.attendees[0].name}}${myMsgItem.data.attendees[0].name}{{else}}${myMsgItem.data.attendees[0].email}{{/if}}                                      {{if myMsgItem.data.attendees.length > 1}} and ${myMsgItem.data.attendees.length -1} {{if myMsgItem.data.attendees.length > 2}}others{{else}}other{{/if}}{{/if}}                                      </span>                                      {{if helpers.compareCurntTimeAndTimln_minutes(myMsgItem.data.duration.start,myMsgItem.data.duration.end, null) <= 5}}                                      <div {{if myMsgItem.data.color}}style="background: ${hexToRGBMeeting(myMsgItem.data.color,0.1)}"{{/if}} class="meetingIconToggle" onclick="toggelMeetingActionBtn(\'meetingbtns${key}\', this)"><i class="{{if helpers.getTimeline(myMsgItem.data.duration.start, "fulldate", "meetings") === "Happening Now"}}icon-Arrow_Drop_Down_Up{{else}}icon-Arrow_Drop_Down{{/if}}" {{if myMsgItem.data.color}}style="color: ${myMsgItem.data.color}"{{/if}} ></i></div>                                      {{else}}                                      <div {{if myMsgItem.data.color}}style="background: ${hexToRGBMeeting(myMsgItem.data.color,0.1)}"{{/if}} class="meetingIconToggle" onclick="toggelMeetingActionBtn(\'meetingbtns${key}\', this)"><i class="{{if helpers.getTimeline(myMsgItem.data.duration.start, "fulldate", "meetings") === "Happening Now"}}icon-Arrow_Drop_Down_Up{{else}}icon-Arrow_Drop_Down{{/if}}" {{if myMsgItem.data.color}}style="color: ${myMsgItem.data.color}"{{/if}} ></i></div>                                      {{/if}}                                      </div>                              {{/if}}                              {{if helpers.compareCurntTimeAndTimln_minutes(myMsgItem.data.duration.start,myMsgItem.data.duration.end, null) <= 5}}                              <div class="meetingActionButtons hide" style="font-size: 23px;margin-top:10px;">                                  {{each(key, actionbtn) myMsgItem.actions}}                                       {{if actionbtn.type === "open_form" || actionbtn.custom_type === "url"}}                                       <div class="actionBtns"  {{if myMsgItem.data.color}}style="color:${myMsgItem.data.color};border: 2px solid ${myMsgItem.data.color}"{{/if}}  actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(myMsgItem)}" onclick="passMeetingUtterances(this)">                                        <i class="${helpers.actionIcon(actionbtn)}"  ></i>&nbsp; ${actionbtn.title} </div>                                      {{/if}}                                    {{/each}}                            </div>                          {{/if}}                        </div>                        <div class="meetingActionButtons"  id="meetingbtns${key}"  {{if helpers.getTimeline(myMsgItem.data.duration.start, "fulldate", "meetings") !== "Happening Now"}} style="display:none;{{/if}}">                            {{each(key, actionbtn) myMsgItem.actions}}                                 {{if key < 2 }}                                {{if helpers.compareCurntTimeAndTimln_minutes(myMsgItem.data.duration.start,myMsgItem.data.duration.end, null) <= 5}}                                 <div class="actionBtns" {{if myMsgItem.data.color}}style="text-transform: uppercase;color:${myMsgItem.data.color};border: 2px solid ${myMsgItem.data.color}"{{/if}} actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(myMsgItem)}" onclick="passMeetingUtterances(this)">                                  {{else}}                                 <div class="actionBtns" {{if myMsgItem.data.color}}style="text-transform: uppercase;color:${myMsgItem.data.color};border: 2px solid ${hexToRGBMeeting(myMsgItem.data.color)}"{{/if}} actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(myMsgItem)}" onclick="passMeetingUtterances(this)">                                  {{/if}}                                 <i class="${helpers.actionIcon(actionbtn)}"></i> ${actionbtn.title} </div>                                {{/if}}                              {{/each}}                            {{if myMsgItem.actions.length > 2}}                            {{if helpers.compareCurntTimeAndTimln_minutes(myMsgItem.data.duration.start,myMsgItem.data.duration.end, null) <= 5}}                            <div class="actionBtns dropdown" {{if myMsgItem.data.color}}style="color:${myMsgItem.data.color};text-transform: uppercase;border: 2px solid ${myMsgItem.data.color}"{{/if}}  style="vertical-align:middle;" >                            {{else}}                            <div class="actionBtns dropdown" {{if myMsgItem.data.color}}style="color:${myMsgItem.data.color};text-transform: uppercase;border: 2px solid ${hexToRGBMeeting(myMsgItem.data.color)}"{{/if}}  style="vertical-align:middle;" >                            {{/if}}                            <i class="dropbtnWidgt" style="margin:0;margin-top: 0px;top: unset;" onclick="showDropdown(this)">More</i>                            <ul  class="dropdown-contentWidgt  rmpmW" style="list-style:none;">                            {{each(key, actionbtn) myMsgItem.actions}}                             {{if key >= 2}}                            {{if actionbtn.type === "postback"}}                                    <li {{if myMsgItem.data.color}}style="color: ${myMsgItem.data.color};text-transform: uppercase;"{{/if}}  class="dropdown-item" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(myMsgItem)}" onclick="passMeetingUtterances(this)">"${actionbtn.title}"</li>                                    {{else}}                                    <li {{if myMsgItem.data.color}}style="color: ${myMsgItem.data.color};text-transform: uppercase;"{{/if}}  class="dropdown-item" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(myMsgItem)}" onclick="passMeetingUtterances(this)">${actionbtn.title}</li>                                {{/if}}                            {{/if}}                          {{/each}}                        </ul>                            </div>                             {{/if}}                      </div>                      </div>                    </div>                  </div>              {{/each}}              <div style="clear:both"></div>              {{if tempdata && tempdata.elements && tempdata.elements.length > 3 && panelDetail.viewmore}}                   <div class="viewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">View more <i class="moreArrow icon-Disclose1"></i></div>              {{/if}}              {{if tempdata && tempdata.elements && tempdata.elements.length === 0}}                  <div class="noContent">                      <img class="img img-fluid" src="/assets/images/widget/nodata.svg" width="118px" height="118px" style="margin-top:15px;">                      <div class="col-12 rmpmW nodataTxt">${tempdata.placeholder}</div>                  </div>              {{/if}}            </div>          </div>        </scipt>';var s='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="allTaskCntr"   payload="{{if tempdata && tempdata.buttons && tempdata.buttons.length && tempdata.buttons[0].api}}${tempdata.buttons[0].api}{{/if}}">              {{each(key, msgItem) tempdata.elements}}                   {{if panelDetail.viewmore}}                      {{if key<= 2}}                          <div class="viewTask{{if msgItem.data.status === "Close"}} closeTask{{/if}}" id="${msgItem.id}">                              {{if panelDetail.showAll}}                                  <div class="viewTaskLft">                                      <div class="roundCheckbox">                                          <input {{if msgItem.data.status === "Close"}}disabled="disabled"{{/if}} class="taskSel" type="checkbox" id="task_${msgItem.id}" onclick="taskkAction(\'${msgItem.id}\',\'${msgItem.title}\',this)" {{if taskCheckbox(msgItem.id)}}checked{{/if}} />                                          <label for="task_${msgItem.id}"></label>                                      </div>                                  </div>                              {{/if}}                              <div class="viewTaskRgtt{{if msgItem.data.status === "Close"}} closeTask{{/if}}"   {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                                  <div class="title">${msgItem.title}                                      <i  class="icon-More dropbtnWidgt" onclick="showDropdown(this)"></i>                                      <ul  class="dropdown-contentWidgt  rmpmW" style="list-style:none;">                                          {{each(key, actionbtnli) msgItem.actions}}                                               {{if actionbtnli.type === "postback"}}                                                  <li class="dropdown-item" payload="${JSON.stringify(msgItem)}"   onclick="passTaskUtterances(this, ${key})">"${actionbtnli.title}"</li>                                              {{/if}}                                          {{/each}}                                      </ul>                                  </div>                                   {{if checkOverDue(msgItem.data.status, msgItem.data.dueDate)}}                                      <div class="taskDateCntr" style="color: #fc4a61">                                           <i class="icon-Time icon16Gray"></i> <span>{{html helpers.getTimeline(msgItem.data.dueDate, "fulldate")}}, {{html helpers.getTimeline(msgItem.data.dueDate, "time")}}</span>                                      </div>                                   {{else}}                                       <div class="taskDateCntr">                                           <i class="icon16Gray icon-Time"></i> <span>{{html helpers.getTimeline(msgItem.data.dueDate, "fulldate")}}, {{html helpers.getTimeline(msgItem.data.dueDate, "time")}}</span>                                      </div>                                   {{/if}}                                  <div class="userCntr">                                       <i class="icon16Gray icon-Material-Person"></i>                                      {{if checkCurrentUser(msgItem.data.owner._id, msgItem.data.assignee._id)}}                                          <div style="display: inline-block">You</div>                                      {{else}}                                          {{html helpers.checkTaskUser(msgItem.data.owner.fN, msgItem.data.owner.lN, msgItem.data.owner._id)}}                                          <i style="margin: 0px 5px;" class="fa fa-caret-right" aria-hidden="true"></i>                                          {{html helpers.checkTaskUser(msgItem.data.assignee.fN, msgItem.data.assignee.lN, msgItem.data.assignee._id)}}                                      {{/if}}                                  </div>                              </div>                          </div>                      {{/if}}                  {{else}}                      <div class="viewTask{{if msgItem.data.status === "Close"}} closeTask{{/if}}" id="${msgItem.id}">                          {{if panelDetail.showAll}}                              <div class="viewTaskLft">                                  <div class="roundCheckbox">                                      <input {{if msgItem.data.status === "Close"}}disabled="disabled"{{/if}} class="taskSel" type="checkbox" id="task_${msgItem.id}" onclick="taskkAction(\'${msgItem.id}\',\'${msgItem.title}\',this)" {{if taskCheckbox(msgItem.id)}}checked{{/if}}/>                                      <label for="task_${msgItem.id}"></label>                                  </div>                              </div>                          {{/if}}                          <div class="viewTaskRgtt{{if msgItem.data.status === "Close"}} closeTask{{/if}}" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                              <div class="title">${msgItem.title}                                  <i  class="icon-More dropbtnWidgt" onclick="showDropdown(this)"></i>                                  <ul  class="dropdown-contentWidgt  rmpmW" style="list-style:none;">                                      {{each(key, actionbtnli) msgItem.actions}}                                           {{if actionbtnli.type === "postback"}}                                              <li class="dropdown-item" payload="${JSON.stringify(msgItem)}"   onclick="passTaskUtterances(this, ${key})">"${actionbtnli.title}"</li>                                          {{/if}}                                      {{/each}}                                  </ul>                              </div>                               {{if checkOverDue(msgItem.data.status, msgItem.data.dueDate)}}                                  <div class="taskDateCntr" style="color: #fc4a61">                                       <i class="icon-Time icon16Gray"></i> <span>{{html helpers.getTimeline(msgItem.data.dueDate, "fulldate")}}, {{html helpers.getTimeline(msgItem.data.dueDate, "time")}}</span>                                  </div>                               {{else}}                                   <div class="taskDateCntr">                                       <i class="icon16Gray icon-Time"></i> <span>{{html helpers.getTimeline(msgItem.data.dueDate, "fulldate")}}, {{html helpers.getTimeline(msgItem.data.dueDate, "time")}}</span>                                  </div>                               {{/if}}                              <div class="userCntr">                                   <i class="icon16Gray icon-Material-Person"></i>                                  {{if checkCurrentUser(msgItem.data.owner._id, msgItem.data.assignee._id)}}                                      <div style="display: inline-block">You</div>                                  {{else}}                                      {{html helpers.checkTaskUser(msgItem.data.owner.fN, msgItem.data.owner.lN, msgItem.data.owner._id)}}                                      <i style="margin: 0px 5px;" class="fa fa-caret-right" aria-hidden="true"></i>                                      {{html helpers.checkTaskUser(msgItem.data.assignee.fN, msgItem.data.assignee.lN, msgItem.data.assignee._id)}}                                  {{/if}}                              </div>                          </div>                      </div>                  {{/if}}              {{/each}}               <div style="clear:both"></div>              {{if tempdata && tempdata.elements && tempdata.elements.length > 3 && panelDetail.viewmore}}                   <div class="viewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">View more <i class="moreArrow icon-Disclose1"></i></div>              {{/if}}              {{if tempdata && tempdata.elements && tempdata.elements.length === 0}}                  <div class="noContent">                      <img class="img img-fluid" src="/assets/images/widget/nodata.svg" width="118px" height="118px" style="margin-top:15px;">                      <div class="col-12 rmpmW nodataTxt">${tempdata.placeholder}</div>                  </div>              {{/if}}          </div>      <\/script>';var r='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="filesCntr" >              {{each(key, msgItem) tempdata.elements}}                   {{if panelDetail.viewmore}}                      {{if key<= 2}}                          <div class="carosalItem" onclick="openLink(\'${msgItem.default_action.url}\')">                              <div class="carpadding">                                  <div class="lftCntr">                                      <div class="fileCntr">{{html helpers.getFileIcon(msgItem.data.ext)}}</div>                                  </div>                                  <div class="rgtCntr" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                                      <div class="fileName">${msgItem.title}</div>                                      {{if msgItem.sharedBy}}<div class="sharedBy">Shared by  ${msgItem.owners[0].displayName }</div>{{/if}}                                      <div class="lastModified">Last Edited ${helpers.getTimeline(msgItem.data.modifiedTime, "fulldate")}, ${helpers.getTimeline(msgItem.data.modifiedTime, "fullyear")}</div>                                  </div>                              </div>                          </div>                      {{/if}}                  {{else}}                      <div class="carosalItem" onclick="openLink(\'${msgItem.default_action.url}\')">                          <div class="carpadding">                              <div class="lftCntr">                                  <div class="fileCntr">{{html helpers.getFileIcon(msgItem.data.ext)}}</div>                              </div>                              <div class="rgtCntr" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                                  <div class="fileName">${msgItem.title}</div>                                  {{if msgItem.sharedBy}}<div class="sharedBy">Shared by  ${msgItem.owners[0].displayName }</div>{{/if}}                                  <div class="lastModified">Last Edited ${helpers.getTimeline(msgItem.data.modifiedTime, "fulldate")}, ${helpers.getTimeline(msgItem.data.modifiedTime, "fullyear")}</div>                              </div>                          </div>                      </div>                  {{/if}}              {{/each}}               <div style="clear:both"></div>              {{if tempdata && tempdata.elements && tempdata.elements.length > 3 && panelDetail.viewmore}}                   <div class="viewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">View more <i class="moreArrow icon-Disclose1"></i></div>              {{/if}}              {{if tempdata && tempdata.elements && tempdata.elements.length === 0}}                  <div class="noContent">                      <img class="img img-fluid" src="/assets/images/widget/nodata.svg" width="118px" height="118px" style="margin-top:15px;">                      <div class="col-12 rmpmW nodataTxt">${tempdata.placeholder}</div>                  </div>              {{/if}}          </div>      <\/script>';var l='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="filesCntr" >              {{each(key, msgItem) tempdata.elements}}                   {{if panelDetail.viewmore}}                      {{if key<= 2}}                          <div class="carosalItem" style="margin: 0px 5px 0px 5px;width: 97%;border-bottom: 1px solid var(--sdk-primary-border-color);" {{if msgItem.default_action}}onclick="openLink(\'${msgItem.default_action.url}\')" {{/if}}>                              <div class="carpadding">                                  <div class="lftCntr" style="padding-top: 5px;">                                      {{if msgItem.icon}}<div class="fileCntr"><img class="common" style="height: 60px; width: 60px;border-radius: 30px;" src="${msgItem.icon}"></img></div>{{/if}}                                  </div>                                  <div class="rgtCntr" style="min-height: 50px;border-bottom: 0px;padding-top: 10px; padding-bottom: 0px;width: calc(100% - 75px);" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                                      <div class="fileName" style="font-weight: 600;padding-right: 23px;">${msgItem.title}                                      {{if msgItem.actions}}<i  class="icon-More dropbtnWidgt"  style="margin:0;margin-top: 0px; top: unset;" onclick="showDropdown(this)"></i>                                      <ul  class="dropdown-contentWidgt  rmpmW" style="list-style:none;">                                          {{each(key1, actionbtnli) msgItem.actions}}                                               {{if actionbtnli.type === "postback"}}                                                  <li class="dropdown-item" actionObj="${JSON.stringify(actionbtnli)}" mainObj="${JSON.stringify(msgItem)}" onclick="passUtterances(\'\',\'${actionbtnli.payload}\',event)">"${actionbtnli.title}"</li>                                              {{else}}                                                  <li class="dropdown-item" actionObj="${JSON.stringify(actionbtnli)}" mainObj="${JSON.stringify(msgItem)}"  onclick="passUtterances(\'url\',\'${actionbtnli.url}\',event)">${actionbtnli.title}</li>                                              {{/if}}                                          {{/each}}                                      </ul>{{/if}}</div>                                      {{if msgItem.sub_title}}<div class="lastModified" style="font-size: 13px;">${msgItem.sub_title}</div>{{/if}}                                      {{if msgItem.text}}<div class="lastModified">${msgItem.text}</div>{{/if}}                                      {{if msgItem.modifiedTime}}<div class="lastModified">${msgItem.modifiedTime}</div>{{/if}}                                      {{if msgItem.button}}                                      {{each(key, actionbtn) msgItem.button}}                                           {{if actionbtn.type === "url"}}                                          <button class="btn actionBtns" style="background: none;border: 2px solid ${actionbtn.theme}; color: ${actionbtn.theme};" actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(msgItem)}" onclick="passUtterances(\'url\',\'${actionbtn.title}\',event)">                                              ${actionbtn.title}                                          </button>                                      {{/if}}                                      {{if actionbtn.type === "postback"}}                                          <button class="btn actionBtns" style="background: none;border: 2px solid ${actionbtn.theme}; color: ${actionbtn.theme};" actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(msgItem)}" onclick="passUtterances(\'\',\'${actionbtn.payload}\',event)">                                              ${actionbtn.title}                                          </button>                                      {{/if}}                                      {{/each}}                                      {{/if}}                                  </div>                              </div>                          </div>                      {{/if}}                  {{else}}                      <div class="carosalItem" style="margin: 0px 5px 0px 5px;width: 97%;border-bottom: 1px solid var(--sdk-primary-border-color);" {{if msgItem.default_action}} onclick="openLink(\'${msgItem.default_action.url}\')" {{/if}}>                          <div class="carpadding">                              <div class="lftCntr" style="padding-top: 5px;">                              {{if msgItem.icon}}<div class="fileCntr"><img class="common" style="height: 60px; width: 60px;border-radius: 30px;" src="${msgItem.icon}"></img></div>{{/if}}                              </div>                              <div class="rgtCntr" style="min-height: 50px;border-bottom: 0px;padding-top: 10px; padding-bottom: 0px;width: calc(100% - 75px);" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                                  <div class="fileName" style="font-weight: 600;padding-right: 23px;">${msgItem.title}                                  {{if msgItem.actions}}<i  class="icon-More dropbtnWidgt" style="margin:0;margin-top: 0px; top: unset;" onclick="showDropdown(this)"></i>                                  <ul  class="dropdown-contentWidgt  rmpmW" style="list-style:none;">                                      {{each(key1, actionbtnli) msgItem.actions}}                                           {{if actionbtnli.type === "postback"}}                                              <li class="dropdown-item" actionObj="${JSON.stringify(actionbtnli)}" mainObj="${JSON.stringify(msgItem)}" onclick="passUtterances(\'\',\'${actionbtnli.payload}\',event)">"${actionbtnli.title}"</li>                                          {{else}}                                              <li class="dropdown-item" actionObj="${JSON.stringify(actionbtnli)}" mainObj="${JSON.stringify(msgItem)}"  onclick="passUtterances(\'url\',\'${actionbtnli.url}\',event)">${actionbtnli.title}</li>                                          {{/if}}                                      {{/each}}                                  </ul>{{/if}}</div>                                  {{if msgItem.sub_title}}<div class="lastModified" style="font-size: 13px;">${msgItem.sub_title}</div>{{/if}}                                  {{if msgItem.text}}<div class="lastModified">${msgItem.text}</div>{{/if}}                                  {{if msgItem.modifiedTime}}<div class="lastModified">${msgItem.modifiedTime}</div>{{/if}}                                  {{if msgItem.button}}                                  {{each(key, actionbtn) msgItem.button}}                                       {{if actionbtn.type === "url"}}                                      <button class="btn actionBtns" style="background: none;border: 2px solid ${actionbtn.theme}; color: ${actionbtn.theme};" actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(msgItem)}"  onclick="passUtterances(\'url\',\'${actionbtn.url}\',event)">                                          ${actionbtn.title}                                      </button>                                     {{/if}}                                     {{if actionbtn.type === "postback"}}                                      <button class="btn actionBtns" style="background: none;border: 2px solid ${actionbtn.theme}; color: ${actionbtn.theme};" actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(msgItem)}"  onclick="passUtterances(\'\',\'${actionbtn.payload}\',event)">                                          ${actionbtn.title}                                      </button>                                     {{/if}}                                  {{/each}}                                  {{/if}}                              </div>                          </div>                      </div>                  {{/if}}              {{/each}}               <div style="clear:both"></div>              {{if tempdata && tempdata.elements && tempdata.elements.length > 3 && panelDetail.viewmore}}                   <div class="viewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">View more <i class="moreArrow icon-Disclose1"></i></div>              {{/if}}              {{if tempdata && tempdata.elements && tempdata.elements.length === 0}}                  <div class="noContent">                      <img class="img img-fluid" src="/assets/images/widget/nodata.svg" width="118px" height="118px" style="margin-top:15px;">                      <div class="col-12 rmpmW nodataTxt">${tempdata.placeholder}</div>                  </div>              {{/if}}          </div>      <\/script>';var c='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">       <div class="knowledgeCntr"  >          {{each(key, msgItem) tempdata.elements}}               {{if panelDetail.viewmore}}                  {{if key<= 2 }}                      <div class="carosalItem" id="${msgItem.id}" onclick="openArticle(\'${msgItem.id}\')">                          <div class="carosalCntr">                              <div class="lftCntr" style="width:{{if msgItem.imageUrl && msgItem.imageUrl != null}} calc(100% - 90px) {{else}} 100%{{/if}};">                                  <div class="title">${msgItem.title}</div>                                  <div class="lastModified">Modified ${helpers.getTimeline(new Date(msgItem.lastMod), "fulldate")} at ${helpers.getTimeline(new Date(parseInt(msgItem.lastMod)), "time")}</div>                                  <div class="subtitle" style="-webkit-box-orient: vertical;">${msgItem.desc}</div>                              </div>                              {{if msgItem.imageUrl && msgItem.imageUrl != null}}                                  <div class="rgtCntr">                                      <img src="${msgItem.imageUrl}" class="knwImg">                                  </div>                              {{/if}}                              <div class="actionCntr">                                  <div class="viewsCntr">                                      <i class="iconConfig icon-Material-Eye"></i>                                      <span class="actionItemCount">${msgItem.nViews}</span>                                  </div>                                  {{if msgItem.nShares && msgItem.nShares > 0}}                                      <div class="commentCntr">                                          <i class="iconConfig icon-iOS---Comment"></i>                                          <span class="actionItemCount">${msgItem.nComments}</span>                                      </div>                                  {{/if}}                                  {{if msgItem.nShares && msgItem.nShares > 0}}                                      <div class="votesupCntr">                                          <i class="iconConfig icon-Like-Yes-Material-Filled"></i>                                          <span class="actionItemCount">{{if msgItem.nUpVotes}}${msgItem.nUpVotes}{{else}}0{{/if}}</span>                                      </div>                                  {{/if}}                                  {{if msgItem.nShares && msgItem.nShares > 0}}                                      <div class="votesdownCntr">                                          <i class="iconConfig icon-Dislike-Material"></i>                                          <span class="actionItemCount">{{if msgItem.nDownVotes}}${msgItem.nDownVotes}{{else}}0{{/if}}</span>                                      </div>                                  {{/if}}                              </div>                          </div>                      </div>                  {{/if}}                  {{else}}                      <div class="carosalItem" id="${msgItem.id}" onclick="openArticle(\'${msgItem.id}\')">                          <div class="carosalCntr" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                              <div class="lftCntr" style="width:{{if msgItem.imageUrl && msgItem.imageUrl != null}} calc(100% - 90px) {{else}} 100%{{/if}};">                                  <div class="title">${msgItem.title}</div>                                  <div class="lastModified">Modified ${helpers.getTimeline(new Date(msgItem.lastMod), "fulldate")} at ${helpers.getTimeline(new Date(parseInt(msgItem.lastMod)), "time")}</div>                                  <div class="subtitle" style="-webkit-box-orient: vertical;">${msgItem.desc}</div>                              </div>                              {{if msgItem.imageUrl && msgItem.imageUrl != null}}                                  <div class="rgtCntr">                                      <img src="${msgItem.imageUrl}" class="knwImg">                                  </div>                              {{/if}}                              <div class="actionCntr">                                  <div class="viewsCntr">                                      <i class="iconConfig icon-Material-Eye"></i>                                      <span class="actionItemCount">${msgItem.nViews}</span>                                  </div>                                  {{if msgItem.nShares && msgItem.nShares > 0}}                                      <div class="commentCntr">                                          <i class="iconConfig icon-iOS---Comment"></i>                                          <span class="actionItemCount">${msgItem.nComments}</span>                                      </div>                                  {{/if}}                                  {{if msgItem.nShares && msgItem.nShares > 0}}                                      <div class="votesupCntr">                                          <i class="iconConfig icon-Like-Yes-Material-Filled"></i>                                          <span class="actionItemCount">{{if msgItem.nUpVotes}}${msgItem.nUpVotes}{{else}}0{{/if}}</span>                                      </div>                                  {{/if}}                                  {{if msgItem.nShares && msgItem.nShares > 0}}                                      <div class="votesdownCntr">                                          <i class="iconConfig icon-Dislike-Material"></i>                                          <span class="actionItemCount">{{if msgItem.nDownVotes}}${msgItem.nDownVotes}{{else}}0{{/if}}</span>                                      </div>                                  {{/if}}                              </div>                          </div>                      </div>                  {{/if}}          {{/each}}          <div style="clear:both"></div>          {{if tempdata && tempdata.elements && tempdata.elements.length > 3 && panelDetail.viewmore}}               <div class="viewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">View more <i class="moreArrow icon-Disclose1"></i></div>          {{/if}}          {{if tempdata && tempdata.elements && tempdata.elements.length === 0}}              <div class="noContent">                  <img class="img img-fluid" src="/assets/images/widget/nodata.svg" width="118px" height="118px" style="margin-top:15px;">                  <div class="col-12 rmpmW nodataTxt">${tempdata.placeholder}</div>              </div>          {{/if}}          </div>      </scipt>';var u='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="announcementCntr" >              {{each(key, msgItem) tempdata.elements}}                   {{if panelDetail.viewmore}}                      {{if key<= 2 }}                          <div class="carosalItemAnnc" id="${msgItem.id}" onclick="openAnnouncement(\'${msgItem.id}\')">                              <div class="carosalCntr" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                                  <div class="lftIconCntr"><div class="icon" style="background: ${msgItem.owner.color}">                                      <div class="icon" style="background: ${msgItem.owner.color}">                                          {{if msgItem && msgItem.owner.fN}}${msgItem.owner.fN[0]}{{/if}}{{if msgItem && msgItem.owner.lN}}${msgItem.owner.lN[0]}{{/if}}                                      </div>                                  </div>                              </div>                              <div class="lftCntr lftCntrAnnnc" style="width:{{if msgItem.imageUrl && msgItem.imageUrl != null}} calc(100% - 50px) {{else}} calc(100% - 36px) {{/if}};">                                  <div class="title titleAnnc">${msgItem.owner.fN} ${msgItem.owner.lN} <span class="lastModifiedAnnc pull-right">${helpers.getTimeLineNotification(msgItem.sharedOn)}</span></div>                                  <div class="col-12 rmpm sharedList" style="-webkit-box-orient: vertical;">                                       {{each(index, list) msgItem.sharedList}}                                          {{if index == 0}}                                              <span>${list.name} </span>                                           {{/if}}                                          {{if index > 0}}                                              <span> , ${list.name} </span>                                          {{/if}}                                      {{/each}}                                  </div>                                  <div class="col-12 rmpm infoTitleA_NL" style="-webkit-box-orient: vertical;padding-bottom:3px;"> ${msgItem.title} </div>                                  <div class="subtitle" style="-webkit-box-orient: vertical;">${msgItem.subtitle}</div>                              </div>                              {{if msgItem.imageUrl && msgItem.imageUrl != null}}                                  <div class="rgtCntr">                                      <img src="${msgItem.imageUrl}" class="knwImg">                                  </div>                              {{/if}}                              <div class="actionCntr actionCntrAnnc">                                  {{if msgItem.nShares && msgItem.nShares > 0}}                                      <div class="commentCntr">                                          <i class="commentIcon icon-iOS---Comment"></i>                                          <span class="commentCount">${msgItem.nComments}</span>                                      </div>                                  {{/if}}                                  {{if msgItem.nShares && msgItem.nShares > 0}}                                      <div class="votesupCntr1">                                          <i class="votesupIcon icon-Like-Yes-Material-Filled"></i>                                          <span class="commentCount">{{if msgItem.nUpVotes}}${msgItem.nUpVotes}{{else}}0{{/if}}</span>                                      </div>                                  {{/if}}                              </div>                          </div>                      {{/if}}                      {{else}}                          <div class="carosalItem" id="${msgItem.id}"  onclick="openAnnouncement(\'${msgItem.id}\')">                              <div class="carosalCntr" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                                  <div class="lftIconCntr">                                      <div class="icon" style="background: ${msgItem.owner.color}">                                          {{if msgItem && msgItem.owner.fN}}${msgItem.owner.fN[0]}{{/if}}{{if msgItem && msgItem.owner.lN}}${msgItem.owner.lN[0]}{{/if}}                                      </div>                                  </div>                                  <div class="lftCntr" style="width:{{if msgItem.imageUrl && msgItem.imageUrl != null}} calc(100% - 50px) {{else}} calc(100% - 36px) {{/if}};">                                      <div class="title titleAnnc">${msgItem.owner.fN} ${msgItem.owner.lN} <span class="lastModifiedAnnc pull-right">${helpers.getTimeLineNotification(msgItem.sharedOn)}</span></div>                                      <div class="col-12 rmpm sharedList" style="-webkit-box-orient: vertical;">                                           {{each(index, list) msgItem.sharedList}}                                              {{if index == 0}}                                                  <span>${list.name} </span>                                               {{/if}}                                              {{if index > 0}}                                                  <span> , ${list.name} </span>                                              {{/if}}                                          {{/each}}                                      </div>                                      <div class="col-12 rmpm infoTitleA_NL" style="-webkit-box-orient: vertical;padding-bottom:3px;"> ${msgItem.title} </div>                                      <div class="subtitle" style="-webkit-box-orient: vertical;">${msgItem.desc}</div>                                  </div>                                  <div class="actionCntr">                                      {{if msgItem.nShares && msgItem.nShares > 0}}                                          <div class="commentCntr">                                              <i class="iconConfig icon-iOS---Comment"></i>                                              <span class="actionItemCount">${msgItem.nComments}</span>                                          </div>                                      {{/if}}                                      {{if msgItem.nShares && msgItem.nShares > 0}}                                          <div class="votesupCntr">                                              <i class="iconConfig icon-Like-Yes-Material-Filled"></i>                                              <span class="actionItemCount">{{if msgItem.nUpVotes}}${msgItem.nUpVotes}{{else}}0{{/if}}</span>                                          </div>                                      {{/if}}                                  </div>                              </div>                          </div>                      {{/if}}              {{/each}}              <div style="clear:both"></div>              {{if tempdata && tempdata.elements && tempdata.elements.length > 3 && panelDetail.viewmore}}                   <div class="viewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">View more <i class="moreArrow icon-Disclose1"></i></div>              {{/if}}              {{if tempdata && tempdata.elements && tempdata.elements.length === 0}}                  <div class="noContent">                      <img class="img img-fluid" src="/assets/images/widget/nodata.svg" width="118px" height="118px" style="margin-top:15px;">                      <div class="col-12 rmpmW nodataTxt">${tempdata.placeholder}</div>                  </div>              {{/if}}          </div>      </scipt>';var d='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="trendingHashtagCntr"  >              {{each(key, msgItem) tempdata.elements}}                   {{if panelDetail.viewmore}}                      {{if key<= 2 }}                          <div class="carosalItemHash" onclick="passHashTag(\'${msgItem.title}\')" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                              <span>${msgItem.title}</span>                              <span class="hashCount">${msgItem.title_right}</span>                          </div>                      {{/if}}                  {{else}}                      <div class="carosalItemHash" onclick="passHashTag(\'${msgItem.title}\')" {{if key === tempdata.elements.length - 1}}style="border-bottom:0"{{/if}}>                          <span>${msgItem.title}</span>                          <span class="hashCount">${msgItem.title_right}</span>                      </div>                  {{/if}}              {{/each}}              <div style="clear:both"></div>              {{if tempdata && tempdata.elements && tempdata.elements.length > 2 && panelDetail.viewmore}}                   <div class="viewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">View more <i class="moreArrow icon-Disclose1"></i></div>              {{/if}}              {{if tempdata && tempdata.elements && tempdata.elements.length === 0}}                  <div class="noContent">                      <img class="img img-fluid" src="/assets/images/widget/nodata.svg" width="118px" height="118px" style="margin-top:15px;">                      <div class="col-12 rmpmW nodataTxt">${tempdata.placeholder}</div>                  </div>              {{/if}}          </div>      </scipt>';var f='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="skillsCntr"  >              {{each(key, msgItem) tempdata.actions}}                   {{if panelDetail.viewmore}}                      {{if key<= 2 }}                          <div class="carosalItemHash" onclick="passUtterances(\'${msgItem.id}\',\'${payload}\')">                              <span title="${msgItem.title}">${msgItem.title}</span>                          </div>                      {{/if}}                  {{else}}                      <div class="carosalItemHash" onclick="passUtterances(\'${msgItem.id}\',\'${payload}\')">                          <span title="${msgItem.title}">${msgItem.title}</span>                      </div>                  {{/if}}              {{/each}}              <div style="clear:both"></div>              {{if tempdata && tempdata.elements && tempdata.actions.length > 3 && panelDetail.viewmore}}                   <div class="viewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">View more <i class="moreArrow icon-Disclose1"></i></div>              {{/if}}              {{if tempdata && tempdata.elements && tempdata.actions.length === 0}}                  <div class="noContent">                      <img class="img img-fluid" src="/assets/images/widget/nodata.svg" width="118px" height="118px" style="margin-top:15px;">                      <div class="col-12 rmpmW nodataTxt">${tempdata.placeholder}</div>                  </div>              {{/if}}          </div>      </scipt>';var p='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="" style="margin-top: 11px;">              {{each(key, msgItem) tempdata.elements}}               <div style="position: relative; max-width: 25%; max-height: 25%; width: calc(100%/${tempdata.elements.length} - 5px);height: calc(100%/${tempdata.elements.length} - 5px);                  float : left; margin: 2px;">                  <div class="" style="border-radius: 100%; border: 1px solid #ddd;                       width: 100%;height: 100%;                      padding-bottom: 100%; background: ${msgItem.theme} ">                  </div>                  <div class="" style="text-align: center;font-weight: 600; word-break: break-word;">${msgItem.title}</div>                  <div class="" style="position: absolute;top:16%; color: #fff; margin-left: calc(125px/${tempdata.elements.length}); left: calc(key *100%/${tempdata.elements.length} + 5%)">${msgItem.text}</div>              </div>              {{/each}}              <div style="clear:both"></div>              {{if tempdata && tempdata.elements && tempdata.elements.length === 0}}                  <div class="noContent">                      <img class="img img-fluid" src="/assets/images/widget/nodata.svg" width="118px" height="118px" style="margin-top:15px;">                      <div class="col-12 rmpmW nodataTxt">${tempdata.placeholder}</div>                  </div>              {{/if}}          </div>      </scipt>';var h='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="popupPreview" id="preview_${tempdata[0].id}"></div>          <div class="defaultPopupCntr" id="popup_${tempdata[0].id}">              <div class="popupContentCntr">                  {{if tempdata[0] && tempdata[0].title}} <div class="title">${tempdata[0].title}</div>{{/if}}                  {{if tempdata[0] && tempdata[0].desc}} <div class="desc">${tempdata[0].desc}</div>{{/if}}                  {{if tempdata[0] && tempdata[0].buttons && tempdata[0].buttons.length}}                      <div class="btnCntr">                          {{each(key, msgItem) tempdata[0].buttons}}                               <button class="btn" actionObj="${actionObj}" mainObj="${mainObj}" onclick="popupAction(\'${JSON.stringify(tempdata)}\',\'${msgItem.title}\', this)">                                  ${msgItem.title}                              </button>                          {{/each}}                      </div>                  {{/if}}              </div>          </div>      </scipt>';var m='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="defaultTemplateCntr">              Panel need to define          </div>      </scipt>';var g='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">           <div class="errorTemplateCntr">              <div class="imgCntr"> <img class="img img-fluid" src="assets/images/widget/widgetError.png"></div>              <div class="oopsErrorText">Oops!! Something went wrong!</div>          </div>      </scipt>';var y='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                             <div class="errorTemplateCntr {{if tempdata && !tempdata.templateType}}notFound{{/if}} {{if tempdata && tempdata.templateType}}${tempdata.templateType}{{/if}}">                                <div class="imgCntr"></div>                                {{if tempdata && tempdata.templateType && !tempdata.elements}}                                    {{if tempdata.errMsg}}                                      <div class="oopsErrorTitle">${tempdata.errMsg}</div>                                    {{else}}                                      <div class="oopsErrorTitle">No Data Available</div>                                    {{/if}}                                    {{if false && tempdata.errMsgDiscription}}                                      <div class="oopsErrorDesc">Looks like there is no data availble to show it to you.</div>                                    {{/if}}                                {{else}}                                     <div class="oopsErrorTitle">Page not found</div>                                {{/if}}                                <div class="oopsErrorBtns">                                    <button role="button" tabindex="0" aria-label="Refresh Widget" class="buttonSolid" onclick="refreshElement(\'${JSON.stringify(panelDetail)}\')" id="refreshData" {{if panelDetail}}panelDetail="${JSON.stringify(panelDetail)}"{{/if}}>Refresh</button>                                </div>                            </div>                          </scipt>';var v='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                             <div class="errorTemplateCntr authRequired">                                <div aria-hidden="true" class="imgCntr"></div>                                <div role="heddi" class="oopsErrorTitle">Authorization Needed!</div>                                <div class="oopsErrorBtns">                                    <button  role="button" tabindex="0" class="buttonSolid action" {{if tempdata && tempdata.elements && tempdata.elements.length && tempdata.elements[0].defaultAction}}actionObj="${JSON.stringify(tempdata.elements[0].defaultAction)}"{{/if}} {{if panelDetail}}panelDetail="${JSON.stringify(panelDetail)}"{{/if}}>Login</button>                                </div>                            </div>                          </scipt>';var D='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">         <div class="filterTemplateCntr">            <div class="wiz-filters">            <div class="wix-filter-header">Filters<span class="wid-filter-close"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAANlJREFUKBWdkkEKwjAQRWdSqBfwHDmEPYTgBVwXvIWCO8GlG6GHaA/hObxAC3Xan5AmrUkFZ1OY+S//Txo+3x6a6HPlbLM/HQ9vWqnL/bmVvq2IVKkAidBO+q7GIMVZqKuhBaPgxMwvEdEp2EOioTUMHL4HeeFip2bsosUEmCEF0lgnf+AEQrSEDRiB0J+BaISwEZidvBN6qPFW/6uZY+iGnXBkbD/0J3AJcZYXBly7nBj083esQXBExTQKby+1h8WI4I7o/oW11XirqmSmBgMXzwHh18PUgBkAXhfn47Oroz4AAAAASUVORK5CYII=" class="closeCross"></span></div>              {{each(index,filter) filterOptions}}                   {{if filter && filter.type==="enum"}}                      <div class="wiz-filter">                            <div class="title">${filter.title}</div>                            <div class="open-filters" id="${filter.field}">                                  <div class="filterInputTags">                                          {{if filter && filter.selected}}                                                 {{each(index,selectItem) filter.data}}                                                         {{if selectItem && selectItem.isSelect}}                                                         <span field="${selectItem.title}" value="${selectItem.fieldValue}" >${selectItem.title}</span>                                                        {{/if}}                                                {{/each}}                                          {{/if}}                                          {{if filter && !filter.isSelect}}                                                 <span>${"Select "+filter.title}</span>                                          {{/if}}                                  </div>                            </div>                      </div>                  {{/if}}                  {{if (filter && filter.type==="radio")}}                    <div class="wiz-filter {{if filter.view==="horizontal"}}horizontalView{{/if}}">                        <div class="title">${filter.title}</div>                        <div class="open-radiofilters">                            <div class="radiodivsdk" filter-type="radioFilter" filter-index="${index}">                                {{each(index,filterItem) filter.data}}                                     <label for="filterRadioHoriz_${filterItem.title}" class="radioItemContainer" field="${filterItem.field}">                                        <span>${filterItem.title}<span>                                          <input field="${filterItem.field}" {{if filterItem.isSelect}}checked{{/if}} name="radioFilterVertical" value-index="${index}" class="taskSelRadio" type="radio" value="${filterItem.isSelect}" id="filterRadioHoriz_${filterItem.title}"/>                                        <span class="checkmark"><span>                                    </label>                                {{/each}}                            </div>                        </div>                    </div>                 {{/if}}                 {{if  (filter && filter.type==="checkbox")}}                 <div class="wiz-filter {{if filter.view==="horizontal"}}horizontalView{{/if}}">                    <div class="title">${filter.title}</div>                    <div class="radiodivsdk" filter-type="checkBoxFilter" filter-index="${index}">                        {{each(index,filterItem) filter.data}}                             <label for="filterCheckHorixontal_${filterItem.value}" class="container checkContainer">                                <span>${filterItem.title}<span>                                <input filed="${filterItem.title}" {{if filterItem.isSelect}}checked{{/if}} name="${filterItem.title}" element="filterCheckbox" value-index="${index}"  class="taskSelRadio" type="checkbox" value="${filterItem.value}" id="filterCheckHorixontal_${filterItem.value}"/>                                <span class="checkmark"><span>                            </label>                        {{/each}}                    </div>                 </div>              {{/if}}              {{/each}}            </div>            <div class="action-bar">              <button class="btn apply-btn">Apply</button>            </div>        </div>     </scipt>';var b='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                   <div class="filterOptionsTemplateCtrl">                      <div class="sortBy">                            <div class="wix-filter-header">${"Select  "+ filterSelectedItems.title}<span class="wid-filter-close"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAANlJREFUKBWdkkEKwjAQRWdSqBfwHDmEPYTgBVwXvIWCO8GlG6GHaA/hObxAC3Xan5AmrUkFZ1OY+S//Txo+3x6a6HPlbLM/HQ9vWqnL/bmVvq2IVKkAidBO+q7GIMVZqKuhBaPgxMwvEdEp2EOioTUMHL4HeeFip2bsosUEmCEF0lgnf+AEQrSEDRiB0J+BaISwEZidvBN6qPFW/6uZY+iGnXBkbD/0J3AJcZYXBly7nBj083esQXBExTQKby+1h8WI4I7o/oW11XirqmSmBgMXzwHh18PUgBkAXhfn47Oroz4AAAAASUVORK5CYII=" class="closeCross"></span></div>                            {{if filterSelectedItems.isMulti === "Yes"}}                            <div class="radiodivsdk">                                {{each(index,filterItem) filterSelectedItems.data}}                                     <label for="filter_${filterItem.value}" class="container checkContainer">                                        <span>${filterItem.title}<span>                                        <input filed="${filterItem.title}" {{if filterItem.isSelect}}checked{{/if}} name="${filterItem.title}" class="taskSelRadio" type="checkbox" value="${filterItem.value}" id="filter_${filterItem.value}"/>                                        <span class="checkmark"><span>                                    </label>                                {{/each}}                            </div>                            {{else}}                            <div class="radiodivsdk" >                              {{each(index,filterItem) filterSelectedItems.data}}                               <div class="tickMarkContainer {{if filterItem.isSelect}}selected{{/if}}" field="${filterItem.title}">                                <span class="selectDropValue" valueObj="${JSON.stringify(filterItem)}">${filterItem.title}</span>                                <span class="selectedFilterTick "></span>                              </div>                              {{/each}}                            </div>                            {{/if}}                      </div>                      <div class="action-bar">                        <button class="btn apply-btn">Done</button>                      </div>                  </div>                </scipt>';var A='<script id="chat-window-listTemplate" type="text/x-jqury-tmpl">                <div role="main" class="tab-list-template" mainObj="${JSON.stringify(tempdata)}" panelDetail="${JSON.stringify(panelDetail)}">                   {{if tempdata}}                     <div class="sheetHeader hide">                        <div class="headerLeft">                        {{if panelDetail && panelDetail.widgetTitle}}                           <span class="choose">${panelDetail.widgetTitle}</span>                           {{else}}                             <span class="choose">${tempdata.widgetName}</span>                        {{/if}}                        {{if tempdata.description}}                        <p class="listViewItemSubtitle">${tempdata.description}</p>                        {{/if}}                        </div>                        {{if tempdata && tempdata.headerOptions && tempdata.headerOptions.type==="button" && tempdata.headerOptions.button && tempdata.headerOptions.button.title}}                        <div class="headerRight">                            <div role="button"  tabindex="0" actionObj="${JSON.stringify(tempdata.headerOptions.button)}" class="headerActionBTN action">${tempdata.headerOptions.button.title}</div>                        </div>                        {{/if}}                        {{if (tempdata.headerOptions && tempdata.headerOptions.type === "url" && tempdata.headerOptions.url && tempdata.headerOptions.url.title)}}                          <div class="headerRight">                             <div role="button" tabindex="0" actionObj="${JSON.stringify(tempdata.headerOptions.url)}" class="headerActionLink action">${tempdata.headerOptions.url.title}</div>                         </div>                        {{/if}}                        <div class="headerRight" style="display:none;">                          <div class="headerActionEllipsis">                          <i class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)"></i>                          <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                                  <li class="dropdown-item action"> one</li>                                  <li class="dropdown-item action"> two</li>                          </ul>                          </div>                        </div>                     </div>                    <div class="listTemplateContainer">                    {{if tempdata.tabs && tabs.length}}                       <div class="tabsContainer">                         {{each(key, tab) tabs}}                          <span class="tabs" data-tabid="${tab}" ><span class="btnBG">${tab}</span></span>                         {{/each}}                      </div>                    {{/if}}                       <ul class="displayListValues"w>                       {{each(key, msgItem) dataItems}}                        {{if ((viewmore && (key<=2)) || (!viewmore))}}                         <li class="listViewTmplContentChild" role="listitem">                           <div class="listViewTmplContentChildRow">                          {{if msgItem.image && msgItem.image.image_type === "image" && msgItem.image.image_src}}                                   <div class="listViewRightContent {{if msgItem.image.size}}${msgItem.image.size}{{/if}}" {{if msgItem.image.radius}}style="border-radius:$(msgItem.image.radius)"{{/if}}>                                      <img aria-hidden="true" alt="image" src="${msgItem.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                   </div>                           {{/if}}                               <div class="listViewLeftContent {{if (!msgItem.value) || (msgItem.value && msgItem.value.type==="text" && !msgItem.value.text) || (msgItem.value && msgItem.value.type==="button" && !msgItem.value.button)}}fullWidthTitle{{/if}} {{if msgItem.default_action}}handCursor{{/if}}" {{if msgItem && msgItem.default_action}}actionObj="${JSON.stringify(msgItem.default_action)}"{{/if}} {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize && ((msgItem.value && msgItem.value.type === "text" && msgItem.value.text) || (msgItem.value && msgItem.value.type === "url" && msgItem.value.url && msgItem.value.url.title) || (msgItem.value && msgItem.value.type=="button" && msgItem.value.button && (msgItem.value.button.title || (msgItem.value.button.image && msgItem.value.button.image.image_src))) || (msgItem.value && msgItem.value.type=="menu" && msgItem.value.menu && msgItem.value.menu.length))}} col-size="${msgItem.value.layout.colSize}"{{/if}}>                                     <span class="titleDesc ">                                      <div class="listViewItemTitle">${msgItem.title}</div>                                       {{if msgItem.subtitle}}                                        <div class="listViewItemSubtitle">${msgItem.subtitle}</div>                                      {{/if}}                                     </span>                              </div>                              {{if (msgItem.value && msgItem.value.type === "text" && msgItem.value.text)}}                                <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>                                    <div class="listViewItemValue {{if !msgItem.subtitle}}top10{{/if}}">${msgItem.value.text}</div>                                </div>                              {{/if}}                              {{if (msgItem.value && msgItem.value.type === "image" && msgItem.value.image && msgItem.value.image.image_src)}}                                <div actionObj="${JSON.stringify(msgItem.value.image)}" class="titleActions imageValue action {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>                                    {{if msgItem.value.image && msgItem.value.image.image_type === "image" && msgItem.value.image.image_src}}                                        <span class="wid-temp-btnImage">                                             <img aria-hidden="true" alt="image" src="${msgItem.value.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAA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bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                         </span>                                     {{/if}}                                </div>                              {{/if}}                              {{if (msgItem.value && msgItem.value.type === "url" && msgItem.value.url && msgItem.value.url.title)}}                                <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>                                    <div role="navigation" actionObj="${JSON.stringify(msgItem.value.url)}" class="listViewItemValue actionLink action {{if !msgItem.subtitle}}top10{{/if}}">${msgItem.value.url.title}</div>                                </div>                              {{/if}}                              {{if msgItem.value && msgItem.value.type=="button" && msgItem.value.button && (msgItem.value.button.title || (msgItem.value.button.image && msgItem.value.button.image.image_src))}}                                <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}}style="width:${msgItem.value.layout.colSize};"{{/if}}>                                    <div role="button" aria-live="polite" tabindex="1" class="actionBtns action singleBTN {{if !msgItem.value.button.title && (msgItem.value.button.image && msgItem.value.button.image.image_src)}}padding5{{/if}}" actionObj="${JSON.stringify(msgItem.value.button)}">                                        {{if msgItem.value.button.image && msgItem.value.button.image.image_type === "image" && msgItem.value.button.image.image_src}}                                                <span class="wid-temp-btnImage">                                                     <img aria-hidden="true" alt="image" src="${msgItem.value.button.image.image_src}" onerror="this.onerror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b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                                 </span>                                         {{/if}}                                        {{if msgItem.value.button.title}}                                        ${msgItem.value.button.title}                                        {{/if}}                                    </div>                                </div>                              {{/if}}                              {{if msgItem.value && msgItem.value.type=="menu" && msgItem.value.menu && msgItem.value.menu.length}}                              <div role="menu" aria-label="Dropdown Menu" class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}}style="width:${msgItem.value.layout.colSize};"{{/if}}>                                  <i class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)"></i>                                      <ul role="list" class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                                        {{each(key, actionbtnli) msgItem.value.menu}}                                               <li role="button" tabindex="0" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                            <i>                                            {{if actionbtnli.image && actionbtnli.image.image_type === "image" && msgItem.image.image_src}}                                            <span class="wid-temp-btnImage">                                                 <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk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zNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                             </span>                                             {{/if}}                                             </i>${actionbtnli.title}</li>                                        {{/each}}                                      </ul>                              </div>                              {{/if}}                            </div>                          {{if msgItem.details && msgItem.details.length}}                           <div role="contentinfo" class="tabListViewDiscription">                            {{each(key, content) msgItem.details}}                               {{if key < 3 }}                                 <div class="wid-temp-contentDiv" role="complementary">                                   {{if content.image && content.image.image_type === "image" && content.image.image_src}}                                       <span class="wid-temp-discImage">                                           <img aria-hidden="true" alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                       </span>                                    {{/if}}                                    {{if content.description}}                                      <span class="wid-temp-discription">${content.description}</span>                                   {{/if}}                                    {{if ((key===2) || ((msgItem.details.length < 3) && (key===msgItem.details.length-1))) && (msgItem.buttons && msgItem.buttons.length)}}                                    <span class="wid-temp-showActions" aria-live="polite" role="button" tabindex="1" aria-label="Show buttons icon">                                    </span>                                   {{/if}}                                  </div>                              {{/if}}                            {{/each}}                            {{if msgItem.details.length > 3}}                            <span class="wid-temp-showMore" id="showMoreContents">Show more <span class="show-more"></span></span>                            {{/if}}                          </div>                          <div class="wid-temp-showMoreBottom hide">                            <div class="showMoreContainer">                              <div class="headerTitleMore">MORE<span class="wid-temp-showMoreClose"><img aria-hidden="true" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAANlJREFUKBWdkkEKwjAQRWdSqBfwHDmEPYTgBVwXvIWCO8GlG6GHaA/hObxAC3Xan5AmrUkFZ1OY+S//Txo+3x6a6HPlbLM/HQ9vWqnL/bmVvq2IVKkAidBO+q7GIMVZqKuhBaPgxMwvEdEp2EOioTUMHL4HeeFip2bsosUEmCEF0lgnf+AEQrSEDRiB0J+BaISwEZidvBN6qPFW/6uZY+iGnXBkbD/0J3AJcZYXBly7nBj083esQXBExTQKby+1h8WI4I7o/oW11XirqmSmBgMXzwHh18PUgBkAXhfn47Oroz4AAAAASUVORK5CYII=" class="closeCross"></span></div>                              <div class="moreItemsScroll">                                {{each(key, content) msgItem.details}}                                     <div class="wid-temp-contentDiv">                                      {{if content.image && content.image.image_type === "image" && content.image.image_src}}                                            <span class="wid-temp-discImage">                                                 <img aria-hidden="true" alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCS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AAAAASUVORK5CYII=\';"/>                                             </span>                                       {{/if}}                                       {{if content.description}}                                           <span class="wid-temp-discription">${content.description}</span>                                      {{/if}}                                     </div>                                  {{/each}}                                </div>                            </div>                          </div>                          {{/if}}                          {{if (msgItem.buttons && msgItem.buttons.length)}}                           <div aria-live="polite" role="region" class="meetingActionButtons {{if ((msgItem.buttonsLayout && msgItem.buttonsLayout.style==="float"))}}float{{else}}fix{{/if}} {{if ((msgItem.details && msgItem.details.length))}}hide{{/if}}">                              {{each(key, actionbtn) msgItem.buttons}}                                      {{if (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && msgItem.buttonsLayout.displayLimit.count && (key < msgItem.buttonsLayout.displayLimit.count)) || (!msgItem.buttonsLayout && key < 2) || (msgItem.buttonsLayout && !msgItem.buttonsLayout.displayLimit && key < 2) || (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && !msgItem.buttonsLayout.displayLimit.count && key < 2)}}                                        {{if actionbtn.title}}                                          <div role="listitem" tabindex="0" class="actionBtns action" actionObj="${JSON.stringify(actionbtn)}">                                          <i>                                          {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                          <span class="wid-temp-btnImage">                                               <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                           </span>                                           {{/if}}                                           </i><span role="button">${actionbtn.title}</span></div>                                        {{/if}}                                      {{/if}}                              {{/each}}                              {{if (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && msgItem.buttonsLayout.displayLimit.count && (msgItem.buttons.length > msgItem.buttonsLayout.displayLimit.count)) || (!msgItem.buttonsLayout && msgItem.buttons.length > 2) || (msgItem.buttonsLayout && !msgItem.buttonsLayout.displayLimit && msgItem.buttons.length > 2) || (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && !msgItem.buttonsLayout.displayLimit.count && msgItem.buttons.length > 2)}}                              {{if (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && msgItem.buttonsLayout.displayLimit.count && (msgItem.buttons.length > msgItem.buttonsLayout.displayLimit.count)) || (!msgItem.buttonsLayout && msgItem.buttons.length > 3) || (msgItem.buttonsLayout && !msgItem.buttonsLayout.displayLimit && msgItem.buttons.length > 3) || (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && !msgItem.buttonsLayout.displayLimit.count && msgItem.buttons.length > 3)}}                                <div class="dropbtnWidgt actionBtns" style="margin:0;margin-top: 0px;top: unset;" onclick="showDropdown(this)">... More</div>                                <ul  class="dropdown-contentWidgt" style="list-style:none;">                                  {{each(key, actionbtn) msgItem.buttons}}                                    {{if key >= 2}}                                          <li role="button" tabindex="0" class="dropdown-item action" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}">                                          <i>                                          {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                          <span class="wid-temp-btnImage">                                               <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5pun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V1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                           </span>                                           {{/if}}                                           </i>${actionbtn.title}</li>                                   {{/if}}                                  {{/each}}                                </ul>                              {{/if}}                              {{if ((msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && !msgItem.buttonsLayout.displayLimit.count) || (!msgItem.buttonsLayout) ) && msgItem.buttons.length === 3}}                              {{each(key, actionbtn) msgItem.buttons}}                               {{if key === 2 }}                                {{if actionbtn.title}}                                  <div role="button" tabindex="0" class="actionBtns action" actionObj="${JSON.stringify(actionbtn)}">                                  <i>                                  {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                  <span class="wid-temp-btnImage">                                       <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                   </span>                                   {{/if}}                                   </i>${actionbtn.title}</div>                                {{/if}}                                 {{/if}}                               {{/each}}                              {{/if}}                            {{/if}}                          </div>                          {{/if}}                        </li>                         {{/if}}                       {{/each}}                       </ul>               <div style="clear:both"></div>              {{if dataItems && dataItems.length > 3 && viewmore}}                   <div class="listViewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')"><span class="seeMoreText">See more <span class="see-more"></span></span></div>              {{/if}}              {{if dataItems && dataItems.length === 0}}                  <div class="noContent">                      <img aria-hidden="true" class="img img-fluid" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNzEiIGhlaWdodD0iNjMiIHZpZXdCb3g9IjAgMCAxNzEgNjMiPgogICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBmaWxsPSIjRTVFOEVDIj4KICAgICAgICAgICAgPHJlY3Qgd2lkdGg9IjEzMSIgaGVpZ2h0PSIxMiIgeD0iMzkiIHk9IjUiIHJ4PSIyIi8+CiAgICAgICAgICAgIDxyZWN0IHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcng9IjIiLz4KICAgICAgICA8L2c+CiAgICAgICAgPGcgZmlsbD0iI0U1RThFQyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCA0MSkiPgogICAgICAgICAgICA8cmVjdCB3aWR0aD0iMTMxIiBoZWlnaHQ9IjEyIiB4PSIzOSIgeT0iNSIgcng9IjIiLz4KICAgICAgICAgICAgPHJlY3Qgd2lkdGg9IjIyIiBoZWlnaHQ9IjIyIiByeD0iMiIvPgogICAgICAgIDwvZz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNFNUU4RUMiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIHN0cm9rZS13aWR0aD0iLjciIGQ9Ik0uNSAzMS41aDE3MCIvPgogICAgPC9nPgo8L3N2Zz4K" width="118px" height="118px" style="margin-top:15px;">                      <div class="col-12 rmpmW nodataTxt">No Data</div>                  </div>              {{/if}}                    </div>                 {{/if}}                </div>             <\/script>';var I='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">              <div class="bar-chart-template" >               <div class="tab-list-template" mainObj="${JSON.stringify(tempdata)}">                 {{if tempdata}}                    <div class="listTemplateContainer">                   {{if tempdata.tabs && tabs.length}}                      <div class="tabsContainer">                       {{each(key, tab) tabs}}                        <span class="tabs" data-tabid="${tab}" ><span class="btnBG">${tab}</span></span>                       {{/each}}                     </div>                   {{/if}}                      <ul class="displayListValues">                       <li class="listViewTmplContentChild">                          <div class="listViewTmplContentChildRow">                         {{if tempdata.image && tempdata.image.image_type === "image"}}                                  <div class="listViewRightContent">                                      <img aria-hidden="true"  alt="image" src="${tempdata.image.namespace}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                  </div>                          {{/if}}                          <div class="listViewLeftContent">                                <div class="barchartDiv">                                       <div class="wiz-header-buttons hide">                                         {{if tempdata.buttons && tempdata.buttons.length > 1}}                                            <i  class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)">... More</i>                                           <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                                             {{each(key, actionbtnli) tempdata.buttons}}                                                    <li role="button" tabindex="0" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                                 <i>                                                 {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}                                                 <span class="wid-temp-btnImage">                                                  <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv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AAASUVORK5CYII=\';"/>                                                  </span>                                                  {{/if}}                                                  </i>${actionbtnli.title}</li>                                             {{/each}}                                           </ul>                                         {{/if}}                                         {{if tempdata.buttons && tempdata.buttons.length === 1}}                                              {{each(key, actionbtnli) tempdata.buttons}}                                                  <a role="button" tabindex="0" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                                     {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}                                                       <i>                                                         <span class="wid-temp-btnImage">                                                              <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                                          </span>                                                        </i>                                                     {{/if}}                                                      {{if actionbtnli.title}}                                                       ${actionbtnli.title}                                                     {{/if}}                                                 </a>                                             {{/each}}                                         {{/if}}                                       </div>                               </div>                               <div class="" id="barchart"></div>                               {{if tempdata.value && tempdata.value.type=="text"}}<div class="listViewItemValue">${tempdata.value.text}</div>{{/if}}                                {{if tempdata.value && tempdata.value.type=="button"}}                                   {{if tempdata.value && tempdata.value.buttons && tempdata.value.buttons.length > 1}}                                      <i  class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)">... More</i>                                     <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                                       {{each(key, actionbtnli) tempdata.value.buttons}}                                              <li role="button" tabindex="0" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                           <i>                                           {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}                                           <span class="wid-temp-btnImage">                                                <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                            </span>                                            {{/if}}                                            </i>${actionbtnli.title}</li>                                       {{/each}}                                     </ul>                                   {{/if}}                                   {{if tempdata.value && tempdata.value.buttons && tempdata.value.buttons.length === 1}}                                      <div role="button" tabindex="0" class="viewMore action" actionObj="${JSON.stringify(tempdata.value.buttons[0])}" >${tempdata.value.buttons[0].title}</div>                                   {{/if}}                               {{/if}}                          </div>                         </div>                         {{if tempdata.content && tempdata.content.length}}                          <div class="tabListViewDiscription">                           {{each(key, content) tempdata.content}}                              {{if key < 3 }}                               <div class="wid-temp-contentDiv">                                 {{if content.image && content.image.image_type === "image"}}                                      <span class="wid-temp-discImage">                                          <img aria-hidden="true"  alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                      </span>                                  {{/if}}                                  {{if content.description}}                                    <span class="wid-temp-discription">${content.description}</span>                                 {{/if}}                                  {{if ((key===2) || ((tempdata.content.length < 3) && (key===tempdata.content.length-1))) && (tempdata.buttons && tempdata.buttons.length)}}                                  <span class="wid-temp-showActions">                                 </span>                                 {{/if}}                                </div>                             {{/if}}                           {{/each}}                           {{if tempdata.content.length > 3}}                           <span class="wid-temp-showMore" id="showMoreContents">Show more <img src="libs/images/show-more.svg" class="show-more"></span>                           {{/if}}                         </div>                         <div class="wid-temp-showMoreBottom hide">                         <div class="headerTitleMore">MORE<span class="wid-temp-showMoreClose"><img src="libs/images/closeCross.png" class="closeCross"></span></div>                           {{each(key, content) tempdata.content}}                              <div class="wid-temp-contentDiv">                               {{if content.image && content.image.image_type === "image"}}                                     <span class="wid-temp-discImage">                                          <img aria-hidden="true"  alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                      </span>                                {{/if}}                                {{if content.description}}                                    <span class="wid-temp-discription">${content.description}</span>                               {{/if}}                              </div>                           {{/each}}                         </div>                         {{/if}}                         {{if (tempdata.buttons && tempdata.buttons.length)}}                          <div class="meetingActionButtons {{if ((tempdata.content && tempdata.content.length))}}hide{{/if}}">                             {{each(key, actionbtn) tempdata.buttons}}                                     {{if key < 2 }}                                       {{if actionbtn.title}}                                         <div role="button" tabindex="0" class="actionBtns action" actionObj="${JSON.stringify(actionbtn)}">                                         <i>                                         {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                         <span class="wid-temp-btnImage">                                              <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVB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iuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                          </span>                                          {{/if}}                                          </i>${actionbtn.title}</div>                                       {{/if}}                                     {{/if}}                             {{/each}}                             {{if tempdata.buttons && (tempdata.buttons.length > 2)}}                             {{if tempdata.buttons && tempdata.buttons.length > 2}}                               <div class="dropbtnWidgt actionBtns" style="margin:0;margin-top: 0px;top: unset;" onclick="showDropdown(this)">... More</div>                               <ul  class="dropdown-contentWidgt" style="list-style:none;">                                 {{each(key, actionbtn) tempdata.buttons}}                                  {{if key >= 2}}                                         <li role="button" tabindex="0" class="dropdown-item action" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}">                                         <i>                                         {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                         <span class="wid-temp-btnImage">                                              <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                          </span>                                          {{/if}}                                          </i>${actionbtn.title}</li>                                 {{/if}}                                 {{/each}}                               </ul>                             {{/if}}                             {{if tempdata.buttons && tempdata.buttons.length === 7}}                             {{if key === 7}}                                 <div role="button" tabindex="0" class="actionBtns action" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(msgItem)}">                                 <i>                                   {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                         <span class="wid-temp-btnImage">                                              <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                          </span>                                    {{/if}}                                    </i>${actionbtn.title}</div>                             {{/if}}                             {{/if}}                           {{/if}}                         </div>                         {{/if}}                       </li>                      </ul>                    </div>               {{/if}}               </div>             </div>           </scipt>';var M='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">             <div class="line-chart-template">              <div class="tab-list-template" mainObj="${JSON.stringify(tempdata)}">                {{if tempdata}}                   <div class="listTemplateContainer">                  {{if tempdata.tabs && tabs.length}}                     <div class="tabsContainer">                      {{each(key, tab) tabs}}                       <span class="tabs" data-tabid="${tab}" ><span class="btnBG">${tab}</span></span>                      {{/each}}                    </div>                  {{/if}}                     <ul class="displayListValues">                      <li class="listViewTmplContentChild">                         <div class="listViewTmplContentChildRow">                        {{if tempdata.image && tempdata.image.image_type === "image"}}                                 <div class="listViewRightContent">                                     <img aria-hidden="true"  alt="image" src="${tempdata.image.image_src}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                 </div>                         {{/if}}                         <div class="listViewLeftContent">                               <div class="linechartDiv">                                      <div class="wiz-header-buttons hide">                                        {{if tempdata.buttons && tempdata.buttons.length > 1}}                                           <i  class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)">... More</i>                                          <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                                            {{each(key, actionbtnli) tempdata.buttons}}                                                   <li role="button" tabindex="0" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                                <i>                                                {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}                                                <span class="wid-temp-btnImage">                                                 <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                                 </span>                                                 {{/if}}                                                 </i>${actionbtnli.title}</li>                                            {{/each}}                                          </ul>                                        {{/if}}                                        {{if tempdata.buttons && tempdata.buttons.length === 1}}                                             {{each(key, actionbtnli) tempdata.buttons}}                                                 <a role="button" tabindex="0" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                                    {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}                                                      <i>                                                        <span class="wid-temp-btnImage">                                                             <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25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NguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                                         </span>                                                       </i>                                                    {{/if}}                                                     {{if actionbtnli.title}}                                                      ${actionbtnli.title}                                                    {{/if}}                                                </a>                                            {{/each}}                                        {{/if}}                                      </div>                              </div>                              <div class="" id="linechart"></div>                              {{if tempdata.value && tempdata.value.type=="text"}}<div class="listViewItemValue">${tempdata.value.text}</div>{{/if}}                               {{if tempdata.value && tempdata.value.type=="button"}}                                  {{if tempdata.value && tempdata.value.buttons && tempdata.value.buttons.length > 1}}                                     <i  class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)">... More</i>                                    <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                                      {{each(key, actionbtnli) tempdata.value.buttons}}                                             <li role="button" tabindex="0" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                          <i>                                          {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}                                          <span class="wid-temp-btnImage">                                               <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/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yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                           </span>                                           {{/if}}                                           </i>${actionbtnli.title}</li>                                      {{/each}}                                    </ul>                                  {{/if}}                                  {{if tempdata.value && tempdata.value.buttons && tempdata.value.buttons.length === 1}}                                     <div role="button" tabindex="0" class="viewMore action" actionObj="${JSON.stringify(tempdata.value.buttons[0])}" >${tempdata.value.buttons[0].title}</div>                                  {{/if}}                              {{/if}}                         </div>                        </div>                        {{if tempdata.details && tempdata.details.length}}                         <div class="tabListViewDiscription">                          {{each(key, content) tempdata.details}}                             {{if key < 3 }}                              <div class="wid-temp-contentDiv">                                {{if content.image && content.image.image_type === "image"}}                                     <span class="wid-temp-discImage">                                         <img aria-hidden="true"  alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                     </span>                                 {{/if}}                                 {{if content.description}}                                   <span class="wid-temp-discription">${content.description}</span>                                {{/if}}                                 {{if ((key===2) || ((tempdata.details.length < 3) && (key===tempdata.details.length-1))) && (tempdata.buttons && tempdata.buttons.length)}}                                 <span class="wid-temp-showActions">                                </span>                                {{/if}}                               </div>                            {{/if}}                          {{/each}}                          {{if tempdata.details.length > 3}}                          <span class="wid-temp-showMore" id="showMoreContents">Show more <img src="libs/images/show-more.svg" class="show-more"></span>                          {{/if}}                        </div>                        <div class="wid-temp-showMoreBottom hide">                        <div class="headerTitleMore">MORE<span class="wid-temp-showMoreClose"><img src="libs/images/closeCross.png" class="closeCross"></span></div>                          {{each(key, content) tempdata.details}}                             <div class="wid-temp-contentDiv">                              {{if content.image && content.image.image_type === "image"}}                                    <span class="wid-temp-discImage">                                         <img aria-hidden="true"  alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                     </span>                               {{/if}}                               {{if content.description}}                                   <span class="wid-temp-discription">${content.description}</span>                              {{/if}}                             </div>                          {{/each}}                        </div>                        {{/if}}                        {{if (tempdata.buttons && tempdata.buttons.length)}}                         <div class="meetingActionButtons {{if ((tempdata.details && tempdata.details.length))}}hide{{/if}}">                            {{each(key, actionbtn) tempdata.buttons}}                                    {{if key < 2 }}                                      {{if actionbtn.title}}                                        <div role="button" tabindex="0" class="actionBtns action" actionObj="${JSON.stringify(actionbtn)}">                                        <i>                                        {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                        <span class="wid-temp-btnImage">                                             <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                         </span>                                         {{/if}}                                         </i>${actionbtn.title}</div>                                      {{/if}}                                    {{/if}}                            {{/each}}                            {{if tempdata.buttons && (tempdata.buttons.length > 2)}}                            {{if tempdata.buttons && tempdata.buttons.length > 2}}                              <div class="dropbtnWidgt actionBtns" style="margin:0;margin-top: 0px;top: unset;" onclick="showDropdown(this)">... More</div>                              <ul role="region"  class="dropdown-contentWidgt" style="list-style:none;">                                {{each(key, actionbtn) tempdata.buttons}}                                 {{if key >= 2}}                                        <li role="button" tabindex="0" class="dropdown-item action" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}">                                        <i>                                        {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                        <span class="wid-temp-btnImage">                                             <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                         </span>                                         {{/if}}                                         </i>${actionbtn.title}</li>                                {{/if}}                                {{/each}}                              </ul>                            {{/if}}                            {{if tempdata.buttons && tempdata.buttons.length === 7}}                            {{if key === 7}}                                <div role="button" tabindex="0"  class="actionBtns action" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(msgItem)}">                                <i>                                  {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                        <span class="wid-temp-btnImage">                                             <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+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>                                   {{/if}}                                   </i>${actionbtn.title}</div>                            {{/if}}                            {{/if}}                          {{/if}}                        </div>                        {{/if}}                      </li>                     </ul>                   </div>              {{/if}}              </div>            </div>         </scipt>';var w='<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 <div class="pie-chart-template">                  <div class="tab-list-template" mainObj="${JSON.stringify(tempdata)}">                    {{if tempdata}}                       <div class="listTemplateContainer">                      {{if tempdata.tabs && tabs.length}}                         <div class="tabsContainer">                          {{each(key, tab) tabs}}                           <span role="tab" tabindex="0" class="tabs" data-tabid="${tab}" ><span class="btnBG">${tab}</span></span>                          {{/each}}                        </div>                      {{/if}}                         <ul class="displayListValues">                          <li class="listViewTmplContentChild">                             <div class="listViewTmplContentChildRow">                            {{if tempdata.image && tempdata.image.image_type === "image"}}                                     <div class="listViewRightContent">                                         <img aria-hidden="true" alt="image" src="${tempdata.image.image_src}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                     </div>                             {{/if}}                             <div class="listViewLeftContent">                                   <div class="piechartDiv">                                          <div class="wiz-header-buttons hide">                                            {{if tempdata.buttons && tempdata.buttons.length > 1}}                                               <i  class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)">... More</i>                                              <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                                                {{each(key, actionbtnli) tempdata.buttons}}                                                       <li role="button" tabindex="0" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                                    <i>                                                    {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}                                                    <span class="wid-temp-btnImage">                                                     <img alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqB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S9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                                     </span>                                                     {{/if}}                                                     </i>${actionbtnli.title}</li>                                                {{/each}}                                              </ul>                                            {{/if}}                                            {{if tempdata.buttons && tempdata.buttons.length === 1}}                                                 {{each(key, actionbtnli) tempdata.buttons}}                                                     <a class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                                        {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}                                                          <i>                                                            <span class="wid-temp-btnImage">                                                                 <img alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                                             </span>                                                           </i>                                                        {{/if}}                                                         {{if actionbtnli.title}}                                                          ${actionbtnli.title}                                                        {{/if}}                                                    </a>                                                {{/each}}                                            {{/if}}                                          </div>                                  </div>                                  <div class="" id="piechart"></div>                                  {{if tempdata.value && tempdata.value.type=="text"}}<div class="listViewItemValue">${tempdata.value.text}</div>{{/if}}                                   {{if tempdata.value && tempdata.value.type=="button"}}                                      {{if tempdata.value && tempdata.value.buttons && tempdata.value.buttons.length > 1}}                                         <i  class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)">... More</i>                                        <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                                          {{each(key, actionbtnli) tempdata.value.buttons}}                                                 <li class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                              <i>                                              {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}                                              <span class="wid-temp-btnImage">                                                   <img alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                               </span>                                               {{/if}}                                               </i>${actionbtnli.title}</li>                                          {{/each}}                                        </ul>                                      {{/if}}                                      {{if tempdata.value && tempdata.value.buttons && tempdata.value.buttons.length === 1}}                                         <div class="viewMore action" actionObj="${JSON.stringify(tempdata.value.buttons[0])}" >${tempdata.value.buttons[0].title}</div>                                      {{/if}}                                  {{/if}}                             </div>                            </div>                            {{if tempdata.details && tempdata.details.length}}                             <div class="tabListViewDiscription">                              {{each(key, content) tempdata.details}}                                 {{if key < 3 }}                                  <div class="wid-temp-contentDiv">                                    {{if content.image && content.image.image_type === "image"}}                                         <span class="wid-temp-discImage">                                             <img aria-hidden="true"  alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                         </span>                                     {{/if}}                                     {{if content.description}}                                       <span class="wid-temp-discription">${content.description}</span>                                    {{/if}}                                     {{if ((key===2) || ((tempdata.details.length < 3) && (key===tempdata.details.length-1))) && (tempdata.buttons && tempdata.buttons.length)}}                                     <span class="wid-temp-showActions">                                    </span>                                    {{/if}}                                   </div>                                {{/if}}                              {{/each}}                              {{if tempdata.details.length > 3}}                              <span class="wid-temp-showMore" id="showMoreContents">Show more <img src="libs/images/show-more.svg" class="show-more"></span>                              {{/if}}                            </div>                            <div class="wid-temp-showMoreBottom hide">                            <div class="headerTitleMore">MORE<span class="wid-temp-showMoreClose"><img src="libs/images/closeCross.png" class="closeCross"></span></div>                            <div class="moreItemsScroll">                            {{each(key, content) tempdata.details}}                                 <div class="wid-temp-contentDiv">                                  {{if content.image && content.image.image_type === "image"}}                                        <span class="wid-temp-discImage">                                             <img alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                         </span>                                   {{/if}}                                   {{if content.description}}                                       <span class="wid-temp-discription">${content.description}</span>                                  {{/if}}                                 </div>                              {{/each}}                            </div>                            </div>                            {{/if}}                            {{if (tempdata.buttons && tempdata.buttons.length)}}                             <div class="meetingActionButtons {{if ((tempdata.details && tempdata.details.length))}}hide{{/if}}">                                {{each(key, actionbtn) tempdata.buttons}}                                        {{if key < 2 }}                                          {{if actionbtn.title}}                                            <div role="button" class="actionBtns action" actionObj="${JSON.stringify(actionbtn)}">                                            <i>                                            {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                            <span class="wid-temp-btnImage">                                                 <img alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX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BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                             </span>                                             {{/if}}                                             </i>${actionbtn.title}</div>                                          {{/if}}                                        {{/if}}                                {{/each}}                                {{if tempdata.buttons && (tempdata.buttons.length > 2)}}                                {{if tempdata.buttons && tempdata.buttons.length > 2}}                                  <div class="dropbtnWidgt actionBtns" style="margin:0;margin-top: 0px;top: unset;" onclick="showDropdown(this)">... More</div>                                  <ul  class="dropdown-contentWidgt" style="list-style:none;">                                    {{each(key, actionbtn) tempdata.buttons}}                                     {{if key >= 2}}                                            <li class="dropdown-item action" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}">                                            <i>                                            {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                            <span class="wid-temp-btnImage">                                                 <img alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                             </span>                                             {{/if}}                                             </i>${actionbtn.title}</li>                                    {{/if}}                                    {{/each}}                                  </ul>                                {{/if}}                                {{if tempdata.buttons && tempdata.buttons.length === 7}}                                {{if key === 7}}                                    <div role="button" class="actionBtns action" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}" mainObj="${JSON.stringify(msgItem)}">                                    <i>                                      {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}                                            <span class="wid-temp-btnImage">                                                 <img alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                             </span>                                       {{/if}}                                       </i>${actionbtn.title}</div>                                {{/if}}                                {{/if}}                              {{/if}}                            </div>                            {{/if}}                          </li>                         </ul>                       </div>                  {{/if}}                  </div>                </div>             </scipt>';var C='<script>               {{if tempdata && tempdata.displayLimit && tempdata.displayLimit.displayAs === "inline" }}                 <div class="actionItemsParentDiv" mainObj="${JSON.stringify(tempdata)}">                   <div class="actionItemsHeader">                     <div class="actionItemHeading">${tempdata.heading}</div>                     {{if tempdata && tempdata.text}}                       <span class="actionItemText">${tempdata.text}</span>                     {{/if}}                   </div>                   {{if tempdata && tempdata.buttons && tempdata.buttons.length}}                     <div class="actionItemBody">                       {{each(key, actionbtn) tempdata.actionItems}}                         <span class = "actionBtnTitle {{if key<tempdata.displayLimit.count}} show {{else}} hide {{/if}}" actionObj="${JSON.stringify(actionbtn)}">${actionbtn.title}</span>                       {{/each}}                       <span class="hasMoreActionItems"> + ${tempdata.actionItems.length - tempdata.displayLimit.count} More</span>                     </div>                   {{/if}}                 </div>               {{/if}}             <\/script>';var _='<script>                         <div class="listTableContainerDiv">                        <div class="listTableContainerDivRepet">                        <div class="listTableContainer">                        {{each(index,record) tempdata.records}}                                <div class="listTableDetailsBorderDiv">                                        <div class="listTableDetails" role="main">                                            <p role="header" class="listTableDetailsTitle">${record.sectionHeader}</p>                                {{each(index,msgItem) record.elements}}                                            <div role="list" class="listTableDetailsDesc {{if msgItem.image && msgItem.image.size==="medium"}}mediumImg{{/if}}" {{if msgItem.image && msgItem.image.size==="large"}}mediumImg{{/if}}" {{if msgItem.image && msgItem.image.size==="small"}}smallImg{{/if}}">                                              {{if msgItem && msgItem.image && msgItem.image.image_type && msgItem.image.image_src}}                                                <div class="listTableBigImgConytainer">                                                  {{if msgItem.image.image_type === "image"}}                                                      <img aria-hidden="true" src="${msgItem.image.image_src}">                                                  {{/if}}                                                  {{if msgItem.image.image_type === "fontawesome"}}                                                      <i aria-hidden="true" class="fa {{msgItem.image.image_src}}" ></i>                                                  {{/if}}                                                </div>                                              {{/if}}                                                <div class="listTableDetailsDescSub" role="region">                                                    <p role="heading" aria-level="1" class="listTableDetailsDescName">${msgItem.title}</p>                                                    <p role="heading" aria-level="2" class="listTableDetailsDescValue">${msgItem.subtitle}</p>                                                </div>                                                  {{if (msgItem.value && msgItem.value.type === "text" && msgItem.value.text)}}                                                    <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}} {{if msgItem.value && msgItem.value.layout && msgItem.value.color}} style="color:${msgItem.value.layout.color};"{{/if}}>                                                        <div class="listViewItemValue {{if !msgItem.subtitle}}top10{{/if}}">${msgItem.value.text}</div>                                                    </div>                                                  {{/if}}                                                  {{if (msgItem.value && msgItem.value.type === "image" && msgItem.value.image && msgItem.value.image.image_src)}}                                                    <div actionObj="${JSON.stringify(msgItem.value.image)}" class="titleActions imageValue action {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>                                                        {{if msgItem.value.image && msgItem.value.image.image_type === "image" && msgItem.value.image.image_src}}                                                            <span class="wid-temp-btnImage">                                                                 <img aria-hidden="true" alt="image" src="${msgItem.value.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                                             </span>                                                         {{/if}}                                                    </div>                                                  {{/if}}                                                  {{if (msgItem.value && msgItem.value.type === "url" && msgItem.value.url && msgItem.value.url.title)}}                                                    <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>                                                        <div role="button" actionObj="${JSON.stringify(msgItem.value.url)}" class="listViewItemValue actionLink action {{if !msgItem.subtitle}}top10{{/if}}">${msgItem.value.url.title}</div>                                                    </div>                                                  {{/if}}                                                  {{if msgItem.value && msgItem.value.type=="button" && msgItem.value.button && (msgItem.value.button.title || (msgItem.value.button.image && msgItem.value.button.image.image_src))}}                                                    <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}}style="width:${msgItem.value.layout.colSize};"{{/if}}>                                                        <div role="button" class="actionBtns action singleBTN {{if !msgItem.value.button.title && (msgItem.value.button.image && msgItem.value.button.image.image_src)}}padding5{{/if}}" actionObj="${JSON.stringify(msgItem.value.button)}">                                                            {{if msgItem.value.button.image && msgItem.value.button.image.image_type === "image" && msgItem.value.button.image.image_src}}                                                                    <span class="wid-temp-btnImage">                                                                         <img aria-hidden="true" alt="image" src="${msgItem.value.button.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                                                     </span>                                                             {{/if}}                                                            {{if msgItem.value.button.title}}                                                            ${msgItem.value.button.title}                                                            {{/if}}                                                        </div>                                                    </div>                                                  {{/if}}                                                  {{if msgItem.value && msgItem.value.type=="menu" && msgItem.value.menu && msgItem.value.menu.length}}                                                  <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}}style="width:${msgItem.value.layout.colSize};"{{/if}}>                                                      <i class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)"></i>                                                          <ul role="list" class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">                                                            {{each(key, actionbtnli) msgItem.value.menu}}                                                                   <li role="listitem" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">                                                                <i>                                                                {{if actionbtnli.image && actionbtnli.image.image_type === "image" && msgItem.image.image_src}}                                                                <span class="wid-temp-btnImage">                                                                     <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/>                                                                 </span>                                                                 {{/if}}                                                                 </i><span role="button" aria-label="${"Clickble " + actionbtnli.title}">${actionbtnli.title}</span></li>                                                            {{/each}}                                                          </ul>                                                  </div>                                                  {{/if}}                                            </div>                                {{/each}}                                        </div>                                </div>                        {{/each}}                        </div>                        {{if tempdata.records && tempdata.records.length > 3 && viewmore}}                             <div class="seeMoreFooter">                                <span class="seeMoreLink" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">Show more</span>                            </div>                        {{/if}}                        </div>                    </div>          </sript>';var T='<script  type="text/x-jquery-tmpl">           <div class="webFormWidget" {{if panelDetail}}panelDetail="${JSON.stringify(panelDetail)}"{{/if}}>              {{if tempdata && tempdata.formLink}}                      <iframe id="${panelDetail.subpanel}" class="iframeModal" src="${tempdata.formLink}"></iframe>               {{else}}                      {{if tempdata.success}}                        <div class="sucessMsg">                        <img class="sucessTickGreen" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj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MzMuODQzNzUgMjQuNDI5MzE2NSwzMy43Mzk1ODQ0IDI0LjIyMDk4MjEsMzMuNTMxMjUgTDE4LjY2Mjk0NjQsMjcuOTczMjE0MyBDMTguNDU0NjEyMSwyNy43NjQ4Nzk5IDE4LjM1MDQ0NjQsMjcuNTExOTA2MyAxOC4zNTA0NDY0LDI3LjIxNDI4NTcgQzE4LjM1MDQ0NjQsMjYuOTE2NjY1MiAxOC40NTQ2MTIxLDI2LjY2MzY5MTUgMTguNjYyOTQ2NCwyNi40NTUzNTcxIEwyMC4xODA4MDM2LDI0LjkzNzUgQzIwLjM4OTEzNzksMjQuNzI5MTY1NiAyMC42NDIxMTE2LDI0LjYyNSAyMC45Mzk3MzIxLDI0LjYyNSBDMjEuMjM3MzUyNywyNC42MjUgMjEuNDkwMzI2MywyNC43MjkxNjU2IDIxLjY5ODY2MDcsMjQuOTM3NSBMMjQuOTc5OTEwNywyOC4yMjk5MTA3IEwzMi4zMDEzMzkzLDIwLjg5NzMyMTQgQzMyLjUwOTY3MzcsMjAuNjg4OTg3MSAzMi43NjI2NDczLDIwLjU4NDgyMTQgMzMuMDYwMjY3OSwyMC41ODQ4MjE0IEMzMy4zNTc4ODg0LDIwLjU4NDgyMTQgMzMuNjEwODYyMSwyMC42ODg5ODcxIDMzLjgxOTE5NjQsMjAuODk3MzIxNCBMMzUuMzM3MDUzNiwyMi40MTUxNzg2IFoiIGlkPSLvgIwiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==">                          <div class="sucessDesc">${tempdata.successMsg}</div>                          <button class="sucessDoneBtn"><span class="doneBTNText">Done</span> <span class="sucessProgress"></span></button>                        </div>                      {{else}}                      <div class="failedIframe">Failed to load Form</div>                    {{/if}}            {{/if}}          </div>       <\/script>';switch(t){case"menu":return e;case"meetingTemplate":return o;case"tasksTemplate":return s;case"filesTemplate":return r;case"defaultFilesTemplate":return l;case"mainTemplate":return i;case"viewMoreTemplate":return a;case"knowledgeTemplate":return c;case"announcementTemplate":return u;case"hashtagTemplate":return d;case"skillsTemplate":return f;case"defaultTemplate":return m;case"popUpTemplate":return h;case"chartListTemplate":return p;case"errorTemplate":return g;case"filterTemplate":return D;case"filterOptionsTemplate":return b;case"List":return A;case"pieChartTemplate":return w;case"TabbedList":return A;case"ActionItems":return C;case"barChartTemplate":return I;case"lineChartTemplate":return M;case"ErrorTemplate":return y;case"AuthRequired":return v;case"widgetHeader":return n;case"TableList":return _;case"webForm":return T}};window.menuActiveTab="";var t=["meetings","tasks","files","knowledge","announcement"];var c;var r={editComponentList:["AnnouncementformComponent","InfoshowformComponent","CreateNotesComponent"],editComponentSelector:{AnnouncementformComponent:"app-announcementform",InfoshowformComponent:"app-infoshowform",CreateNotesComponent:"app-createnotes"},selector:["app-announcementform","app-infoshowform","app-createnotes"]};var d=0,f="",p="",u=[];var h=[];var m,v={},D=true;var b={actionIcon:function t(e){if(e.type==="open_form")return"icon-Take-notes";else if(e.type==="url")return"icon-Go-out"},updateMeetingTimer:function t(e,n,i,a){return true},compareCurntTimeAndTimln_minutes:function t(e,n,i){if(e){var a=e;var o=(new Date).getTime();var s=a-o;var r=Math.ceil(s/6e4);var l;if(n)l=n-o;if(i==="textFormat"){var c=b.getTimeline(e,"fulldate","meetings");if(c==="Happening Now"||c==="Later Today"||c==="Today"){if(r>0){var u=Math.floor(r/60);var d=r%60;if(r>60)return"In "+u+"h  "+d+"m";else if(r<60)return"In "+d+"m"}else if(r<=0)return"Now"}else if(c==="Tomorrow")return"Tomorrow";else if(c==="Yesterday"){if(r<0&&l>0)return"Now";return"xcac"}else{var f=new Date(e);var p=f.getMonth()+"/"+(f.getDate()+1)+"/"+f.getFullYear();var h=new Date;var m=h.getMonth()+"/"+(h.getDate()+1)+"/"+h.getFullYear();var g=new Date(p);var y=new Date(m);var v=Math.abs(y-g);var D=Math.ceil(v/(1e3*60*60*24));return"In "+D+" days"}}return r}},callMeetingTimer:function t(e,n,i){b.compareCurntTimeAndTimln_minutes(e,n,i)},getWidgetIcon:function t(e){e=e?e.toLowerCase():"";if(e=="meetings"||e==="meeting")return"icon-MeetingCalendar";if(e=="task"||e==="tasks")return"icon-Tasks";if(e=="file"||e==="files")return"icon-iOS---Folder";if(e=="knowledge"||e==="knowledges")return"icon-Knowledge-Cap";if(e=="announcement"||e==="announcements")return"icon-Announcements";return""},checkMeetingHeaderTimeline:function t(e,n){if(n===0)return true;else{var i=new Date(parseInt(e[n-1].data["duration"]["start"]));var a=new Date(parseInt(e[n].data["duration"]["start"]));if(i.toDateString()===a.toDateString()||(new Date).toDateString()===a.toDateString()){var o=b.compareCurntTimeAndTimln_minutes(e[n].data.duration.start,null,null);var s=b.compareCurntTimeAndTimln_minutes(e[n-1].data.duration.start,null,null);var r=b.compareCurntTimeAndTimln_minutes(e[n].data.duration.start,null,null);if(s<=5&&r<=5||s<=5&&r<=0||s<0&&r<0||s<=5&&r<0||s<0&&r<=5)return false;else if((s<=5||s<0)&&r>5)return true;return false}else return true}},checkForlineWidget:function t(e,n){var i=[];for(var a=0;a<e.length;a++)i[a]=b.getTimeline(e[a].data.duration.start,"fulldate","meetings");var o=b.getTimeline(e[n].data.duration.start,"fulldate","meetings");if(i[n]===o&&i[n+1]===o)return false;else return true},getTimeline:function t(e,n,i){n=n?n.toLowerCase():"";var a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var s=new Date(e);var r=o[s.getDay()];var l=a[s.getMonth()];var c=s.getDate();var u=new Date;var d=o[u.getDay()];var f=a[u.getMonth()];var p=u.getDate();var h=new Date((new Date).valueOf()-1e3*60*60*24);var m=o[h.getDay()];var g=a[h.getMonth()];var y=h.getDate();var v=new Date((new Date).valueOf()+1e3*60*60*24);var D=o[v.getDay()];var b=a[v.getMonth()];var A=v.getDate();if(n==="day")return r;else if(n==="numberdate")if(r+l+c===d+f+p)return"Today";else if(r+l+c===m+g+y)return"Yesterday";else if(r+l+c===D+b+A)return"Tomorrow";else{l=s.getMonth()+1;return s.getDate()+"/"+l+"/"+s.getFullYear()}else if(n==="date")if(r+l+c===d+f+p)return"Today";else if(r+l+c===m+g+y)return"Yesterday";else if(r+l+c===D+b+A)return"Tomorrow";else return l+" "+c;else if(n==="fulldate")if(r+l+c===d+f+p)if(i==="meetings"){var I=e;var M=(new Date).getTime();var w=I-M;var C=Math.ceil(w/6e4);if(C<=5&&C>0||C<0)return"Happening Now";return"Later Today"}else return"Today";else if(r+l+c===m+g+y)return"Yesterday";else if(r+l+c===D+b+A)return"Tomorrow";else return r+", "+l+" "+c;else if(n==="year")return s.getYear().toString().substring(1,3);else if(n==="fullyear")return s.getFullYear();else if(n==="time"){var _=s.getHours();var T=s.getMinutes();var k=_>=12?"PM":"AM";_=_%12;_=_?_:12;T=T<10?"0"+T:T;_=_<10?"0"+_:_;var x=_+":"+T+" "+k;return x}},getFileIcon:function t(e){if(docType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeDoc"></i>';else if(slideType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeSlide"></i>';else if(audioType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeAudio"></i>';else if(videoType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeVideo"></i>';else if(imageType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeImage"></i>';else if(vectorType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeVector"></i>';else if(pdfType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypePDF"></i>';else if(sheetType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeSheet"></i>';else if(databaseType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeDatabase"></i>';else if(execType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeExec"></i>';else if(fontType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeFont"></i>';else if(systemType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeSystem"></i>';else if(zipType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeZip"></i>';else if(devpType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeDevp"></i>';else if(dobjType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeDObject"></i>';else if(sketchType.indexOf(e.toUpperCase())!==-1)return'<i class="common fileTypeSketch"></i>';else return'<i class="common fileTypeNone"></i>'},checkTaskUser:function t(e,n,i){var a=koreWidgetSDKInstance.userInfo.id;if(a==i)return"You";else return e+" "+n.charAt(0)},getTimeLineNotification:function t(e){var n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var a=new Date(e);var o=new Date;if(o.getFullYear()-a.getFullYear()>=1)return i[a.getDay()]+", "+n[a.getMonth()]+" "+a.getDate()+", "+a.getFullYear();else if(o.getMonth()-a.getMonth()>=1)return i[a.getDay()]+", "+n[a.getMonth()]+" "+a.getDate()+", "+a.getFullYear();else if(o.getDate()-a.getDate()===0){var s="";var r=parseInt(e);var l=new Date(r);var c=l.getHours();s=l.getMinutes().toString();var u=c>=12?"PM":"AM";c=c%12;c=c?c:12;s=parseInt(s)<10?"0"+s:s;var d=c+":"+s+" "+u;return d}else if(o.getDate()-a.getDate()===1)return"Yesterday";else return i[a.getDay()]+", "+n[a.getMonth()]+" "+a.getDate()+", "+a.getFullYear()}};a.prototype.bindWidgetEvent=function(){};a.prototype.openDropdown=function(t){console.log(t)};a.prototype.openPanel=function(t,e,n){if(t&&t!=="closePanel")g(".kore-chat-window").removeClass("selectedHeight");if(n)g(".kore-chat-window").toggleClass("selectedHeight");var i=this;var a;if(t===c||t==="closePanel"){c="";if(g(".menuItemContainer")&&g(".menuItemContainer").removeClass("selected"))g(".menuItemContainer").removeClass("selected");g(".sdkBotIcon").addClass("selected");v[t]="";i.clearWidgetPolling();g(i.config.container.content).hide("slide",{direction:i.config.direction==="left"?"left":"right"},500);return false}if(e){if(!e.btnresponse)return}else a=i.checkWidgetSwitchEditor(t,c);if(a)return;D=true;if(v[t]!==undefined&&t===c){var o=(new Date).getTime();var s=o-v[t];var r=Math.floor(s/1e3);if(r<10)D=false}v[t]=(new Date).getTime();c=t;t=t?t.toLowerCase():"";clearInterval(f);if(u.length>0)for(var l=0;l<u.length;l++)clearInterval(u[l]);if(t==="kora"){console.log("<<<<Width350>>>>");menuActiveTab="";i.setChatFocus();g(".menuItem").removeClass("active");g(".menuItemCntr #"+t).addClass("active");g(".centerWindow").children().not(".kore-chat-window").not(".koraPanelHeader").not(".centralLoader").remove()}else if(t==="profile")window.angularComponentReference.zone.run(function(){window.angularComponentShowProfile.componentFn()});else if(t==="notification")window.angularComponentReference.zone.run(function(){window.angularCmptRefNotification.componentFn()});else{i.resetTask();console.log("<<<<Width350>>>>");menuActiveTab=t;g(".menuItem").removeClass("selected");g(".menuItemContainer").removeClass("selected");g(".sdkBotIcon").removeClass("selected");g(".menuItemContainer."+t).addClass("selected");g(".centerWindow").children().not(".kore-chat-window").not(".koraPanelHeader").not(".centralLoader").remove();m="";if(g(i.config.container.content).is(":visible"))g(i.config.container.content).hide();g(i.config.container.content).show("slide",{direction:i.config.direction},250);g(i.config.container.content).html('<div class="loaderRing"><div></div><div></div><div></div><div></div></div>');i.prepareRenderData(t,true)}};a.prototype.checkWidgetSwitchEditor=function(t,e){var n=this;if(t!==e){var i=Array.from(document.querySelectorAll(".centerWindow *")).map(function(t){return t.tagName.toLowerCase()}).filter(function(t){return t.startsWith("app-")});var a=r.selector.filter(function(t){return i.indexOf(t)!==-1});if(i.length&&a.length>0){var o=[{id:"skillSwitche",title:"Are you sure?",desc:"All changes made will be lost.",buttons:[{title:"YES"},{title:"NO"}]}];var s={newPanel:t,oldPanel:e};n.createPopup(o,JSON.stringify(s),"");return true}}return false};a.prototype.prepareRenderData=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var n=this;var i=n.vars.initialWidgetData;var a=n.config;clearInterval(f);for(var o=0;o<i.panels.length;o++)if(i.panels[o]._id.toLowerCase()===t.toLowerCase()){if(e){if(i.panels[o].widgets.length===1){i.panels[o].widgets[0].templateType=i.panels[o].widgets[0].templateType==undefined?"Sushanth":i.panels[o].widgets[0].templateType;var s={panel:i.panels[o]._id,subpanel:i.panels[o].widgets[0].id,widgetTitle:i.panels[o].widgets[0].title||i.panels[o].widgets[0].name,widgetTemplate:i.panels[o].widgets[0].templateType,viewmore:false};var r=g(n.getTemplate("mainTemplate")).tmplProxy({widgetData:i.panels[o],helpers:b,panelDetail:s});n.bindTemplateEvents(r,"mainTemplate")}else{var s={panel:i.panels[o]._id,viewmore:false};var r=g(n.getTemplate("mainTemplate")).tmplProxy({widgetData:i.panels[o],helpers:b,panelDetail:s});n.bindTemplateEvents(r,"mainTemplate")}g(n.config.container.content).addClass("kr-wiz-content-css");if(g(n.config.container.menu).hasClass("darkTheme-kore")){g(n.config.container.content).addClass("darkTheme-kore");g(n.config.container.content).removeClass("defaultTheme-kore");g(n.config.container.content).removeClass("defaultTheme-kora");g(n.config.container.content).removeClass("darkTheme-kora")}else if(g(n.config.container.menu).hasClass("defaultTheme-kore")){g(n.config.container.content).addClass("defaultTheme-kore");g(n.config.container.content).removeClass("darkTheme-kore");g(n.config.container.content).removeClass("darkTheme-kora");g(n.config.container.content).removeClass("defaultTheme-kora")}else if(g(n.config.container.menu).hasClass("darkTheme-kora")){g(n.config.container.content).addClass("darkTheme-kora");g(n.config.container.content).removeClass("darkTheme-kore");g(n.config.container.content).removeClass("defaultTheme-kore");g(n.config.container.content).removeClass("defaultTheme-kora")}else if(g(n.config.container.menu).hasClass("defaultTheme-kora")){g(n.config.container.content).addClass("defaultTheme-kora");g(n.config.container.content).removeClass("darkTheme-kora");g(n.config.container.content).removeClass("defaultTheme-kore");g(n.config.container.content).removeClass("darkTheme-kore")}g(n.config.container.content).html(r)}for(var l=0;l<i.panels[o].widgets.length;l++){i.panels[o].widgets[l].templateType=i.panels[o].widgets[l].templateType==undefined?"Sushanth":i.panels[o].widgets[l].templateType;clearInterval(i.panels[o].widgets[l].pollingTimer);if(i.panels[o].widgets[l].type==="List"){var c={panel:i.panels[o]._id,subpanel:i.panels[o].widgets[l].id,widgetTitle:i.panels[o].widgets[l].title||i.panels[o].widgets[l].name,widgetTemplate:i.panels[o].widgets[l].templateType,viewmore:i.panels[o].widgets.length===1?false:true};n.getServerData(i.panels[o].widgets[l].hook.api,i.panels[o].widgets[l].hook.method,i.panels[o].widgets[l].hook.body,i.panels[o].widgets[l].hook.params,c)}else if(i.panels[o].widgets[l].type==="FilteredList")for(var u=0;u<i.panels[o].widgets[l].filters.length;u++){var c={panel:i.panels[o]._id,subpanel:i.panels[o].widgets[l].id,widgetTitle:i.panels[o].widgets[l].title||i.panels[o].widgets[l].name,widgetTemplate:i.panels[o].widgets[l].templateType,viewmore:i.panels[o].widgets.length===1?false:true,filter:i.panels[o].widgets[l].filters[u].id};n.getServerData(i.panels[o].widgets[l].filters[u].hook.api,i.panels[o].widgets[l].filters[u].hook.method,i.panels[o].widgets[l].filters[u].hook.body,i.panels[o].widgets[l].filters[u].hook.params,c)}else if(i.panels[o].widgets[l].type==="UtterancesList"){if(i.panels[o].widgets[l].actions){var c={panel:i.panels[o]._id,subpanel:i.panels[o].widgets[l].id,widgetTitle:i.panels[o].widgets[l].title||i.panels[o].widgets[l].name,widgetTemplate:i.panels[o].widgets[l].templateType,viewmore:i.panels[o].widgets.length===1?false:true};var r=g(n.getTemplate("skillsTemplate")).tmplProxy({tempdata:i.panels[o].widgets[l],helpers:b,panelDetail:c});g(n.config.container.content).find(".mainTemplateCntr#"+c.panel+" #"+c.subpanel).html(r)}}else{var c={panel:i.panels[o]._id,subpanel:i.panels[o].widgets[l].id,widgetTitle:i.panels[o].widgets[l].title||i.panels[o].widgets[l].name,widgetTemplate:i.panels[o].widgets[l].templateType,viewmore:i.panels[o].widgets.length===1?false:true};n.getServerData("widgetsdk/"+a.botOptions.botInfo._id+"/widgets/"+i.panels[o].widgets[l]._id,"post",{from:a.botOptions.userIdentity||"user-name"},{},c)}}}};a.prototype.getServerDataGen=function(t,e,n,i){var a=this;var o=a.config;t=a.resolveUrl(t,{userId:o.botOptions.botInfo.customData.kmUId},false);if(i)t=t+"?"+g.param(i);var s={url:a.config.botOptions.koreAPIUrl+t,type:e,data:n,async:true,beforeSend:function t(e){e.setRequestHeader("Authorization","bearer "+o.botOptions.botInfo.customData.kmToken)},success:function t(e){},error:function t(e){}};if(a.config.botOptions.botInfo&&a.config.botOptions.botInfo.botState)s.headers={state:a.config.botOptions.botInfo.botState};return g.ajax(s)};a.prototype.getServerData=function(l,c,u,d,f){var p=this;var h=p.vars.initialWidgetData;var m=p.vars.cacheData;var i=p.config;var t={};if(f&&f.subpanel){var e=p.getWidgetDataByWidgetId(f.subpanel);if(e&&e.fields&&e.fields.length)for(var n=0;n<e.fields.length;n++)if(e.fields[n].label)if(!t[e.fields[n].label])t[e.fields[n].label]=e.fields[n].defaultValue}u.inputs=g.extend(u.inputs,t);if(d)l=l+"?"+g.param(d);for(var n=0;n<m.length;n++)if(m[n].api===l){var a={};a.passedkey={};a.passedkey=f;if(m[n].response&&m[n].response.templateType!=="form")p.renderTemplate(m[n].response,a)}l=p.resolveUrl(l,{userId:i.botOptions.botInfo.customData.kmUId},false);if(D===false){g(".mainTemplateCntr .progress").hide();return}return g.ajax({url:baseUrl+"/"+l,type:c,data:JSON.stringify(u),myData:f,contentType:"application/json",async:true,beforeSend:function t(e,n){e.setRequestHeader("Authorization","bearer "+i.botOptions.botInfo.customData.kmToken);e.passedkey=n.myData},success:function t(n,e,i){if(n&&n.data&&n.data.length)n=n.data[0];if(n&&n.responseJSON)n=n.responseJSON;if(n&&_typeof(n)==="object")if(n.isAuthElement&&n.elements&&n.elements.length===1){n.templateType="AuthRequired";i.passedkey.widgetTemplate=n.templateType}else if(n&&n.templateType)i.passedkey.widgetTemplate=n.templateType;else i.passedkey.widgetTemplate="standard";for(var a=0;a<h.panels.length;a++)if(h.panels[a].widgets&&h.panels[a].widgets.length&&h.panels[a]._id===f.panel)h.panels[a].widgets.forEach(function(t){if(t.id===f.subpanel){if(n&&n.templateType)t.templateType=n.templateType;t.hook={};t.hook.api=l;t.hook.method=c;t.hook.body=u;t.hook.params=d;var e=t.autoRefresh.interval*60;if(t.pollingTimer)clearInterval(t.pollingTimer);if(t.autoRefresh&&t.autoRefresh.enabled)p.refreshWidgetData(t,e,f)}});g(".mainTemplateCntr .progress").hide();if(!n||n&&_typeof(n)!=="object"||_typeof(n)==="object"&&n.data&&!n.data.length){n.templateType="somthingWentWrong";n.errMsg="Oops! Something went wrong.";if(typeof n==="string"){var o=n;n={};n.templateType="somthingWentWrong";n.errMsg="Oops! Something went wrong."}var s=g(p.getTemplate("ErrorTemplate")).tmplProxy({tempdata:n,panelDetail:i.passedkey});if(i.passedkey.panel&&i.passedkey.subpanel&&i.passedkey.filter)g(p.config.container.content).find(".mainTemplateCntr#"+i.passedkey.panel+" #"+i.passedkey.subpanel+" #"+i.passedkey.filter+"_content").html(s);else if(i.passedkey.panel&&i.passedkey.subpanel)g(p.config.container.content).find(".mainTemplateCntr#"+i.passedkey.panel+" #"+i.passedkey.subpanel+" #"+i.passedkey.subpanel+"_content").html(s);if(y){p.vars.contentPSObj=null;if(!p.vars.contentPSObj)p.vars.contentPSObj=new y(g(p.config.container.content).find(".mainTemplateBdr").get(0),{suppressScrollX:true});else p.vars.contentPSObj.update()}return}p.renderTemplate(n,i);var r=0;for(var a=0;a<m.length;a++)if(m[a].api===l){r=r+1;m[a].response=n}if(r===0)m.push({api:l,response:n})},error:function t(e){g(".mainTemplateCntr .progress").hide();if(false&&(e.status===410||e.status===401)){var n=[{id:"tokenExpired",title:"Session Expired",desc:"To continue, please sign in again.",buttons:[{title:"OK"}]}];p.createPopup(n,"","")}else{var i={};i.passedkey={};i.passedkey=e.passedkey;if(e&&typeof e==="object"&&e.responseJSON&&e.responseJSON.errors&&e.responseJSON.errors.length){i.templateType="somthingWentWrong";i.errMsg=e.responseJSON.errors[0].msg||""}if(e&&e.status=="429"){i.templateType="somthingWentWrong";i.errMsg=e.responseText||"Too many tries, please wait for sometime"}var a=g(p.getTemplate("ErrorTemplate")).tmplProxy({tempdata:i,panelDetail:i.passedkey});if(i.passedkey.panel&&i.passedkey.subpanel&&i.passedkey.filter)g(p.config.container.content).find(".mainTemplateCntr#"+i.passedkey.panel+" #"+i.passedkey.subpanel+" #"+i.passedkey.filter+"_content").html(a);else if(i.passedkey.panel&&i.passedkey.subpanel)g(p.config.container.content).find(".mainTemplateCntr#"+i.passedkey.panel+" #"+i.passedkey.subpanel+" #"+i.passedkey.subpanel+"_content").html(a);g(".mainTemplateCntr .progress").hide()}}})};a.prototype.getCacheDataByWidgetId=function(t){var e=this;var n=e.vars.cacheData;var i="widgetsdk/"+e.config.botOptions.botInfo._id+"/widgets/"+t+"?";var a=n.findIndex(function(t){return t.api===i});if(a>-1)return n[a].response;else return false};a.prototype.getPanelDataByPanelId=function(e){var t=this;var n=-1;var i=t.vars.initialWidgetData;for(var a=0;a<i.panels.length;a++)if(i.panels&&i.panels.length)n=i.panels.findIndex(function(t){return t._id===e});if(n>-1)return i.panels[n]};a.prototype.getWidgetDataByWidgetId=function(e){var t=this;var n=null;var i=t.vars.initialWidgetData;for(var a=0;a<i.panels.length;a++)if(i.panels[a].widgets&&i.panels[a].widgets.length)i.panels[a].widgets.forEach(function(t){if(t.id===e)n=t});if(n)return n};a.prototype.openCloseBottomOverlayContainer=function(t,e){var n=this;if(t&&e){g("#widgetSdkBottomOverlayContainer").html(e);g("#widgetSdkBottomOverlayContainer").show()}else g("#widgetSdkBottomOverlayContainer").hide();setTimeout(function(){if(y){n.vars.contentPSObj=null;if(!n.vars.contentPSObj)n.vars.contentPSObj=new y(g("#widgetSdkBottomOverlayContainer").find(".filterTemplateCntr").get(0),{suppressScrollX:true});else n.vars.contentPSObj.update()}},100)};a.prototype.applySortingAndFilter=function(t,n,e){_self=this;if(!n.inputsPayload)n.inputsPayload={};if(n&&n.filterOptions&&n.filterOptions.length)n.filterOptions.forEach(function(e){if(e.data&&e.field&&e.data.length&&(e.type=="enum"&&e.isMulti==="Yes"||e.type=="checkbox"))e.data.forEach(function(t){if(t&&t.isSelect&&t.value&&t.value.trim()!==""){if(!n.inputsPayload[e.field])n.inputsPayload[e.field]=[];n.inputsPayload[e.field].push(t.value)}});if(e.data&&e.field&&e.data.length&&(e.type=="enum"&&e.isMulti==="No"||e.type=="radio"))e.data.forEach(function(t){if(t&&t.isSelect&&t.value&&t.value.trim()!==""){if(!n.inputsPayload[e.field])n.inputsPayload[e.field]={};n.inputsPayload[e.field]=t.value}})});if(e&&typeof e==="object")n.inputsPayload=g.extend(n.inputsPayload,e);_self.openCloseBottomOverlayContainer();var i=g(t.target).closest("[paneldetail]").attr("paneldetail");i=JSON.parse(i);var a=i.subpanel;_self.getServerData("widgetsdk/"+_self.config.botOptions.botInfo._id+"/widgets/"+a,"post",{from:_self.config.botOptions.userIdentity||"user-name",inputs:n.inputsPayload},{},i);_self.openCloseBottomOverlayContainer()};a.prototype.applySorting=function(t,e,n,i){var a=this;var o=g(t.currentTarget).closest("dropdown-contentWidgt").find("dropdown-item");if(o&&o.length)o.removeClass("selected");g(t.currentTarget).addClass("selected");var s=g(t.currentTarget).attr("sort-obj");var r=JSON.parse(s);var l={};l[r.field]=r.fieldValue;a.applySortingAndFilter(t,i,l)};a.prototype.openWidgetFilters=function(t,e,n,i){var a=this;var o=g(t.target).closest(".widgetContParent").attr("id");var s=i||a.getCacheDataByWidgetId(o);if(s.filterOptions&&s.filterOptions.length){for(var r=0;r<s.filterOptions.length;r++){s.filterOptions[r].selected=false;if(s.filterOptions[r]&&s.filterOptions[r].data&&s.filterOptions[r].data.length)for(var l=0;l<s.filterOptions[r].data.length;l++)if(s.filterOptions[r].data[l].isSelect)s.filterOptions[r].selected=true}var c={filterOptions:s.filterOptions,sortOptions:s.sortOptions,inputsPayload:{}};var u=g(a.getTemplate("filterTemplate")).tmplProxy(c);a.bindTemplateEvents(u,"filterTemplate",c);a.openCloseBottomOverlayContainer(true,u)}};a.prototype.bindTemplateEvents=function(e,a,l){var u=this;var t=u.vars.initialWidgetData;var t=t;var o=g(e);if(a==="mainTemplate")o.off("click").on("click",function(t){t.stopPropagation();t.stopImmediatePropagation()});else if(a==="widgetHeader")o.off("click",".action").on("click",".action",function(t){t.stopPropagation();var e=g(t.currentTarget).attr("actionObj");var n={};if(e)n=JSON.parse(e);var i=g(t.currentTarget).attr("action-type");if(typeof n=="object"&&n.link)window.open(n.link);else if(n&&i==="filter")u.openWidgetFilters(t,o,a,l);else if(n&&i==="sortOptions")u.applySorting(t,o,a,l);else u.triggerAction(n)});else if(a==="defaultFilesTemplate")o.on("click",".filter-btn",function(t){var e=g(t.target).closest(".widgetContParent").attr("id");var n=u.getCacheDataByWidgetId(e);var a={filterOptions:n.filterOptions,sortOptions:n.sortOptions,inputsPayload:{}};var i=n.appliedFilters;var o=n.appliedSort;i.forEach(function(e){var n=a.filters.findIndex(function(t){return t.field=e.field});if(n>-1){var i=a.filters[n];if(e&&e.fieldValue&&e.fieldValue.length)e.fieldValue.forEach(function(e){var t=-1;t=i.data.findIndex(function(t){return t.value===e});if(t>-1){a.filters[n].data[t].selected=true;a.filters[n].selected=true}})}});if(o&&o.fieldValue){var s=a.sortOptions.findIndex(function(t){return t.field===o.field});if(s>-1){var r=a.sortOptions[s];a.sortOptions[s].selected=true}}var l=g(u.getTemplate("filterTemplate")).tmplProxy(a);u.bindTemplateEvents(l,"filterTemplate",a);var c=g(t.target).closest(".filesCntr");l.insertAfter(c);setTimeout(function(){if(y){u.vars.contentPSObj=null;if(!u.vars.contentPSObj)u.vars.contentPSObj=new y(g("#widgetSdkBottomOverlayContainer").find(".filterTemplateCntr").get(0),{suppressScrollX:true});else u.vars.contentPSObj.update()}},100);c.hide()});else if(a==="filterTemplate"){o.on("click",".open-filters",function(t){selectedFilter=g(t.currentTarget).attr("id");if(selectedFilter){var e=l.filterOptions.findIndex(function(t){return t.field===selectedFilter});if(e>-1)l.filterSelectedItems=l.filterOptions[e]}var n=g(u.getTemplate("filterOptionsTemplate")).tmplProxy(l);u.bindTemplateEvents(n,"filterOptionsTemplate",l);var i=g(t.target).closest(".filterTemplateCntr");n.insertAfter(i);i.remove();if(y){u.vars.contentPSObj=null;if(!u.vars.contentPSObj)u.vars.contentPSObj=new y(g("#widgetSdkBottomOverlayContainer").find(".filterOptionsTemplateCtrl").get(0),{suppressScrollX:true});else u.vars.contentPSObj.update()}});o.on("click",".radiodivsdk",function(t){var e=g(t.currentTarget).attr("filter-type");var n=g(t.currentTarget).attr("filter-index");if(n)n=parseInt(n);l.filterOptions[n].data.forEach(function(t){t.isSelect=false});if(g(t.currentTarget).find(".taskSelRadio").length&&e==="radioFilter"){var i=g(t.currentTarget).find("input[name='radioFilterVertical']:checked");if(i&&i.length)for(var a=0;a<i.length;a++){var o=g(g(i)[a]).attr("value-index");if(o){o=parseInt(o);l.filterOptions[n].data[o].isSelect=true}}}if(g(t.currentTarget).find(".taskSelRadio").length&&e==="checkBoxFilter"){var s=g(t.currentTarget).find("input[element='filterCheckbox']:checked");if(s&&s.length)for(var a=0;a<s.length;a++){var o=g(g(s)[a]).attr("value-index");if(o){o=parseInt(o);l.filterOptions[n].data[o].isSelect=true}}}});o.on("click",".wid-filter-close",function(t){g(t.target).closest(".widgetContParent").find(".filesCntr").show();g(t.target).closest(".widgetContParent").find(".filterTemplateCntr").remove();t.stopPropagation();u.openCloseBottomOverlayContainer()});o.on("click",".apply-btn",function(t){u.applySortingAndFilter(t,l)})}else if(a==="filterOptionsTemplate"){o.on("click",".tickMarkContainer",function(t){var e=g(t.currentTarget).attr("field");g(t.currentTarget).closest(".filterOptionsTemplateCtrl").find(".tickMarkContainer").removeClass("selected");g(t.currentTarget).addClass("selected")});o.on("click",".selectDropValue",function(t){var e=g(t.target).attr("valueObj");var n=JSON.parse(e)});o.on("click",".wid-filter-close",function(t){var e=g(u.getTemplate("filterTemplate")).tmplProxy(l);u.bindTemplateEvents(e,"filterTemplate",l);var n=g(t.target).closest(".filterOptionsTemplateCtrl");e.insertBefore(n);g(t.target).closest(".widgetContParent").find(".filterTemplateCntr").show();g("#widgetSdkBottomOverlayContainer").find(".filterOptionsTemplateCtrl").remove();t.stopPropagation()});o.on("click",".apply-btn",function(t){var e=g(t.target).closest(".filterOptionsTemplateCtrl");if(l.filterSelectedItems&&l.filterSelectedItems.isMulti==="No"){var n=g(t.currentTarget).closest(".filterOptionsTemplateCtrl").find(".tickMarkContainer.selected");if(n&&n.length)l.filterSelectedItems.data.forEach(function(t){if(t.title===g(n[0]).attr("field"))t.isSelect=true;else t.isSelect=false})}else{var i=e.find("input[class='taskSelRadio']:checked");var s=0;if(i.length)l.filterSelectedItems.data.forEach(function(o){o.isSelect=false;i.each(function(t,e){var n=g(e);var i=n.val();var a=l.filterSelectedItems.field;if(i!==""&&o.value===i){o.isSelect=true;s=s+1}})});else l.filterSelectedItems.data.forEach(function(t){t.isSelect=false});if(s)l.filterSelectedItems.selected=true;else l.filterSelectedItems.selected=false}if(l.filterSelectedItems.field&&l.filterSelectedItems){var a=l.filterOptions.findIndex(function(t){return t.field===l.filterSelectedItems.field});if(a>-1)l.filterOptions[a]=l.filterSelectedItems}var o=g(u.getTemplate("filterTemplate")).tmplProxy(l);u.bindTemplateEvents(o,"filterTemplate",l);var r=g(t.target).closest(".filterOptionsTemplateCtrl");o.insertBefore(r);g(t.target).closest(".widgetContParent").find(".filterTemplateCntr").show();g("#widgetSdkBottomOverlayContainer").find(".filterOptionsTemplateCtrl").remove();if(y){u.vars.contentPSObj=null;if(!u.vars.contentPSObj)u.vars.contentPSObj=new y(g("#widgetSdkBottomOverlayContainer").find(".filterTemplateCntr").get(0),{suppressScrollX:true});else u.vars.contentPSObj.update()}t.stopPropagation()})}else if(a==="TabbedList"||a==="List"){g(o.find(".tabs")[0]).addClass("active");var n=o.find(".listViewLeftContent");if(n&&n.length)for(i=0;i<n.length;i++){var e=n[i];if(g(e).attr("col-size")){var s=u.getColumnWidth(g(e).attr("col-size"));g(e).css("width",s+"%")}}console.log(l);o.off("click",".listViewLeftContent").on("click",".listViewLeftContent",function(t){t.stopPropagation();var e=g(t.currentTarget).attr("actionObj");var n={};if(e)n=JSON.parse(e);u.triggerAction(n)});o.off("click",".moreValue").on("click",".moreValue",function(t){t.stopPropagation()});o.off("click",".tabs").on("click",".tabs",function(t){t.stopPropagation();var e=g(t.target).text();var n=g(t.target).closest(".tab-list-template").data();var i=g(t.target).closest(".tab-list-template").attr("panelDetail");if(i)i=JSON.parse(i);delete n.tmplItem;var a={tempdata:n,dataItems:n.elements,helpers:b,viewmore:i.viewmore,panelDetail:i};if(n&&n.tabs&&Object.keys(n.tabs)&&Object.keys(n.tabs).length)a={tempdata:n,dataItems:n.tabs[e],tabs:Object.keys(n.tabs),helpers:b,viewmore:i.viewmore,panelDetail:i};var o=g(u.getTemplate("TabbedList")).tmplProxy(a);g(o).find(".tabs[data-tabid='"+e+"']").addClass("active");g(t.target).closest(".tab-list-template").html(g(o).html())});o.off("click","#showMoreContents").on("click","#showMoreContents",function(t){t.stopPropagation();g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showMoreBottom").removeClass("hide")});o.off("click",".wid-temp-showMoreClose").on("click",".wid-temp-showMoreClose",function(t){t.stopPropagation();g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showMoreBottom").addClass("hide")});o.off("click",".wid-temp-showActions").on("click",".wid-temp-showActions",function(t){t.stopPropagation();if(g(t.currentTarget)&&g(t.currentTarget).closest(".listViewTmplContentChild")&&g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions")&&g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions").hasClass("active")){g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions").removeClass("active");g(t.currentTarget).closest(".listViewTmplContentChild").find(".meetingActionButtons").addClass("hide")}else{g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions").addClass("active");g(t.currentTarget).closest(".listViewTmplContentChild").find(".meetingActionButtons").removeClass("hide")}});o.off("click",".action").on("click",".action",function(t){t.stopPropagation();var e=g(t.currentTarget).attr("actionObj");var n={};if(e)n=JSON.parse(e);if(typeof n=="object"&&n.link)window.open(n.link);else u.triggerAction(n)})}else if(a==="TableList"){g(o.find(".tabs")[0]).addClass("active");var n=o.find(".listViewLeftContent");if(n&&n.length)for(i=0;i<n.length;i++){var e=n[i];if(g(e).attr("col-size")){var s=u.getColumnWidth(g(e).attr("col-size"));g(e).css("width",s+"%")}}o.off("click",".listViewLeftContent").on("click",".listViewLeftContent",function(t){t.stopPropagation();var e=g(t.currentTarget).attr("actionObj");var n={};if(e)n=JSON.parse(e);u.triggerAction(n)});o.off("click",".moreValue").on("click",".moreValue",function(t){t.stopPropagation()});o.off("click","#showMoreContents").on("click","#showMoreContents",function(t){t.stopPropagation();g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showMoreBottom").removeClass("hide")});o.off("click",".wid-temp-showMoreClose").on("click",".wid-temp-showMoreClose",function(t){t.stopPropagation();g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showMoreBottom").addClass("hide")});o.off("click",".action").on("click",".action",function(t){t.stopPropagation();var e=g(t.currentTarget).attr("actionObj");var n={};if(e)n=JSON.parse(e);if(typeof n=="object"&&n.link)window.open(n.link);else u.triggerAction(n)})}else if(a==="pieChartTemplate"||a==="barChartTemplate"||a==="lineChartTemplate"){o.off("click","#showMoreContents").on("click","#showMoreContents",function(t){g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showMoreBottom").removeClass("hide")});o.off("click",".wid-temp-showMoreClose").on("click",".wid-temp-showMoreClose",function(t){g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showMoreBottom").addClass("hide")});o.off("click",".wid-temp-showActions").on("click",".wid-temp-showActions",function(t){if(g(t.currentTarget)&&g(t.currentTarget).closest(".listViewTmplContentChild")&&g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions")&&g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions").hasClass("active")){g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions").removeClass("active");g(t.currentTarget).closest(".listViewTmplContentChild").find(".meetingActionButtons").addClass("hide")}else{g(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions").addClass("active");g(t.currentTarget).closest(".listViewTmplContentChild").find(".meetingActionButtons").removeClass("hide")}});o.off("click",".action").on("click",".action",function(t){var e=g(t.currentTarget).attr("actionObj");var n={};if(e)n=JSON.parse(e);u.triggerAction(n)})}else if(a==="ActionItems"){o.on("click",".hasMoreActionItems",function(t){g(t.target).closest(".actionItemBody").find(".actionBtnTitle").each(function(t,e){if(g(e).hasClass("hide")){g(e).removeClass("hide");g(e).addClass("show")}});g(t.target).addClass("hide")});o.on("click",".actionBtnTitle",function(t){console.log("abc....")})}else if(a==="AuthRequired")o.off("click",".action").on("click",".action",function(t){t.stopPropagation();var e=g(t.currentTarget).attr("actionObj");var n=g(t.currentTarget).attr("panelDetail");var i={};if(e){i=JSON.parse(e);var a;function o(){if(a&&typeof a==="object"&&a.closed){u.refreshElement(n);clearInterval(s)}}if(i.url){a=window.open(i.url);var s=setInterval(o,500)}}});else if(a==="menu"){o.off("click").on("click",function(t){t.stopPropagation();t.stopImmediatePropagation()});o.off("click",".menuIconMobile").on("click",".menuIconMobile",function(t){t.stopPropagation();t.stopImmediatePropagation()});o.find("#defaultTheme-kore span").addClass("checkMarkIcon");o.find(".sdkBotIcon").addClass("selected");o.off("click",".action").on("click",".action",function(t){if(t&&t.currentTarget&&g(t.currentTarget)[0]){var e=g(t.currentTarget)[0].id;g(g(".themeName").find("span")).removeClass("checkMarkIcon");if(g("#"+e)&&g("#"+e).find("span"))g(g("#"+e).find("span")).addClass("checkMarkIcon");if(e!=="darkTheme-kore"){g(u.config.container.menu).removeClass("darkTheme-kore");if(g(u.config.container.content))g(u.config.container.content).removeClass("darkTheme-kore")}if(e!=="defaultTheme-kore"){g(u.config.container.menu).removeClass("defaultTheme-kore");if(g(u.config.container.content))g(u.config.container.content).removeClass("defaultTheme-kore")}if(e!=="defaultTheme-kora"){g(u.config.container.menu).removeClass("defaultTheme-kora");if(g(u.config.container.content))g(u.config.container.content).removeClass("defaultTheme-kora")}if(e!=="darkTheme-kora"){g(u.config.container.menu).removeClass("darkTheme-kora");if(g(u.config.container.content))g(u.config.container.content).removeClass("darkTheme-kora")}g(u.config.container.menu).addClass(e);g(u.config.container.content).addClass(e)}})}else if(a==="webForm"){var r=e.find("button");r.off("click").on("click",function(){var t=e.attr("paneldetail");u.refreshElement(t)})}};a.prototype.getHTMLTemplate=function(e,n){var i=this;var a;if(n&&n.passedkey)if(n.passedkey.widgetTemplate==="calendar_events"){var t=g.extend(true,{},e);var o=g.extend(true,{},e);var s=i.getResolveMeeting(t);o.elements=s;a=g(i.getTemplate("meetingTemplate")).tmplProxy({tempdata:o,helpers:b,panelDetail:n.passedkey})}else if(n.passedkey.widgetTemplate==="task_list")a=g(i.getTemplate("tasksTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});else if(n.passedkey.widgetTemplate==="file_list")a=g(i.getTemplate("filesTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});else if(n.passedkey.widgetTemplate==="Sushanth"||n.passedkey.widgetTemplate==="custom_style")a=g(i.getTemplate("defaultFilesTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});else if(n.passedkey.widgetTemplate==="chartList")a=g(i.getTemplate("chartListTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});else if(n.passedkey.widgetTemplate==="knowledge_list")a=g(i.getTemplate("knowledgeTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});else if(n.passedkey.widgetTemplate==="TrendingHashTag")a=g(i.getTemplate("hashtagTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});else if(n.passedkey.widgetTemplate==="announcement_list")a=g(i.getTemplate("announcementTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});else if(n.passedkey.widgetTemplate==="List"){a=g(i.getTemplate("List")).tmplProxy({tempdata:e,dataItems:e.elements,helpers:b,viewmore:n.passedkey.viewmore,panelDetail:n.passedkey});i.bindTemplateEvents(a,"List")}else if(n.passedkey.widgetTemplate==="TabbedList"){var r={tempdata:e,dataItems:e.elements,helpers:b,viewmore:n.passedkey.viewmore,panelDetail:n.passedkey};if(e&&e.tabs&&Object.keys(e.tabs)&&Object.keys(e.tabs).length)r={tempdata:e,dataItems:e.tabs.Tab1,tabs:Object.keys(e.tabs),helpers:b,viewmore:n.passedkey.viewmore,panelDetail:n.passedkey};a=g(i.getTemplate("TabbedList")).tmplProxy(r);a.data(e);i.bindTemplateEvents(a,"TabbedList")}else if(n.passedkey.widgetTemplate==="piechart"){var a=g(i.getTemplate("pieChartTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});setTimeout(function(){var t={};t.width=350;t.height=175;t.legendRectSize=10;t.legendSpacing=2.4;i.bindTemplateEvents(a,"pieChartTemplate");if(e.pie_type==="donut")KoreGraphAdapter.drawD3PieDonut(e,t,".widgetContParent#"+n.passedkey.subpanel+" #piechart",12,"donut_legend");else KoreGraphAdapter.drawD3Pie(e,t,".widgetContParent#"+n.passedkey.subpanel+" #piechart",12)},100)}else if(n.passedkey.widgetTemplate==="linechart"){var a=g(i.getTemplate("lineChartTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});setTimeout(function(){var t={};t.width=350;t.height=175;t.outerWidth=450;t.outerHeight=360;t.innerWidth=210;t.innerHeight=250;t.legendRectSize=10;t.legendSpacing=2.4;i.bindTemplateEvents(a,"lineChartTemplate");KoreGraphAdapter.drawD3lineChartV2(e,t,".widgetContParent#"+n.passedkey.subpanel+" #linechart",12)},100)}else if(n.passedkey.widgetTemplate==="barchart"){var a=g(i.getTemplate("barChartTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});setTimeout(function(){var t={};t.width=350;t.height=175;t.legendRectSize=10;t.legendSpacing=2.4;t.outerWidth=450;t.outerHeight=360;t.innerWidth=230;t.innerHeight=250;t.legendRectSize=15;t.legendSpacing=4;i.bindTemplateEvents(a,"barChartTemplate");if(e.stacked==false&&e.direction=="vertical")KoreGraphAdapter.drawD3barChart(e,t,".widgetContParent#"+n.passedkey.subpanel+" #barchart",12);else if(e.stacked==false&&e.direction=="horizontal"){t.outerWidth=420;t.outerHeight=360;t.innerWidth=240;t.innerHeight=250;KoreGraphAdapter.drawD3barHorizontalbarChart(e,t,".widgetContParent#"+n.passedkey.subpanel+" #barchart",12)}else if(e.stacked==true&&e.direction=="vertical")KoreGraphAdapter.drawD3barVerticalStackedChart(e,t,".widgetContParent#"+n.passedkey.subpanel+" #barchart",12);else if(e.stacked==true&&e.direction=="horizontal"){t.outerWidth=370;t.outerHeight=310;t.innerWidth=170;t.innerHeight=200;KoreGraphAdapter.drawD3barStackedChart(e,t,".widgetContParent#"+n.passedkey.subpanel+" #barchart",12)}},100)}else if(n.passedkey.widgetTemplate==="ActionItems"){a=g(i.getTemplate("ActionItems")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});i.bindTemplateEvents(a,"ActionItems")}else if(n.passedkey.widgetTemplate==="AuthRequired"){a=g(i.getTemplate("AuthRequired")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});i.bindTemplateEvents(a,"AuthRequired")}else if(n.passedkey.widgetTemplate==="TableList"){a=g(i.getTemplate("TableList")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey,viewmore:true});i.bindTemplateEvents(a,"TableList")}else if(n.passedkey.widgetTemplate==="form"){a=g(i.getTemplate("webForm")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});i.bindTemplateEvents(a,"webForm")}else{a=g(i.getTemplate("defaultFilesTemplate")).tmplProxy({tempdata:e,helpers:b,panelDetail:n.passedkey});i.bindTemplateEvents(a,"defaultFilesTemplate")}if(a)return a};a.prototype.prepereWidgetHeader=function(t,e){var n=this;var i=n.getWidgetDataByWidgetId(e.passedkey.subpanel);if(typeof i==="object")if(t&&(t.sortOptions&&t.sortOptions.length||t.filterOptions&&t.filterOptions.length||t.headerOptions&&t.headerOptions.type==="menu"&&t.headerOptions.menu&&t.headerOptions.menu.length||t.headerOptions&&t.headerOptions.type==="text"&&t.headerOptions.text||t.headerOptions&&t.headerOptions.type==="image"&&t.headerOptions.image&&t.headerOptions.image.image_src||t.headerOptions&&t.headerOptions.type==="button"&&t.headerOptions.button&&t.headerOptions.button.title||t.headerOptions&&t.headerOptions.type==="url"&&t.headerOptions.url&&t.headerOptions.url.title)){var a=g(n.getTemplate("widgetHeader")).tmplProxy({tempData:t,helpers:b,panelDetail:e.passedkey,widgetData:i});n.bindTemplateEvents(a,"widgetHeader",t);g("#"+e.passedkey.subpanel+".widgetPanel").find(".panelHeader").html(a)}};a.prototype.renderTemplate=function(t,e){var n=this;if(e&&e.passedkey){n.prepereWidgetHeader(t,e);if(t&&t.formLink){var i="&channel=widgetSdk";var a="&widgetId="+e.passedkey.subpanel;t.formLink=t.formLink+i+a}var o=n.getHTMLTemplate(t,e);if(!e.passedkey.showAll){if(e.passedkey.panel&&e.passedkey.subpanel&&e.passedkey.filter)g(n.config.container.content).find(".mainTemplateCntr#"+e.passedkey.panel+" #"+e.passedkey.subpanel+" #"+e.passedkey.filter+"_content").html(o);else if(e.passedkey.panel&&e.passedkey.subpanel)g(n.config.container.content).find(".mainTemplateCntr#"+e.passedkey.panel+" #"+e.passedkey.subpanel+" #"+e.passedkey.subpanel+"_content").html(o);if(y){n.vars.contentPSObj=null;if(!n.vars.contentPSObj)n.vars.contentPSObj=new y(g(n.config.container.content).find(".mainTemplateBdr").get(0),{suppressScrollX:true});else n.vars.contentPSObj.update()}}else{if(e.passedkey.panel&&e.passedkey.subpanel&&e.passedkey.filter)g(n.config.container.content).find(".viewMoreCntr#"+e.passedkey.panel+" #"+e.passedkey.subpanel+" #"+e.passedkey.filter+"_content").html(o);else if(e.passedkey.panel&&e.passedkey.subpanel)g(n.config.container.content).find(".viewMoreCntr#"+e.passedkey.panel+" #"+e.passedkey.subpanel).html(o);if(y){n.vars.contentPSObj=null;if(!n.vars.contentPSObj)n.vars.contentPSObj=new y(g(n.config.container.content).find(".mainTemplateBdr").get(0),{suppressScrollX:true});else n.vars.contentPSObj.update()}}}};a.prototype.resolveUrl=function(t,i,a){var e=/\:([a-zA-Z]+)/g;return t.replace(e,function(t,e){var n=i[e];if(typeof n!=="undefined"&&typeof n!==null){if(a)delete i[e];return n}return t})};a.prototype.getResolveMeeting=function(t){var e=this;var n=[];if(t&&t.elements&&t.elements.length){for(i=0;i<t.elements.length;i++){var a=[];var o=t.elements[i].actions;for(var s=0;s<o.length;s++){var r=o[s];if(r.type!=="dial")a.push(r)}t.elements[i].actions=a;var l=Object.assign({},t.elements[i]);var c=e.getMeetingSlot(l.data.duration);for(j=0;j<c.length;j++){var u=new Date;var d=new Date(c[j].start);if((u.getFullYear()<=d.getFullYear()&&u.getMonth()<=d.getMonth()&&u.getDate()<=d.getDate()||u.getTime()<=c[j].start)&&c[j].end<=t.cursor.end){l.data.duration=c[j];var f=new Date(c[j].start);var p=new Date(c[j].end);if(c.length===1)if(l.data.isAllDay){l.day="All Day";l.break=true;l.localDay={intial:"All Day"};n.push(e.cloneMessage1(l))}else if(f.getHours()===0&&f.getMinutes()===0&&p.getHours()===23&&p.getMinutes()===59){l.day="All Day";l.break=true;l.localDay={intial:"All Day"};n.push(e.cloneMessage1(l))}else n.push(e.cloneMessage1(l));else{var h=j+1;if(f.getHours()===0&&f.getMinutes()===0&&p.getHours()===23&&p.getMinutes()===59){l.day="All Day";l.break=true;if(h===c.length)l.localDay={intial:"All Day",last:" (Day "+h+"/"+c.length+")"};else l.localDay={intial:"All Day",last:" (Day "+h+"/"+c.length+")"}}else if(h!==c.length){l.day="From"+getTime(f)+" Day ("+h+"/"+c.length+")";l.break=true;l.localDay={intial:"From",time:getTime(f),last:" (Day "+h+"/"+c.length+")"}}else if(h===c.length){l.day="Till"+getTime(p)+" Day ("+h+"/"+c.length+")";l.break=true;l.localDay={intial:"Till",time:getTime(p),last:" (Day "+h+"/"+c.length+")"}}n.push(e.cloneMessage1(l))}}}}n.sort(e.compare);return n}else return n};a.prototype.filterTabs=function(t,e,n){var i=this;g(t+" #"+e+" ."+e+"_content").hide();g(t+" #"+e+" #"+n+"_content").show();g(t+" #"+e+" .filterCntr li").addClass("unActive").removeClass("active");g(t+" #"+e+" #"+n).addClass("active").removeClass("unActive");i.resetTask()};a.prototype.viewMorePanel=function(t){var e=this;var n=e.vars.initialWidgetData;var i;d=0;try{i=JSON.parse(t);for(var a=0;a<n.panels.length;a++)if(n.panels[a]._id.toLowerCase()===i.panel.toLowerCase())for(var o=0;o<n.panels[a].widgets.length;o++){n.panels[a].widgets[o].templateType=n.panels[a].widgets[o].templateType==undefined?"Sushanth":n.panels[a].widgets[o].templateType;if(n.panels[a].widgets[o]._id===i.subpanel){var s=g.extend(true,{},n.panels[a]);s.widgets=[];s.widgets.push(n.panels[a].widgets[o]);if(s.widgets.length===1)var r=g(e.getTemplate("viewMoreTemplate")).tmplProxy({widgetData:s,helpers:b,panelDetail:i});else{for(var l=0;l<s.widgets.length;l++)if(s.widgets[l].id!==i.subpanel)s.widgets.splice(l,1);var r=g(e.getTemplate("viewMoreTemplate")).tmplProxy({widgetData:s,helpers:b,panelDetail:i})}g(e.config.container.content).append(r);if(n.panels[a].widgets[o].hook&&n.panels[a].widgets[o].hook.api){var c={panel:n.panels[a]._id,subpanel:n.panels[a].widgets[o].id,widgetTemplate:n.panels[a].widgets[o].templateType,viewmore:false,showAll:true};e.getServerData(n.panels[a].widgets[o].hook.api,n.panels[a].widgets[o].hook.method,n.panels[a].widgets[o].hook.body,n.panels[a].widgets[o].hook.params,c)}else if(n.panels[a].widgets[o].filters)for(var u=0;u<n.panels[a].widgets[o].filters.length;u++){var c={panel:n.panels[a]._id,subpanel:n.panels[a].widgets[o].id,widgetTemplate:n.panels[a].widgets[o].templateType,viewmore:false,filter:n.panels[a].widgets[o].filters[u].id,showAll:true};e.getServerData(n.panels[a].widgets[o].filters[u].hook.api,n.panels[a].widgets[o].filters[u].hook.method,n.panels[a].widgets[o].filters[u].hook.body,n.panels[a].widgets[o].filters[u].hook.params,c)}}}}catch(t){console.log("Not getting JSON:"+t)}};a.prototype.scrollData=function(t,e,n,i){var a=this;var t=JSON.parse(t);var e=JSON.parse(e);var o=i.scrollTop+i.offsetHeight;var s=i.scrollHeight;if(o===s)if(e&&e.hook&&e.hook.api){var r=e.hook.api;if(e.hook.params)r=r+"?"+g.param(e.hook.params);var l=cacheData.filter(function(t){return t.api===r});var c=l[0].response;if(c&&c.hasMore){t.viewmore=n==="maintemplate"?false:false;a.scrollServerData(c.hook.api,c.hook.method,c.hook.body,t,i,c,n)}}};a.prototype.scrollServerData=function(t,e,n,i,c,u,d){var f=this;t=f.resolveUrl(t,{userId:config.botOptions.botInfo.customData.kmUId},false);if(u.hook.params)t=u.hook.api+"?"+g.param(u.hook.params);return g.ajax({url:baseUrl+"/"+t,type:e,data:n,myData:i,async:true,beforeSend:function t(e,n){e.setRequestHeader("Authorization","bearer "+config.botOptions.botInfo.customData.kmToken);e.passedkey=n.myData},success:function t(e,n,i){var a=f.mergedata(u,e);i.passedkey["showAll"]=d==="maintemplate"?false:true;if(i&&i.passedkey){if(i.passedkey.widgetTemplate==="calendar_events"){var o=g.extend(true,{},a);var s=g.extend(true,{},a);var r=f.getResolveMeeting(o);s.elements=r;var l=g(f.getTemplate("meetingTemplate")).tmplProxy({tempdata:s,helpers:b,panelDetail:i.passedkey,showAll:d==="maintemplate"?false:true})}else if(i.passedkey.widgetTemplate==="task_list")var l=g(f.getTemplate("tasksTemplate")).tmplProxy({tempdata:a,helpers:b,panelDetail:i.passedkey,showAll:d==="maintemplate"?false:true});else if(i.passedkey.widgetTemplate==="cloudFiles")var l=g(f.getTemplate("filesTemplate")).tmplProxy({tempdata:a,helpers:b,panelDetail:i.passedkey,showAll:d==="maintemplate"?false:true});else if(i.passedkey.widgetTemplate==="Sushanth"||i.passedkey.widgetTemplate==="custom_style")var l=g(f.getTemplate("defaultFilesTemplate")).tmplProxy({tempdata:a,helpers:b,panelDetail:i.passedkey});else if(i.passedkey.widgetTemplate==="knowledge_list")var l=g(f.getTemplate("knowledgeTemplate")).tmplProxy({tempdata:a,helpers:b,panelDetail:i.passedkey,showAll:d==="maintemplate"?false:true});else if(i.passedkey.widgetTemplate==="TrendingHashTag")var l=g(f.getTemplate("hashtagTemplate")).tmplProxy({tempdata:a,helpers:b,panelDetail:i.passedkey,showAll:d==="maintemplate"?false:true});else if(i.passedkey.widgetTemplate==="announcement_list")var l=g(f.getTemplate("announcementTemplate")).tmplProxy({tempdata:a,helpers:b,panelDetail:i.passedkey,showAll:d==="maintemplate"?false:true});else var l=g(f.getTemplate("defaultTemplate")).tmplProxy({tempdata:a,helpers:b,panelDetail:i.passedkey});g(c).html(l);if(d==="viewmore"&&!p)p=new PerfectScrollbar(".viewMoreCntr .scroll",{suppressScrollX:true});else if(d==="viewmore")p.update()}},error:function t(e){var n={};n.passedkey={};n.passedkey=e.passedkey;if(e&&typeof e==="object"&&e.responseJSON&&e.responseJSON.errors&&e.responseJSON.errors.length){n.templateType="somthingWentWrong";n.errMsg=e.responseJSON.errors[0].msg||""}if(e&&e.status=="429"){n.templateType="somthingWentWrong";n.errMsg=e.responseText||"Too many tries, please wait for sometime"}var i=g(f.getTemplate("ErrorTemplate")).tmplProxy({tempdata:n,panelDetail:n.passedkey});g(c).html(i);if(y){f.vars.contentPSObj=null;if(!f.vars.contentPSObj)f.vars.contentPSObj=new y(g(f.config.container.content).find(".mainTemplateBdr").get(0),{suppressScrollX:true});else f.vars.contentPSObj.update()}}})};a.prototype.mergedata=function(t,e){var n=Object.keys(t);var i=Object.keys(e);var a=n.filter(function(t){return i.indexOf(t)!==-1});for(var o=0;o<a.length;o++)if(a[o]==="elements")t.elements=t.elements.concat(e.elements);else{delete t[a[o]];t[a[o]]=e[a[o]]}return t};a.prototype.setChatFocus=function(){var t=this;g(".menuItemCntr .menuItem").removeClass("active");g(".menuItemCntr #kora").addClass("active");menuActiveTab="";t.resetTask();clearInterval(f);if(u.length>0)for(var e=0;e<u.length;e++)clearInterval(u[e]);if(g(t.config.container.content).is(":visible"))g(t.config.container.content).hide("slide",{direction:t.config.direction},500);g(".chatInputBox").focus();g(".centerWindow").children().not(".kore-chat-window").not(".koraPanelHeader").not(".centralLoader").remove()};a.prototype.removeViewMore=function(){var t=this;g(t.config.container.content).find(".viewMoreCntr").remove()};a.prototype.getColumnWidth=function(e){var t=this;var n;var i="100%";if(e){n=e.replace(/[^\d.-]/g,"");console.log(e);try{i=100-parseInt(n,10)}catch(t){console.log(e)}return i}};a.prototype.refreshElement=function(t,e,n){var i=this;var a=this.config;if(t)try{var t=JSON.parse(t);if(e)i.prepareRenderData(t.panel);else{if(n)clearInterval(n.pollingTimer);g(".widgetContParent#"+t.subpanel).find(".progress").show();i.getServerData("widgetsdk/"+a.botOptions.botInfo._id+"/widgets/"+t.subpanel,"post",{},{from:a.botOptions.userIdentity||"user-name"},t)}}catch(t){console.log("invalidjson")}};a.prototype.refreshWidgetData=function(t,e,n){var i=this;var a=(new Date).getTime();var o=(new Date).getTime()+1e3*e;o=parseInt(o);if(g(i.config.container.content).find(".mainTemplateCntr#"+n.panel).is(":visible")&&a<o)i.startWidgetPolling(t,a,o,n);else clearInterval(t.pollingTimer)};a.prototype.clearWidgetPolling=function(t){var e=this;if(t)clearInterval(t.pollingTimer);else if(e.vars.initialWidgetData&&e.vars.initialWidgetData.panels&&e.vars.initialWidgetData.panels.length)for(var n=0;n<e.vars.initialWidgetData.panels.length;n++)if(e.vars.initialWidgetData.panels[n].widgets&&e.vars.initialWidgetData.panels[n].widgets.length)e.vars.initialWidgetData.panels[n].widgets.forEach(function(t){if(t.pollingTimer)clearInterval(t.pollingTimer)})};a.prototype.startWidgetPolling=function(e,n,i,a){var o=this;e.pollingTimer=setInterval(function(){n=n+5e3;if(i<n){clearInterval(e);var t=JSON.stringify(a);o.refreshElement(t,false,e)}},5e3);console.log(e)};a.prototype.refreshData=function(t,e){var n=this;var i=(new Date).getTime();var a=(new Date).getTime()+1e3*e;a=parseInt(a);if(g(n.config.container.content).find(".mainTemplateCntr#"+t).is(":visible")&&i<a)n.startPolling(t,i,a);else{clearInterval(f);if(u.length>0)for(var o=0;o<u.length;o++)clearInterval(u[o])}};a.prototype.startPolling=function(e,n,i){var a=this;f=setInterval(function(){n=n+5e3;if(i<n){clearInterval(f);if(u.length>0)for(var t=0;t<u.length;t++)clearInterval(u[t]);u=[];a.prepareRenderData(e,false)}},5e3)};a.prototype.resetTask=function(){l=[];A={};g(".viewMoreCntr .viewTask").find('[type="checkbox"]').prop("checked",false);g(".viewMoreCntr .taskSelectCntr,.viewMoreCntr .taskSelectFootCntr").hide();g(".allTaskCntr .viewTask").removeClass("selected")};a.prototype.meetingTimer=function(t,e,n){var i=this;if(n===0){h=[];if(u.length>0)for(var a=0;a<u.length;a++)clearInterval(u[a]);u=[]}e.data.duration.objId="m_"+n;h.push(e.data.duration);var o=e.data.duration.start;var s=e.data.duration.end;var r=b.getTimeline(o,"fulldate","meetings");var l=b.compareCurntTimeAndTimln_minutes(o,s,"textFormat");u[n]=null;e.data.duration.dayType=r;e.data.duration.index=n;e.data.duration.timeStatus=l;i.startTimer(h[n]);return l};a.prototype.startTimer=function(n){var i=this;if(u[n.index]===null){var t=setInterval(function(){var t=b.compareCurntTimeAndTimln_minutes(n.start,n.end,"textFormat");var e=b.getTimeline(n.start,"fulldate","meetings");if(n.dayType&&e!==n.dayType||n.timeStatus&&t==="Now"&&n.timeStatus!==t)i.prepareRenderData("meetings",true);else g("#"+n.objId).html(t)},30*1e3);u[n.index]=t}};var l=[],A={},I=null;a.prototype.passHashTag=function(t){var e="find the articles with "+t;window["chatWinRef"].sendMessage(g(".chatInputBox"),e,{},"onlyMessage")};a.prototype.openArticle=function(t){window.angularComponentReference.zone.run(function(){window.angularComponentReference.componentFn({id:t})})};a.prototype.openAnnouncement=function(t){window.angularComponentReference.zone.run(function(){window.viewMoreKnowledgeAnncCmp.componentFn({id:t,viewType:"announceWidgetView"})})};a.prototype.openLink=function(t){if(t)window.open(t,"_blank")};a.prototype.passTaskUtterances=function(t,e){var n=this;var i=JSON.parse(g(t).attr("payload"));message=i.actions[e].utterance.replace(/qwertyuiopasdfghjklzxcvbnmdouble/g,'"');message=i.actions[e].utterance.replace(/qwertyuiopasdfghjklzxcvbnm/g,"'");if(g(".switchKoraDD .switchHeader .skillNameTxt").text().trim().toLowerCase()!=="kora"){var a=g(".switchKoraDD .switchHeader .skillNameTxt").text().trim();var o=[{id:"taskBotInfo",title:"Switch Skill",desc:"This action will end your conversation with "+a+" skill and move to Kora. Do you want to continue? ",buttons:[{title:"YES"},{title:"NO"}]}];n.createPopup(o,i.id,"Ask Kora "+message)}else n.passUtterances(i.id,message)};a.prototype.passUtterances=function(t,e,n){var i=this;if(n){n.stopPropagation();n.preventDefault()}if(t=="url"){window.open(e,"_blank");return}var a={ids:[]};a.ids=[];a.ids.push(t);var o=g(n.currentTarget).attr("actionobj");o=JSON.parse(o);var s={payload:a,type:"widget"};i.triggerAction(o,s)};a.prototype.triggerEvent=function(t,e){var n=this;if(n.events&&n.events[t]){n.events[t](e);n.setChatFocus()}};a.prototype.triggerAction=function(t,e){var n=this;if(t.type==="url"){window.open(t.url,"_blank");return}var i=e||{};if(t.utterance)i.utterance=t.utterance;if(t.payload)i.payload=t.payload;if(t.nlmeta||t.nlMeta)i.nlmeta=t.nlmeta||t.nlMeta;if(t.customdata)i.customData=t.customData;n.triggerEvent("onPostback",i);n.openPanel("closePanel");n.setChatFocus()};a.prototype.checkCurrentUser=function(t,e){var n=this;var i=n.config.userInfo.id;if(t==i&&e==i)return true;else return false};a.prototype.categoriseMeetingDayWise=function(t){var e=object.assign({},t);for(var n=0;n<e.length;n++){var i=b.getTimeline(e.data.duration.start,"fulldate","meetings");if(i==="Next Inline");else if(i==="Later Today");else;}};a.prototype.showDropdown=function(t){if(g(t).next().hasClass("dropdown-contentWidgt"))g(t).next().toggleClass("show");g(".dropdown-contentWidgt.show").not(g(t).next()).removeClass("show")};(function(){window.onclick=function(t){if(!t.target.matches(".dropbtnWidgt")){var e=document.getElementsByClassName("dropdown-contentWidgt");var n;for(n=0;n<e.length;n++){var i=e[n];if(i.classList.contains("show"))i.classList.remove("show")}}}})();a.prototype.addArticleAnnouncement=function(t){if(t==="Article")window.angularComponentReference.zone.run(function(){window.addKnowledge.componentFn()});else if(t==="Announcement")window.angularComponentReference.zone.run(function(){window.addAnnouncement.componentFn()})};a.prototype.passMeetingUtterances=function(t){var e=this;mainObj=g(t).attr("mainObj");actionObj=g(t).attr("actionObj");var n=JSON.parse(actionObj);var i={utterance:n.utterance,payload:n.payload,type:"widget"};if(n.payload)i.payload=n.payload;if(n.nlmeta||n.mlMeta)i.nlmeta=n.nlmeta||n.nlMeta;if(n.customdata)i.customdata=n.customdata;e.triggerEvent("onPostback",i)};a.prototype.meetingAction=function(t,e){try{t=JSON.parse(t);e=JSON.parse(e);var n=new Object;n["title"]=e.title;n["duration"]=e.data.duration;n["where"]=e.location;n["color"]=e.data.color;n["htmlLink"]=e.data.htmlLink;n["eventId"]=e.data.eventId;n["attendees"]=e.data.attendees;n["isAllDay"]=e.data.isAllDay;n["meetJoin"]=e.data.meetJoin;n["isOrganizer"]=e.data.isOrganizer;n["description"]=e.data.description;n["mId"]=e.meetingId;if(t.type==="postback"){var i={ids:[e.data.eventId]};window["chatWinRef"].sendMessage(g(".chatInputBox"),t.utterance,i,"widget");setChatFocus()}else if(t.type==="view_details")window.angularComponentReference.zone.run(function(){window.openMeetingDetail.componentFn(n)});else if(t.type==="open_form")window.angularComponentReference.zone.run(function(){window.openCreateNotes.componentFn(n)});else if(t.type==="url")window.open(t.url,"_blank")}catch(t){console.log("Exception occur:"+t)}};a.prototype.taskkAction=function(t,e,n){if(l.indexOf(t)>=0){l.splice(l.indexOf(t),1);g(n).parents(".viewTask").removeClass("selected")}else{A[t]=e;l.push(t);g(n).parents(".viewTask").addClass("selected")}if(l.length===1)g(".viewMoreCntr .mainTemplateBdr .widgetContentPanel").css({height:"calc(100% - 135px - "+g(".taskSelectFootCntr").height()+"px)"});if(l.length===0)g(".viewMoreCntr .mainTemplateBdr .widgetContentPanel").css({height:"calc(100% - 135px)"});if(l.length){g(".viewMoreCntr .taskSelectCntr,.viewMoreCntr .taskSelectFootCntr").show();var i=l.length===1?"task":"tasks";g(".viewMoreCntr .taskSelectCntr .taskCount").text(l.length+" "+i+" selected")}else g(".viewMoreCntr .taskSelectCntr,.viewMoreCntr .taskSelectFootCntr").hide()};a.prototype.removeTaskSelection=function(){resetTask();if(l.length===0)g(".viewMoreCntr .mainTemplateBdr .widgetContentPanel").css({height:"calc(100% - 135px)"})};a.prototype.taskSend=function(t){var e=this;if(g(".switchKoraDD .switchHeader .skillNameTxt").text().trim().toLowerCase()!=="kora"){var n=g(".switchKoraDD .switchHeader .skillNameTxt").text().trim();var i=[{id:"taskInfo",title:"Switch Skill",desc:"This action will end your conversation with "+n+" skill and move to Kora. Do you want to continue? ",buttons:[{title:"YES"},{title:"NO"}]}];e.createPopup(i,t,"")}else e.sendTaskAction(t,"normal")};a.prototype.taskCheckbox=function(t){if(l.indexOf(t)>=0)return true;else return false};a.prototype.sendTaskAction=function(t,e){var n="";var i={ids:l};if(t==="complete")if(l.length===1)n="Complete task - "+A[l[0]];else n="Complete selected tasks";else if(t==="changeduedate")if(l.length===1)n="Change due date of task - "+A[l[0]];else n="Change due date of the selected tasks";if(e==="switchbot")n="Ask Kora "+n;window["chatWinRef"].sendMessage(g(".chatInputBox"),n,i,"meeting_action");l=[];A={};g(_self.config.container.content).find(".viewMoreCntr").remove()};a.prototype.popupAction=function(t,e,n){var i=this;var a=g(n).attr("actionObj");var o=g(n).attr("mainObj");try{var s=JSON.parse(t);var r=e.toLowerCase();if(r==="no"){if(s[0].id==="skillSwitche"){g(".mgrCntr").find("#preview_"+s[0]["id"]).fadeOut("fast",function(){g(".mgrCntr").find("#preview_"+s[0]["id"]).remove()});g(".mgrCntr").find("#popup_"+s[0]["id"]).fadeOut("fast",function(){g(".mgrCntr").find("#popup_"+s[0]["id"]).remove()});a.btnresponse=false;openPanel(a.oldPanel,a);return}g(".mgrCntr").find("#preview_"+s[0]["id"]).fadeOut("slow",function(){g(".mgrCntr").find("#preview_"+s[0]["id"]).remove()});g(".mgrCntr").find("#popup_"+s[0]["id"]).fadeOut("slow",function(){g(".mgrCntr").find("#popup_"+s[0]["id"]).remove()})}else if(r==="yes"){if(s[0].id==="meetingInfo"){var l=JSON.parse(a);l.utterance="Ask Kora "+l.utterance;i.meetingAction(JSON.stringify(l),o)}else if(s[0].id==="taskInfo")i.sendTaskAction(a,"switchbot");else if(s[0].id==="taskBotInfo")i.passUtterances(a,o);else if(s[0].id==="skillSwitche"){g(".mgrCntr").find("#preview_"+s[0]["id"]).fadeOut("fast",function(){g(".mgrCntr").find("#preview_"+s[0]["id"]).remove()});g(".mgrCntr").find("#popup_"+s[0]["id"]).fadeOut("fast",function(){g(".mgrCntr").find("#popup_"+s[0]["id"]).remove()});var a=JSON.parse(a);a.btnresponse=true;openPanel(a.newPanel,a);return}g(".mgrCntr").find("#preview_"+s[0]["id"]).fadeOut("slow",function(){g(".mgrCntr").find("#preview_"+s[0]["id"]).remove()});g(".mgrCntr").find("#popup_"+s[0]["id"]).fadeOut("slow",function(){g(".mgrCntr").find("#popup_"+s[0]["id"]).remove()})}else if(r.toLowerCase()==="ok")if(s[0].id==="tokenExpired")window.angularComponentReference.zone.run(function(){window.componentRefsessionTmout.componentFn()})}catch(t){console.log("Exception occur: "+t)}};a.prototype.createPopup=function(t,e,n){var i=this;var a=g(i.getTemplate("popUpTemplate")).tmplProxy({tempdata:t,actionObj:e,mainObj:n});g(".mgrCntr").append(a)};a.prototype.toggelMeetingActionBtn=function(t,e){if(g(e).children().hasClass("icon-Arrow_Drop_Down_Up")){g(e).children().removeClass("icon-Arrow_Drop_Down_Up");g(e).children().addClass("icon-Arrow_Drop_Down")}else{g(e).children().addClass("icon-Arrow_Drop_Down_Up");g(e).children().removeClass("icon-Arrow_Drop_Down")}g("#"+t).slideToggle("slow")};a.prototype.hexToRGBMeeting=function(t,e){if(!e)if(g("body").hasClass("darkTheme"))e=.7;else e=.3;var n=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),a=parseInt(t.slice(5,7),16);if(e)return"rgba("+n+", "+i+", "+a+", "+e+")";else return"rgb("+n+", "+i+", "+a+")"};a.prototype.isURL=function(t){function e(t){return/\s/g.test(t)}var n=e(t);if(n){t=t.split(/[ ]+/);t=t[0]}var i=t.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);if(i)return{status:true,location:t};else return{status:false,location:t}};a.prototype.getTemplateMethods=function(){var e=this;var n={};var t=["openPanel","filterTabs","viewMorePanel","scrollData","removeViewMore","meetingTimer","passHashTag","openArticle","openAnnouncement","openLink","passTaskUtterances","passUtterances","checkCurrentUser","showDropdown","addArticleAnnouncement","passMeetingUtterances","taskkAction","removeTaskSelection","taskSend","taskCheckbox","popupAction","toggelMeetingActionBtn","hexToRGBMeeting","isURL"];t.forEach(function(t){n[t]=e[t].bind(e)});return n};a.prototype.openPanelForWindow=function(t,e,n){a.prototype.openPanel.call(koreWidgetSDKInstance,t,e,n)};a.prototype.filterTabsForWindow=function(t,e,n){a.prototype.filterTabs.call(koreWidgetSDKInstance,t,e,n)};a.prototype.viewMorePanelForWindow=function(t){a.prototype.viewMorePanel.call(koreWidgetSDKInstance,t)};a.prototype.scrollDataForWindow=function(t,e,n,i){a.prototype.scrollData.call(koreWidgetSDKInstance,t,e,n,i)};a.prototype.removeViewMoreForWindow=function(){a.prototype.removeViewMore.call(koreWidgetSDKInstance)};a.prototype.meetingTimerForWindow=function(t,e,n){a.prototype.meetingTimer.call(koreWidgetSDKInstance,t,e,n)};a.prototype.passHashTagForWindow=function(t){a.prototype.passHashTag.call(koreWidgetSDKInstance,t)};a.prototype.openArticleForWindow=function(t){a.prototype.openArticle.call(koreWidgetSDKInstance,t)};a.prototype.openAnnouncementForWindow=function(t){a.prototype.openAnnouncement.call(koreWidgetSDKInstance,t)};a.prototype.openLinkForWindow=function(t){a.prototype.openLink.call(koreWidgetSDKInstance,t)};a.prototype.passTaskUtterancesForWindow=function(t,e){a.prototype.passTaskUtterances.call(koreWidgetSDKInstance,t,e)};a.prototype.passUtterancesForWindow=function(t,e,n){a.prototype.passUtterances.call(koreWidgetSDKInstance,t,e,n)};a.prototype.checkCurrentUserForWindow=function(t,e){a.prototype.checkCurrentUser.call(koreWidgetSDKInstance,t,e)};a.prototype.showDropdownForWindow=function(t){a.prototype.showDropdown.call(koreWidgetSDKInstance,t)};a.prototype.addArticleAnnouncementForWindow=function(t){a.prototype.addArticleAnnouncement.call(koreWidgetSDKInstance,t)};a.prototype.refreshElementForWindow=function(t,e){a.prototype.refreshElement.call(koreWidgetSDKInstance,t,e)};a.prototype.passMeetingUtterancesForWindow=function(t){a.prototype.passMeetingUtterances.call(koreWidgetSDKInstance,t)};a.prototype.taskkActionForWindow=function(t,e,n){a.prototype.taskkAction.call(koreWidgetSDKInstance,t,e,n)};a.prototype.removeTaskSelectionForWindow=function(){a.prototype.removeTaskSelection.call(koreWidgetSDKInstance)};a.prototype.taskSendForWindow=function(t){a.prototype.taskSend.call(koreWidgetSDKInstance,t)};a.prototype.taskCheckboxForWindow=function(t){a.prototype.taskCheckbox.call(koreWidgetSDKInstance,t)};a.prototype.popupActionForWindow=function(t,e,n){a.prototype.popupAction.call(koreWidgetSDKInstance,t,e,n)};a.prototype.toggelMeetingActionBtnForWindow=function(t,e){a.prototype.toggelMeetingActionBtn.call(koreWidgetSDKInstance,t,e)};a.prototype.hexToRGBMeetingForWindow=function(t,e){a.prototype.hexToRGBMeeting.call(koreWidgetSDKInstance,t,e)};a.prototype.isURLForWindow=function(t){a.prototype.isURL.call(koreWidgetSDKInstance,t)};window.openPanel=a.prototype.openPanelForWindow;window.filterTabs=a.prototype.filterTabsForWindow;window.viewMorePanel=a.prototype.viewMorePanelForWindow;window.scrollData=a.prototype.scrollDataForWindow;window.removeViewMore=a.prototype.removeViewMoreForWindow;window.meetingTimer=a.prototype.meetingTimerForWindow;window.passHashTag=a.prototype.passHashTagForWindow;window.openArticle=a.prototype.openArticleForWindow;window.openAnnouncement=a.prototype.openAnnouncementForWindow;window.openLink=a.prototype.openLinkForWindow;window.passTaskUtterances=a.prototype.passTaskUtterancesForWindow;window.passUtterances=a.prototype.passUtterancesForWindow;window.checkCurrentUser=a.prototype.checkCurrentUserForWindow;window.showDropdown=a.prototype.showDropdownForWindow;window.addArticleAnnouncement=a.prototype.addArticleAnnouncementForWindow;window.refreshElement=a.prototype.refreshElementForWindow;window.passMeetingUtterances=a.prototype.passMeetingUtterancesForWindow;window.taskkAction=a.prototype.taskkActionForWindow;window.removeTaskSelection=a.prototype.removeTaskSelectionForWindow;window.taskSend=a.prototype.taskSendForWindow;window.taskCheckbox=a.prototype.taskCheckboxForWindow;window.popupAction=a.prototype.popupActionForWindow;window.toggelMeetingActionBtn=a.prototype.toggelMeetingActionBtnForWindow;window.hexToRGBMeeting=a.prototype.hexToRGBMeetingForWindow;window.isURL=a.prototype.isURLForWindow;a.prototype.getMeetingSlot=function(t){var e=this;var n=[];var i=new Date(t.start);var a=new Date(t.end);days=e.getDateArray(i,a);day=days.length-1;if(day<1)return n=[{start:t.start,end:t.end}];else{var o=t.start;var s=t.end;for(var r=0;r<=day;r++){var l=new Date(o);var c=new Date(s);if(r>0){l.setDate(l.getDate()+r);var u=l;l=new Date(u.getFullYear(),u.getMonth(),u.getDate(),0,0,0)}var d="";if(r===day)d=c;else d=new Date(l.getFullYear(),l.getMonth(),l.getDate(),23,59,0);var f=new Date;var p=new Date(l);n.push({start:new Date(l).getTime(),end:new Date(d).getTime()})}return n}};a.prototype.getDateArray=function(t,e){var n=new Array,i=new Date(t);while(i<=e){n.push(new Date(i));i.setDate(i.getDate()+1)}return n};a.prototype.cloneMessage1=function(n){var i=this;var t;switch(_typeof(n)){case"object":if(n===null)t=null;else switch(toString.call(n)){case"[object Array]":t=n.map(i.cloneMessage1.bind(i));break;case"[object Date]":t=new Date(n);break;case"[object RegExp]":t=new RegExp(n);break;default:t=Object.keys(n).reduce(function(t,e){t[e]=i.cloneMessage1(n[e]);return t},{});break}break;default:t=n;break}return t};a.prototype.compare=function(t,e){var n=t.data.duration.start;var i=e.data.duration.start;var a=0;if(n>i)a=1;else if(n<i)a=-1;return a};a.prototype.init=function(t){s=this;this.events={};this.config=t||{};window.baseUrl=t.botOptions.koreAPIUrl;t.direction="left";t.userInfo={id:""};console.log(g);g("body").off("click").on("click",function(){if(g(".kore-chat-window"))g(".kore-chat-window").removeClass("selectedHeight")})};a.prototype.setJWT=function(t){var e=this;if(e.config.botOptions&&e.config.botOptions.botInfo)if(e.config.botOptions&&e.config.botOptions.botInfo&&e.config.botOptions.botInfo.customData)e.config.botOptions.botInfo.customData.kmToken=t;else e.config.botOptions.botInfo.customData={kmToken:t};else e.config.botOptions.botInfo={customData:{kmToken:t}}};return a}(t,e,n)}(),window.koreBotChat=function(){var t,e;t=(window&&window.KoreSDK&&window.KoreSDK.dependencies&&window.KoreSDK.dependencies.jQuery?window.KoreSDK.dependencies:window).jQuery;window.PerfectScrollbar&&"function"==typeof PerfectScrollbar&&(e=window.PerfectScrollbar);return function(Y,e){var i,s,r,n,a,o,l,c,u,d,p=requireKr("/KoreBot.js").instance(),f={},h={},m=/<script\b[^>]*>([\s\S]*?)/gm,g={},y=[],v=0,D="",b="",A=[],I="",M=!1,w=!1,C="",_="",T=0,k=!1,x={OPEN_OVERRIDE:"cw:open:override",MESSAGE_OVERRIDE:"cw:message:override"},N={messageId:null,MAX_RETRIES:3,retryCount:0},S=window.navigator,E="content-type=audio/x-raw,+layout=(string)interleaved,+rate=(int)16000,+format=(string)S16LE,+channels=(int)1",j="../libs/recorderWorker.js",O=250,L=null,z=null,P="",R=null,F="";audioMsgs=[],speechSyn=null,audioPlaying=!1;var U={},B={},H=["m4a","amr","aac","wav","mp3","mp4","mov","3gp","flv","png","jpg","jpeg","gif","bmp","csv","txt","json","pdf","doc","dot","docx","docm","dotx","dotm","xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw","ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm","zip","rar","tar","wpd","wps","rtf","msg","dat","sdf","vcf","xml","3ds","3dm","max","obj","ai","eps","ps","svg","indd","pct","accdb","db","dbf","mdb","pdb","sql","apk","cgi","cfm","csr","css","htm","html","jsp","php","xhtml","rss","fnt","fon","otf","ttf","cab","cur","dll","dmp","drv","7z","cbr","deb","gz","pkg","rpm","zipx","bak","avi","m4v","mpg","rm","swf","vob","wmv","3gp2","3g2","asf","asx","srt","wma","mid","aif","iff","m3u","mpa","ra","aiff","tiff","log"];U.CHUNK_SIZE=1048576;var Q={};Q.audio=["m4a","amr","wav","aac","mp3"],Q.video=["mp4","mov","3gp","flv"],Q.image=["png","jpg","jpeg","gif"],Q.file={limit:{size:26214400,msg:"Please limit the individual file upload size to 25 MB or lower"}},Q.determineFileType=function(t){return t=t.toLowerCase(),-1<Q.image.indexOf(t)?"image":-1<Q.video.indexOf(t)?"video":-1<Q.audio.indexOf(t)?"audio":"attachment"};var t={net:{}};window.PieChartCount=0,window.barchartCount=0,window.linechartCount=0;var W,V=[],G={};window.chartColors=["#75b0fe","#f78083","#99ed9e","#fde296","#26344a","#5f6bf7","#b3bac8","#99a1fd","#9cebf9","#f7c7f4"];var Z=0;function J(t){var e;return t=(e=t?t.isNotAllowedHTMLTags():e)&&!e.isValid?t.escapeHTML():t}String.prototype.isNotAllowedHTMLTags=function(){var t=document.createElement("div");t.innerHTML=this;var e={isValid:!0,key:""};try{return(Y(t).find("script").length||Y(t).find("video").length||Y(t).find("audio").length)&&(e.isValid=!1),Y(t).find("link").length&&-1!==Y(t).find("link").attr("href").indexOf("script")&&(m.test(Y(t).find("link").attr("href"))?e.isValid=!1:e.isValid=!0),Y(t).find("a").length&&-1!==Y(t).find("a").attr("href").indexOf("script")&&(m.test(Y(t).find("a").attr("href"))?e.isValid=!1:e.isValid=!0),Y(t).find("img").length&&-1!==Y(t).find("img").attr("src").indexOf("script")&&(m.test(Y(t).find("img").attr("href"))?e.isValid=!1:e.isValid=!0),Y(t).find("object").length&&(e.isValid=!1),e}catch(t){return e}},String.prototype.escapeHTML=function(){var e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"};return(""+this).replace(/[<>"']/g,function(t){return e[t]})},String.prototype.replaceAll=function(t,e){return this.replace(new RegExp(t,"g"),e)},String.prototype.includes||(String.prototype.includes=function(t,e){if(t instanceof RegExp)throw TypeError("first argument must not be a RegExp");return-1!==this.indexOf(t,e=void 0===e?0:e)});var q,K={nl2br:function(t,e){return t=(t=e?window.emojione.shortnameToImage(t):t).replace(/(?:\r\n|\r|\n)/g,"<br />")},br2nl:function(t){return t=t.replace(/<br \/>/g,"\n")},formatAMPM:function(t){var e=t.getHours(),n=t.getMinutes(),i=t.getSeconds(),t=12<=e?"pm":"am";return(e=(e%=12)||12)+":"+(n=n<10?"0"+n:n)+":"+(i=i<10?"0"+i:i)+" "+t},formatDate:function(t){var e=new Date(t);return isNaN(e.getTime())&&(t=(new Date).getTime(),e=new Date(t)),e.toDateString()+" at "+K.formatAMPM(e)},convertMDtoHTML:function(e,t,n){if("object"==typeof e)try{e=JSON.stringify(e)}catch(t){e=""}var i,o={},a={};n&&n.cInfo&&n.cInfo.ignoreCheckMark&&(i=n.cInfo.ignoreCheckMark),a.date=new RegExp(/\\d\(\s*(.{10})\s*(?:,\s*["'](.+?)["']\s*)?\)/g),a.time=new RegExp(/\\t\(\s*(.{8}\.\d{0,3})\s*\)/g),a.datetime=new RegExp(/\\(d|dt|t)\(\s*([-0-9]{10}[T][0-9:.]{12})([z]|[Z]|[+-]\d{4})[\s]*,[\s]*["']([a-zA-Z\W]+)["']\s*\)/g),a.num=new RegExp(/\\#\(\s*(\d*.\d*)\s*\)/g),a.curr=new RegExp(/\\\$\((\d*.\d*)[,](\s*[\"\']\s*\w{3}\s*[\"\']\s*)\)|\\\$\((\d*.\d*)[,](\s*\w{3}\s*)\)/g);var s={SPECIAL_CHARS:/[\=\`\~\!@#\$\%\^&\*\(\)_\-\+\{\}\:"\[\];\',\.\/<>\?\|\\]+/,EMAIL:/^[-a-z0-9~!$%^&*_=+}{\']+(\.[-a-z0-9~!$%^&*_=+}{\']+)*@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,255})+$/i,MENTION:/(^|\s|\\n|")@([^\s]*)(?:[\s]\[([^\]]*)\])?["]?/gi,HASHTAG:/(^|\s|\\n)#(\S+)/g,NEWLINE:/\n/g},n=/((?:http\:\/\/|https\:\/\/|www\.)+\S*\.(?:(?:\.\S)*[^\,\s\.])*\/?)/gi,r=/\[([^\]]+)\](|\s)\((?:[^)(]+|\((?:[^)(]+|\([^)(]*\))*\))*\)?/g,l=e||"",c={};c.sd=new RegExp(/^(d{1})[^d]|[^d](d{1})[^d]/g),c.dd=new RegExp(/^(d{2})[^d]|[^d](d{2})[^d]/g),c.fy=new RegExp(/(y{4})|y{2}/g);var u=Object.keys(a);function d(t,e){for(var n,i=[];null!==(n=t.exec(e));){var a={};if(a.index=n.index,a.matchexp=n[0],1<n.length)for(var o=1;o<n.length;o++)a["matchval"+o.toString()]=n[o];i.push(a)}return i}function f(t){return t.toUpperCase()}for(var p,h=0;h<u.length;h++)switch(u[h]){case"date":var m=l,g=d(a.date,m);if(g.length)for(p=0;p<g.length;p++)var y=" "+(y=new Date(g[p].matchval1).toLocaleDateString()).toString()+" ",l=l.replace(g[p].matchexp.toString(),y);break;case"time":var v=l,D=d(a.time,v);if(D.length)for(p=0;p<D.length;p++){var b=" "+(b=new Date(D[p].matchval1).toLocaleTimeString()).toString()+" ";l=l.replace(D[p].matchexp.toString(),b)}break;case"datetime":var v=l,A=d(a.datetime,v);if(A.length)for(p=0;p<A.length;p++){for(var I="",M=Object.keys(A[p]).length-2,w=2;w<M;w++){var C="matchval"+w.toString();I+=A[p][C]}var _="matchval"+M.toString(),_=A[p][_];_=(_=(_=_.replace(c.fy,f)).replace(c.dd,f)).replace(c.sd,f);_=" "+(_=moment(I).format(_)).toString()+" ";l=l.replace(A[p].matchexp.toString(),_)}break;case"num":var T=l,k=d(a.num,T);if(k.length)for(p=0;p<k.length;p++){var x=" "+(x=Number(k[p].matchval1).toLocaleString()).toString()+" ";l=l.replace(k[p].matchexp.toString(),x)}break;case"curr":var T=l,N=d(a.curr,T),S=window.navigator.language||window.navigator.browserLanguage,E=new RegExp(/\w{3}/);if(N.length)for(p=0;p<N.length;p++){var j,O={style:"currency"};N[p].matchval2&&(j=E.exec(N[p].matchval2)),O.currency=j[0].toString();var L=Number(N[p].matchval1).toLocaleString(S,O),L=N[p].matchval1.toString()===L.toString()?" "+L.toString()+" "+O.currency:" "+L.toString()+" ";l=l.replace(N[p].matchexp.toString(),L)}}s.NEWLINE;function z(t,e,n,i){var a,i=i.replace(r,"[]");if(a=i,["onclick","onmouse","onblur","onscroll","onStart"].forEach(function(t){t=new RegExp(t,"ig");a=a.replace(t,"")}),-1===(i=a).indexOf(t))return t;i=e.indexOf("http")<0?"http://"+t:t;return target="target='underscoreblank'",o&&(e="korerandom://"+Object.keys(o).length,o[e]=i,i=e),"<span class='isLink'><a id='linkEvent'undefined href=\""+i+'">'+t+"</a></span>"}l=(l="number"==typeof l?l.toString():l)||"";var P,s="";if("user"===t)l=window.DOMPurify?window.DOMPurify.sanitize(l,{ALLOWED_TAGS:["a","b","br"],ADD_TAGS:["iframe"]}):(l=(l=l.replace(/onerror=/gi,"")).replace(/onmouseover=/gi,"")).replace(/onload=/gi,""),P=document.createElement("div"),s=(s=l.replace(/“/g,'"').replace(/”/g,'"')).replace(/</g,"&lt;").replace(/>/g,"&gt;"),P.innerHTML=J(s),l=Y(P).find("a").attr("href")?s:s.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(n,z);else if(P=document.createElement("div"),l=window.DOMPurify?window.DOMPurify.sanitize(l,{ALLOWED_TAGS:["a","b","br"],ADD_TAGS:["iframe"]}):(l=(l=l.replace(/onerror=/gi,"")).replace(/onmouseover=/gi,"")).replace(/onload=/gi,""),P.innerHTML=J(l),Y(P).find("a").attr("href"))for(var R=l.match(/<a[^>]*>([^<]+)<\/a>/g),F=0;F<R.length;F++){var U=document.createElement("div"),B=R[F];U.innerHTML=R[F],(-1<B.indexOf("href='mailto:")||-1<B.indexOf('href="mailto:'))&&(B=B.split("\n").join("%0A"));var H="korerandom://"+Object.keys(o).length;U.innerHTML=B;B=U.getElementsByTagName("a");B&&B[0]&&B[0].href&&(o[H]=B[0].href,B[0].href=H),Y(U).find("a").attr("target","underscoreblank"),l=l.replace(R[F],U.innerHTML)}else l=P.innerHTML.replace(n,z);l=i?e:K.checkMarkdowns(l,o);e=Object.keys(o);return e&&e.length&&e.forEach(function(t){l=l.replace(t,function(){return o[t]})}),l=(l=l.replaceAll('target="underscoreblank"','target="_blank"')).replaceAll("target='underscoreblank'",'target="_blank"'),window.DOMPurify&&(l=window.DOMPurify.sanitize(l,{ADD_TAGS:["iframe"]})),K.nl2br(l,!0)},checkMarkdowns:function(t,e){if(""===t)return t;for(var n=t.split(/\r?\n/),i=0;i<n.length;i++){var a,o,s=!1;0===n[i].indexOf("#h6")||0===n[i].indexOf("#H6")?(n[i]="<h6>"+n[i].substring(3)+"</h6>",s=!0):0===n[i].indexOf("#h5")||0===n[i].indexOf("#H5")?(n[i]="<h5>"+n[i].substring(3)+"</h5>",s=!0):0===n[i].indexOf("#h4")||0===n[i].indexOf("#H4")?(n[i]="<h4>"+n[i].substring(3)+"</h4>",s=!0):0===n[i].indexOf("#h3")||0===n[i].indexOf("#H3")?(n[i]="<h3>"+n[i].substring(3)+"</h3>",s=!0):0===n[i].indexOf("#h2")||0===n[i].indexOf("#H2")?(n[i]="<h2>"+n[i].substring(3)+"</h2>",s=!0):0===n[i].indexOf("#h1")||0===n[i].indexOf("#H1")?(n[i]="<h1>"+n[i].substring(3)+"</h1>",s=!0):0===n[i].length?(n[i]="\r\n",s=!0):0===n[i].indexOf("*")?!X(n[i].split("*").length-1)&&n[i].substring(1)&&(n[i]="\r\n&#9679; "+n[i].substring(1),s=!0):0===n[i].indexOf(">>")?(0===n[i].substring(2).indexOf("*")?(X(n[i].substring(2).split("*").length-1)||(n[i]="&#9679; "+n[i].substring(3),s=!0),n[i]='<p class="indent">'+n[i]+"</p>"):n[i]='<p class="indent">'+n[i].substring(2)+"</p>",s=!0):0===n[i].indexOf("&gt;&gt;")?(0===n[i].substring(8).indexOf("*")?(X(n[i].substring(8).split("*").length-1)||(n[i]="&#9679; "+n[i].substring(9),s=!0),n[i]='<p class="indent">'+n[i]+"</p>"):function t(e,n,i){var a;i?(e[n]='<div class="indent">'+e[n]+"</div>",-1===q.indexOf("&gt;&gt;")&&(a=e[n].indexOf("&gt;&gt;"),i=e[n].indexOf("</div>"),i=e[n].slice(a,i),e[n]=e[n].replace(i,q))):(q=e[n].substring(8),e[n]='<div class="indent">'+e[n].substring(8)+"</div>");0===q.indexOf("&gt;&gt;")&&(q=q.substring(8),t(e,n,!0))}(n,i),s=!0):0!==n[i].indexOf("---")&&0!==n[i].indexOf("___")||"-"!==(a=0===n[i].indexOf("---")||0===n[i].indexOf("___")?n[i].charAt(3):a)&&"_"!==a&&(n[i]="<hr/>"+n[i].substring(3),s=!0),-1===n[i].indexOf(" ![")&&(n[i]=n[i].replace("!["," !["));var r=n[i].match(/\!\[([^\]]+)\](|\s)+\(([^\)])+\)/g);if(r&&0<r.length)for(o=0;o<r.length;o++){var l=r[o].substring(2,r[o].indexOf("]")),c=(p=r[o].substring(r[o].indexOf("]")+1).trim()).substring(1,p.indexOf(")"));e&&(e[h="korerandom://"+Object.keys(e).length]=c,c=h);for(var c='<img src="'+c+'" alt="'+l+'">',u=n[i].split(" "),d=0;d<u.length;d++)u[d]===r[o]&&(u[d]=c);n[i]=u.join(" "),n[i]=n[i].replace(r[o],c)}var f=n[i].match(/\[([^\]]+)\](|\s)\((?:[^)(]+|\((?:[^)(]+|\([^)(]*\))*\))*\)/g);if(f&&0<f.length)for(o=0;o<f.length;o++){var p,h,m=f[o].substring(1,f[o].indexOf("]")),g=(g=(p=f[o].substring(f[o].indexOf("]")+1).trim()).substring(1,p.lastIndexOf(")"))).replace(/\\n/g,"%0A");e&&(e[h="korerandom://"+Object.keys(e).length]=g,g=h),g='<span class="isLink"><a id="linkEvent" href="'+g+'" target="underscoreblank">'+K.checkMarkdowns(m)+"</a></span>",n[i]=n[i].replace(f[o],g)}var y=n[i].match(/\*\S([^*]*?)\*/g);if(y&&0<y.length)for(o=0;o<y.length;o++){var v,D=y[o],b=!0;D.includes("*")&&((v=D.replace(/\*/g,""))&&v.length||(b=!1)),b&&(D="<b>"+(D=D.substring(1,D.length-1)).trim()+"</b>",n[i]=n[i].replace(y[o],D))}var A=n[i].match(/\~\S([^*]*?)\S\~/g);if(A&&0<A.length)for(o=0;o<A.length;o++){var I=A[o];0!==n[i].indexOf(I)&&" "!==n[i][n[i].indexOf(I)-1]&&-1===n[i].indexOf(I)||(I=I.substring(1,I.length-1),n[i]=n[i].replace(A[o],I='<i class="markdownItalic">'+I+"</i>"))}if((A=n[i].match(/\_\S([^*]*?)\S\_/g))&&0<A.length)for(o=0;o<A.length;o++){var M,I=A[o];0!==n[i].indexOf(I)&&" "!==n[i][n[i].indexOf(I)-1]&&-1===n[i].indexOf(I)||(M=!0,(M=n[i][n[i].indexOf(I)+I.length]&&" "!==n[i][n[i].indexOf(I)+I.length]?!1:M)&&(I=I.substring(1,I.length-1)+" ",n[i]=n[i].replace(A[o],I='<i class="markdownItalic">'+I+"</i>")))}if((A=n[i].match(/\~\S([^*]*?)\S\~/g))&&0<A.length)for(o=0;o<A.length;o++){I=A[o];0!==n[i].indexOf(I)&&" "!==n[i][n[i].indexOf(I)-1]&&-1===n[i].indexOf(I)||(I=I.substring(1,I.length-1),n[i]=n[i].replace(A[o],I='<i class="markdownItalic">'+I+"</i>"))}var w,C=n[i].match(/\`\`\`\S([^*]*?)\S\`\`\`/g),_=n[i].match(/\'\'\'\S([^*]*?)\S\'\'\'/g);if(C&&0<C.length){for(o=0;o<C.length;o++)w=(w=C[o]).substring(3,w.length-3),n[i]=n[i].replace(C[o],w="<pre>"+w+"</pre>");s=!0}if(_&&0<_.length){for(o=0;o<_.length;o++)w=(w=_[o]).substring(3,w.length-3),n[i]=n[i].replace(_[o],w="<pre>"+w+"</pre>");s=!0}!s&&0<i&&(n[i]="\r\n"+n[i])}return t=n.join("")}};function X(t){return 0===(t=Number(t))||t&&!(t%2)}function $(t){for(var i=function(t){var e,n={};if("object"!=typeof t||Array.isArray(t))return t;for(e in t)t.hasOwnProperty(e)&&("object"==typeof t[e]?n[e]=i(t[e]):n[e]=t[e]);return n},e=1;e<arguments.length;e++)for(var n in arguments[e])arguments[e].hasOwnProperty(n)&&("object"==typeof arguments[e][n]?t[n]=i(arguments[e][n]):t[n]=arguments[e][n]);return t}function tt(t){this.setPrivateVarToContext(this),w=!1,t.botOptions.test=!1,this.config={chatTitle:"Kore.ai Bot Chat",container:"body",allowIframe:!1,botOptions:t.botOptions},s=t.botOptions.koreAPIUrl,D=t.botOptions.bearer,C=t.botOptions.koreSpeechAPIUrl,P=t.botOptions.ttsSocketUrl,I=t.botOptions.userIdentity,t.botOptions.recorderWorkerPath&&0<t.botOptions.recorderWorkerPath.trim().length&&(j=t.botOptions.recorderWorkerPath.trim()),t&&t.chatContainer&&delete t.chatContainer,this.config=$(this.config,t),this.reWriteWebHookURL(this.config),window._chatHistoryLoaded=!1,this.init(),it(),function(){Y(".kore-chat-window").remove(".kore-action-sheet");Y(".kore-chat-window").append('<div class="kore-action-sheet hide">            <div class="actionSheetContainer"></div>            </div>')}(),window.addEventListener("online",it),window.addEventListener("offline",it),t=window.addEventListener?"addEventListener":"attachEvent",(0,window[t])("attachEvent"==t?"onmessage":"message",function(t){t.data&&t.data.event&&"formEvent"===t.data.event&&((t=t.data)&&"formSubmit"===t.action?(nt(),Y(".kore-chat-body .uiformComponent").length&&Y(".kore-chat-body .uiformComponent").closest(".inlineIframeContainer").css("display","none")):"formCancel"===t.action?(et(),Y(".kore-chat-body .uiformComponent").length&&Y(".kore-chat-body .uiformComponent").closest(".inlineIframeContainer").css("display","none")):"formClose"===t.action&&(nt(),Y(".kore-chat-body .uiformComponent").length&&Y(".kore-chat-body .uiformComponent").closest(".inlineIframeContainer").css("display","none")))},!1)}function et(){Y("#chatBodyModal").length&&Y("#chatBodyModal").hide(),Y(".kore-chat-window").removeClass("modelOpen");try{koreAriaUtilis&&koreAriaUtilis.closeDialog(document.getElementById("closeChatBodyModal"))}catch(t){}}function nt(t,e){var n=Y("#chatBodyModal");document.getElementsByClassName("closeChatBodyModal")[0].onclick=function(){Y(".kore-chat-window").removeClass("modelOpen");var t,e=n.find("iframe");t={payload:{},event:"formEvent",action:"formCancel",metaData:{}},(e=e)&&e.length&&e[0]&&e[0].contentWindow&&t&&e[0].contentWindow.postMessage(t,"*")},t?(n.find(".closeChatBodyModal").css("display","none"),n.find(".loading_form").css("z-index",999),n&&n.length&&(n.find("#chatBodyModalContent").empty(),n.find("#chatBodyModalContent").append(t),n.show(),Y(".kore-chat-window").addClass("modelOpen")),setTimeout(function(){n.find(".loading_form").css("z-index",0),e?n.find(".closeChatBodyModal").css("display","block"):n.find(".closeChatBodyModal").css("display","none")},1500)):(Y(".kore-chat-window").removeClass("modelOpen"),n.find(".closeChatBodyModal").css("display","none"),setTimeout(function(){n.find("#chatBodyModalContent").empty()},1e3),et())}function it(){"boolean"==typeof S.onLine&&(S.onLine?(this.hideError(),p&&p.RtmClient&&window.KoreSDK?.chatConfig?.syncMessages?.onNetworkResume?.enable&&p.getHistory({forHistorySync:!0,limit:window.KoreSDK?.chatConfig?.syncMessages?.onNetworkResume?.batchSize})):this.showError("You are currently offline"))}function at(t){var e,n;t&&t.item(0)&&t.item(0).innerText.length?((e=document.createRange()).selectNodeContents(t[0]),e.collapse(!1),(n=window.getSelection()).removeAllRanges(),n.addRange(e),i=e):(i=!1,t&&t[0]&&t[0].focus())}function ot(t){return t.split(".")}void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),tt.prototype.reWriteWebHookURL=function(t){t.botOptions&&t.botOptions.webhookConfig&&t.botOptions.webhookConfig.apiVersion&&2===t.botOptions.webhookConfig.apiVersion&&t.botOptions&&t.botOptions.webhookConfig&&t.botOptions.webhookConfig.webhookURL&&(t.botOptions.webhookConfig.webhookURL=t.botOptions.webhookConfig.webhookURL.replace("hooks","v2/webhook"))},tt.prototype.renderWebForm=function(t,e){if(t.message&&t.message[0].component&&t.message[0].component.payload&&t.message[0].component.payload.formData)if(t.renderType=t.message[0].component.payload.formData.renderType,t.message[0].component.payload.template_type="iframe",e||"inline"!==t.renderType){var n="&channel=rtm";"inline"===t.renderType&&(n+="&showClose=true");n=Y(this.getChatTemplate("iframe")).tmpl({msgData:t,helpers:this.helpers,link_url:t.message[0].component.payload.formData.formLink+n});if(e)return n;nt(n[0],!0)}else this.renderMessage(t)},tt.prototype.resetPingMessage=function(){var e=this;clearTimeout(e._pingTimer),e._pingTimer=setTimeout(function(){var t={type:"ping"};e.bot.sendMessage(t,function(){}),e.resetPingMessage()},e._pingTime)},window.onresize=function(t){var e=W;t.target===window&&(W.setCollapsedModeStyles(),Y("#chatContainer").width()),480<Y(".kore-chat-window").width()||document.getElementsByClassName("kore-chat-window").length&&document.getElementsByClassName("kore-chat-window")[0].classList.contains("expanded")?(t=Y(".kore-chat-window").width(),Y(".carousel").attr("style","width: "+(t-85)+"px !important")):Y(".carousel").attr("style","width: 300px !important");for(var n=0;n<y.length;n++)y[n].computeResize();for(var i=document.querySelectorAll(".quickReplies"),n=0;n<i.length;n++){var a=i[n].querySelectorAll(".quick_replies_btn_parent"),o=i[n].querySelectorAll(".quickreplyLeftIcon"),s=i[n].querySelectorAll(".quickreplyRightIcon");a&&a[0]&&a[0].hasChildNodes()&&(o&&o.length&&o[0]&&o[0].classList&&(0<a[0].scrollLeft?o[0].classList.remove("hide"):o[0].classList.add("hide")),s&&s.length&&s[0]&&s[0].classList&&(a[0].offsetWidth<a[0].scrollWidth?s[0].classList.remove("hide"):s[0].classList.add("hide")))}490<Y(".kore-chat-window").width()?(Y(".accordionTable").each(function(){Y(this).hasClass("responsive")&&Y(this).addClass("hide")}),Y(".tablechartDiv").each(function(){Y(this).hasClass("regular")||Y(this).removeClass("hide")})):(Y(".accordionTable").each(function(){Y(this).hasClass("responsive")&&Y(this).removeClass("hide")}),Y(".tablechartDiv").each(function(){Y(this).hasClass("regular")||Y(this).addClass("hide")})),Y(".chat-container").scrollTop(Y(".chat-container")[0].scrollHeight),e.chatPSObj&&e.chatPSObj.update&&e.chatPSObj.update()},tt.prototype.handleImagePreview=function(){var e=document.getElementById("myModal"),n=(document.getElementById("myImg"),document.getElementById("img01")),i=document.getElementById("caption");if(0<document.querySelectorAll(".messageBubble img").length)for(var t=0;t<document.querySelectorAll(".messageBubble img").length;t++)document.querySelectorAll(".messageBubble img")[t].addEventListener("click",function(t){t.stopPropagation(),t.stopImmediatePropagation(),e.style.display="block",n.src=this.src,i.innerHTML=this.alt});document.getElementsByClassName("closeImagePreview")[0].onclick=function(){e.style.display="none"}},tt.prototype.isMobile=function(){try{return/iphone|ipod|android|blackberry|fennec/.test(S.userAgent.toLowerCase())||window.screen.width<=480}catch(t){return!1}},tt.prototype.setCollapsedModeStyles=function(){Y(".kore-chat-window").css({left:Y("body").width()-480,width:"480px"})},tt.prototype.setLocalStoreItem=function(t,e){var n=this.getStoreTypeByKey(t);return window[n].setItem(t,e)},tt.prototype.getLocalStoreItem=function(t){var e=this.getStoreTypeByKey(t);return window[e].getItem(t)},tt.prototype.removeLocalStoreItem=function(t){var e=this.getStoreTypeByKey(t);return window[e].removeItem(t)},tt.prototype.getStoreTypeByKey=function(t){var e="localStorage";return e="kr-cw-uid"===t?this.config.multiPageApp.chatWindowStateStore:e},tt.prototype.init=function(){var t=this;t.initi18n(),t.seti18n(t.config&&t.config.i18n&&t.config.i18n.defaultLanguage||"en"),t.config&&t.config.sendFailedMessage&&t.config.sendFailedMessage.hasOwnProperty("MAX_RETRIES")&&(N.MAX_RETRIES=t.config.sendFailedMessage.MAX_RETRIES),(window.chatContainerConfig=t).config.botOptions.botInfo.name=t.config.botOptions.botInfo.name.escapeHTML(),t._botInfo=t.config.botOptions.botInfo,t.config.botOptions.botInfo={chatBot:t._botInfo.name,taskBotId:t._botInfo._id,customData:t._botInfo.customData,metaTags:t._botInfo.metaTags,tenanturl:t._botInfo.tenanturl};var e,n,i=t._botInfo.name;t.config.chatTitle=t.config.botMessages.connecting,t.config.multiPageApp&&t.config.multiPageApp.enable&&((n=!!(e=t.getLocalStoreItem("kr-cw-state")))&&t.getLocalStoreItem("kr-cw-uid")&&(t.config.botOptions.userIdentity=I=t.getLocalStoreItem("kr-cw-uid")),t.config.botOptions.maintainContext=n),t.config.userAgentIE=-1!==S.userAgent.indexOf("Trident/"),t.isMobile()&&(t.config.isSendButton=!0),t.config.ttsInterface=t.config.ttsInterface||"webapi",t.loadHistory=t.config.loadHistory||!1,t.historyLoading=!!t.loadHistory,t.config.botOptions.loadHistory=t.config.loadHistory,t.config.botOptions.chatHistory=t.config.chatHistory,t.config.botOptions.handleError=t.config.handleError,t.config.botOptions.googleMapsAPIKey=t.config.googleMapsAPIKey,t.config.isTTSEnabled&&(t.config.isSpeechEnabled||t.config.allowGoogleSpeech)&&t.config.autoEnableSpeechAndTTS&&(t.isTTSOn=!0,setTimeout(function(){Y(".ttspeakerDiv").removeClass("ttsOff")},350));var a=Y(t.getChatTemplate()).tmpl(t.config);t.config.chatContainer=a,t.updatei18nDirection(),t.config.chatTitle=i,t.config.minimizeMode?(a.addClass("minimize"),a.find(".minimized-title").html("Talk to "+t.config.chatTitle),t.skipedInit=!0,t.config.multiPageApp&&t.config.multiPageApp.enable&&n&&setTimeout(function(){"open"===e?Y(".kore-chat-window .minimized .messages").trigger("click"):"minimized"===e&&(Y(".kore-chat-window .minimized .messages").trigger("click"),Y(".kore-chat-window button.minimize-btn").trigger("click"))},500)):(t.bot.init(t.config.botOptions,t.config.messageHistoryLimit),t.config.multiPageApp&&t.config.multiPageApp.enable&&(t.setLocalStoreItem("kr-cw-state","open"),t.setLocalStoreItem("kr-cw-uid",t.config.botOptions.userIdentity),setTimeout(function(){"minimized"===e&&Y(".kore-chat-window button.minimize-btn").trigger("click")},500))),t.config.allowLocation&&t.bot.fetchUserLocation(),t.render(a),t.unfreezeUIOnHistoryLoadingFail.call(t)},tt.prototype.initi18n=function(){var t=this;t.i18n={selectedLanguage:"en",rtlLanguages:[],langFiles:{en:{message:"Message...",connecting:"Connecting...",reconnecting:"Reconnecting...",entertosend:"Press enter to send",endofchat:"End of chat history",loadinghistory:"Loading chat history..",sendText:"Send",closeText:"Close",expandText:"Expand",minimizeText:"Minimize",reconnectText:"Reconnect",attachmentText:"Attachment"}}},t.config&&t.config.i18n&&t.config.i18n.languageStrings&&(t.i18n.langFiles=$(t.i18n.langFiles,t.config.i18n.languageStrings)),t.config&&t.config.i18n&&t.config.i18n.rtlLanguages&&(t.i18n.rtlLanguages=$(t.i18n.rtlLanguages,t.config.i18n.rtlLanguages))},tt.prototype.seti18n=function(t){this.i18n.selectedLanguage=t,this.config.botMessages=f=this.i18n.langFiles[this.i18n.selectedLanguage],f.availableLanguages=this.config.i18n&&this.config.i18n.availableLanguages||!1,f.selectedLanguage=this.i18n.selectedLanguage,this.config.chatContainer&&((t=this.config.chatContainer).find(".endChatContainerText").html(f.endofchat),t.find(".close-btn").attr("title",f.closeText),t.find(".expand-btn").attr("title",f.expandText),t.find(".minimize-btn").attr("title",f.minimizeText),t.find(".reload-btn").attr("title",f.reconnectText),t.find(".sdkAttachment.attachmentBtn").attr("title",f.attachmentText),t.find(".chatInputBox").attr("placeholder",f.message),t.find(".sendButton").html(f.sendText),t.find(".chatSendMsg").html(f.entertosend))},tt.prototype.updatei18nDirection=function(){-1<this.i18n.rtlLanguages.indexOf(this.i18n.selectedLanguage)?this.config.chatContainer.attr("dir","rtl"):this.config.chatContainer.attr("dir","ltr")},tt.prototype.setPrivateVarToContext=function(t){t.messagesQueue=A,t.historyLoading=!1,t.loadHistory=!1,t.accessToken=void 0,t.bot=p,t.EVENTS=x,t.chatInitialize=W,t.botMessages=f,t.attachmentInfo=B,t._botInfo=h,t.customTemplateObj=G,t.helpers=K,t._pingTimer=void 0,t._pingTime=3e4},tt.prototype.destroy=function(){var t=this;Y(".kore-chat-overlay").hide(),t.bot.close(),t.config.minimizeMode||t.bot.destroy(),t.messagesQueue=[],t.config&&t.config.chatContainer&&(t.config.minimizeMode?(t.config.chatContainer.find(".kore-chat-header .header-title").html(t.config.botMessages.reconnecting),t.config.chatContainer.addClass("minimize"),t.skipedInit=!0):t.config.chatContainer.remove()),R&&R.stop(),t.isTTSOn=!1,L&&(L.close(),L=null)},tt.prototype.resetWindow=function(){this.config.chatContainer.find(".kore-chat-header .header-title").html(this.config.botMessages.reconnecting),this.bot.close(),this.config.botOptions.maintainContext=!1,this.setLocalStoreItem("kr-cw-uid",this.config.botOptions.userIdentity),this.bot.init(this.config.botOptions)},tt.prototype.bindEvents=function(){var d=this;d.bindCustomEvents();var f=d.config.chatContainer;f.draggable({handle:f.find(".kore-chat-header .header-title"),containment:"document"}).resizable({handles:"n, e, w, s",containment:"document",minWidth:480}),f.off("keyup",".chatInputBox").on("keyup",".chatInputBox",function(t){var e=Y(d.config.container).find(".kore-chat-footer");Y(d.config.container).find(".kore-chat-body").css("bottom",e.outerHeight()),d.prevComposeSelection=window.getSelection(),i=0<d.prevComposeSelection.rangeCount&&d.prevComposeSelection.getRangeAt(0),0<this.innerText.length?(f.find(".chatInputBoxPlaceholder").css("display","none"),f.find(".sendButton").removeClass("disabled")):(f.find(".chatInputBoxPlaceholder").css("display","block"),f.find(".sendButton").addClass("disabled"))}),f.on("click",".chatInputBoxPlaceholder",function(t){f.find(".chatInputBox").trigger("click"),f.find(".chatInputBox").trigger("focus")}),f.on("change",".lang-selector",function(t){t=Y(t.target).val();d.seti18n(t),d.updatei18nDirection()}),f.on("click",".chatInputBox",function(t){d.prevComposeSelection=window.getSelection(),i=0<d.prevComposeSelection.rangeCount&&d.prevComposeSelection.getRangeAt(0)}),f.on("blur",".chatInputBox",function(t){Z=0}),f.off("click",".botResponseAttachments").on("click",".botResponseAttachments",function(t){var e;"true"===Y(t.currentTarget).attr("download")?((e=document.createElement("a")).download=Y(t.currentTarget).find(".botuploadedFileName").text(),e.href=Y(this).attr("fileid"),e.click(),e.remove()):window.open(Y(this).attr("fileid"),"_blank")}),f.off("keydown",".chatInputBox").on("keydown",".chatInputBox",function(t){var e=Y(this),n=Y(d.config.container).find(".kore-chat-footer");Y(d.config.container).find(".kore-chat-body").css("bottom",n.outerHeight()),13===t.keyCode?""!=Y(".chatInputBox").text().trim()||d.attachmentInfo||d.attachmentInfo.fileId?t.shiftKey||(Y(".upldIndc").is(":visible")?alert("Uploading file, please wait..."):(Y(".recordingMicrophone").is(":visible")&&Y(".recordingMicrophone").trigger("click"),t.preventDefault(),d.sendMessage(e,d.attachmentInfo))):t.preventDefault():27===t.keyCode&&1<++Z&&(Z=0,Dt(),this.innerText="",Y(".attachment").empty(),v=0,setTimeout(function(){at(document.getElementsByClassName("chatInputBox"))},100))}),f.off("click",".sendButton").on("click",".sendButton",function(t){var e=Y(".chatInputBox");Y(".upldIndc").is(":visible")?alert("Uploading file, please wait..."):(Y(".recordingMicrophone").is(":visible")&&Y(".recordingMicrophone").trigger("click"),t.preventDefault(),d.sendMessage(e,d.attachmentInfo))}),f.off("click",".notRecordingMicrophone").on("click",".notRecordingMicrophone",function(t){"webkitSpeechRecognition"in window&&ut()?(R&&R.stop(),d.config.isSpeechEnabled&&function(){if(W.config.allowGoogleSpeech)lt?rt?lt.stop():(st="",lt.lang="en-US",lt.start()):ht();else{if(!C)return console.warn("Please provide speech socket url");Y.ajax({url:C+"asr/wss/start?email="+I,type:"post",headers:{Authorization:D||b},dataType:"json",success:function(t){_=t.link,ht()},error:function(t){console.log(t)}})}}()):window.alert("Your browser does not support Speech recognition")}),f.off("click",".recordingMicrophone").on("click",".recordingMicrophone",function(t){Dt(),setTimeout(function(){at(document.getElementsByClassName("chatInputBox"))},350)}),f.off("click",".attachmentBtn").on("click",".attachmentBtn",function(t){1!=v?Y(".upldIndc").is(":visible")?alert("Uploading file, please wait..."):Y("#captureAttachmnts").trigger("click"):alert("You can upload only one file")}),f.off("click",".removeAttachment").on("click",".removeAttachment",function(t){Y(this).parents(".msgCmpt").remove(),Y(".kore-chat-window").removeClass("kore-chat-attachment"),v=0,d.attachmentInfo={},Y(".sendButton").addClass("disabled"),document.getElementById("captureAttachmnts").value=""}),f.off("change","#captureAttachmnts").on("change","#captureAttachmnts",function(t){var e=Y("#captureAttachmnts").prop("files")[0];e&&e.size&&e.size>Q.file.limit.size?alert(Q.file.limit.msg):Mt(this,e)}),f.off("paste",".chatInputBox").on("paste",".chatInputBox",function(t){t.preventDefault();var e,n=document.getElementsByClassName("chatInputBox"),t=t.clipboardData||t.originalEvent&&t.originalEvent.clipboardData||window.clipboardData;t&&(e=d.helpers.nl2br(t.getData("text").escapeHTML(),!1))&&function(t,e){var n=t;sel=window.getSelection(),0<sel.rangeCount&&(range=sel.getRangeAt(0),range.deleteContents());{if(i=i||range){node=document.createElement("span"),i.insertNode(node);t=document.createElement("span");t.innerHTML=e,i.insertNode(t),i.setEndAfter(node),i.setStartAfter(node),i.collapse(!1),sel=window.getSelection(),sel.removeAllRanges(),sel.addRange(i);t=document.activeElement;return t&&"chatInputBox"==!t.className&&n.focus()}n.appendChild(html)}}(n,e),setTimeout(function(){at(n)},100)}),f.off("click",".sendChat").on("click",".sendChat",function(t){var e=Y(d.config.container).find(".kore-chat-footer");d.sendMessage(e.find(".chatInputBox"))}),f.off("click","li a").on("click","li a",function(t){t.preventDefault();var e,n=Y(this).attr("href"),i=Y(this).attr("target"),t=Y(event.currentTarget).closest("span.simpleMsg").attr("msgData")||"";if(t)try{e=JSON.parse(t)}catch(t){}if(e&&e.message&&e.message[0].component&&e.message[0].component.payload&&e.message[0].component.payload.formData)d.renderWebForm(e);else if("_self"===i)return void callListener("provideVal",{link:n});!0===d.config.allowIframe?((e=Y(d.getChatTemplate("iframe")).tmpl({msgData:e,helpers:d.helpers,link_url:url}))[0].onload=function(t){console.log(t)},nt(e[0],!0)):d.openExternalLink(n)}),f.off("click",".buttonTmplContentBox li,.listTmplContentChild .buyBtn,.viewMoreList .viewMore,.listItemPath,.quickReply,.carouselImageContent,.listRightContent,.checkboxBtn,.likeDislikeDiv,.buttonQuickReply").on("click",".buttonTmplContentBox li,.listTmplContentChild .buyBtn, .viewMoreList .viewMore,.listItemPath,.quickReply,.carouselImageContent,.listRightContent,.checkboxBtn,.likeDislikeDiv,.buttonQuickReply",function(t){t.preventDefault(),t.stopPropagation();var e,n,i,a=(a=Y(this).attr("type"))&&a.toLowerCase();if(t.currentTarget.classList&&0<t.currentTarget.classList.length&&"quickReply"===t.currentTarget.classList[0]&&(e=t.currentTarget.parentElement.parentElement,n=e.parentElement.parentElement.querySelectorAll(".quickreplyLeftIcon"),i=e.parentElement.parentElement.querySelectorAll(".quickreplyRightIcon"),setTimeout(function(){e.parentElement.parentElement.getElementsByClassName("user-account")[0].classList.remove("marginT50"),e.parentElement.parentElement.removeChild(n[0]),e.parentElement.parentElement.removeChild(i[0]),e.parentElement.removeChild(e)})),"postback"==a||"text"==a){Y(".chatInputBox").text(Y(this).attr("actual-value")||Y(this).attr("value"));var o=Y(this)[0]&&Y(this)[0].innerText?Y(this)[0].innerText.trim():Y(this)&&Y(this).attr("data-value")?Y(this).attr("data-value").trim():"";d.sendMessage(Y(".chatInputBox"),o)}else if("url"==a||"web_url"==a){if(void 0!==Y(this).attr("msgData")){try{s=JSON.parse(Y(this).attr("msgData"))}catch(t){}if(s&&s.message&&s.message[0].component&&(s.message[0].component.formData||s.message[0].component.payload&&s.message[0].component.payload.formData))return s.message[0].component.formData&&(s.message[0].component.payload.formData=s.message[0].component.formData),void d.renderWebForm(s)}var s=Y(this).attr("url");s.indexOf("http:")<0&&s.indexOf("https:")<0&&(s="http:////"+s),d.openExternalLink(s)}if(t.currentTarget.classList&&0<t.currentTarget.classList.length&&"likeDiv"===t.currentTarget.classList[1]&&(Y(".likeImg").addClass("hide"),Y(".likedImg").removeClass("hide"),Y(".likeDislikeDiv").addClass("dummy")),t.currentTarget.classList&&0<t.currentTarget.classList.length&&"disLikeDiv"===t.currentTarget.classList[1]&&(Y(".disLikeImg").addClass("hide"),Y(".disLikedImg").removeClass("hide"),Y(".likeDislikeDiv").addClass("dummy")),t.currentTarget.classList&&0<t.currentTarget.classList.length&&"checkboxBtn"===t.currentTarget.classList[0]){for(var r=Y(t.currentTarget.parentElement.parentElement).find(".checkInput:checked"),l=[],c=[],u=0;u<r.length;u++)l.push(Y(r[u]).attr("value")),c.push(Y(r[u]).attr("text"));Y(".chatInputBox").text(Y(this).attr("title")+": "+l.toString()),d.sendMessage(Y(".chatInputBox"),c.toString())}setTimeout(function(){f.find(".kore-chat-footer .chatInputBox").focus()},600)}),f.off("click",".close-btn").on("click",".close-btn",function(t){Y(".recordingMicrophone").trigger("click"),R&&R.stop(),d.isTTSOn=!1,d.destroy(),L&&(L.close(),L=null),d.config.multiPageApp&&d.config.multiPageApp.enable&&(d.removeLocalStoreItem("kr-cw-state"),d.removeLocalStoreItem("kr-cw-uid"),d.config.botOptions.maintainContext=!1)}),f.off("click",".minimize-btn").on("click",".minimize-btn",function(t){d.config.multiPageApp&&d.config.multiPageApp.enable&&d.setLocalStoreItem("kr-cw-state","minimized"),!0===d.minimized?(f.removeClass("minimize"),d.minimized=!1,d.expanded):(f.addClass("minimize"),!1===d.expanded&&f.hasClass("ui-draggable"),f.find(".minimized-title").html("Talk to "+d.config.chatTitle),(d.minimized=!0)===d.expanded&&Y(".kore-chat-overlay").hide()),Y(".recordingMicrophone").trigger("click"),R&&R.stop()}),f.off("click",".expand-btn").on("click",".expand-btn",function(t){0===Y(".kore-chat-overlay").length&&Y(d.config.container).append('<div class="kore-chat-overlay"></div>'),!0===d.expanded?(d.setCollapsedModeStyles(),Y(".kore-chat-overlay").hide(),Y(this).attr("title","Expand"),f.removeClass("expanded"),Y(".expand-btn-span").removeClass("fa-compress"),Y(".expand-btn-span").addClass("fa-expand"),d.expanded=!1,Y(".chat-container").scrollTop(Y(".chat-container")[0].scrollHeight)):(Y(".kore-chat-overlay").show(),Y(this).attr("title","Collapse"),f.addClass("expanded"),Y(".expand-btn-span").addClass("fa-compress"),Y(".expand-btn-span").removeClass("fa-expand"),d.expanded=!0);var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e);e=f.position().left+f.width();e>Y(window).width()&&f.css("left",f.position().left-(e-Y(window).width()+10)+"px"),d.chatPSObj&&d.chatPSObj.update&&d.chatPSObj.update()}),f.off("click",".retry").on("click",".retry",function(t){t=Y(t.target);f.find(".failed-text").remove(),f.find(".retry-icon").remove(),f.find(".retry-text").text("Retrying..."),N.messageId=t.closest(".fromCurrentUser").attr("id"),f.find(".reload-btn").trigger("click",{isReconnect:!0})}),window.KorePickers&&(t={chatWindowInstance:d,chatConfig:d.config},new KorePickers(t).init()),Y(document).on("keyup",function(t){27==t.keyCode&&(Y(".closeImagePreview").trigger("click"),Y(".closeElePreview").trigger("click"))}),f.off("click",".quickreplyLeftIcon").on("click",".quickreplyLeftIcon",function(t){Y(this).data("scrollTimeout")&&clearTimeout(Y(this).data("scrollTimeout"));var o={currentTarget:t.currentTarget,target:t.target};Y(this).data("scrollTimeout",setTimeout(function(){var t=o.currentTarget.parentElement.getElementsByClassName("buttonTmplContentChild");if(t.length)for(var e=o.target.parentElement.getElementsByClassName("quick_replies_btn_parent"),n=e[0].scrollLeft,i=0,a=0;a<t.length;a++)if(n<(i+=t[a].offsetWidth+10)){Y(e).animate({scrollLeft:n-t[a].offsetWidth-50},"slow",function(){e[0].parentElement.querySelectorAll(".quickreplyRightIcon")[0].classList.remove("hide"),e[0].scrollLeft<=0&&e[0].parentElement.querySelectorAll(".quickreplyLeftIcon")[0].classList.add("hide")});break}},300))}),f.off("click",".quickreplyRightIcon").on("click",".quickreplyRightIcon",function(t){Y(this).data("scrollTimeout")&&clearTimeout(Y(this).data("scrollTimeout"));var o={currentTarget:t.currentTarget,target:t.target};Y(this).data("scrollTimeout",setTimeout(function(){var t=o.currentTarget.parentElement.getElementsByClassName("buttonTmplContentChild");if(t.length)for(var e=o.target.parentElement.getElementsByClassName("quick_replies_btn_parent"),n=o.target.parentElement.offsetWidth,i=0,a=0;a<t.length;a++)if(i+=t[a].offsetWidth+10,n<i){Y(e).animate({scrollLeft:e[0].scrollLeft+t[a].offsetWidth+20},"slow",function(){e[0].parentElement.querySelectorAll(".quickreplyLeftIcon")[0].classList.remove("hide"),e[0].scrollLeft+n+10>=e[0].scrollWidth&&e[0].parentElement.querySelectorAll(".quickreplyRightIcon")[0].classList.add("hide")});break}},300))}),f.off("click",".minimized").on("click",".minimized,.minimized-title",function(t){d.config.multiPageApp&&d.config.multiPageApp.enable&&d.setLocalStoreItem("kr-cw-state","open"),f.removeClass("minimize"),d.minimized=!1,d.skipedInit&&(d.config.multiPageApp&&d.config.multiPageApp.enable&&d.setLocalStoreItem("kr-cw-uid",d.config.botOptions.userIdentity),p.init(d.config.botOptions,d.config.messageHistoryLimit),d.skipedInit=!1),!0===d.expanded&&Y(".kore-chat-overlay").show(),document.createEvent("HTMLEvents").initEvent("resize",!0,!1),Y(".chat-container").animate({scrollTop:Y(".chat-container").prop("scrollHeight")},100)}),f.off("click",".reload-btn").on("click",".reload-btn",function(t,e){e&&e.isReconnect?d.config.botOptions.forceReconnecting=!0:d.config.botOptions.forceReconnecting=!1,Y(this).addClass("disabled").prop("disabled",!0),Y(".close-btn").addClass("disabled").prop("disabled",!0),setTimeout(function(){d.resetWindow()}),Y(".recordingMicrophone").trigger("click"),R&&R.stop(),d.stopSpeaking()}),f.off("click",".ttspeaker").on("click",".ttspeaker",function(t){d.config.isTTSEnabled&&(d.isTTSOn?(R&&R.stop(),At(),d.isTTSOn=!1,Y("#ttspeaker")[0].pause(),d.config.ttsInterface&&"webapi"===d.config.ttsInterface?window.speechSynthesis.pause():"awspolly"===d.config.ttsInterface&&!1===d.isTTSOn&&(gainNode.gain.value=0,Y(".ttspeakerDiv").addClass("ttsOff")),Y(".ttspeakerDiv").addClass("ttsOff")):(d.config.ttsInterface&&"webapi"===d.config.ttsInterface?z=d.speakWithWebAPI():d.config.ttsInterface&&"awspolly"===d.config.ttsInterface?gainNode.gain.value=1:z=bt(),d.isTTSOn=!0,Y(".ttspeakerDiv").removeClass("ttsOff")))});var t=document.querySelector(".droppable");d.makeDroppable(t,function(t){1!=v?(Mt(this,t[0]),1<t.length&&alert("You can upload only one file")):alert("You can upload only one file")}),d.bindSDKEvents()},tt.prototype.getBotMetaData=function(){var e=this;e.bot.getBotMetaData(function(t){e.sendWebhookOnConnectEvent()},function(t){e.sendWebhookOnConnectEvent()})},tt.prototype.sendWebhookOnConnectEvent=function(){var e=this;e.sendMessageViaWebHook({type:"event",val:"ON_CONNECT"},function(t){e.onBotReady(),e.handleWebHookResponse(t)},function(){e.onBotReady(),console.log("Kore:error sending on connect event")},{session:{new:!0}})},tt.prototype.bindSDKEvents=function(){var i=this;i.bot.on("open",function(t){i.onBotReady()}),i.bot.on("message",function(t){!0===i.popupOpened&&Y(".kore-auth-popup .close-popup").trigger("click");var e,n=JSON.parse(t.data);if("bot"===n.from&&"bot_response"===n.type){if(n&&n.message&&n.message.length){if(n.message[0]){if(n.message[0].cInfo||(n.message[0].cInfo={}),n.message[0].component&&!n.message[0].component.payload.text)try{n.message[0].component=JSON.parse(n.message[0].component.payload)}catch(t){n.message[0].component=n.message[0].component.payload}n.message[0].component&&n.message[0].component.payload&&n.message[0].component.payload.text&&(n.message[0].cInfo.body=n.message[0].component.payload.text),n.message[0].component&&n.message[0].component.payload&&(n.message[0].component.payload.videoUrl||n.message[0].component.payload.audioUrl)&&(n.message[0].cInfo.body=n.message[0].component.payload.text||"")}i.loadHistory&&i.historyLoading?A.push(n):i.config.supportDelayedMessages?i.pushTorenderMessagesQueue(n):i.renderMessage(n)}}else"self"===n.from&&"user_message"===n.type&&(e={},e=(t=n.message)&&t.attachments&&t.attachments[0]&&t.attachments[0].fileId?{type:"currentUser",message:[{type:"text",cInfo:{body:t.body,attachments:t.attachments},clientMessageId:n.id}],createdOn:n.id}:{type:"currentUser",message:[{type:"text",cInfo:{body:t.body},clientMessageId:n.id}],createdOn:n.id},i.renderMessage(e));"appInvalidNotification"===n.type&&setTimeout(function(){Y(".trainWarningDiv").addClass("showMsg")},2e3)}),i.bot.on("webhook_ready",function(t){i.config.loadHistory||i.getBotMetaData()}),i.bot.on("webhook_reconnected",function(t){i.onBotReady()}),i.bot.on("reconnected",t=>{i.config?.syncMessages?.onReconnect?.enable&&t?.reconnected&&i.bot.getHistory({forHistorySync:!0,limit:i.config?.syncMessages?.onReconnect?.batchSize})})},tt.prototype.bindCustomEvents=function(){this.config.chatContainer},tt.prototype.onBotReady=function(){var t=this.config.chatContainer;this.accessToken=this.config.botOptions.accessToken;var e,n;t.find(".kore-chat-footer .chatInputBox");t.find(".kore-chat-header .header-title").html(this.config.chatTitle).attr("title",this.config.chatTitle),t.find(".kore-chat-header .disabled").prop("disabled",!1).removeClass("disabled"),this.loadHistory||setTimeout(function(){Y(".chatInputBox").focus(),Y(".disableFooter").removeClass("disableFooter")}),N.messageId&&((e=t.find("#"+N.messageId)).find(".errorMsg").remove(),n=e.find(".messageBubble").text().trim(),t.find(".chatInputBox").text(n),e.remove(),this.sendMessage(Y(".chatInputBox")))},tt.prototype.bindIframeEvents=function(t){var e=this;t.on("click",".close-popup",function(){Y(this).closest(".kore-auth-popup").remove(),Y(".kore-auth-layover").remove(),e.popupOpened=!1}),t.find("iframe")[0].addEventListener("onload",function(){console.log(this)},!0)},tt.prototype.render=function(t){Y(this.config.container).append(t),"body"!==this.config.container&&(Y(this.config.container).addClass("pos-relative"),Y(this.config.chatContainer).addClass("pos-absolute")),this.setCollapsedModeStyles(),this.chatPSObj=new e(this.config.chatContainer.find(".chat-container").get(0),{suppressScrollX:!0}),this.bindEvents()},tt.prototype.sendMessage=function(t,e,n,i){var a,o,s,r,l,c,u=this;u.stopSpeaking(),""===t.text().trim()&&0==Y(".attachment").html().trim().length||(n&&n.message&&n.message.length&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&n.message[0].component.payload.ignoreCheckMark&&(a=n.message[0].component.payload.ignoreCheckMark),u.config.allowLocation&&u.bot.fetchUserLocation(),o=Y(u.config.chatContainer).find(".kore-chat-body"),s=Y(u.config.chatContainer).find(".kore-chat-footer"),r=(new Date).getTime(),N.messageId&&(r=N.messageId,N.messageId=null),l={},v=0,t.html(t.html().replaceAll("<br>","\n")),u.attachmentInfo&&Object.keys(u.attachmentInfo).length?(l={type:"currentUser",message:[{type:"text",cInfo:{body:t.text(),attachments:[u.attachmentInfo]},clientMessageId:r}],createdOn:r},Y(".attachment").html(""),Y(".kore-chat-window").removeClass("kore-chat-attachment"),document.getElementById("captureAttachmnts").value=""):(u.attachmentInfo={},l={type:"currentUser",message:[{type:"text",cInfo:{body:t.text()},clientMessageId:r}],createdOn:r}),(c={}).clientMessageId=r,0<Object.keys(u.attachmentInfo).length&&t.text().trim().length?(u.attachmentInfo.fileId=B.fileId,c.message={body:t.text().trim(),attachments:[u.attachmentInfo]}):0<Object.keys(u.attachmentInfo).length?(u.attachmentInfo.fileId=B.fileId,c.message={attachments:[u.attachmentInfo]}):c.message={body:t.text().trim().replace(/\s/g," ")},c.resourceid="/bot.message",e&&"string"==typeof e&&(c.message.renderMsg=e),n&&n.customdata&&(c.message.customdata=n.customdata),n&&n.metaTags&&(c.message.metaTags=n.metaTags),n&&(n.nlmeta||n.nlMeta)&&(c.message.nlMeta=n.nlmeta||n.nlMeta),Y('.kore-chat-window .chat-container [data-kr-msg-id="'+l.message[0].clientMessageId+'"]').length<1&&(u.config&&u.config&&u.config.botOptions&&u.config.botOptions.webhookConfig&&u.config.botOptions.webhookConfig.enable?u.sendMessageViaWebHook(t.text(),function(t){u.handleWebHookResponse(t)},function(t){setTimeout(function(){var t=Y('.kore-chat-window [data-kr-msg-id="'+r+'"]');t.find(".messageBubble").append('<div class="errorMsg hide"><span class="failed-text">Send Failed </span><div class="retry"><span class="retry-icon"></span><span class="retry-text">Retry</span></div></div>'),N.retryCount<N.MAX_RETRIES?(t.find(".retry").trigger("click"),N.retryCount++):(t.find(".errorMsg").removeClass("hide"),Y(".typingIndicatorContent").css("display","none"))},350)},u.attachmentInfo?{attachments:[u.attachmentInfo]}:null):u.bot.sendMessage(c,function(t){t&&t.message&&setTimeout(function(){var t=Y('.kore-chat-window [data-kr-msg-id="'+r+'"]');t.find(".messageBubble").append('<div class="errorMsg hide"><span class="failed-text">Send Failed </span><div class="retry"><span class="retry-icon"></span><span class="retry-text">Retry</span></div></div>'),N.retryCount<N.MAX_RETRIES?(t.find(".retry").trigger("click"),N.retryCount++):(t.find(".errorMsg").removeClass("hide"),Y(".typingIndicatorContent").css("display","none"))},350)})),u.attachmentInfo={},t.html(""),Y(".sendButton").addClass("disabled"),o.css("bottom",s.outerHeight()),u.resetPingMessage(),Y(".typingIndicatorContent").css("display","block"),u.typingIndicatorTimer&&clearTimeout(u.typingIndicatorTimer),u.typingIndicatorTimer=setTimeout(function(){Y(".typingIndicatorContent").css("display","none")},u.config.maxTypingIndicatorTime||1e4),e&&"string"==typeof e&&(l.message[0].cInfo.body=e),l.message[0].cInfo.ignoreCheckMark=a,i||u.renderMessage(l))},tt.prototype.handleWebHookResponse=function(t){t&&t.length&&t.forEach(function(t,e){setTimeout(function(){W.renderMessage(t)},1<=e?500:0)})},tt.prototype.sendMessageViaWebHook=function(t,e,n,i){var a;this.config.botOptions.webhookConfig.webhookURL?(a={session:{new:!1},message:{text:t},from:{id:this.config.botOptions.userIdentity,userInfo:{firstName:"",lastName:"",email:""}},to:{id:"Kore.ai",groupInfo:{id:"",name:""}}},this.config.botOptions.webhookConfig.useSDKChannelResponses&&(a.preferredChannelForResponse="rtm"),this.config.botOptions.webhookConfig.apiVersion&&2===this.config.botOptions.webhookConfig.apiVersion&&(a.message={type:"text",val:t}),"object"==typeof t&&(a.message=t),i&&i.session&&(a.session=i.session),i&&i.attachments&&(a.message.attachments=i.attachments),this.bot.sendMessageViaWebhook(a,e,n)):console.error("KORE:Please provide webhookURL in webhookConfig")},tt.prototype.closeConversationSession=function(){var t=(new Date).getTime(),e={};e.clientMessageId=t,e.resourceid="/bot.closeConversationSession",p.sendMessage(e,function(t){console.error("bot.closeConversationSession send failed sending")})},tt.prototype.renderMessage=function(u){var t=this,e="",n="",i="",a=t.helpers;u.createdOnTimemillis=new Date(u.createdOn).valueOf(),t.customTemplateObj.helpers=t.helpers,t.customTemplateObj.extension=n,graphLibGlob=t.config.graphLib||"d3","bot_response"===u.type?(N.retryCount=0,k=!1,setTimeout(function(){Y(".typingIndicator").css("background-image","url("+u.icon+")")},500),setTimeout(function(){k||(t.typingIndicatorTimer&&clearTimeout(t.typingIndicatorTimer),Y(".typingIndicatorContent").css("display","none"))},500)):k=!1;var o,s,r,l=Y(t.config.chatContainer).find(".chat-container");if(u.message&&u.message[0]&&u.message[0].cInfo&&u.message[0].cInfo.attachments&&(n=ot(u.message[0].cInfo.attachments[0].fileName)),u.message&&u.message[0]&&u.message[0].component&&u.message[0].component.payload&&u.message[0].component.payload.url&&(n=ot(u.message[0].component.payload.url),i=u.message[0].component.payload.name||u.message[0].component.payload.url.replace(/^.*[\\\/]/,""),u.message[0].component.payload.fileName&&(n=ot(i=u.message[0].component.payload.fileName))),u.message&&u.message[0]&&u.message[0].component&&u.message[0].component.payload&&u.message[0].component.payload.fileUrl&&(n=ot(u.message[0].component.payload.fileUrl),i=u.message[0].component.payload.fileUrl.replace(/^.*[\\\/]/,"")),""===(e=t.customTemplateObj.renderMessage(u))&&u&&u.message&&u.message[0]){if(u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"button"==u.message[0].component.payload.template_type)e=Y(t.getChatTemplate("templatebutton")).tmpl({msgData:u,helpers:a,extension:n});else{if(u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"wait_for_response"==u.message[0].component.payload.template_type)return k=!0,void Y(".typingIndicatorContent").css("display","block");u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"list"==u.message[0].component.payload.template_type?e=Y(t.getChatTemplate("templatelist")).tmpl({msgData:u,helpers:a,extension:n}):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"quick_replies"==u.message[0].component.payload.template_type?(e=Y(t.getChatTemplate("templatequickreply")).tmpl({msgData:u,helpers:a,extension:n}),setTimeout(function(){var t=document.createEvent("HTMLEvents");t.initEvent("resize",!0,!1),window.dispatchEvent(t)},150)):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"carousel"==u.message[0].component.payload.template_type?(e=Y(t.getChatTemplate("carouselTemplate")).tmpl({msgData:u,helpers:a,extension:n}),setTimeout(function(){Y(".carousel:last").addClass("carousel"+T),1<=Y(".carousel"+T).children().length&&(t=new PureJSCarousel({carousel:".carousel"+T,slide:".slide",oneByOne:!0}),Y(".carousel"+T).parent().show(),Y(".carousel"+T).attr("style","height: 100% !important"),y.push(t));var t=document.createEvent("HTMLEvents");t.initEvent("resize",!0,!1),window.dispatchEvent(t),T+=1,l.animate({scrollTop:l.prop("scrollHeight")},0)})):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&("image"==u.message[0].component.type||"audio"==u.message[0].component.type||"video"==u.message[0].component.type||"link"==u.message[0].component.type)?e=Y(t.getChatTemplate("templateAttachment")).tmpl({msgData:u,helpers:a,extension:n,extractedFileName:i}):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"table"==u.message[0].component.payload.template_type?(e=Y(t.getChatTemplate("tableChartTemplate")).tmpl({msgData:u,helpers:a,extension:n}),setTimeout(function(){for(var t=document.getElementsByClassName("accordionRow"),e=0;e<t.length;e++)t[e].onclick=function(){this.classList.toggle("open")};for(var n=document.getElementsByClassName("showMore"),e=0;e<n.length;e++)n[e].onclick=function(){var t=this.parentNode.parentElement;Y("#dialog").empty(),Y("#dialog").html(Y(t).find(".tablechartDiv").html()),Y(".hello").clone().appendTo(".goodbye");var e=document.getElementById("myPreviewModal");Y(".largePreviewContent").empty(),Y(t).find(".tablechartDiv").clone().appendTo(".largePreviewContent"),e.style.display="block",document.getElementsByClassName("closeElePreview")[0].onclick=function(){e.style.display="none",Y(".largePreviewContent").removeClass("addheight")}}},350)):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"mini_table"==u.message[0].component.payload.template_type?"horizontal"==u.message[0].component.payload.layout?(e=Y(t.getChatTemplate("miniTableHorizontalTemplate")).tmpl({msgData:u,helpers:a,extension:n}),setTimeout(function(){Y(".carousel:last").addClass("carousel"+T),1<Y(".carousel"+T).children().length&&(t=new PureJSCarousel({carousel:".carousel"+T,slide:".slide",oneByOne:!0}),Y(".carousel"+T).parent().show(),Y(".carousel"+T).attr("style","height: 100% !important"),y.push(t));var t=document.createEvent("HTMLEvents");t.initEvent("resize",!0,!1),window.dispatchEvent(t),T+=1,l.animate({scrollTop:l.prop("scrollHeight")},0)})):e=Y(t.getChatTemplate("miniTableChartTemplate")).tmpl({msgData:u,helpers:a,extension:n}):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"multi_select"==u.message[0].component.payload.template_type?e=Y(this.getChatTemplate("checkBoxesTemplate")).tmpl({msgData:u,helpers:a,extension:n}):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"like_dislike"==u.message[0].component.payload.template_type?e=Y(this.getChatTemplate("likeDislikeTemplate")).tmpl({msgData:u,helpers:a,extension:n}):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"piechart"==u.message[0].component.payload.template_type?(e=Y(t.getChatTemplate("pieChartTemplate")).tmpl({msgData:u,helpers:a,extension:n}),"google"===t.config.graphLib?setTimeout(function(){google.charts.load("current",{packages:["corechart"]}),google.charts.setOnLoadCallback(function(){var t=new google.visualization.DataTable;t.addColumn("string","Task"),t.addColumn("number","Hours per Day"),u.message[0].component.payload.elements&&u.message[0].component.payload.elements[0].displayValue&&t.addColumn({type:"string",role:"tooltip"});for(var e=[],n=u.message[0].component.payload.elements,i=0;i<n.length;i++){var a=[n[i].title+" \n"+n[i].value];a.push(parseFloat(n[i].value)),n[i].displayValue&&a.push(n[i].displayValue),e.push(a)}t.addRows(e);var o={chartArea:{left:"3%",top:"3%",height:"94%",width:"94%"},pieSliceTextStyle:{},colors:window.chartColors,legend:{textStyle:{color:"#b3bac8"}}};1===n.length&&(o.pieHole=.5,o.pieSliceTextStyle.color="black");u.message[0].component.payload.pie_type&&("donut"===u.message[0].component.payload.pie_type?(o.pieHole=.6,o.pieSliceTextStyle.color="black",o.legend.position="none"):"donut_legend"===u.message[0].component.payload.pie_type&&(o.pieHole=.6,o.pieSliceTextStyle.color="black"));var s={id:"piechart"+u.messageId,data:t,options:o,type:"piechart"};V.push(s);s=document.getElementById("piechart"+u.messageId);new google.visualization.PieChart(s).draw(t,o)})},150):"d3"===graphLibGlob&&(void 0===u.message[0].component.payload.pie_type&&(u.message[0].component.payload.pie_type="regular"),u.message[0].component.payload.pie_type&&(o={width:300,height:200,legendRectSize:10,legendSpacing:2.4},"regular"===u.message[0].component.payload.pie_type?setTimeout(function(){var t={id:"piechart"+u.messageId,data:u,type:"regular"};V.push(t),KoreGraphAdapter.drawD3Pie(u,o,"#piechart"+u.messageId,12)},150):"donut"===u.message[0].component.payload.pie_type?setTimeout(function(){var t={id:"piechart"+u.messageId,data:u,type:"donut"};V.push(t),KoreGraphAdapter.drawD3PieDonut(u,o,"#piechart"+u.messageId,12,"donut")},150):"donut_legend"===u.message[0].component.payload.pie_type&&setTimeout(function(){var t={id:"piechart"+u.messageId,data:u,type:"donut_legend"};V.push(t),KoreGraphAdapter.drawD3PieDonut(u,o,"#piechart"+u.messageId,12,"donut_legend")},150))),setTimeout(function(){Y(".chat-container").scrollTop(Y(".chat-container").prop("scrollHeight")),Bt()},200)):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"barchart"==u.message[0].component.payload.template_type?(e=Y(t.getChatTemplate("barchartTemplate")).tmpl({msgData:u,helpers:a,extension:n}),"google"===graphLibGlob?setTimeout(function(){google.charts.load("current",{packages:["corechart","bar"]}),google.charts.setOnLoadCallback(function(){var t=!1,e=new google.visualization.DataTable;e.addColumn("string","y");for(var n=0;n<u.message[0].component.payload.elements.length;n++){var i=u.message[0].component.payload.elements[n];e.addColumn("number",i.title),i.displayValues&&i.displayValues.length&&(e.addColumn({type:"string",role:"tooltip"}),t=!0)}for(var a=u.message[0].component.payload.elements.length,n=0;n<u.message[0].component.payload.X_axis.length;n++){var o=[];o.push(u.message[0].component.payload.X_axis[n]);for(var s=0;s<a;s++)o.push(parseFloat(u.message[0].component.payload.elements[s].values[n])),t&&o.push(u.message[0].component.payload.elements[s].displayValues[n]);e.addRow(o)}var r={chartArea:{height:"70%",width:"80%"},legend:{position:"top",alignment:"end",maxLines:3,textStyle:{color:"#b3bac8"}},hAxis:{gridlines:{color:"transparent"},textStyle:{color:"#b3bac8"}},vAxis:{gridlines:{color:"transparent"},textStyle:{color:"#b3bac8"},baselineColor:"transparent"},animation:{duration:500,easing:"out",startup:!0},bar:{groupWidth:"25%"},colors:window.chartColors};"vertical"!==u.message[0].component.payload.direction&&(r.bar.groupWidth="45%",r.hAxis.baselineColor="#b3bac8");u.message[0].component.payload.stacked&&(r.isStacked=!0,r.bar.groupWidth="25%");var l={id:"barchart"+u.messageId,direction:u.message[0].component.payload.direction,data:e,options:r,type:"barchart"};V.push(l);var c=document.getElementById("barchart"+u.messageId),l=null;l=new("vertical"===u.message[0].component.payload.direction?google.visualization.ColumnChart:google.visualization.BarChart)(c);l.draw(e,r)})},150):"d3"===graphLibGlob&&(o={outerWidth:350,outerHeight:300,innerHeight:200,legendRectSize:15,legendSpacing:4},void 0===u.message[0].component.payload.direction&&(u.message[0].component.payload.direction="horizontal"),"horizontal"!==u.message[0].component.payload.direction||u.message[0].component.payload.stacked?"vertical"===u.message[0].component.payload.direction&&u.message[0].component.payload.stacked?setTimeout(function(){o.outerWidth=350,o.innerWidth=270;var t={id:"barchart"+u.messageId,data:u,type:"stackedBarchart"};V.push(t),KoreGraphAdapter.drawD3barVerticalStackedChart(u,o,"#barchart"+u.messageId,12)},250):"horizontal"===u.message[0].component.payload.direction&&u.message[0].component.payload.stacked?setTimeout(function(){o.innerWidth=180;var t={id:"barchart"+u.messageId,data:u,type:"stackedBarchart"};V.push(t),KoreGraphAdapter.drawD3barStackedChart(u,o,"#barchart"+u.messageId,12)},250):"vertical"!==u.message[0].component.payload.direction||u.message[0].component.payload.stacked||setTimeout(function(){o.innerWidth=240;var t={id:"barchart"+u.messageId,data:u,type:"barchart"};V.push(t),KoreGraphAdapter.drawD3barChart(u,o,"#barchart"+u.messageId,12)},250):setTimeout(function(){o.innerWidth=180;var t={id:"Legend_barchart"+u.messageId,data:u,type:"barchart"};V.push(t),KoreGraphAdapter.drawD3barHorizontalbarChart(u,o,"#barchart"+u.messageId,12)},250)),setTimeout(function(){Y(".chat-container").scrollTop(Y(".chat-container").prop("scrollHeight")),Bt()},300)):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"linechart"==u.message[0].component.payload.template_type?(e=Y(t.getChatTemplate("linechartTemplate")).tmpl({msgData:u,helpers:a,extension:n}),"google"===graphLibGlob?setTimeout(function(){google.charts.load("current",{packages:["corechart","line"]}),google.charts.setOnLoadCallback(function(){var t=!1,e=new google.visualization.DataTable;e.addColumn("string","y");for(var n=0;n<u.message[0].component.payload.elements.length;n++){var i=u.message[0].component.payload.elements[n];e.addColumn("number",i.title),i.displayValues&&i.displayValues.length&&(e.addColumn({type:"string",role:"tooltip"}),t=!0)}for(var a=u.message[0].component.payload.elements.length,n=0;n<u.message[0].component.payload.X_axis.length;n++){var o=[];o.push(u.message[0].component.payload.X_axis[n]);for(var s=0;s<a;s++)o.push(parseFloat(u.message[0].component.payload.elements[s].values[n])),t&&o.push(u.message[0].component.payload.elements[s].displayValues[n]);e.addRow(o)}var r={curveType:"function",chartArea:{height:"70%",width:"80%"},legend:{position:"top",alignment:"end",maxLines:3,textStyle:{color:"#b3bac8"}},hAxis:{gridlines:{color:"transparent"},textStyle:{color:"#b3bac8"}},vAxis:{gridlines:{color:"transparent"},textStyle:{color:"#b3bac8"},baselineColor:"transparent"},lineWidth:3,animation:{duration:500,easing:"out",startup:!0},colors:window.chartColors},l={id:"linechart"+u.messageId,data:e,options:r,type:"linechart"};V.push(l);l=document.getElementById("linechart"+u.messageId);new google.visualization.LineChart(l).draw(e,r)})},150):"d3"===graphLibGlob&&setTimeout(function(){var t={outerWidth:380,outerHeight:350,innerWidth:230,innerHeight:250,legendRectSize:15,legendSpacing:4},e={id:"linechart"+u.messageId,data:u,type:"linechart"};V.push(e),KoreGraphAdapter.drawD3lineChartV2(u,t,"#linechart"+u.messageId,12)},250),setTimeout(function(){Y(".chat-container").scrollTop(Y(".chat-container").prop("scrollHeight")),Bt()},200)):e=u.message[0]&&u.message[0].component&&u.message[0].component.payload&&u.message[0].component.payload.formData&&"inline"===u.message[0].component.payload.formData.renderType?(u.renderType="inline",t.renderWebForm(u,!0)):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"live_agent"==u.message[0].component.payload.template_type?(u.fromAgent=!0,u.message[0].component&&u.message[0].component.payload&&(u.message[0].cInfo.body=u.message[0].component.payload.text||""),Y(t.getChatTemplate("message")).tmpl({msgData:u,helpers:a,extension:n})):u.message[0]&&u.message[0].component&&u.message[0].component.payload&&("daterange"==u.message[0].component.payload.template_type||"dateTemplate"==u.message[0].component.payload.template_type||u.message[0].cInfo.body&&u.message[0].cInfo.body.indexOf&&-1<u.message[0].cInfo.body.indexOf("clockPicker"))?(chatContainerConfig&&chatContainerConfig.pickerMainConfig&&(s={},s=chatContainerConfig.pickerMainConfig,"daterange"==u.message[0].component.payload.template_type&&(u.message[0].cInfo.body=u.message[0].component.payload.text_message,s[1].dateRangeConfig.format=u.message[0].component.payload.format,s[1].dateRangeConfig.startDate=u.message[0].component.payload.startDate,s[1].dateRangeConfig.endDate=u.message[0].component.payload.endDate,u.message[0].component.payload.title&&(s[1].daterangepicker.title=u.message[0].component.payload.title),u.message[0].component.payload.delimiter&&(s[1].dateRangeConfig.delimiter=u.message[0].component.payload.delimiter),u.fromHistory||KorePickers.prototype.showDateRangePicker(s)),console.log(JSON.stringify(u.message)),"dateTemplate"==u.message[0].component.payload.template_type&&(u.message[0].cInfo.body=u.message[0].component.payload.text_message,s[1].dateConfig.format=u.message[0].component.payload.format,s[1].dateConfig.startDate=u.message[0].component.payload.startDate,s[1].dateConfig.showdueDate=u.message[0].component.payload.showdueDate,s[1].dateConfig.endDate=u.message[0].component.payload.endDate,u.message[0].component.payload.title&&(s[1].datepicker.title=u.message[0].component.payload.title),u.fromHistory||KorePickers.prototype.showDatePicker(s)),-1<u.message[0].cInfo.body.indexOf("clockPicker")&&(u.fromHistory||KorePickers.prototype.showClockPicker(s))),Y(t.getChatTemplate("message")).tmpl({msgData:u,helpers:a,extension:n})):Y(t.getChatTemplate("message")).tmpl({msgData:u,helpers:a,extension:n,extractedFileName:i})}"bot_response"===u.type&&(u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"live_agent"==u.message[0].component.payload.template_type?Y(".kore-chat-window").addClass("agent-on-chat"):Y(".kore-chat-window").removeClass("agent-on-chat"))}if(l.find("li").attr("aria-live","off"),u&&u.message[0]&&u.message[0].component&&u.message[0].component.payload&&u.message[0].component.payload.sliderView&&!u.message[0].component.payload.fromHistory&&!u.fromHistory?bottomSliderAction("show",e):(Y('.kore-chat-window .chat-container [data-kr-msg-id="'+(u.messageId||u.message[0].clientMessageId)+'"]').length<1||"inline"===u.renderType)&&("bot_response"===u.type&&u.fromHistorySync?(r=[],(n=Y(".kore-chat-window .chat-container > [data-kr-msg-id]")).length?(n.each(function(t,e){r.push(parseInt(Y(e).attr("data-time")))}),0<(i=function(t,e){for(var n=0,i=t.length;n<i;){var a=n+i>>>1;t[a]<e?n=1+a:i=a}return n}(r,u.createdOnTimemillis))?(i=n[i])?Y(e).insertBefore(i):l.append(e):l.prepend(e)):l.append(e)):l.append(e)),t.handleImagePreview(),t.chatPSObj&&t.chatPSObj.update&&t.chatPSObj.update(),l.animate({scrollTop:l.prop("scrollHeight")},100),"bot_response"===u.type&&t.isTTSOn&&t.config.isTTSEnabled&&!t.minimized&&!t.historyLoading&&!u.fromHistorySync){if(u.message[0]&&u.message[0].component&&u.message[0].component.payload&&"live_agent"===u.message[0].component.payload.template_type&&u.message[0].component.payload.text)F=u.message[0].component.payload.text;else if(u.message[0]&&u.message[0].component&&"object"!=typeof u.message[0].component)F=u.message[0].component;else if(u.message[0]&&u.message[0].component&&"template"===u.message[0].component.type)F="";else try{F=u.message[0].component.payload.text?u.message[0].component.payload.text.replace(/\r?\n/g,". ."):"",F=(F=(F=a.checkMarkdowns(F)).replace("___","<hr/>")).replace("---","<hr/>")}catch(t){F=""}if(u.message[0].component&&u.message[0].component.payload&&u.message[0].component.payload.speech_hint&&(F=u.message[0].component.payload.speech_hint),t.config.ttsInterface&&"webapi"===t.config.ttsInterface)z=t.speakWithWebAPI(F);else if(t.config.ttsInterface&&"awspolly"===t.config.ttsInterface)window.speakTextWithAWSPolly?speakTextWithAWSPolly(F):console.warn("Please uncomment amazon polly files 'plugins/aws-sdk-2.668.0.min.js' and'plugins/kore-aws-polly.js' in index.html");else if(!z||z.readyState&&1!==z.readyState)try{z=bt()}catch(t){console.log(t)}else It(F)}},tt.prototype.pushTorenderMessagesQueue=function(t){this.renderMessagesQueue||(this.renderMessagesQueue=[]),this.renderMessagesQueue.push(t),this.renderEventLoop||this.startRenderEventLoop()},tt.prototype.startRenderEventLoop=function(){var t=this;t.msgRenderingProgress=!1,t.renderEventLoop=setInterval(function(){console.log("Running Event loop"),t.checkForMsgQueue()},500)},tt.prototype.checkForMsgQueue=function(){var t,e,n=this;n.renderMessagesQueue.length&&!n.msgRenderingProgress&&(e=0,(t=n.renderMessagesQueue.shift()).message&&t.message.length&&t.message[0]&&t.message[0].component&&t.message[0].component.payload&&t.message[0].component.payload.renderDelay&&(e=t.message[0].component.payload.renderDelay||0),n.msgRenderingProgress=!0,setTimeout(function(){n.renderMessage(t),n.msgRenderingProgress=!1},e)),n.renderMessagesQueue.length||n.msgRenderingProgress||!n.renderEventLoop||(clearTimeout(n.renderEventLoop),n.renderEventLoop=!1)},tt.prototype.formatMessages=function(t){Y(t).find("a").attr("target","_blank")},tt.prototype.openPopup=function(t){t=Y(this.getChatTemplate("popup")).tmpl({link_url:t});Y(this.config.container).append(t),this.popupOpened=!0,this.bindIframeEvents(Y(t))},tt.prototype.openExternalLink=function(t){var e=document.createElement("a");Y(this.config.container).append(e),e.href=t,e.target="_blank",e.rel="noopener noreferrer",e.click(),Y(e).remove()},tt.prototype.getChatTemplate=function(t){return"message"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                     {{if msgData.message}}                         {{each(key, msgItem) msgData.message}}                             {{if msgItem.cInfo && msgItem.type === "text"}}                                 <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId || msgItem.clientMessageId}" data-kr-msg-id="${msgData.messageId || msgItem.clientMessageId}"                                     class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} {{if msgData.icon}}with-icon{{/if}} {{if msgData.fromAgent}}from-agent{{/if}}">                                     {{if msgData.createdOn}}<div aria-hidden="true" aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                                     {{if msgData.icon}}<div aria-hidden="true"  aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})" title="User Avatar"></div> </div> {{/if}}                                     <div class="messageBubble" aria-live="assertive">                                        <div>                                             {{if msgData.type === "bot_response"}}                                                 {{if msgItem.component  && msgItem.component.type =="error"}}                                                     <span style="color:${msgItem.component.payload.color}">{{html helpers.convertMDtoHTML(msgItem.component.payload.text, "bot",msgItem)}} </span>                                                    {{else}}                                                     {{if msgItem.component && msgItem.component.type == "message" && msgItem.component.payload.fileUrl}}                                                      <div class="msgCmpt botResponseAttachments" fileid="${msgItem.component.payload.fileUrl}">                                                         <div class="uploadedFileIcon">                                                           {{if extension[extension.length-1]=="xlsx" || extension[extension.length-1]=="xls" || extension[extension.length-1]=="docx" || extension[extension.length-1]=="doc" || extension[extension.length-1]=="pdf" || extension[extension.length-1]=="ppsx" || extension[extension.length-1]=="pptx" || extension[extension.length-1]=="ppt" || extension[extension.length-1]=="zip" || extension[extension.length-1]=="rar"}}                                                             <span class="icon cf-icon icon-files_${extension[extension.length-1]}"></span>                                                           {{else extension[extension.length-1]}}                                                             <span class="icon cf-icon icon-files_other_doc"></span>                                                           {{/if}}                                                        </div>                                                         <div class="botuploadedFileName">${extractedFileName}</div>                                                     </div>                                                     {{else}}                                                     <span class="simpleMsg" {{if msgData}}msgData="${JSON.stringify(msgData)}" {{/if}}>{{html helpers.convertMDtoHTML(msgItem.cInfo.body, "bot",msgItem)}}</span>                                                     {{/if}}                                                     {{if msgItem.component && msgItem.component.payload && msgItem.component.payload.videoUrl}}                                                        <div class="videoEle"><video width="300" controls><source src="${msgItem.component.payload.videoUrl}" type="video/mp4"></video></div>                                                    {{/if}}                                                    {{if msgItem.component && msgItem.component.payload && msgItem.component.payload.audioUrl}}                                                        <div class="audioEle"><audio width="180" controls><source src="${msgItem.component.payload.audioUrl}"></audio></div>                                                    {{/if}}                                                {{/if}}                                             {{else}}                                                 {{if msgItem.cInfo.renderMsg && msgItem.cInfo.renderMsg !== ""}}                                                    {{html helpers.convertMDtoHTML(msgItem.cInfo.renderMsg, "user",msgItem)}}                                                 {{else}}                                                    {{html helpers.convertMDtoHTML(msgItem.cInfo.body, "user",msgItem)}}                                                 {{/if}}                                            {{/if}}                                         </div>                                        {{if msgItem.cInfo && msgItem.cInfo.emoji}}                                             <span class="emojione emojione-${msgItem.cInfo.emoji[0].code}">${msgItem.cInfo.emoji[0].title}</span>                                         {{/if}}                                         {{if msgItem.cInfo.attachments}}                                             <div class="msgCmpt attachments" fileid="${msgItem.cInfo.attachments[0].fileId}">                                                 <div class="uploadedFileIcon">                                                     {{if msgItem.cInfo.attachments[0].fileType == "image"}}                                                         <span class="icon cf-icon icon-photos_active"></span>                                                     {{else msgItem.cInfo.attachments[0].fileType == "audio"}}                                                        <span class="icon cf-icon icon-files_audio"></span>                                                     {{else msgItem.cInfo.attachments[0].fileType == "video"}}                                                         <span class="icon cf-icon icon-video_active"></span>                                                     {{else}}                                                         {{if extension[1]=="xlsx" || extension[1]=="xls" || extension[1]=="docx" || extension[1]=="doc" || extension[1]=="pdf" || extension[1]=="ppsx" || extension[1]=="pptx" || extension[1]=="ppt" || extension[1]=="zip" || extension[1]=="rar"}}                                                            <span class="icon cf-icon icon-files_${extension[1]}"></span>                                                         {{else extension[1]}}                                                            <span class="icon cf-icon icon-files_other_doc"></span>                                                         {{/if}}                                                    {{/if}}                                                </div>                                                 <div class="curUseruploadedFileName">${msgItem.cInfo.attachments[0].fileName}</div>                                             </div>                                         {{/if}}                                         {{if msgData.isError}}                                             <div class="errorMsg">Send Failed. Please resend.</div>                                         {{/if}}                                     </div>                                 </li>                             {{/if}}                         {{/each}}                     {{/if}}                 </scipt>':"popup"===t?'<script id="kore_popup_tmpl" type="text/x-jquery-tmpl">                     <div class="kore-auth-layover">                        <div class="kore-auth-popup">                             <div class="popup_controls"><span class="close-popup" title="Close">&times;</span></div>                             <iframe id="authIframe" src="${link_url}"></iframe>                         </div>                     </div>            <\/script>':"templatebutton"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                        class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} {{if msgData.icon}}with-icon{{/if}}">                         <div class="buttonTmplContent">                             {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                             {{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                             <ul class="buttonTmplContentBox">                                <li class="buttonTmplContentHeading">                                     {{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "user")}} {{/if}}                                     {{if msgData.message[0].cInfo && msgData.message[0].cInfo.emoji}}                                         <span class="emojione emojione-${msgData.message[0].cInfo.emoji[0].code}">${msgData.message[0].cInfo.emoji[0].title}</span>                                     {{/if}}                                 </li>                                {{each(key, msgItem) msgData.message[0].component.payload.buttons}}                                     <a>                                        <li {{if msgData}}msgData="${JSON.stringify(msgData)}"{{/if}} {{if msgItem.payload}}value="${msgItem.payload}"{{/if}} {{if msgItem.payload}}actual-value="${msgItem.payload}"{{/if}} {{if msgItem.url}}url="${msgItem.url}"{{/if}} class="buttonTmplContentChild" data-value="${msgItem.value}" type="${msgItem.type}">                                            ${msgItem.title}                                        </li>                                     </a>                                 {{/each}}                             </ul>                        </div>                    </li>                 {{/if}}             </scipt>':"templatelist"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                        class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon">                         <div class="listTmplContent">                             {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                             {{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                             <ul class="listTmplContentBox">                                 {{if msgData.message[0].component.payload.text || msgData.message[0].component.payload.heading}}                                     <li class="listTmplContentHeading">                                         {{if msgData.type === "bot_response" && msgData.message[0].component.payload.heading}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.heading, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "user")}} {{/if}}                                         {{if msgData.message[0].cInfo && msgData.message[0].cInfo.emoji}}                                             <span class="emojione emojione-${msgData.message[0].cInfo.emoji[0].code}">${msgData.message[0].cInfo.emoji[0].title}</span>                                         {{/if}}                                     </li>                                 {{/if}}                                 {{each(key, msgItem) msgData.message[0].component.payload.elements}}                                     {{if msgData.message[0].component.payload.buttons}}                                         {{if key<= 2 }}                                            <li class="listTmplContentChild">                                                 {{if msgItem.image_url}}                                                     <div class="listRightContent" {{if msgItem.default_action && msgItem.default_action.url}}url="${msgItem.default_action.url}"{{/if}} {{if msgItem.default_action && msgItem.default_action.title}}data-value="${msgItem.default_action.title}"{{/if}} {{if msgItem.default_action && msgItem.default_action.type}}type="${msgItem.default_action.type}"{{/if}} {{if msgItem.default_action && msgItem.default_action.payload}} value="${msgItem.default_action.payload}"{{/if}}>                                                         <img alt="image" src="${msgItem.image_url}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                                     </div>                                                 {{/if}}                                                 <div class="listLeftContent">                                                     <div class="listItemTitle">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.title, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.title, "user")}} {{/if}}</div>                                                     {{if msgItem.subtitle}}<div class="listItemSubtitle">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "user")}} {{/if}}</div>{{/if}}                                                     {{if msgItem.default_action && msgItem.default_action.url}}<div class="listItemPath" type="url" url="${msgItem.default_action.url}">${msgItem.default_action.url}</div>{{/if}}                                                     {{if msgItem.buttons}}                                                    <div>                                                         <span class="buyBtn" {{if msgItem.buttons[0].type}}type="${msgItem.buttons[0].type}"{{/if}} {{if msgItem.buttons[0].url}}url="${msgItem.buttons[0].url}"{{/if}} {{if msgItem.buttons[0].payload}}value="${msgItem.buttons[0].payload}"{{/if}}>{{if msgItem.buttons[0].title}}${msgItem.buttons[0].title}{{else}}Buy{{/if}}</span>                                                     </div>                                                     {{/if}}                                                </div>                                            </li>                                         {{/if}}                                    {{else}}                                         <li class="listTmplContentChild">                                             {{if msgItem.image_url}}                                                 <div class="listRightContent" {{if msgItem.default_action && msgItem.default_action.url}}url="${msgItem.default_action.url}"{{/if}} {{if msgItem.default_action && msgItem.default_action.title}}data-value="${msgItem.default_action.title}"{{/if}} {{if msgItem.default_action && msgItem.default_action.type}}type="${msgItem.default_action.type}"{{/if}} {{if msgItem.default_action && msgItem.default_action.payload}} value="${msgItem.default_action.payload}"{{/if}}>                                                     <img alt="image" src="${msgItem.image_url}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';" />                                                 </div>                                             {{/if}}                                             <div class="listLeftContent">                                                 <div class="listItemTitle">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.title, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.title, "user")}} {{/if}}</div>                                                 {{if msgItem.subtitle}}<div class="listItemSubtitle">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "user")}} {{/if}}</div>{{/if}}                                                 {{if msgItem.default_action && msgItem.default_action.url}}<div class="listItemPath" type="url" url="${msgItem.default_action.url}">${msgItem.default_action.url}</div>{{/if}}                                                 {{if msgItem.buttons}}                                                <div>                                                     <span class="buyBtn" {{if msgItem.buttons[0].type}}type="${msgItem.buttons[0].type}"{{/if}} {{if msgItem.buttons[0].url}}url="${msgItem.buttons[0].url}"{{/if}} {{if msgItem.buttons[0].payload}}value="${msgItem.buttons[0].payload}"{{/if}}>{{if msgItem.buttons[0].title}}${msgItem.buttons[0].title}{{else}}Buy{{/if}}</span>                                                 </div>                                                 {{/if}}                                            </div>                                        </li>                                     {{/if}}                                 {{/each}}                                 </li>                                 {{if msgData.message[0].component.AlwaysShowGlobalButtons || (msgData.message[0].component.payload.elements.length > 3 && msgData.message[0].component.payload.buttons)}}                                <li class="viewMoreList">                                     <span class="viewMore" url="{{if msgData.message[0].component.payload.buttons[0].url}}${msgData.message[0].component.payload.buttons[0].url}{{/if}}" type="${msgData.message[0].component.payload.buttons[0].type}" value="{{if msgData.message[0].component.payload.buttons[0].payload}}${msgData.message[0].component.payload.buttons[0].payload}{{else}}${msgData.message[0].component.payload.buttons[0].title}{{/if}}">${msgData.message[0].component.payload.buttons[0].title}</span>                                 </li>                                 {{/if}}                            </ul>                         </div>                     </li>                 {{/if}}             </scipt>':"templatequickreply"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                        class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon quickReplies">                         <div class="buttonTmplContent">                             {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                             {{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar marginT50" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                             {{if msgData.message[0].component.payload.text}}                                 <div class="buttonTmplContentHeading quickReply">                                     {{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "user")}} {{/if}}                                     {{if msgData.message[0].cInfo && msgData.message[0].cInfo.emoji}}                                         <span class="emojione emojione-${msgData.message[0].cInfo.emoji[0].code}">${msgData.message[0].cInfo.emoji[0].title}</span>                                     {{/if}}                                 </div>                                {{/if}}                                 {{if msgData.message[0].component.payload.quick_replies && msgData.message[0].component.payload.quick_replies.length}}                                 <div class="fa fa-chevron-left quickreplyLeftIcon hide"></div><div class="fa fa-chevron-right quickreplyRightIcon"></div>                                    <div class="quick_replies_btn_parent"><div class="autoWidth">                                        {{each(key, msgItem) msgData.message[0].component.payload.quick_replies}}                                             <div class="buttonTmplContentChild quickReplyDiv"> <span {{if msgItem.payload}}value="${msgItem.payload}"{{/if}} class="quickReply {{if msgItem.image_url}}with-img{{/if}}" type="${msgItem.content_type}">                                                {{if msgItem.image_url}}<img src="${msgItem.image_url}">{{/if}} <span class="quickreplyText {{if msgItem.image_url}}with-img{{/if}}">${msgItem.title}</span></span>                                            </div>                                         {{/each}}                                     </div>                                </div>                            {{/if}}                         </div>                    </li>                 {{/if}}             </scipt>':"templateAttachment"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     {{each(key, msgItem) msgData.message}}                         {{if msgItem.component && msgItem.component.payload.url}}                             <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId || msgItem.clientMessageId}" data-kr-msg-id="${msgData.messageId || msgItem.clientMessageId}"                                class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} {{if msgData.icon}}with-icon{{/if}}">                                 {{if msgData.createdOn}}<div class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                                 {{if msgData.icon}}<div class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                                 <div class="messageBubble">                                    {{if msgItem.component.payload.url}}                                         <div class="msgCmpt botResponseAttachments"  download="${msgItem.component.payload.download}" fileid="${msgItem.component.payload.url}">                                             <div class="uploadedFileIcon">                                                 {{if msgItem.component.type == "image"}}                                                   <img class="image-size" src="${msgItem.component.payload.url}">                                                 {{else msgItem.component.type == "audio"}}                                                    <span class="icon cf-icon icon-files_audio"></span>                                                 {{else msgItem.component.type == "video"}}                                                     <span class="icon cf-icon icon-video_active"></span>                                                 {{else}}                                                     {{if extension[1]=="xlsx" || extension[1]=="xls" || extension[1]=="docx" || extension[1]=="doc" || extension[1]=="pdf" || extension[1]=="ppsx" || extension[1]=="pptx" || extension[1]=="ppt" || extension[1]=="zip" || extension[1]=="rar"}}                                                        <span class="icon cf-icon icon-files_${extension[1]}"></span>                                                     {{else extension[1]}}                                                        <span class="icon cf-icon icon-files_other_doc"></span>                                                     {{/if}}                                                {{/if}}                                            </div>                                             <div class="botuploadedFileName">${extractedFileName}</div>                                         </div>                                     {{/if}}                                 </div>                             </li>                         {{/if}}                     {{/each}}                 {{/if}}             </scipt>':"carouselTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                        class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon">                         {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                         {{if msgData.icon}}<div aria-live="off" class="profile-photo extraBottom"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                         {{if msgData.message[0].component.payload.text}}<div class="messageBubble tableChart">                            <span>{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}}</span>                        </div>{{/if}}                        <div class="carousel" id="carousel-one-by-one" style="height: 0px;">                            {{each(key, msgItem) msgData.message[0].component.payload.elements}}                                 <div class="slide">                                    {{if msgItem.image_url}}                                         <div class="carouselImageContent" {{if msgItem.default_action && msgItem.default_action.url}}url="${msgItem.default_action.url}"{{/if}} {{if msgItem.default_action && msgItem.default_action.title}}data-value="${msgItem.default_action.title}"{{/if}} {{if msgItem.default_action && msgItem.default_action.type}}type="${msgItem.default_action.type}"{{/if}} {{if msgItem.default_action && msgItem.default_action.payload}} value="${msgItem.default_action.payload}"{{/if}}>                                             <img alt="image" src="${msgItem.image_url}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                         </div>                                     {{/if}}                                     <div class="carouselTitleBox">                                         <p class="carouselTitle">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.title, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.title, "user")}} {{/if}}</p>                                         {{if msgItem.subtitle}}<p class="carouselDescription">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "user")}} {{/if}}</p>{{/if}}                                         {{if msgItem.default_action && msgItem.default_action.type === "web_url"}}<div class="listItemPath carouselDefaultAction" type="url" url="${msgItem.default_action.url}">${msgItem.default_action.url}</div>{{/if}}                                         {{if msgItem.buttons}}                                             {{each(key, msgBtn) msgItem.buttons}}                                                 <div {{if msgBtn.payload}}value="${msgBtn.payload}"{{/if}} {{if msgBtn.url}}url="${msgBtn.url}"{{/if}} class="listItemPath carouselButton" data-value="${msgBtn.value}" type="${msgBtn.type}">                                                    ${msgBtn.title}                                                </div>                                             {{/each}}                                         {{/if}}                                     </div>                                </div>                            {{/each}}                         </div>                    </li>                 {{/if}}            </scipt>':"pieChartTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                        class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon piechart">                         {{if msgData.createdOn}}<div class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                         {{if msgData.icon}}<div class="profile-photo extraBottom"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                         {{if msgData.message[0].component.payload.text}}<div class="messageBubble pieChart">                            <span>{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}}</span>                        </div>{{/if}}                        <div id="d3Pie">                        </div>                        <div class="piechartDiv">                            <div class="lineChartChildDiv" id="piechart${msgData.messageId}"></div>                        </div>                    </li>                 {{/if}}             </scipt>':"tableChartTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                        class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon tablechart">                         {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                         {{if msgData.icon}}<div aria-live="off" class="profile-photo extraBottom"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                         {{if msgData.message[0].component.payload.text}}<div class="messageBubble tableChart">                            <span>{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}}</span>                        </div>{{/if}}                        <div class="tablechartDiv {{if msgData.message[0].component.payload.table_design && msgData.message[0].component.payload.table_design == "regular"}}regular{{else}}hide{{/if}}">                            <div style="overflow-x:auto; padding: 0 8px;">                                <table cellspacing="0" cellpadding="0">                                    <tr class="headerTitle">                                        {{each(key, tableHeader) msgData.message[0].component.payload.columns}}                                             <th {{if tableHeader[1]}}style="text-align:${tableHeader[1]};"{{/if}}>${tableHeader[0]}</th>                                        {{/each}}                                     </tr>                                    {{each(key, tableRow) msgData.message[0].component.payload.elements}}                                         {{if tableRow.Values.length>1}}                                            <tr {{if key > 4}}class="hide"{{/if}}>                                                {{each(cellkey, cellValue) tableRow.Values}}                                                     <td  {{if cellkey === tableRow.Values.length-1}}colspan="2"{{/if}} class=" {{if key == 0}} addTopBorder {{/if}}" {{if msgData.message[0].component.payload.columns[cellkey][1]}}style="text-align:${msgData.message[0].component.payload.columns[cellkey][1]};" {{/if}} title="${cellValue}">${cellValue}</td>                                                {{/each}}                                             </tr>                                        {{/if}}                                    {{/each}}                                 </table>                            </div>                            {{if msgData.message[0].component.payload.elements.length > 5 && msgData.message[0].component.payload.table_design && msgData.message[0].component.payload.table_design == "regular"}}<div class="showMore">Show more</div>{{/if}}                        </div>                         <div class="accordionTable {{if msgData.message[0].component.payload.table_design && msgData.message[0].component.payload.table_design == "regular"}}hide{{else}}responsive{{/if}}">                            {{each(key, tableRow) msgData.message[0].component.payload.elements}}                                 {{if key < 4}}                                    <div class="accordionRow {{if msgData.message[0].component.payload.isExpanded}}open{{/if}}">                                        {{each(cellkey, cellValue) tableRow.Values}}                                             {{if cellkey < 2}}                                                <div class="accordionCol">                                                    <div class="colTitle hideSdkEle">${msgData.message[0].component.payload.columns[cellkey][0]}</div>                                                    <div title="${cellValue}" class="colVal">${cellValue}</div>                                                </div>                                            {{else}}                                                <div class="accordionCol hideSdkEle">                                                    <div class="colTitle">${msgData.message[0].component.payload.columns[cellkey][0]}</div>                                                    <div title="${cellValue}" class="colVal">${cellValue}</div>                                                </div>                                            {{/if}}                                        {{/each}}                                         <span class="fa fa-caret-right tableBtn"></span>                                    </div>                                {{/if}}                            {{/each}}                             <div class="showMore">Show more</div>                        </div>                    </li>                 {{/if}}             </scipt>':"miniTableChartTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                        class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon tablechart">                         {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                         {{if msgData.icon}}<div aria-live="off" class="profile-photo extraBottom"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                         {{if msgData.message[0].component.payload.text}}<div class="messageBubble tableChart">                            <span>{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}}</span>                        </div>{{/if}}                        {{each(key, table) msgData.message[0].component.payload.elements}}                            <div class="minitableDiv">                                <div style="overflow-x:auto; padding: 0 8px;">                                    <table cellspacing="0" cellpadding="0">                                        <tr class="headerTitle">                                            {{each(key, tableHeader) table.primary}}                                                 <th {{if tableHeader[1]}}style="text-align:${tableHeader[1]};" {{/if}}>${tableHeader[0]}</th>                                            {{/each}}                                         </tr>                                        {{each(key, additional) table.additional}}                                             <tr>                                                {{each(cellkey, cellValue) additional}}                                                     <td  {{if cellkey === additional.length-1}}colspan="2"{{/if}}  {{if table.primary[cellkey][1]}}style="text-align:${table.primary[cellkey][1]};" {{/if}} title="${cellValue}">${cellValue}</td>                                                {{/each}}                                             </tr>                                        {{/each}}                                     </table>                                </div>                            </div>                        {{/each}}                    </li>                 {{/if}}             </scipt>':"miniTableHorizontalTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                 <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                    class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon tablechart">                     {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                     {{if msgData.icon}}<div aria-live="off" class="profile-photo extraBottom"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                     {{if msgData.message[0].component.payload.text}}<div class="messageBubble tableChart">                        <span>{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}}</span>                    </div>{{/if}}                    <div class="carousel" id="carousel-one-by-one" style="height: 0px;">                        {{each(key, table) msgData.message[0].component.payload.elements}}                            <div class="slide">                                <div class="minitableDiv">                                    <div style="overflow-x:auto; padding: 0 8px;">                                        <table cellspacing="0" cellpadding="0">                                            <tr class="headerTitle">                                                {{each(key, tableHeader) table.primary}}                                                     <th {{if tableHeader[1]}}style="text-align:${tableHeader[1]};" {{/if}}>${tableHeader[0]}</th>                                                {{/each}}                                             </tr>                                            {{each(key, additional) table.additional}}                                                 <tr>                                                    {{each(cellkey, cellValue) additional}}                                                         <td  {{if cellkey === additional.length-1}}colspan="2"{{/if}}  {{if table.primary[cellkey][1]}}style="text-align:${table.primary[cellkey][1]};" {{/if}} title="${cellValue}">${cellValue}</td>                                                    {{/each}}                                                 </tr>                                            {{/each}}                                         </table>                                    </div>                                </div>                            </div>                        {{/each}}                    </div>                </li>                 {{/if}}             </scipt>':"barchartTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                        class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon barchart">                         {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                         {{if msgData.icon}}<div aria-live="off" class="profile-photo extraBottom"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                         {{if msgData.message[0].component.payload.text}}<div class="messageBubble barchart">                            <span>{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}}</span>                        </div>{{/if}}                        <div class="barchartDiv">                            <div class="lineChartChildDiv" id="barchart${msgData.messageId}"></div>                        </div>                    </li>                 {{/if}}             </scipt>':"linechartTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">                 {{if msgData.message}}                     <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"                        class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon linechart">                         {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                         {{if msgData.icon}}<div aria-live="off" class="profile-photo extraBottom"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                         {{if msgData.message[0].component.payload.text}}<div class="messageBubble linechart">                            <span>{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}}</span>                        </div>{{/if}}                        <div class="linechartDiv">                            <div class="lineChartChildDiv" id="linechart${msgData.messageId}"></div>                        </div>                    </li>                 {{/if}}             </scipt>':"actionSheetTemplate"===t?'<script id="chat-window-listTemplate" type="text/x-jqury-tmpl">            <div class="list-template-sheet hide">             {{if msgData.message}}                <div class="sheetHeader">                 <span class="choose">${msgData.message[0].component.payload.heading}</span>                 <button class="close-button" title="Close"><img src="data:image/svg+xml;base64,           PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>               </div>               <div class="listTemplateContainer" >                    <div class="displayMonth">                        {{each(key, tab) tabs}}                             <span class="tabs" data-tabid="${tab}"><span class="btnBG">${tab}</span></span>                        {{/each}}                    </div>                      <ul class="displayListValues">                          {{each(key, msgItem) dataItems}}                                <li class="listViewTmplContentChild">                                      {{if msgItem.image_url}}                                          <div class="listViewRightContent" {{if msgItem.default_action && msgItem.default_action.url}}url="${msgItem.default_action.url}"{{/if}} {{if msgItem.default_action && msgItem.default_action.title}}data-value="${msgItem.default_action.title}"{{/if}} {{if msgItem.default_action && msgItem.default_action.type}}type="${msgItem.default_action.type}"{{/if}} {{if msgItem.default_action && msgItem.default_action.payload}} value="${msgItem.default_action.payload}"{{/if}}>                                             <img alt="image" src="${msgItem.image_url}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/>                                         </div>                                     {{/if}}                                         <div class="listViewLeftContent" data-url="${msgItem.default_action.url}" data-title="${msgItem.default_action.title}" data-value="${msgItem.default_action.title}">                                            <span class="titleDesc">                                               <div class="listViewItemTitle" title="${msgItem.title}">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.title, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.title, "user")}} {{/if}}</div>                                                 {{if msgItem.subtitle}}<div class="listViewItemSubtitle" title="${msgItem.subtitle}">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "user")}} {{/if}}</div>{{/if}}                                             </span>                                                {{if msgItem.value}}<div class="listViewItemValue" title="${msgItem.value}">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.value, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.value, "user")}} {{/if}}</div>{{/if}}                                         </div>                                </li>                            {{/each}}                        </ul>                </div>           {{/if}}       </div>     <\/script>':"iframe"===t?'<script id="chat_message_tmpl" type="text/x-jquery-tmpl">                     {{if link_url}}                       {{if (msgData && msgData.renderType ==="inline")}}                            <li class="inlineIframeContainer">                                 <div class="iframeBubble">                                         <div class="uiformComponent">                                        <div id="closeInlineModel" role="region" aria-live="polite" aria-atomic="true" aira-label="close Form" class="loading_form iframeLoader"></div>                                        <iframe id="inlineIframeModal" src="${link_url}"></iframe>                                         </div>                                </div>                            </li>                         {{else}}                            <iframe role="region" aria-live="polite" aria-atomic="true" aira-label="Loadig Form" id="iframeModal" src="${link_url}"></iframe>                         {{/if}}                    {{else}}                        <div role="region" aria-live="polite" aria-atomic="true" class="failedIframe">Failed to load iFrame</div>                    {{/if}}                <\/script>':'<script id="chat_window_tmpl" type="text/x-jqury-tmpl">                 <div class="kore-chat-window droppable liteTheme-one">                 <div class="kr-wiz-menu-chat hide defaultTheme-kore">                </div>\t                    <div class="minimized-title"></div>                     <div class="minimized"><span class="messages"></span></div>                     <div class="kore-chat-header">                         <div id="botHeaderTitle" aria-labelledby="botHeaderTitle" class="header-title" title="${chatTitle}">${chatTitle}</div>                         <div class="chat-box-controls">                             {{if botMessages.availableLanguages}}                                <select class="lang-selector" >                                    {{each(key, lang) botMessages.availableLanguages}}                                         <option  {{if botMessages.selectedLanguage===lang}}selected{{/if}} value="${lang}">${lang}</option>                                    {{/each}}                                </select>                            {{/if}}                            <button class="reload-btn" title="${botMessages.reconnectText}"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iV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EwLjgsNS4yNzM1NzY1OCBaIiBpZD0iUGF0aCI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="></button>                             <button class="minimize-btn" title="${botMessages.minimizeText}"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIycHgiIHZpZXdCb3g9IjAgMCAxNCAyIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA1Mi4zICg2NzI5NykgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+bWluaW1pemU8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iQXJ0Ym9hcmQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zMjYuMDAwMDAwLCAtMjMzLjAwMDAwMCkiIGZpbGw9IiM4QTk1OUYiPgogICAgICAgICAgICA8ZyBpZD0ibWluaW1pemUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMyNi4wMDAwMDAsIDIzMy4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBwb2ludHM9IjAgMCAxMy45Mzk5OTk2IDAgMTMuOTM5OTk5NiAxLjk5OTk5OTk0IDAgMS45OTk5OTk5NCI+PC9wb2x5Z29uPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="></button>                             <button class="expand-btn" title="${botMessages.expandText}"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5leHBhbmQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iQXJ0Ym9hcmQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zMDUuMDAwMDAwLCAtMjUyLjAwMDAwMCkiIGZpbGw9IiM4QTk1OUYiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSJleHBhbmQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMwNS4wMDAwMDAsIDI1Mi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xLjg2NjY2NjY3LDkuMzMzMzMzMzMgTDAsOS4zMzMzMzMzMyBMMCwxNCBMNC42NjY2NjY2NywxNCBMNC42NjY2NjY2NywxMi4xMzMzMzMzIEwxLjg2NjY2NjY3LDEyLjEzMzMzMzMgTDEuODY2NjY2NjcsOS4zMzMzMzMzMyBaIE0wLDQuNjY2NjY2NjcgTDEuODY2NjY2NjcsNC42NjY2NjY2NyBMMS44NjY2NjY2NywxLjg2NjY2NjY3IEw0LjY2NjY2NjY3LDEuODY2NjY2NjcgTDQuNjY2NjY2NjcsMCBMMCwwIEwwLDQuNjY2NjY2NjcgWiBNMTIuMTMzMzMzMywxMi4xMzMzMzMzIEw5LjMzMzMzMzMzLDEyLjEzMzMzMzMgTDkuMzMzMzMzMzMsMTQgTDE0LDE0IEwxNCw5LjMzMzMzMzMzIEwxMi4xMzMzMzMzLDkuMzMzMzMzMzMgTDEyLjEzMzMzMzMsMTIuMTMzMzMzMyBaIE05LjMzMzMzMzMzLDAgTDkuMzMzMzMzMzMsMS44NjY2NjY2NyBMMTIuMTMzMzMzMywxLjg2NjY2NjY3IEwxMi4xMzMzMzMzLDQuNjY2NjY2NjcgTDE0LDQuNjY2NjY2NjcgTDE0LDAgTDkuMzMzMzMzMzMsMCBaIiBpZD0iU2hhcGUiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>                            <button class="close-btn" title="${botMessages.closeText}"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>                         </div>                     </div>                     <div class="kore-chat-header historyLoadingDiv">                         <div class="historyWarningTextDiv displayTable">                             <span><img class = "loadingHistory" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAAXNSR0IArs4c6QAAAYZJREFUOBGtVLFKA0EQfbMiiERQEgjpRQt/wULB/opIFCuJvb1iKdprbbASDaa4L9DCX7BQ7CVwQcEggph13t7t3RlivMKBsDsz701mZ9+eYNjaNyX0e9saDmCxZJv1mrQ6zxDcayxEqXyOxmo/TzN5B2fXDbxFT7D2VH9rgK3FeV3pM848cTnLirQ6e0q60lw1lx+11bziHD5Oi1tcZVfAkyIYOYRM3GF69gHvr4uwX8sY2AMFVDwIkA3srLcFnAFb9B2I3GJqchNbQTcDJ7uLsIqPz0s91koS6WKmMm+SIfojRL8WIIuF+QdAlBSpks+ZBEkA7gijOkgBumGeR80sMLzG1OcMilgep3wDseWUxyEWsTnzmMKUr51ILw3wForYy2AhhSlfO3FKjGO8xiKWxymfgw1THnXAaxxnzMd68ajQuLcAeE1UnA5+K+R1kgmuS/4/KdY3xbdgB0fe/XMVs49m/Zi4uBPPiN/Qibrj5qJHl12+GU/7WYTRoe+J0xFlMOZ78g1n4achujvX7QAAAABJRU5ErkJggg=="></span>                             <p class="headerTip warningTip">${botMessages.loadinghistory}</p>                         </div>                     </div>                     <div class="kore-chat-header trainWarningDiv">                         <div class="trainWarningTextDiv displayTable">                             <span class="exclamation-circle"><i class="fa fa-exclamation-circle" aria-hidden="true"></i></span>                             <p class="headerTip warningTip">Something went wrong.Please try again later.</p>                         </div>                     </div>                     <div role="log" aria-live="polite" aria-atomic="true" class="kore-chat-body">                         <div class="errorMsgBlock">                         </div>                         <ul class="chat-container"></ul>                     </div>                     <div class="typingIndicatorContent"><div class="typingIndicator"></div><div class="movingDots"></div></div>                     <div class="kore-chat-footer disableFooter"><div class="footerContainer pos-relative">                     {{if userAgentIE}}                     <div role="textbox" class="chatInputBox inputCursor" aria-label="Message" aria-label="Message" contenteditable="true" placeholder="${botMessages.message}"></div>                     {{else}}                     <div role="textbox" class="chatInputBox" contenteditable="true" placeholder="${botMessages.message}"></div>                     {{/if}}                 <div class="attachment"></div>                 {{if isTTSEnabled}}                     <div class="sdkFooterIcon ttspeakerDiv ttsOff">                         <button class="ttspeaker" title="Talk to speak">                             <span class="ttsSpeakerEnable"></span>                             <span class="ttsSpeakerDisable"></span>                             <span style="display:none;"><audio id="ttspeaker" controls="" autoplay="" name="media"><source src="" type="audio/wav"></audio></span>                        </button>                     </div>                 {{/if}}                 {{if isSpeechEnabled}}                <div class="sdkFooterIcon microphoneBtn">                     <button class="notRecordingMicrophone" title="Microphone On">                         <i class="microphone"></i>                     </button>                     <button class="recordingMicrophone" title="Microphone Off" >                         <i class="microphone"></i>                         <span class="recordingGif"></span>                     </button>                     <div id="textFromServer"></div>                 </div>                 {{/if}}                {{if showAttachment}}                 <div class="sdkFooterIcon">                     <button class="sdkAttachment attachmentBtn" title="${botMessages.attachmentText}">                         <i class="paperclip"></i>                     </button>                     <input type="file" name="Attachment" class="filety" id="captureAttachmnts">                 </div>                 {{/if}}                 {{if !(isSendButton)}}<div class="chatSendMsg">${botMessages.entertosend}</div>{{/if}}             </div>{{if isSendButton}}<div class="sendBtnCnt"><button class="sendButton disabled devendar" type="button"><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuMzM4NTQ0IDQuNzc5MkMtMC4wODIyNjIgNC45MzMyNSAtMC4xMTk4NzkgNS41MTM4MiAwLjI3NjkwNSA1LjcyMjA3TDUuNTIxNjQgOC40Nzg1Nkw4LjI3NTc5IDEzLjcyMjJDOC40ODQxMSAxNC4xMTg4IDkuMDY0MDEgMTQuMDgwMyA5LjIxODExIDEzLjY1OTdMMTMuOTY3NCAwLjY5NTMyQzE0LjExODYgMC4yODI0MzYgMTMuNzE3NyAtMC4xMTg1NzcgMTMuMzA0OCAwLjAzMjU4MjJMMC4zMzg1NDQgNC43NzkyWk0xLjc4OTI2IDUuMzUxMTJMMTEuNDYyNiAxLjgwNzA3TDUuODA2OTkgNy40NjI3MUwxLjc4OTI2IDUuMzUxMTJaTTYuNTM3NDkgOC4xOTMyTDEyLjE5MzEgMi41Mzc1Nkw4LjY1MTkzIDEyLjIxMzhMNi41Mzc0OSA4LjE5MzJaIiBmaWxsPSIjOUFBMEE2Ii8+Cjwvc3ZnPgo="></button></div>{{/if}}</div>                      <div id="myModal" class="modalImagePreview">                          <span class="closeImagePreview">&times;</span>                          <img class="modal-content-imagePreview" id="img01">                          <div id="caption"></div>                    </div>                    <div class="powred-by-info">                        <a href="https://kore.ai/" target="_blank" class="title">                            <span>Powered by</span>                            <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjYiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCA2NiAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI0LjI5MzQgMTQuMjc0MUMyMy43MTY1IDEzLjY5NTMgMjIuOTMzOCAxMy4zNjkyIDIyLjExNjkgMTMuMzY3NEMyMS4zIDEzLjM2NTYgMjAuNTE1OCAxMy42ODgzIDE5LjkzNjQgMTQuMjY0NUMyMC4zMjQyIDEzLjg4NDEgMjAuODQ2MSAxMy42NzE5IDIxLjM4OTEgMTMuNjczOUMyMS45MzIxIDEzLjY3NTggMjIuNDUyNCAxMy44OTE3IDIyLjgzNzUgMTQuMjc0OUMyMy4yMjI2IDE0LjY1OCAyMy40NDEzIDE1LjE3NzUgMjMuNDQ2MyAxNS43MjA5QzIzLjQ1MTMgMTYuMjY0MyAyMy4yNDIzIDE2Ljc4NzggMjIuODY0NCAxNy4xNzhMMjIuODYxNSAxNy4xODA4TDIyLjg0NzcgMTcuMTk1MkwyMi44MjUzIDE3LjIxNzFDMjIuMjQ3NCAxNy43OTc2IDIxLjQ2MjYgMTguMTI0NyAyMC42NDM3IDE4LjEyNjNDMTkuODI0OCAxOC4xMjc4IDE5LjAzODggMTcuODAzOCAxOC40NTg3IDE3LjIyNTRDMTcuODc4NSAxNi42NDcgMTcuNTUxNyAxNS44NjE3IDE3LjU1MDEgMTUuMDQyMkMxNy41NDg1IDE0LjIyMjYgMTcuODcyMyAxMy40MzYgMTguNDUwMyAxMi44NTU1QzE3LjY3OSAxMy42MjY0IDE3LjI0NTMgMTQuNjcyNCAxNy4yNDQ2IDE1Ljc2MzNDMTcuMjQ0IDE2Ljg1NDIgMTcuNjc2NCAxNy45MDA3IDE4LjQ0NjcgMTguNjcyNkMxOS4yMTcxIDE5Lj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vbG9yPSIjMDA5REFCIiBzdG9wLW9wYWNpdHk9IjAiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDA5REFCIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==">                        </a>                    </div>                    <div id="chatBodyModal" class="chatBodyModal animate-bottom">                    <span class="closeChatBodyModal" aira-label="Close Form" role="button" tabindex="0" aria-atomic="true"></span>                    <div id="closeInlineModel" class="loading_form iframeLoader"></div>                    <div id="chatBodyModalContent"></div>                    </div>                    <div id="myPreviewModal" class="modalImagePreview">                          <span class="closeElePreview">&times;</span>                          <div class="largePreviewContent"></div>                    </div>                    <div class="kr-wiz-content-chat defaultTheme-kore">                    </div>                </div>             <\/script>'},tt.prototype.historyLoadingComplete=function(){setTimeout(function(t){Y(".chatInputBox").focus(),Y(".disableFooter").removeClass("disableFooter"),t.historyLoading=!1,t.config&&t.config&&t.config.botOptions&&t.config.botOptions.webhookConfig&&t.config.botOptions.webhookConfig.enable&&t.getBotMetaData()},0,this)},tt.prototype.historySyncing=function(e,t,n){try{e.message[0].cInfo.body=JSON.parse(e.message[0].cInfo.body),e.message[0].cInfo.body&&e.message[0].cInfo.body.text&&(e.message[0].cInfo.body=e.message[0].cInfo.body.text),e.message[0].component=e.message[0].cInfo.body,"dropdown_template"===e.message[0].component.payload.template_type&&(e.message[0].component.payload.fromHistory=!0,e.message[0].component.selectedValue=t[1].messages[n+1].message[0].cInfo.body),"multi_select"!==e.message[0].component.payload.template_type&&"advanced_multi_select"!==e.message[0].component.payload.template_type||(e.message[0].component.payload.fromHistory=!0),"form_template"===e.message[0].component.payload.template_type&&(e.message[0].component.payload.fromHistory=!0),"tableList"===e.message[0].component.payload.template_type&&(e.message[0].component.payload.fromHistory=!0),"listView"===e.message[0].component.payload.template_type&&(e.message[0].component.payload.fromHistory=!0),e.message[0].component&&e.message[0].component.payload&&(e.message[0].component.payload.videoUrl||e.message[0].component.payload.audioUrl)&&(e.message[0].cInfo.body=""),"SYSTEM"==e.message[0].component.payload.template_type&&(e.message[0].cInfo.body=e.message[0].component.payload.text||""),this.renderMessage(e)}catch(t){this.renderMessage(e)}},tt.prototype.chatHistory=function(i){var a=this;"historysync"===i[2]?i&&i[1]&&0<i[1].messages.length&&i[1].messages.forEach(function(t,e){setTimeout(function(){"outgoing"!==t.type&&"bot_response"!==t.type||(t.fromHistorySync=!0,a.historySyncing(t,i,e))},100*e)}):a.loadHistory&&(a.historyLoading=!0,i&&i[1]&&0<i[1].messages.length?(Y(".chat-container").hide(),Y(".historyLoadingDiv").addClass("showMsg"),i[1].messages.forEach(function(e,n){e.fromHistory=!0,setTimeout(function(t){t.filter(function(t){return t.messageId===e.messageId}).length||a.historySyncing(e,i,n),n===i[1].messages.length-1&&setTimeout(function(n){Y(".chat-container").show(),Y(".chat-container").animate({scrollTop:Y(".chat-container").prop("scrollHeight")},2500),Y(".historyLoadingDiv").removeClass("showMsg"),Y(".chat-container").append("<div class='endChatContainer'><span class='endChatContainerText'>"+f.endofchat+"</span></div>"),n.length?n.forEach(function(t,e){a.renderMessage(t),n.length-1===e&&(n=[],a.historyLoadingComplete())}):a.historyLoadingComplete()},500,t)},100*n,a.messagesQueue)})):a.historyLoadingComplete())},tt.prototype.applyVariableValue=function(t,e,n){try{var i="";"square"===e?e="12px 12px 2px 12px":"circle"===e&&(e="20px 20px 20px 20px"),(i="--sdk-chat-custom--"+n+"-"+t)&&document.documentElement.style.setProperty(i,e)}catch(t){console.log(t)}},tt.prototype.applySDKBranding=function(t){if(t&&t.activeTheme){for(var e in t)switch(e){case"generalAttributes":case"botMessage":case"userMessage":case"widgetHeader":case"widgetFooter":if(e&&"object"==typeof t[e])for(var n in t[e])this.applyVariableValue(n,t[e][n],e);break;case"widgetBody":if(e&&"object"==typeof t[e])for(var n in t[e])"backgroundImage"===n&&t[e]&&t[e].useBackgroundImage?Y(".kore-chat-body").css("background-image","url("+t[e].backgroundImage+")"):this.applyVariableValue(n,t[e][n],e);case"buttons":if(e&&"object"==typeof t[e])for(var n in t[e])this.applyVariableValue(n,t[e][n],e);break;case"digitalViews":var i;t&&t[e]&&t[e].panelTheme&&((i={theme_one:"defaultTheme-kore",theme_two:"darkTheme-kore",theme_three:"defaultTheme-kora",theme_four:"darkTheme-kora"})[t[e].panelTheme]&&(i=i[t[e].panelTheme],Y(".kr-wiz-menu-chat").addClass(i),Y(".kr-wiz-menu-chat").removeClass("defaultTheme-kore")))}Y(".kore-chat-window").addClass("customBranding-theme")}},this.applySDKBranding=function(t){W.applySDKBranding.call(W,t)},window.onbeforeunload=function(){W&&0<Y(W.config.chatContainer).length&&W.destroy()},this.addListener=function(t,e){g=g||{},t&&0<t.trim().length&&(g[t]||(g[t]=[]),"function"==typeof e&&g[t].push(e))},this.removeListener=function(t){g&&g[t]&&delete g[t]},this.callListener=function(t,e){if(g&&g[t])for(var n=0;n<g[t].length;n++)"function"==typeof g[t][n]&&g[t][n].call(this,e)},this.show=function(t){return!(0<Y("body").find(".kore-chat-window").length)&&(t.chatHistory=this.chatHistory,t.handleError=this.showError,t.widgetSDKInstace&&this.addWidgetEvents(t),(W=new tt(t)).customTemplateObj=new customTemplate(t,W),this)},this.addWidgetEvents=function(t){t&&(t.widgetSDKInstace.events.onPostback=function(t){Y(".chatInputBox").text(t.payload),W.sendMessage(Y(".chatInputBox"),t.utterance,t)})},this.setWidgetInstance=function(t){t&&(W.config.widgetSDKInstace=t,this.addWidgetEvents(W.config))},this.destroy=function(){W&&W.destroy&&(g={},W.destroy()),L&&(L.close(),L=null),window.removeEventListener("online",it),window.removeEventListener("offline",it)},this.initToken=function(t){b="bearer "+t.accessToken},this.hideError=function(){Y(".errorMsgBlock").removeClass("showError")},this.showError=function(e){try{(e=JSON.parse(e)).errors&&e.errors[0]&&(e.errors[0].tokenExpired?W&&W.config&&W.config.onJWTGrantError&&W.config.onJWTGrantError(e):(Y(".errorMsgBlock").text(e.errors[0].msg),Y(".errorMsgBlock").addClass("showError")))}catch(t){Y(".errorMsgBlock").text(e),Y(".errorMsgBlock").addClass("showError")}},this.botDetails=function(t,e){window.KoreAgentDesktop&&(t&&t.userInfo?KoreAgentDesktop(t.userInfo.userId,t):console.log("AgentDesktop initialization - did not receive authResponse"))},this.chatHistory=function(t){W.chatHistory.call(W,t)},this.closeConversationSession=function(){W&&W.closeConversationSession()};var st="",rt=!1,lt=null,ct="";function ut(){var t=window.chrome,e=window.navigator,n=e.vendor,i=-1<e.userAgent.indexOf("OPR"),a=-1<e.userAgent.indexOf("Edge");return e.userAgent.match("CriOS")||null!=t&&"Google Inc."===n&&!1==i&&!1==a}setTimeout(function(){W&&W.config&&W.config.allowGoogleSpeech&&(window.initGapi?initGapi():console.warn("Please uncomment Google Speech files('speech/app.js','speech/key.js' and 'client_api.js' in index.html"))},2e3),tt.prototype.unfreezeUIOnHistoryLoadingFail=function(){setTimeout(function(t){t.loadHistory&&(Y(".chatInputBox").focus(),Y(".disableFooter").removeClass("disableFooter"),t.historyLoading=!1)},2e4,this)},"webkitSpeechRecognition"in window&&ut()&&(lt=new window.webkitSpeechRecognition,st="",lt.continuous=!0,lt.interimResults=!0,lt.onstart=function(){rt=!(ct=""),Y(".recordingMicrophone").css("display","block"),Y(".notRecordingMicrophone").css("display","none")},lt.onerror=function(t){window.alert("Your browser does not support speech recognition"),console.log(t.error),Y(".recordingMicrophone").trigger("click"),Y(".recordingMicrophone").css("display","none"),Y(".notRecordingMicrophone").css("display","block")},lt.onend=function(){rt=!1,Y(".recordingMicrophone").trigger("click"),Y(".recordingMicrophone").css("display","none"),Y(".notRecordingMicrophone").css("display","block")},lt.onresult=function(t){for(var e,n=st="",i=t.resultIndex;i<t.results.length;++i)t.results[i].isFinal?st+=t.results[i][0].transcript:n+=t.results[i][0].transcript;st=pt(st=(e=st).replace(e.substr(0,1),function(t){return t.toUpperCase()})),n=pt(n),""!==st&&(ct+=st),rt&&(Y(".chatInputBox").html(ct+""+n),Y(".sendButton").removeClass("disabled")),setTimeout(function(){at(document.getElementsByClassName("chatInputBox")),document.getElementsByClassName("chatInputBox")[0].scrollTop=document.getElementsByClassName("chatInputBox")[0].scrollHeight},350)});var dt=/\n\n/g,ft=/\n/g;function pt(t){return t.replace(dt,"<p></p>").replace(ft,"<br>")}function ht(){w||(S.getUserMedia||(S.getUserMedia=S.getUserMedia||S.webkitGetUserMedia||S.mozGetUserMedia||S.msGetUserMedia),S.getUserMedia?(w=!0,S.getUserMedia({audio:!0},gt,function(t){w=!1,alert("Please enable the microphone permission for this page")})):(w=!1,alert("getUserMedia is not supported in this browser.")))}function mt(){if(S.getUserMedia){if(!o)return w=!1,void console.error("Recorder undefined");l&&yt();try{l=function(){window.ENABLE_MICROPHONE=!0,window.SPEECH_SERVER_SOCKET_URL=_;var t=window.SPEECH_SERVER_SOCKET_URL,e=I;window.WebSocket=window.WebSocket||window.MozWebSocket;e=new WebSocket(t+"&"+E+"&email="+e);return e.onopen=function(t){console.log("User connected"),o.record(),Y(".recordingMicrophone").css("display","block"),Y(".notRecordingMicrophone").css("display","none"),console.log("recording..."),ct="",c=setInterval(function(){o.export16kMono(function(t){vt(t),o.clear()},"audio/x-raw")},O)},e.onmessage=function(t){var e=t.data,t="";e instanceof Object&&!(e instanceof Blob)?console.log("Got object that is not a blob"):e instanceof Blob?console.log("Got Blob"):(e=JSON.parse(e),M&&0===e.status?(t=e.result.hypotheses[0].transcript,e.result.final&&(ct+=e.result.hypotheses[0].transcript+" ",t=""),console.log("Interm: ",t),console.log("final: ",ct),Y(".chatInputBox").html(ct+""+t),setTimeout(function(){at(document.getElementsByClassName("chatInputBox")),document.getElementsByClassName("chatInputBox")[0].scrollTop=document.getElementsByClassName("chatInputBox")[0].scrollHeight},350)):console.log("Server error : ",e.status))},e.onclose=function(t){""!==Y(".chatInputBox").text()&&W.config.autoEnableSpeechAndTTS&&window.chatContainerConfig.sendMessage(Y(".chatInputBox")),w=!1,console.log("Server is closed"),console.log(t),yt()},e.onerror=function(t){console.log("Error : ",t)},e}()}catch(t){w=!1,console.log(t),console.error("Web socket not supported in the browser")}}}function gt(t){M=!0,n=t,u||(t=window.AudioContext||window.webkitAudioContext,u=new t),a=u.createMediaStreamSource(n),d=u.createAnalyser(),a.connect(d),console.log("Mediastream created"),l&&(l.close(),l=null),o&&(o.stop(),o.clear(),o=null),o=new Recorder(a,{workerPath:j}),console.log("Recorder Initialized"),W.config.allowGoogleSpeech?o&&(o.record(),Y(".recordingMicrophone").css("display","block"),Y(".notRecordingMicrophone").css("display","none"),console.log("recording..."),c=setInterval(function(){o.export16kMono(function(t){console.log(new Date),W.config.allowGoogleSpeech?sendBlobToSpeech(t,"LINEAR16",16e3):vt(t),o.clear()},"audio/x-raw")},1e3)):mt(),setTimeout(function(){at(document.getElementsByClassName("chatInputBox"))},600)}function yt(){clearInterval(c),w=!1,Y(".recordingMicrophone")&&Y(".recordingMicrophone").css("display","none"),Y(".notRecordingMicrophone")&&Y(".notRecordingMicrophone").css("display","block"),null!==n&&n&&n.getTracks()[0].enabled&&n.getTracks()[0].stop(),l&&(l.close(),l=null),o&&(o.stop(),o.clear()),_=""}function vt(t){var e;l?1===(e=l.readyState)?t instanceof Blob?0<t.size&&l.send(t):(console.log(t),l.send(t)):(w=!1,console.error("Web Socket readyState != 1: ",e,"failed to send :"+t.type+", "+t.size),yt()):(w=!1,console.error("No web socket connection: failed to send: ",t))}function Dt(){""!==Y(".chatInputBox").text()&&W.config.autoEnableSpeechAndTTS&&window.chatContainerConfig.sendMessage(Y(".chatInputBox")),clearInterval(c),Y(".recordingMicrophone").css("display","none"),Y(".notRecordingMicrophone").css("display","block"),o?(o.stop(),M=!1,console.log("stopped recording.."),setTimeout(function(){l&&(l.close(),l=null)},1e3),o.export16kMono(function(t){vt(t),o.clear(),l&&l.close(),n.getTracks()[0].stop(),o.destroy(),w=!1},"audio/x-raw")):console.error("Recorder undefined"),rt&&(lt.stop(),rt=!1)}function bt(){if(!P)return console.warn("Please provide tts socket url"),!1;window.TTS_SOCKET_URL=P;var t=window.TTS_SOCKET_URL;window.WebSocket=window.WebSocket||window.MozWebSocket;t=new WebSocket(t);return t.binaryType="arraybuffer",t.onopen=function(t){It(F)},t.onmessage=function(t){F="","string"==typeof t.data||(t=t.data,W.isTTSOn&&L.decodeAudioData(t,function(t){if(t)try{R&&R.stop(),(R=L.createBufferSource()).buffer=t,R.connect(L.destination),R.start(0),R.addEventListener("ended",function(){setTimeout(function(){W.isTTSOn&&W.config.autoEnableSpeechAndTTS&&Y(".notRecordingMicrophone").trigger("click")},350)})}catch(t){}else console.error("failed to decode:","buffer null")},function(t){console.error("failed to decode:",t)}))},t.onclose=function(t){},t.onerror=function(t){console.log("Error : ",t)},t}function At(){z&&(z.close(),z=null)}function It(t){var e,n;z?1===(e=z.readyState)?(n=D||b,n={message:t,user:h.name,authorization:n},z.send(JSON.stringify(n))):(console.error("Web Socket readyState != 1: ",e),At()):console.error("No web socket connection: failed to send")}function Mt(i,a,t){var e,n,o={};a&&a.size&&a.size>Q.file.limit.size?alert(Q.file.limit.msg):(a&&t&&(a.name=t),a&&(a.name||t)&&(t=(e=t||a.name).split(".").pop().toLowerCase(),o.name=e,o.mediaName=function(t){t=t||"xxxxyx";return t=t.replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}(),o.fileType=e.split(".").pop().toLowerCase(),-1<Q.image.indexOf(o.fileType)?(o.type="image",o.uploadFn="acceptFileRecording"):-1<Q.video.indexOf(o.fileType)?(o.type="video",o.uploadFn="acceptVideoRecording"):(-1<Q.audio.indexOf(o.fileType)?o.type="audio":(o.type="attachment",o.componentSize=a.size),o.uploadFn="acceptFile"),H&&-1!==H.indexOf(t)?"audio"===o.type||"video"===o.type?((n=new FileReader).onload=function(t){var t=new Blob([t.target.result],{type:a.type}),e=(URL||webkitURL).createObjectURL(t),n=document.createElement(o.type);n.preload="metadata",0===n.readyState?(n.addEventListener("loadedmetadata",function(t){Math.round(t.target.duration);"audio"===o.type&&((URL||webkitURL).revokeObjectURL(e),_t(i,a,o))}),"video"===o.type&&n.addEventListener("loadeddata",function(t){o.resulttype=wt(n),(URL||webkitURL).revokeObjectURL(e),_t(i,a,o)}),n.src=e):((URL||webkitURL).revokeObjectURL(e),_t(i,a,o))},n.readAsArrayBuffer(a)):-1!==a.type.indexOf("image")?((n=new FileReader).onload=function(t){var t=new Blob([t.target.result],{type:a.type}),t=(URL||webkitURL).createObjectURL(t),e=new Image;e.src=t,e.onload=function(){o.resulttype=wt(e),_t(i,a,o)}},n.readAsArrayBuffer(a)):_t(i,a,o):alert("SDK not supported this type of file")))}function wt(t){var e=document.createElement("canvas");return e.height=180,e.width=320,e.getContext("2d").drawImage(t,0,0,e.width,e.height),e.toDataURL()}function Ct(t,e,o){var s,r,l=t,t=Tt(o);t.chunkUpload=e.size>U.CHUNK_SIZE,t.chunkSize=U.CHUNK_SIZE,t.file=e,t.chunkUpload?(function(t,e,n){var t=t,i={};i.meta={thumbNail:e.resulttype||void 0},i.values={componentId:e.mediaName,componentType:e.type,componentFileId:n,componentData:{filename:e.name}},e.componentSize&&(i.values.componentSize=e.componentSize);Nt(0,i)}(l,o),s=Y(".chatInputBox"),kt(o,s),s.uploader(t)):((r=new FileReader).onloadend=function(t){var e,n,i,a;t.target.readyState===FileReader.DONE&&(a=r.result.replace(/^.*;base64,/,""),r.result,o.resulttype=a,n=s,i=e=l,a=Tt(t=o),e=t.resulttype,St(0,t),a.data[a.fieldName]={fileName:t.name,data:e,type:"image/png"},a.data.thumbnail={fileName:t.name+"_thumb",data:e,type:"image/png"},n=Y(".chatInputBox"),kt(t,n),n.uploader(a))},r.readAsDataURL(e))}function _t(e,n,i){var t=W,a=D||b,o=s+"1.1/attachment/file/token";t.config&&t.config&&t.config.botOptions&&t.config.botOptions.webhookConfig&&t.config.botOptions.webhookConfig.enable&&(o=s+"attachments/"+t.config.botOptions.webhookConfig.streamId+"/"+t.config.botOptions.webhookConfig.channelType+"/token",a="bearer "+t.config.botOptions.webhookConfig.token),Y.ajax({type:"POST",url:o,dataType:"json",headers:{Authorization:a},success:function(t){r=t.fileToken,Ct(e,n,i)},error:function(t){W.config.botOptions._reconnecting=!0,_self.showError("Failed to upload file.Please try again"),t.responseJSON&&t.responseJSON.errors&&t.responseJSON.errors.length&&"401"===t.responseJSON.errors[0].httpStatus&&(setTimeout(function(){_self.hideError()},5e3),Y(".kore-chat-window .reload-btn").trigger("click")),console.log("Oops, something went horribly wrong")}})}function Tt(t){var e=W;return U.UPLOAD={FILE_ENDPOINT:s+"1.1/attachment/file",FILE_TOKEN_ENDPOINT:s+"1.1/attachment/file/token",FILE_CHUNK_ENDPOINT:s+"1.1/attachment/file/:fileID/chunk"},_accessToke="bearer "+W.accessToken,e.config&&e.config&&e.config.botOptions&&e.config.botOptions.webhookConfig&&e.config.botOptions.webhookConfig.enable&&(_accessToke="bearer "+e.config.botOptions.webhookConfig.token,U.UPLOAD={FILE_ENDPOINT:s+"attachments/file/"+e.config.botOptions.webhookConfig.streamId+"/"+e.config.botOptions.webhookConfig.channelType,FILE_TOKEN_ENDPOINT:s+"attachments/"+e.config.botOptions.webhookConfig.streamId+"/"+e.config.botOptions.webhookConfig.channelType+"/token",FILE_CHUNK_ENDPOINT:s+"attachments/"+e.config.botOptions.webhookConfig.streamId+"/"+e.config.botOptions.webhookConfig.channelType+"/token/:fileID/chunk"}),_uploadConfg={},_uploadConfg.url=U.UPLOAD.FILE_ENDPOINT.replace(":fileID",r),_uploadConfg.tokenUrl=U.UPLOAD.FILE_TOKEN_ENDPOINT,_uploadConfg.chunkUrl=U.UPLOAD.FILE_CHUNK_ENDPOINT.replace(":fileID",r),_uploadConfg.fieldName="file",_uploadConfg.data={fileExtension:t.fileType,fileContext:"workflows",thumbnailUpload:!1,filename:t.name},_uploadConfg.headers={Authorization:_accessToke},_uploadConfg}function kt(i,t){var a=this;(t=t||a.ele).on("success.ke.uploader",function(t){var e,n;e=a,n=i,(t=(t=t).params)&&t.fileId?n.mediaName&&(t=t.fileId,St(0,n,t)):(alert("Failed to upload content. Try again"),B={},Y(".attachment").html(""),Y(".sendButton").addClass("disabled"),v=0)}),t.on("error.ke.uploader",xt)}function xt(t,e,n){_recfileLisnr.onError({code:"UPLOAD_FAILED"}),t.removeCmpt(n)}function Nt(t,e){var n,i;(i=Y("<div/>").attr({class:"msgCmpt "+e.values.componentType+" "+e.values.componentId})).data("value",e.values),e.values.componentFileId||"contact"===e.values.componentType||"location"===e.values.componentType||"filelink"===e.values.componentType||"alert"===e.values.componentType||"email"===e.values.componentType||i.append('<div class="upldIndc"></div>'),"attachment"===e.values.componentType&&("xls"===(n=(e.values.componentDescription||e.values.componentData.filename).split(".").pop().toLowerCase())||"xlsx"===n?i.append('<div class="uploadedFileIcon"><span class="icon cf-icon icon-files_excel"></span></div>'):"docx"===n||"doc"===n?i.append('<div class="uploadedFileIcon"><span class="icon cf-icon icon-files_word"></span></div>'):"pdf"===n?i.append('<div class="uploadedFileIcon"><span class="icon cf-icon icon-files_pdf"></span></div>'):"ppsx"===n||"pptx"===n||"ppt"===n?i.append('<div class="uploadedFileIcon"><span class="icon cf-icon icon-files_ppt"></span></div>'):"zip"===n||"rar"===n?i.append('<div class="uploadedFileIcon"><span class="icon cf-icon icon-files_zip"></span></div>'):i.append('<div class="uploadedFileIcon"><span class="icon cf-icon icon-files_other_doc"></span></div>'),i.append('<div class="uploadedFileName">'+e.values.componentData.filename+"</div>")),"image"===e.values.componentType&&(i.append('<div class="uploadedFileIcon"><span class="icon cf-icon icon-photos_active"></span></div>'),i.append('<div class="uploadedFileName">'+e.values.componentData.filename+"</div>")),"audio"===e.values.componentType&&(i.append('<div class="uploadedFileIcon"><span class="icon cf-icon icon-files_audio"></span></div>'),i.append('<div class="uploadedFileName">'+e.values.componentData.filename+"</div>")),"video"===e.values.componentType&&(i.append('<div class="uploadedFileIcon"><span class="icon cf-icon icon-video_active"></span></div>'),i.append('<div class="uploadedFileName">'+e.values.componentData.filename+"</div>")),i.append('<button class="removeAttachment" title="Remove attachment" aria-label="Remove attachment">X</button>'),Y(".footerContainer").find(".attachment").html(i),Y(".chatInputBox").focus(),W.attachmentInfo.fileName=e.values.componentData.filename,W.attachmentInfo.fileType=e.values.componentType,Y(".sendButton").removeClass("disabled")}function St(t,e,n){var i={};i.meta={thumbNail:e.resulttype},i.values={componentId:e.mediaName,componentType:e.type,componentFileId:n,componentData:{filename:e.name}},Nt(0,i)}function Et(){this.boundary="--------MultipartData"+Math.random(),this._fields=[]}function jt(t,e){this.options=e,this.$element=t,(this.options.chunkUpload?function(t){var e=t,n=Ot();if(n.addEventListener("error",function(t){zt(e,t)},!1),n.addEventListener("load",function(t){200===t.target.status?(e.messageToken=JSON.parse(t.target.response).fileToken,e.totalChunks=Math.floor(e.options.file.size/e.options.chunkSize)+1,e.currChunk=0,e.options.chunkUrl=e.options.chunkUrl.replace(":token",e.messageToken),e.$element.parent().length&&Rt(e)):zt(e,t)},!1),n.withCredentials=!1,n.open("POST",t.options.tokenUrl),t.options.headers)for(var i in t.options.headers)n.setRequestHeader(i,t.options.headers[i]);n.send()}:Ft)(this)}function Ot(){return new t.net.HttpRequest}function Lt(t,e){Y(".upldIndc").is(":visible")&&(t.events.success.params=Y.parseJSON(e.target.response),B.fileId=t.events.success.params.fileId,Y(".sendButton").removeClass("disabled"),Y(".kore-chat-window").addClass("kore-chat-attachment"),Y(".chat-container").scrollTop(Y(".chat-container").prop("scrollHeight")),v=1,Y(".upldIndc").remove(),t.$element.trigger(t.events.success))}function zt(t,e){t.events.error.params=e,t.$element.trigger(t.events.error)}function Pt(t){var e=t,n=Ot(),i=new Et;if(n.addEventListener("load",function(t){200===t.target.status?(e.currChunk++,e.$element.parent().length&&(e.currChunk===e.totalChunks?function(t){var e=t,n=Ot(),i=new Et;if(n.addEventListener("load",function(t){200===t.target.status?e.$element.parent().length&&Lt(e,t):zt(e,t)},!1),n.addEventListener("error",function(t){zt(e,t)},!1),n.withCredentials=!1,n.open("PUT",t.options.chunkUrl.replace(/\/chunk/,"")),t.options.headers)for(var a in t.options.headers)n.setRequestHeader(a,t.options.headers[a]);if(i.append("totalChunks",e.totalChunks),i.append("messageToken",e.messageToken),t.options.data)for(var o in t.options.data)i.append(o,t.options.data[o]);n.setRequestHeader("Content-Type","multipart/form-data; boundary="+i.boundary),n.send(i.toString())}:Rt)(e)):zt(e,t)},!1),n.addEventListener("error",function(t){zt(e,t)},!1),n.withCredentials=!1,n.open("POST",t.options.chunkUrl),t.options.headers)for(var a in t.options.headers)n.setRequestHeader(a,t.options.headers[a]);i.append("chunkNo",e.currChunk),i.append("messageToken",e.messageToken),i.append("chunk",{data:e.chunk,fileName:e.options.file.name}),n.setRequestHeader("Content-Type","multipart/form-data; boundary="+i.boundary),n.send(i.toString())}function Rt(t){var n=t,e=n.options.file,i=n.options.chunkSize*n.currChunk,a=n.currChunk===n.totalChunks-1?e.size:(n.currChunk+1)*n.options.chunkSize,t=new FileReader,a=e.slice(i,a);t.onloadend=function(t){var e;t.target.readyState===FileReader.DONE&&n.$element.parent().length?(e=(e=(e=t.target.result).replace(/^.*;base64,/,"")).replace("data:application/octet-stream;base64,",""),n.chunk=e,n.currChunk<n.totalChunks&&n.$element.parent().length&&Pt(n)):zt(n,t)},t.readAsDataURL(a)}function Ft(t){var e=t;if(_conc=Ot(),_mdat=new Et,_conc.upload&&_conc.upload.addEventListener&&_conc.upload.addEventListener("progress",function(t){},!1),_conc.addEventListener("load",function(t){e.$element.parent().length&&Lt(e,t)},!1),_conc.addEventListener("error",function(t){zt(e,t)},!1),_conc.withCredentials=!1,_conc.open("POST",t.options.url),t.options.headers)for(var n in t.options.headers)_conc.setRequestHeader(n,t.options.headers[n]);if(t.options.data)for(var i in t.options.data)_mdat.append(i,t.options.data[i]);_conc.setRequestHeader("Content-Type","multipart/form-data; boundary="+_mdat.boundary),_conc.send(_mdat.toString())}function Ut(){var t=document.getElementById("myPreviewModal");Y(".largePreviewContent").empty(),Y(".largePreviewContent").addClass("addheight"),Y(".largePreviewContent").html("<div class='chartContainerDiv'></div>"),t.style.display="block",document.getElementsByClassName("closeElePreview")[0].onclick=function(){t.style.display="none",Y(".largePreviewContent").removeClass("addheight")}}function Bt(){Y(".piechartDiv,.barchartDiv, .linechartDiv").click(function(t){for(var e,n=t.currentTarget.firstElementChild.getAttribute("id"),i=null,a=null,o=null,s=0;s<V.length;s++)if(V[s].id==n){a=jQuery.extend({},V[s]),Ut();break}if("d3"===graphLibGlob)Ut(),void 0===a.data.message[0].component.payload.pie_type&&(a.data.message[0].component.payload.pie_type="regular"),"linechart"!==a.data.message[0].component.payload.template_type&&"piechart"!==a.data.message[0].component.payload.template_type?(e={outerWidth:650,outerHeight:460,innerWidth:450,innerHeight:350,legendRectSize:15,legendSpacing:4},Y(".chartContainerDiv").html(""),"barchart"===a.data.message[0].component.payload.template_type&&"vertical"===a.data.message[0].component.payload.direction&&"barchart"===a.type?(e.innerWidth=500,KoreGraphAdapter.drawD3barChart(a.data,e,".chartContainerDiv",12)):"barchart"===a.data.message[0].component.payload.template_type&&"horizontal"===a.data.message[0].component.payload.direction&&"stackedBarchart"===a.type?KoreGraphAdapter.drawD3barStackedChart(a.data,e,".chartContainerDiv",12):"barchart"===a.data.message[0].component.payload.template_type&&"vertical"===a.data.message[0].component.payload.direction&&"stackedBarchart"===a.type?(e.innerWidth=550,KoreGraphAdapter.drawD3barVerticalStackedChart(a.data,e,".chartContainerDiv",12)):"barchart"===a.data.message[0].component.payload.template_type&&"horizontal"===a.data.message[0].component.payload.direction&&"barchart"===a.type&&(e.outerWidth=650,e.outerHeight=350,e.innerWidth=450,e.innerHeight=310,KoreGraphAdapter.drawD3barHorizontalbarChart(a.data,e,".chartContainerDiv",12))):"linechart"===a.data.message[0].component.payload.template_type?(e={outerWidth:650,outerHeight:450,innerWidth:480,innerHeight:350,legendRectSize:15,legendSpacing:4},Y(".chartContainerDiv").html(""),KoreGraphAdapter.drawD3lineChartV2(a.data,e,".chartContainerDiv",12)):a.data.message[0].component.payload.pie_type&&(e={width:600,height:400,legendRectSize:15,legendSpacing:4},Y("chartContainerDiv").html(""),"regular"===a.data.message[0].component.payload.pie_type?KoreGraphAdapter.drawD3Pie(a.data,e,".chartContainerDiv",16):"donut"===a.data.message[0].component.payload.pie_type?KoreGraphAdapter.drawD3PieDonut(a.data,e,".chartContainerDiv",16,"donut"):"donut_legend"===a.data.message[0].component.payload.pie_type&&(Y("chartContainerDiv").html(""),KoreGraphAdapter.drawD3PieDonut(a.data,e,".chartContainerDiv",16,"donut_legend")));else if("google"===graphLibGlob){{function r(){o=document.getElementsByClassName("chartContainerDiv"),i=new google.visualization.PieChart(o[0])}function r(){o=document.getElementsByClassName("chartContainerDiv"),i=new google.visualization.LineChart(o[0])}function r(){o=document.getElementsByClassName("chartContainerDiv"),i=new("vertical"===a.direction?google.visualization.ColumnChart:google.visualization.BarChart)(o[0])}"piechart"===a.type?(google.charts.load("current",{packages:["corechart"]}),google.charts.setOnLoadCallback(r)):"linechart"===a.type?(google.charts.load("current",{packages:["corechart","line"]}),google.charts.setOnLoadCallback(r)):"barchart"===a.type&&(google.charts.load("current",{packages:["corechart","bar"]}),google.charts.setOnLoadCallback(r))}setTimeout(function(){a.options.chartArea={height:"85%",width:"85%"},google.visualization.events.addListener(i,"ready",function(){setTimeout(function(){Y(".largePreviewContent .chartContainerDiv").css("height","91%")})}),i.draw(a.data,a.options)},200)}})}Y(window).on("beforeunload",function(){yt()}),tt.prototype.speakWithWebAPI=function(t){if(!t)return!1;"speechSynthesis"in window?(audioMsgs.push(t),function t(){speechSyn=speechSyn||new SpeechSynthesisUtterance;0<audioMsgs.length&&!audioPlaying&&(audioPlaying=!0,speechSyn.text=audioMsgs.shift(),window.speechSynthesis.speak(speechSyn),speechSyn.onend=function(){audioPlaying=!1,t()})}()):console.warn("KORE:Your browser doesn't support TTS(Speech Synthesiser)")},tt.prototype.stopSpeaking=function(){this.config.isTTSEnabled&&this.config.ttsInterface&&"webapi"===this.config.ttsInterface&&"speechSynthesis"in window&&(audioMsgs=[],audioPlaying=!1,window.speechSynthesis.cancel())},function(){if(!L){if(!window.AudioContext){if(!window.webkitAudioContext)return console.error("Your browser does not support any AudioContext and cannot play back this audio.");window.AudioContext=window.webkitAudioContext}L=new AudioContext}}(),tt.prototype.makeDroppable=function(e,n){var t=document.createElement("input");function i(t){var e;t.dataTransfer?e=t.dataTransfer.files:t.target&&(e=t.target.files),n.call(null,e)}t.setAttribute("type","file"),t.setAttribute("multiple",!1),t.style.display="none",t.addEventListener("change",i),e.appendChild(t),e.addEventListener("dragover",function(t){t.preventDefault(),t.stopPropagation(),e.classList.add("dragover")}),e.addEventListener("dragleave",function(t){t.preventDefault(),t.stopPropagation(),e.classList.remove("dragover")}),e.addEventListener("drop",function(t){t.preventDefault(),t.stopPropagation(),e.classList.remove("dragover"),i(t)})},Et.prototype.append=function(t,e){this._fields.push([t,e])},Et.prototype.toString=function(){var n=this.boundary,i="";return this._fields.forEach(function(t){var e;i+="--"+n+"\r\n",t[1].data?((e=t[1]).fileName?i+='Content-Disposition: form-data; name="'+t[0]+'"; filename="'+e.fileName+'"':i+='Content-Disposition: form-data; name="'+t[0]+'"',i+="\r\n",e.type&&(i+="Content-Type: UTF-8; charset=ISO-8859-1\r\n"),i+="Content-Transfer-Encoding: base64\r\n",i+="\r\n"+e.data+"\r\n"):(i+='Content-Disposition: form-data; name="'+t[0]+'";\r\n\r\n',i+=t[1]+"\r\n")}),i+="--"+n+"--"},jt.prototype.events={error:Y.Event("error.ke.uploader"),progressChange:Y.Event("progress.ke.uploader"),success:Y.Event("success.ke.uploader")};var Ht=Y.fn.uploader;return Y.fn.uploader=function(a){var o=Array.prototype.slice.call(arguments,1);return this.each(function(){var t,e,n=Y(this),i="";return options="object"==typeof a&&a,i?a&&("string"==typeof a&&i[a]?i[a].apply(i,o):options&&Ft((t=i,e=options,t.options=e,t))):n.data("ke.uploader",i=new jt(n,options)),a&&i[a]&&i[a].apply(i,o)})},Y.fn.uploader.Constructor=jt,Y.fn.uploader.noConflict=function(){return Y.fn.uploader=Ht,this},t.net.HttpRequest=function(){var t,e=(t=!1,!(t=new XMLHttpRequest)&&"undefined"!=typeof XDomainRequest?new XDomainRequest:t);if(!e)throw"Unsupported HTTP Connection";try{e.withCredentials=!0}catch(t){}return e.onreadystatechange=function(){return e.onReadyStateChange&&e.onReadyStateChange.call(e)},e},{initToken:initToken,addListener:addListener,removeListener:removeListener,show:show,destroy:destroy,showError:showError,botDetails:botDetails,chatHistory:chatHistory,getSDKInstance:function(){return p},instance:W,sdkInstance:p,chatWindow:tt,addWidgetEvents:addWidgetEvents,setWidgetInstance:setWidgetInstance,closeConversationSession:closeConversationSession,applySDKBranding:applySDKBranding}}(t,e)},function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery"),require("moment")):t(jQuery,moment)}(function(q,K){q.dateRangePickerLanguages={default:{selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-1":"mo","week-2":"tu","week-3":"we","week-4":"th","week-5":"fr","week-6":"sa","week-7":"su","week-number":"W","month-name":["january","february","march","april","may","june","july","august","september","october","november","december"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute"},id:{selected:"Terpilih:",day:"Hari",days:"Hari",apply:"Tutup","week-1":"sen","week-2":"sel","week-3":"rab","week-4":"kam","week-5":"jum","week-6":"sab","week-7":"min","week-number":"W","month-name":["januari","februari","maret","april","mei","juni","juli","agustus","september","oktober","november","desember"],shortcuts:"Pintas","custom-values":"Nilai yang ditentukan",past:"Yang Lalu",following:"Mengikuti",previous:"Sebelumnya","prev-week":"Minggu","prev-month":"Bulan","prev-year":"Tahun",next:"Selanjutnya","next-week":"Minggu","next-month":"Bulan","next-year":"Tahun","less-than":"Tanggal harus lebih dari %d hari","more-than":"Tanggal harus kurang dari %d hari","default-more":"Jarak tanggal harus lebih lama dari %d hari","default-single":"Silakan pilih tanggal","default-less":"Jarak rentang tanggal tidak boleh lebih lama dari %d hari","default-range":"Rentang tanggal harus antara %d dan %d hari","default-default":"Silakan pilih rentang tanggal",time:"Waktu",hour:"Jam",minute:"Menit"},az:{selected:"Seçildi:",day:" gün",days:" gün",apply:"tətbiq","week-1":"1","week-2":"2","week-3":"3","week-4":"4","week-5":"5","week-6":"6","week-7":"7","month-name":["yanvar","fevral","mart","aprel","may","iyun","iyul","avqust","sentyabr","oktyabr","noyabr","dekabr"],shortcuts:"Qısayollar",past:"Keçmiş",following:"Növbəti",previous:"&nbsp;&nbsp;&nbsp;","prev-week":"Öncəki həftə","prev-month":"Öncəki ay","prev-year":"Öncəki il",next:"&nbsp;&nbsp;&nbsp;","next-week":"Növbəti həftə","next-month":"Növbəti ay","next-year":"Növbəti il","less-than":"Tarix aralığı %d gündən çox olmamalıdır","more-than":"Tarix aralığı %d gündən az olmamalıdır","default-more":"%d gündən çox bir tarix seçin","default-single":"Tarix seçin","default-less":"%d gündən az bir tarix seçin","default-range":"%d və %d gün aralığında tarixlər seçin","default-default":"Tarix aralığı seçin"},bg:{selected:"Избрано:",day:"Ден",days:"Дни",apply:"Затвори","week-1":"пн","week-2":"вт","week-3":"ср","week-4":"чт","week-5":"пт","week-6":"сб","week-7":"нд","week-number":"С","month-name":["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"],shortcuts:"Преки пътища","custom-values":"Персонализирани стойности",past:"Минал",following:"Следващ",previous:"Предишен","prev-week":"Седмица","prev-month":"Месец","prev-year":"Година",next:"Следващ","next-week":"Седмица","next-month":"Месец","next-year":"Година","less-than":"Периодът от време не трябва да е повече от %d дни","more-than":"Периодът от време не трябва да е по-малко от %d дни","default-more":"Моля изберете период по-дълъг от %d дни","default-single":"Моля изберете дата","default-less":"Моля изберете период по-къс от %d дни","default-range":"Моля изберете период между %d и %d дни","default-default":"Моля изберете период",time:"Време",hour:"Час",minute:"Минута"},cn:{selected:"已选择:",day:"天",days:"天",apply:"确定","week-1":"一","week-2":"二","week-3":"三","week-4":"四","week-5":"五","week-6":"六","week-7":"日","week-number":"周","month-name":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortcuts:"快捷选择",past:"过去",following:"将来",previous:"&nbsp;&nbsp;&nbsp;","prev-week":"上周","prev-month":"上个月","prev-year":"去年",next:"&nbsp;&nbsp;&nbsp;","next-week":"下周","next-month":"下个月","next-year":"明年","less-than":"所选日期范围不能大于%d天","more-than":"所选日期范围不能小于%d天","default-more":"请选择大于%d天的日期范围","default-less":"请选择小于%d天的日期范围","default-range":"请选择%d天到%d天的日期范围","default-single":"请选择一个日期","default-default":"请选择一个日期范围",time:"时间",hour:"小时",minute:"分钟"},cz:{selected:"Vybráno:",day:"Den",days:"Dny",apply:"Zavřít","week-1":"po","week-2":"út","week-3":"st","week-4":"čt","week-5":"pá","week-6":"so","week-7":"ne","month-name":["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],shortcuts:"Zkratky",past:"po",following:"následující",previous:"předchozí","prev-week":"týden","prev-month":"měsíc","prev-year":"rok",next:"další","next-week":"týden","next-month":"měsíc","next-year":"rok","less-than":"Rozsah data by neměl být větší než %d dnů","more-than":"Rozsah data by neměl být menší než %d dnů","default-more":"Prosím zvolte rozsah data větší než %d dnů","default-single":"Prosím zvolte datum","default-less":"Prosím zvolte rozsah data menší než %d dnů","default-range":"Prosím zvolte rozsah data mezi %d a %d dny","default-default":"Prosím zvolte rozsah data"},de:{selected:"Auswahl:",day:"Tag",days:"Tage",apply:"Schließen","week-1":"mo","week-2":"di","week-3":"mi","week-4":"do","week-5":"fr","week-6":"sa","week-7":"so","month-name":["januar","februar","märz","april","mai","juni","juli","august","september","oktober","november","dezember"],shortcuts:"Schnellwahl",past:"Vorherige",following:"Folgende",previous:"Vorherige","prev-week":"Woche","prev-month":"Monat","prev-year":"Jahr",next:"Nächste","next-week":"Woche","next-month":"Monat","next-year":"Jahr","less-than":"Datumsbereich darf nicht größer sein als %d Tage","more-than":"Datumsbereich darf nicht kleiner sein als %d Tage","default-more":"Bitte mindestens %d Tage auswählen","default-single":"Bitte ein Datum auswählen","default-less":"Bitte weniger als %d Tage auswählen","default-range":"Bitte einen Datumsbereich zwischen %d und %d Tagen auswählen","default-default":"Bitte ein Start- und Enddatum auswählen",Time:"Zeit",hour:"Stunde",minute:"Minute"},es:{selected:"Seleccionado:",day:"Día",days:"Días",apply:"Cerrar","week-1":"lu","week-2":"ma","week-3":"mi","week-4":"ju","week-5":"vi","week-6":"sa","week-7":"do","month-name":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortcuts:"Accesos directos",past:"Pasado",following:"Siguiente",previous:"Anterior","prev-week":"Semana","prev-month":"Mes","prev-year":"Año",next:"Siguiente","next-week":"Semana","next-month":"Mes","next-year":"Año","less-than":"El rango no debería ser mayor de %d días","more-than":"El rango no debería ser menor de %d días","default-more":"Por favor selecciona un rango mayor a %d días","default-single":"Por favor selecciona un día","default-less":"Por favor selecciona un rango menor a %d días","default-range":"Por favor selecciona un rango entre %d y %d días","default-default":"Por favor selecciona un rango de fechas."},fr:{selected:"Sélection:",day:"Jour",days:"Jours",apply:"Fermer","week-1":"lu","week-2":"ma","week-3":"me","week-4":"je","week-5":"ve","week-6":"sa","week-7":"di","month-name":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortcuts:"Raccourcis",past:"Passé",following:"Suivant",previous:"Précédent","prev-week":"Semaine","prev-month":"Mois","prev-year":"Année",next:"Suivant","next-week":"Semaine","next-month":"Mois","next-year":"Année","less-than":"L'intervalle ne doit pas être supérieure à %d jours","more-than":"L'intervalle ne doit pas être inférieure à %d jours","default-more":"Merci de choisir une intervalle supérieure à %d jours","default-single":"Merci de choisir une date","default-less":"Merci de choisir une intervalle inférieure %d jours","default-range":"Merci de choisir une intervalle comprise entre %d et %d jours","default-default":"Merci de choisir une date"},hu:{selected:"Kiválasztva:",day:"Nap",days:"Nap",apply:"Ok","week-1":"h","week-2":"k","week-3":"sz","week-4":"cs","week-5":"p","week-6":"sz","week-7":"v","month-name":["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],shortcuts:"Gyorsválasztó",past:"Múlt",following:"Következő",previous:"Előző","prev-week":"Hét","prev-month":"Hónap","prev-year":"Év",next:"Következő","next-week":"Hét","next-month":"Hónap","next-year":"Év","less-than":"A kiválasztás nem lehet több %d napnál","more-than":"A kiválasztás nem lehet több %d napnál","default-more":"Válassz ki egy időszakot ami hosszabb mint %d nap","default-single":"Válassz egy napot","default-less":"Válassz ki egy időszakot ami rövidebb mint %d nap","default-range":"Válassz ki egy %d - %d nap hosszú időszakot","default-default":"Válassz ki egy időszakot"},it:{selected:"Selezionati:",day:"Giorno",days:"Giorni",apply:"Chiudi","week-1":"lu","week-2":"ma","week-3":"me","week-4":"gi","week-5":"ve","week-6":"sa","week-7":"do","month-name":["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortcuts:"Scorciatoie",past:"Scorso",following:"Successivo",previous:"Precedente","prev-week":"Settimana","prev-month":"Mese","prev-year":"Anno",next:"Prossimo","next-week":"Settimana","next-month":"Mese","next-year":"Anno","less-than":"L'intervallo non dev'essere maggiore di %d giorni","more-than":"L'intervallo non dev'essere minore di %d giorni","default-more":"Seleziona un intervallo maggiore di %d giorni","default-single":"Seleziona una data","default-less":"Seleziona un intervallo minore di %d giorni","default-range":"Seleziona un intervallo compreso tra i %d e i %d giorni","default-default":"Seleziona un intervallo di date"},ko:{selected:"기간:",day:"일",days:"일간",apply:"닫기","week-1":"월","week-2":"화","week-3":"수","week-4":"목","week-5":"금","week-6":"토","week-7":"일","week-number":"주","month-name":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],shortcuts:"단축키들",past:"지난(오늘기준)",following:"이후(오늘기준)",previous:"이전","prev-week":"1주","prev-month":"1달","prev-year":"1년",next:"다음","next-week":"1주","next-month":"1달","next-year":"1년","less-than":"날짜 범위는 %d 일보다 많을 수 없습니다","more-than":"날짜 범위는 %d 일보다 작을 수 없습니다","default-more":"날짜 범위를 %d 일보다 길게 선택해 주세요","default-single":"날짜를 선택해 주세요","default-less":"%d 일보다 작은 날짜를 선택해 주세요","default-range":"%d와 %d 일 사이의 날짜 범위를 선택해 주세요","default-default":"날짜 범위를 선택해 주세요",time:"시각",hour:"시",minute:"분"},no:{selected:"Valgt:",day:"Dag",days:"Dager",apply:"Lukk","week-1":"ma","week-2":"ti","week-3":"on","week-4":"to","week-5":"fr","week-6":"lø","week-7":"sø","month-name":["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],shortcuts:"Snarveier","custom-values":"Egendefinerte Verdier",past:"Over",following:"Følger",previous:"Forrige","prev-week":"Uke","prev-month":"Måned","prev-year":"År",next:"Neste","next-week":"Uke","next-month":"Måned","next-year":"År","less-than":"Datoperioden skal ikkje være lengre enn %d dager","more-than":"Datoperioden skal ikkje være kortere enn %d dager","default-more":"Vennligst velg ein datoperiode lengre enn %d dager","default-single":"Vennligst velg ein dato","default-less":"Vennligst velg ein datoperiode mindre enn %d dager","default-range":"Vennligst velg ein datoperiode mellom %d og %d dager","default-default":"Vennligst velg ein datoperiode",time:"Tid",hour:"Time",minute:"Minutter"},nl:{selected:"Geselecteerd:",day:"Dag",days:"Dagen",apply:"Ok","week-1":"ma","week-2":"di","week-3":"wo","week-4":"do","week-5":"vr","week-6":"za","week-7":"zo","month-name":["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortcuts:"Snelkoppelingen","custom-values":"Aangepaste waarden",past:"Verleden",following:"Komend",previous:"Vorige","prev-week":"Week","prev-month":"Maand","prev-year":"Jaar",next:"Volgende","next-week":"Week","next-month":"Maand","next-year":"Jaar","less-than":"Interval moet langer dan %d dagen zijn","more-than":"Interval mag niet minder dan %d dagen zijn","default-more":"Selecteer een interval langer dan %dagen","default-single":"Selecteer een datum","default-less":"Selecteer een interval minder dan %d dagen","default-range":"Selecteer een interval tussen %d en %d dagen","default-default":"Selecteer een interval",time:"Tijd",hour:"Uur",minute:"Minuut"},ru:{selected:"Выбрано:",day:"День",days:"Дней",apply:"Применить","week-1":"пн","week-2":"вт","week-3":"ср","week-4":"чт","week-5":"пт","week-6":"сб","week-7":"вс","month-name":["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"],shortcuts:"Быстрый выбор","custom-values":"Пользовательские значения",past:"Прошедшие",following:"Следующие",previous:"&nbsp;&nbsp;&nbsp;","prev-week":"Неделя","prev-month":"Месяц","prev-year":"Год",next:"&nbsp;&nbsp;&nbsp;","next-week":"Неделя","next-month":"Месяц","next-year":"Год","less-than":"Диапазон не может быть больше %d дней","more-than":"Диапазон не может быть меньше %d дней","default-more":"Пожалуйста выберите диапазон больше %d дней","default-single":"Пожалуйста выберите дату","default-less":"Пожалуйста выберите диапазон меньше %d дней","default-range":"Пожалуйста выберите диапазон между %d и %d днями","default-default":"Пожалуйста выберите диапазон",time:"Время",hour:"Часы",minute:"Минуты"},uk:{selected:"Вибрано:",day:"День",days:"Днів",apply:"Застосувати","week-1":"пн","week-2":"вт","week-3":"ср","week-4":"чт","week-5":"пт","week-6":"сб","week-7":"нд","month-name":["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"],shortcuts:"Швидкий вибір","custom-values":"Значення користувача",past:"Минулі",following:"Наступні",previous:"&nbsp;&nbsp;&nbsp;","prev-week":"Тиждень","prev-month":"Місяць","prev-year":"Рік",next:"&nbsp;&nbsp;&nbsp;","next-week":"Тиждень","next-month":"Місяць","next-year":"Рік","less-than":"Діапазон не може бути більш ніж %d днів","more-than":"Діапазон не може бути меньш ніж %d днів","default-more":"Будь ласка виберіть діапазон більше %d днів","default-single":"Будь ласка виберіть дату","default-less":"Будь ласка виберіть діапазон менше %d днів","default-range":"Будь ласка виберіть діапазон між %d та %d днями","default-default":"Будь ласка виберіть діапазон",time:"Час",hour:"Години",minute:"Хвилини"},pl:{selected:"Wybrany:",day:"Dzień",days:"Dni",apply:"Zamknij","week-1":"pon","week-2":"wt","week-3":"śr","week-4":"czw","week-5":"pt","week-6":"so","week-7":"nd","month-name":["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],shortcuts:"Skróty","custom-values":"Niestandardowe wartości",past:"Przeszłe",following:"Następne",previous:"Poprzednie","prev-week":"tydzień","prev-month":"miesiąc","prev-year":"rok",next:"Następny","next-week":"tydzień","next-month":"miesiąc","next-year":"rok","less-than":"Okres nie powinien być dłuższy niż %d dni","more-than":"Okres nie powinien być krótszy niż  %d ni","default-more":"Wybierz okres dłuższy niż %d dni","default-single":"Wybierz datę","default-less":"Wybierz okres krótszy niż %d dni","default-range":"Wybierz okres trwający od %d do %d dni","default-default":"Wybierz okres",time:"Czas",hour:"Godzina",minute:"Minuta"},se:{selected:"Vald:",day:"dag",days:"dagar",apply:"godkänn","week-1":"ma","week-2":"ti","week-3":"on","week-4":"to","week-5":"fr","week-6":"lö","week-7":"sö","month-name":["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],shortcuts:"genvägar","custom-values":"Anpassade värden",past:"över",following:"följande",previous:"förra","prev-week":"vecka","prev-month":"månad","prev-year":"år",next:"nästa","next-week":"vecka","next-month":"måned","next-year":"år","less-than":"Datumintervall bör inte vara mindre än %d dagar","more-than":"Datumintervall bör inte vara mer än %d dagar","default-more":"Välj ett datumintervall längre än %d dagar","default-single":"Välj ett datum","default-less":"Välj ett datumintervall mindre än %d dagar","default-range":"Välj ett datumintervall mellan %d och %d dagar","default-default":"Välj ett datumintervall",time:"tid",hour:"timme",minute:"minut"},pt:{selected:"Selecionado:",day:"Dia",days:"Dias",apply:"Fechar","week-1":"seg","week-2":"ter","week-3":"qua","week-4":"qui","week-5":"sex","week-6":"sab","week-7":"dom","week-number":"N","month-name":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortcuts:"Atalhos","custom-values":"Valores Personalizados",past:"Passado",following:"Seguinte",previous:"Anterior","prev-week":"Semana","prev-month":"Mês","prev-year":"Ano",next:"Próximo","next-week":"Próxima Semana","next-month":"Próximo Mês","next-year":"Próximo Ano","less-than":"O período selecionado não deve ser maior que %d dias","more-than":"O período selecionado não deve ser menor que %d dias","default-more":"Selecione um período superior a %d dias","default-single":"Selecione uma data","default-less":"Selecione um período inferior a %d dias","default-range":"Selecione um período de %d a %d dias","default-default":"Selecione um período",time:"Tempo",hour:"Hora",minute:"Minuto"},tc:{selected:"已選擇:",day:"天",days:"天",apply:"確定","week-1":"一","week-2":"二","week-3":"三","week-4":"四","week-5":"五","week-6":"六","week-7":"日","week-number":"周","month-name":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortcuts:"快速選擇",past:"過去",following:"將來",previous:"&nbsp;&nbsp;&nbsp;","prev-week":"上週","prev-month":"上個月","prev-year":"去年",next:"&nbsp;&nbsp;&nbsp;","next-week":"下周","next-month":"下個月","next-year":"明年","less-than":"所選日期範圍不能大於%d天","more-than":"所選日期範圍不能小於%d天","default-more":"請選擇大於%d天的日期範圍","default-less":"請選擇小於%d天的日期範圍","default-range":"請選擇%d天到%d天的日期範圍","default-single":"請選擇一個日期","default-default":"請選擇一個日期範圍",time:"日期",hour:"小時",minute:"分鐘"},ja:{selected:"選択しました:",day:"日",days:"日々",apply:"閉じる","week-1":"月","week-2":"火","week-3":"水","week-4":"木","week-5":"金","week-6":"土","week-7":"日","month-name":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],shortcuts:"クイック選択",past:"過去",following:"将来",previous:"&nbsp;&nbsp;&nbsp;","prev-week":"先週、","prev-month":"先月","prev-year":"昨年",next:"&nbsp;&nbsp;&nbsp;","next-week":"来週","next-month":"来月","next-year":"来年","less-than":"日付の範囲は ％d 日以上にすべきではありません","more-than":"日付の範囲は ％d 日を下回ってはいけません","default-more":"％d 日よりも長い期間を選択してください","default-less":"％d 日未満の期間を選択してください","default-range":"％d と％ d日の間の日付範囲を選択してください","default-single":"日付を選択してください","default-default":"日付範囲を選択してください",time:"時間",hour:"時間",minute:"分"},da:{selected:"Valgt:",day:"Dag",days:"Dage",apply:"Luk","week-1":"ma","week-2":"ti","week-3":"on","week-4":"to","week-5":"fr","week-6":"lö","week-7":"sö","month-name":["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],shortcuts:"genveje","custom-values":"Brugerdefinerede værdier",past:"Forbi",following:"Følgende",previous:"Forrige","prev-week":"uge","prev-month":"månad","prev-year":"år",next:"Næste","next-week":"Næste uge","next-month":"Næste måned","next-year":"Næste år","less-than":"Dato interval bør ikke være med end %d dage","more-than":"Dato interval bør ikke være mindre end %d dage","default-more":"Vælg datointerval længere end %d dage","default-single":"Vælg dato","default-less":"Vælg datointerval mindre end %d dage","default-range":"Vælg datointerval mellem %d og %d dage","default-default":"Vælg datointerval",time:"tid",hour:"time",minute:"minut"},fi:{selected:"Valittu:",day:"Päivä",days:"Päivää",apply:"Sulje","week-1":"ma","week-2":"ti","week-3":"ke","week-4":"to","week-5":"pe","week-6":"la","week-7":"su","week-number":"V","month-name":["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],shortcuts:"Pikavalinnat","custom-values":"Mukautetut Arvot",past:"Menneet",following:"Tulevat",previous:"Edellinen","prev-week":"Viikko","prev-month":"Kuukausi","prev-year":"Vuosi",next:"Seuraava","next-week":"Viikko","next-month":"Kuukausi","next-year":"Vuosi","less-than":"Aikajakson tulisi olla vähemmän kuin %d päivää","more-than":"Aikajakson ei tulisi olla vähempää kuin %d päivää","default-more":"Valitse pidempi aikajakso kuin %d päivää","default-single":"Valitse päivä","default-less":"Valitse lyhyempi aikajakso kuin %d päivää","default-range":"Valitse aikajakso %d ja %d päivän väliltä","default-default":"Valitse aikajakso",time:"Aika",hour:"Tunti",minute:"Minuutti"},cat:{selected:"Seleccionats:",day:"Dia",days:"Dies",apply:"Tanca","week-1":"Dl","week-2":"Dm","week-3":"Dc","week-4":"Dj","week-5":"Dv","week-6":"Ds","week-7":"Dg","week-number":"S","month-name":["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],shortcuts:"Dreçeres","custom-values":"Valors personalitzats",past:"Passat",following:"Futur",previous:"Anterior","prev-week":"Setmana","prev-month":"Mes","prev-year":"Any",next:"Següent","next-week":"Setmana","next-month":"Mes","next-year":"Any","less-than":"El període no hauria de ser de més de %d dies","more-than":"El període no hauria de ser de menys de %d dies","default-more":"Perfavor selecciona un període més gran de %d dies","default-single":"Perfavor selecciona una data","default-less":"Perfavor selecciona un període de menys de %d dies","default-range":"Perfavor selecciona un període d'entre %d i %d dies","default-default":"Perfavor selecciona un període",time:"Temps",hour:"Hora",minute:"Minut"}},q.fn.dateRangePicker=function(p){p=p||{},(p=q.extend(!0,{autoClose:!1,format:"YYYY-MM-DD",separator:" to ",language:"auto",startOfWeek:"sunday",getValue:function(){return q(this).val()},setValue:function(t){q(this).attr("readonly")||q(this).is(":disabled")||t==q(this).val()||q(this).val(t)},startDate:!1,endDate:!1,time:{enabled:!1},minDays:0,maxDays:0,showShortcuts:!1,shortcuts:{},customShortcuts:[],inline:!1,container:"body",alwaysOpen:!1,singleDate:!1,lookBehind:!1,batchMode:!1,duration:200,stickyMonths:!1,dayDivAttrs:[],dayTdAttrs:[],selectForward:!1,selectBackward:!1,applyBtnClass:"",singleMonth:"auto",hoveringTooltip:function(t,e,n){return 1<t?t+" "+V("days"):""},showTopbar:!0,swapTime:!1,showWeekNumbers:!1,getWeekNumber:function(t){return K(t).format("w")},customOpenAnimation:null,customCloseAnimation:null,customArrowPrevSymbol:null,customArrowNextSymbol:null,monthSelect:!1,yearSelect:!1},p)).start=!1,p.end=!1,p.startWeek=!1,p.isTouchDevice="ontouchstart"in window||navigator.msMaxTouchPoints,p.isTouchDevice&&(p.hoveringTooltip=!1),"auto"==p.singleMonth&&(p.singleMonth=q(window).width()<480),p.singleMonth&&(p.stickyMonths=!1),p.showTopbar||(p.autoClose=!0),p.startDate&&"string"==typeof p.startDate&&(p.startDate=K(p.startDate,p.format).toDate()),p.endDate&&"string"==typeof p.endDate&&(p.endDate=K(p.endDate,p.format).toDate()),p.yearSelect&&"boolean"==typeof p.yearSelect&&(p.yearSelect=function(t){return[t-5,t+5]});var l,t,a=function(){{if("auto"!=p.language)return p.language&&p.language in q.dateRangePickerLanguages?q.dateRangePickerLanguages[p.language]:q.dateRangePickerLanguages.default;var t=navigator.language||navigator.browserLanguage;return t&&(t=t.toLowerCase())in q.dateRangePickerLanguages?q.dateRangePickerLanguages[t]:q.dateRangePickerLanguages.default}}(),i=!1,o=this,s=q(o).get(0);return q(this).off(".datepicker").on("click.datepicker",function(t){l.is(":visible")||e(p.duration)}).on("change.datepicker",function(t){n()}).on("keyup.datepicker",function(){try{clearTimeout(t)}catch(t){}t=setTimeout(function(){n()},2e3)}),function(){var t,e,n=this;q(this).data("date-picker-opened")?P():(q(this).data("date-picker-opened",!0),(l=function(){var t='<div class="date-picker-wrapper';p.extraClass&&(t+=" "+p.extraClass+" ");p.singleDate&&(t+=" single-date ");p.showShortcuts||(t+=" no-shortcuts ");p.showTopbar||(t+=" no-topbar ");p.customTopBar&&(t+=" custom-topbar ");t+='">',p.showTopbar&&(t+='<div class="drp_top-bar">',p.customTopBar?("function"==typeof p.customTopBar&&(p.customTopBar=p.customTopBar()),t+='<div class="custom-top">'+p.customTopBar+"</div>"):(t+='<div class="normal-top"><span class="selection-top">'+V("selected")+' </span> <b class="start-day">...</b>',p.singleDate||(t+=' <span class="separator-day">'+p.separator+'</span> <b class="end-day">...</b> <i class="selected-days">(<span class="selected-days-num">3</span> '+V("days")+")</i>"),t+="</div>",t+='<div class="error-top">error</div><div class="default-top">default</div>'),t+='<input type="button" class="apply-btn disabled'+function(){var t="";!0===p.autoClose&&(t+=" hide");""!==p.applyBtnClass&&(t+=" "+p.applyBtnClass);return t}()+'" value="'+V("apply")+'" />',t+="</div>");var e=p.showWeekNumbers?6:5,n="&lt;";p.customArrowPrevSymbol&&(n=p.customArrowPrevSymbol);var i,a="&gt;";p.customArrowNextSymbol&&(a=p.customArrowNextSymbol);t+='<div class="month-wrapper">   <table class="month1" cellspacing="0" border="0" cellpadding="0">       <thead>           <tr class="caption">               <th>                   <span class="prev">'+n+'                   </span>               </th>               <th colspan="'+e+'" class="month-name">               </th>               <th>'+(p.singleDate||!p.stickyMonths?'<span class="next">'+a+"</span>":"")+'               </th>           </tr>           <tr class="week-name">'+Y()+"       </thead>       <tbody></tbody>   </table>",p.singleMonth||(t+='<div class="gap">'+function(){for(var t=['<div class="gap-top-mask"></div><div class="gap-bottom-mask"></div><div class="gap-lines">'],e=0;e<20;e++)t.push('<div class="gap-line"><div class="gap-1"></div><div class="gap-2"></div><div class="gap-3"></div></div>');return t.push("</div>"),t.join("")}()+'</div><table class="month2" cellspacing="0" border="0" cellpadding="0">   <thead>   <tr class="caption">       <th>'+(p.stickyMonths?"":'<span class="prev">'+n+"</span>")+'       </th>       <th colspan="'+e+'" class="month-name">       </th>       <th>           <span class="next">'+a+'</span>       </th>   </tr>   <tr class="week-name">'+Y()+"   </thead>   <tbody></tbody></table>");t+='<div class="dp-clearfix"></div><div class="time"><div class="time1"></div>',p.singleDate||(t+='<div class="time2"></div>');if(t+='</div><div class="dp-clearfix"></div></div>',t+='<div class="footer">',p.showShortcuts){t+='<div class="shortcuts"><b>'+V("shortcuts")+"</b>";var o=p.shortcuts;if(o){if(o["prev-days"]&&0<o["prev-days"].length){t+='&nbsp;<span class="prev-days">'+V("past");for(var s=0;s<o["prev-days"].length;s++)i=o["prev-days"][s],i+=1<o["prev-days"][s]?V("days"):V("day"),t+=' <a href="javascript:;" shortcut="day,-'+o["prev-days"][s]+'">'+i+"</a>";t+="</span>"}if(o["next-days"]&&0<o["next-days"].length){t+='&nbsp;<span class="next-days">'+V("following");for(s=0;s<o["next-days"].length;s++)i=o["next-days"][s],i+=1<o["next-days"][s]?V("days"):V("day"),t+=' <a href="javascript:;" shortcut="day,'+o["next-days"][s]+'">'+i+"</a>";t+="</span>"}if(o.prev&&0<o.prev.length){t+='&nbsp;<span class="prev-buttons">'+V("previous");for(s=0;s<o.prev.length;s++)i=V("prev-"+o.prev[s]),t+=' <a href="javascript:;" shortcut="prev,'+o.prev[s]+'">'+i+"</a>";t+="</span>"}if(o.next&&0<o.next.length){t+='&nbsp;<span class="next-buttons">'+V("next");for(s=0;s<o.next.length;s++)i=V("next-"+o.next[s]),t+=' <a href="javascript:;" shortcut="next,'+o.next[s]+'">'+i+"</a>";t+="</span>"}}if(p.customShortcuts)for(s=0;s<p.customShortcuts.length;s++){var r=p.customShortcuts[s];t+='&nbsp;<span class="custom-shortcut"><a href="javascript:;" shortcut="custom">'+r.name+"</a></span>"}t+="</div>"}if(p.showCustomValues&&(t+='<div class="customValues"><b>'+(p.customValueLabel||V("custom-values"))+"</b>",p.customValues))for(s=0;s<p.customValues.length;s++){var l=p.customValues[s];t+='&nbsp;<span class="custom-value"><a href="javascript:;" custom="'+l.value+'">'+l.name+"</a></span>"}return q(t+="</div></div>")}().hide()).append('<div class="date-range-length-tip"></div>'),q(p.container).append(l),p.inline?l.addClass("inline-wrapper"):r(),p.alwaysOpen&&l.find(".apply-btn").hide(),Z(t=G()),p.time.enabled&&(p.startDate&&p.endDate||p.start&&p.end?(j(K(p.start||p.startDate).toDate(),"time1"),j(K(p.end||p.endDate).toDate(),"time2")):(e=p.defaultEndTime||t,j(t,"time1"),j(e,"time2"))),e="",e=p.singleDate?V("default-single"):p.minDays&&p.maxDays?V("default-range"):p.minDays?V("default-more"):p.maxDays?V("default-less"):V("default-default"),l.find(".default-top").html(e.replace(/\%d/,p.minDays).replace(/\%d/,p.maxDays)),p.singleMonth?l.addClass("single-month"):l.addClass("two-months"),setTimeout(function(){u(),i=!0},0),l.click(function(t){t.stopPropagation()}),q(document).on("click.datepicker",J),l.find(".next").click(function(){var t,e;p.stickyMonths?(t=B(p.month1),Q(e=B(p.month2))||!p.singleDate&&0<=F(t,e)||(N(t,"month1"),N(e,"month2"),x())):(t=B(t=(e=q(t=this).parents("table").hasClass("month2"))?p.month2:p.month1),!p.singleMonth&&!p.singleDate&&!e&&0<=F(t,p.month2)||Q(t)||(N(t,e?"month2":"month1"),z()))}),l.find(".prev").click(function(){var t,e;p.stickyMonths?(e=H(p.month1),t=H(p.month2),Q(e)||!p.singleDate&&F(t,e)<=0||(N(t,"month2"),N(e,"month1"),x())):(t=H(t=(e=q(t=this).parents("table").hasClass("month2"))?p.month2:p.month1),e&&F(t,p.month1)<=0||Q(t)||(N(t,e?"month2":"month1"),z()))}),l.attr("unselectable","on").css("user-select","none").on("selectstart",function(t){return t.preventDefault(),!1}),l.find(".apply-btn").click(function(){P();var t=L(new Date(p.start))+p.separator+L(new Date(p.end));q(n).trigger("datepicker-apply",{value:t,date1:new Date(p.start),date2:new Date(p.end)})}),l.find("[custom]").click(function(){var t=q(this).attr("custom");p.start=!1,p.end=!1,l.find(".day.checked").removeClass("checked"),p.setValue.call(s,t),w(),C(!0),x(),p.autoClose&&P()}),l.find("[shortcut]").click(function(){var t=q(this).attr("shortcut"),e=new Date,n=!1;if(-1!=t.indexOf("day"))var i=parseInt(t.split(",",2)[1],10),n=new Date((new Date).getTime()+864e5*i),e=new Date(e.getTime()+864e5*(0<i?1:-1));else if(-1!=t.indexOf("week")){var a,o=1==(a=-1!=t.indexOf("prev,")?-1:1)?"monday"==p.startOfWeek?1:0:"monday"==p.startOfWeek?0:6;for(e=new Date(e.getTime()-864e5);e.getDay()!=o;)e=new Date(e.getTime()+864e5*a);n=new Date(e.getTime()+864e5*a*6)}else if(-1!=t.indexOf("month"))(n=(1==(a=-1!=t.indexOf("prev,")?-1:1)?B:H)(e)).setDate(1),(e=B(n)).setDate(1),e=new Date(e.getTime()-864e5);else if(-1!=t.indexOf("year"))a=-1!=t.indexOf("prev,")?-1:1,(n=new Date).setFullYear(e.getFullYear()+a),n.setMonth(0),n.setDate(1),e.setFullYear(e.getFullYear()+a),e.setMonth(11),e.setDate(31);else if("custom"==t){var s=q(this).html();if(p.customShortcuts&&0<p.customShortcuts.length)for(var r=0;r<p.customShortcuts.length;r++){var l=p.customShortcuts[r];if(l.name==s){var c=[];(c=l.dates.call())&&2==c.length&&(n=c[0],e=c[1]),c&&1==c.length&&(N(c=c[0],"month1"),N(B(c),"month2"),z());break}}}n&&e&&(T(n,e),w())}),l.find(".time1 input[type=range]").on("change touchmove",function(t){t=t.target;h("time1","hour"==t.name?q(t).val().replace(/^(\d{1})$/,"0$1"):void 0,"minute"==t.name?q(t).val().replace(/^(\d{1})$/,"0$1"):void 0)}),l.find(".time2 input[type=range]").on("change touchmove",function(t){t=t.target;h("time2","hour"==t.name?q(t).val().replace(/^(\d{1})$/,"0$1"):void 0,"minute"==t.name?q(t).val().replace(/^(\d{1})$/,"0$1"):void 0)}))}.call(this),p.alwaysOpen&&e(0),q(this).data("dateRangePicker",{setStart:function(t){return"string"==typeof t&&(t=K(t,p.format).toDate()),p.end=!1,k(t),this},setEnd:function(t,e){var n=new Date;return n.setTime(p.start),T(n,t="string"==typeof t?K(t,p.format).toDate():t,e),this},setDateRange:function(t,e,n){"string"==typeof t&&"string"==typeof e&&(t=K(t,p.format).toDate(),e=K(e,p.format).toDate()),T(t,e,n)},clear:function(){p.start=!1,p.end=!1,l.find(".day.checked").removeClass("checked"),l.find(".day.last-date-selected").removeClass("last-date-selected"),l.find(".day.first-date-selected").removeClass("first-date-selected"),p.setValue.call(s,""),w(),C(),x()},close:P,open:e,redraw:R,getDatePicker:function(){return l},resetMonthsView:Z,destroy:function(){q(o).off(".datepicker"),q(o).data("dateRangePicker",""),q(o).data("date-picker-opened",null),l.remove(),q(window).off("resize.datepicker",r),q(document).off("click.datepicker",J)}}),q(window).on("resize.datepicker",r),this;function r(){var t,e,n;p.inline||(t=q(o).offset(),"relative"==q(p.container).css("position")?(e=q(p.container).offset(),n=Math.max(0,t.left+l.outerWidth()-q("body").width()+16),l.css({top:t.top-e.top+q(o).outerHeight()+4,left:t.left-e.left-n})):t.left<460?l.css({top:t.top+q(o).outerHeight()+parseInt(q("body").css("border-top")||0,10),left:t.left}):l.css({top:t.top+q(o).outerHeight()+parseInt(q("body").css("border-top")||0,10),left:t.left+q(o).width()-l.width()-16}))}function e(t){R(),n(),p.customOpenAnimation?p.customOpenAnimation.call(l.get(0),function(){q(o).trigger("datepicker-opened",{relatedTarget:l})}):l.slideDown(t,function(){q(o).trigger("datepicker-opened",{relatedTarget:l})}),q(o).trigger("datepicker-open",{relatedTarget:l}),z(),u(),r()}function n(){var t=p.getValue.call(s),e=t?t.split(p.separator):"";e&&(1==e.length&&p.singleDate||2<=e.length)&&((t=p.format).match(/Do/)&&(t=t.replace(/Do/,"D"),e[0]=e[0].replace(/(\d+)(th|nd|st)/,"$1"),2<=e.length&&(e[1]=e[1].replace(/(\d+)(th|nd|st)/,"$1"))),i=!1,2<=e.length?T(c(e[0],t,K.locale(p.language)),c(e[1],t,K.locale(p.language))):1==e.length&&p.singleDate&&k(c(e[0],t,K.locale(p.language))),i=!0)}function c(t,e,n){return(K(t,e,n).isValid()?K(t,e,n):K()).toDate()}function u(){var t=(t=l.find(".gap").css("margin-left"))&&parseInt(t),e=l.find(".month1").width(),n=l.find(".gap").width()+(t?2*t:0),t=l.find(".month2").width();l.find(".month-wrapper").width(e+n+t)}function d(t,e){l.find("."+t+" input[type=range].hour-range").val(K(e).hours()),l.find("."+t+" input[type=range].minute-range").val(K(e).minutes()),h(t,K(e).format("HH"),K(e).format("mm"))}function f(t,e){p[t]=parseInt(K(parseInt(e)).startOf("day").add(K(p[t+"Time"]).format("HH"),"h").add(K(p[t+"Time"]).format("mm"),"m").valueOf())}function h(t,a,o){switch(a&&l.find("."+t+" .hour-val").text(a),o&&l.find("."+t+" .minute-val").text(o),t){case"time1":p.start&&e("start",K(p.start)),e("startTime",K(p.startTime||K().valueOf()));break;case"time2":p.end&&e("end",K(p.end)),e("endTime",K(p.endTime||K().valueOf()))}function e(t,e){var n=e.format("HH"),i=e.format("mm");p[t]=e.startOf("day").add(a||n,"h").add(o||i,"m").valueOf()}w(),C(),x()}function m(t){var e=t;return"week-range"===p.batchMode?e=("monday"===p.startOfWeek?K(parseInt(t)).startOf("isoweek"):K(parseInt(t)).startOf("week")).valueOf():"month-range"===p.batchMode&&(e=K(parseInt(t)).startOf("month").valueOf()),e}function g(t){var e=t;return"week-range"===p.batchMode?e=("monday"===p.startOfWeek?K(parseInt(t)).endOf("isoweek"):K(parseInt(t)).endOf("week")).valueOf():"month-range"===p.batchMode&&(e=K(parseInt(t)).endOf("month").valueOf()),e}function y(t){var e;t.hasClass("invalid")||(e=t.attr("time"),t.addClass("checked"),p.singleDate?(p.start=e,p.end=!1):"week"===p.batchMode?"monday"===p.startOfWeek?(p.start=K(parseInt(e)).startOf("isoweek").valueOf(),p.end=K(parseInt(e)).endOf("isoweek").valueOf()):(p.end=K(parseInt(e)).endOf("week").valueOf(),p.start=K(parseInt(e)).startOf("week").valueOf()):"workweek"===p.batchMode?(p.start=K(parseInt(e)).day(1).valueOf(),p.end=K(parseInt(e)).day(5).valueOf()):"weekend"===p.batchMode?(p.start=K(parseInt(e)).day(6).valueOf(),p.end=K(parseInt(e)).day(7).valueOf()):"month"===p.batchMode?(p.start=K(parseInt(e)).startOf("month").valueOf(),p.end=K(parseInt(e)).endOf("month").valueOf()):p.start&&p.end||!p.start&&!p.end?(p.start=m(e),p.end=!1):p.start&&(p.end=g(e),p.time.enabled&&f("end",p.end)),p.time.enabled&&(p.start&&f("start",p.start),p.end&&f("end",p.end)),!p.singleDate&&p.start&&p.end&&p.start>p.end&&(e=p.end,p.end=g(p.start),p.start=m(e),p.time.enabled&&p.swapTime&&(d("time1",p.start),d("time2",p.end))),p.start=parseInt(p.start),p.end=parseInt(p.end),A(),p.start&&!p.end&&(q(o).trigger("datepicker-first-date-selected",{date1:new Date(p.start)}),b(t)),D(),w(),C(),x(),M())}function v(t){if(t=parseInt(t,10),p.startDate&&U(t,p.startDate)<0)return!1;if(p.endDate&&0<U(t,p.endDate))return!1;if(p.start&&!p.end&&!p.singleDate){if(0<p.maxDays&&_(t,p.start)>p.maxDays)return!1;if(0<p.minDays&&_(t,p.start)<p.minDays)return!1;if(p.selectForward&&t<p.start)return!1;if(p.selectBackward&&t>p.start)return!1;if(p.beforeShowDay&&"function"==typeof p.beforeShowDay){for(var e=!0,n=t;1<_(n,p.start);){if(!p.beforeShowDay(new Date(n))[0]){e=!1;break}if(Math.abs(n-p.start)<864e5)break;n>p.start&&(n-=864e5),n<p.start&&(n+=864e5)}if(!e)return!1}}return!0}function D(){return l.find(".day.invalid.tmp").removeClass("tmp invalid").addClass("valid"),p.start&&!p.end&&l.find(".day.toMonth.valid").each(function(){v(parseInt(q(this).attr("time"),10))?q(this).addClass("valid tmp").removeClass("invalid"):q(this).addClass("invalid tmp").removeClass("valid")}),1}function b(t){var e,n,i,a,o,s=parseInt(t.attr("time")),r="";t.hasClass("has-tooltip")&&t.attr("data-tooltip")?r='<span class="tooltip-content">'+t.attr("data-tooltip")+"</span>":t.hasClass("invalid")||(p.singleDate?(l.find(".day.hovering").removeClass("hovering"),t.addClass("hovering")):(l.find(".day").each(function(){var t=parseInt(q(this).attr("time"));p.start,p.end;t==s?q(this).addClass("hovering"):q(this).removeClass("hovering"),p.start&&!p.end&&(p.start<t&&t<=s||p.start>t&&s<=t)?q(this).addClass("hovering"):q(this).removeClass("hovering")}),p.start&&!p.end&&(n=_(s,p.start),p.hoveringTooltip&&("function"==typeof p.hoveringTooltip?r=p.hoveringTooltip(n,p.start,s):!0===p.hoveringTooltip&&1<n&&(r=n+" "+V("days")))))),r?(e=t.offset(),n=l.offset(),i=e.left-n.left,a=e.top-n.top,i+=t.width()/2,t=(o=l.find(".date-range-length-tip")).css({visibility:"hidden",display:"none"}).html(r).width(),r=o.height(),i-=t/2,a-=r,setTimeout(function(){o.css({left:i,top:a,display:"block",visibility:"visible"})},10)):l.find(".date-range-length-tip").hide()}function A(){l.find(".day.hovering").removeClass("hovering"),l.find(".date-range-length-tip").hide()}function I(t){var e=t.val(),n=t.attr("name"),i=t.parents("table").hasClass("month1")?"month1":"month2",a="month1"==i?"month2":"month1",o=!!p.startDate&&K(p.startDate),t=!!p.endDate&&K(p.endDate),e=K(p[i])[n](e);o&&e.isSameOrBefore(o)&&(e=o.add("month2"==i?1:0,"month")),N(e=t&&e.isSameOrAfter(t)?t.add(p.singleMonth||"month1"!=i?0:-1,"month"):e,i),"month1"==i?(p.stickyMonths||K(e).isSameOrAfter(p[a],"month"))&&N(K(e).add(1,"month"),a):(p.stickyMonths||K(e).isSameOrBefore(p[a],"month"))&&N(K(e).add(-1,"month"),a),z()}function M(){!0===p.singleDate?i&&p.start&&p.autoClose&&P():i&&p.start&&p.end&&p.autoClose&&P()}function w(){var t=Math.ceil((p.end-p.start)/864e5)+1;p.singleDate?p.start&&!p.end?l.find(".drp_top-bar").removeClass("error").addClass("normal"):l.find(".drp_top-bar").removeClass("error").removeClass("normal"):p.maxDays&&t>p.maxDays?(p.start=!1,p.end=!1,l.find(".day").removeClass("checked"),l.find(".drp_top-bar").removeClass("normal").addClass("error").find(".error-top").html(V("less-than").replace("%d",p.maxDays))):p.minDays&&t<p.minDays?(p.start=!1,p.end=!1,l.find(".day").removeClass("checked"),l.find(".drp_top-bar").removeClass("normal").addClass("error").find(".error-top").html(V("more-than").replace("%d",p.minDays))):p.start||p.end?l.find(".drp_top-bar").removeClass("error").addClass("normal"):l.find(".drp_top-bar").removeClass("error").removeClass("normal"),p.singleDate&&p.start&&!p.end||!p.singleDate&&p.start&&p.end?l.find(".apply-btn").removeClass("disabled"):l.find(".apply-btn").addClass("disabled"),p.batchMode&&(p.start&&p.startDate&&U(p.start,p.startDate)<0||p.end&&p.endDate&&0<U(p.end,p.endDate))&&(p.start=!1,p.end=!1,l.find(".day").removeClass("checked"))}function C(t,e){var n;l.find(".start-day").html("..."),l.find(".end-day").html("..."),l.find(".selected-days").hide(),p.start&&l.find(".start-day").html(L(new Date(parseInt(p.start)))),p.end&&l.find(".end-day").html(L(new Date(parseInt(p.end)))),p.start&&p.singleDate?(l.find(".apply-btn").removeClass("disabled"),n=L(new Date(p.start)),p.setValue.call(s,n,L(new Date(p.start)),L(new Date(p.end))),i&&!e&&q(o).trigger("datepicker-change",{value:n,date1:new Date(p.start)})):p.start&&p.end?(l.find(".selected-days").show().find(".selected-days-num").html(_(p.end,p.start)),l.find(".apply-btn").removeClass("disabled"),n=L(new Date(p.start))+p.separator+L(new Date(p.end)),p.setValue.call(s,n,L(new Date(p.start)),L(new Date(p.end))),i&&!e&&q(o).trigger("datepicker-change",{value:n,date1:new Date(p.start),date2:new Date(p.end)})):t?l.find(".apply-btn").removeClass("disabled"):l.find(".apply-btn").addClass("disabled")}function _(t,e){return Math.abs(K(t).diff(K(e),"d"))+1}function T(t,e,n){t.getTime()>e.getTime()&&(i=e,e=t,t=i,i=null);var i=!0;if(p.startDate&&U(t,p.startDate)<0&&(i=!1),!(i=p.endDate&&0<U(e,p.endDate)?!1:i))return N(p.startDate,"month1"),N(B(p.startDate),"month2"),void z();p.start=t.getTime(),p.end=e.getTime(),p.time.enabled&&(d("time1",t),d("time2",e)),(p.stickyMonths||0<U(t,e)&&0===F(t,e))&&(p.lookBehind?t=H(e):e=B(t)),p.stickyMonths&&!1!==p.endDate&&0<F(e,p.endDate)&&(t=H(t),e=H(e)),p.stickyMonths||0===F(t,e)&&(p.lookBehind?t=H(e):e=B(t)),N(t,"month1"),N(e,"month2"),z(),w(),C(!1,n),M()}function k(t){var e=!0;p.startDate&&U(t,p.startDate)<0&&(e=!1),(e=!(p.endDate&&0<U(t,p.endDate))&&e)?(p.start=t.getTime(),p.time.enabled&&d("time1",t),N(t,"month1"),!0!==p.singleMonth&&N(B(t),"month2"),z(),C(),M()):N(p.startDate,"month1")}function x(){(p.start||p.end)&&(l.find(".day").each(function(){var t=parseInt(q(this).attr("time")),e=p.start,n=p.end;p.time.enabled&&(t=K(t).startOf("day").valueOf(),e=K(e||K().valueOf()).startOf("day").valueOf(),n=K(n||K().valueOf()).startOf("day").valueOf()),p.start&&p.end&&t<=n&&e<=t||p.start&&!p.end&&K(e).format("YYYY-MM-DD")==K(t).format("YYYY-MM-DD")?q(this).addClass("checked"):q(this).removeClass("checked"),p.start&&K(e).format("YYYY-MM-DD")==K(t).format("YYYY-MM-DD")?q(this).addClass("first-date-selected"):q(this).removeClass("first-date-selected"),p.end&&K(n).format("YYYY-MM-DD")==K(t).format("YYYY-MM-DD")?q(this).addClass("last-date-selected"):q(this).removeClass("last-date-selected")}),l.find(".week-number").each(function(){q(this).attr("data-start-time")==p.startWeek&&q(this).addClass("week-number-selected")}))}function N(t,e){var n=function(t,e){var n=(t=K(t)).get("month"),i='<div class="month-element">'+O(n)+"</div>";if(!p.monthSelect)return i;var a=!!p.startDate&&K(p.startDate).add(p.singleMonth||"month2"!==e?0:1,"month"),o=!!p.endDate&&K(p.endDate).add(p.singleMonth||"month1"!==e?0:-1,"month"),e=a&&t.isSame(a,"year")?a.get("month"):0,a=o&&t.isSame(o,"year")?o.get("month"):11,t=Math.min(e,n),o=Math.max(a,n);return t!==o?E("month",S({minSelectable:e,maxSelectable:a,minVisible:t,maxVisible:o},n,O)):i}(t=K(t).toDate(),e),i=function(t,e){var n=(t=K(t)).get("year"),i='<div class="month-element">'+n+"</div>";if(!p.yearSelect)return i;var a=p.yearSelect&&"function"==typeof p.yearSelect,o=!!p.startDate&&K(p.startDate).add(p.singleMonth||"month2"!==e?0:1,"month"),t=!!p.endDate&&K(p.endDate).add(p.singleMonth||"month1"!==e?0:-1,"month"),e=a?p.yearSelect(n):p.yearSelect.slice(),a=o?Math.max(e[0],o.get("year")):Math.min(e[0],n),o=t?Math.min(e[1],t.get("year")):Math.max(e[1],n),t=Math.min(a,n),e=Math.max(o,n);return t!==e?E("year",S({minSelectable:a,maxSelectable:o,minVisible:t,maxVisible:e},n)):i}(t,e);l.find("."+e+" .month-name").html(n+" "+i),l.find("."+e+" tbody").html(function(t){var e=[];t.setDate(1);new Date(t.getTime()-864e5);var n,i,a=new Date,o=t.getDay();0===o&&"monday"===p.startOfWeek&&(o=7);if(0<o)for(var s=o;0<s;s--){var r=new Date(t.getTime()-864e5*s);i=v(r.getTime()),p.startDate&&U(r,p.startDate)<0&&(i=!1),p.endDate&&0<U(r,p.endDate)&&(i=!1),e.push({date:r,type:"lastMonth",day:r.getDate(),time:r.getTime(),valid:i})}for(var l=t.getMonth(),s=0;s<40;s++)n=K(t).add(s,"days").toDate(),i=v(n.getTime()),p.startDate&&U(n,p.startDate)<0&&(i=!1),p.endDate&&0<U(n,p.endDate)&&(i=!1),e.push({date:n,type:n.getMonth()==l?"toMonth":"nextMonth",day:n.getDate(),time:n.getTime(),valid:i});for(var c=[],u=0;u<6&&"nextMonth"!=e[7*u].type;u++){c.push("<tr>");for(r=0;r<7;r++){var d="monday"==p.startOfWeek?r+1:r;n=e[7*u+d];var f=K(n.time).format("L")==K(a).format("L");n.extraClass="",n.tooltip="",n.valid&&p.beforeShowDay&&"function"==typeof p.beforeShowDay&&(d=p.beforeShowDay(K(n.time).toDate()),n.valid=d[0],n.extraClass=d[1]||"",n.tooltip=d[2]||"",""!==n.tooltip&&(n.extraClass+=" has-tooltip "));f={time:n.time,"data-tooltip":n.tooltip,class:"day "+n.type+" "+n.extraClass+" "+(n.valid?"valid":"invalid")+" "+(f?"real-today":"")};0===r&&p.showWeekNumbers&&c.push('<td><div class="week-number" data-start-time="'+n.time+'">'+p.getWeekNumber(n.date)+"</div></td>"),c.push("<td "+W({},p.dayTdAttrs,n)+"><div "+W(f,p.dayDivAttrs,n)+">"+function(t,e){return p.showDateFilter&&"function"==typeof p.showDateFilter?p.showDateFilter(t,e):e}(n.time,n.day)+"</div></td>")}c.push("</tr>")}return c.join("")}(t)),p[e]=t,D(),l.find(".day").off("click").click(function(t){y(q(this))}),l.find(".day").off("mouseenter").mouseenter(function(t){b(q(this))}),l.find(".day").off("mouseleave").mouseleave(function(t){l.find(".date-range-length-tip").hide(),p.singleDate&&A()}),l.find(".week-number").off("click").click(function(t){var e,n,i,a;e=q(this),a=parseInt(e.attr("data-start-time"),10),p.startWeek?(l.find(".week-number-selected").removeClass("week-number-selected"),n=new Date(a<p.startWeek?a:p.startWeek),i=new Date(a<p.startWeek?p.startWeek:a),p.startWeek=!1,p.start=K(n).day("monday"==p.startOfWeek?1:0).valueOf(),p.end=K(i).day("monday"==p.startOfWeek?7:6).valueOf()):(p.startWeek=a,e.addClass("week-number-selected"),n=new Date(a),p.start=K(n).day("monday"==p.startOfWeek?1:0).valueOf(),p.end=K(n).day("monday"==p.startOfWeek?7:6).valueOf()),D(),w(),C(),x(),M()}),l.find(".month").off("change").change(function(t){I(q(this))}),l.find(".year").off("change").change(function(t){I(q(this))})}function S(t,e,n){var i=[];n=n||function(t){return t};for(var a=t.minVisible;a<=t.maxVisible;a++)i.push({value:a,text:n(a),selected:a===e,disabled:a<t.minSelectable||a>t.maxSelectable});return i}function E(t,e){for(var n,i='<div class="select-wrapper"><select class="'+t+'" name="'+t+'">',a=0,o=e.length;a<o;a++){var s=e[a];i+='<option value="'+s.value+'"'+(s.selected?" selected":"")+(s.disabled?" disabled":"")+">"+s.text+"</option>",s.selected&&(n=s.text)}return i+="</select>"+n+"</div>"}function j(t,e){l.find("."+e).append("<div><span>"+V("Time")+': <span class="hour-val">00</span>:<span class="minute-val">00</span></span></div><div class="hour"><label>'+V("Hour")+': <input type="range" class="hour-range" name="hour" min="0" max="23"></label></div><div class="minute"><label>'+V("Minute")+': <input type="range" class="minute-range" name="minute" min="0" max="59"></label></div>'),d(e,t)}function O(t){return V("month-name")[t]}function L(t){return K(t).format(p.format)}function z(){x();var t=parseInt(K(p.month1).format("YYYYMM")),e=parseInt(K(p.month2).format("YYYYMM")),t=Math.abs(t-e);1<t&&89!=t?l.addClass("has-gap").removeClass("no-gap").find(".gap").css("visibility","visible"):l.removeClass("has-gap").addClass("no-gap").find(".gap").css("visibility","hidden");e=l.find("table.month1").height(),t=l.find("table.month2").height();l.find(".gap").height(Math.max(e,t)+10)}function P(){var t;p.alwaysOpen||(t=function(){q(o).data("date-picker-opened",!1),q(o).trigger("datepicker-closed",{relatedTarget:l})},p.customCloseAnimation?p.customCloseAnimation.call(l.get(0),t):q(l).slideUp(p.duration,t),q(o).trigger("datepicker-close",{relatedTarget:l}))}function R(){N(p.month1,"month1"),N(p.month2,"month2")}function F(t,e){e=parseInt(K(t).format("YYYYMM"))-parseInt(K(e).format("YYYYMM"));return 0<e?1:0==e?0:-1}function U(t,e){e=parseInt(K(t).format("YYYYMMDD"))-parseInt(K(e).format("YYYYMMDD"));return 0<e?1:0==e?0:-1}function B(t){return K(t).add(1,"months").toDate()}function H(t){return K(t).add(-1,"months").toDate()}function Y(){var t=p.showWeekNumbers?"<th>"+V("week-number")+"</th>":"";return"monday"==p.startOfWeek?t+"<th>"+V("week-1")+"</th><th>"+V("week-2")+"</th><th>"+V("week-3")+"</th><th>"+V("week-4")+"</th><th>"+V("week-5")+"</th><th>"+V("week-6")+"</th><th>"+V("week-7")+"</th>":t+"<th>"+V("week-7")+"</th><th>"+V("week-1")+"</th><th>"+V("week-2")+"</th><th>"+V("week-3")+"</th><th>"+V("week-4")+"</th><th>"+V("week-5")+"</th><th>"+V("week-6")+"</th>"}function Q(t){return t=K(t),p.startDate&&t.endOf("month").isBefore(p.startDate)||!(!p.endDate||!t.startOf("month").isAfter(p.endDate))}function W(t,e,a){var o=q.extend(!0,{},t);q.each(e,function(t,e){var n,i=e(a);for(n in i)o.hasOwnProperty(n)?o[n]+=i[n]:o[n]=i[n]});var n,i="";for(n in o)o.hasOwnProperty(n)&&(i+=n+'="'+o[n]+'" ');return i}function V(t){var e=t.toLowerCase(),n=t in a?a[t]:e in a?a[e]:null,i=q.dateRangePickerLanguages.default;return n=null==n?t in i?i[t]:e in i?i[e]:"":n}function G(){var t=p.defaultTime||new Date;return p.lookBehind?(p.startDate&&F(t,p.startDate)<0&&(t=B(K(p.startDate).toDate())),p.endDate&&0<F(t,p.endDate)&&(t=K(p.endDate).toDate())):(p.startDate&&F(t,p.startDate)<0&&(t=K(p.startDate).toDate()),p.endDate&&0<F(B(t),p.endDate)&&(t=H(K(p.endDate).toDate()))),p.singleDate&&(p.startDate&&F(t,p.startDate)<0&&(t=K(p.startDate).toDate()),p.endDate&&0<F(t,p.endDate)&&(t=K(p.endDate).toDate())),t}function Z(t){t=t||G(),p.lookBehind?(N(H(t),"month1"),N(t,"month2")):(N(t,"month1"),N(B(t),"month2")),p.singleDate&&N(t,"month1"),x(),z()}function J(t){var e;e=t,(t=o[0]).contains(e.target)||e.target==t||null!=t.childNodes&&0<=q.inArray(e.target,t.childNodes)||l.is(":visible")&&P()}}}),function(){var I,M=window.jQuery,a=M(window),w=M(document),e="http://www.w3.org/2000/svg",C="SVGAngle"in window&&((n=document.createElement("div")).innerHTML="<svg/>",t=(n.firstChild&&n.firstChild.namespaceURI)==e,n.innerHTML="",t),t="transition"in(n=document.createElement("div").style)||"WebkitTransition"in n||"MozTransition"in n||"msTransition"in n||"OTransition"in n,n="ontouchstart"in window,_="mousedown"+(n?" touchstart":""),T="mousemove.clockpicker"+(n?" touchmove.clockpicker":""),k="mouseup.clockpicker"+(n?" touchend.clockpicker":""),c=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null;function x(t){return document.createElementNS(e,t)}function N(t){return(t<10?"0":"")+t}var S=0;var E=t?350:1,j=['<div class="popover clockpicker-popover">','<div class="arrow"></div>','<div class="popover-title">','<span class="clockpicker-span-hours text-primary"></span>'," : ",'<span class="clockpicker-span-minutes"></span>','<span class="clockpicker-span-am-pm"></span>',"</div>",'<div class="popover-content">','<div class="clockpicker-plate">','<div class="clockpicker-canvas"></div>','<div class="clockpicker-dial clockpicker-hours"></div>','<div class="clockpicker-dial clockpicker-minutes clockpicker-dial-out"></div>',"</div>",'<span class="clockpicker-am-pm-block">',"</span>","</div>","</div>"].join("");function o(t,u){var e,n,i=M(j),d=i.find(".clockpicker-plate"),a=i.find(".clockpicker-hours"),o=i.find(".clockpicker-minutes"),s=i.find(".clockpicker-am-pm-block"),r="INPUT"===t.prop("tagName"),l=r?t:t.find("input"),c=t.find(".input-group-addon"),f=this;this.id=(n=++S+"",(e="cp")?e+n:n),this.element=t,this.options=u,this.isAppended=!1,this.isShown=!1,this.currentView="hours",this.isInput=r,this.input=l,this.addon=c,this.popover=i,this.plate=d,this.hoursView=a,this.minutesView=o,this.amPmBlock=s,this.spanHours=i.find(".clockpicker-span-hours"),this.spanMinutes=i.find(".clockpicker-span-minutes"),this.spanAmPm=i.find(".clockpicker-span-am-pm"),this.amOrPm="PM",u.twelvehour&&(m=['<div class="clockpicker-am-pm-block">','<button type="button" class="btn btn-sm btn-default clockpicker-button clockpicker-am-button">',"AM</button>",'<button type="button" class="btn btn-sm btn-default clockpicker-button clockpicker-pm-button">',"PM</button>","</div>"].join(""),M(m),M('<button type="button" class="btn btn-sm btn-default clockpicker-button am-button">AM</button>').on("click",function(){f.amOrPm="AM",M(".clockpicker-span-am-pm").empty().append("AM")}).appendTo(this.amPmBlock),M('<button type="button" class="btn btn-sm btn-default clockpicker-button pm-button">PM</button>').on("click",function(){f.amOrPm="PM",M(".clockpicker-span-am-pm").empty().append("PM")}).appendTo(this.amPmBlock)),u.autoclose||M('<button type="button" class="btn btn-sm btn-default btn-block clockpicker-button">'+u.donetext+"</button>").click(M.proxy(this.done,this)).appendTo(i),"top"!==u.placement&&"bottom"!==u.placement||"top"!==u.align&&"bottom"!==u.align||(u.align="left"),"left"!==u.placement&&"right"!==u.placement||"left"!==u.align&&"right"!==u.align||(u.align="top"),i.addClass(u.placement),i.addClass("clockpicker-align-"+u.align),this.spanHours.click(M.proxy(this.toggleView,this,"hours")),this.spanMinutes.click(M.proxy(this.toggleView,this,"minutes")),l.on("focus.clockpicker click.clockpicker",M.proxy(this.show,this)),c.on("click.clockpicker",M.proxy(this.toggle,this));var p,h,m,g=M('<div class="clockpicker-tick"></div>');if(u.twelvehour)for(p=1;p<13;p+=1)y=g.clone(),v=p/6*Math.PI,b=80,y.css("font-size","120%"),y.css({left:100+Math.sin(v)*b-13,top:100-Math.cos(v)*b-13}),y.html(0===p?"00":p),a.append(y),y.on(_,A);else for(p=0;p<24;p+=1){var y=g.clone(),v=p/6*Math.PI,D=0<p&&p<13,b=D?54:80;y.css({left:100+Math.sin(v)*b-13,top:100-Math.cos(v)*b-13}),D&&y.css("font-size","120%"),y.html(0===p?"00":p),a.append(y),y.on(_,A)}for(p=0;p<60;p+=5)y=g.clone(),v=p/30*Math.PI,y.css({left:100+80*Math.sin(v)-13,top:100-80*Math.cos(v)-13}),y.css("font-size","120%"),y.html(N(p)),o.append(y),y.on(_,A);function A(t,i){var a,e=d.offset(),n=/^touch/.test(t.type),o=e.left+100,s=e.top+100,r=(n?t.originalEvent.touches[0]:t).pageX-o,l=(n?t.originalEvent.touches[0]:t).pageY-s,n=Math.sqrt(r*r+l*l),c=!1;i&&(n<67||93<n)||(t.preventDefault(),a=setTimeout(function(){I.addClass("clockpicker-moving")},200),C&&d.append(f.canvas),f.setHand(r,l,!i,!0),w.off(T).on(T,function(t){t.preventDefault();var e=/^touch/.test(t.type),n=(e?t.originalEvent.touches[0]:t).pageX-o,t=(e?t.originalEvent.touches[0]:t).pageY-s;!c&&n==r&&t==l||(c=!0,f.setHand(n,t,!1,!0))}),w.off(k).on(k,function(t){w.off(k),t.preventDefault();var e=/^touch/.test(t.type),n=(e?t.originalEvent.changedTouches[0]:t).pageX-o,t=(e?t.originalEvent.changedTouches[0]:t).pageY-s;(i||c)&&n==r&&t==l&&f.setHand(n,t),"hours"===f.currentView?f.toggleView("minutes",E/2):u.autoclose&&(f.minutesView.addClass("clockpicker-dial-out"),setTimeout(function(){f.done()},E/2)),d.prepend(h),clearTimeout(a),I.removeClass("clockpicker-moving"),w.off(T)}))}d.on(_,function(t){0===M(t.target).closest(".clockpicker-tick").length&&A(t,!0)}),C&&(h=i.find(".clockpicker-canvas"),(r=x("svg")).setAttribute("class","clockpicker-svg"),r.setAttribute("width",200),r.setAttribute("height",200),(s=x("g")).setAttribute("transform","translate(100,100)"),(m=x("circle")).setAttribute("class","clockpicker-canvas-bearing"),m.setAttribute("cx",0),m.setAttribute("cy",0),m.setAttribute("r",2),(l=x("line")).setAttribute("x1",0),l.setAttribute("y1",0),(c=x("circle")).setAttribute("class","clockpicker-canvas-bg"),c.setAttribute("r",13),(i=x("circle")).setAttribute("class","clockpicker-canvas-fg"),i.setAttribute("r",3.5),s.appendChild(l),s.appendChild(c),s.appendChild(i),s.appendChild(m),r.appendChild(s),h.append(r),this.hand=l,this.bg=c,this.fg=i,this.bearing=m,this.g=s,this.canvas=h),O(this.options.init,this)}function O(t,e){t&&"function"==typeof t&&t(e)}o.DEFAULTS={default:"",fromnow:0,placement:"bottom",align:"left",donetext:"完成",autoclose:!1,twelvehour:!1,vibrate:!0},o.prototype.toggle=function(){this[this.isShown?"hide":"show"]()},o.prototype.locate=function(){var t=this.element,e=this.popover,n=t.offset(),i=t.outerWidth(),a=t.outerHeight(),o=this.options.placement,t=this.options.align,s={};switch(e.show(),o){case"bottom":s.top=n.top+a;break;case"right":s.left=n.left+i;break;case"top":s.top=n.top-e.outerHeight();break;case"left":s.left=n.left-e.outerWidth()}switch(t){case"left":s.left=n.left;break;case"right":s.left=n.left+i-e.outerWidth();break;case"top":s.top=n.top;break;case"bottom":s.top=n.top+a-e.outerHeight()}e.css(s)},o.prototype.show=function(t){var e,n,i;this.isShown||(O(this.options.beforeShow),(e=this).isAppended||(I=(this.options.parentEl?M(this.options.parentEl):M(document.body)).append(this.popover),a.on("resize.clockpicker"+this.id,function(){e.isShown&&e.locate()}),this.isAppended=!0),"now"===(i=((this.input.prop("value")||this.options.default||"")+"").split(":"))[0]&&(i=[(n=new Date(+new Date+this.options.fromnow)).getHours(),n.getMinutes()]),this.hours=+i[0]||0,this.minutes=+i[1]||0,this.spanHours.html(N(this.hours)),this.spanMinutes.html(N(this.minutes)),this.toggleView("hours"),this.locate(),this.isShown=!0,w.on("click.clockpicker."+this.id+" focusin.clockpicker."+this.id,function(t){t=M(t.target);(t.hasClass("closeButton")||t.hasClass("confirmBTN"))&&0===t.closest(e.popover).length&&0===t.closest(e.addon).length&&0===t.closest(e.input).length&&(M(".kore-action-sheet").animate({height:"toggle"}),M(".kore-action-sheet").addClass("hide"),e.hide())}),w.on("keyup.clockpicker."+this.id,function(t){27===t.keyCode&&e.hide()}),O(this.options.afterShow))},o.prototype.hide=function(){O(this.options.beforeHide),this.isShown=!1,w.off("click.clockpicker."+this.id+" focusin.clockpicker."+this.id),w.off("keyup.clockpicker."+this.id),this.popover.hide(),O(this.options.afterHide)},o.prototype.toggleView=function(t,e){var n=!1;"minutes"===t&&"visible"===M(this.hoursView).css("visibility")&&(O(this.options.beforeHourSelect),n=!0);var i="hours"===t,a=i?this.hoursView:this.minutesView,o=i?this.minutesView:this.hoursView;this.currentView=t,this.spanHours.toggleClass("text-primary",i),this.spanMinutes.toggleClass("text-primary",!i),o.addClass("clockpicker-dial-out"),a.css("visibility","visible").removeClass("clockpicker-dial-out"),this.resetClock(e),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){o.css("visibility","hidden")},E),n&&O(this.options.afterHourSelect)},o.prototype.resetClock=function(t){var e=this.currentView,n=this[e],i="hours"===e,e=n*(Math.PI/(i?6:30)),n=i&&0<n&&n<13?54:80,a=Math.sin(e)*n,o=-Math.cos(e)*n,s=this;C&&t?(s.canvas.addClass("clockpicker-canvas-out"),setTimeout(function(){s.canvas.removeClass("clockpicker-canvas-out"),s.setHand(a,o)},t)):this.setHand(a,o)},o.prototype.setHand=function(t,e,n,i){var a,o=Math.atan2(t,-e),s="hours"===this.currentView,r=Math.PI/(s||n?6:30),l=Math.sqrt(t*t+e*e),t=this.options,e=s&&l<67,l=e?54:80;t.twelvehour&&(l=80),o<0&&(o=2*Math.PI+o),o=(a=Math.round(o/r))*r,t.twelvehour?s?0===a&&(a=12):(n&&(a*=5),60===a&&(a=0)):s?(12===a&&(a=0),a=e?0===a?12:a:0===a?0:a+12):(n&&(a*=5),60===a&&(a=0)),this[this.currentView]!==a&&c&&this.options.vibrate&&(this.vibrateTimer||(navigator[c](10),this.vibrateTimer=setTimeout(M.proxy(function(){this.vibrateTimer=null},this),100))),this[this.currentView]=a,this[s?"spanHours":"spanMinutes"].html(N(a)),C?(i||!s&&a%5?(this.g.insertBefore(this.hand,this.bearing),this.g.insertBefore(this.bg,this.fg),this.bg.setAttribute("class","clockpicker-canvas-bg clockpicker-canvas-bg-trans")):(this.g.insertBefore(this.hand,this.bg),this.g.insertBefore(this.fg,this.bg),this.bg.setAttribute("class","clockpicker-canvas-bg")),i=Math.sin(o)*l,l=-Math.cos(o)*l,this.hand.setAttribute("x2",i),this.hand.setAttribute("y2",l),this.bg.setAttribute("cx",i),this.bg.setAttribute("cy",l),this.fg.setAttribute("cx",i),this.fg.setAttribute("cy",l)):this[s?"hoursView":"minutesView"].find(".clockpicker-tick").each(function(){var t=M(this);t.toggleClass("active",a===+t.html())})},o.prototype.done=function(){O(this.options.beforeDone,this),this.hide();var t=this.input.prop("value"),e=N(this.hours)+":"+N(this.minutes);this.options.twelvehour&&(e+=this.amOrPm),this.input.prop("value",e),e!==t&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change")),this.options.autoclose&&this.input.trigger("blur"),O(this.options.afterDone,this)},o.prototype.remove=function(){this.element.removeData("clockpicker"),this.input.off("focus.clockpicker click.clockpicker"),this.addon.off("click.clockpicker"),this.isShown&&this.hide(),this.isAppended&&(a.off("resize.clockpicker"+this.id),this.popover.remove())},M.fn.clockpicker=function(n){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=M(this),e=t.data("clockpicker");e?"function"==typeof e[n]&&e[n].apply(e,i):(e=M.extend({},o.DEFAULTS,t.data(),"object"==typeof n&&n),t.data("clockpicker",new o(t,e)))})}}(),function(l){function n(t){var e={dateRangeConfig:{alwaysOpen:!0,singleMonth:!0,showShortcuts:!1,showTopbar:!1,selectForward:!0,format:"DD-MM-YYYY",startDate:"",endDate:"",inline:!0,delimiter:"to"},daterangepicker:{title:"Please Choose"},dateConfig:{alwaysOpen:!0,singleMonth:!0,singleDate:!0,showShortcuts:!1,showTopbar:!1,format:"DD-MM-YYYY",startDate:"",endDate:"",inline:!0},datepicker:{title:"Please Choose"},clockPicker:{title:""}},n=[];n.push(t),n.push(e),this.mainConfig=n,this.pickerSubconfig=e,this.chatWindowInstance=n[0].chatWindowInstance,this.bottomSlider=n.bottomSlider,this.chatConfig=n[1];e=n[0].chatConfig.chatContainer;this._korePickers=e,chatContainerConfig.pickerMainConfig=n}n.prototype.showTaskMenuItems=function(t){var e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA8jSURBVHgB7d09bBzlFsbxM04qaEwBbYY6SDENLXYNEraRoCShRgppoCMxHdV1BLTgdEBhjIA6pqXBkUjNpIUCXwnoyHLOZsZZr/drduf9nP9P2uyGGG5y4/eZ837MmUJ6ant7UOrbhr7W19bEPl+xz4OBlEUh6/WXlYIcVPaD/t0O3/Xv194fPX48fLfXydFRcSo9VEgP1IN9Uwf6Nf0m2NRvAPv5ugBPner3xol+b5zo5wcaDhYKJ5K5LAPABrwO9m39eM1+Kgx2LKfSl4XAdxoIxxoIlWQmmwDQQW9X+Fc1xbc1xTcE6FhdIRxrGNzLpTpIOgB00Nv8/aZ+vC7M1+FXpa+7GgZHKVcGSQaAXe01iW/ra1OAwLQyONbvxXuHh8WBJCaZABi52r8vzOkRp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P+AAyt/6CuAvrDv9XqV/1gCC14BjGJtADmz7T17wE4MA78RVQA0mBYgM8Pna67avceFKAOgUZ8beEcIAqTJBr6V+/uhFvnmiToATD0tuC4EAdIR/cBvRB8ADQ0Cu7V4m6kBIpbMwG8kEwCjbI2gKOQdGpEiBjEu7i0qyQBo1NODbf1oh4lKAfyp9HUvpav9JEkHwCjrQqQVwXX9+Kq+bwjQMb3Kn+j31nc66I9TvNpPkk0AjLLKQN82tTp4Q98tDEoB2rMr+5G+HuigPwpxVt+1LANgnFUH+rZRVwbX6nf6FWLUqV7hK33/ya70+n6c44Af14sAmKTeVRhWB1oplPp+Rf/i7V00IMr6y0pBDir7Qf9+T/Xv1j7blf2RXtWbzyd9GOyT/AdA4Hc4mSKEhwAAAABJRU5ErkJggg==";return{tasks:[{title:"Get balance",icon:e,postback:{title:"Get my leave balance",value:"leaveintent"}},{title:"Change Password",icon:e,postback:{title:"change my password",value:"leaveintent"}},{title:"Pay Bill",icon:e,postback:{title:"Pay the bill",value:"leaveintent"}},{title:"Setup Balance Alert",icon:e,postback:{title:"Give alert message for balance",value:"leaveintent"}}],heading:"Choose Task"}},n.prototype.showRadioOptionMenuItems=function(t){return{radioOptions:[{title:"Shanmuga",value:"1234 4567 5678 6789",postback:{title:"Transaction Successful",value:"Payment Successful"}},{title:"Madhu",value:"1234 4567 5678 9876",postback:{title:"radioOptionDetails",value:"AccountData"}},{title:"Santhosh",value:"4678 1234 5678 9876",postback:{title:"Get my leave balance",value:"leaveintent"}},{title:"Manjula",value:"9876 1234 4567 5678",postback:{title:"Transaction Successful",value:"leaveintent"}},{title:"Ravi Kiran",value:"8976 5677 7946 2345",postback:{title:"radioOptionDetails",value:"leaveintent"}}]}},n.prototype.init=function(e){e=this.mainConfig,chatWindowInstance=this.chatWindowInstance,chatWindowInstance.config.pickersConfig.showDateRangePickerIcon&&(this.showDateRangeIconToFooter(),chatWindowInstance.config.chatContainer.on("click",".sdkRangeCalender.calenderBtn",function(t){n.prototype.showDateRangePicker(e)})),chatWindowInstance.config.pickersConfig.showDatePickerIcon&&(this.showDateIconToFooter(),chatWindowInstance.config.chatContainer.on("click",".sdkCalender.calenderBtn",function(t){n.prototype.showDatePicker(e)})),chatWindowInstance.config.pickersConfig.showClockPickerIcon&&(this.showClockIconToFooter(),chatWindowInstance.config.chatContainer.on("click",".sdkClock.clockBtn",function(t){n.prototype.showClockPicker(e)})),chatWindowInstance.config.pickersConfig.showradioOptionMenuPickerIcon&&(this.showAccountIconToFooter(),chatWindowInstance.config.chatContainer.on("click",".sdkAccount.accountBtn",function(t){n.prototype.showradioOptionsPicker(e)})),chatWindowInstance.config.pickersConfig.showTaskMenuPickerIcon&&(this.addTaskIconToFooter(),chatWindowInstance.config.chatContainer.on("click",".sdkMenu.menuBtn",function(t){n.prototype.showTaskPicker(e)}))},n.prototype.addSlider=function(){l(".kore-chat-window").remove(".kore-action-sheet");l(".kore-chat-window").append('<div class="kore-action-sheet hide">    <div class="actionSheetContainer"></div>    </div>')},n.prototype.bottomSlider=function(t,e){l(".kore-action-sheet").animate({height:"toggle"}),"hide"==t?(l(".kore-action-sheet").innerHTML="",l(".kore-action-sheet").addClass("hide")):(l(".kore-action-sheet").removeClass("hide"),l(".kore-action-sheet .actionSheetContainer").empty(),setTimeout(function(){l(".kore-action-sheet .actionSheetContainer").append(e)},200))},n.prototype.showradioOptionsPicker=function(t){_korePickers.find(".kore-action-sheet").length&&(_korePickers.find(".radioOptionsPickerContainer").remove(),_korePickers.find(".kore-action-sheet").remove()),this.addSlider(),accountData=this.showRadioOptionMenuItems(),_korePickers.find(".kore-action-sheet").append(this.getradioOptionsPickerContainer()),this.addAccountIconToFooter(),_korePickers.find(".radioOptionsPickerContainer").append(this.getradioOptionsPickerTemplate(accountData)),this.addradioOptionsMenuListener(t)},n.prototype.getradioOptionsPickerTemplate=function(t){var e=l('<div class="radioOptionMenuPicker"></div>');return t.radioOptions.forEach(function(t){t=l('<label class="radioButton"><div class="btnAccount">      <div class="radioValue">         <input type="radio" id="selectedValue" name="radio">         <span class="checkmark"></span>         </div>         <span class="radioOptionDetails">            <span class="radioOptionName" title="'+t.title+'" data-value="'+t.postback.value+'" data-title="'+t.postback.title+'">'+t.title+'</span>            <div class="radioOptionValue" title="'+t.value+'">'+t.value+"</div>         </span>    </div> </label>");e.append(t)}),e},n.prototype.addradioOptionsMenuListener=function(i){var a,o=this;_korePickers.find(".radioOptionsPickerContainer").removeClass("hide"),_korePickers.find(".TaskPickerContainer").addClass("hide"),_korePickers.find(".kore-action-sheet .dateRangePickerContainer").addClass("hide"),_korePickers.find(".clockPickerContainer").addClass("hide"),_korePickers.find(".listViewTmplContent").hide(),_korePickers.find(".list-template-sheet").hide(),_korePickers.find(".listTmplContent.advancedMultiSelect").hide(),_korePickers.find(".kore-action-sheet  .datePickerContainer").addClass("hide"),_korePickers.find(".radioOptionsPickerContainer .confirmBTN").css({display:"none"}),o.bottomSlider("show",_korePickers.find(".radioOptionsPickerContainer")),setTimeout(function(){_korePickers.find(".radioOptionsPickerContainer .confirmBTN").css({display:"block"})},300),_korePickers.find(".btnAccount").click(function(t){(a=l(t.currentTarget)).find(".checkmark").addClass("selected")}),_korePickers.find(".radioOptionsPickerContainer .confirmBTN").click(function(t){var e=a.find(".radioOptionName").attr("data-value"),n=a.find(".radioOptionName").attr("data-title");i[0].chatWindowInstance.sendMessage(l(".chatInputBox").text(e),n),_korePickers.find(".radioOptionsPickerContainer .confirmBTN").css({display:"block"}),o.bottomSlider("hide"),_korePickers.find(".kore-action-sheet").remove()}),_korePickers.find(".radioOptionsPickerContainer .closePicker").click(function(){_korePickers.find(".radioOptionsPickerContainer .confirmBTN").css({display:"none"}),o.bottomSlider("hide"),setTimeout(function(){_korePickers.find(".radioOptionsPickerContainer .confirmBTN").css({display:"block"})},100),_korePickers.find(".kore-action-sheet").remove()})},n.prototype.getAccountIconTemplate=function(){return'<div class="sdkFooterIcon account">     <button type="button"  class="sdkAccount accountBtn" title="AccountMenu">          <i class="accountIcon"></i>     </button>     </div>'},n.prototype.addAccountIconToFooter=function(){_korePickers.find(".radioOptionsPickerContainer").append(this.getAccountIconTemplate)},n.prototype.getradioOptionsPickerContainer=function(){return'<div class="radioOptionsPickerContainer hide">    <div class="radioOptionMenuHeader">       <button class="closePicker" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>       <label class="radioOptionHeading">Select an Account</label>    </div>    <div class="confirmBTN">Confirm</div>    </div>'},n.prototype.showAccountIconToFooter=function(){_korePickers=this._korePickers,_korePickers.find(".footerContainer").append(this.getAccountIconTemplate)},n.prototype.showTaskPicker=function(t){actionsData=this.showTaskMenuItems(),_korePickers.find(".kore-action-sheet").length&&(_korePickers.find(".TaskPickerContainer").remove(),_korePickers.find(".kore-action-sheet").remove()),this.addSlider(),_korePickers.find(".kore-action-sheet").append(this.getTaskPickerContainer()),_korePickers.find(".TaskPickerContainer").append(this.getTaskPickerTemplate(actionsData)),this.addTaskMenuListener(t)},n.prototype.getTaskPickerTemplate=function(t){var e=l('<div class="taskMenuPicker"></div>');return t.tasks.forEach(function(t){t=l('<div class="btnTask">        <span class="taskName" data-value="'+t.postback.value+'" data-title="'+t.postback.title+'" title="'+t.title+'">'+t.title+'</span>        <div class="imageIcon"> <img src="'+t.icon+'" class="displayIcon"></div>        </div>');e.append(t)}),e},n.prototype.addTaskMenuListener=function(n){var i=this;_korePickers.find(".TaskPickerContainer .searchInput").hide(),_korePickers.find(".TaskPickerContainer").removeClass("hide"),_korePickers.find(".radioOptionsPickerContainer").addClass("hide"),_korePickers.find(".kore-action-sheet .dateRangePickerContainer").addClass("hide"),_korePickers.find(".clockPickerContainer").addClass("hide"),_korePickers.find(".listViewTmplContent").hide(),_korePickers.find(".list-template-sheet").hide(),_korePickers.find(".listTmplContent.advancedMultiSelect").hide(),_korePickers.find(".kore-action-sheet  .datePickerContainer").addClass("hide"),i.bottomSlider("show",_korePickers.find(".TaskPickerContainer")),_korePickers.find(".TaskPickerContainer .btnTask").click(function(t){var e=l(t.currentTarget).find(".taskName").text();_korePickers.find(".footerContainer.pos-relative .chatInputBox").text(e);e=l(t.currentTarget).find(".taskName").attr("data-value"),t=l(t.currentTarget).find(".taskName").attr("data-title");n[0].chatWindowInstance.sendMessage(l(".chatInputBox").text(e),t),i.bottomSlider("hide"),_korePickers.find(".kore-action-sheet").remove()}),_korePickers.find(".TaskPickerContainer .closeSheet").click(function(){i.bottomSlider("hide"),_korePickers.find(".kore-action-sheet").remove()})},n.prototype.getTaskIconTemplate=function(){return'<div class="sdkFooterIcon menu">     <button type="button"  class="sdkMenu menuBtn" title="TaskMenu">          <i class="menuIcon"></i>     </button>     </div>'},n.prototype.addTaskIconToFooter=function(){_korePickers=this._korePickers,_korePickers.find(".footerContainer").append(this.getTaskIconTemplate)},n.prototype.getTaskPickerContainer=function(){return'<div class="TaskPickerContainer hide">    <div class="taskMenuHeader">         <button class="closeSheet" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>          <input class="searchInput" placeholder="Write a reply">       <label class="taskHeading"> Choose Tasks</label>    </div>'},n.prototype.showDateRangePicker=function(t){t&&t.length&&t[0]&&t[0].chatConfig&&t[0].chatConfig.chatContainer&&(_korePickers=t[0].chatConfig.chatContainer),_korePickers.find(".kore-action-sheet").length&&(_korePickers.find(".kore-action-sheet .dateRangePickerContainer").remove(),_korePickers.find(".kore-action-sheet").remove()),this.addSlider(),_korePickers.find(".kore-action-sheet").append(this.getdateRangePickerContainer),this.addDateRangeIconToFooter();var e={alwaysOpen:!0,singleMonth:!0,showShortcuts:!1,showTopbar:!1,format:t[1].dateRangeConfig.format,startDate:t[1].dateRangeConfig.startDate,endDate:t[1].dateRangeConfig.endDate,delimiter:t[1].dateRangeConfig.delimiter,inline:!0,container:_korePickers.find(".kore-action-sheet .dateRangePickerContainer")};l.extend(e,t[1].dateRangeConfig),daterangeInput=_korePickers.find(".kore-action-sheet .dateRangePickerContainer #rangeCalenderBtn").dateRangePicker(e),this.addDateRangeListener(t)},n.prototype.addDateRangeListener=function(n){n&&n.length&&n[0]&&n[0].chatConfig&&n[0].chatConfig.chatContainer&&(_korePickers=n[0].chatConfig.chatContainer);var i,a,o=this,s=null,r=null;this.addClickEventRangeCalender(n),daterangeInput.bind("datepicker-first-date-selected",function(t,e){i=e.date1;var n=moment(i).format("YYYY"),e=moment(i).format("ddd,MMM DD");_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showStartdate .showStartYear").html(n),s=_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showStartdate .showStartMonth").html(e),r=null,_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showEnddate .showEndMonth").html("Select"),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showEnddate .showEndYear").css({opacity:"0"})}),daterangeInput.bind("datepicker-change",function(t,e){_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showEnddate .showEndYear").css({opacity:"1"}),a=e.date2;e=moment(a).format("YYYY");_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showEnddate .showEndYear").html(e);e=moment(a).format("ddd,MMM DD");r=_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showEnddate .showEndMonth").html(e)}),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .confirmBTN").click(function(){var t,e;null!==s&&null==r?_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showEnddate .showEndMonth").html("Select"):null!==r&&(t=moment(i).format(n[1].dateRangeConfig.format||"DD-MM-YYYY")||moment(),e=moment(a).format(n[1].dateRangeConfig.format||"DD-MM-YYYY")||moment(),e=n[1].dateRangeConfig.delimiter?t+" "+n[1].dateRangeConfig.delimiter+" "+e:t+" to "+e,_korePickers.find(".footerContainer.pos-relative .chatInputBox").text(e),(e=l.Event("keydown")).keyCode=13,_korePickers.find(".footerContainer.pos-relative .chatInputBox").trigger(e),o.bottomSlider("hide"),daterangeInput.data("dateRangePicker").clear(),daterangeInput.data("dateRangePicker").resetMonthsView(),_korePickers.find(".kore-action-sheet").remove())}),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .close-button").click(function(){o.bottomSlider("hide"),_korePickers.find(".kore-action-sheet").remove()})},n.prototype.addClickEventRangeCalender=function(t){t&&t.length&&t[0]&&t[0].chatConfig&&t[0].chatConfig.chatContainer&&(_korePickers=t[0].chatConfig.chatContainer);_korePickers.find(".kore-action-sheet .datePickerContainer").addClass("hide"),_korePickers.find(".kore-action-sheet .clockPickerContainer").addClass("hide"),_korePickers.find(".kore-action-sheet .radioOptionsPickerContainer").addClass("hide"),_korePickers.find(".kore-action-sheet .TaskPickerContainer").addClass("hide"),_korePickers.find(".listViewTmplContent").hide(),_korePickers.find(".list-template-sheet").hide(),_korePickers.find(".listTmplContent.advancedMultiSelect").hide(),_korePickers.find(".kore-action-sheet .dateRangePickerContainer #rangeCalenderBtn").data("dateRangePicker").open(),_korePickers.find(".cancelBtn").hide(),_korePickers.find(".drp-selected").hide(),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showStartdate .showStartMonth").html(moment().format("ddd,MMM DD")),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showStartdate .showStartYear").html((new Date).getFullYear()),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showEnddate .showEndYear").html((new Date).getFullYear()),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showEnddate .showEndMonth").html("Select"),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .showEnddate .showEndYear").css({opacity:"0"}),_korePickers.find(".kore-action-sheet .dateRangePickerContainer").removeClass("hide"),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .date-picker-wrapper").css({border:"0px","background-color":"white"}),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .month-wrapper").css({border:"0px"}),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .headerCalendar .choose").html(t[1].daterangepicker.title),this.bottomSlider("show",_korePickers.find(".dateRangePickerContainer"));_korePickers.find(".kore-action-sheet .dateRangePickerContainer .date-picker-wrapper .month-wrapper .real-today").addClass("first-date-selected"),_korePickers.find(".kore-action-sheet .dateRangePickerContainer .date-picker-wrapper .month-wrapper .real-today.first-date-selected").trigger("click"),moment()._d,_korePickers.find(".kore-action-sheet .dateRangePickerContainer .confirmBTN").css({display:"block"})},n.prototype.getDateRangeIconTemplate=function(){return'<div class="sdkFooterIcon rangeCalender">                     <button name="dates" class="sdkRangeCalender calenderBtn" title="RangeCalender">                         <i class="Rangecalender"></i>                     </button>                 </div>'},n.prototype.addDateRangeIconTemplate=function(){return'<div id="rangeCalenderBtn">    </div>'},n.prototype.showDateRangeIconToFooter=function(){_korePickers=this._korePickers,_korePickers.find(".footerContainer").append(this.getDateRangeIconTemplate)},n.prototype.addDateRangeIconToFooter=function(){_korePickers.find(".kore-action-sheet .dateRangePickerContainer").append(this.addDateRangeIconTemplate)},n.prototype.getdateRangePickerContainer=function(){return'<div class="dateRangePickerContainer hide">                <div class="headerCalendar">                    <span class="choose"></span>                    <button class="close-button" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>                </div>                <div class="showDatevalues">                    <div class="showStartdate">                        <div class="showStartYear"></div>                        <div class="showStartMonth"></div>                    </div>                    <div class="showEnddate">                        <div class="showEndYear"></div>                        <div class="showEndMonth"></div>                   </div>                </div>               <div class="confirmBTN">Confirm</div>           </div>'},n.prototype.showDatePicker=function(t){t&&t.length&&t[0]&&t[0].chatConfig&&t[0].chatConfig.chatContainer&&(_korePickers=t[0].chatConfig.chatContainer),_korePickers.find(".kore-action-sheet").length&&(_korePickers.find(".kore-action-sheet  .datePickerContainer").remove(),_korePickers.find(".kore-action-sheet").remove()),this.addSlider(),_korePickers.find(".kore-action-sheet").append(this.getdatePickerContainer),this.addDateIconToFooter();var e={alwaysOpen:!0,singleMonth:!0,showShortcuts:!1,singleDate:!0,showTopbar:!1,format:t[1].dateConfig.format,startDate:t[1].dateConfig.startDate,endDate:t[1].dateConfig.endDate,inline:!0,container:_korePickers.find(".kore-action-sheet .datePickerContainer")};l.extend(e,t[1].dateConfig),daterangeInput=_korePickers.find(".kore-action-sheet .datePickerContainer #calender").dateRangePicker(e),this.addDateListener(t)},n.prototype.addDateListener=function(e){e&&e.length&&e[0]&&e[0].chatConfig&&e[0].chatConfig.chatContainer&&(_korePickers=e[0].chatConfig.chatContainer);var i,n=this;this.addClickEventCalender(e),daterangeInput.bind("datepicker-first-date-selected",function(t,e){i=e.date1;var n=moment(i).format("YYYY"),e=moment(i).format("ddd,MMM DD");showStartYearValue=_korePickers.find(".kore-action-sheet .datePickerContainer .showStartdate .showStartYear").html(n),showStartDateValue=_korePickers.find(".kore-action-sheet .datePickerContainer .showStartdate .showStartMonth").html(e)}),_korePickers.find(".kore-action-sheet .datePickerContainer .confirmBTN").click(function(){var t=moment(i).format(e[1].dateConfig.format||"DD-MM-YYYY")||moment();_korePickers.find(".footerContainer.pos-relative .chatInputBox").text(t);t=l.Event("keydown");t.keyCode=13,_korePickers.find(".footerContainer.pos-relative .chatInputBox").trigger(t),n.bottomSlider("hide"),daterangeInput.data("dateRangePicker").clear(),daterangeInput.data("dateRangePicker").resetMonthsView(),_korePickers.find(".kore-action-sheet").remove()}),_korePickers.find(".kore-action-sheet .datePickerContainer .close-button").click(function(){n.bottomSlider("hide"),_korePickers.find(".kore-action-sheet").remove()})},n.prototype.addClickEventCalender=function(t){t&&t.length&&t[0]&&t[0].chatConfig&&t[0].chatConfig.chatContainer&&(_korePickers=t[0].chatConfig.chatContainer);_korePickers.find(".kore-action-sheet .dateRangePickerContainer").addClass("hide"),_korePickers.find(".kore-action-sheet .clockPickerContainer").addClass("hide"),_korePickers.find(".kore-action-sheet .radioOptionsPickerContainer").addClass("hide"),_korePickers.find(".kore-action-sheet .TaskPickerContainer").addClass("hide"),_korePickers.find(".listViewTmplContent").hide(),_korePickers.find(".list-template-sheet").hide(),_korePickers.find(".listTmplContent.advancedMultiSelect").hide(),_korePickers.find("#calender").data("dateRangePicker").open(),_korePickers.find(".cancelBtn").hide(),_korePickers.find(".drp-selected").hide(),_korePickers.find(".kore-action-sheet .datePickerContainer  .showStartdate .showStartMonth").html(moment().format("ddd,MMM DD")),_korePickers.find(".kore-action-sheet .datePickerContainer .showStartdate .showStartYear").html((new Date).getFullYear()),_korePickers.find(".kore-action-sheet  .datePickerContainer").removeClass("hide"),_korePickers.find(".kore-action-sheet  .datePickerContainer .date-picker-wrapper").css({border:"0px","background-color":"white"}),_korePickers.find(".kore-action-sheet  .datePickerContainer .month-wrapper").css({border:"0px"}),_korePickers.find(".kore-action-sheet .datePickerContainer  .headerCalendar .choose").html(t[1].datepicker.title),_korePickers.find(".kore-action-sheet .datePickerContainer  .confirmBTN").css({display:"none"}),this.bottomSlider("show",_korePickers.find(".datePickerContainer")),setTimeout(function(){_korePickers.find(".kore-action-sheet .datePickerContainer  .confirmBTN").css({display:"block"})},300)},n.prototype.getDateIconTemplate=function(){return'<div class="sdkFooterIcon singleCalender">                     <button name="dates" class="sdkCalender calenderBtn" title="Calender">                         <i class="calender"></i>                     </button>                 </div>'},n.prototype.addDateIconTemplate=function(){return'<div id="calender">    </div>'},n.prototype.showDateIconToFooter=function(){_korePickers=this._korePickers,_korePickers.find(".footerContainer").append(this.getDateIconTemplate)},n.prototype.addDateIconToFooter=function(){_korePickers.find(".kore-action-sheet  .datePickerContainer").append(this.addDateIconTemplate)},n.prototype.getdatePickerContainer=function(){return'<div class="datePickerContainer hide">                <div class="headerCalendar">                    <span class="choose"></span>                    <button class="close-button" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>                </div>                <div class="showDatevalues">                    <div class="showStartdate">                        <div class="showStartYear"></div>                        <div class="showStartMonth"></div>                    </div>                    <div class="showEnddate">                        <div class="showEndYear"></div>                        <div class="showEndMonth"></div>                   </div>                </div>               <div class="confirmBTN">Confirm</div>           </div>'},n.prototype.showClockPicker=function(t,e){t&&t.length&&t[0]&&t[0].chatConfig&&t[0].chatConfig.chatContainer&&(_korePickers=t[0].chatConfig.chatContainer),_korePickers.find(".kore-action-sheet").length&&(_korePickers.find(".clockPickerContainer").remove(),_korePickers.find(".kore-action-sheet").remove()),_korePickers.find(".clockPickerContainer").length&&(_korePickers.find(".clockPickerContainer").remove(),_korePickers.find(".kore-action-sheet").remove()),this.addSlider(),_korePickers.find(".kore-action-sheet").append(this.getclockPickerContainer),this.addClockIconToFooter();var n=l("#clockPickerInput");(this.input=n).clockpicker({donetext:"Done",placement:"top",vibrate:!1,twelvehour:!0,parentEl:".clockPickerContainer",afterDone:function(t){var e=t.hours,n=t.minutes,t=e+":"+(n=n<10?"0"+n:n)+" "+t.amOrPm;_korePickers.find(".footerContainer.pos-relative .chatInputBox").text(t);t=l.Event("keydown");t.keyCode=13,_korePickers.find(".footerContainer.pos-relative .chatInputBox").trigger(t)}}),this.addClockListener(t)},n.prototype.addClickEventClock=function(t){t&&t.length&&t[0]&&t[0].chatConfig&&t[0].chatConfig.chatContainer&&(_korePickers=t[0].chatConfig.chatContainer);var e=this.input,n=_korePickers.find("#clockPickerInput").data("clockpicker");n.amOrPm="AM",n.options.default="12:00",_korePickers.find(".form-control").hide(),_korePickers.find(".kore-action-sheet  .datePickerContainer").addClass("hide"),_korePickers.find(".kore-action-sheet .dateRangePickerContainer").addClass("hide"),_korePickers.find(".radioOptionsPickerContainer").addClass("hide"),_korePickers.find(".TaskPickerContainer").addClass("hide"),_korePickers.find(".clockPickerContainer").removeClass("hide"),_korePickers.find(".listViewTmplContent").hide(),_korePickers.find(".list-template-sheet").hide(),_korePickers.find(".listTmplContent.advancedMultiSelect").hide(),e.clockpicker("show").clockpicker("toggleView","hours"),t[1].clockPicker.title?_korePickers.find(".kore-action-sheet .clockPickerContainer .headerClock .choose").html(t[1].clockPicker.title):_korePickers.find(".kore-action-sheet .clockPickerContainer .headerClock .choose").html("Please Choose"),_korePickers.find(".clockPickerContainer .confirmBTN").css({display:"none"}),setTimeout(function(){_korePickers.find(".kore-action-sheet").animate({height:"toggle"}),_korePickers.find(".kore-action-sheet").removeClass("hide"),setTimeout(function(){_korePickers.find(".clockPickerContainer .confirmBTN").css({display:"block"})},300)},100),_korePickers.find(".btn.btn-sm.btn-default.btn-block.clockpicker-button").hide(),setTimeout(function(){_korePickers.find(".kore-action-sheet .clockPickerContainer .clockpicker-popover").css({display:"block",top:"75px ",left:"80.5px"}),_korePickers.find(".kore-action-sheet .clockPickerContainer .clockpicker-popover .clockpicker-plate").css({"margin-left":"25px"}),_korePickers.find(".btn.btn-sm.btn-default.clockpicker-button.pm-button").css({opacity:"0.4"})},0)},n.prototype.addClockListener=function(t){t&&t.length&&t[0]&&t[0].chatConfig&&t[0].chatConfig.chatContainer&&(_korePickers=t[0].chatConfig.chatContainer),this.addClickEventClock(t),_korePickers.find(".btn.btn-sm.btn-default.clockpicker-button.am-button").click(function(){_korePickers.find(".btn.btn-sm.btn-default.clockpicker-button.pm-button").css({opacity:"0.4"}),_korePickers.find(".btn.btn-sm.btn-default.clockpicker-button.am-button").css({opacity:"1"})}),_korePickers.find(".btn.btn-sm.btn-default.clockpicker-button.pm-button").click(function(){_korePickers.find(".btn.btn-sm.btn-default.clockpicker-button.am-button").css({opacity:"0.4"}),_korePickers.find(".btn.btn-sm.btn-default.clockpicker-button.pm-button").css({opacity:"1"})}),_korePickers.find(".clockPickerContainer .confirmBTN").click(function(){_korePickers.find(".clockPickerContainer .confirmBTN").css({display:"block"}),_korePickers.find(".btn.btn-sm.btn-default.btn-block.clockpicker-button").trigger("click"),_korePickers.find(".kore-action-sheet").hide(),_korePickers.find(".kore-action-sheet").addClass("hide"),_korePickers.find(".kore-action-sheet").remove()}),_korePickers.find(".clockPickerContainer .closeButton").click(function(){_korePickers.find(".clockPickerContainer .confirmBTN").css({display:"none"}),setTimeout(function(){_korePickers.find(".kore-action-sheet").animate({height:"toggle"}),_korePickers.find(".kore-action-sheet").addClass("hide"),setTimeout(function(){_korePickers.find(".clockPickerContainer .confirmBTN").css({display:"block"})},100)},100),_korePickers.find(".kore-action-sheet").remove()})},n.prototype.getClockIconTemplate=function(){return'<div class="sdkFooterIcon clock">                    <button type="button"  class="sdkClock clockBtn" title="Clock">                         <i class="clock"></i>                    </button>                </div>'},n.prototype.addClockIconToFooter=function(){_korePickers.find(".clockPickerContainer").append(this.getClockIconTemplate)},n.prototype.showClockIconToFooter=function(){_korePickers=this._korePickers,_korePickers.find(".footerContainer").append(this.getClockIconTemplate)},n.prototype.getclockPickerContainer=function(){return'<div class="clockPickerContainer hide">                <div class="headerClock">                    <span class="choose"></span>                    <button class="closeButton" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>                </div>                <input class="form-control" id="clockPickerInput" value="">                <div class="confirmBTN">Confirm</div>            </div>'},window.KorePickers=n}($),function(r){r.emojioneList={":kiss_ww:":["1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f469-2764-1f48b-1f469"],":couplekiss_ww:":["1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f469-2764-1f48b-1f469"],":kiss_mm:":["1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f468-2764-1f48b-1f468"],":couplekiss_mm:":["1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f468-2764-1f48b-1f468"],":family_mmbb:":["1f468-200d-1f468-200d-1f466-200d-1f466","1f468-1f468-1f466-1f466"],":family_mmgb:":["1f468-200d-1f468-200d-1f467-200d-1f466","1f468-1f468-1f467-1f466"],":family_mmgg:":["1f468-200d-1f468-200d-1f467-200d-1f467","1f468-1f468-1f467-1f467"],":family_mwbb:":["1f468-200d-1f469-200d-1f466-200d-1f466","1f468-1f469-1f466-1f466"],":family_mwgb:":["1f468-200d-1f469-200d-1f467-200d-1f466","1f468-1f469-1f467-1f466"],":family_mwgg:":["1f468-200d-1f469-200d-1f467-200d-1f467","1f468-1f469-1f467-1f467"],":family_wwbb:":["1f469-200d-1f469-200d-1f466-200d-1f466","1f469-1f469-1f466-1f466"],":family_wwgb:":["1f469-200d-1f469-200d-1f467-200d-1f466","1f469-1f469-1f467-1f466"],":family_wwgg:":["1f469-200d-1f469-200d-1f467-200d-1f467","1f469-1f469-1f467-1f467"],":couple_ww:":["1f469-200d-2764-fe0f-200d-1f469","1f469-2764-1f469"],":couple_with_heart_ww:":["1f469-200d-2764-fe0f-200d-1f469","1f469-2764-1f469"],":couple_mm:":["1f468-200d-2764-fe0f-200d-1f468","1f468-2764-1f468"],":couple_with_heart_mm:":["1f468-200d-2764-fe0f-200d-1f468","1f468-2764-1f468"],":family_mmb:":["1f468-200d-1f468-200d-1f466","1f468-1f468-1f466"],":family_mmg:":["1f468-200d-1f468-200d-1f467","1f468-1f468-1f467"],":family_mwg:":["1f468-200d-1f469-200d-1f467","1f468-1f469-1f467"],":family_wwb:":["1f469-200d-1f469-200d-1f466","1f469-1f469-1f466"],":family_wwg:":["1f469-200d-1f469-200d-1f467","1f469-1f469-1f467"],":eye_in_speech_bubble:":["1f441-200d-1f5e8","1f441-1f5e8"],":hash:":["0023-fe0f-20e3","0023-20e3"],":zero:":["0030-fe0f-20e3","0030-20e3"],":one:":["0031-fe0f-20e3","0031-20e3"],":two:":["0032-fe0f-20e3","0032-20e3"],":three:":["0033-fe0f-20e3","0033-20e3"],":four:":["0034-fe0f-20e3","0034-20e3"],":five:":["0035-fe0f-20e3","0035-20e3"],":six:":["0036-fe0f-20e3","0036-20e3"],":seven:":["0037-fe0f-20e3","0037-20e3"],":eight:":["0038-fe0f-20e3","0038-20e3"],":nine:":["0039-fe0f-20e3","0039-20e3"],":asterisk:":["002a-fe0f-20e3","002a-20e3"],":keycap_asterisk:":["002a-fe0f-20e3","002a-20e3"],":metal_tone5:":["1f918-1f3ff"],":sign_of_the_horns_tone5:":["1f918-1f3ff"],":metal_tone4:":["1f918-1f3fe"],":sign_of_the_horns_tone4:":["1f918-1f3fe"],":metal_tone3:":["1f918-1f3fd"],":sign_of_the_horns_tone3:":["1f918-1f3fd"],":metal_tone2:":["1f918-1f3fc"],":sign_of_the_horns_tone2:":["1f918-1f3fc"],":metal_tone1:":["1f918-1f3fb"],":sign_of_the_horns_tone1:":["1f918-1f3fb"],":bath_tone5:":["1f6c0-1f3ff"],":bath_tone4:":["1f6c0-1f3fe"],":bath_tone3:":["1f6c0-1f3fd"],":bath_tone2:":["1f6c0-1f3fc"],":bath_tone1:":["1f6c0-1f3fb"],":walking_tone5:":["1f6b6-1f3ff"],":walking_tone4:":["1f6b6-1f3fe"],":walking_tone3:":["1f6b6-1f3fd"],":walking_tone2:":["1f6b6-1f3fc"],":walking_tone1:":["1f6b6-1f3fb"],":mountain_bicyclist_tone5:":["1f6b5-1f3ff"],":mountain_bicyclist_tone4:":["1f6b5-1f3fe"],":mountain_bicyclist_tone3:":["1f6b5-1f3fd"],":mountain_bicyclist_tone2:":["1f6b5-1f3fc"],":mountain_bicyclist_tone1:":["1f6b5-1f3fb"],":bicyclist_tone5:":["1f6b4-1f3ff"],":bicyclist_tone4:":["1f6b4-1f3fe"],":bicyclist_tone3:":["1f6b4-1f3fd"],":bicyclist_tone2:":["1f6b4-1f3fc"],":bicyclist_tone1:":["1f6b4-1f3fb"],":rowboat_tone5:":["1f6a3-1f3ff"],":rowboat_tone4:":["1f6a3-1f3fe"],":rowboat_tone3:":["1f6a3-1f3fd"],":rowboat_tone2:":["1f6a3-1f3fc"],":rowboat_tone1:":["1f6a3-1f3fb"],":pray_tone5:":["1f64f-1f3ff"],":pray_tone4:":["1f64f-1f3fe"],":pray_tone3:":["1f64f-1f3fd"],":pray_tone2:":["1f64f-1f3fc"],":pray_tone1:":["1f64f-1f3fb"],":person_with_pouting_face_tone5:":["1f64e-1f3ff"],":person_with_pouting_face_tone4:":["1f64e-1f3fe"],":person_with_pouting_face_tone3:":["1f64e-1f3fd"],":person_with_pouting_face_tone2:":["1f64e-1f3fc"],":person_with_pouting_face_tone1:":["1f64e-1f3fb"],":person_frowning_tone5:":["1f64d-1f3ff"],":person_frowning_tone4:":["1f64d-1f3fe"],":person_frowning_tone3:":["1f64d-1f3fd"],":person_frowning_tone2:":["1f64d-1f3fc"],":person_frowning_tone1:":["1f64d-1f3fb"],":raised_hands_tone5:":["1f64c-1f3ff"],":raised_hands_tone4:":["1f64c-1f3fe"],":raised_hands_tone3:":["1f64c-1f3fd"],":raised_hands_tone2:":["1f64c-1f3fc"],":raised_hands_tone1:":["1f64c-1f3fb"],":raising_hand_tone5:":["1f64b-1f3ff"],":raising_hand_tone4:":["1f64b-1f3fe"],":raising_hand_tone3:":["1f64b-1f3fd"],":raising_hand_tone2:":["1f64b-1f3fc"],":raising_hand_tone1:":["1f64b-1f3fb"],":bow_tone5:":["1f647-1f3ff"],":bow_tone4:":["1f647-1f3fe"],":bow_tone3:":["1f647-1f3fd"],":bow_tone2:":["1f647-1f3fc"],":bow_tone1:":["1f647-1f3fb"],":ok_woman_tone5:":["1f646-1f3ff"],":ok_woman_tone4:":["1f646-1f3fe"],":ok_woman_tone3:":["1f646-1f3fd"],":ok_woman_tone2:":["1f646-1f3fc"],":ok_woman_tone1:":["1f646-1f3fb"],":no_good_tone5:":["1f645-1f3ff"],":no_good_tone4:":["1f645-1f3fe"],":no_good_tone3:":["1f645-1f3fd"],":no_good_tone2:":["1f645-1f3fc"],":no_good_tone1:":["1f645-1f3fb"],":vulcan_tone5:":["1f596-1f3ff"],":raised_hand_with_part_between_middle_and_ring_fingers_tone5:":["1f596-1f3ff"],":vulcan_tone4:":["1f596-1f3fe"],":raised_hand_with_part_between_middle_and_ring_fingers_tone4:":["1f596-1f3fe"],":vulcan_tone3:":["1f596-1f3fd"],":raised_hand_with_part_between_middle_and_ring_fingers_tone3:":["1f596-1f3fd"],":vulcan_tone2:":["1f596-1f3fc"],":raised_hand_with_part_between_middle_and_ring_fingers_tone2:":["1f596-1f3fc"],":vulcan_tone1:":["1f596-1f3fb"],":raised_hand_with_part_between_middle_and_ring_fingers_tone1:":["1f596-1f3fb"],":middle_finger_tone5:":["1f595-1f3ff"],":reversed_hand_with_middle_finger_extended_tone5:":["1f595-1f3ff"],":middle_finger_tone4:":["1f595-1f3fe"],":reversed_hand_with_middle_finger_extended_tone4:":["1f595-1f3fe"],":middle_finger_tone3:":["1f595-1f3fd"],":reversed_hand_with_middle_finger_extended_tone3:":["1f595-1f3fd"],":middle_finger_tone2:":["1f595-1f3fc"],":reversed_hand_with_middle_finger_extended_tone2:":["1f595-1f3fc"],":middle_finger_tone1:":["1f595-1f3fb"],":reversed_hand_with_middle_finger_extended_tone1:":["1f595-1f3fb"],":hand_splayed_tone5:":["1f590-1f3ff"],":raised_hand_with_fingers_splayed_tone5:":["1f590-1f3ff"],":hand_splayed_tone4:":["1f590-1f3fe"],":raised_hand_with_fingers_splayed_tone4:":["1f590-1f3fe"],":hand_splayed_tone3:":["1f590-1f3fd"],":raised_hand_with_fingers_splayed_tone3:":["1f590-1f3fd"],":hand_splayed_tone2:":["1f590-1f3fc"],":raised_hand_with_fingers_splayed_tone2:":["1f590-1f3fc"],":hand_splayed_tone1:":["1f590-1f3fb"],":raised_hand_with_fingers_splayed_tone1:":["1f590-1f3fb"],":spy_tone5:":["1f575-1f3ff"],":sleuth_or_spy_tone5:":["1f575-1f3ff"],":spy_tone4:":["1f575-1f3fe"],":sleuth_or_spy_tone4:":["1f575-1f3fe"],":spy_tone3:":["1f575-1f3fd"],":sleuth_or_spy_tone3:":["1f575-1f3fd"],":spy_tone2:":["1f575-1f3fc"],":sleuth_or_spy_tone2:":["1f575-1f3fc"],":spy_tone1:":["1f575-1f3fb"],":sleuth_or_spy_tone1:":["1f575-1f3fb"],":muscle_tone5:":["1f4aa-1f3ff"],":muscle_tone4:":["1f4aa-1f3fe"],":muscle_tone3:":["1f4aa-1f3fd"],":muscle_tone2:":["1f4aa-1f3fc"],":muscle_tone1:":["1f4aa-1f3fb"],":haircut_tone5:":["1f487-1f3ff"],":haircut_tone4:":["1f487-1f3fe"],":haircut_tone3:":["1f487-1f3fd"],":haircut_tone2:":["1f487-1f3fc"],":haircut_tone1:":["1f487-1f3fb"],":massage_tone5:":["1f486-1f3ff"],":massage_tone4:":["1f486-1f3fe"],":massage_tone3:":["1f486-1f3fd"],":massage_tone2:":["1f486-1f3fc"],":massage_tone1:":["1f486-1f3fb"],":nail_care_tone5:":["1f485-1f3ff"],":nail_care_tone4:":["1f485-1f3fe"],":nail_care_tone3:":["1f485-1f3fd"],":nail_care_tone2:":["1f485-1f3fc"],":nail_care_tone1:":["1f485-1f3fb"],":dancer_tone5:":["1f483-1f3ff"],":dancer_tone4:":["1f483-1f3fe"],":dancer_tone3:":["1f483-1f3fd"],":dancer_tone2:":["1f483-1f3fc"],":dancer_tone1:":["1f483-1f3fb"],":guardsman_tone5:":["1f482-1f3ff"],":guardsman_tone4:":["1f482-1f3fe"],":guardsman_tone3:":["1f482-1f3fd"],":guardsman_tone2:":["1f482-1f3fc"],":guardsman_tone1:":["1f482-1f3fb"],":information_desk_person_tone5:":["1f481-1f3ff"],":information_desk_person_tone4:":["1f481-1f3fe"],":information_desk_person_tone3:":["1f481-1f3fd"],":information_desk_person_tone2:":["1f481-1f3fc"],":information_desk_person_tone1:":["1f481-1f3fb"],":angel_tone5:":["1f47c-1f3ff"],":angel_tone4:":["1f47c-1f3fe"],":angel_tone3:":["1f47c-1f3fd"],":angel_tone2:":["1f47c-1f3fc"],":angel_tone1:":["1f47c-1f3fb"],":princess_tone5:":["1f478-1f3ff"],":princess_tone4:":["1f478-1f3fe"],":princess_tone3:":["1f478-1f3fd"],":princess_tone2:":["1f478-1f3fc"],":princess_tone1:":["1f478-1f3fb"],":construction_worker_tone5:":["1f477-1f3ff"],":construction_worker_tone4:":["1f477-1f3fe"],":construction_worker_tone3:":["1f477-1f3fd"],":construction_worker_tone2:":["1f477-1f3fc"],":construction_worker_tone1:":["1f477-1f3fb"],":baby_tone5:":["1f476-1f3ff"],":baby_tone4:":["1f476-1f3fe"],":baby_tone3:":["1f476-1f3fd"],":baby_tone2:":["1f476-1f3fc"],":baby_tone1:":["1f476-1f3fb"],":older_woman_tone5:":["1f475-1f3ff"],":grandma_tone5:":["1f475-1f3ff"],":older_woman_tone4:":["1f475-1f3fe"],":grandma_tone4:":["1f475-1f3fe"],":older_woman_tone3:":["1f475-1f3fd"],":grandma_tone3:":["1f475-1f3fd"],":older_woman_tone2:":["1f475-1f3fc"],":grandma_tone2:":["1f475-1f3fc"],":older_woman_tone1:":["1f475-1f3fb"],":grandma_tone1:":["1f475-1f3fb"],":older_man_tone5:":["1f474-1f3ff"],":older_man_tone4:":["1f474-1f3fe"],":older_man_tone3:":["1f474-1f3fd"],":older_man_tone2:":["1f474-1f3fc"],":older_man_tone1:":["1f474-1f3fb"],":man_with_turban_tone5:":["1f473-1f3ff"],":man_with_turban_tone4:":["1f473-1f3fe"],":man_with_turban_tone3:":["1f473-1f3fd"],":man_with_turban_tone2:":["1f473-1f3fc"],":man_with_turban_tone1:":["1f473-1f3fb"],":man_with_gua_pi_mao_tone5:":["1f472-1f3ff"],":man_with_gua_pi_mao_tone4:":["1f472-1f3fe"],":man_with_gua_pi_mao_tone3:":["1f472-1f3fd"],":man_with_gua_pi_mao_tone2:":["1f472-1f3fc"],":man_with_gua_pi_mao_tone1:":["1f472-1f3fb"],":person_with_blond_hair_tone5:":["1f471-1f3ff"],":person_with_blond_hair_tone4:":["1f471-1f3fe"],":person_with_blond_hair_tone3:":["1f471-1f3fd"],":person_with_blond_hair_tone2:":["1f471-1f3fc"],":person_with_blond_hair_tone1:":["1f471-1f3fb"],":bride_with_veil_tone5:":["1f470-1f3ff"],":bride_with_veil_tone4:":["1f470-1f3fe"],":bride_with_veil_tone3:":["1f470-1f3fd"],":bride_with_veil_tone2:":["1f470-1f3fc"],":bride_with_veil_tone1:":["1f470-1f3fb"],":cop_tone5:":["1f46e-1f3ff"],":cop_tone4:":["1f46e-1f3fe"],":cop_tone3:":["1f46e-1f3fd"],":cop_tone2:":["1f46e-1f3fc"],":cop_tone1:":["1f46e-1f3fb"],":woman_tone5:":["1f469-1f3ff"],":woman_tone4:":["1f469-1f3fe"],":woman_tone3:":["1f469-1f3fd"],":woman_tone2:":["1f469-1f3fc"],":woman_tone1:":["1f469-1f3fb"],":man_tone5:":["1f468-1f3ff"],":man_tone4:":["1f468-1f3fe"],":man_tone3:":["1f468-1f3fd"],":man_tone2:":["1f468-1f3fc"],":man_tone1:":["1f468-1f3fb"],":girl_tone5:":["1f467-1f3ff"],":girl_tone4:":["1f467-1f3fe"],":girl_tone3:":["1f467-1f3fd"],":girl_tone2:":["1f467-1f3fc"],":girl_tone1:":["1f467-1f3fb"],":boy_tone5:":["1f466-1f3ff"],":boy_tone4:":["1f466-1f3fe"],":boy_tone3:":["1f466-1f3fd"],":boy_tone2:":["1f466-1f3fc"],":boy_tone1:":["1f466-1f3fb"],":open_hands_tone5:":["1f450-1f3ff"],":open_hands_tone4:":["1f450-1f3fe"],":open_hands_tone3:":["1f450-1f3fd"],":open_hands_tone2:":["1f450-1f3fc"],":open_hands_tone1:":["1f450-1f3fb"],":clap_tone5:":["1f44f-1f3ff"],":clap_tone4:":["1f44f-1f3fe"],":clap_tone3:":["1f44f-1f3fd"],":clap_tone2:":["1f44f-1f3fc"],":clap_tone1:":["1f44f-1f3fb"],":thumbsdown_tone5:":["1f44e-1f3ff"],":-1_tone5:":["1f44e-1f3ff"],":thumbsdown_tone4:":["1f44e-1f3fe"],":-1_tone4:":["1f44e-1f3fe"],":thumbsdown_tone3:":["1f44e-1f3fd"],":-1_tone3:":["1f44e-1f3fd"],":thumbsdown_tone2:":["1f44e-1f3fc"],":-1_tone2:":["1f44e-1f3fc"],":thumbsdown_tone1:":["1f44e-1f3fb"],":-1_tone1:":["1f44e-1f3fb"],":thumbsup_tone5:":["1f44d-1f3ff"],":+1_tone5:":["1f44d-1f3ff"],":thumbsup_tone4:":["1f44d-1f3fe"],":+1_tone4:":["1f44d-1f3fe"],":thumbsup_tone3:":["1f44d-1f3fd"],":+1_tone3:":["1f44d-1f3fd"],":thumbsup_tone2:":["1f44d-1f3fc"],":+1_tone2:":["1f44d-1f3fc"],":thumbsup_tone1:":["1f44d-1f3fb"],":+1_tone1:":["1f44d-1f3fb"],":ok_hand_tone5:":["1f44c-1f3ff"],":ok_hand_tone4:":["1f44c-1f3fe"],":ok_hand_tone3:":["1f44c-1f3fd"],":ok_hand_tone2:":["1f44c-1f3fc"],":ok_hand_tone1:":["1f44c-1f3fb"],":wave_tone5:":["1f44b-1f3ff"],":wave_tone4:":["1f44b-1f3fe"],":wave_tone3:":["1f44b-1f3fd"],":wave_tone2:":["1f44b-1f3fc"],":wave_tone1:":["1f44b-1f3fb"],":punch_tone5:":["1f44a-1f3ff"],":punch_tone4:":["1f44a-1f3fe"],":punch_tone3:":["1f44a-1f3fd"],":punch_tone2:":["1f44a-1f3fc"],":punch_tone1:":["1f44a-1f3fb"],":point_right_tone5:":["1f449-1f3ff"],":point_right_tone4:":["1f449-1f3fe"],":point_right_tone3:":["1f449-1f3fd"],":point_right_tone2:":["1f449-1f3fc"],":point_right_tone1:":["1f449-1f3fb"],":point_left_tone5:":["1f448-1f3ff"],":point_left_tone4:":["1f448-1f3fe"],":point_left_tone3:":["1f448-1f3fd"],":point_left_tone2:":["1f448-1f3fc"],":point_left_tone1:":["1f448-1f3fb"],":point_down_tone5:":["1f447-1f3ff"],":point_down_tone4:":["1f447-1f3fe"],":point_down_tone3:":["1f447-1f3fd"],":point_down_tone2:":["1f447-1f3fc"],":point_down_tone1:":["1f447-1f3fb"],":point_up_2_tone5:":["1f446-1f3ff"],":point_up_2_tone4:":["1f446-1f3fe"],":point_up_2_tone3:":["1f446-1f3fd"],":point_up_2_tone2:":["1f446-1f3fc"],":point_up_2_tone1:":["1f446-1f3fb"],":nose_tone5:":["1f443-1f3ff"],":nose_tone4:":["1f443-1f3fe"],":nose_tone3:":["1f443-1f3fd"],":nose_tone2:":["1f443-1f3fc"],":nose_tone1:":["1f443-1f3fb"],":ear_tone5:":["1f442-1f3ff"],":ear_tone4:":["1f442-1f3fe"],":ear_tone3:":["1f442-1f3fd"],":ear_tone2:":["1f442-1f3fc"],":ear_tone1:":["1f442-1f3fb"],":lifter_tone5:":["1f3cb-1f3ff"],":weight_lifter_tone5:":["1f3cb-1f3ff"],":lifter_tone4:":["1f3cb-1f3fe"],":weight_lifter_tone4:":["1f3cb-1f3fe"],":lifter_tone3:":["1f3cb-1f3fd"],":weight_lifter_tone3:":["1f3cb-1f3fd"],":lifter_tone2:":["1f3cb-1f3fc"],":weight_lifter_tone2:":["1f3cb-1f3fc"],":lifter_tone1:":["1f3cb-1f3fb"],":weight_lifter_tone1:":["1f3cb-1f3fb"],":swimmer_tone5:":["1f3ca-1f3ff"],":swimmer_tone4:":["1f3ca-1f3fe"],":swimmer_tone3:":["1f3ca-1f3fd"],":swimmer_tone2:":["1f3ca-1f3fc"],":swimmer_tone1:":["1f3ca-1f3fb"],":horse_racing_tone5:":["1f3c7-1f3ff"],":horse_racing_tone4:":["1f3c7-1f3fe"],":horse_racing_tone3:":["1f3c7-1f3fd"],":horse_racing_tone2:":["1f3c7-1f3fc"],":horse_racing_tone1:":["1f3c7-1f3fb"],":surfer_tone5:":["1f3c4-1f3ff"],":surfer_tone4:":["1f3c4-1f3fe"],":surfer_tone3:":["1f3c4-1f3fd"],":surfer_tone2:":["1f3c4-1f3fc"],":surfer_tone1:":["1f3c4-1f3fb"],":runner_tone5:":["1f3c3-1f3ff"],":runner_tone4:":["1f3c3-1f3fe"],":runner_tone3:":["1f3c3-1f3fd"],":runner_tone2:":["1f3c3-1f3fc"],":runner_tone1:":["1f3c3-1f3fb"],":santa_tone5:":["1f385-1f3ff"],":santa_tone4:":["1f385-1f3fe"],":santa_tone3:":["1f385-1f3fd"],":santa_tone2:":["1f385-1f3fc"],":santa_tone1:":["1f385-1f3fb"],":flag_zw:":["1f1ff-1f1fc"],":zw:":["1f1ff-1f1fc"],":flag_zm:":["1f1ff-1f1f2"],":zm:":["1f1ff-1f1f2"],":flag_za:":["1f1ff-1f1e6"],":za:":["1f1ff-1f1e6"],":flag_yt:":["1f1fe-1f1f9"],":yt:":["1f1fe-1f1f9"],":flag_ye:":["1f1fe-1f1ea"],":ye:":["1f1fe-1f1ea"],":flag_xk:":["1f1fd-1f1f0"],":xk:":["1f1fd-1f1f0"],":flag_ws:":["1f1fc-1f1f8"],":ws:":["1f1fc-1f1f8"],":flag_wf:":["1f1fc-1f1eb"],":wf:":["1f1fc-1f1eb"],":flag_vu:":["1f1fb-1f1fa"],":vu:":["1f1fb-1f1fa"],":flag_vn:":["1f1fb-1f1f3"],":vn:":["1f1fb-1f1f3"],":flag_vi:":["1f1fb-1f1ee"],":vi:":["1f1fb-1f1ee"],":flag_vg:":["1f1fb-1f1ec"],":vg:":["1f1fb-1f1ec"],":flag_ve:":["1f1fb-1f1ea"],":ve:":["1f1fb-1f1ea"],":flag_vc:":["1f1fb-1f1e8"],":vc:":["1f1fb-1f1e8"],":flag_va:":["1f1fb-1f1e6"],":va:":["1f1fb-1f1e6"],":flag_uz:":["1f1fa-1f1ff"],":uz:":["1f1fa-1f1ff"],":flag_uy:":["1f1fa-1f1fe"],":uy:":["1f1fa-1f1fe"],":flag_us:":["1f1fa-1f1f8"],":us:":["1f1fa-1f1f8"],":flag_um:":["1f1fa-1f1f2"],":um:":["1f1fa-1f1f2"],":flag_ug:":["1f1fa-1f1ec"],":ug:":["1f1fa-1f1ec"],":flag_ua:":["1f1fa-1f1e6"],":ua:":["1f1fa-1f1e6"],":flag_tz:":["1f1f9-1f1ff"],":tz:":["1f1f9-1f1ff"],":flag_tw:":["1f1f9-1f1fc"],":tw:":["1f1f9-1f1fc"],":flag_tv:":["1f1f9-1f1fb"],":tuvalu:":["1f1f9-1f1fb"],":flag_tt:":["1f1f9-1f1f9"],":tt:":["1f1f9-1f1f9"],":flag_tr:":["1f1f9-1f1f7"],":tr:":["1f1f9-1f1f7"],":flag_to:":["1f1f9-1f1f4"],":to:":["1f1f9-1f1f4"],":flag_tn:":["1f1f9-1f1f3"],":tn:":["1f1f9-1f1f3"],":flag_tm:":["1f1f9-1f1f2"],":turkmenistan:":["1f1f9-1f1f2"],":flag_tl:":["1f1f9-1f1f1"],":tl:":["1f1f9-1f1f1"],":flag_tk:":["1f1f9-1f1f0"],":tk:":["1f1f9-1f1f0"],":flag_tj:":["1f1f9-1f1ef"],":tj:":["1f1f9-1f1ef"],":flag_th:":["1f1f9-1f1ed"],":th:":["1f1f9-1f1ed"],":flag_tg:":["1f1f9-1f1ec"],":tg:":["1f1f9-1f1ec"],":flag_tf:":["1f1f9-1f1eb"],":tf:":["1f1f9-1f1eb"],":flag_td:":["1f1f9-1f1e9"],":td:":["1f1f9-1f1e9"],":flag_tc:":["1f1f9-1f1e8"],":tc:":["1f1f9-1f1e8"],":flag_ta:":["1f1f9-1f1e6"],":ta:":["1f1f9-1f1e6"],":flag_sz:":["1f1f8-1f1ff"],":sz:":["1f1f8-1f1ff"],":flag_sy:":["1f1f8-1f1fe"],":sy:":["1f1f8-1f1fe"],":flag_sx:":["1f1f8-1f1fd"],":sx:":["1f1f8-1f1fd"],":flag_sv:":["1f1f8-1f1fb"],":sv:":["1f1f8-1f1fb"],":flag_st:":["1f1f8-1f1f9"],":st:":["1f1f8-1f1f9"],":flag_ss:":["1f1f8-1f1f8"],":ss:":["1f1f8-1f1f8"],":flag_sr:":["1f1f8-1f1f7"],":sr:":["1f1f8-1f1f7"],":flag_so:":["1f1f8-1f1f4"],":so:":["1f1f8-1f1f4"],":flag_sn:":["1f1f8-1f1f3"],":sn:":["1f1f8-1f1f3"],":flag_sm:":["1f1f8-1f1f2"],":sm:":["1f1f8-1f1f2"],":flag_sl:":["1f1f8-1f1f1"],":sl:":["1f1f8-1f1f1"],":flag_sk:":["1f1f8-1f1f0"],":sk:":["1f1f8-1f1f0"],":flag_sj:":["1f1f8-1f1ef"],":sj:":["1f1f8-1f1ef"],":flag_si:":["1f1f8-1f1ee"],":si:":["1f1f8-1f1ee"],":flag_sh:":["1f1f8-1f1ed"],":sh:":["1f1f8-1f1ed"],":flag_sg:":["1f1f8-1f1ec"],":sg:":["1f1f8-1f1ec"],":flag_se:":["1f1f8-1f1ea"],":se:":["1f1f8-1f1ea"],":flag_sd:":["1f1f8-1f1e9"],":sd:":["1f1f8-1f1e9"],":flag_sc:":["1f1f8-1f1e8"],":sc:":["1f1f8-1f1e8"],":flag_sb:":["1f1f8-1f1e7"],":sb:":["1f1f8-1f1e7"],":flag_sa:":["1f1f8-1f1e6"],":saudiarabia:":["1f1f8-1f1e6"],":saudi:":["1f1f8-1f1e6"],":flag_rw:":["1f1f7-1f1fc"],":rw:":["1f1f7-1f1fc"],":flag_ru:":["1f1f7-1f1fa"],":ru:":["1f1f7-1f1fa"],":flag_rs:":["1f1f7-1f1f8"],":rs:":["1f1f7-1f1f8"],":flag_ro:":["1f1f7-1f1f4"],":ro:":["1f1f7-1f1f4"],":flag_re:":["1f1f7-1f1ea"],":re:":["1f1f7-1f1ea"],":flag_qa:":["1f1f6-1f1e6"],":qa:":["1f1f6-1f1e6"],":flag_py:":["1f1f5-1f1fe"],":py:":["1f1f5-1f1fe"],":flag_pw:":["1f1f5-1f1fc"],":pw:":["1f1f5-1f1fc"],":flag_pt:":["1f1f5-1f1f9"],":pt:":["1f1f5-1f1f9"],":flag_ps:":["1f1f5-1f1f8"],":ps:":["1f1f5-1f1f8"],":flag_pr:":["1f1f5-1f1f7"],":pr:":["1f1f5-1f1f7"],":flag_pn:":["1f1f5-1f1f3"],":pn:":["1f1f5-1f1f3"],":flag_pm:":["1f1f5-1f1f2"],":pm:":["1f1f5-1f1f2"],":flag_pl:":["1f1f5-1f1f1"],":pl:":["1f1f5-1f1f1"],":flag_pk:":["1f1f5-1f1f0"],":pk:":["1f1f5-1f1f0"],":flag_ph:":["1f1f5-1f1ed"],":ph:":["1f1f5-1f1ed"],":flag_pg:":["1f1f5-1f1ec"],":pg:":["1f1f5-1f1ec"],":flag_pf:":["1f1f5-1f1eb"],":pf:":["1f1f5-1f1eb"],":flag_pe:":["1f1f5-1f1ea"],":pe:":["1f1f5-1f1ea"],":flag_pa:":["1f1f5-1f1e6"],":pa:":["1f1f5-1f1e6"],":flag_om:":["1f1f4-1f1f2"],":om:":["1f1f4-1f1f2"],":flag_nz:":["1f1f3-1f1ff"],":nz:":["1f1f3-1f1ff"],":flag_nu:":["1f1f3-1f1fa"],":nu:":["1f1f3-1f1fa"],":flag_nr:":["1f1f3-1f1f7"],":nr:":["1f1f3-1f1f7"],":flag_np:":["1f1f3-1f1f5"],":np:":["1f1f3-1f1f5"],":flag_no:":["1f1f3-1f1f4"],":no:":["1f1f3-1f1f4"],":flag_nl:":["1f1f3-1f1f1"],":nl:":["1f1f3-1f1f1"],":flag_ni:":["1f1f3-1f1ee"],":ni:":["1f1f3-1f1ee"],":flag_ng:":["1f1f3-1f1ec"],":nigeria:":["1f1f3-1f1ec"],":flag_nf:":["1f1f3-1f1eb"],":nf:":["1f1f3-1f1eb"],":flag_ne:":["1f1f3-1f1ea"],":ne:":["1f1f3-1f1ea"],":flag_nc:":["1f1f3-1f1e8"],":nc:":["1f1f3-1f1e8"],":flag_na:":["1f1f3-1f1e6"],":na:":["1f1f3-1f1e6"],":flag_mz:":["1f1f2-1f1ff"],":mz:":["1f1f2-1f1ff"],":flag_my:":["1f1f2-1f1fe"],":my:":["1f1f2-1f1fe"],":flag_mx:":["1f1f2-1f1fd"],":mx:":["1f1f2-1f1fd"],":flag_mw:":["1f1f2-1f1fc"],":mw:":["1f1f2-1f1fc"],":flag_mv:":["1f1f2-1f1fb"],":mv:":["1f1f2-1f1fb"],":flag_mu:":["1f1f2-1f1fa"],":mu:":["1f1f2-1f1fa"],":flag_mt:":["1f1f2-1f1f9"],":mt:":["1f1f2-1f1f9"],":flag_ms:":["1f1f2-1f1f8"],":ms:":["1f1f2-1f1f8"],":flag_mr:":["1f1f2-1f1f7"],":mr:":["1f1f2-1f1f7"],":flag_mq:":["1f1f2-1f1f6"],":mq:":["1f1f2-1f1f6"],":flag_mp:":["1f1f2-1f1f5"],":mp:":["1f1f2-1f1f5"],":flag_mo:":["1f1f2-1f1f4"],":mo:":["1f1f2-1f1f4"],":flag_mn:":["1f1f2-1f1f3"],":mn:":["1f1f2-1f1f3"],":flag_mm:":["1f1f2-1f1f2"],":mm:":["1f1f2-1f1f2"],":flag_ml:":["1f1f2-1f1f1"],":ml:":["1f1f2-1f1f1"],":flag_mk:":["1f1f2-1f1f0"],":mk:":["1f1f2-1f1f0"],":flag_mh:":["1f1f2-1f1ed"],":mh:":["1f1f2-1f1ed"],":flag_mg:":["1f1f2-1f1ec"],":mg:":["1f1f2-1f1ec"],":flag_mf:":["1f1f2-1f1eb"],":mf:":["1f1f2-1f1eb"],":flag_me:":["1f1f2-1f1ea"],":me:":["1f1f2-1f1ea"],":flag_md:":["1f1f2-1f1e9"],":md:":["1f1f2-1f1e9"],":flag_mc:":["1f1f2-1f1e8"],":mc:":["1f1f2-1f1e8"],":flag_ma:":["1f1f2-1f1e6"],":ma:":["1f1f2-1f1e6"],":flag_ly:":["1f1f1-1f1fe"],":ly:":["1f1f1-1f1fe"],":flag_lv:":["1f1f1-1f1fb"],":lv:":["1f1f1-1f1fb"],":flag_lu:":["1f1f1-1f1fa"],":lu:":["1f1f1-1f1fa"],":flag_lt:":["1f1f1-1f1f9"],":lt:":["1f1f1-1f1f9"],":flag_ls:":["1f1f1-1f1f8"],":ls:":["1f1f1-1f1f8"],":flag_lr:":["1f1f1-1f1f7"],":lr:":["1f1f1-1f1f7"],":flag_lk:":["1f1f1-1f1f0"],":lk:":["1f1f1-1f1f0"],":flag_li:":["1f1f1-1f1ee"],":li:":["1f1f1-1f1ee"],":flag_lc:":["1f1f1-1f1e8"],":lc:":["1f1f1-1f1e8"],":flag_lb:":["1f1f1-1f1e7"],":lb:":["1f1f1-1f1e7"],":flag_la:":["1f1f1-1f1e6"],":la:":["1f1f1-1f1e6"],":flag_kz:":["1f1f0-1f1ff"],":kz:":["1f1f0-1f1ff"],":flag_ky:":["1f1f0-1f1fe"],":ky:":["1f1f0-1f1fe"],":flag_kw:":["1f1f0-1f1fc"],":kw:":["1f1f0-1f1fc"],":flag_kr:":["1f1f0-1f1f7"],":kr:":["1f1f0-1f1f7"],":flag_kp:":["1f1f0-1f1f5"],":kp:":["1f1f0-1f1f5"],":flag_kn:":["1f1f0-1f1f3"],":kn:":["1f1f0-1f1f3"],":flag_km:":["1f1f0-1f1f2"],":km:":["1f1f0-1f1f2"],":flag_ki:":["1f1f0-1f1ee"],":ki:":["1f1f0-1f1ee"],":flag_kh:":["1f1f0-1f1ed"],":kh:":["1f1f0-1f1ed"],":flag_kg:":["1f1f0-1f1ec"],":kg:":["1f1f0-1f1ec"],":flag_ke:":["1f1f0-1f1ea"],":ke:":["1f1f0-1f1ea"],":flag_jp:":["1f1ef-1f1f5"],":jp:":["1f1ef-1f1f5"],":flag_jo:":["1f1ef-1f1f4"],":jo:":["1f1ef-1f1f4"],":flag_jm:":["1f1ef-1f1f2"],":jm:":["1f1ef-1f1f2"],":flag_je:":["1f1ef-1f1ea"],":je:":["1f1ef-1f1ea"],":flag_it:":["1f1ee-1f1f9"],":it:":["1f1ee-1f1f9"],":flag_is:":["1f1ee-1f1f8"],":is:":["1f1ee-1f1f8"],":flag_ir:":["1f1ee-1f1f7"],":ir:":["1f1ee-1f1f7"],":flag_iq:":["1f1ee-1f1f6"],":iq:":["1f1ee-1f1f6"],":flag_io:":["1f1ee-1f1f4"],":io:":["1f1ee-1f1f4"],":flag_in:":["1f1ee-1f1f3"],":in:":["1f1ee-1f1f3"],":flag_im:":["1f1ee-1f1f2"],":im:":["1f1ee-1f1f2"],":flag_il:":["1f1ee-1f1f1"],":il:":["1f1ee-1f1f1"],":flag_ie:":["1f1ee-1f1ea"],":ie:":["1f1ee-1f1ea"],":flag_id:":["1f1ee-1f1e9"],":indonesia:":["1f1ee-1f1e9"],":flag_ic:":["1f1ee-1f1e8"],":ic:":["1f1ee-1f1e8"],":flag_hu:":["1f1ed-1f1fa"],":hu:":["1f1ed-1f1fa"],":flag_ht:":["1f1ed-1f1f9"],":ht:":["1f1ed-1f1f9"],":flag_hr:":["1f1ed-1f1f7"],":hr:":["1f1ed-1f1f7"],":flag_hn:":["1f1ed-1f1f3"],":hn:":["1f1ed-1f1f3"],":flag_hm:":["1f1ed-1f1f2"],":hm:":["1f1ed-1f1f2"],":flag_hk:":["1f1ed-1f1f0"],":hk:":["1f1ed-1f1f0"],":flag_gy:":["1f1ec-1f1fe"],":gy:":["1f1ec-1f1fe"],":flag_gw:":["1f1ec-1f1fc"],":gw:":["1f1ec-1f1fc"],":flag_gu:":["1f1ec-1f1fa"],":gu:":["1f1ec-1f1fa"],":flag_gt:":["1f1ec-1f1f9"],":gt:":["1f1ec-1f1f9"],":flag_gs:":["1f1ec-1f1f8"],":gs:":["1f1ec-1f1f8"],":flag_gr:":["1f1ec-1f1f7"],":gr:":["1f1ec-1f1f7"],":flag_gq:":["1f1ec-1f1f6"],":gq:":["1f1ec-1f1f6"],":flag_gp:":["1f1ec-1f1f5"],":gp:":["1f1ec-1f1f5"],":flag_gn:":["1f1ec-1f1f3"],":gn:":["1f1ec-1f1f3"],":flag_gm:":["1f1ec-1f1f2"],":gm:":["1f1ec-1f1f2"],":flag_gl:":["1f1ec-1f1f1"],":gl:":["1f1ec-1f1f1"],":flag_gi:":["1f1ec-1f1ee"],":gi:":["1f1ec-1f1ee"],":flag_gh:":["1f1ec-1f1ed"],":gh:":["1f1ec-1f1ed"],":flag_gg:":["1f1ec-1f1ec"],":gg:":["1f1ec-1f1ec"],":flag_gf:":["1f1ec-1f1eb"],":gf:":["1f1ec-1f1eb"],":flag_ge:":["1f1ec-1f1ea"],":ge:":["1f1ec-1f1ea"],":flag_gd:":["1f1ec-1f1e9"],":gd:":["1f1ec-1f1e9"],":flag_gb:":["1f1ec-1f1e7"],":gb:":["1f1ec-1f1e7"],":flag_ga:":["1f1ec-1f1e6"],":ga:":["1f1ec-1f1e6"],":flag_fr:":["1f1eb-1f1f7"],":fr:":["1f1eb-1f1f7"],":flag_fo:":["1f1eb-1f1f4"],":fo:":["1f1eb-1f1f4"],":flag_fm:":["1f1eb-1f1f2"],":fm:":["1f1eb-1f1f2"],":flag_fk:":["1f1eb-1f1f0"],":fk:":["1f1eb-1f1f0"],":flag_fj:":["1f1eb-1f1ef"],":fj:":["1f1eb-1f1ef"],":flag_fi:":["1f1eb-1f1ee"],":fi:":["1f1eb-1f1ee"],":flag_eu:":["1f1ea-1f1fa"],":eu:":["1f1ea-1f1fa"],":flag_et:":["1f1ea-1f1f9"],":et:":["1f1ea-1f1f9"],":flag_es:":["1f1ea-1f1f8"],":es:":["1f1ea-1f1f8"],":flag_er:":["1f1ea-1f1f7"],":er:":["1f1ea-1f1f7"],":flag_eh:":["1f1ea-1f1ed"],":eh:":["1f1ea-1f1ed"],":flag_eg:":["1f1ea-1f1ec"],":eg:":["1f1ea-1f1ec"],":flag_ee:":["1f1ea-1f1ea"],":ee:":["1f1ea-1f1ea"],":flag_ec:":["1f1ea-1f1e8"],":ec:":["1f1ea-1f1e8"],":flag_ea:":["1f1ea-1f1e6"],":ea:":["1f1ea-1f1e6"],":flag_dz:":["1f1e9-1f1ff"],":dz:":["1f1e9-1f1ff"],":flag_do:":["1f1e9-1f1f4"],":do:":["1f1e9-1f1f4"],":flag_dm:":["1f1e9-1f1f2"],":dm:":["1f1e9-1f1f2"],":flag_dk:":["1f1e9-1f1f0"],":dk:":["1f1e9-1f1f0"],":flag_dj:":["1f1e9-1f1ef"],":dj:":["1f1e9-1f1ef"],":flag_dg:":["1f1e9-1f1ec"],":dg:":["1f1e9-1f1ec"],":flag_de:":["1f1e9-1f1ea"],":de:":["1f1e9-1f1ea"],":flag_cz:":["1f1e8-1f1ff"],":cz:":["1f1e8-1f1ff"],":flag_cy:":["1f1e8-1f1fe"],":cy:":["1f1e8-1f1fe"],":flag_cx:":["1f1e8-1f1fd"],":cx:":["1f1e8-1f1fd"],":flag_cw:":["1f1e8-1f1fc"],":cw:":["1f1e8-1f1fc"],":flag_cv:":["1f1e8-1f1fb"],":cv:":["1f1e8-1f1fb"],":flag_cu:":["1f1e8-1f1fa"],":cu:":["1f1e8-1f1fa"],":flag_cr:":["1f1e8-1f1f7"],":cr:":["1f1e8-1f1f7"],":flag_cp:":["1f1e8-1f1f5"],":cp:":["1f1e8-1f1f5"],":flag_co:":["1f1e8-1f1f4"],":co:":["1f1e8-1f1f4"],":flag_cn:":["1f1e8-1f1f3"],":cn:":["1f1e8-1f1f3"],":flag_cm:":["1f1e8-1f1f2"],":cm:":["1f1e8-1f1f2"],":flag_cl:":["1f1e8-1f1f1"],":chile:":["1f1e8-1f1f1"],":flag_ck:":["1f1e8-1f1f0"],":ck:":["1f1e8-1f1f0"],":flag_ci:":["1f1e8-1f1ee"],":ci:":["1f1e8-1f1ee"],":flag_ch:":["1f1e8-1f1ed"],":ch:":["1f1e8-1f1ed"],":flag_cg:":["1f1e8-1f1ec"],":cg:":["1f1e8-1f1ec"],":flag_cf:":["1f1e8-1f1eb"],":cf:":["1f1e8-1f1eb"],":flag_cd:":["1f1e8-1f1e9"],":congo:":["1f1e8-1f1e9"],":flag_cc:":["1f1e8-1f1e8"],":cc:":["1f1e8-1f1e8"],":flag_ca:":["1f1e8-1f1e6"],":ca:":["1f1e8-1f1e6"],":flag_bz:":["1f1e7-1f1ff"],":bz:":["1f1e7-1f1ff"],":flag_by:":["1f1e7-1f1fe"],":by:":["1f1e7-1f1fe"],":flag_bw:":["1f1e7-1f1fc"],":bw:":["1f1e7-1f1fc"],":flag_bv:":["1f1e7-1f1fb"],":bv:":["1f1e7-1f1fb"],":flag_bt:":["1f1e7-1f1f9"],":bt:":["1f1e7-1f1f9"],":flag_bs:":["1f1e7-1f1f8"],":bs:":["1f1e7-1f1f8"],":flag_br:":["1f1e7-1f1f7"],":br:":["1f1e7-1f1f7"],":flag_bq:":["1f1e7-1f1f6"],":bq:":["1f1e7-1f1f6"],":flag_bo:":["1f1e7-1f1f4"],":bo:":["1f1e7-1f1f4"],":flag_bn:":["1f1e7-1f1f3"],":bn:":["1f1e7-1f1f3"],":flag_bm:":["1f1e7-1f1f2"],":bm:":["1f1e7-1f1f2"],":flag_bl:":["1f1e7-1f1f1"],":bl:":["1f1e7-1f1f1"],":flag_bj:":["1f1e7-1f1ef"],":bj:":["1f1e7-1f1ef"],":flag_bi:":["1f1e7-1f1ee"],":bi:":["1f1e7-1f1ee"],":flag_bh:":["1f1e7-1f1ed"],":bh:":["1f1e7-1f1ed"],":flag_bg:":["1f1e7-1f1ec"],":bg:":["1f1e7-1f1ec"],":flag_bf:":["1f1e7-1f1eb"],":bf:":["1f1e7-1f1eb"],":flag_be:":["1f1e7-1f1ea"],":be:":["1f1e7-1f1ea"],":flag_bd:":["1f1e7-1f1e9"],":bd:":["1f1e7-1f1e9"],":flag_bb:":["1f1e7-1f1e7"],":bb:":["1f1e7-1f1e7"],":flag_ba:":["1f1e7-1f1e6"],":ba:":["1f1e7-1f1e6"],":flag_az:":["1f1e6-1f1ff"],":az:":["1f1e6-1f1ff"],":flag_ax:":["1f1e6-1f1fd"],":ax:":["1f1e6-1f1fd"],":flag_aw:":["1f1e6-1f1fc"],":aw:":["1f1e6-1f1fc"],":flag_au:":["1f1e6-1f1fa"],":au:":["1f1e6-1f1fa"],":flag_at:":["1f1e6-1f1f9"],":at:":["1f1e6-1f1f9"],":flag_as:":["1f1e6-1f1f8"],":as:":["1f1e6-1f1f8"],":flag_ar:":["1f1e6-1f1f7"],":ar:":["1f1e6-1f1f7"],":flag_aq:":["1f1e6-1f1f6"],":aq:":["1f1e6-1f1f6"],":flag_ao:":["1f1e6-1f1f4"],":ao:":["1f1e6-1f1f4"],":flag_am:":["1f1e6-1f1f2"],":am:":["1f1e6-1f1f2"],":flag_al:":["1f1e6-1f1f1"],":al:":["1f1e6-1f1f1"],":flag_ai:":["1f1e6-1f1ee"],":ai:":["1f1e6-1f1ee"],":flag_ag:":["1f1e6-1f1ec"],":ag:":["1f1e6-1f1ec"],":flag_af:":["1f1e6-1f1eb"],":af:":["1f1e6-1f1eb"],":flag_ae:":["1f1e6-1f1ea"],":ae:":["1f1e6-1f1ea"],":flag_ad:":["1f1e6-1f1e9"],":ad:":["1f1e6-1f1e9"],":flag_ac:":["1f1e6-1f1e8"],":ac:":["1f1e6-1f1e8"],":mahjong:":["1f004-fe0f","1f004"],":parking:":["1f17f-fe0f","1f17f"],":sa:":["1f202-fe0f","1f202"],":u7121:":["1f21a-fe0f","1f21a"],":u6307:":["1f22f-fe0f","1f22f"],":u6708:":["1f237-fe0f","1f237"],":film_frames:":["1f39e-fe0f","1f39e"],":tickets:":["1f39f-fe0f","1f39f"],":admission_tickets:":["1f39f-fe0f","1f39f"],":lifter:":["1f3cb-fe0f","1f3cb"],":weight_lifter:":["1f3cb-fe0f","1f3cb"],":golfer:":["1f3cc-fe0f","1f3cc"],":motorcycle:":["1f3cd-fe0f","1f3cd"],":racing_motorcycle:":["1f3cd-fe0f","1f3cd"],":race_car:":["1f3ce-fe0f","1f3ce"],":racing_car:":["1f3ce-fe0f","1f3ce"],":military_medal:":["1f396-fe0f","1f396"],":reminder_ribbon:":["1f397-fe0f","1f397"],":hot_pepper:":["1f336-fe0f","1f336"],":cloud_rain:":["1f327-fe0f","1f327"],":cloud_with_rain:":["1f327-fe0f","1f327"],":cloud_snow:":["1f328-fe0f","1f328"],":cloud_with_snow:":["1f328-fe0f","1f328"],":cloud_lightning:":["1f329-fe0f","1f329"],":cloud_with_lightning:":["1f329-fe0f","1f329"],":cloud_tornado:":["1f32a-fe0f","1f32a"],":cloud_with_tornado:":["1f32a-fe0f","1f32a"],":fog:":["1f32b-fe0f","1f32b"],":wind_blowing_face:":["1f32c-fe0f","1f32c"],":chipmunk:":["1f43f-fe0f","1f43f"],":spider:":["1f577-fe0f","1f577"],":spider_web:":["1f578-fe0f","1f578"],":thermometer:":["1f321-fe0f","1f321"],":microphone2:":["1f399-fe0f","1f399"],":studio_microphone:":["1f399-fe0f","1f399"],":level_slider:":["1f39a-fe0f","1f39a"],":control_knobs:":["1f39b-fe0f","1f39b"],":flag_white:":["1f3f3-fe0f","1f3f3"],":waving_white_flag:":["1f3f3-fe0f","1f3f3"],":rosette:":["1f3f5-fe0f","1f3f5"],":label:":["1f3f7-fe0f","1f3f7"],":projector:":["1f4fd-fe0f","1f4fd"],":film_projector:":["1f4fd-fe0f","1f4fd"],":om_symbol:":["1f549-fe0f","1f549"],":dove:":["1f54a-fe0f","1f54a"],":dove_of_peace:":["1f54a-fe0f","1f54a"],":candle:":["1f56f-fe0f","1f56f"],":clock:":["1f570-fe0f","1f570"],":mantlepiece_clock:":["1f570-fe0f","1f570"],":hole:":["1f573-fe0f","1f573"],":dark_sunglasses:":["1f576-fe0f","1f576"],":joystick:":["1f579-fe0f","1f579"],":paperclips:":["1f587-fe0f","1f587"],":linked_paperclips:":["1f587-fe0f","1f587"],":pen_ballpoint:":["1f58a-fe0f","1f58a"],":lower_left_ballpoint_pen:":["1f58a-fe0f","1f58a"],":pen_fountain:":["1f58b-fe0f","1f58b"],":lower_left_fountain_pen:":["1f58b-fe0f","1f58b"],":paintbrush:":["1f58c-fe0f","1f58c"],":lower_left_paintbrush:":["1f58c-fe0f","1f58c"],":crayon:":["1f58d-fe0f","1f58d"],":lower_left_crayon:":["1f58d-fe0f","1f58d"],":desktop:":["1f5a5-fe0f","1f5a5"],":desktop_computer:":["1f5a5-fe0f","1f5a5"],":printer:":["1f5a8-fe0f","1f5a8"],":trackball:":["1f5b2-fe0f","1f5b2"],":frame_photo:":["1f5bc-fe0f","1f5bc"],":frame_with_picture:":["1f5bc-fe0f","1f5bc"],":dividers:":["1f5c2-fe0f","1f5c2"],":card_index_dividers:":["1f5c2-fe0f","1f5c2"],":card_box:":["1f5c3-fe0f","1f5c3"],":card_file_box:":["1f5c3-fe0f","1f5c3"],":file_cabinet:":["1f5c4-fe0f","1f5c4"],":wastebasket:":["1f5d1-fe0f","1f5d1"],":notepad_spiral:":["1f5d2-fe0f","1f5d2"],":spiral_note_pad:":["1f5d2-fe0f","1f5d2"],":calendar_spiral:":["1f5d3-fe0f","1f5d3"],":spiral_calendar_pad:":["1f5d3-fe0f","1f5d3"],":compression:":["1f5dc-fe0f","1f5dc"],":key2:":["1f5dd-fe0f","1f5dd"],":old_key:":["1f5dd-fe0f","1f5dd"],":newspaper2:":["1f5de-fe0f","1f5de"],":rolled_up_newspaper:":["1f5de-fe0f","1f5de"],":dagger:":["1f5e1-fe0f","1f5e1"],":dagger_knife:":["1f5e1-fe0f","1f5e1"],":speaking_head:":["1f5e3-fe0f","1f5e3"],":speaking_head_in_silhouette:":["1f5e3-fe0f","1f5e3"],":anger_right:":["1f5ef-fe0f","1f5ef"],":right_anger_bubble:":["1f5ef-fe0f","1f5ef"],":ballot_box:":["1f5f3-fe0f","1f5f3"],":ballot_box_with_ballot:":["1f5f3-fe0f","1f5f3"],":map:":["1f5fa-fe0f","1f5fa"],":world_map:":["1f5fa-fe0f","1f5fa"],":tools:":["1f6e0-fe0f","1f6e0"],":hammer_and_wrench:":["1f6e0-fe0f","1f6e0"],":shield:":["1f6e1-fe0f","1f6e1"],":oil:":["1f6e2-fe0f","1f6e2"],":oil_drum:":["1f6e2-fe0f","1f6e2"],":satellite_orbital:":["1f6f0-fe0f","1f6f0"],":fork_knife_plate:":["1f37d-fe0f","1f37d"],":fork_and_knife_with_plate:":["1f37d-fe0f","1f37d"],":eye:":["1f441-fe0f","1f441"],":levitate:":["1f574-fe0f","1f574"],":man_in_business_suit_levitating:":["1f574-fe0f","1f574"],":spy:":["1f575-fe0f","1f575"],":sleuth_or_spy:":["1f575-fe0f","1f575"],":hand_splayed:":["1f590-fe0f","1f590"],":raised_hand_with_fingers_splayed:":["1f590-fe0f","1f590"],":mountain_snow:":["1f3d4-fe0f","1f3d4"],":snow_capped_mountain:":["1f3d4-fe0f","1f3d4"],":camping:":["1f3d5-fe0f","1f3d5"],":beach:":["1f3d6-fe0f","1f3d6"],":beach_with_umbrella:":["1f3d6-fe0f","1f3d6"],":construction_site:":["1f3d7-fe0f","1f3d7"],":building_construction:":["1f3d7-fe0f","1f3d7"],":homes:":["1f3d8-fe0f","1f3d8"],":house_buildings:":["1f3d8-fe0f","1f3d8"],":cityscape:":["1f3d9-fe0f","1f3d9"],":house_abandoned:":["1f3da-fe0f","1f3da"],":derelict_house_building:":["1f3da-fe0f","1f3da"],":classical_building:":["1f3db-fe0f","1f3db"],":desert:":["1f3dc-fe0f","1f3dc"],":island:":["1f3dd-fe0f","1f3dd"],":desert_island:":["1f3dd-fe0f","1f3dd"],":park:":["1f3de-fe0f","1f3de"],":national_park:":["1f3de-fe0f","1f3de"],":stadium:":["1f3df-fe0f","1f3df"],":couch:":["1f6cb-fe0f","1f6cb"],":couch_and_lamp:":["1f6cb-fe0f","1f6cb"],":shopping_bags:":["1f6cd-fe0f","1f6cd"],":bellhop:":["1f6ce-fe0f","1f6ce"],":bellhop_bell:":["1f6ce-fe0f","1f6ce"],":bed:":["1f6cf-fe0f","1f6cf"],":motorway:":["1f6e3-fe0f","1f6e3"],":railway_track:":["1f6e4-fe0f","1f6e4"],":railroad_track:":["1f6e4-fe0f","1f6e4"],":motorboat:":["1f6e5-fe0f","1f6e5"],":airplane_small:":["1f6e9-fe0f","1f6e9"],":small_airplane:":["1f6e9-fe0f","1f6e9"],":cruise_ship:":["1f6f3-fe0f","1f6f3"],":passenger_ship:":["1f6f3-fe0f","1f6f3"],":white_sun_small_cloud:":["1f324-fe0f","1f324"],":white_sun_with_small_cloud:":["1f324-fe0f","1f324"],":white_sun_cloud:":["1f325-fe0f","1f325"],":white_sun_behind_cloud:":["1f325-fe0f","1f325"],":white_sun_rain_cloud:":["1f326-fe0f","1f326"],":white_sun_behind_cloud_with_rain:":["1f326-fe0f","1f326"],":mouse_three_button:":["1f5b1-fe0f","1f5b1"],":three_button_mouse:":["1f5b1-fe0f","1f5b1"],":point_up_tone1:":["261d-1f3fb"],":point_up_tone2:":["261d-1f3fc"],":point_up_tone3:":["261d-1f3fd"],":point_up_tone4:":["261d-1f3fe"],":point_up_tone5:":["261d-1f3ff"],":v_tone1:":["270c-1f3fb"],":v_tone2:":["270c-1f3fc"],":v_tone3:":["270c-1f3fd"],":v_tone4:":["270c-1f3fe"],":v_tone5:":["270c-1f3ff"],":fist_tone1:":["270a-1f3fb"],":fist_tone2:":["270a-1f3fc"],":fist_tone3:":["270a-1f3fd"],":fist_tone4:":["270a-1f3fe"],":fist_tone5:":["270a-1f3ff"],":raised_hand_tone1:":["270b-1f3fb"],":raised_hand_tone2:":["270b-1f3fc"],":raised_hand_tone3:":["270b-1f3fd"],":raised_hand_tone4:":["270b-1f3fe"],":raised_hand_tone5:":["270b-1f3ff"],":writing_hand_tone1:":["270d-1f3fb"],":writing_hand_tone2:":["270d-1f3fc"],":writing_hand_tone3:":["270d-1f3fd"],":writing_hand_tone4:":["270d-1f3fe"],":writing_hand_tone5:":["270d-1f3ff"],":basketball_player_tone1:":["26f9-1f3fb"],":person_with_ball_tone1:":["26f9-1f3fb"],":basketball_player_tone2:":["26f9-1f3fc"],":person_with_ball_tone2:":["26f9-1f3fc"],":basketball_player_tone3:":["26f9-1f3fd"],":person_with_ball_tone3:":["26f9-1f3fd"],":basketball_player_tone4:":["26f9-1f3fe"],":person_with_ball_tone4:":["26f9-1f3fe"],":basketball_player_tone5:":["26f9-1f3ff"],":person_with_ball_tone5:":["26f9-1f3ff"],":copyright:":["00a9-fe0f","00a9"],":registered:":["00ae-fe0f","00ae"],":bangbang:":["203c-fe0f","203c"],":interrobang:":["2049-fe0f","2049"],":tm:":["2122-fe0f","2122"],":left_right_arrow:":["2194-fe0f","2194"],":arrow_up_down:":["2195-fe0f","2195"],":arrow_upper_left:":["2196-fe0f","2196"],":arrow_upper_right:":["2197-fe0f","2197"],":arrow_lower_right:":["2198-fe0f","2198"],":arrow_lower_left:":["2199-fe0f","2199"],":leftwards_arrow_with_hook:":["21a9-fe0f","21a9"],":arrow_right_hook:":["21aa-fe0f","21aa"],":watch:":["231a-fe0f","231a"],":hourglass:":["231b-fe0f","231b"],":m:":["24c2-fe0f","24c2"],":black_small_square:":["25aa-fe0f","25aa"],":white_small_square:":["25ab-fe0f","25ab"],":arrow_forward:":["25b6-fe0f","25b6"],":arrow_backward:":["25c0-fe0f","25c0"],":white_medium_square:":["25fb-fe0f","25fb"],":black_medium_square:":["25fc-fe0f","25fc"],":white_medium_small_square:":["25fd-fe0f","25fd"],":black_medium_small_square:":["25fe-fe0f","25fe"],":sunny:":["2600-fe0f","2600"],":cloud:":["2601-fe0f","2601"],":telephone:":["260e-fe0f","260e"],":ballot_box_with_check:":["2611-fe0f","2611"],":umbrella:":["2614-fe0f","2614"],":coffee:":["2615-fe0f","2615"],":point_up:":["261d-fe0f","261d"],":relaxed:":["263a-fe0f","263a"],":aries:":["2648-fe0f","2648"],":taurus:":["2649-fe0f","2649"],":gemini:":["264a-fe0f","264a"],":cancer:":["264b-fe0f","264b"],":leo:":["264c-fe0f","264c"],":virgo:":["264d-fe0f","264d"],":libra:":["264e-fe0f","264e"],":scorpius:":["264f-fe0f","264f"],":sagittarius:":["2650-fe0f","2650"],":capricorn:":["2651-fe0f","2651"],":aquarius:":["2652-fe0f","2652"],":pisces:":["2653-fe0f","2653"],":spades:":["2660-fe0f","2660"],":clubs:":["2663-fe0f","2663"],":hearts:":["2665-fe0f","2665"],":diamonds:":["2666-fe0f","2666"],":hotsprings:":["2668-fe0f","2668"],":recycle:":["267b-fe0f","267b"],":wheelchair:":["267f-fe0f","267f"],":anchor:":["2693-fe0f","2693"],":warning:":["26a0-fe0f","26a0"],":zap:":["26a1-fe0f","26a1"],":white_circle:":["26aa-fe0f","26aa"],":black_circle:":["26ab-fe0f","26ab"],":soccer:":["26bd-fe0f","26bd"],":baseball:":["26be-fe0f","26be"],":snowman:":["26c4-fe0f","26c4"],":partly_sunny:":["26c5-fe0f","26c5"],":no_entry:":["26d4-fe0f","26d4"],":church:":["26ea-fe0f","26ea"],":fountain:":["26f2-fe0f","26f2"],":golf:":["26f3-fe0f","26f3"],":sailboat:":["26f5-fe0f","26f5"],":tent:":["26fa-fe0f","26fa"],":fuelpump:":["26fd-fe0f","26fd"],":scissors:":["2702-fe0f","2702"],":airplane:":["2708-fe0f","2708"],":envelope:":["2709-fe0f","2709"],":v:":["270c-fe0f","270c"],":pencil2:":["270f-fe0f","270f"],":black_nib:":["2712-fe0f","2712"],":heavy_check_mark:":["2714-fe0f","2714"],":heavy_multiplication_x:":["2716-fe0f","2716"],":eight_spoked_asterisk:":["2733-fe0f","2733"],":eight_pointed_black_star:":["2734-fe0f","2734"],":snowflake:":["2744-fe0f","2744"],":sparkle:":["2747-fe0f","2747"],":exclamation:":["2757-fe0f","2757"],":heart:":["2764-fe0f","2764"],":arrow_right:":["27a1-fe0f","27a1"],":arrow_heading_up:":["2934-fe0f","2934"],":arrow_heading_down:":["2935-fe0f","2935"],":arrow_left:":["2b05-fe0f","2b05"],":arrow_up:":["2b06-fe0f","2b06"],":arrow_down:":["2b07-fe0f","2b07"],":black_large_square:":["2b1b-fe0f","2b1b"],":white_large_square:":["2b1c-fe0f","2b1c"],":star:":["2b50-fe0f","2b50"],":o:":["2b55-fe0f","2b55"],":wavy_dash:":["3030-fe0f","3030"],":part_alternation_mark:":["303d-fe0f","303d"],":congratulations:":["3297-fe0f","3297"],":secret:":["3299-fe0f","3299"],":cross:":["271d-fe0f","271d"],":latin_cross:":["271d-fe0f","271d"],":keyboard:":["2328-fe0f","2328"],":writing_hand:":["270d-fe0f","270d"],":track_next:":["23ed-fe0f","23ed"],":next_track:":["23ed-fe0f","23ed"],":track_previous:":["23ee-fe0f","23ee"],":previous_track:":["23ee-fe0f","23ee"],":play_pause:":["23ef-fe0f","23ef"],":stopwatch:":["23f1-fe0f","23f1"],":timer:":["23f2-fe0f","23f2"],":timer_clock:":["23f2-fe0f","23f2"],":pause_button:":["23f8-fe0f","23f8"],":double_vertical_bar:":["23f8-fe0f","23f8"],":stop_button:":["23f9-fe0f","23f9"],":record_button:":["23fa-fe0f","23fa"],":umbrella2:":["2602-fe0f","2602"],":snowman2:":["2603-fe0f","2603"],":comet:":["2604-fe0f","2604"],":shamrock:":["2618-fe0f","2618"],":skull_crossbones:":["2620-fe0f","2620"],":skull_and_crossbones:":["2620-fe0f","2620"],":radioactive:":["2622-fe0f","2622"],":radioactive_sign:":["2622-fe0f","2622"],":biohazard:":["2623-fe0f","2623"],":biohazard_sign:":["2623-fe0f","2623"],":orthodox_cross:":["2626-fe0f","2626"],":star_and_crescent:":["262a-fe0f","262a"],":peace:":["262e-fe0f","262e"],":peace_symbol:":["262e-fe0f","262e"],":yin_yang:":["262f-fe0f","262f"],":wheel_of_dharma:":["2638-fe0f","2638"],":frowning2:":["2639-fe0f","2639"],":white_frowning_face:":["2639-fe0f","2639"],":hammer_pick:":["2692-fe0f","2692"],":hammer_and_pick:":["2692-fe0f","2692"],":crossed_swords:":["2694-fe0f","2694"],":scales:":["2696-fe0f","2696"],":alembic:":["2697-fe0f","2697"],":gear:":["2699-fe0f","2699"],":atom:":["269b-fe0f","269b"],":atom_symbol:":["269b-fe0f","269b"],":fleur-de-lis:":["269c-fe0f","269c"],":coffin:":["26b0-fe0f","26b0"],":urn:":["26b1-fe0f","26b1"],":funeral_urn:":["26b1-fe0f","26b1"],":thunder_cloud_rain:":["26c8-fe0f","26c8"],":thunder_cloud_and_rain:":["26c8-fe0f","26c8"],":pick:":["26cf-fe0f","26cf"],":helmet_with_cross:":["26d1-fe0f","26d1"],":helmet_with_white_cross:":["26d1-fe0f","26d1"],":chains:":["26d3-fe0f","26d3"],":shinto_shrine:":["26e9-fe0f","26e9"],":mountain:":["26f0-fe0f","26f0"],":beach_umbrella:":["26f1-fe0f","26f1"],":umbrella_on_ground:":["26f1-fe0f","26f1"],":ferry:":["26f4-fe0f","26f4"],":skier:":["26f7-fe0f","26f7"],":ice_skate:":["26f8-fe0f","26f8"],":basketball_player:":["26f9-fe0f","26f9"],":person_with_ball:":["26f9-fe0f","26f9"],":star_of_david:":["2721-fe0f","2721"],":heart_exclamation:":["2763-fe0f","2763"],":heavy_heart_exclamation_mark_ornament:":["2763-fe0f","2763"],":black_joker:":["1f0cf"],":a:":["1f170"],":b:":["1f171"],":o2:":["1f17e"],":ab:":["1f18e"],":cl:":["1f191"],":cool:":["1f192"],":free:":["1f193"],":id:":["1f194"],":new:":["1f195"],":ng:":["1f196"],":ok:":["1f197"],":sos:":["1f198"],":up:":["1f199"],":vs:":["1f19a"],":koko:":["1f201"],":u7981:":["1f232"],":u7a7a:":["1f233"],":u5408:":["1f234"],":u6e80:":["1f235"],":u6709:":["1f236"],":u7533:":["1f238"],":u5272:":["1f239"],":u55b6:":["1f23a"],":ideograph_advantage:":["1f250"],":accept:":["1f251"],":cyclone:":["1f300"],":foggy:":["1f301"],":closed_umbrella:":["1f302"],":night_with_stars:":["1f303"],":sunrise_over_mountains:":["1f304"],":sunrise:":["1f305"],":city_dusk:":["1f306"],":city_sunset:":["1f307"],":city_sunrise:":["1f307"],":rainbow:":["1f308"],":bridge_at_night:":["1f309"],":ocean:":["1f30a"],":volcano:":["1f30b"],":milky_way:":["1f30c"],":earth_asia:":["1f30f"],":new_moon:":["1f311"],":first_quarter_moon:":["1f313"],":waxing_gibbous_moon:":["1f314"],":full_moon:":["1f315"],":crescent_moon:":["1f319"],":first_quarter_moon_with_face:":["1f31b"],":star2:":["1f31f"],":stars:":["1f320"],":chestnut:":["1f330"],":seedling:":["1f331"],":palm_tree:":["1f334"],":cactus:":["1f335"],":tulip:":["1f337"],":cherry_blossom:":["1f338"],":rose:":["1f339"],":hibiscus:":["1f33a"],":sunflower:":["1f33b"],":blossom:":["1f33c"],":corn:":["1f33d"],":ear_of_rice:":["1f33e"],":herb:":["1f33f"],":four_leaf_clover:":["1f340"],":maple_leaf:":["1f341"],":fallen_leaf:":["1f342"],":leaves:":["1f343"],":mushroom:":["1f344"],":tomato:":["1f345"],":eggplant:":["1f346"],":grapes:":["1f347"],":melon:":["1f348"],":watermelon:":["1f349"],":tangerine:":["1f34a"],":banana:":["1f34c"],":pineapple:":["1f34d"],":apple:":["1f34e"],":green_apple:":["1f34f"],":peach:":["1f351"],":cherries:":["1f352"],":strawberry:":["1f353"],":hamburger:":["1f354"],":pizza:":["1f355"],":meat_on_bone:":["1f356"],":poultry_leg:":["1f357"],":rice_cracker:":["1f358"],":rice_ball:":["1f359"],":rice:":["1f35a"],":curry:":["1f35b"],":ramen:":["1f35c"],":spaghetti:":["1f35d"],":bread:":["1f35e"],":fries:":["1f35f"],":sweet_potato:":["1f360"],":dango:":["1f361"],":oden:":["1f362"],":sushi:":["1f363"],":fried_shrimp:":["1f364"],":fish_cake:":["1f365"],":icecream:":["1f366"],":shaved_ice:":["1f367"],":ice_cream:":["1f368"],":doughnut:":["1f369"],":cookie:":["1f36a"],":chocolate_bar:":["1f36b"],":candy:":["1f36c"],":lollipop:":["1f36d"],":custard:":["1f36e"],":honey_pot:":["1f36f"],":cake:":["1f370"],":bento:":["1f371"],":stew:":["1f372"],":egg:":["1f373"],":fork_and_knife:":["1f374"],":tea:":["1f375"],":sake:":["1f376"],":wine_glass:":["1f377"],":cocktail:":["1f378"],":tropical_drink:":["1f379"],":beer:":["1f37a"],":beers:":["1f37b"],":ribbon:":["1f380"],":gift:":["1f381"],":birthday:":["1f382"],":jack_o_lantern:":["1f383"],":christmas_tree:":["1f384"],":santa:":["1f385"],":fireworks:":["1f386"],":sparkler:":["1f387"],":balloon:":["1f388"],":tada:":["1f389"],":confetti_ball:":["1f38a"],":tanabata_tree:":["1f38b"],":crossed_flags:":["1f38c"],":bamboo:":["1f38d"],":dolls:":["1f38e"],":flags:":["1f38f"],":wind_chime:":["1f390"],":rice_scene:":["1f391"],":school_satchel:":["1f392"],":mortar_board:":["1f393"],":carousel_horse:":["1f3a0"],":ferris_wheel:":["1f3a1"],":roller_coaster:":["1f3a2"],":fishing_pole_and_fish:":["1f3a3"],":microphone:":["1f3a4"],":movie_camera:":["1f3a5"],":cinema:":["1f3a6"],":headphones:":["1f3a7"],":art:":["1f3a8"],":tophat:":["1f3a9"],":circus_tent:":["1f3aa"],":ticket:":["1f3ab"],":clapper:":["1f3ac"],":performing_arts:":["1f3ad"],":video_game:":["1f3ae"],":dart:":["1f3af"],":slot_machine:":["1f3b0"],":8ball:":["1f3b1"],":game_die:":["1f3b2"],":bowling:":["1f3b3"],":flower_playing_cards:":["1f3b4"],":musical_note:":["1f3b5"],":notes:":["1f3b6"],":saxophone:":["1f3b7"],":guitar:":["1f3b8"],":musical_keyboard:":["1f3b9"],":trumpet:":["1f3ba"],":violin:":["1f3bb"],":musical_score:":["1f3bc"],":running_shirt_with_sash:":["1f3bd"],":tennis:":["1f3be"],":ski:":["1f3bf"],":basketball:":["1f3c0"],":checkered_flag:":["1f3c1"],":snowboarder:":["1f3c2"],":runner:":["1f3c3"],":surfer:":["1f3c4"],":trophy:":["1f3c6"],":football:":["1f3c8"],":swimmer:":["1f3ca"],":house:":["1f3e0"],":house_with_garden:":["1f3e1"],":office:":["1f3e2"],":post_office:":["1f3e3"],":hospital:":["1f3e5"],":bank:":["1f3e6"],":atm:":["1f3e7"],":hotel:":["1f3e8"],":love_hotel:":["1f3e9"],":convenience_store:":["1f3ea"],":school:":["1f3eb"],":department_store:":["1f3ec"],":factory:":["1f3ed"],":izakaya_lantern:":["1f3ee"],":japanese_castle:":["1f3ef"],":european_castle:":["1f3f0"],":snail:":["1f40c"],":snake:":["1f40d"],":racehorse:":["1f40e"],":sheep:":["1f411"],":monkey:":["1f412"],":chicken:":["1f414"],":boar:":["1f417"],":elephant:":["1f418"],":octopus:":["1f419"],":shell:":["1f41a"],":bug:":["1f41b"],":ant:":["1f41c"],":bee:":["1f41d"],":beetle:":["1f41e"],":fish:":["1f41f"],":tropical_fish:":["1f420"],":blowfish:":["1f421"],":turtle:":["1f422"],":hatching_chick:":["1f423"],":baby_chick:":["1f424"],":hatched_chick:":["1f425"],":bird:":["1f426"],":penguin:":["1f427"],":koala:":["1f428"],":poodle:":["1f429"],":camel:":["1f42b"],":dolphin:":["1f42c"],":mouse:":["1f42d"],":cow:":["1f42e"],":tiger:":["1f42f"],":rabbit:":["1f430"],":cat:":["1f431"],":dragon_face:":["1f432"],":whale:":["1f433"],":horse:":["1f434"],":monkey_face:":["1f435"],":dog:":["1f436"],":pig:":["1f437"],":frog:":["1f438"],":hamster:":["1f439"],":wolf:":["1f43a"],":bear:":["1f43b"],":panda_face:":["1f43c"],":pig_nose:":["1f43d"],":feet:":["1f43e"],":paw_prints:":["1f43e"],":eyes:":["1f440"],":ear:":["1f442"],":nose:":["1f443"],":lips:":["1f444"],":tongue:":["1f445"],":point_up_2:":["1f446"],":point_down:":["1f447"],":point_left:":["1f448"],":point_right:":["1f449"],":punch:":["1f44a"],":wave:":["1f44b"],":ok_hand:":["1f44c"],":thumbsup:":["1f44d"],":+1:":["1f44d"],":thumbsdown:":["1f44e"],":-1:":["1f44e"],":clap:":["1f44f"],":open_hands:":["1f450"],":crown:":["1f451"],":womans_hat:":["1f452"],":eyeglasses:":["1f453"],":necktie:":["1f454"],":shirt:":["1f455"],":jeans:":["1f456"],":dress:":["1f457"],":kimono:":["1f458"],":bikini:":["1f459"],":womans_clothes:":["1f45a"],":purse:":["1f45b"],":handbag:":["1f45c"],":pouch:":["1f45d"],":mans_shoe:":["1f45e"],":athletic_shoe:":["1f45f"],":high_heel:":["1f460"],":sandal:":["1f461"],":boot:":["1f462"],":footprints:":["1f463"],":bust_in_silhouette:":["1f464"],":boy:":["1f466"],":girl:":["1f467"],":man:":["1f468"],":woman:":["1f469"],":family:":["1f46a"],":couple:":["1f46b"],":cop:":["1f46e"],":dancers:":["1f46f"],":bride_with_veil:":["1f470"],":person_with_blond_hair:":["1f471"],":man_with_gua_pi_mao:":["1f472"],":man_with_turban:":["1f473"],":older_man:":["1f474"],":older_woman:":["1f475"],":grandma:":["1f475"],":baby:":["1f476"],":construction_worker:":["1f477"],":princess:":["1f478"],":japanese_ogre:":["1f479"],":japanese_goblin:":["1f47a"],":ghost:":["1f47b"],":angel:":["1f47c"],":alien:":["1f47d"],":space_invader:":["1f47e"],":imp:":["1f47f"],":skull:":["1f480"],":skeleton:":["1f480"],":card_index:":["1f4c7"],":information_desk_person:":["1f481"],":guardsman:":["1f482"],":dancer:":["1f483"],":lipstick:":["1f484"],":nail_care:":["1f485"],":ledger:":["1f4d2"],":massage:":["1f486"],":notebook:":["1f4d3"],":haircut:":["1f487"],":notebook_with_decorative_cover:":["1f4d4"],":barber:":["1f488"],":closed_book:":["1f4d5"],":syringe:":["1f489"],":book:":["1f4d6"],":pill:":["1f48a"],":green_book:":["1f4d7"],":kiss:":["1f48b"],":blue_book:":["1f4d8"],":love_letter:":["1f48c"],":orange_book:":["1f4d9"],":ring:":["1f48d"],":books:":["1f4da"],":gem:":["1f48e"],":name_badge:":["1f4db"],":couplekiss:":["1f48f"],":scroll:":["1f4dc"],":bouquet:":["1f490"],":pencil:":["1f4dd"],":couple_with_heart:":["1f491"],":telephone_receiver:":["1f4de"],":wedding:":["1f492"],":pager:":["1f4df"],":fax:":["1f4e0"],":heartbeat:":["1f493"],":satellite:":["1f4e1"],":loudspeaker:":["1f4e2"],":broken_heart:":["1f494"],":mega:":["1f4e3"],":outbox_tray:":["1f4e4"],":two_hearts:":["1f495"],":inbox_tray:":["1f4e5"],":package:":["1f4e6"],":sparkling_heart:":["1f496"],":e-mail:":["1f4e7"],":email:":["1f4e7"],":incoming_envelope:":["1f4e8"],":heartpulse:":["1f497"],":envelope_with_arrow:":["1f4e9"],":mailbox_closed:":["1f4ea"],":cupid:":["1f498"],":mailbox:":["1f4eb"],":postbox:":["1f4ee"],":blue_heart:":["1f499"],":newspaper:":["1f4f0"],":iphone:":["1f4f1"],":green_heart:":["1f49a"],":calling:":["1f4f2"],":vibration_mode:":["1f4f3"],":yellow_heart:":["1f49b"],":mobile_phone_off:":["1f4f4"],":signal_strength:":["1f4f6"],":purple_heart:":["1f49c"],":camera:":["1f4f7"],":video_camera:":["1f4f9"],":gift_heart:":["1f49d"],":tv:":["1f4fa"],":radio:":["1f4fb"],":revolving_hearts:":["1f49e"],":vhs:":["1f4fc"],":arrows_clockwise:":["1f503"],":heart_decoration:":["1f49f"],":loud_sound:":["1f50a"],":battery:":["1f50b"],":diamond_shape_with_a_dot_inside:":["1f4a0"],":electric_plug:":["1f50c"],":mag:":["1f50d"],":bulb:":["1f4a1"],":mag_right:":["1f50e"],":lock_with_ink_pen:":["1f50f"],":anger:":["1f4a2"],":closed_lock_with_key:":["1f510"],":key:":["1f511"],":bomb:":["1f4a3"],":lock:":["1f512"],":unlock:":["1f513"],":zzz:":["1f4a4"],":bell:":["1f514"],":bookmark:":["1f516"],":boom:":["1f4a5"],":link:":["1f517"],":radio_button:":["1f518"],":sweat_drops:":["1f4a6"],":back:":["1f519"],":end:":["1f51a"],":droplet:":["1f4a7"],":on:":["1f51b"],":soon:":["1f51c"],":dash:":["1f4a8"],":top:":["1f51d"],":underage:":["1f51e"],":poop:":["1f4a9"],":shit:":["1f4a9"],":hankey:":["1f4a9"],":poo:":["1f4a9"],":ten:":["1f51f"],":muscle:":["1f4aa"],":capital_abcd:":["1f520"],":abcd:":["1f521"],":dizzy:":["1f4ab"],":1234:":["1f522"],":symbols:":["1f523"],":speech_balloon:":["1f4ac"],":abc:":["1f524"],":fire:":["1f525"],":flame:":["1f525"],":white_flower:":["1f4ae"],":flashlight:":["1f526"],":wrench:":["1f527"],":100:":["1f4af"],":hammer:":["1f528"],":nut_and_bolt:":["1f529"],":moneybag:":["1f4b0"],":knife:":["1f52a"],":gun:":["1f52b"],":currency_exchange:":["1f4b1"],":crystal_ball:":["1f52e"],":heavy_dollar_sign:":["1f4b2"],":six_pointed_star:":["1f52f"],":credit_card:":["1f4b3"],":beginner:":["1f530"],":trident:":["1f531"],":yen:":["1f4b4"],":black_square_button:":["1f532"],":white_square_button:":["1f533"],":dollar:":["1f4b5"],":red_circle:":["1f534"],":large_blue_circle:":["1f535"],":money_with_wings:":["1f4b8"],":large_orange_diamond:":["1f536"],":large_blue_diamond:":["1f537"],":chart:":["1f4b9"],":small_orange_diamond:":["1f538"],":small_blue_diamond:":["1f539"],":seat:":["1f4ba"],":small_red_triangle:":["1f53a"],":small_red_triangle_down:":["1f53b"],":computer:":["1f4bb"],":arrow_up_small:":["1f53c"],":briefcase:":["1f4bc"],":arrow_down_small:":["1f53d"],":clock1:":["1f550"],":minidisc:":["1f4bd"],":clock2:":["1f551"],":floppy_disk:":["1f4be"],":clock3:":["1f552"],":cd:":["1f4bf"],":clock4:":["1f553"],":dvd:":["1f4c0"],":clock5:":["1f554"],":clock6:":["1f555"],":file_folder:":["1f4c1"],":clock7:":["1f556"],":clock8:":["1f557"],":open_file_folder:":["1f4c2"],":clock9:":["1f558"],":clock10:":["1f559"],":page_with_curl:":["1f4c3"],":clock11:":["1f55a"],":clock12:":["1f55b"],":page_facing_up:":["1f4c4"],":mount_fuji:":["1f5fb"],":tokyo_tower:":["1f5fc"],":date:":["1f4c5"],":statue_of_liberty:":["1f5fd"],":japan:":["1f5fe"],":calendar:":["1f4c6"],":moyai:":["1f5ff"],":grin:":["1f601"],":joy:":["1f602"],":smiley:":["1f603"],":chart_with_upwards_trend:":["1f4c8"],":smile:":["1f604"],":sweat_smile:":["1f605"],":chart_with_downwards_trend:":["1f4c9"],":laughing:":["1f606"],":satisfied:":["1f606"],":wink:":["1f609"],":bar_chart:":["1f4ca"],":blush:":["1f60a"],":yum:":["1f60b"],":clipboard:":["1f4cb"],":relieved:":["1f60c"],":heart_eyes:":["1f60d"],":pushpin:":["1f4cc"],":smirk:":["1f60f"],":unamused:":["1f612"],":round_pushpin:":["1f4cd"],":sweat:":["1f613"],":pensive:":["1f614"],":paperclip:":["1f4ce"],":confounded:":["1f616"],":kissing_heart:":["1f618"],":straight_ruler:":["1f4cf"],":kissing_closed_eyes:":["1f61a"],":stuck_out_tongue_winking_eye:":["1f61c"],":triangular_ruler:":["1f4d0"],":stuck_out_tongue_closed_eyes:":["1f61d"],":disappointed:":["1f61e"],":bookmark_tabs:":["1f4d1"],":angry:":["1f620"],":rage:":["1f621"],":cry:":["1f622"],":persevere:":["1f623"],":triumph:":["1f624"],":disappointed_relieved:":["1f625"],":fearful:":["1f628"],":weary:":["1f629"],":sleepy:":["1f62a"],":tired_face:":["1f62b"],":sob:":["1f62d"],":cold_sweat:":["1f630"],":scream:":["1f631"],":astonished:":["1f632"],":flushed:":["1f633"],":dizzy_face:":["1f635"],":mask:":["1f637"],":smile_cat:":["1f638"],":joy_cat:":["1f639"],":smiley_cat:":["1f63a"],":heart_eyes_cat:":["1f63b"],":smirk_cat:":["1f63c"],":kissing_cat:":["1f63d"],":pouting_cat:":["1f63e"],":crying_cat_face:":["1f63f"],":scream_cat:":["1f640"],":no_good:":["1f645"],":ok_woman:":["1f646"],":bow:":["1f647"],":see_no_evil:":["1f648"],":hear_no_evil:":["1f649"],":speak_no_evil:":["1f64a"],":raising_hand:":["1f64b"],":raised_hands:":["1f64c"],":person_frowning:":["1f64d"],":person_with_pouting_face:":["1f64e"],":pray:":["1f64f"],":rocket:":["1f680"],":railway_car:":["1f683"],":bullettrain_side:":["1f684"],":bullettrain_front:":["1f685"],":metro:":["1f687"],":station:":["1f689"],":bus:":["1f68c"],":busstop:":["1f68f"],":ambulance:":["1f691"],":fire_engine:":["1f692"],":police_car:":["1f693"],":taxi:":["1f695"],":red_car:":["1f697"],":blue_car:":["1f699"],":truck:":["1f69a"],":ship:":["1f6a2"],":speedboat:":["1f6a4"],":traffic_light:":["1f6a5"],":construction:":["1f6a7"],":rotating_light:":["1f6a8"],":triangular_flag_on_post:":["1f6a9"],":door:":["1f6aa"],":no_entry_sign:":["1f6ab"],":smoking:":["1f6ac"],":no_smoking:":["1f6ad"],":bike:":["1f6b2"],":walking:":["1f6b6"],":mens:":["1f6b9"],":womens:":["1f6ba"],":restroom:":["1f6bb"],":baby_symbol:":["1f6bc"],":toilet:":["1f6bd"],":wc:":["1f6be"],":bath:":["1f6c0"],":metal:":["1f918"],":sign_of_the_horns:":["1f918"],":grinning:":["1f600"],":innocent:":["1f607"],":smiling_imp:":["1f608"],":sunglasses:":["1f60e"],":neutral_face:":["1f610"],":expressionless:":["1f611"],":confused:":["1f615"],":kissing:":["1f617"],":kissing_smiling_eyes:":["1f619"],":stuck_out_tongue:":["1f61b"],":worried:":["1f61f"],":frowning:":["1f626"],":anguished:":["1f627"],":grimacing:":["1f62c"],":open_mouth:":["1f62e"],":hushed:":["1f62f"],":sleeping:":["1f634"],":no_mouth:":["1f636"],":helicopter:":["1f681"],":steam_locomotive:":["1f682"],":train2:":["1f686"],":light_rail:":["1f688"],":tram:":["1f68a"],":oncoming_bus:":["1f68d"],":trolleybus:":["1f68e"],":minibus:":["1f690"],":oncoming_police_car:":["1f694"],":oncoming_taxi:":["1f696"],":oncoming_automobile:":["1f698"],":articulated_lorry:":["1f69b"],":tractor:":["1f69c"],":monorail:":["1f69d"],":mountain_railway:":["1f69e"],":suspension_railway:":["1f69f"],":mountain_cableway:":["1f6a0"],":aerial_tramway:":["1f6a1"],":rowboat:":["1f6a3"],":vertical_traffic_light:":["1f6a6"],":put_litter_in_its_place:":["1f6ae"],":do_not_litter:":["1f6af"],":potable_water:":["1f6b0"],":non-potable_water:":["1f6b1"],":no_bicycles:":["1f6b3"],":bicyclist:":["1f6b4"],":mountain_bicyclist:":["1f6b5"],":no_pedestrians:":["1f6b7"],":children_crossing:":["1f6b8"],":shower:":["1f6bf"],":bathtub:":["1f6c1"],":passport_control:":["1f6c2"],":customs:":["1f6c3"],":baggage_claim:":["1f6c4"],":left_luggage:":["1f6c5"],":earth_africa:":["1f30d"],":earth_americas:":["1f30e"],":globe_with_meridians:":["1f310"],":waxing_crescent_moon:":["1f312"],":waning_gibbous_moon:":["1f316"],":last_quarter_moon:":["1f317"],":waning_crescent_moon:":["1f318"],":new_moon_with_face:":["1f31a"],":last_quarter_moon_with_face:":["1f31c"],":full_moon_with_face:":["1f31d"],":sun_with_face:":["1f31e"],":evergreen_tree:":["1f332"],":deciduous_tree:":["1f333"],":lemon:":["1f34b"],":pear:":["1f350"],":baby_bottle:":["1f37c"],":horse_racing:":["1f3c7"],":rugby_football:":["1f3c9"],":european_post_office:":["1f3e4"],":rat:":["1f400"],":mouse2:":["1f401"],":ox:":["1f402"],":water_buffalo:":["1f403"],":cow2:":["1f404"],":tiger2:":["1f405"],":leopard:":["1f406"],":rabbit2:":["1f407"],":cat2:":["1f408"],":dragon:":["1f409"],":crocodile:":["1f40a"],":whale2:":["1f40b"],":ram:":["1f40f"],":goat:":["1f410"],":rooster:":["1f413"],":dog2:":["1f415"],":pig2:":["1f416"],":dromedary_camel:":["1f42a"],":busts_in_silhouette:":["1f465"],":two_men_holding_hands:":["1f46c"],":two_women_holding_hands:":["1f46d"],":thought_balloon:":["1f4ad"],":euro:":["1f4b6"],":pound:":["1f4b7"],":mailbox_with_mail:":["1f4ec"],":mailbox_with_no_mail:":["1f4ed"],":postal_horn:":["1f4ef"],":no_mobile_phones:":["1f4f5"],":twisted_rightwards_arrows:":["1f500"],":repeat:":["1f501"],":repeat_one:":["1f502"],":arrows_counterclockwise:":["1f504"],":low_brightness:":["1f505"],":high_brightness:":["1f506"],":mute:":["1f507"],":sound:":["1f509"],":no_bell:":["1f515"],":microscope:":["1f52c"],":telescope:":["1f52d"],":clock130:":["1f55c"],":clock230:":["1f55d"],":clock330:":["1f55e"],":clock430:":["1f55f"],":clock530:":["1f560"],":clock630:":["1f561"],":clock730:":["1f562"],":clock830:":["1f563"],":clock930:":["1f564"],":clock1030:":["1f565"],":clock1130:":["1f566"],":clock1230:":["1f567"],":speaker:":["1f508"],":train:":["1f68b"],":medal:":["1f3c5"],":sports_medal:":["1f3c5"],":flag_black:":["1f3f4"],":waving_black_flag:":["1f3f4"],":camera_with_flash:":["1f4f8"],":sleeping_accommodation:":["1f6cc"],":middle_finger:":["1f595"],":reversed_hand_with_middle_finger_extended:":["1f595"],":vulcan:":["1f596"],":raised_hand_with_part_between_middle_and_ring_fingers:":["1f596"],":slight_frown:":["1f641"],":slightly_frowning_face:":["1f641"],":slight_smile:":["1f642"],":slightly_smiling_face:":["1f642"],":airplane_departure:":["1f6eb"],":airplane_arriving:":["1f6ec"],":tone1:":["1f3fb"],":tone2:":["1f3fc"],":tone3:":["1f3fd"],":tone4:":["1f3fe"],":tone5:":["1f3ff"],":upside_down:":["1f643"],":upside_down_face:":["1f643"],":money_mouth:":["1f911"],":money_mouth_face:":["1f911"],":nerd:":["1f913"],":nerd_face:":["1f913"],":hugging:":["1f917"],":hugging_face:":["1f917"],":rolling_eyes:":["1f644"],":face_with_rolling_eyes:":["1f644"],":thinking:":["1f914"],":thinking_face:":["1f914"],":zipper_mouth:":["1f910"],":zipper_mouth_face:":["1f910"],":thermometer_face:":["1f912"],":face_with_thermometer:":["1f912"],":head_bandage:":["1f915"],":face_with_head_bandage:":["1f915"],":robot:":["1f916"],":robot_face:":["1f916"],":lion_face:":["1f981"],":lion:":["1f981"],":unicorn:":["1f984"],":unicorn_face:":["1f984"],":scorpion:":["1f982"],":crab:":["1f980"],":turkey:":["1f983"],":cheese:":["1f9c0"],":cheese_wedge:":["1f9c0"],":hotdog:":["1f32d"],":hot_dog:":["1f32d"],":taco:":["1f32e"],":burrito:":["1f32f"],":popcorn:":["1f37f"],":champagne:":["1f37e"],":bottle_with_popping_cork:":["1f37e"],":bow_and_arrow:":["1f3f9"],":archery:":["1f3f9"],":amphora:":["1f3fa"],":place_of_worship:":["1f6d0"],":worship_symbol:":["1f6d0"],":kaaba:":["1f54b"],":mosque:":["1f54c"],":synagogue:":["1f54d"],":menorah:":["1f54e"],":prayer_beads:":["1f4ff"],":cricket:":["1f3cf"],":cricket_bat_ball:":["1f3cf"],":volleyball:":["1f3d0"],":field_hockey:":["1f3d1"],":hockey:":["1f3d2"],":ping_pong:":["1f3d3"],":table_tennis:":["1f3d3"],":badminton:":["1f3f8"],":fast_forward:":["23e9"],":rewind:":["23ea"],":arrow_double_up:":["23eb"],":arrow_double_down:":["23ec"],":alarm_clock:":["23f0"],":hourglass_flowing_sand:":["23f3"],":ophiuchus:":["26ce"],":white_check_mark:":["2705"],":fist:":["270a"],":raised_hand:":["270b"],":sparkles:":["2728"],":x:":["274c"],":negative_squared_cross_mark:":["274e"],":question:":["2753"],":grey_question:":["2754"],":grey_exclamation:":["2755"],":heavy_plus_sign:":["2795"],":heavy_minus_sign:":["2796"],":heavy_division_sign:":["2797"],":curly_loop:":["27b0"],":loop:":["27bf"]};var t,e=[];for(t in r.emojioneList)r.emojioneList.hasOwnProperty(t)&&e.push(t.replace(/[+]/g,"\\$&"));r.shortnames=e.join("|"),r.asciiList={"<3":"2764","</3":"1f494",":')":"1f602",":'-)":"1f602",":D":"1f603",":-D":"1f603","=D":"1f603",":)":"1f642",":-)":"1f642","=]":"1f642","=)":"1f642",":]":"1f642","':)":"1f605","':-)":"1f605","'=)":"1f605","':D":"1f605","':-D":"1f605","'=D":"1f605",">:)":"1f606",">;)":"1f606",">:-)":"1f606",">=)":"1f606",";)":"1f609",";-)":"1f609","*-)":"1f609","*)":"1f609",";-]":"1f609",";]":"1f609",";D":"1f609",";^)":"1f609","':(":"1f613","':-(":"1f613","'=(":"1f613",":*":"1f618",":-*":"1f618","=*":"1f618",":^*":"1f618",">:P":"1f61c","X-P":"1f61c","x-p":"1f61c",">:[":"1f61e",":-(":"1f61e",":(":"1f61e",":-[":"1f61e",":[":"1f61e","=(":"1f61e",">:(":"1f620",">:-(":"1f620",":@":"1f620",":'(":"1f622",":'-(":"1f622",";(":"1f622",";-(":"1f622",">.<":"1f623","D:":"1f628",":$":"1f633","=$":"1f633","#-)":"1f635","#)":"1f635","%-)":"1f635","%)":"1f635","X)":"1f635","X-)":"1f635","*\\0/*":"1f646","\\0/":"1f646","*\\O/*":"1f646","\\O/":"1f646","O:-)":"1f607","0:-3":"1f607","0:3":"1f607","0:-)":"1f607","0:)":"1f607","0;^)":"1f607","O:)":"1f607","O;-)":"1f607","O=)":"1f607","0;-)":"1f607","O:-3":"1f607","O:3":"1f607","B-)":"1f60e","B)":"1f60e","8)":"1f60e","8-)":"1f60e","B-D":"1f60e","8-D":"1f60e","-_-":"1f611","-__-":"1f611","-___-":"1f611",">:\\":"1f615",">:/":"1f615",":-/":"1f615",":-.":"1f615",":/":"1f615",":\\":"1f615","=/":"1f615","=\\":"1f615",":L":"1f615","=L":"1f615",":P":"1f61b",":-P":"1f61b","=P":"1f61b",":-p":"1f61b",":p":"1f61b","=p":"1f61b",":-?":"1f61b",":-?":"1f61b",":?":"1f61b",":?":"1f61b",":-b":"1f61b",":b":"1f61b","d:":"1f61b",":-O":"1f62e",":O":"1f62e",":-o":"1f62e",":o":"1f62e",O_O:"1f62e",">:O":"1f62e",":-X":"1f636",":X":"1f636",":-#":"1f636",":#":"1f636","=X":"1f636","=x":"1f636",":x":"1f636",":-x":"1f636","=#":"1f636"},r.asciiRegexp="(\\<3|&lt;3|\\<\\/3|&lt;\\/3|\\:'\\)|\\:'\\-\\)|\\:D|\\:\\-D|\\=D|\\:\\)|\\:\\-\\)|\\=\\]|\\=\\)|\\:\\]|'\\:\\)|'\\:\\-\\)|'\\=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\-x|\\=#)",r.unicodeRegexp="(\\uD83D\\uDC69\\u200D\\u2764\\uFE0F\\u200D\\uD83D\\uDC8B\\u200D\\uD83D\\uDC69|\\uD83D\\uDC68\\u200D\\u2764\\uFE0F\\u200D\\uD83D\\uDC8B\\u200D\\uD83D\\uDC68|\\uD83D\\uDC68\\u200D\\uD83D\\uDC68\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC66|\\uD83D\\uDC68\\u200D\\uD83D\\uDC68\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC67|\\uD83D\\uDC68\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|\\uD83D\\uDC68\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC66|\\uD83D\\uDC68\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC67|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC66|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC67|\\uD83D\\uDC68\\u200D\\uD83D\\uDC68\\u200D\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|\\uD83D\\uDC68\\u200D\\u2764\\uFE0F\\u200D\\uD83D\\uDC68|\\uD83D\\uDC68\\u200D\\uD83D\\uDC68\\u200D\\uD83D\\uDC67|\\uD83D\\uDC68\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC66|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67|\\uD83D\\uDC69\\u200D\\u2764\\uFE0F\\u200D\\uD83D\\uDC69|\\uD83D\\uDC68\\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|\\uD83D\\uDE46\\uD83C\\uDFFC|\\uD83D\\uDE46\\uD83C\\uDFFB|\\uD83D\\uDE45\\uD83C\\uDFFF|\\uD83D\\uDE45\\uD83C\\uDFFE|\\uD83D\\uDE45\\uD83C\\uDFFD|\\uD83D\\uDE45\\uD83C\\uDFFC|\\uD83D\\uDE45\\uD83C\\uDFFB|\\uD83D\\uDD96\\uD83C\\uDFFF|\\uD83D\\uDD96\\uD83C\\uDFFE|\\uD83D\\uDD96\\uD83C\\uDFFD|\\uD83D\\uDD96\\uD83C\\uDFFC|\\uD83D\\uDD96\\uD83C\\uDFFB|\\uD83D\\uDD95\\uD83C\\uDFFF|\\uD83D\\uDD95\\uD83C\\uDFFE|\\uD83D\\uDD95\\uD83C\\uDFFD|\\uD83D\\uDD95\\uD83C\\uDFFC|\\uD83D\\uDD95\\uD83C\\uDFFB|\\uD83D\\uDD90\\uD83C\\uDFFF|\\uD83D\\uDD90\\uD83C\\uDFFE|\\uD83D\\uDD90\\uD83C\\uDFFD|\\uD83D\\uDD90\\uD83C\\uDFFC|\\uD83D\\uDD90\\uD83C\\uDFFB|\\uD83D\\uDD75\\uD83C\\uDFFF|\\uD83D\\uDD75\\uD83C\\uDFFE|\\uD83D\\uDD75\\uD83C\\uDFFD|\\uD83D\\uDD75\\uD83C\\uDFFC|\\uD83D\\uDD75\\uD83C\\uDFFB|\\uD83D\\uDCAA\\uD83C\\uDFFF|\\uD83D\\uDCAA\\uD83C\\uDFFE|\\uD83D\\uDCAA\\uD83C\\uDFFD|\\uD83D\\uDCAA\\uD83C\\uDFFC|\\uD83D\\uDCAA\\uD83C\\uDFFB|\\uD83D\\uDC87\\uD83C\\uDFFF|\\uD83D\\uDC87\\uD83C\\uDFFE|\\uD83D\\uDC87\\uD83C\\uDFFD|\\uD83D\\uDC87\\uD83C\\uDFFC|\\uD83D\\uDC87\\uD83C\\uDFFB|\\uD83D\\uDC86\\uD83C\\uDFFF|\\uD83D\\uDC86\\uD83C\\uDFFE|\\uD83D\\uDC86\\uD83C\\uDFFD|\\uD83D\\uDC86\\uD83C\\uDFFC|\\uD83D\\uDC86\\uD83C\\uDFFB|\\uD83D\\uDC85\\uD83C\\uDFFF|\\uD83D\\uDC85\\uD83C\\uDFFE|\\uD83D\\uDC85\\uD83C\\uDFFD|\\uD83D\\uDC85\\uD83C\\uDFFC|\\uD83D\\uDC85\\uD83C\\uDFFB|\\uD83D\\uDC83\\uD83C\\uDFFF|\\uD83D\\uDC83\\uD83C\\uDFFE|\\uD83D\\uDC83\\uD83C\\uDFFD|\\uD83D\\uDC83\\uD83C\\uDFFC|\\uD83D\\uDC83\\uD83C\\uDFFB|\\uD83D\\uDC82\\uD83C\\uDFFF|\\uD83D\\uDC82\\uD83C\\uDFFE|\\uD83D\\uDC82\\uD83C\\uDFFD|\\uD83D\\uDC82\\uD83C\\uDFFC|\\uD83D\\uDC82\\uD83C\\uDFFB|\\uD83D\\uDC81\\uD83C\\uDFFF|\\uD83D\\uDC81\\uD83C\\uDFFE|\\uD83D\\uDC81\\uD83C\\uDFFD|\\uD83D\\uDC81\\uD83C\\uDFFC|\\uD83D\\uDC81\\uD83C\\uDFFB|\\uD83D\\uDC7C\\uD83C\\uDFFF|\\uD83D\\uDC7C\\uD83C\\uDFFE|\\uD83D\\uDC7C\\uD83C\\uDFFD|\\uD83D\\uDC7C\\uD83C\\uDFFC|\\uD83D\\uDC7C\\uD83C\\uDFFB|\\uD83D\\uDC78\\uD83C\\uDFFF|\\uD83D\\uDC78\\uD83C\\uDFFE|\\uD83D\\uDC78\\uD83C\\uDFFD|\\uD83D\\uDC78\\uD83C\\uDFFC|\\uD83D\\uDC78\\uD83C\\uDFFB|\\uD83D\\uDC77\\uD83C\\uDFFF|\\uD83D\\uDC77\\uD83C\\uDFFE|\\uD83D\\uDC77\\uD83C\\uDFFD|\\uD83D\\uDC77\\uD83C\\uDFFC|\\uD83D\\uDC77\\uD83C\\uDFFB|\\uD83D\\uDC76\\uD83C\\uDFFF|\\uD83D\\uDC76\\uD83C\\uDFFE|\\uD83D\\uDC76\\uD83C\\uDFFD|\\uD83D\\uDC76\\uD83C\\uDFFC|\\uD83D\\uDC76\\uD83C\\uDFFB|\\uD83D\\uDC75\\uD83C\\uDFFF|\\uD83D\\uDC75\\uD83C\\uDFFE|\\uD83D\\uDC75\\uD83C\\uDFFD|\\uD83D\\uDC75\\uD83C\\uDFFC|\\uD83D\\uDC75\\uD83C\\uDFFB|\\uD83D\\uDC74\\uD83C\\uDFFF|\\uD83D\\uDC74\\uD83C\\uDFFE|\\uD83D\\uDC74\\uD83C\\uDFFD|\\uD83D\\uDC74\\uD83C\\uDFFC|\\uD83D\\uDC74\\uD83C\\uDFFB|\\uD83D\\uDC73\\uD83C\\uDFFF|\\uD83D\\uDC73\\uD83C\\uDFFE|\\uD83D\\uDC73\\uD83C\\uDFFD|\\uD83D\\uDC73\\uD83C\\uDFFC|\\uD83D\\uDC73\\uD83C\\uDFFB|\\uD83D\\uDC72\\uD83C\\uDFFF|\\uD83D\\uDC72\\uD83C\\uDFFE|\\uD83D\\uDC72\\uD83C\\uDFFD|\\uD83D\\uDC72\\uD83C\\uDFFC|\\uD83D\\uDC72\\uD83C\\uDFFB|\\uD83D\\uDC71\\uD83C\\uDFFF|\\uD83D\\uDC71\\uD83C\\uDFFE|\\uD83D\\uDC71\\uD83C\\uDFFD|\\uD83D\\uDC71\\uD83C\\uDFFC|\\uD83D\\uDC71\\uD83C\\uDFFB|\\uD83D\\uDC70\\uD83C\\uDFFF|\\uD83D\\uDC70\\uD83C\\uDFFE|\\uD83D\\uDC70\\uD83C\\uDFFD|\\uD83D\\uDC70\\uD83C\\uDFFC|\\uD83D\\uDC70\\uD83C\\uDFFB|\\uD83D\\uDC6E\\uD83C\\uDFFF|\\uD83D\\uDC6E\\uD83C\\uDFFE|\\uD83D\\uDC6E\\uD83C\\uDFFD|\\uD83D\\uDC6E\\uD83C\\uDFFC|\\uD83D\\uDC6E\\uD83C\\uDFFB|\\uD83D\\uDC69\\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\u20E3|3\\uFE0F\\u20E3|#\\uFE0F\\u20E3|5\\uFE0F\\u20E3|6\\uFE0F\\u20E3|7\\uFE0F\\u20E3|8\\uFE0F\\u20E3|\\*\\uFE0F\\u20E3|\\u00A9\\uFE0F|\\u00AE\\uFE0F|\\u203C\\uFE0F|\\u2049\\uFE0F|\\u2122\\uFE0F|\\u2194\\uFE0F|\\u2195\\uFE0F|\\u2196\\uFE0F|\\u2197\\uFE0F|\\u2198\\uFE0F|\\u2199\\uFE0F|\\u21A9\\uFE0F|\\u21AA\\uFE0F|\\u231A\\uFE0F|\\u231B\\uFE0F|\\u24C2\\uFE0F|\\u25AA\\uFE0F|\\u25AB\\uFE0F|\\u25B6\\uFE0F|\\u25C0\\uFE0F|\\u25FB\\uFE0F|\\u25FC\\uFE0F|\\u25FD\\uFE0F|\\u25FE\\uFE0F|\\u2600\\uFE0F|\\u2601\\uFE0F|\\u260E\\uFE0F|\\u2611\\uFE0F|\\u2614\\uFE0F|\\u2615\\uFE0F|\\u261D\\uFE0F|\\u263A\\uFE0F|\\u2648\\uFE0F|\\u2649\\uFE0F|\\u264A\\uFE0F|\\u264B\\uFE0F|\\u264C\\uFE0F|\\u264D\\uFE0F|\\u264E\\uFE0F|\\u264F\\uFE0F|\\u2650\\uFE0F|\\u2651\\uFE0F|\\u2652\\uFE0F|\\u2653\\uFE0F|\\u2660\\uFE0F|\\u2663\\uFE0F|\\u2665\\uFE0F|\\u2666\\uFE0F|\\u2668\\uFE0F|\\u267B\\uFE0F|\\u267F\\uFE0F|\\u2693\\uFE0F|\\u26A0\\uFE0F|\\u26A1\\uFE0F|\\u26AA\\uFE0F|\\u26AB\\uFE0F|\\u26BD\\uFE0F|\\u26BE\\uFE0F|\\u26C4\\uFE0F|\\u26C5\\uFE0F|\\u26D4\\uFE0F|\\u26EA\\uFE0F|\\u26F2\\uFE0F|\\u26F3\\uFE0F|\\u26F5\\uFE0F|\\u26FA\\uFE0F|\\u26FD\\uFE0F|\\u2702\\uFE0F|\\u2708\\uFE0F|\\u2709\\uFE0F|\\u270C\\uFE0F|\\u270F\\uFE0F|\\u2712\\uFE0F|\\u2714\\uFE0F|\\u2716\\uFE0F|\\u2733\\uFE0F|\\u2734\\uFE0F|\\u2744\\uFE0F|\\u2747\\uFE0F|\\u2757\\uFE0F|\\u2764\\uFE0F|\\u27A1\\uFE0F|\\u2934\\uFE0F|\\u2935\\uFE0F|\\u2B05\\uFE0F|\\u2B06\\uFE0F|\\u2B07\\uFE0F|\\u2B1B\\uFE0F|\\u2B1C\\uFE0F|\\u2B50\\uFE0F|\\u2B55\\uFE0F|\\u3030\\uFE0F|\\u303D\\uFE0F|\\u3297\\uFE0F|\\u3299\\uFE0F|\\u271D\\uFE0F|\\u2328\\uFE0F|\\u270D\\uFE0F|\\u23ED\\uFE0F|\\u23EE\\uFE0F|\\u23EF\\uFE0F|\\u23F1\\uFE0F|\\u23F2\\uFE0F|\\u23F8\\uFE0F|\\u23F9\\uFE0F|\\u23FA\\uFE0F|\\u2602\\uFE0F|\\u2603\\uFE0F|\\u2604\\uFE0F|\\u2618\\uFE0F|\\u2620\\uFE0F|\\u2622\\uFE0F|\\u2623\\uFE0F|\\u2626\\uFE0F|\\u262A\\uFE0F|\\u262E\\uFE0F|\\u262F\\uFE0F|\\u2638\\uFE0F|\\u2639\\uFE0F|\\u2692\\uFE0F|\\u2694\\uFE0F|\\u2696\\uFE0F|\\u2697\\uFE0F|\\u2699\\uFE0F|\\u269B\\uFE0F|\\u269C\\uFE0F|\\u26B0\\uFE0F|\\u26B1\\uFE0F|\\u26C8\\uFE0F|\\u26CF\\uFE0F|\\u26D1\\uFE0F|\\u26D3\\uFE0F|\\u26E9\\uFE0F|\\u26F0\\uFE0F|\\u26F1\\uFE0F|\\u26F4\\uFE0F|\\u26F7\\uFE0F|\\u26F8\\uFE0F|\\u26F9\\uFE0F|\\u2721\\uFE0F|\\u2763\\uFE0F|\\uD83C\\uDCCF|\\uD83C\\uDD70|\\uD83C\\uDD71|\\uD83C\\uDD7E|\\uD83C\\uDD8E|\\uD83C\\uDD91|\\uD83C\\uDD92|\\uD83C\\uDD93|\\uD83C\\uDD94|\\uD83C\\uDD95|\\uD83C\\uDD96|\\uD83C\\uDD97|\\uD83C\\uDD98|\\uD83C\\uDD99|\\uD83C\\uDD9A|\\uD83C\\uDE01|\\uD83C\\uDE32|\\uD83C\\uDE33|\\uD83C\\uDE34|\\uD83C\\uDE35|\\uD83C\\uDE36|\\uD83C\\uDE38|\\uD83C\\uDE39|\\uD83C\\uDE3A|\\uD83C\\uDE50|\\uD83C\\uDE51|\\uD83C\\uDF00|\\uD83C\\uDF01|\\uD83C\\uDF02|\\uD83C\\uDF03|\\uD83C\\uDF04|\\uD83C\\uDF05|\\uD83C\\uDF06|\\uD83C\\uDF07|\\uD83C\\uDF08|\\uD83C\\uDF09|\\uD83C\\uDF0A|\\uD83C\\uDF0B|\\uD83C\\uDF0C|\\uD83C\\uDF0F|\\uD83C\\uDF11|\\uD83C\\uDF13|\\uD83C\\uDF14|\\uD83C\\uDF15|\\uD83C\\uDF19|\\uD83C\\uDF1B|\\uD83C\\uDF1F|\\uD83C\\uDF20|\\uD83C\\uDF30|\\uD83C\\uDF31|\\uD83C\\uDF34|\\uD83C\\uDF35|\\uD83C\\uDF37|\\uD83C\\uDF38|\\uD83C\\uDF39|\\uD83C\\uDF3A|\\uD83C\\uDF3B|\\uD83C\\uDF3C|\\uD83C\\uDF3D|\\uD83C\\uDF3E|\\uD83C\\uDF3F|\\uD83C\\uDF40|\\uD83C\\uDF41|\\uD83C\\uDF42|\\uD83C\\uDF43|\\uD83C\\uDF44|\\uD83C\\uDF45|\\uD83C\\uDF46|\\uD83C\\uDF47|\\uD83C\\uDF48|\\uD83C\\uDF49|\\uD83C\\uDF4A|\\uD83C\\uDF4C|\\uD83C\\uDF4D|\\uD83C\\uDF4E|\\uD83C\\uDF4F|\\uD83C\\uDF51|\\uD83C\\uDF52|\\uD83C\\uDF53|\\uD83C\\uDF54|\\uD83C\\uDF55|\\uD83C\\uDF56|\\uD83C\\uDF57|\\uD83C\\uDF58|\\uD83C\\uDF59|\\uD83C\\uDF5A|\\uD83C\\uDF5B|\\uD83C\\uDF5C|\\uD83C\\uDF5D|\\uD83C\\uDF5E|\\uD83C\\uDF5F|\\uD83C\\uDF60|\\uD83C\\uDF61|\\uD83C\\uDF62|\\uD83C\\uDF63|\\uD83C\\uDF64|\\uD83C\\uDF65|\\uD83C\\uDF66|\\uD83C\\uDF67|\\uD83C\\uDF68|\\uD83C\\uDF69|\\uD83C\\uDF6A|\\uD83C\\uDF6B|\\uD83C\\uDF6C|\\uD83C\\uDF6D|\\uD83C\\uDF6E|\\uD83C\\uDF6F|\\uD83C\\uDF70|\\uD83C\\uDF71|\\uD83C\\uDF72|\\uD83C\\uDF73|\\uD83C\\uDF74|\\uD83C\\uDF75|\\uD83C\\uDF76|\\uD83C\\uDF77|\\uD83C\\uDF78|\\uD83C\\uDF79|\\uD83C\\uDF7A|\\uD83C\\uDF7B|\\uD83C\\uDF80|\\uD83C\\uDF81|\\uD83C\\uDF82|\\uD83C\\uDF83|\\uD83C\\uDF84|\\uD83C\\uDF85|\\uD83C\\uDF86|\\uD83C\\uDF87|\\uD83C\\uDF88|\\uD83C\\uDF89|\\uD83C\\uDF8A|\\uD83C\\uDF8B|\\uD83C\\uDF8C|\\uD83C\\uDF8D|\\uD83C\\uDF8E|\\uD83C\\uDF8F|\\uD83C\\uDF90|\\uD83C\\uDF91|\\uD83C\\uDF92|\\uD83C\\uDF93|\\uD83C\\uDFA0|\\uD83C\\uDFA1|\\uD83C\\uDFA2|\\uD83C\\uDFA3|\\uD83C\\uDFA4|\\uD83C\\uDFA5|\\uD83C\\uDFA6|\\uD83C\\uDFA7|\\uD83C\\uDFA8|\\uD83C\\uDFA9|\\uD83C\\uDFAA|\\uD83C\\uDFAB|\\uD83C\\uDFAC|\\uD83C\\uDFAD|\\uD83C\\uDFAE|\\uD83C\\uDFAF|\\uD83C\\uDFB0|\\uD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\uD83D\\uDC36|\\uD83D\\uDC37|\\uD83D\\uDC38|\\uD83D\\uDC39|\\uD83D\\uDC3A|\\uD83D\\uDC3B|\\uD83D\\uDC3C|\\uD83D\\uDC3D|\\uD83D\\uDC3E|\\uD83D\\uDC40|\\uD83D\\uDC42|\\uD83D\\uDC43|\\uD83D\\uDC44|\\uD83D\\uDC45|\\uD83D\\uDC46|\\uD83D\\uDC47|\\uD83D\\uDC48|\\uD83D\\uDC49|\\uD83D\\uDC4A|\\uD83D\\uDC4B|\\uD83D\\uDC4C|\\uD83D\\uDC4D|\\uD83D\\uDC4E|\\uD83D\\uDC4F|\\uD83D\\uDC50|\\uD83D\\uDC51|\\uD83D\\uDC52|\\uD83D\\uDC53|\\uD83D\\uDC54|\\uD83D\\uDC55|\\uD83D\\uDC56|\\uD83D\\uDC57|\\uD83D\\uDC58|\\uD83D\\uDC59|\\uD83D\\uDC5A|\\uD83D\\uDC5B|\\uD83D\\uDC5C|\\uD83D\\uDC5D|\\uD83D\\uDC5E|\\uD83D\\uDC5F|\\uD83D\\uDC60|\\uD83D\\uDC61|\\uD83D\\uDC62|\\uD83D\\uDC63|\\uD83D\\uDC64|\\uD83D\\uDC66|\\uD83D\\uDC67|\\uD83D\\uDC68|\\uD83D\\uDC69|\\uD83D\\uDC6A|\\uD83D\\uDC6B|\\uD83D\\uDC6E|\\uD83D\\uDC6F|\\uD83D\\uDC70|\\uD83D\\uDC71|\\uD83D\\uDC72|\\uD83D\\uDC73|\\uD83D\\uDC74|\\uD83D\\uDC75|\\uD83D\\uDC76|\\uD83D\\uDC77|\\uD83D\\uDC78|\\uD83D\\uDC79|\\uD83D\\uDC7A|\\uD83D\\uDC7B|\\uD83D\\uDC7C|\\uD83D\\uDC7D|\\uD83D\\uDC7E|\\uD83D\\uDC7F|\\uD83D\\uDC80|\\uD83D\\uDCC7|\\uD83D\\uDC81|\\uD83D\\uDC82|\\uD83D\\uDC83|\\uD83D\\uDC84|\\uD83D\\uDC85|\\uD83D\\u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|\\uD83D\\uDD11|\\uD83D\\uDCA3|\\uD83D\\uDD12|\\uD83D\\uDD13|\\uD83D\\uDCA4|\\uD83D\\uDD14|\\uD83D\\uDD16|\\uD83D\\uDCA5|\\uD83D\\uDD17|\\uD83D\\uDD18|\\uD83D\\uDCA6|\\uD83D\\uDD19|\\uD83D\\uDD1A|\\uD83D\\uDCA7|\\uD83D\\uDD1B|\\uD83D\\uDD1C|\\uD83D\\uDCA8|\\uD83D\\uDD1D|\\uD83D\\uDD1E|\\uD83D\\uDCA9|\\uD83D\\uDD1F|\\uD83D\\uDCAA|\\uD83D\\uDD20|\\uD83D\\uDD21|\\uD83D\\uDCAB|\\uD83D\\uDD22|\\uD83D\\uDD23|\\uD83D\\uDCAC|\\uD83D\\uDD24|\\uD83D\\uDD25|\\uD83D\\uDCAE|\\uD83D\\uDD26|\\uD83D\\uDD27|\\uD83D\\uDCAF|\\uD83D\\uDD28|\\uD83D\\uDD29|\\uD83D\\uDCB0|\\uD83D\\uDD2A|\\uD83D\\uDD2B|\\uD83D\\uDCB1|\\uD83D\\uDD2E|\\uD83D\\uDCB2|\\uD83D\\uDD2F|\\uD83D\\uDCB3|\\uD83D\\uDD30|\\uD83D\\uDD31|\\uD83D\\uDCB4|\\uD83D\\uDD32|\\uD83D\\uDD33|\\uD83D\\uDCB5|\\uD83D\\uDD34|\\uD83D\\uDD35|\\uD83D\\uDCB8|\\uD83D\\uDD36|\\uD83D\\uDD37|\\uD83D\\uDCB9|\\uD83D\\uDD38|\\uD83D\\uDD39|\\uD83D\\uDCBA|\\uD83D\\uDD3A|\\uD83D\\uDD3B|\\uD83D\\uDCBB|\\uD83D\\uDD3C|\\uD83D\\uDCBC|\\uD83D\\uDD3D|\\uD83D\\uDD50|\\uD83D\\uDCBD|\\uD83D\\uDD51|\\uD83D\\uDCBE|\\uD83D\\uDD52|\\uD83D\\uDCBF|\\uD83D\\uDD53|\\uD83D\\uDCC0|\\uD83D\\uDD54|\\uD83D\\uDD55|\\uD83D\\uDCC1|\\uD83D\\uDD56|\\uD83D\\uDD57|\\uD83D\\uDCC2|\\uD83D\\uDD58|\\uD83D\\uDD59|\\uD83D\\uDCC3|\\uD83D\\uDD5A|\\uD83D\\uDD5B|\\uD83D\\uDCC4|\\uD83D\\uDDFB|\\uD83D\\uDDFC|\\uD83D\\uDCC5|\\uD83D\\uDDFD|\\uD83D\\uDDFE|\\uD83D\\uDCC6|\\uD83D\\uDDFF|\\uD83D\\uDE01|\\uD83D\\uDE02|\\uD83D\\uDE03|\\uD83D\\uDCC8|\\uD83D\\uDE04|\\uD83D\\uDE05|\\uD83D\\uDCC9|\\uD83D\\uDE06|\\uD83D\\uDE09|\\uD83D\\uDCCA|\\uD83D\\uDE0A|\\uD83D\\uDE0B|\\uD83D\\uDCCB|\\uD83D\\uDE0C|\\uD83D\\uDE0D|\\uD83D\\uDCCC|\\uD83D\\uDE0F|\\uD83D\\uDE12|\\uD83D\\uDCCD|\\uD83D\\uDE13|\\uD83D\\uDE14|\\uD83D\\uDCCE|\\uD83D\\uDE16|\\uD83D\\uDE18|\\uD83D\\uDCCF|\\uD83D\\uDE1A|\\uD83D\\uDE1C|\\uD83D\\uDCD0|\\uD83D\\uDE1D|\\uD83D\\uDE1E|\\uD83D\\uDCD1|\\uD83D\\uDE20|\\uD83D\\uDE21|\\uD83D\\uDE22|\\uD83D\\uDE23|\\uD83D\\uDE24|\\uD83D\\uDE25|\\uD83D\\uDE28|\\uD83D\\uDE29|\\uD83D\\uDE2A|\\uD83D\\uDE2B|\\uD83D\\uDE2D|\\uD83D\\uDE30|\\uD83D\\uDE31|\\uD83D\\uDE32|\\uD83D\\uDE33|\\uD83D\\uDE35|\\uD83D\\uDE37|\\uD83D\\uDE38|\\uD83D\\uDE39|\\uD83D\\uDE3A|\\uD83D\\uDE3B|\\uD83D\\uDE3C|\\uD83D\\uDE3D|\\uD83D\\uDE3E|\\uD83D\\uDE3F|\\uD83D\\uDE40|\\uD83D\\uDE45|\\uD83D\\uDE46|\\uD83D\\uDE47|\\uD83D\\uDE48|\\uD83D\\uDE49|\\uD83D\\uDE4A|\\uD83D\\uDE4B|\\uD83D\\uDE4C|\\uD83D\\uDE4D|\\uD83D\\uDE4E|\\uD83D\\uDE4F|\\uD83D\\uDE80|\\uD83D\\uDE83|\\uD83D\\uDE84|\\uD83D\\uDE85|\\uD83D\\uDE87|\\uD83D\\uDE89|\\uD83D\\uDE8C|\\uD83D\\uDE8F|\\uD83D\\uDE91|\\uD83D\\uDE92|\\uD83D\\uDE93|\\uD83D\\uDE95|\\uD83D\\uDE97|\\uD83D\\uDE99|\\uD83D\\uDE9A|\\uD83D\\uDEA2|\\uD83D\\uDEA4|\\uD83D\\uDEA5|\\uD83D\\uDEA7|\\uD83D\\uDEA8|\\uD83D\\uDEA9|\\uD83D\\uDEAA|\\uD83D\\uDEAB|\\uD83D\\uDEAC|\\uD83D\\uDEAD|\\uD83D\\uDEB2|\\uD83D\\uDEB6|\\uD83D\\uDEB9|\\uD83D\\uDEBA|\\uD83D\\uDEBB|\\uD83D\\uDEBC|\\uD83D\\uDEBD|\\uD83D\\uDEBE|\\uD83D\\uDEC0|\\uD83E\\uDD18|\\uD83D\\uDE00|\\uD83D\\uDE07|\\uD83D\\uDE08|\\uD83D\\uDE0E|\\uD83D\\uDE10|\\uD83D\\uDE11|\\uD83D\\uDE15|\\uD83D\\uDE17|\\uD83D\\uDE19|\\uD83D\\uDE1B|\\uD83D\\uDE1F|\\uD83D\\uDE26|\\uD83D\\uDE27|\\uD83D\\uDE2C|\\uD83D\\uDE2E|\\uD83D\\uDE2F|\\uD83D\\uDE34|\\uD83D\\uDE36|\\uD83D\\uDE81|\\uD83D\\uDE82|\\uD83D\\uDE86|\\uD83D\\uDE88|\\uD83D\\uDE8A|\\uD83D\\uDE8D|\\uD83D\\uDE8E|\\uD83D\\uDE90|\\uD83D\\uDE94|\\uD83D\\uDE96|\\uD83D\\uDE98|\\uD83D\\uDE9B|\\uD83D\\uDE9C|\\uD83D\\uDE9D|\\uD83D\\uDE9E|\\uD83D\\uDE9F|\\uD83D\\uDEA0|\\uD83D\\uDEA1|\\uD83D\\uDEA3|\\uD83D\\uDEA6|\\uD83D\\uDEAE|\\uD83D\\uDEAF|\\uD83D\\uDEB0|\\uD83D\\uDEB1|\\uD83D\\uDEB3|\\uD83D\\uDEB4|\\uD83D\\uDEB5|\\uD83D\\uDEB7|\\uD83D\\uDEB8|\\uD83D\\uDEBF|\\uD83D\\uDEC1|\\uD83D\\uDEC2|\\uD83D\\uDEC3|\\uD83D\\uDEC4|\\uD83D\\uDEC5|\\uD83C\\uDF0D|\\uD83C\\uDF0E|\\uD83C\\uDF10|\\uD83C\\uDF12|\\uD83C\\uDF16|\\uD83C\\uDF17|\\uD83C\\uDF18|\\uD83C\\uDF1A|\\uD83C\\uDF1C|\\uD83C\\uDF1D|\\uD83C\\uDF1E|\\uD83C\\uDF32|\\uD83C\\uDF33|\\uD83C\\uDF4B|\\uD83C\\uDF50|\\uD83C\\uDF7C|\\uD83C\\uDFC7|\\uD83C\\uDFC9|\\uD83C\\uDFE4|\\uD83D\\uDC00|\\uD83D\\uDC01|\\uD83D\\uDC02|\\uD83D\\uDC03|\\uD83D\\uDC04|\\uD83D\\uDC05|\\uD83D\\uDC06|\\uD83D\\uDC07|\\uD83D\\uDC08|\\uD83D\\uDC09|\\uD83D\\uDC0A|\\uD83D\\uDC0B|\\uD83D\\uDC0F|\\uD83D\\uDC10|\\uD83D\\uDC13|\\uD83D\\uDC15|\\uD83D\\uDC16|\\uD83D\\uDC2A|\\uD83D\\uDC65|\\uD83D\\uDC6C|\\uD83D\\uDC6D|\\uD83D\\uDCAD|\\uD83D\\uDCB6|\\uD83D\\uDCB7|\\uD83D\\uDCEC|\\uD83D\\uDCED|\\uD83D\\uDCEF|\\uD83D\\uDCF5|\\uD83D\\uDD00|\\uD83D\\uDD01|\\uD83D\\uDD02|\\uD83D\\uDD04|\\uD83D\\uDD05|\\uD83D\\uDD06|\\uD83D\\uDD07|\\uD83D\\uDD09|\\uD83D\\uDD15|\\uD83D\\uDD2C|\\uD83D\\uDD2D|\\uD83D\\uDD5C|\\uD83D\\uDD5D|\\uD83D\\uDD5E|\\uD83D\\uDD5F|\\uD83D\\uDD60|\\uD83D\\uDD61|\\uD83D\\uDD62|\\uD83D\\uDD63|\\uD83D\\uDD64|\\uD83D\\uDD65|\\uD83D\\uDD66|\\uD83D\\uDD67|\\uD83D\\uDD08|\\uD83D\\uDE8B|\\uD83C\\uDFC5|\\uD83C\\uDFF4|\\uD83D\\uDCF8|\\uD83D\\uDECC|\\uD83D\\uDD95|\\uD83D\\uDD96|\\uD83D\\uDE41|\\uD83D\\uDE42|\\uD83D\\uDEEB|\\uD83D\\uDEEC|\\uD83C\\uDFFB|\\uD83C\\uDFFC|\\uD83C\\uDFFD|\\uD83C\\uDFFE|\\uD83C\\uDFFF|\\uD83D\\uDE43|\\uD83E\\uDD11|\\uD83E\\uDD13|\\uD83E\\uDD17|\\uD83D\\uDE44|\\uD83E\\uDD14|\\uD83E\\uDD10|\\uD83E\\uDD12|\\uD83E\\uDD15|\\uD83E\\uDD16|\\uD83E\\uDD81|\\uD83E\\uDD84|\\uD83E\\uDD82|\\uD83E\\uDD80|\\uD83E\\uDD83|\\uD83E\\uDDC0|\\uD83C\\uDF2D|\\uD83C\\uDF2E|\\uD83C\\uDF2F|\\uD83C\\uDF7F|\\uD83C\\uDF7E|\\uD83C\\uDFF9|\\uD83C\\uDFFA|\\uD83D\\uDED0|\\uD83D\\uDD4B|\\uD83D\\uDD4C|\\uD83D\\uDD4D|\\uD83D\\uDD4E|\\uD83D\\uDCFF|\\uD83C\\uDFCF|\\uD83C\\uDFD0|\\uD83C\\uDFD1|\\uD83C\\uDFD2|\\uD83C\\uDFD3|\\uD83C\\uDFF8|\\uD83C\\uDF26|\\uD83C\\uDF25|\\uD83C\\uDF24|\\uD83D\\uDEF3|\\uD83D\\uDEE9|\\uD83D\\uDEE5|\\uD83D\\uDEE4|\\uD83D\\uDEE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DF96|\\uD83C\\uDFCE|\\uD83C\\uDFCD|\\uD83C\\uDFCC|\\uD83C\\uDFCB|\\uD83C\\uDF9F|\\uD83C\\uDF9E|\\uD83C\\uDE37|\\uD83C\\uDE2F|\\uD83C\\uDE1A|\\uD83C\\uDE02|\\uD83C\\uDD7F|\\uD83C\\uDC04|\\uD83C\\uDFE1|\\u2714|\\u2733|\\u2734|\\u2744|\\u2747|\\u2757|\\u2764|\\u27A1|\\u2934|\\u2935|\\u2B05|\\u2B06|\\u2B07|\\u2B1B|\\u2B1C|\\u2B50|\\u2B55|\\u3030|\\u303D|\\u3297|\\u3299|\\u2712|\\u270F|\\u270C|\\u2709|\\u2708|\\u2702|\\u26FD|\\u26FA|\\u26F5|\\u26F3|\\u26F2|\\u26EA|\\u26D4|\\u26C5|\\u26C4|\\u26BE|\\u26BD|\\u26AB|\\u26AA|\\u26A1|\\u26A0|\\u2693|\\u267F|\\u267B|\\u2668|\\u2666|\\u2665|\\u2663|\\u2660|\\u2653|\\u2652|\\u2651|\\u271D|\\u2650|\\u264F|\\u264E|\\u264D|\\u264C|\\u264B|\\u264A|\\u2649|\\u2648|\\u263A|\\u261D|\\u2615|\\u2614|\\u2611|\\u2328|\\u260E|\\u2601|\\u2600|\\u25FE|\\u25FD|\\u25FC|\\u25FB|\\u25C0|\\u25B6|\\u25AB|\\u25AA|\\u24C2|\\u2716|\\u231A|\\u21AA|\\u21A9|\\u2199|\\u2198|\\u2197|\\u2196|\\u2195|\\u2194|\\u2139|\\u2122|\\u270D|\\u2049|\\u203C|\\u00AE|\\u00A9|\\u27BF|\\u27B0|\\u2797|\\u2796|\\u2795|\\u2755|\\u2754|\\u2753|\\u274E|\\u274C|\\u2728|\\u270B|\\u270A|\\u2705|\\u26CE|\\u23F3|\\u23F0|\\u23EC|\\u23ED|\\u23EE|\\u23EF|\\u23F1|\\u23F2|\\u23F8|\\u23F9|\\u23FA|\\u2602|\\u2603|\\u2604|\\u2618|\\u2620|\\u2622|\\u2623|\\u2626|\\u262A|\\u262E|\\u262F|\\u2638|\\u2639|\\u2692|\\u2694|\\u2696|\\u2697|\\u2699|\\u269B|\\u269C|\\u26B0|\\u26B1|\\u26C8|\\u26CF|\\u26D1|\\u26D3|\\u26E9|\\u26F0|\\u26F1|\\u26F4|\\u26F7|\\u26F8|\\u26F9|\\u2721|\\u2763|\\u23EB|\\u23EA|\\u23E9|\\u231B)",r.jsecapeMap={"👩‍❤️‍💋‍👩":"1f469-2764-1f48b-1f469","👨‍❤️‍💋‍👨":"1f468-2764-1f48b-1f468","👨‍👨‍👦‍👦":"1f468-1f468-1f466-1f466","👨‍👨‍👧‍👦":"1f468-1f468-1f467-1f466","👨‍👨‍👧‍👧":"1f468-1f468-1f467-1f467","👨‍👩‍👦‍👦":"1f468-1f469-1f466-1f466","👨‍👩‍👧‍👦":"1f468-1f469-1f467-1f466","👨‍👩‍👧‍👧":"1f468-1f469-1f467-1f467","👩‍👩‍👦‍👦":"1f469-1f469-1f466-1f466","👩‍👩‍👧‍👦":"1f469-1f469-1f467-1f466","👩‍👩‍👧‍👧":"1f469-1f469-1f467-1f467","👩‍❤️‍👩":"1f469-2764-1f469","👨‍❤️‍👨":"1f468-2764-1f468","👨‍👨‍👦":"1f468-1f468-1f466","👨‍👨‍👧":"1f468-1f468-1f467","👨‍👩‍👧":"1f468-1f469-1f467","👩‍👩‍👦":"1f469-1f469-1f466","👩‍👩‍👧":"1f469-1f469-1f467","👁‍🗨":"1f441-1f5e8","#️⃣":"0023-20e3","0️⃣":"0030-20e3","1️⃣":"0031-20e3","2️⃣":"0032-20e3","3️⃣":"0033-20e3","4️⃣":"0034-20e3","5️⃣":"0035-20e3","6️⃣":"0036-20e3","7️⃣":"0037-20e3","8️⃣":"0038-20e3","9️⃣":"0039-20e3","*️⃣":"002a-20e3","🤘🏿":"1f918-1f3ff","🤘🏾":"1f918-1f3fe","🤘🏽":"1f918-1f3fd","🤘🏼":"1f918-1f3fc","🤘🏻":"1f918-1f3fb","🛀🏿":"1f6c0-1f3ff","🛀🏾":"1f6c0-1f3fe","🛀🏽":"1f6c0-1f3fd","🛀🏼":"1f6c0-1f3fc","🛀🏻":"1f6c0-1f3fb","🚶🏿":"1f6b6-1f3ff","🚶🏾":"1f6b6-1f3fe","🚶🏽":"1f6b6-1f3fd","🚶🏼":"1f6b6-1f3fc","🚶🏻":"1f6b6-1f3fb","🚵🏿":"1f6b5-1f3ff","🚵🏾":"1f6b5-1f3fe","🚵🏽":"1f6b5-1f3fd","🚵🏼":"1f6b5-1f3fc","🚵🏻":"1f6b5-1f3fb","🚴🏿":"1f6b4-1f3ff","🚴🏾":"1f6b4-1f3fe","🚴🏽":"1f6b4-1f3fd","🚴🏼":"1f6b4-1f3fc","🚴🏻":"1f6b4-1f3fb","🚣🏿":"1f6a3-1f3ff","🚣🏾":"1f6a3-1f3fe","🚣🏽":"1f6a3-1f3fd","🚣🏼":"1f6a3-1f3fc","🚣🏻":"1f6a3-1f3fb","🙏🏿":"1f64f-1f3ff","🙏🏾":"1f64f-1f3fe","🙏🏽":"1f64f-1f3fd","🙏🏼":"1f64f-1f3fc","🙏🏻":"1f64f-1f3fb","🙎🏿":"1f64e-1f3ff","🙎🏾":"1f64e-1f3fe","🙎🏽":"1f64e-1f3fd","🙎🏼":"1f64e-1f3fc","🙎🏻":"1f64e-1f3fb","🙍🏿":"1f64d-1f3ff","🙍🏾":"1f64d-1f3fe","🙍🏽":"1f64d-1f3fd","🙍🏼":"1f64d-1f3fc","🙍🏻":"1f64d-1f3fb","🙌🏿":"1f64c-1f3ff","🙌🏾":"1f64c-1f3fe","🙌🏽":"1f64c-1f3fd","🙌🏼":"1f64c-1f3fc","🙌🏻":"1f64c-1f3fb","🙋🏿":"1f64b-1f3ff","🙋🏾":"1f64b-1f3fe","🙋🏽":"1f64b-1f3fd","🙋🏼":"1f64b-1f3fc","🙋🏻":"1f64b-1f3fb","🙇🏿":"1f647-1f3ff","🙇🏾":"1f647-1f3fe","🙇🏽":"1f647-1f3fd","🙇🏼":"1f647-1f3fc","🙇🏻":"1f647-1f3fb","🙆🏿":"1f646-1f3ff","🙆🏾":"1f646-1f3fe","🙆🏽":"1f646-1f3fd","🙆🏼":"1f646-1f3fc","🙆🏻":"1f646-1f3fb","🙅🏿":"1f645-1f3ff","🙅🏾":"1f645-1f3fe","🙅🏽":"1f645-1f3fd","🙅🏼":"1f645-1f3fc","🙅🏻":"1f645-1f3fb","🖖🏿":"1f596-1f3ff","🖖🏾":"1f596-1f3fe","🖖🏽":"1f596-1f3fd","🖖🏼":"1f596-1f3fc","🖖🏻":"1f596-1f3fb","🖕🏿":"1f595-1f3ff","🖕🏾":"1f595-1f3fe","🖕🏽":"1f595-1f3fd","🖕🏼":"1f595-1f3fc","🖕🏻":"1f595-1f3fb","🖐🏿":"1f590-1f3ff","🖐🏾":"1f590-1f3fe","🖐🏽":"1f590-1f3fd","🖐🏼":"1f590-1f3fc","🖐🏻":"1f590-1f3fb","🕵🏿":"1f575-1f3ff","🕵🏾":"1f575-1f3fe","🕵🏽":"1f575-1f3fd","🕵🏼":"1f575-1f3fc","🕵🏻":"1f575-1f3fb","💪🏿":"1f4aa-1f3ff","💪🏾":"1f4aa-1f3fe","💪🏽":"1f4aa-1f3fd","💪🏼":"1f4aa-1f3fc","💪🏻":"1f4aa-1f3fb","💇🏿":"1f487-1f3ff","💇🏾":"1f487-1f3fe","💇🏽":"1f487-1f3fd","💇🏼":"1f487-1f3fc","💇🏻":"1f487-1f3fb","💆🏿":"1f486-1f3ff","💆🏾":"1f486-1f3fe","💆🏽":"1f486-1f3fd","💆🏼":"1f486-1f3fc","💆🏻":"1f486-1f3fb","💅🏿":"1f485-1f3ff","💅🏾":"1f485-1f3fe","💅🏽":"1f485-1f3fd","💅🏼":"1f485-1f3fc","💅🏻":"1f485-1f3fb","💃🏿":"1f483-1f3ff","💃🏾":"1f483-1f3fe","💃🏽":"1f483-1f3fd","💃🏼":"1f483-1f3fc","💃🏻":"1f483-1f3fb","💂🏿":"1f482-1f3ff","💂🏾":"1f482-1f3fe","💂🏽":"1f482-1f3fd","💂🏼":"1f482-1f3fc","💂🏻":"1f482-1f3fb","💁🏿":"1f481-1f3ff","💁🏾":"1f481-1f3fe","💁🏽":"1f481-1f3fd","💁🏼":"1f481-1f3fc","💁🏻":"1f481-1f3fb","👼🏿":"1f47c-1f3ff","👼🏾":"1f47c-1f3fe","👼🏽":"1f47c-1f3fd","👼🏼":"1f47c-1f3fc","👼🏻":"1f47c-1f3fb","👸🏿":"1f478-1f3ff","👸🏾":"1f478-1f3fe","👸🏽":"1f478-1f3fd","👸🏼":"1f478-1f3fc","👸🏻":"1f478-1f3fb","👷🏿":"1f477-1f3ff","👷🏾":"1f477-1f3fe","👷🏽":"1f477-1f3fd","👷🏼":"1f477-1f3fc","👷🏻":"1f477-1f3fb","👶🏿":"1f476-1f3ff","👶🏾":"1f476-1f3fe","👶🏽":"1f476-1f3fd","👶🏼":"1f476-1f3fc","👶🏻":"1f476-1f3fb","👵🏿":"1f475-1f3ff","👵🏾":"1f475-1f3fe","👵🏽":"1f475-1f3fd","👵🏼":"1f475-1f3fc","👵🏻":"1f475-1f3fb","👴🏿":"1f474-1f3ff","👴🏾":"1f474-1f3fe","👴🏽":"1f474-1f3fd","👴🏼":"1f474-1f3fc","👴🏻":"1f474-1f3fb","👳🏿":"1f473-1f3ff","👳🏾":"1f473-1f3fe","👳🏽":"1f473-1f3fd","👳🏼":"1f473-1f3fc","👳🏻":"1f473-1f3fb","👲🏿":"1f472-1f3ff","👲🏾":"1f472-1f3fe","👲🏽":"1f472-1f3fd","👲🏼":"1f472-1f3fc","👲🏻":"1f472-1f3fb","👱🏿":"1f471-1f3ff","👱🏾":"1f471-1f3fe","👱🏽":"1f471-1f3fd","👱🏼":"1f471-1f3fc","👱🏻":"1f471-1f3fb","👰🏿":"1f470-1f3ff","👰🏾":"1f470-1f3fe","👰🏽":"1f470-1f3fd","👰🏼":"1f470-1f3fc","👰🏻":"1f470-1f3fb","👮🏿":"1f46e-1f3ff","👮🏾":"1f46e-1f3fe","👮🏽":"1f46e-1f3fd","👮🏼":"1f46e-1f3fc","👮🏻":"1f46e-1f3fb","👩🏿":"1f469-1f3ff","👩🏾":"1f469-1f3fe","👩🏽":"1f469-1f3fd","👩🏼":"1f469-1f3fc","👩🏻":"1f469-1f3fb","👨🏿":"1f468-1f3ff","👨🏾":"1f468-1f3fe","👨🏽":"1f468-1f3fd","👨🏼":"1f468-1f3fc","👨🏻":"1f468-1f3fb","👧🏿":"1f467-1f3ff","👧🏾":"1f467-1f3fe","👧🏽":"1f467-1f3fd","👧🏼":"1f467-1f3fc","👧🏻":"1f467-1f3fb","👦🏿":"1f466-1f3ff","👦🏾":"1f466-1f3fe","👦🏽":"1f466-1f3fd","👦🏼":"1f466-1f3fc","👦🏻":"1f466-1f3fb","👐🏿":"1f450-1f3ff","👐🏾":"1f450-1f3fe","👐🏽":"1f450-1f3fd","👐🏼":"1f450-1f3fc","👐🏻":"1f450-1f3fb","👏🏿":"1f44f-1f3ff","👏🏾":"1f44f-1f3fe","👏🏽":"1f44f-1f3fd","👏🏼":"1f44f-1f3fc","👏🏻":"1f44f-1f3fb","👎🏿":"1f44e-1f3ff","👎🏾":"1f44e-1f3fe","👎🏽":"1f44e-1f3fd","👎🏼":"1f44e-1f3fc","👎🏻":"1f44e-1f3fb","👍🏿":"1f44d-1f3ff","👍🏾":"1f44d-1f3fe","👍🏽":"1f44d-1f3fd","👍🏼":"1f44d-1f3fc","👍🏻":"1f44d-1f3fb","👌🏿":"1f44c-1f3ff","👌🏾":"1f44c-1f3fe","👌🏽":"1f44c-1f3fd","👌🏼":"1f44c-1f3fc","👌🏻":"1f44c-1f3fb","👋🏿":"1f44b-1f3ff","👋🏾":"1f44b-1f3fe","👋🏽":"1f44b-1f3fd","👋🏼":"1f44b-1f3fc","👋🏻":"1f44b-1f3fb","👊🏿":"1f44a-1f3ff","👊🏾":"1f44a-1f3fe","👊🏽":"1f44a-1f3fd","👊🏼":"1f44a-1f3fc","👊🏻":"1f44a-1f3fb","👉🏿":"1f449-1f3ff","👉🏾":"1f449-1f3fe","👉🏽":"1f449-1f3fd","👉🏼":"1f449-1f3fc","👉🏻":"1f449-1f3fb","👈🏿":"1f448-1f3ff","👈🏾":"1f448-1f3fe","👈🏽":"1f448-1f3fd","👈🏼":"1f448-1f3fc","👈🏻":"1f448-1f3fb","👇🏿":"1f447-1f3ff","👇🏾":"1f447-1f3fe","👇🏽":"1f447-1f3fd","👇🏼":"1f447-1f3fc","👇🏻":"1f447-1f3fb","👆🏿":"1f446-1f3ff","👆🏾":"1f446-1f3fe","👆🏽":"1f446-1f3fd","👆🏼":"1f446-1f3fc","👆🏻":"1f446-1f3fb","👃🏿":"1f443-1f3ff","👃🏾":"1f443-1f3fe","👃🏽":"1f443-1f3fd","👃🏼":"1f443-1f3fc","👃🏻":"1f443-1f3fb","👂🏿":"1f442-1f3ff","👂🏾":"1f442-1f3fe","👂🏽":"1f442-1f3fd","👂🏼":"1f442-1f3fc","👂🏻":"1f442-1f3fb","🏋🏿":"1f3cb-1f3ff","🏋🏾":"1f3cb-1f3fe","🏋🏽":"1f3cb-1f3fd","🏋🏼":"1f3cb-1f3fc","🏋🏻":"1f3cb-1f3fb","🏊🏿":"1f3ca-1f3ff","🏊🏾":"1f3ca-1f3fe","🏊🏽":"1f3ca-1f3fd","🏊🏼":"1f3ca-1f3fc","🏊🏻":"1f3ca-1f3fb","🏇🏿":"1f3c7-1f3ff","🏇🏾":"1f3c7-1f3fe","🏇🏽":"1f3c7-1f3fd","🏇🏼":"1f3c7-1f3fc","🏇🏻":"1f3c7-1f3fb","🏄🏿":"1f3c4-1f3ff","🏄🏾":"1f3c4-1f3fe","🏄🏽":"1f3c4-1f3fd","🏄🏼":"1f3c4-1f3fc","🏄🏻":"1f3c4-1f3fb","🏃🏿":"1f3c3-1f3ff","🏃🏾":"1f3c3-1f3fe","🏃🏽":"1f3c3-1f3fd","🏃🏼":"1f3c3-1f3fc","🏃🏻":"1f3c3-1f3fb","🎅🏿":"1f385-1f3ff","🎅🏾":"1f385-1f3fe","🎅🏽":"1f385-1f3fd","🎅🏼":"1f385-1f3fc","🎅🏻":"1f385-1f3fb","🇿🇼":"1f1ff-1f1fc","🇿🇲":"1f1ff-1f1f2","🇿🇦":"1f1ff-1f1e6","🇾🇹":"1f1fe-1f1f9","🇾🇪":"1f1fe-1f1ea","🇽🇰":"1f1fd-1f1f0","🇼🇸":"1f1fc-1f1f8","🇼🇫":"1f1fc-1f1eb","🇻🇺":"1f1fb-1f1fa","🇻🇳":"1f1fb-1f1f3","🇻🇮":"1f1fb-1f1ee","🇻🇬":"1f1fb-1f1ec","🇻🇪":"1f1fb-1f1ea","🇻🇨":"1f1fb-1f1e8","🇻🇦":"1f1fb-1f1e6","🇺🇿":"1f1fa-1f1ff","🇺🇾":"1f1fa-1f1fe","🇺🇸":"1f1fa-1f1f8","🇺🇲":"1f1fa-1f1f2","🇺🇬":"1f1fa-1f1ec","🇺🇦":"1f1fa-1f1e6","🇹🇿":"1f1f9-1f1ff","🇹🇼":"1f1f9-1f1fc","🇹🇻":"1f1f9-1f1fb","🇹🇹":"1f1f9-1f1f9","🇹🇷":"1f1f9-1f1f7","🇹🇴":"1f1f9-1f1f4","🇹🇳":"1f1f9-1f1f3","🇹🇲":"1f1f9-1f1f2","🇹🇱":"1f1f9-1f1f1","🇹🇰":"1f1f9-1f1f0","🇹🇯":"1f1f9-1f1ef","🇹🇭":"1f1f9-1f1ed","🇹🇬":"1f1f9-1f1ec","🇹🇫":"1f1f9-1f1eb","🇹🇩":"1f1f9-1f1e9","🇹🇨":"1f1f9-1f1e8","🇹🇦":"1f1f9-1f1e6","🇸🇿":"1f1f8-1f1ff","🇸🇾":"1f1f8-1f1fe","🇸🇽":"1f1f8-1f1fd","🇸🇻":"1f1f8-1f1fb","🇸🇹":"1f1f8-1f1f9","🇸🇸":"1f1f8-1f1f8","🇸🇷":"1f1f8-1f1f7","🇸🇴":"1f1f8-1f1f4","🇸🇳":"1f1f8-1f1f3","🇸🇲":"1f1f8-1f1f2","🇸🇱":"1f1f8-1f1f1","🇸🇰":"1f1f8-1f1f0","🇸🇯":"1f1f8-1f1ef","🇸🇮":"1f1f8-1f1ee","🇸🇭":"1f1f8-1f1ed","🇸🇬":"1f1f8-1f1ec","🇸🇪":"1f1f8-1f1ea","🇸🇩":"1f1f8-1f1e9","🇸🇨":"1f1f8-1f1e8","🇸🇧":"1f1f8-1f1e7","🇸🇦":"1f1f8-1f1e6","🇷🇼":"1f1f7-1f1fc","🇷🇺":"1f1f7-1f1fa","🇷🇸":"1f1f7-1f1f8","🇷🇴":"1f1f7-1f1f4","🇷🇪":"1f1f7-1f1ea","🇶🇦":"1f1f6-1f1e6","🇵🇾":"1f1f5-1f1fe","🇵🇼":"1f1f5-1f1fc","🇵🇹":"1f1f5-1f1f9","🇵🇸":"1f1f5-1f1f8","🇵🇷":"1f1f5-1f1f7","🇵🇳":"1f1f5-1f1f3","🇵🇲":"1f1f5-1f1f2","🇵🇱":"1f1f5-1f1f1","🇵🇰":"1f1f5-1f1f0","🇵🇭":"1f1f5-1f1ed","🇵🇬":"1f1f5-1f1ec","🇵🇫":"1f1f5-1f1eb","🇵🇪":"1f1f5-1f1ea","🇵🇦":"1f1f5-1f1e6","🇴🇲":"1f1f4-1f1f2","🇳🇿":"1f1f3-1f1ff","🇳🇺":"1f1f3-1f1fa","🇳🇷":"1f1f3-1f1f7","🇳🇵":"1f1f3-1f1f5","🇳🇴":"1f1f3-1f1f4","🇳🇱":"1f1f3-1f1f1","🇳🇮":"1f1f3-1f1ee","🇳🇬":"1f1f3-1f1ec","🇳🇫":"1f1f3-1f1eb","🇳🇪":"1f1f3-1f1ea","🇳🇨":"1f1f3-1f1e8","🇳🇦":"1f1f3-1f1e6","🇲🇿":"1f1f2-1f1ff","🇲🇾":"1f1f2-1f1fe","🇲🇽":"1f1f2-1f1fd","🇲🇼":"1f1f2-1f1fc","🇲🇻":"1f1f2-1f1fb","🇲🇺":"1f1f2-1f1fa","🇲🇹":"1f1f2-1f1f9","🇲🇸":"1f1f2-1f1f8","🇲🇷":"1f1f2-1f1f7","🇲🇶":"1f1f2-1f1f6","🇲🇵":"1f1f2-1f1f5","🇲🇴":"1f1f2-1f1f4","🇲🇳":"1f1f2-1f1f3","🇲🇲":"1f1f2-1f1f2","🇲🇱":"1f1f2-1f1f1","🇲🇰":"1f1f2-1f1f0","🇲🇭":"1f1f2-1f1ed","🇲🇬":"1f1f2-1f1ec","🇲🇫":"1f1f2-1f1eb","🇲🇪":"1f1f2-1f1ea","🇲🇩":"1f1f2-1f1e9","🇲🇨":"1f1f2-1f1e8","🇲🇦":"1f1f2-1f1e6","🇱🇾":"1f1f1-1f1fe","🇱🇻":"1f1f1-1f1fb","🇱🇺":"1f1f1-1f1fa","🇱🇹":"1f1f1-1f1f9","🇱🇸":"1f1f1-1f1f8","🇱🇷":"1f1f1-1f1f7","🇱🇰":"1f1f1-1f1f0","🇱🇮":"1f1f1-1f1ee","🇱🇨":"1f1f1-1f1e8","🇱🇧":"1f1f1-1f1e7","🇱🇦":"1f1f1-1f1e6","🇰🇿":"1f1f0-1f1ff","🇰🇾":"1f1f0-1f1fe","🇰🇼":"1f1f0-1f1fc","🇰🇷":"1f1f0-1f1f7","🇰🇵":"1f1f0-1f1f5","🇰🇳":"1f1f0-1f1f3","🇰🇲":"1f1f0-1f1f2","🇰🇮":"1f1f0-1f1ee","🇰🇭":"1f1f0-1f1ed","🇰🇬":"1f1f0-1f1ec","🇰🇪":"1f1f0-1f1ea","🇯🇵":"1f1ef-1f1f5","🇯🇴":"1f1ef-1f1f4","🇯🇲":"1f1ef-1f1f2","🇯🇪":"1f1ef-1f1ea","🇮🇹":"1f1ee-1f1f9","🇮🇸":"1f1ee-1f1f8","🇮🇷":"1f1ee-1f1f7","🇮🇶":"1f1ee-1f1f6","🇮🇴":"1f1ee-1f1f4","🇮🇳":"1f1ee-1f1f3","🇮🇲":"1f1ee-1f1f2","🇮🇱":"1f1ee-1f1f1","🇮🇪":"1f1ee-1f1ea","🇮🇩":"1f1ee-1f1e9","🇮🇨":"1f1ee-1f1e8","🇭🇺":"1f1ed-1f1fa","🇭🇹":"1f1ed-1f1f9","🇭🇷":"1f1ed-1f1f7","🇭🇳":"1f1ed-1f1f3","🇭🇲":"1f1ed-1f1f2","🇭🇰":"1f1ed-1f1f0","🇬🇾":"1f1ec-1f1fe","🇬🇼":"1f1ec-1f1fc","🇬🇺":"1f1ec-1f1fa","🇬🇹":"1f1ec-1f1f9","🇬🇸":"1f1ec-1f1f8","🇬🇷":"1f1ec-1f1f7","🇬🇶":"1f1ec-1f1f6","🇬🇵":"1f1ec-1f1f5","🇬🇳":"1f1ec-1f1f3","🇬🇲":"1f1ec-1f1f2","🇬🇱":"1f1ec-1f1f1","🇬🇮":"1f1ec-1f1ee","🇬🇭":"1f1ec-1f1ed","🇬🇬":"1f1ec-1f1ec","🇬🇫":"1f1ec-1f1eb","🇬🇪":"1f1ec-1f1ea","🇬🇩":"1f1ec-1f1e9","🇬🇧":"1f1ec-1f1e7","🇬🇦":"1f1ec-1f1e6","🇫🇷":"1f1eb-1f1f7","🇫🇴":"1f1eb-1f1f4","🇫🇲":"1f1eb-1f1f2","🇫🇰":"1f1eb-1f1f0","🇫🇯":"1f1eb-1f1ef","🇫🇮":"1f1eb-1f1ee","🇪🇺":"1f1ea-1f1fa","🇪🇹":"1f1ea-1f1f9","🇪🇸":"1f1ea-1f1f8","🇪🇷":"1f1ea-1f1f7","🇪🇭":"1f1ea-1f1ed","🇪🇬":"1f1ea-1f1ec","🇪🇪":"1f1ea-1f1ea","🇪🇨":"1f1ea-1f1e8","🇪🇦":"1f1ea-1f1e6","🇩🇿":"1f1e9-1f1ff","🇩🇴":"1f1e9-1f1f4","🇩🇲":"1f1e9-1f1f2","🇩🇰":"1f1e9-1f1f0","🇩🇯":"1f1e9-1f1ef","🇩🇬":"1f1e9-1f1ec","🇩🇪":"1f1e9-1f1ea","🇨🇿":"1f1e8-1f1ff","🇨🇾":"1f1e8-1f1fe","🇨🇽":"1f1e8-1f1fd","🇨🇼":"1f1e8-1f1fc","🇨🇻":"1f1e8-1f1fb","🇨🇺":"1f1e8-1f1fa","🇨🇷":"1f1e8-1f1f7","🇨🇵":"1f1e8-1f1f5","🇨🇴":"1f1e8-1f1f4","🇨🇳":"1f1e8-1f1f3","🇨🇲":"1f1e8-1f1f2","🇨🇱":"1f1e8-1f1f1","🇨🇰":"1f1e8-1f1f0","🇨🇮":"1f1e8-1f1ee","🇨🇭":"1f1e8-1f1ed","🇨🇬":"1f1e8-1f1ec","🇨🇫":"1f1e8-1f1eb","🇨🇩":"1f1e8-1f1e9","🇨🇨":"1f1e8-1f1e8","🇨🇦":"1f1e8-1f1e6","🇧🇿":"1f1e7-1f1ff","🇧🇾":"1f1e7-1f1fe","🇧🇼":"1f1e7-1f1fc","🇧🇻":"1f1e7-1f1fb","🇧🇹":"1f1e7-1f1f9","🇧🇸":"1f1e7-1f1f8","🇧🇷":"1f1e7-1f1f7","🇧🇶":"1f1e7-1f1f6","🇧🇴":"1f1e7-1f1f4","🇧🇳":"1f1e7-1f1f3","🇧🇲":"1f1e7-1f1f2","🇧🇱":"1f1e7-1f1f1","🇧🇯":"1f1e7-1f1ef","🇧🇮":"1f1e7-1f1ee","🇧🇭":"1f1e7-1f1ed","🇧🇬":"1f1e7-1f1ec","🇧🇫":"1f1e7-1f1eb","🇧🇪":"1f1e7-1f1ea","🇧🇩":"1f1e7-1f1e9","🇧🇧":"1f1e7-1f1e7","🇧🇦":"1f1e7-1f1e6","🇦🇿":"1f1e6-1f1ff","🇦🇽":"1f1e6-1f1fd","🇦🇼":"1f1e6-1f1fc","🇦🇺":"1f1e6-1f1fa","🇦🇹":"1f1e6-1f1f9","🇦🇸":"1f1e6-1f1f8","🇦🇷":"1f1e6-1f1f7","🇦🇶":"1f1e6-1f1f6","🇦🇴":"1f1e6-1f1f4","🇦🇲":"1f1e6-1f1f2","🇦🇱":"1f1e6-1f1f1","🇦🇮":"1f1e6-1f1ee","🇦🇬":"1f1e6-1f1ec","🇦🇫":"1f1e6-1f1eb","🇦🇪":"1f1e6-1f1ea","🇦🇩":"1f1e6-1f1e9","🇦🇨":"1f1e6-1f1e8","🀄️":"1f004","🅿️":"1f17f","🈂️":"1f202","🈚️":"1f21a","🈯️":"1f22f","🈷️":"1f237","🎞️":"1f39e","🎟️":"1f39f","🏋️":"1f3cb","🏌️":"1f3cc","🏍️":"1f3cd","🏎️":"1f3ce","🎖️":"1f396","🎗️":"1f397","🌶️":"1f336","🌧️":"1f327","🌨️":"1f328","🌩️":"1f329","🌪️":"1f32a","🌫️":"1f32b","🌬️":"1f32c","🐿️":"1f43f","🕷️":"1f577","🕸️":"1f578","🌡️":"1f321","🎙️":"1f399","🎚️":"1f39a","🎛️":"1f39b","🏳️":"1f3f3","🏵️":"1f3f5","🏷️":"1f3f7","📽️":"1f4fd","🕉️":"1f549","🕊️":"1f54a","🕯️":"1f56f","🕰️":"1f570","🕳️":"1f573","🕶️":"1f576","🕹️":"1f579","🖇️":"1f587","🖊️":"1f58a","🖋️":"1f58b","🖌️":"1f58c","🖍️":"1f58d","🖥️":"1f5a5","🖨️":"1f5a8","🖲️":"1f5b2","🖼️":"1f5bc","🗂️":"1f5c2","🗃️":"1f5c3","🗄️":"1f5c4","🗑️":"1f5d1","🗒️":"1f5d2","🗓️":"1f5d3","🗜️":"1f5dc","🗝️":"1f5dd","🗞️":"1f5de","🗡️":"1f5e1","🗣️":"1f5e3","🗯️":"1f5ef","🗳️":"1f5f3","🗺️":"1f5fa","🛠️":"1f6e0","🛡️":"1f6e1","🛢️":"1f6e2","🛰️":"1f6f0","🍽️":"1f37d","👁️":"1f441","🕴️":"1f574","🕵️":"1f575","🖐️":"1f590","🏔️":"1f3d4","🏕️":"1f3d5","🏖️":"1f3d6","🏗️":"1f3d7","🏘️":"1f3d8","🏙️":"1f3d9","🏚️":"1f3da","🏛️":"1f3db","🏜️":"1f3dc","🏝️":"1f3dd","🏞️":"1f3de","🏟️":"1f3df","🛋️":"1f6cb","🛍️":"1f6cd","🛎️":"1f6ce","🛏️":"1f6cf","🛣️":"1f6e3","🛤️":"1f6e4","🛥️":"1f6e5","🛩️":"1f6e9","🛳️":"1f6f3","🌤️":"1f324","🌥️":"1f325","🌦️":"1f326","🖱️":"1f5b1","☝🏻":"261d-1f3fb","☝🏼":"261d-1f3fc","☝🏽":"261d-1f3fd","☝🏾":"261d-1f3fe","☝🏿":"261d-1f3ff","✌🏻":"270c-1f3fb","✌🏼":"270c-1f3fc","✌🏽":"270c-1f3fd","✌🏾":"270c-1f3fe","✌🏿":"270c-1f3ff","✊🏻":"270a-1f3fb","✊🏼":"270a-1f3fc","✊🏽":"270a-1f3fd","✊🏾":"270a-1f3fe","✊🏿":"270a-1f3ff","✋🏻":"270b-1f3fb","✋🏼":"270b-1f3fc","✋🏽":"270b-1f3fd","✋🏾":"270b-1f3fe","✋🏿":"270b-1f3ff","✍🏻":"270d-1f3fb","✍🏼":"270d-1f3fc","✍🏽":"270d-1f3fd","✍🏾":"270d-1f3fe","✍🏿":"270d-1f3ff","⛹🏻":"26f9-1f3fb","⛹🏼":"26f9-1f3fc","⛹🏽":"26f9-1f3fd","⛹🏾":"26f9-1f3fe","⛹🏿":"26f9-1f3ff","©️":"00a9","®️":"00ae","‼️":"203c","⁉️":"2049","™️":"2122","↔️":"2194","↕️":"2195","↖️":"2196","↗️":"2197","↘️":"2198","↙️":"2199","↩️":"21a9","↪️":"21aa","⌚️":"231a","⌛️":"231b","Ⓜ️":"24c2","▪️":"25aa","▫️":"25ab","▶️":"25b6","◀️":"25c0","◻️":"25fb","◼️":"25fc","◽️":"25fd","◾️":"25fe","☀️":"2600","☁️":"2601","☎️":"260e","☑️":"2611","☔️":"2614","☕️":"2615","☝️":"261d","☺️":"263a","♈️":"2648","♉️":"2649","♊️":"264a","♋️":"264b","♌️":"264c","♍️":"264d","♎️":"264e","♏️":"264f","♐️":"2650","♑️":"2651","♒️":"2652","♓️":"2653","♠️":"2660","♣️":"2663","♥️":"2665","♦️":"2666","♨️":"2668","♻️":"267b","♿️":"267f","⚓️":"2693","⚠️":"26a0","⚡️":"26a1","⚪️":"26aa","⚫️":"26ab","⚽️":"26bd","⚾️":"26be","⛄️":"26c4","⛅️":"26c5","⛔️":"26d4","⛪️":"26ea","⛲️":"26f2","⛳️":"26f3","⛵️":"26f5","⛺️":"26fa","⛽️":"26fd","✂️":"2702","✈️":"2708","✉️":"2709","✌️":"270c","✏️":"270f","✒️":"2712","✔️":"2714","✖️":"2716","✳️":"2733","✴️":"2734","❄️":"2744","❇️":"2747","❗️":"2757","❤️":"2764","➡️":"27a1","⤴️":"2934","⤵️":"2935","⬅️":"2b05","⬆️":"2b06","⬇️":"2b07","⬛️":"2b1b","⬜️":"2b1c","⭐️":"2b50","⭕️":"2b55","〰️":"3030","〽️":"303d","㊗️":"3297","㊙️":"3299","✝️":"271d","⌨️":"2328","✍️":"270d","⏭️":"23ed","⏮️":"23ee","⏯️":"23ef","⏱️":"23f1","⏲️":"23f2","⏸️":"23f8","⏹️":"23f9","⏺️":"23fa","☂️":"2602","☃️":"2603","☄️":"2604","☘️":"2618","☠️":"2620","☢️":"2622","☣️":"2623","☦️":"2626","☪️":"262a","☮️":"262e","☯️":"262f","☸️":"2638","☹️":"2639","⚒️":"2692","⚔️":"2694","⚖️":"2696","⚗️":"2697","⚙️":"2699","⚛️":"269b","⚜️":"269c","⚰️":"26b0","⚱️":"26b1","⛈️":"26c8","⛏️":"26cf","⛑️":"26d1","⛓️":"26d3","⛩️":"26e9","⛰️":"26f0","⛱️":"26f1","⛴️":"26f4","⛷️":"26f7","⛸️":"26f8","⛹️":"26f9","✡️":"2721","❣️":"2763","🃏":"1f0cf","🅰":"1f170","🅱":"1f171","🅾":"1f17e","🆎":"1f18e","🆑":"1f191","🆒":"1f192","🆓":"1f193","🆔":"1f194","🆕":"1f195","🆖":"1f196","🆗":"1f197","🆘":"1f198","🆙":"1f199","🆚":"1f19a","🈁":"1f201","🈲":"1f232","🈳":"1f233","🈴":"1f234","🈵":"1f235","🈶":"1f236","🈸":"1f238","🈹":"1f239","🈺":"1f23a","🉐":"1f250","🉑":"1f251","🌀":"1f300","🌁":"1f301","🌂":"1f302","🌃":"1f303","🌄":"1f304","🌅":"1f305","🌆":"1f306","🌇":"1f307","🌈":"1f308","🌉":"1f309","🌊":"1f30a","🌋":"1f30b","🌌":"1f30c","🌏":"1f30f","🌑":"1f311","🌓":"1f313","🌔":"1f314","🌕":"1f315","🌙":"1f319","🌛":"1f31b","🌟":"1f31f","🌠":"1f320","🌰":"1f330","🌱":"1f331","🌴":"1f334","🌵":"1f335","🌷":"1f337","🌸":"1f338","🌹":"1f339","🌺":"1f33a","🌻":"1f33b","🌼":"1f33c","🌽":"1f33d","🌾":"1f33e","🌿":"1f33f","🍀":"1f340","🍁":"1f341","🍂":"1f342","🍃":"1f343","🍄":"1f344","🍅":"1f345","🍆":"1f346","🍇":"1f347","🍈":"1f348","🍉":"1f349","🍊":"1f34a","🍌":"1f34c","🍍":"1f34d","🍎":"1f34e","🍏":"1f34f","🍑":"1f351","🍒":"1f352","🍓":"1f353","🍔":"1f354","🍕":"1f355","🍖":"1f356","🍗":"1f357","🍘":"1f358","🍙":"1f359","🍚":"1f35a","🍛":"1f35b","🍜":"1f35c","🍝":"1f35d","🍞":"1f35e","🍟":"1f35f","🍠":"1f360","🍡":"1f361","🍢":"1f362","🍣":"1f363","🍤":"1f364","🍥":"1f365","🍦":"1f366","🍧":"1f367","🍨":"1f368","🍩":"1f369","🍪":"1f36a","🍫":"1f36b","🍬":"1f36c","🍭":"1f36d","🍮":"1f36e","🍯":"1f36f","🍰":"1f370","🍱":"1f371","🍲":"1f372","🍳":"1f373","🍴":"1f374","🍵":"1f375","🍶":"1f376","🍷":"1f377","🍸":"1f378","🍹":"1f379","🍺":"1f37a","🍻":"1f37b","🎀":"1f380","🎁":"1f381","🎂":"1f382","🎃":"1f383","🎄":"1f384","🎅":"1f385","🎆":"1f386","🎇":"1f387","🎈":"1f388","🎉":"1f389","🎊":"1f38a","🎋":"1f38b","🎌":"1f38c","🎍":"1f38d","🎎":"1f38e","🎏":"1f38f","🎐":"1f390","🎑":"1f391","🎒":"1f392","🎓":"1f393","🎠":"1f3a0","🎡":"1f3a1","🎢":"1f3a2","🎣":"1f3a3","🎤":"1f3a4","🎥":"1f3a5","🎦":"1f3a6","🎧":"1f3a7","🎨":"1f3a8","🎩":"1f3a9","🎪":"1f3aa","🎫":"1f3ab","🎬":"1f3ac","🎭":"1f3ad","🎮":"1f3ae","🎯":"1f3af","🎰":"1f3b0","🎱":"1f3b1","🎲":"1f3b2","🎳":"1f3b3","🎴":"1f3b4","🎵":"1f3b5","🎶":"1f3b6","🎷":"1f3b7","🎸":"1f3b8","🎹":"1f3b9","🎺":"1f3ba","🎻":"1f3bb","🎼":"1f3bc","🎽":"1f3bd","🎾":"1f3be","🎿":"1f3bf","🏀":"1f3c0","🏁":"1f3c1","🏂":"1f3c2","🏃":"1f3c3","🏄":"1f3c4","🏆":"1f3c6","🏈":"1f3c8","🏊":"1f3ca","🏠":"1f3e0","🏡":"1f3e1","🏢":"1f3e2","🏣":"1f3e3","🏥":"1f3e5","🏦":"1f3e6","🏧":"1f3e7","🏨":"1f3e8","🏩":"1f3e9","🏪":"1f3ea","🏫":"1f3eb","🏬":"1f3ec","🏭":"1f3ed","🏮":"1f3ee","🏯":"1f3ef","🏰":"1f3f0","🐌":"1f40c","🐍":"1f40d","🐎":"1f40e","🐑":"1f411","🐒":"1f412","🐔":"1f414","🐗":"1f417","🐘":"1f418","🐙":"1f419","🐚":"1f41a","🐛":"1f41b","🐜":"1f41c","🐝":"1f41d","🐞":"1f41e","🐟":"1f41f","🐠":"1f420","🐡":"1f421","🐢":"1f422","🐣":"1f423","🐤":"1f424","🐥":"1f425","🐦":"1f426","🐧":"1f427","🐨":"1f428","🐩":"1f429","🐫":"1f42b","🐬":"1f42c","🐭":"1f42d","🐮":"1f42e","🐯":"1f42f","🐰":"1f430","🐱":"1f431","🐲":"1f432","🐳":"1f433","🐴":"1f434","🐵":"1f435","🐶":"1f436","🐷":"1f437","🐸":"1f438","🐹":"1f439","🐺":"1f43a","🐻":"1f43b","🐼":"1f43c","🐽":"1f43d","🐾":"1f43e","👀":"1f440","👂":"1f442","👃":"1f443","👄":"1f444","👅":"1f445","👆":"1f446","👇":"1f447","👈":"1f448","👉":"1f449","👊":"1f44a","👋":"1f44b","👌":"1f44c","👍":"1f44d","👎":"1f44e","👏":"1f44f","👐":"1f450","👑":"1f451","👒":"1f452","👓":"1f453","👔":"1f454","👕":"1f455","👖":"1f456","👗":"1f457","👘":"1f458","👙":"1f459","👚":"1f45a","👛":"1f45b","👜":"1f45c","👝":"1f45d","👞":"1f45e","👟":"1f45f","👠":"1f460","👡":"1f461","👢":"1f462","👣":"1f463","👤":"1f464","👦":"1f466","👧":"1f467","👨":"1f468","👩":"1f469","👪":"1f46a","👫":"1f46b","👮":"1f46e","👯":"1f46f","👰":"1f470","👱":"1f471","👲":"1f472","👳":"1f473","👴":"1f474","👵":"1f475","👶":"1f476","👷":"1f477","👸":"1f478","👹":"1f479","👺":"1f47a","👻":"1f47b","👼":"1f47c","👽":"1f47d","👾":"1f47e","👿":"1f47f","💀":"1f480","📇":"1f4c7","💁":"1f481","💂":"1f482","💃":"1f483","💄":"1f484","💅":"1f485","📒":"1f4d2","💆":"1f486","📓":"1f4d3","💇":"1f487","📔":"1f4d4","💈":"1f488","📕":"1f4d5","💉":"1f489","📖":"1f4d6","💊":"1f48a","📗":"1f4d7","💋":"1f48b","📘":"1f4d8","💌":"1f48c","📙":"1f4d9","💍":"1f48d","📚":"1f4da","💎":"1f48e","📛":"1f4db","💏":"1f48f","📜":"1f4dc","💐":"1f490","📝":"1f4dd","💑":"1f491","📞":"1f4de","💒":"1f492","📟":"1f4df","📠":"1f4e0","💓":"1f493","📡":"1f4e1","📢":"1f4e2","💔":"1f494","📣":"1f4e3","📤":"1f4e4","💕":"1f495","📥":"1f4e5","📦":"1f4e6","💖":"1f496","📧":"1f4e7","📨":"1f4e8","💗":"1f497","📩":"1f4e9","📪":"1f4ea","💘":"1f498","📫":"1f4eb","📮":"1f4ee","💙":"1f499","📰":"1f4f0","📱":"1f4f1","💚":"1f49a","📲":"1f4f2","📳":"1f4f3","💛":"1f49b","📴":"1f4f4","📶":"1f4f6","💜":"1f49c","📷":"1f4f7","📹":"1f4f9","💝":"1f49d","📺":"1f4fa","📻":"1f4fb","💞":"1f49e","📼":"1f4fc","🔃":"1f503","💟":"1f49f","🔊":"1f50a","🔋":"1f50b","💠":"1f4a0","🔌":"1f50c","🔍":"1f50d","💡":"1f4a1","🔎":"1f50e","🔏":"1f50f","💢":"1f4a2","🔐":"1f510","🔑":"1f511","💣":"1f4a3","🔒":"1f512","🔓":"1f513","💤":"1f4a4","🔔":"1f514","🔖":"1f516","💥":"1f4a5","🔗":"1f517","🔘":"1f518","💦":"1f4a6","🔙":"1f519","🔚":"1f51a","💧":"1f4a7","🔛":"1f51b","🔜":"1f51c","💨":"1f4a8","🔝":"1f51d","🔞":"1f51e","💩":"1f4a9","🔟":"1f51f","💪":"1f4aa","🔠":"1f520","🔡":"1f521","💫":"1f4ab","🔢":"1f522","🔣":"1f523","💬":"1f4ac","🔤":"1f524","🔥":"1f525","💮":"1f4ae","🔦":"1f526","🔧":"1f527","💯":"1f4af","🔨":"1f528","🔩":"1f529","💰":"1f4b0","🔪":"1f52a","🔫":"1f52b","💱":"1f4b1","🔮":"1f52e","💲":"1f4b2","🔯":"1f52f","💳":"1f4b3","🔰":"1f530","🔱":"1f531","💴":"1f4b4","🔲":"1f532","🔳":"1f533","💵":"1f4b5","🔴":"1f534","🔵":"1f535","💸":"1f4b8","🔶":"1f536","🔷":"1f537","💹":"1f4b9","🔸":"1f538","🔹":"1f539","💺":"1f4ba","🔺":"1f53a","🔻":"1f53b","💻":"1f4bb","🔼":"1f53c","💼":"1f4bc","🔽":"1f53d","🕐":"1f550","💽":"1f4bd","🕑":"1f551","💾":"1f4be","🕒":"1f552","💿":"1f4bf","🕓":"1f553","📀":"1f4c0","🕔":"1f554","🕕":"1f555","📁":"1f4c1","🕖":"1f556","🕗":"1f557","📂":"1f4c2","🕘":"1f558","🕙":"1f559","📃":"1f4c3","🕚":"1f55a","🕛":"1f55b","📄":"1f4c4","🗻":"1f5fb","🗼":"1f5fc","📅":"1f4c5","🗽":"1f5fd","🗾":"1f5fe","📆":"1f4c6","🗿":"1f5ff","😁":"1f601","😂":"1f602","😃":"1f603","📈":"1f4c8","😄":"1f604","😅":"1f605","📉":"1f4c9","😆":"1f606","😉":"1f609","📊":"1f4ca","😊":"1f60a","😋":"1f60b","📋":"1f4cb","😌":"1f60c","😍":"1f60d","📌":"1f4cc","😏":"1f60f","😒":"1f612","📍":"1f4cd","😓":"1f613","😔":"1f614","📎":"1f4ce","😖":"1f616","😘":"1f618","📏":"1f4cf","😚":"1f61a","😜":"1f61c","📐":"1f4d0","😝":"1f61d","😞":"1f61e","📑":"1f4d1","😠":"1f620","😡":"1f621","😢":"1f622","😣":"1f623","😤":"1f624","😥":"1f625","😨":"1f628","😩":"1f629","😪":"1f62a","😫":"1f62b","😭":"1f62d","😰":"1f630","😱":"1f631","😲":"1f632","😳":"1f633","😵":"1f635","😷":"1f637","😸":"1f638","😹":"1f639","😺":"1f63a","😻":"1f63b","😼":"1f63c","😽":"1f63d","😾":"1f63e","😿":"1f63f","🙀":"1f640","🙅":"1f645","🙆":"1f646","🙇":"1f647","🙈":"1f648","🙉":"1f649","🙊":"1f64a","🙋":"1f64b","🙌":"1f64c","🙍":"1f64d","🙎":"1f64e","🙏":"1f64f","🚀":"1f680","🚃":"1f683","🚄":"1f684","🚅":"1f685","🚇":"1f687","🚉":"1f689","🚌":"1f68c","🚏":"1f68f","🚑":"1f691","🚒":"1f692","🚓":"1f693","🚕":"1f695","🚗":"1f697","🚙":"1f699","🚚":"1f69a","🚢":"1f6a2","🚤":"1f6a4","🚥":"1f6a5","🚧":"1f6a7","🚨":"1f6a8","🚩":"1f6a9","🚪":"1f6aa","🚫":"1f6ab","🚬":"1f6ac","🚭":"1f6ad","🚲":"1f6b2","🚶":"1f6b6","🚹":"1f6b9","🚺":"1f6ba","🚻":"1f6bb","🚼":"1f6bc","🚽":"1f6bd","🚾":"1f6be","🛀":"1f6c0","🤘":"1f918","😀":"1f600","😇":"1f607","😈":"1f608","😎":"1f60e","😐":"1f610","😑":"1f611","😕":"1f615","😗":"1f617","😙":"1f619","😛":"1f61b","😟":"1f61f","😦":"1f626","😧":"1f627","😬":"1f62c","😮":"1f62e","😯":"1f62f","😴":"1f634","😶":"1f636","🚁":"1f681","🚂":"1f682","🚆":"1f686","🚈":"1f688","🚊":"1f68a","🚍":"1f68d","🚎":"1f68e","🚐":"1f690","🚔":"1f694","🚖":"1f696","🚘":"1f698","🚛":"1f69b","🚜":"1f69c","🚝":"1f69d","🚞":"1f69e","🚟":"1f69f","🚠":"1f6a0","🚡":"1f6a1","🚣":"1f6a3","🚦":"1f6a6","🚮":"1f6ae","🚯":"1f6af","🚰":"1f6b0","🚱":"1f6b1","🚳":"1f6b3","🚴":"1f6b4","🚵":"1f6b5","🚷":"1f6b7","🚸":"1f6b8","🚿":"1f6bf","🛁":"1f6c1","🛂":"1f6c2","🛃":"1f6c3","🛄":"1f6c4","🛅":"1f6c5","🌍":"1f30d","🌎":"1f30e","🌐":"1f310","🌒":"1f312","🌖":"1f316","🌗":"1f317","🌘":"1f318","🌚":"1f31a","🌜":"1f31c","🌝":"1f31d","🌞":"1f31e","🌲":"1f332","🌳":"1f333","🍋":"1f34b","🍐":"1f350","🍼":"1f37c","🏇":"1f3c7","🏉":"1f3c9","🏤":"1f3e4","🐀":"1f400","🐁":"1f401","🐂":"1f402","🐃":"1f403","🐄":"1f404","🐅":"1f405","🐆":"1f406","🐇":"1f407","🐈":"1f408","🐉":"1f409","🐊":"1f40a","🐋":"1f40b","🐏":"1f40f","🐐":"1f410","🐓":"1f413","🐕":"1f415","🐖":"1f416","🐪":"1f42a","👥":"1f465","👬":"1f46c","👭":"1f46d","💭":"1f4ad","💶":"1f4b6","💷":"1f4b7","📬":"1f4ec","📭":"1f4ed","📯":"1f4ef","📵":"1f4f5","🔀":"1f500","🔁":"1f501","🔂":"1f502","🔄":"1f504","🔅":"1f505","🔆":"1f506","🔇":"1f507","🔉":"1f509","🔕":"1f515","🔬":"1f52c","🔭":"1f52d","🕜":"1f55c","🕝":"1f55d","🕞":"1f55e","🕟":"1f55f","🕠":"1f560","🕡":"1f561","🕢":"1f562","🕣":"1f563","🕤":"1f564","🕥":"1f565","🕦":"1f566","🕧":"1f567","🔈":"1f508","🚋":"1f68b","🏅":"1f3c5","🏴":"1f3f4","📸":"1f4f8","🛌":"1f6cc","🖕":"1f595","🖖":"1f596","🙁":"1f641","🙂":"1f642","🛫":"1f6eb","🛬":"1f6ec","🏻":"1f3fb","🏼":"1f3fc","🏽":"1f3fd","🏾":"1f3fe","🏿":"1f3ff","🙃":"1f643","🤑":"1f911","🤓":"1f913","🤗":"1f917","🙄":"1f644","🤔":"1f914","🤐":"1f910","🤒":"1f912","🤕":"1f915","🤖":"1f916","🦁":"1f981","🦄":"1f984","🦂":"1f982","🦀":"1f980","🦃":"1f983","🧀":"1f9c0","🌭":"1f32d","🌮":"1f32e","🌯":"1f32f","🍿":"1f37f","🍾":"1f37e","🏹":"1f3f9","🏺":"1f3fa","🛐":"1f6d0","🕋":"1f54b","🕌":"1f54c","🕍":"1f54d","🕎":"1f54e","📿":"1f4ff","🏏":"1f3cf","🏐":"1f3d0","🏑":"1f3d1","🏒":"1f3d2","🏓":"1f3d3","🏸":"1f3f8","⏩":"23e9","⏪":"23ea","⏫":"23eb","⏬":"23ec","⏰":"23f0","⏳":"23f3","⛎":"26ce","✅":"2705","✊":"270a","✋":"270b","✨":"2728","❌":"274c","❎":"274e","❓":"2753","❔":"2754","❕":"2755","➕":"2795","➖":"2796","➗":"2797","➰":"27b0","➿":"27bf","©":"00a9","®":"00ae","‼":"203c","⁉":"2049","™":"2122","↔":"2194","↕":"2195","↖":"2196","↗":"2197","↘":"2198","↙":"2199","↩":"21a9","↪":"21aa","⌚":"231a","⌛":"231b","Ⓜ":"24c2","▪":"25aa","▫":"25ab","▶":"25b6","◀":"25c0","◻":"25fb","◼":"25fc","◽":"25fd","◾":"25fe","☀":"2600","☁":"2601","☎":"260e","☑":"2611","☔":"2614","☕":"2615","☝":"261d","☺":"263a","♈":"2648","♉":"2649","♊":"264a","♋":"264b","♌":"264c","♍":"264d","♎":"264e","♏":"264f","♐":"2650","♑":"2651","♒":"2652","♓":"2653","♠":"2660","♣":"2663","♥":"2665","♦":"2666","♨":"2668","♻":"267b","♿":"267f","⚓":"2693","⚠":"26a0","⚡":"26a1","⚪":"26aa","⚫":"26ab","⚽":"26bd","⚾":"26be","⛄":"26c4","⛅":"26c5","⛔":"26d4","⛪":"26ea","⛲":"26f2","⛳":"26f3","⛵":"26f5","⛺":"26fa","⛽":"26fd","✂":"2702","✈":"2708","✉":"2709","✌":"270c","✏":"270f","✒":"2712","✔":"2714","✖":"2716","✳":"2733","✴":"2734","❄":"2744","❇":"2747","❗":"2757","❤":"2764","➡":"27a1","⤴":"2934","⤵":"2935","⬅":"2b05","⬆":"2b06","⬇":"2b07","⬛":"2b1b","⬜":"2b1c","⭐":"2b50","⭕":"2b55","〰":"3030","〽":"303d","㊗":"3297","㊙":"3299","🀄":"1f004","🅿":"1f17f","🈂":"1f202","🈚":"1f21a","🈯":"1f22f","🈷":"1f237","🎞":"1f39e","🎟":"1f39f","🏋":"1f3cb","🏌":"1f3cc","🏍":"1f3cd","🏎":"1f3ce","🎖":"1f396","🎗":"1f397","🌶":"1f336","🌧":"1f327","🌨":"1f328","🌩":"1f329","🌪":"1f32a","🌫":"1f32b","🌬":"1f32c","🐿":"1f43f","🕷":"1f577","🕸":"1f578","🌡":"1f321","🎙":"1f399","🎚":"1f39a","🎛":"1f39b","🏳":"1f3f3","🏵":"1f3f5","🏷":"1f3f7","📽":"1f4fd","✝":"271d","🕉":"1f549","🕊":"1f54a","🕯":"1f56f","🕰":"1f570","🕳":"1f573","🕶":"1f576","🕹":"1f579","🖇":"1f587","🖊":"1f58a","🖋":"1f58b","🖌":"1f58c","🖍":"1f58d","🖥":"1f5a5","🖨":"1f5a8","⌨":"2328","🖲":"1f5b2","🖼":"1f5bc","🗂":"1f5c2","🗃":"1f5c3","🗄":"1f5c4","🗑":"1f5d1","🗒":"1f5d2","🗓":"1f5d3","🗜":"1f5dc","🗝":"1f5dd","🗞":"1f5de","🗡":"1f5e1","🗣":"1f5e3","🗯":"1f5ef","🗳":"1f5f3","🗺":"1f5fa","🛠":"1f6e0","🛡":"1f6e1","🛢":"1f6e2","🛰":"1f6f0","🍽":"1f37d","👁":"1f441","🕴":"1f574","🕵":"1f575","✍":"270d","🖐":"1f590","🏔":"1f3d4","🏕":"1f3d5","🏖":"1f3d6","🏗":"1f3d7","🏘":"1f3d8","🏙":"1f3d9","🏚":"1f3da","🏛":"1f3db","🏜":"1f3dc","🏝":"1f3dd","🏞":"1f3de","🏟":"1f3df","🛋":"1f6cb","🛍":"1f6cd","🛎":"1f6ce","🛏":"1f6cf","🛣":"1f6e3","🛤":"1f6e4","🛥":"1f6e5","🛩":"1f6e9","🛳":"1f6f3","⏭":"23ed","⏮":"23ee","⏯":"23ef","⏱":"23f1","⏲":"23f2","⏸":"23f8","⏹":"23f9","⏺":"23fa","☂":"2602","☃":"2603","☄":"2604","☘":"2618","☠":"2620","☢":"2622","☣":"2623","☦":"2626","☪":"262a","☮":"262e","☯":"262f","☸":"2638","☹":"2639","⚒":"2692","⚔":"2694","⚖":"2696","⚗":"2697","⚙":"2699","⚛":"269b","⚜":"269c","⚰":"26b0","⚱":"26b1","⛈":"26c8","⛏":"26cf","⛑":"26d1","⛓":"26d3","⛩":"26e9","⛰":"26f0","⛱":"26f1","⛴":"26f4","⛷":"26f7","⛸":"26f8","⛹":"26f9","✡":"2721","❣":"2763","🌤":"1f324","🌥":"1f325","🌦":"1f326","🖱":"1f5b1"},r.imageType="png",r.sprites=!0,r.unicodeAlt=!0,r.ascii=!0,r.cacheBustParam="?v=2.1.2",r.regShortNames=new RegExp('<object[^>]*>.*?</object>|<spans*class="emojione*[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|('+r.shortnames+")","gi"),r.regAscii=new RegExp('<object[^>]*>.*?</object>|<spans*class="emojione*[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|((\\s|^)'+r.asciiRegexp+"(?=\\s|$|[!,.?]))","g"),r.regUnicode=new RegExp('<object[^>]*>.*?</object>|<spans*class="emojione*[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|('+r.unicodeRegexp+")","gi"),r.shortnameRegexp=":([-+\\w]+):",r.toImage=function(t){return t=r.unicodeToImage(t),t=r.shortnameToImage(t)},r.unifyUnicode=function(t){return t=r.toShort(t),t=r.shortnameToUnicode(t)},r.shortnameToAscii=function(t){var e,n=r.objectFlip(r.asciiList);return t=t.replace(r.regShortNames,function(t){return void 0!==t&&""!==t&&t in r.emojioneList?(e=r.emojioneList[t][r.emojioneList[t].length-1].toLowerCase(),void 0!==n[e]?n[e]:t):t})},r.shortnameToUnicode=function(t){var a;return t=t.replace(r.regShortNames,function(t){return void 0!==t&&""!==t&&t in r.emojioneList?(a=0<r.emojioneList[t].length?r.emojioneList[t][0].toUpperCase():"",r.convert(a)):t}),t=r.ascii?t.replace(r.regAscii,function(t,e,n,i){return void 0!==i&&""!==i&&r.unescapeHTML(i)in r.asciiList?(i=r.unescapeHTML(i),a=r.asciiList[i].toUpperCase(),n+r.convert(a)):t}):t},r.shortnameToImage=function(t,e,n){return t?(t=t.replace(r.regShortNames,function(t){return void 0!==t&&""!==t&&t in r.emojioneList?(o=r.emojioneList[t][r.emojioneList[t].length-1],s=r.unicodeAlt?r.convert(o.toUpperCase()):t,"png"===r.imageType&&r.sprites&&(a=e?'<img class="emojione emojione-'+o+'" title="'+t+'"/>':'<span class="emojione emojione-'+o+'" title="'+t+'">'+s+"</span>"),a=n?'<span class="emojiTxt">'+a+"</span>":a):t}),r.ascii?t.replace(r.regAscii,function(t,e,n,i){return void 0!==i&&""!==i&&r.unescapeHTML(i)in r.asciiList?(i=r.unescapeHTML(i),o=r.asciiList[i],s=r.unicodeAlt?r.convert(o.toUpperCase()):r.escapeHTML(i),a="png"===r.imageType&&r.sprites?n+'<span class="emojione emojione-'+o+'" title="'+r.escapeHTML(i)+'">'+s+"</span>":a):t}):t):"";var a,o,s},r.unicodeToImage=function(t,e,n){return t?(r.unicodeAlt&&!r.sprites||(s=r.mapShortToUnicode()),t=t.replace(r.regUnicode,function(t){return void 0!==t&&""!==t&&t in r.jsecapeMap?(a=r.jsecapeMap[t],o=r.unicodeAlt?r.convert(a.toUpperCase()):s[a],"png"===r.imageType&&r.sprites&&(i=e?'<img class="emojione emojione-'+a+'" title="'+s[a]+'"/>':'<span class="emojione emojione-'+a+'" title="'+s[a]+'">'+o+"</span>"),i=n?'<span class="emojiTxt">'+i+"</span>":i):t})):"";var i,a,o,s},r.toShort=function(t){for(var e in r.emojioneList)if(r.emojioneList.hasOwnProperty(e))for(var n=0,i=r.emojioneList[e].length;n<i;n++){var a=r.emojioneList[e][n];t=r.replaceAll(t,r.convert(a.toUpperCase()),e)}return t},r.convert=function(t){if(-1<t.indexOf("-")){for(var e=[],n=t.split("-"),i=0;i<n.length;i++){var a=parseInt(n[i],16);a=65536<=a&&a<=1114111?(o=Math.floor((a-65536)/1024)+55296,s=(a-65536)%1024+56320,String.fromCharCode(o)+String.fromCharCode(s)):String.fromCharCode(a),e.push(a)}return e.join("")}if(65536<=(n=parseInt(t,16))&&n<=1114111){var o=Math.floor((n-65536)/1024)+55296,s=(n-65536)%1024+56320;return String.fromCharCode(o)+String.fromCharCode(s)}return String.fromCharCode(n)},r.escapeHTML=function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.replace(/[&<>"']/g,function(t){return e[t]})},r.unescapeHTML=function(t){var e={"&amp;":"&","&#38;":"&","&#x26;":"&","&lt;":"<","&#60;":"<","&#x3C;":"<","&gt;":">","&#62;":">","&#x3E;":">","&quot;":'"',"&#34;":'"',"&#x22;":'"',"&apos;":"'","&#39;":"'","&#x27;":"'"};return t.replace(/&(?:amp|#38|#x26|lt|#60|#x3C|gt|#62|#x3E|apos|#39|#x27|quot|#34|#x22);/gi,function(t){return e[t]})},r.mapShortToUnicode=function(){var t,e={};for(t in r.emojioneList)if(r.emojioneList.hasOwnProperty(t))for(var n=0,i=r.emojioneList[t].length;n<i;n++)e[r.emojioneList[t][n]]=t;return e},r.objectFlip=function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n},r.escapeRegExp=function(t){return t.replace(/[-[\]{}()*+?.,;:&\\^$|#\s]/g,"\\$&")},r.replaceAll=function(t,e,n){e=r.escapeRegExp(e),e=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+e+")","gi");return t.replace(e,function(t,e){return void 0===e||""===e?t:n})}}(this.emojione=this.emojione||{}),"object"==typeof module&&(module.exports=this.emojione),function(i){function t(t,e){var n=e||{},e=n.bufferLen||4096;this.context=t.context,this.node=this.context.createScriptProcessor(e,1,1);var i=new Worker(n.workerPath||s);i.postMessage({command:"init",config:{sampleRate:this.context.sampleRate}});var a,o=!1;this.node.onaudioprocess=function(t){o&&i.postMessage({command:"record",buffer:[t.inputBuffer.getChannelData(0)]})},this.configure=function(t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])},this.record=function(){o=!0},this.stop=function(){o=!1},this.clear=function(){i.postMessage({command:"clear"})},this.getBuffer=function(t){a=t||n.callback,i.postMessage({command:"getBuffer"})},this.exportWAV=function(t,e){if(a=t||n.callback,e=e||n.type||"audio/wav",!a)throw new Error("Callback not set");i.postMessage({command:"exportWAV",type:e})},this.exportRAW=function(t,e){if(a=t||n.callback,e=e||n.type||"audio/raw",!a)throw new Error("Callback not set");i.postMessage({command:"exportRAW",type:e})},this.export16kMono=function(t,e){if(a=t||n.callback,e=e||n.type||"audio/raw",!a)throw new Error("Callback not set");i.postMessage({command:"export16kMono",type:e})},this.exportSpeex=function(t,e){if(a=t||n.callback,e=e||n.type||"audio/speex",!a)throw new Error("Callback not set");i.postMessage({command:"exportSpeex",type:e})},i.onmessage=function(t){t=t.data;a(t)},t.connect(this.node),this.node.connect(this.context.destination)}var s=i.staticpath+"/js/libs/recorderWorker.js";t.forceDownload=function(t,e){var n=(i.URL||i.webkitURL).createObjectURL(t),t=i.document.createElement("a");t.href=n,t.download=e||"output.wav";e=document.createEvent("Event");e.initEvent("click",!0,!0),t.dispatchEvent(e)},i.Recorder=t}(window),Resampler.prototype.initialize=function(){if(!(0<this.fromSampleRate&&0<this.toSampleRate&&0<this.channels))throw new Error("Invalid settings specified for the resampler.");this.fromSampleRate==this.toSampleRate?(this.resampler=this.bypassResampler,this.ratioWeight=1):(this.compileInterpolationFunction(),this.resampler=this.interpolate,this.ratioWeight=this.fromSampleRate/this.toSampleRate,this.tailExists=!1,this.lastWeight=0,this.initializeBuffers())},Resampler.prototype.compileInterpolationFunction=function(){for(var t="var bufferLength = Math.min(buffer.length, this.outputBufferSize);\tif ((bufferLength % "+this.channels+") == 0) {\t\tif (bufferLength > 0) {\t\t\tvar ratioWeight = this.ratioWeight;\t\t\tvar weight = 0;",e=0;e<this.channels;++e)t+="var output"+e+" = 0;";for(t+="var actualPosition = 0;\t\t\tvar amountToNext = 0;\t\t\tvar alreadyProcessedTail = !this.tailExists;\t\t\tthis.tailExists = false;\t\t\tvar outputBuffer = this.outputBuffer;\t\t\tvar outputOffset = 0;\t\t\tvar currentPosition = 0;\t\t\tdo {\t\t\t\tif (alreadyProcessedTail) {\t\t\t\t\tweight = ratioWeight;",e=0;e<this.channels;++e)t+="output"+e+" = 0;";for(t+="}\t\t\t\telse {\t\t\t\t\tweight = this.lastWeight;",e=0;e<this.channels;++e)t+="output"+e+" = this.lastOutput["+e+"];";for(t+="alreadyProcessedTail = true;\t\t\t\t}\t\t\t\twhile (weight > 0 && actualPosition < bufferLength) {\t\t\t\t\tamountToNext = 1 + actualPosition - currentPosition;\t\t\t\t\tif (weight >= amountToNext) {",e=0;e<this.channels;++e)t+="output"+e+" += buffer[actualPosition++] * amountToNext;";for(t+="currentPosition = actualPosition;\t\t\t\t\t\tweight -= amountToNext;\t\t\t\t\t}\t\t\t\t\telse {",e=0;e<this.channels;++e)t+="output"+e+" += buffer[actualPosition"+(0<e?" + "+e:"")+"] * weight;";for(t+="currentPosition += weight;\t\t\t\t\t\tweight = 0;\t\t\t\t\t\tbreak;\t\t\t\t\t}\t\t\t\t}\t\t\t\tif (weight == 0) {",e=0;e<this.channels;++e)t+="outputBuffer[outputOffset++] = output"+e+" / ratioWeight;";for(t+="}\t\t\t\telse {\t\t\t\t\tthis.lastWeight = weight;",e=0;e<this.channels;++e)t+="this.lastOutput["+e+"] = output"+e+";";t+='this.tailExists = true;\t\t\t\t\tbreak;\t\t\t\t}\t\t\t} while (actualPosition < bufferLength);\t\t\treturn this.bufferSlice(outputOffset);\t\t}\t\telse {\t\t\treturn (this.noReturn) ? 0 : [];\t\t}\t}\telse {\t\tthrow(new Error("Buffer was of incorrect sample length."));\t}',this.interpolate=Function("buffer",t)},Resampler.prototype.bypassResampler=function(t){return this.noReturn?(this.outputBuffer=t).length:t},Resampler.prototype.bufferSlice=function(e){if(this.noReturn)return e;try{return this.outputBuffer.subarray(0,e)}catch(t){try{return this.outputBuffer.length=e,this.outputBuffer}catch(t){return this.outputBuffer.slice(0,e)}}},Resampler.prototype.initializeBuffers=function(t){try{this.outputBuffer=new Float32Array(this.outputBufferSize),this.lastOutput=new Float32Array(this.channels)}catch(t){this.outputBuffer=[],this.lastOutput=[]}};var sampleRate,resampler,recLength=0,recBuffers=[];function init(t){sampleRate=t.sampleRate,resampler=new Resampler(sampleRate,16e3,1,51200)}function record(t){recBuffers.push(t[0]),recLength+=t[0].length}function exportWAV(t){var e=encodeWAV(mergeBuffers(recBuffers,recLength)),t=new Blob([e],{type:t});this.postMessage(t)}function exportRAW(t){var e=encodeRAW(mergeBuffers(recBuffers,recLength)),t=new Blob([e],{type:t});this.postMessage(t)}function export16kMono(t){var e=mergeBuffers(recBuffers,recLength),e=encodeRAW(resampler.resampler(e)),t=new Blob([e],{type:t});this.postMessage(t)}function exportSpeex(t){var e=mergeBuffers(recBuffers,recLength),e=Speex.process(e),t=new Blob([e],{type:t});this.postMessage(t)}function getBuffer(){var t=[];t.push(mergeBuffers(recBuffers,recLength)),this.postMessage(t)}function clear(){recLength=0,recBuffers=[]}function mergeBuffers(t,e){for(var n=new Float32Array(e),i=0,a=0;a<t.length;a++)n.set(t[a],i),i+=t[a].length;return n}function interleave(t,e){for(var n=t.length+e.length,i=new Float32Array(n),a=0,o=0;a<n;)i[a++]=t[o],i[a++]=e[o],o++;return i}function mix(t,e){for(var n=t.length,i=new Float32Array(n),a=0,o=0;a<n;)i[a++]=t[o]+e[o],o++;return i}function floatTo16BitPCM(t,e,n){for(var i=0;i<n.length;i++,e+=2){var a=Math.max(-1,Math.min(1,n[i]));t.setInt16(e,a<0?32768*a:32767*a,!0)}}function writeString(t,e,n){for(var i=0;i<n.length;i++)t.setUint8(e+i,n.charCodeAt(i))}function encodeWAV(t){var e=new ArrayBuffer(44+2*t.length),e=new DataView(e);return writeString(e,0,"RIFF"),e.setUint32(4,32+2*t.length,!0),writeString(e,8,"WAVE"),writeString(e,12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,2,!0),e.setUint32(24,sampleRate,!0),e.setUint32(28,4*sampleRate,!0),e.setUint16(32,4,!0),e.setUint16(34,16,!0),writeString(e,36,"data"),e.setUint32(40,2*t.length,!0),floatTo16BitPCM(e,44,t),e}function encodeRAW(t){var e=new ArrayBuffer(2*t.length),e=new DataView(e);return floatTo16BitPCM(e,0,t),e}this.onmessage=function(t){switch(t.data.command){case"init":init(t.data.config);break;case"record":record(t.data.buffer);break;case"exportWAV":exportWAV(t.data.type);break;case"exportRAW":exportRAW(t.data.type);break;case"export16kMono":export16kMono(t.data.type);break;case"getBuffer":getBuffer();break;case"clear":clear()}},function(d){function c(t,e){this.cfg=t,this.chatInitialize=e,this.helpers=null,this.extension=null}c.prototype.renderMessage=function(n){var t="";if(n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"dropdown_template"==n.message[0].component.payload.template_type)t=d(this.getChatTemplate("dropdown_template")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),this.bindEvents(t);else if(n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"multi_select"==n.message[0].component.payload.template_type)t=d(this.getChatTemplate("checkBoxesTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension});else if(n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"like_dislike"==n.message[0].component.payload.template_type)t=d(this.getChatTemplate("likeDislikeTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension});else if(n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"form_template"==n.message[0].component.payload.template_type)t=d(this.getChatTemplate("formTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),this.bindEvents(t),n.message[0].component&&n.message[0].component.payload&&n.message[0].component.payload.fromHistory&&d(t).find(".formMainComponent form").addClass("hide");else if(n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"advanced_multi_select"==n.message[0].component.payload.template_type)t=d(this.getChatTemplate("advancedMultiSelect")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),d(t).data(n),this.bindEvents(t);else if(n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"tableList"==n.message[0].component.payload.template_type)t=d(this.getChatTemplate("tableListTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),this.bindEvents(t);else if(n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"listView"==n.message[0].component.payload.template_type)t=d(this.getChatTemplate("templatelistView")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),this.bindEvents(t),d(t).data(n),n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&n.message[0].component.payload.fromHistory&&d(t).css({"pointer-events":"none"});else if(n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"feedbackTemplate"===n.message[0].component.payload.template_type&&("star"===n.message[0].component.payload.view||"emojis"===n.message[0].component.payload.view||"CSAT"===n.message[0].component.payload.view||"ThumbsUpDown"===n.message[0].component.payload.view||"NPS"===n.message[0].component.payload.view)){if(n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&n.message[0].component.payload.thumpsUpDownArrays&&(e=n.message[0].component.payload.thumpsUpDownArrays,n.message[0].component.payload.thumpsUpDownArrays=[],e.forEach(function(t){var e;t&&t.thumpUpId&&"positive"===t.thumpUpId?n.message[0].component.payload.thumpsUpDownArrays[0]=t:t&&t.thumpUpId&&"negative"===t.thumpUpId?n.message[0].component.payload.thumpsUpDownArrays[1]=t:t&&t.reviewText&&"positive"!==t.thumpUpId&&"negative"!==t.thumpUpId&&((e=t.reviewText.toLocaleLowerCase().split(" ").filter(function(t){if(t)return t.startsWith("un")||t.startsWith("dis")||t.startsWith("no")})).length?e.length&&(t.thumpUpId=1,n.message[0].component.payload.thumpsUpDownArrays[1]=t):(t.thumpUpId=0,n.message[0].component.payload.thumpsUpDownArrays[0]=t))})),t=d(this.getChatTemplate("ratingTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),n.message[0].component.payload.selectedfeedbackValue){d(t).find(".ratingMainComponent").css({"pointer-events":"none"});var e=n.message[0].component.payload.selectedfeedbackValue;for(d(t).find(".ratingMainComponent label.active")&&d(t).find(".ratingMainComponent label").removeClass("active"),i=parseInt(e);0<i;i--)d(t).find('.ratingMainComponent label[for="'+i+'-stars"]').addClass("active")}this.bindEvents(t),d(t).data(n),n&&n.message&&n.message.length&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&(0===n.message[0].component.payload.selectedValue||0!==n.message[0].component.payload.selectedValue)&&(d(t).find(".numbersComponent .ratingValue.emoji-rating #rating_"+n.message[0].component.payload.selectedValue).parent().addClass("active"),d(t).find(".thumpsUpDownComponent .ratingValue.emoji-rating #rating_"+n.message[0].component.payload.selectedValue).parent().addClass("active"),d(t).find(".emojiComponent.version2 .emoji-rating #rating_"+n.message[0].component.payload.selectedValue).parent().addClass("active"))}else n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"listWidget"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("listWidget")).tmpl({msgData:n,tempdata:n.message[0].component.payload,dataItems:n.message[0].component.payload.elements||{},viewmore:null,helpers:this.helpers,extension:this.extension}),this.templateEvents(t,"listWidget"),d(t).data(t)):n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"advancedListTemplate"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("advancedListTemplate")).tmpl({msgData:n,tempdata:n.message[0].component.payload,dataItems:n.message[0].component.payload.elements||{},helpers:this.helpers,extension:this.extension}),this.advancedListTemplateEvents(t,n),d(t).data(n)):n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"cardTemplate"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("cardTemplate")).tmpl({msgData:n,viewmore:null,helpers:this.helpers,extension:this.extension}),this.cardTemplateEvents(t,n),d(t).data(n)):n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"proposeTimes"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("proposeTimes")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),this.proposeTimesTemplateBindEvents(t,n),d(t).data(n)):n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"default_card_template"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("default_card_template")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),d(t).data(n),this.defaultCardTemplateEvents(t,n)):n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"advancedMultiListTemplate"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("advancedMultiListTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),d(t).data(n),this.advancedMultiListTemplateEvents(t,n)):n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"custom_table"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("customTableTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),setTimeout(function(){for(var t=document.getElementsByClassName("accordionRow"),e=0;e<t.length;e++)t[e].onclick=function(){this.classList.toggle("open")};for(var n=document.getElementsByClassName("showMore"),e=0;e<n.length;e++)n[e].onclick=function(){var t=this.parentNode.parentElement;d("#dialog").empty(),d("#dialog").html(d(t).find(".tablechartDiv").html()),d(".hello").clone().appendTo(".goodbye");var e=document.getElementById("myPreviewModal");d(".largePreviewContent").empty(),d(t).find(".tablechartDiv").clone().appendTo(".largePreviewContent"),e.style.display="block",document.getElementsByClassName("closeElePreview")[0].onclick=function(){e.style.display="none",d(".largePreviewContent").removeClass("addheight")}}},350),this.bindEvents(t)):n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"articleTemplate"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("articleTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),d(t).data(n),this.articleTemplateEvents(t,n)):n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"resetPinTemplate"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("resetPinTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),n&&n.fromHistory&&d(t).css({"pointer-events":"none"}),this.resetPinTemplateEvents(t,n)):n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"quick_replies_welcome"==n.message[0].component.payload.template_type?t=d(this.getChatTemplate("quick_replies_welcome")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}):n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"otpValidationTemplate"==n.message[0].component.payload.template_type?(t=d(this.getChatTemplate("otpValidationTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),n&&n.fromHistory&&d(t).css({"pointer-events":"none"}),this.otpValidationTemplateEvents(t,n)):n.message[0]&&n.message[0].component&&n.message[0].component.payload&&("FeedbackTemplate"===n.message[0].component.payload.template_type||"bankingFeedbackTemplate"===n.message[0].component.payload.template_type)?(t=d(this.getChatTemplate("bankingFeedbackTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),this.bankingFeedbackTemplateEvents(t),d(t).data(n)):n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"checkListTemplate"==n.message[0].component.payload.template_type&&(t=d(this.getChatTemplate("checkListTemplate")).tmpl({msgData:n,helpers:this.helpers,extension:this.extension}),d(t).data(n),this.bindCheckListTemplates(d(t),n));return t},c.prototype.getChatTemplate=function(t){return"dropdown_template"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t\t\t{{if msgData.message}} \t\t\t\t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t\t\t\t\t<div class="buttonTmplContent"> \t\t\t\t\t\t{{if msgData.createdOn}}<div class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t\t\t\t{{if msgData.icon}}<div class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t\t\t\t<div class="{{if msgData.message[0].component.payload.fromHistory}} dummy messageBubble {{else}}messageBubble{{/if}}"> \t\t\t\t\t\t\t{{if msgData.message[0].component.payload.heading}}<div class="templateHeading">${msgData.message[0].component.payload.heading}</div>{{/if}} \t\t\t\t\t\t\t<select class="selectTemplateDropdowm">\t\t\t\t\t\t\t<option>select</option> \t\t\t\t\t\t\t\t{{each(key, msgItem) msgData.message[0].component.payload.elements}} \t\t\t\t\t\t\t\t    <option xyz = "${msgData.message[0].component.selectedValue} {{if msgData.message[0].component.selectedValue === msgItem.value}}selected{{/if}}" class = "dropdownTemplatesValues" title = "${msgItem.title}" type = "postback" value="${msgItem.value}" name="${msgItem.title}"> \t\t\t\t\t\t\t\t      {{if msgItem.title.length > 32}}${msgItem.title.substr(0,32)}...{{else}}${msgItem.title}{{/if}}\t\t\t\t\t\t\t        </option> \t\t\t\t\t\t\t\t{{/each}} \t\t\t\t\t\t\t</select> \t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t</li> \t\t\t{{/if}} \t\t<\/script>':"checkBoxesTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t\t\t{{if msgData.message}} \t\t\t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t\t\t\t\t<div class = "listTmplContent"> \t\t\t\t\t\t{{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t\t\t\t{{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t\t\t\t<ul class="{{if msgData.message[0].component.payload.fromHistory}} dummy listTmplContentBox  {{else}} listTmplContentBox{{/if}} "> \t\t\t\t\t\t\t{{if msgData.message[0].component.payload.title || msgData.message[0].component.payload.heading}} \t\t\t\t\t\t\t\t<li class="listTmplContentHeading"> \t\t\t\t\t\t\t\t\t{{if msgData.type === "bot_response" && msgData.message[0].component.payload.heading}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.heading, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "user")}} {{/if}} \t\t\t\t\t\t\t\t\t{{if msgData.message[0].cInfo && msgData.message[0].cInfo.emoji}} \t\t\t\t\t\t\t\t\t\t<span class="emojione emojione-${msgData.message[0].cInfo.emoji[0].code}">${msgData.message[0].cInfo.emoji[0].title}</span> \t\t\t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t\t\t</li> \t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t\t{{each(key, msgItem) msgData.message[0].component.payload.elements}} \t\t\t\t\t\t\t\t{{if msgData.message[0].component.payload.buttons}} \t\t\t\t\t\t\t\t\t<li class="listTmplContentChild"> \t\t\t\t\t\t\t\t\t\t<div class="checkbox checkbox-primary styledCSS checkboxesDiv"> \t\t\t\t\t\t\t\t\t\t\t<input  class = "checkInput" type="checkbox" text = "${msgItem.title}" value = "${msgItem.value}" id="${msgItem.value}${msgData.messageId}"> \t\t\t\t\t\t\t\t\t\t\t<label for="${msgItem.value}${msgData.messageId}">{{html helpers.convertMDtoHTML(msgItem.title, "bot")}}</label> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t</li> \t\t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t\t{{/each}} \t\t\t\t\t\t\t<div class="{{if msgData.message[0].component.payload.fromHistory}} hide  {{else}} checkboxButtons {{/if}} "> \t\t\t\t\t\t\t\t{{each(key, buttonData) msgData.message[0].component.payload.buttons}} \t\t\t\t\t\t\t\t\t<div class="checkboxBtn" value=${buttonData.payload} title="${buttonData.title}"> \t\t\t\t\t\t\t\t\t\t${buttonData.title} \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t{{/each}} \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</ul> \t\t\t\t\t</div> \t\t\t\t</li> \t\t\t{{/if}} \t\t<\/script>':"likeDislikeTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t\t\t{{if msgData.message}} \t\t\t\t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon quickReplies" data-kr-msg-id="${msgData.messageId}"> \t\t\t\t\t<div class="buttonTmplContent"> \t\t\t\t\t\t{{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t\t\t\t{{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t\t\t\t{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "user")}} {{/if}} \t\t\t\t\t\t{{if msgData.message[0].cInfo && msgData.message[0].cInfo.emoji}} \t\t\t\t\t\t\t<span class="emojione emojione-${msgData.message[0].cInfo.emoji[0].code}">${msgData.message[0].cInfo.emoji[0].title}</span> \t\t\t\t\t\t{{/if}} \t\t\t\t\t\t<div type ="postback" value = "like" class="likeDislikeDiv likeDiv">\t\t\t\t\t\t\t<img class = "likeImg" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5saWtlSWNvbjwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJsaWtlSWN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g2LDAuMjI4NTcxNDI5IDE0LjEyNTcxNDMsMC4yMjg1NzE0MjkgQzE2LDAuMjI4NTcxNDI5IDE2Ljk4Mjg1NzEsMS45NDI4NTcxNCAxNi45ODI4NTcxLDMuNjU3MTQyODYgTDE2Ljk4Mjg1NzEsNy42NTcxNDI4NiBMMjAuOTgyODU3MSw3LjY1NzE0Mjg2IEMyMi41NjA4MTM2LDcuNjU3MTQyODYgMjMuODQsOC45MzYzMjkyOSAyMy44NCwxMC41MTQyODU3IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="> \t\t\t\t\t\t</div> \t\t\t\t\t</div>\t\t\t\t</li> \t\t\t{{/if}} \t\t<\/script>':"formTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> {{if msgData.message}} <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t<div class="buttonTmplContent"> \t{{if msgData.createdOn}}<div class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t{{if msgData.icon}}<div class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t   <div class="{{if msgData.message[0].component.payload.fromHistory}} dummy messageBubble {{else}}messageBubble{{/if}}"> \t\t\t<div class="formMainComponent">\t\t\t  {{if msgData.message[0].component.payload.heading}}<div class="templateHeading">${msgData.message[0].component.payload.heading}</div>{{else}}Submit Form{{/if}}\t\t\t\t<form>\t\t\t\t   <div class="formBody">\t\t\t\t\t   {{each(key, msgItem) msgData.message[0].component.payload.formFields}} \t\t\t\t\t   <div class="input_group">\t\t\t\t\t{{if msgData.message[0].component.payload.formFields[0].label}}<div class="input_label">${msgData.message[0].component.payload.formFields[0].label} : </div>{{/if}}\t\t\t\t\t\t\t<div class="inputMainComponent">\t\t\t\t\t\t\t <div class="input-btn-submit">\t\t\t\t\t\t\t\t  <input type="${msgItem.type}" class="form-control" id="email" name="email" placeholder="${msgItem.placeholder}" value=""/>\t\t\t\t\t\t\t </div>\t\t\t\t\t\t\t <div id="submit" class="submit" value={{if msgData.message[0].component.payload.text}} "${msgData.message[0].component.payload.text}"{{/if}} >\t\t\t\t\t\t\t\t <div class="ok_btn" value="${msgData.message[0].component.payload.formFields[0].fieldButton.title}">${msgData.message[0].component.payload.formFields[0].fieldButton.title}</div>\t\t\t\t\t\t\t </div>\t\t\t\t\t\t\t </div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/each}} \t\t\t\t\t   </div>\t\t\t\t\t\t <div class="errorMessage hide"></div>\t\t\t   </form>\t\t\t</div>\t   </div>\t</div></li> {{/if}} <\/script>':"advancedMultiSelect"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t{{if msgData.message}} \t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} {{if msgData.icon}}with-icon{{/if}}" data-kr-msg-id="${msgData.messageId}"> \t\t\t<div class = "listTmplContent advancedMultiSelect"> \t\t\t\t{{if msgData.createdOn && !msgData.message[0].component.payload.sliderView}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t\t{{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t\t<ul class="{{if msgData.message[0].component.payload.fromHistory}} fromHistory listTmplContentBox  {{else}} listTmplContentBox{{/if}} "> \t\t\t\t\t{{if msgData.message[0].component.payload.title || msgData.message[0].component.payload.heading}} \t\t\t\t\t<div class="advMultiSelectHeader">\t\t\t\t\t\t<h4 class="advMultiSelectHeaderTitle">${(msgData.message[0].component.payload.title) || (msgData.message[0].component.payload.heading)}{{if msgData.message[0].component.payload.sliderView}}<div class="closeIcon closeBottomSlider"></div>{{/if}}</h4>\t\t\t\t\t\t<p class="orderDate">${msgData.message[0].component.payload.description}</p>\t\t\t\t\t</div>\t\t\t\t\t{{/if}} \t\t\t\t\t<div class="advancedMultiSelectScroll">\t\t\t\t\t  {{each(index, element) msgData.message[0].component.payload.elements}} \t\t\t\t\t  <div class="collectionDiv {{if msgData.message[0].component.payload.showViewMore && (index >= msgData.message[0].component.payload.limit)}}hide{{/if}}">\t\t\t\t\t\t\t{{if element.collection && element.collection.length}}\t\t\t\t\t\t\t\t{{if element && element.collection && element.collection.length > 1}}\t\t\t\t\t\t\t\t\t<div class="checkbox checkbox-primary styledCSS checkboxesDiv groupMultiSelect"> \t\t\t\t\t\t\t\t\t<input  class = "checkInput " type="checkbox" text = "${element.collectionName}" value = "${element.collectionName}" id="${element.collectionName}${msgData.messageId}${index}"> \t\t\t\t\t\t\t\t\t\t<label for="${element.collectionName}${msgData.messageId}${index}">\t\t\t\t\t\t\t\t\t\t\t\t{{if element && element.collectionHeader}}\t\t\t\t\t\t\t\t\t\t\t\t<div class="imgDescContainer">\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="checkImgContainer">\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="https://image12.coupangcdn.com/image/displayitem/displayitem_8ad9b5e0-fd76-407b-b820-6494f03ffc31.jpg">\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="multiSelectDescContainer">\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class="multiTitle">{{html helpers.convertMDtoHTML(msgItem.title, "bot")}}</p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class="multiDesc">Consultation on weekends and holidays</p>\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t{{else}}\t\t\t\t\t\t\t\t\t\t\t\tSelect all\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t</label> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t{{each(key, msgItem) element.collection}} \t\t\t\t\t\t\t\t\t{{if msgData.message[0].component.payload.buttons}} \t\t\t\t\t\t\t\t\t\t<li class="listTmplContentChild"> \t\t\t\t\t\t\t\t\t\t\t<div class="checkbox checkbox-primary styledCSS checkboxesDiv singleSelect {{if !msgItem.description}}nodescription{{/if}} {{if !msgItem.description && !msgItem.image_url}}noImgdescription{{/if}}"> \t\t\t\t\t\t\t\t\t\t\t\t<input  class = "checkInput" type="checkbox" text = "${msgItem.title}" value = "${msgItem.value}" id="${msgItem.value}${msgData.messageId}${index}${key}"> \t\t\t\t\t\t\t\t\t\t\t\t<label for="${msgItem.value}${msgData.messageId}${index}${key}">\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="imgDescContainer">\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if msgItem.image_url}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="checkImgContainer">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${msgItem.image_url}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="multiSelectDescContainer">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class="multiTitle">{{html helpers.convertMDtoHTML(msgItem.title, "bot")}}</p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if msgItem.description}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class="multiDesc">{{html helpers.convertMDtoHTML(msgItem.description, "bot")}}</p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t</label> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t</li> \t\t\t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t\t\t{{/each}} \t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t</div>\t\t\t\t\t  {{/each}} \t\t\t\t\t  {{if !(msgData.message[0].component.payload.fromHistory)}}\t\t\t\t\t  <li class="viewMoreContainer {{if !(msgData.message[0].component.payload.showViewMore) || (msgData.message[0].component.payload.showViewMore && (msgData.message[0].component.payload.elements.length <= msgData.message[0].component.payload.limit))}}hide{{/if}}"> \t\t\t\t\t\t  <span class="viewMoreGroups">ViewMore</span> \t\t\t\t\t  </li> \t\t\t\t\t  {{/if}}\t\t\t\t\t  </div>\t\t\t\t\t{{if !(msgData.message[0].component.payload.fromHistory) && msgData.message[0].component.payload.buttons && msgData.message[0].component.payload.buttons.length}}\t\t\t\t\t<li class="multiCheckboxBtn hide">\t\t\t\t\t\t<span title="Here are your selected items " class="{{if msgData.message[0].component.payload.fromHistory}} hide  {{else}} viewMore {{/if}}" type="postback" value="{{if msgData.message[0].component.payload.buttons[0].payload}}${msgData.message[0].component.payload.buttons[0].payload}{{else}}${msgData.message[0].component.payload.buttons[0].title}{{/if}}">${msgData.message[0].component.payload.buttons[0].title}</span> \t\t\t\t\t</li> \t\t\t\t\t{{/if}}\t\t\t\t</ul> \t\t\t</div> \t\t</li> \t{{/if}}    </scipt>':"templatelistView"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t{{if msgData.message}} \t\t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon listView" data-kr-msg-id="${msgData.messageId}"> \t\t\t<div class="listViewTmplContent {{if msgData.message[0].component.payload.boxShadow}}noShadow{{/if}}"> \t\t\t\t{{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t\t{{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t\t<ul class="listViewTmplContentBox"> \t\t\t\t\t{{if msgData.message[0].component.payload.text || msgData.message[0].component.payload.heading}} \t\t\t\t\t\t<li class="listViewTmplContentHeading"> \t\t\t\t\t\t\t{{if msgData.type === "bot_response" && msgData.message[0].component.payload.heading}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "user")}} {{/if}} \t\t\t\t\t\t\t{{if msgData.message[0].component.payload.sliderView}} <button class="close-button" title="Close"><img src="data:image/svg+xml;base64,           PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>{{/if}}\t\t\t\t\t\t\t{{if msgData.message[0].cInfo && msgData.message[0].cInfo.emoji}} \t\t\t\t\t\t\t\t<span class="emojione emojione-${msgData.message[0].cInfo.emoji[0].code}">${msgData.message[0].cInfo.emoji[0].title}</span> \t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t</li> \t\t\t\t\t{{/if}} \t\t\t\t\t<div class="listItems">\t\t\t\t\t{{each(key, msgItem) msgData.message[0].component.payload.elements}} \t\t\t\t\t{{if (msgData.message[0].component.payload.seeMore && key < msgData.message[0].component.payload.moreCount) || (!msgData.message[0].component.payload.seeMore)}}\t\t\t\t\t\t\t\t<li class="listViewTmplContentChild"> \t\t\t\t\t\t\t\t\t{{if msgItem.image_url}} \t\t\t\t\t\t\t\t\t\t<div class="listViewRightContent" {{if msgItem.default_action && msgItem.default_action.url}}url="${msgItem.default_action.url}"{{/if}} {{if msgItem.default_action && msgItem.default_action.title}}data-value="${msgItem.default_action.title}"{{/if}} {{if msgItem.default_action && msgItem.default_action.type}}type="${msgItem.default_action.type}"{{/if}} {{if msgItem.default_action && msgItem.default_action.payload}} value="${msgItem.default_action.payload}"{{/if}}> \t\t\t\t\t\t\t\t\t\t\t<img alt="image" src="${msgItem.image_url}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t\t\t\t<div class="listViewLeftContent" data-url="${msgItem.default_action.url}" data-title="${msgItem.default_action.title}" data-value="${msgItem.default_action.payload}"> \t\t\t\t\t\t\t\t\t\t<span class="titleDesc">\t\t\t\t\t\t\t\t\t\t<div class="listViewItemTitle" title="${msgItem.title}">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.title, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.title, "user")}} {{/if}}</div> \t\t\t\t\t\t\t\t\t\t{{if msgItem.subtitle}}<div class="listViewItemSubtitle" title="${msgItem.subtitle}">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "user")}} {{/if}}</div>{{/if}} \t\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t{{if msgItem.value}}<div class="listViewItemValue" title="${msgItem.value}">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.value, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.value, "user")}} {{/if}}</div>{{/if}} \t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</li> \t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t{{/each}} \t\t\t\t\t</div>\t\t\t\t\t{{if msgData && msgData.message && msgData.message.length && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMore && msgData.message[0].component.payload.buttons && msgData.message[0].component.payload.buttons.length && msgData.message[0].component.payload.buttons[0].title}}\t\t\t\t\t<li class="seeMore"> \t\t\t\t\t\t<span class="seeMoreList">${msgData.message[0].component.payload.buttons[0].title}</span> \t\t\t\t\t</li> \t\t\t\t\t{{/if}}\t\t\t\t</ul> \t\t\t</div> \t\t</li> \t{{/if}}  <\/script>':"actionSheetTemplate"===t?'<script id="chat-window-listTemplate" type="text/x-jqury-tmpl"> <div class="list-template-sheet hide">  {{if msgData.message}} \t<div class="sheetHeader">\t  <span class="choose">${msgData.message[0].component.payload.heading}</span>\t  <button class="close-button" title="Close"><img src="data:image/svg+xml;base64,           PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t</div>\t<div class="listTemplateContainer" >\t\t <div class="displayMonth">\t\t\t {{each(key, tab) tabs}} \t\t\t\t <span class="tabs" data-tabid="${tab}"><span class="btnBG">${tab}</span></span>\t\t\t {{/each}}\t\t </div>\t\t   <ul class="displayListValues">\t\t\t   {{each(key, msgItem) dataItems}} \t\t\t\t\t<li class="listViewTmplContentChild"> \t\t\t\t\t\t  {{if msgItem.image_url}} \t\t\t\t\t\t\t  <div class="listViewRightContent" {{if msgItem.default_action && msgItem.default_action.url}}url="${msgItem.default_action.url}"{{/if}} {{if msgItem.default_action && msgItem.default_action.title}}data-value="${msgItem.default_action.title}"{{/if}} {{if msgItem.default_action && msgItem.default_action.type}}type="${msgItem.default_action.type}"{{/if}} {{if msgItem.default_action && msgItem.default_action.payload}} value="${msgItem.default_action.payload}"{{/if}}> \t\t\t\t\t\t\t\t <img alt="image" src="${msgItem.image_url}" onerror="this.onerror=null;this.src=\'../libs/img/no_image.png\';"/> \t\t\t\t\t\t\t </div> \t\t\t\t\t\t {{/if}} \t\t\t\t\t\t\t <div class="listViewLeftContent" data-url="${msgItem.default_action.url}" data-title="${msgItem.default_action.title}" data-value="${msgItem.default_action.payload}"> \t\t\t\t\t\t\t\t<span class="titleDesc">\t\t\t\t\t\t\t\t\t<div class="listViewItemTitle" title="${msgItem.title}">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.title, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.title, "user")}} {{/if}}</div> \t\t\t\t\t\t\t\t\t {{if msgItem.subtitle}}<div class="listViewItemSubtitle" title="${msgItem.subtitle}">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.subtitle, "user")}} {{/if}}</div>{{/if}} \t\t\t\t\t\t\t\t </span>\t\t\t\t\t\t\t\t\t {{if msgItem.value}}<div class="listViewItemValue" title="${msgItem.value}">{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgItem.value, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgItem.value, "user")}} {{/if}}</div>{{/if}} \t\t\t\t\t\t\t </div>\t\t\t\t\t </li> \t\t\t\t{{/each}} \t\t\t</ul> \t</div>{{/if}}</div><\/script>':"tableListTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">  {{if msgData.message}} \t <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t\t <div class="listTmplContent"> \t\t\t {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t {{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t <div class="{{if msgData.message[0].component.payload.fromHistory}}dummy listTableContainerDiv {{else}}listTableContainerDiv{{/if}} "> <div class="listTableContainerDivRepet"> <div class="listTableContainer"> {{each(index,element) msgData.message[0].component.payload.elements}}\t\t <div class="listTableDetailsBorderDiv">\t\t\t\t <div class="listTableDetails">\t\t\t\t <div class="listTableHeader">\t\t\t\t {{if element && element.sectionHeader}} <div class="listTableDetailsTitle">${element.sectionHeader}</div>{{/if}}\t\t\t\t\t <div class="listTableHeaderDesc{{if element.value && element.value.layout && element.value.layout.align}}${element.value.layout.align}{{/if}}" {{if element && element.colSize}} style="width:${element.colSize};"{{/if}} {{if element.value && element.value.layout && element.value.layout.color}} style="color:${element.value.layout.color}"{{/if}}>\t\t\t\t\t {{if element && element.sectionHeaderDesc}}  <div class="headerDesc" title="${element.sectionHeaderDesc}">${element.sectionHeaderDesc}</div></div>{{/if}}\t\t\t\t </div>\t\t {{each(index,msgItem) element.rowItems}}\t\t\t\t\t <div class="listTableDetailsDesc {{if msgItem && msgItem.title && msgItem.title.image && msgItem.title.image.size==="medium"}}mediumImg{{/if}} {{if msgItem.title.type!=="url" && msgItem.default_action}}pointerStyle{{/if}} {{if msgItem.title.image && msgItem.title.image.size==="large"}}largeImg{{/if}}" {{if msgItem.title.image && msgItem.title.image.size==="small"}}smallImg{{/if}}" {{if msgItem && msgItem.bgcolor}} style="background-color:${msgItem.bgcolor};"{{/if}} {{if msgItem && msgItem.title && msgItem.title.rowColor}}style="color:${msgItem.title.rowColor}"{{/if}} {{if msgItem.default_action && msgItem.default_action.url}}url="${msgItem.default_action.url}"{{/if}} {{if msgItem.default_action && msgItem.default_action.title}} data-title="${msgItem.default_action.title}"{{/if}} {{if msgItem.default_action && msgItem.default_action.type}}type="${msgItem.default_action.type}"{{/if}} {{if msgItem.default_action && msgItem.default_action.payload}} data-value="${msgItem.default_action.payload}"{{/if}}>\t\t\t\t\t   {{if msgItem && msgItem.title.image && msgItem.title.image.image_type && msgItem.title.image.image_src}}\t\t\t\t\t\t <div class="listTableBigImgConytainer">\t\t\t\t\t\t   {{if msgItem.title.image.image_type === "image"}}\t\t\t\t\t\t\t   <img src="${msgItem.title.image.image_src}">\t\t\t\t\t\t   {{/if}}\t\t\t\t\t\t   {{if msgItem.title.image.image_type === "fontawesome"}}\t\t\t\t\t\t\t   <i class="fa {{msgItem.title.image.image_src}}" ></i>\t\t\t\t\t\t   {{/if}}\t\t\t\t\t\t </div>\t\t\t\t\t   {{/if}}\t\t\t\t\t   <div class="listTableDetailsDescSub " {{if msgItem && msgItem.title && msgItem.title.rowColor}} style="color:${msgItem.title.rowColor}"{{/if}} >\t\t\t\t\t\t {{if (msgItem && msgItem.title && msgItem.title.type && msgItem.title.type ==="url")}}\t\t\t\t\t\t <div class="listTableDetailsDescName">\t\t\t\t\t\t <div actionObj="${JSON.stringify(msgItem.title.url)}" type="${msgItem.title.type}" url="${msgItem.title.url.link}" class="listViewItemValue actionLink actiontitle {{if !msgItem.subtitle}}top10{{/if}}">${msgItem.title.url.title}</div>\t\t\t\t\t\t </div>{{else}}\t\t\t\t\t\t {{if msgItem && msgItem.title && msgItem.title.text && msgItem.title.text.title}} <p class="listTableDetailsDescName">${msgItem.title.text.title}</p>{{/if}}\t\t\t\t\t   {{/if}}\t\t\t\t\t   {{if (msgItem && msgItem.title && msgItem.title.url && msgItem.title.url.subtitle)}}\t\t\t\t\t\t\t <p class="listTableDetailsDescValue">${msgItem.title.url.subtitle}</p>\t\t\t\t\t\t\t {{else (msgItem && msgItem.title && msgItem.title.text && msgItem.title.text.subtitle)}}\t\t\t\t\t\t\t <p class="listTableDetailsDescValue">${msgItem.title.text.subtitle}</p>\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t </div>\t\t\t\t\t\t   {{if (msgItem.value && msgItem.value.type === "text" && msgItem.value.text)}}\t\t\t\t\t\t\t <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>\t\t\t\t\t\t\t\t <div class="listViewItemValue {{if !msgItem.subtitle}}top10{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.color}} style="color:${msgItem.value.layout.color}"{{/if}} title="${msgItem.value.text}">${msgItem.value.text}</div>\t\t\t\t\t\t\t </div>\t\t\t\t\t\t   {{/if}}\t\t\t\t\t\t   {{if (msgItem.value && msgItem.value.type === "image" && msgItem.value.image && msgItem.value.image.image_src)}}\t\t\t\t\t\t\t <div actionObj="${JSON.stringify(msgItem.value.image)}" class="titleActions imageValue action {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>\t\t\t\t\t\t\t\t {{if msgItem.value.image && msgItem.value.image.image_type === "image" && msgItem.value.image.image_src}}\t\t\t\t\t\t\t\t\t <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t\t\t\t <img alt="image" src="${msgItem.value.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t\t\t </span> \t\t\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t\t </div>\t\t\t\t\t\t   {{/if}}\t\t\t\t\t\t   {{if (msgItem.value && msgItem.value.type === "url" && msgItem.value.url)}}\t\t\t\t\t\t\t <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && (msgItem.value.layout.colSize || msgItem.value.layout.color)}} style="width:${msgItem.value.layout.colSize};color:${msgItem.value.layout.color}"{{/if}}>\t\t\t\t\t\t\t {{if msgItem && msgItem.value && msgItem.value.url}} <div actionObj="${JSON.stringify(msgItem.value.url)}" type="${msgItem.value.type}" url="${msgItem.value.url.link}"class="listViewItemValue actionLink actiontitle{{if !msgItem.subtitle}} top10{{/if}}">${msgItem.value.url.title}</div>{{/if}}\t\t\t\t\t\t\t </div>\t\t\t\t\t\t   {{/if}}\t\t\t\t\t\t   {{if msgItem.value && msgItem.value.type=="button" && msgItem.value.button && (msgItem.value.button.title || (msgItem.value.button.image && msgItem.value.button.image.image_src))}}\t\t\t\t\t\t\t <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}}style="width:${msgItem.value.layout.colSize};"{{/if}}>\t\t\t\t\t\t\t\t <div class="actionBtns action singleBTN {{if !msgItem.value.button.title && (msgItem.value.button.image && msgItem.value.button.image.image_src)}}padding5{{/if}}" actionObj="${JSON.stringify(msgItem.value.button)}">\t\t\t\t\t\t\t\t\t {{if msgItem.value.button.image && msgItem.value.button.image.image_type === "image" && msgItem.value.button.image.image_src}}\t\t\t\t\t\t\t\t\t\t\t <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t\t\t\t\t\t <img alt="image" src="${msgItem.value.button.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t\t\t\t\t </span> \t\t\t\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t\t\t\t {{if msgItem && msgItem.value && msgItem.value.button && msgItem.value.button.title}}\t\t\t\t\t\t\t\t\t ${msgItem.value.button.title}\t\t\t\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t\t\t </div>\t\t\t\t\t\t\t </div>\t\t\t\t\t\t   {{/if}}\t\t\t\t\t\t   {{if msgItem.value && msgItem.value.type=="menu" && msgItem.value.menu && msgItem.value.menu.length}}\t\t\t\t\t\t   <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}}style="width:${msgItem.value.layout.colSize};"{{/if}}>\t\t\t\t\t\t\t   <i class="icon-More dropbtnWidgt moreValue"  onclick="showDropdown(this)"></i>\t\t\t\t\t\t\t\t   <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">\t\t\t\t\t\t\t\t\t {{each(key, actionbtnli) msgItem.value.menu}} \t\t\t\t\t\t\t\t\t\t   <li class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">\t\t\t\t\t\t\t\t\t\t <i>\t\t\t\t\t\t\t\t\t\t {{if actionbtnli.image && actionbtnli.image.image_type === "image" && msgItem.title.image.image_src}}\t\t\t\t\t\t\t\t\t\t <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t\t\t\t\t <img alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5J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\t </div>\t\t </div> {{/each}} </div> {{if msgData.elements && msgData.elements.length > 3 && viewmore}} \t <div class="seeMoreFooter">\t\t <span class="seeMoreLink" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')">Show more</span>\t </div> {{/if}} </div></div></div> </li> {{/if}} </scipt>':"ratingTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> {{if msgData.message}} <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} {{if msgData.icon}}with-icon{{/if}}" data-kr-msg-id="${msgData.messageId}"> \t<div class="buttonTmplContent"> \t\t\t{{if msgData.createdOn && !msgData.message[0].component.payload.sliderView}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t{{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t<div class="{{if msgData.message[0].component.payload.fromHistory}} dummy messageBubble {{else}}messageBubble{{/if}}"> \t\t\t{{if msgData.message[0].component.payload.fromHistory}}<ul class="fromHistory listTempView">\t\t\t\t\t\t  ${msgData.message[0].cInfo.body}</ul>\t\t\t{{else}}<ul class="listTmplContentBox rating-main-component"> \t\t\t{{if msgData.message[0].component.payload.view == "star"}}\t\t\t  <div class="ratingMainComponent">\t\t\t  {{if msgData.message[0].component.payload.sliderView}}<button class="close-btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button> {{/if}}\t\t\t  {{if msgData.message[0].component.payload.text}}<div class="templateHeading">${msgData.message[0].component.payload.text}</div>{{else}}Rate the chat session{{/if}}\t\t\t\t<div class="star-rating">\t\t\t\t   {{each(key, msgItem) msgData.message[0].component.payload.starArrays}}\t\t\t\t   <input type="radio" id="${msgItem.starId}-stars" name="rating" value="${msgItem.value}" />\t\t\t\t   <label for="${msgItem.starId}-stars" class="star">&#9733;</label>\t\t\t\t   {{/each}}\t\t\t\t</div>\t\t\t  </div>\t\t\t  {{else msgData.message[0].component.payload.view == "emojis" || msgData.message[0].component.payload.view === "CSAT"}}\t\t\t  <div class="emojiComponent{{if msgData.message[0].component.payload.view === "CSAT"}} version2 {{else}} version1 {{/if}}">\t\t\t  {{if msgData.message[0].component.payload.sliderView && !msgData.fromHisory}}<button class="close-btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button> {{/if}}\t\t\t  {{if msgData.message[0].component.payload.text}}<div class="templateHeading text-heading-info">${msgData.message[0].component.payload.text}</div>{{else}}Rate the chat session{{/if}}\t\t\t  <div class="emojis-data">\t\t\t  {{each(key, msgItem) msgData.message[0].component.payload.smileyArrays}}\t\t\t  <div class="emoji-rating" value="${msgItem.value}" data-id="${msgItem.smileyId}">\t\t\t\t <div class="rating" id="rating_${msgItem.smileyId}" value="${msgItem.value}"></div>\t\t\t\t <div class="emoji-desc" title="${msgItem.reviewText}">${msgItem.reviewText}</div>\t\t\t\t </div>\t\t\t  {{/each}}\t\t\t  </div>\t\t\t  {{else msgData.message[0].component.payload.view == "ThumbsUpDown"}}\t\t\t  <div class="thumpsUpDownComponent">\t\t\t  {{if msgData.message[0].component.payload.sliderView && !msgData.fromHisory}}<button class="close-btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button> {{/if}}\t\t\t  {{if msgData.message[0].component.payload.text}}<div class="templateHeading text-heading-info">${msgData.message[0].component.payload.text}</div>{{else}}Rate the chat session{{/if}}\t\t\t  <div class="emojis-data">\t\t\t  {{each(key, msgItem) msgData.message[0].component.payload.thumpsUpDownArrays}}\t\t\t  <div class="ratingValue emoji-rating" value="${msgItem.value}" data-id="${key}">\t\t\t\t <div class="rating" id="rating_${key}" value="${msgItem.value}"></div>\t\t\t\t <div class="emoji-desc" title="${msgItem.reviewText}">${msgItem.reviewText}</div></div>\t\t\t  {{/each}}\t\t\t  </div>\t\t\t  {{else msgData.message[0].component.payload.view == "NPS"}}\t\t\t  <div class="numbersComponent">\t\t\t  {{if msgData.message[0].component.payload.sliderView && !msgData.fromHisory}}<button class="close-btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button> {{/if}}\t\t\t  {{if msgData.message[0].component.payload.text}}<div class="templateHeading text-heading-info">${msgData.message[0].component.payload.text}</div>{{else}}Rate the chat session{{/if}}\t\t\t  <div class="rating-numbers-data">\t\t\t  {{each(key, msgItem) msgData.message[0].component.payload.numbersArrays}}\t\t\t  <div class="ratingValue emoji-rating" value="${msgItem.value}" data-id="${msgItem.numberId}">\t\t\t  \t<div class="rating" id="rating_${msgItem.numberId}" value="${msgItem.value}">${msgItem.numberId}</div>\t\t\t\t  <div class="emoji-desc" title="${msgItem.reviewText}">${msgItem.reviewText}</div></div>\t\t\t  {{/each}}\t\t\t  </div>\t\t\t  {{/if}}\t\t   </ul>{{/if}}</div>\t</div>\t</li>{{/if}} <\/script>':"listWidget"===t?'<script id="chat-window-listTemplate" type="text/x-jqury-tmpl">\t{{if msgData.message}} \t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t\t<div class="listTmplContent"> \t\t\t{{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t{{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t<div class="{{if msgData.message[0].component.payload.fromHistory}}dummy listTableContainerDiv {{else}}listTableContainerDiv{{/if}} ">\t\t\t<div role="main" class="tab-list-template" mainObj="${JSON.stringify(tempdata)}">\t\t\t{{if tempdata}} \t\t\t <div class="sheetHeader">\t\t\t\t <div class="headerLeft">\t\t\t\t\t  <span class="choose">${tempdata.title}</span>\t\t\t\t {{if tempdata.description}}\t\t\t\t <p class="listViewItemSubtitle">${tempdata.description}</p>\t\t\t\t {{/if}}\t\t\t\t </div>\t\t\t\t {{if tempdata && tempdata.headerOptions && tempdata.headerOptions.type==="text" && tempdata.headerOptions.text}}\t\t\t\t <div class="headerRight">\t\t\t\t\t <div role="button"  tabindex="0" actionObj="${JSON.stringify(tempdata.headerOptions.text)}" class="headerActionBTN action" title="${tempdata.headerOptions.text}">${tempdata.headerOptions.text}</div>\t\t\t\t </div>\t\t\t\t {{/if}}\t\t\t\t {{if tempdata && tempdata.headerOptions && tempdata.headerOptions.type==="button" && tempdata.headerOptions.button && tempdata.headerOptions.button.title}}\t\t\t\t <div class="headerRight">\t\t\t\t\t <div role="button"  tabindex="0" actionObj="${JSON.stringify(tempdata.headerOptions.button)}" class="headerActionBTN action" title="${tempdata.headerOptions.button.title}">${tempdata.headerOptions.button.title}</div>\t\t\t\t </div>\t\t\t\t {{/if}}\t\t\t\t {{if (tempdata.headerOptions && tempdata.headerOptions.type === "url" && tempdata.headerOptions.url && tempdata.headerOptions.url.title)}}\t\t\t\t   <div class="headerRight">\t\t\t\t\t  <div role="button" tabindex="0" actionObj="${JSON.stringify(tempdata.headerOptions.url)}" class="headerActionLink action" title="${tempdata.headerOptions.url.title}">${tempdata.headerOptions.url.title}</div>\t\t\t\t  </div>\t\t\t\t {{/if}}\t\t\t\t {{if tempdata.headerOptions && tempdata.headerOptions.type === "menu" && tempdata.headerOptions.menu && tempdata.headerOptions.menu.length}}\t\t\t\t <div class="headerRight">\t\t\t\t <div role="menu" aria-label="Dropdown Menu" class="titleActions">\t\t\t\t\t <i class="icon-More dropbtnWidgt moreValue"></i>\t\t\t\t\t\t <ul role="list" class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">\t\t\t\t\t\t   {{each(key, actionbtnli) tempdata.headerOptions.menu}} \t\t\t\t\t\t\t\t <li role="button" tabindex="0" title="${actionbtnli.title}" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">\t\t\t\t\t\t\t   <i>\t\t\t\t\t\t\t   {{if actionbtnli.image && actionbtnli.image.image_type === "image" && actionbtnli.image.image_src}}\t\t\t\t\t\t\t   <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t\t   <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ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KuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t   </span> \t\t\t\t\t\t\t   {{/if}} \t\t\t\t\t\t\t   </i>${actionbtnli.title}</li>\t\t\t\t\t\t   {{/each}}\t\t\t\t\t\t </ul>\t\t\t\t </div>\t\t\t\t </div>\t\t\t\t {{/if}}\t\t\t\t <div class="headerRight" style="display:none;">\t\t\t\t   <div class="headerActionEllipsis">\t\t\t\t   <i class="icon-More dropbtnWidgt moreValue"></i>\t\t\t\t   <ul  class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">\t\t\t\t\t\t   <li class="dropdown-item action"> one</li>\t\t\t\t\t\t   <li class="dropdown-item action"> two</li>\t\t\t\t   </ul>\t\t\t\t   </div>\t\t\t\t </div>\t\t\t  </div>\t\t\t <div class="listTemplateContainer">\t\t\t {{if tempdata.tabs && tabs.length}} \t\t\t   <div class="tabsContainer">\t\t\t\t  {{each(key, tab) tabs}} \t\t\t\t  <span class="tabs" data-tabid="${tab}" ><span class="btnBG">${tab}</span></span>\t\t\t\t  {{/each}}\t\t\t   </div>\t\t\t {{/if}} \t\t\t   <ul class="displayListValues"w>\t\t\t\t{{each(key, msgItem) dataItems}} \t\t\t\t{{if ((viewmore && (key<=2)) || (!viewmore))}}\t\t\t\t  <li class="listViewTmplContentChild" role="listitem"> \t\t\t\t   <div class="listViewTmplContentChildRow">\t\t\t\t   {{if msgItem.image && msgItem.image.image_type === "image" && msgItem.image.image_src}} \t\t\t\t\t\t   <div class="listViewRightContent {{if msgItem.image.size}}${msgItem.image.size}{{/if}}" {{if msgItem.image.radius}}style="border-radius:$(msgItem.image.radius)"{{/if}}>\t\t\t\t\t\t\t   <img aria-hidden="true" alt="image" src="${msgItem.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t   </div> \t\t\t\t   {{/if}} \t\t\t\t\t   <div class="listViewLeftContent {{if (!msgItem.value) || (msgItem.value && msgItem.value.type==="text" && !msgItem.value.text) || (msgItem.value && msgItem.value.type==="button" && !msgItem.value.button)}}fullWidthTitle{{/if}} {{if msgItem.default_action}}handCursor{{/if}}" {{if msgItem && msgItem.default_action}}actionObj="${JSON.stringify(msgItem.default_action)}"{{/if}} {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize && ((msgItem.value && msgItem.value.type === "text" && msgItem.value.text) || (msgItem.value && msgItem.value.type === "url" && msgItem.value.url && msgItem.value.url.title) || (msgItem.value && msgItem.value.type=="button" && msgItem.value.button && (msgItem.value.button.title || (msgItem.value.button.image && msgItem.value.button.image.image_src))) || (msgItem.value && msgItem.value.type=="menu" && msgItem.value.menu && msgItem.value.menu.length))}} col-size="${msgItem.value.layout.colSize}"{{/if}}> \t\t\t\t\t\t\t <span class="titleDesc ">\t\t\t\t\t\t\t   <div class="listViewItemTitle" title="${msgItem.title}">${msgItem.title}</div> \t\t\t\t\t\t\t   {{if msgItem.subtitle}}\t\t\t\t\t\t\t\t <div class="listViewItemSubtitle" title="${msgItem.subtitle}">${msgItem.subtitle}</div>\t\t\t\t\t\t\t   {{/if}} \t\t\t\t\t\t\t </span>\t\t\t\t\t   </div>\t\t\t\t\t   {{if (msgItem.value && msgItem.value.type === "text" && msgItem.value.text)}}\t\t\t\t\t\t <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>\t\t\t\t\t\t\t <div class="listViewItemValue {{if !msgItem.subtitle}}top10{{/if}}" title="${msgItem.value.text}">${msgItem.value.text}</div>\t\t\t\t\t\t </div>\t\t\t\t\t   {{/if}}\t\t\t\t\t   {{if (msgItem.value && msgItem.value.type === "image" && msgItem.value.image && msgItem.value.image.image_src)}}\t\t\t\t\t\t <div actionObj="${JSON.stringify(msgItem.value.image)}" class="titleActions imageValue action {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>\t\t\t\t\t\t\t {{if msgItem.value.image && msgItem.value.image.image_type === "image" && msgItem.value.image.image_src}}\t\t\t\t\t\t\t\t <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t\t\t <img aria-hidden="true" alt="image" src="${msgItem.value.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdD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TJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t\t </span> \t\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t </div>\t\t\t\t\t   {{/if}}\t\t\t\t\t   {{if (msgItem.value && msgItem.value.type === "url" && msgItem.value.url && msgItem.value.url.title)}}\t\t\t\t\t\t <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}} style="width:${msgItem.value.layout.colSize};"{{/if}}>\t\t\t\t\t\t\t <div role="navigation" actionObj="${JSON.stringify(msgItem.value.url)}" class="listViewItemValue actionLink action {{if !msgItem.subtitle}}top10{{/if}}" title="${msgItem.value.url.title}">${msgItem.value.url.title}</div>\t\t\t\t\t\t </div>\t\t\t\t\t   {{/if}}\t\t\t\t\t   {{if msgItem.value && msgItem.value.type=="button" && msgItem.value.button && (msgItem.value.button.title || (msgItem.value.button.image && msgItem.value.button.image.image_src))}}\t\t\t\t\t\t <div class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}}style="width:${msgItem.value.layout.colSize};"{{/if}}>\t\t\t\t\t\t\t <div role="button" aria-live="polite" tabindex="1" class="actionBtns action singleBTN {{if !msgItem.value.button.title && (msgItem.value.button.image && msgItem.value.button.image.image_src)}}padding5{{/if}}" actionObj="${JSON.stringify(msgItem.value.button)}">\t\t\t\t\t\t\t\t {{if msgItem.value.button.image && msgItem.value.button.image.image_type === "image" && msgItem.value.button.image.image_src}}\t\t\t\t\t\t\t\t\t\t <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t\t\t\t\t <img aria-hidden="true" alt="image" src="${msgItem.value.button.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAA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t29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t\t\t\t </span> \t\t\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t\t\t {{if msgItem.value.button.title}}\t\t\t\t\t\t\t\t ${msgItem.value.button.title}\t\t\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t\t </div>\t\t\t\t\t\t </div>\t\t\t\t\t   {{/if}}\t\t\t\t\t   {{if msgItem.value && msgItem.value.type=="menu" && msgItem.value.menu && msgItem.value.menu.length}}\t\t\t\t\t   <div role="menu" aria-label="Dropdown Menu" class="titleActions {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.align}}${msgItem.value.layout.align}{{/if}}" {{if msgItem.value && msgItem.value.layout && msgItem.value.layout.colSize}}style="width:${msgItem.value.layout.colSize};"{{/if}}>\t\t\t\t\t\t   <i class="icon-More dropbtnWidgt moreValue"></i>\t\t\t\t\t\t\t   <ul role="list" class="dropdown-contentWidgt  rmpmW moreValueContent" style="list-style:none;">\t\t\t\t\t\t\t\t {{each(key, actionbtnli) msgItem.value.menu}} \t\t\t\t\t\t\t\t\t   <li role="button" tabindex="0" title="${actionbtnli.title}" class="dropdown-item action" actionObj="${JSON.stringify(actionbtnli)}">\t\t\t\t\t\t\t\t\t <i>\t\t\t\t\t\t\t\t\t {{if actionbtnli.image && actionbtnli.image.image_type === "image" && msgItem.image.image_src}}\t\t\t\t\t\t\t\t\t <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t\t\t\t <img aria-hidden="true" alt="image" src="${actionbtnli.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t\t\t </span> \t\t\t\t\t\t\t\t\t {{/if}} \t\t\t\t\t\t\t\t\t </i>${actionbtnli.title}</li>\t\t\t\t\t\t\t\t {{/each}}\t\t\t\t\t\t\t   </ul>\t\t\t\t\t   </div>\t\t\t\t\t   {{/if}}\t\t\t\t\t </div>\t\t\t\t   {{if msgItem.details && msgItem.details.length}} \t\t\t\t   <div role="contentinfo" class="tabListViewDiscription">\t\t\t\t\t {{each(key, content) msgItem.details}} \t\t\t\t\t   {{if key < 3 }}\t\t\t\t\t\t  <div class="wid-temp-contentDiv" role="complementary">\t\t\t\t\t\t\t{{if content.image && content.image.image_type === "image" && content.image.image_src}} \t\t\t\t\t\t\t   <span class="wid-temp-discImage"> \t\t\t\t\t\t\t\t   <img aria-hidden="true" alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQW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vbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t   </span> \t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t\t{{if content.description}} \t\t\t\t\t\t\t  <span class="wid-temp-discription">${content.description}</span>\t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t\t{{if ((key===2) || ((msgItem.details.length < 3) && (key===msgItem.details.length-1))) && (msgItem.buttons && msgItem.buttons.length)}} \t\t\t\t\t\t\t<span class="wid-temp-showActions" aria-live="polite" role="button" tabindex="1" aria-label="Show buttons icon">\t\t\t\t\t\t\t </span>\t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t  </div>\t\t\t\t\t   {{/if}}\t\t\t\t\t {{/each}}\t\t\t\t\t {{if msgItem.details.length > 3}}\t\t\t\t\t <span class="wid-temp-showMore" id="showMoreContents">Show more <span class="show-more"></span></span>\t\t\t\t\t {{/if}}\t\t\t\t   </div>\t\t\t\t   <div class="wid-temp-showMoreBottom hide">\t\t\t\t\t <div class="showMoreContainer">\t\t\t\t\t   <div class="headerTitleMore">MORE<span class="wid-temp-showMoreClose"><img aria-hidden="true" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAANlJREFUKBWdkkEKwjAQRWdSqBfwHDmEPYTgBVwXvIWCO8GlG6GHaA/hObxAC3Xan5AmrUkFZ1OY+S//Txo+3x6a6HPlbLM/HQ9vWqnL/bmVvq2IVKkAidBO+q7GIMVZqKuhBaPgxMwvEdEp2EOioTUMHL4HeeFip2bsosUEmCEF0lgnf+AEQrSEDRiB0J+BaISwEZidvBN6qPFW/6uZY+iGnXBkbD/0J3AJcZYXBly7nBj083esQXBExTQKby+1h8WI4I7o/oW11XirqmSmBgMXzwHh18PUgBkAXhfn47Oroz4AAAAASUVORK5CYII=" class="closeCross"></span></div>\t\t\t\t\t   <div class="moreItemsScroll">\t\t\t\t\t\t {{each(key, content) msgItem.details}} \t\t\t\t\t\t\t <div class="wid-temp-contentDiv">\t\t\t\t\t\t\t   {{if content.image && content.image.image_type === "image" && content.image.image_src}}\t\t\t\t\t\t\t\t\t <span class="wid-temp-discImage"> \t\t\t\t\t\t\t\t\t\t <img aria-hidden="true" alt="image" src="${content.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t\t\t </span> \t\t\t\t\t\t\t   {{/if}} \t\t\t\t\t\t\t   {{if content.description}} \t\t\t\t\t\t\t\t   <span class="wid-temp-discription">${content.description}</span>\t\t\t\t\t\t\t   {{/if}} \t\t\t\t\t\t\t </div>\t\t\t\t\t\t   {{/each}}\t\t\t\t\t\t </div>\t\t\t\t\t </div>\t\t\t\t   </div>\t\t\t\t   {{/if}}\t\t\t\t   {{if (msgItem.buttons && msgItem.buttons.length)}} \t\t\t\t   <div aria-live="polite" role="region" class="meetingActionButtons {{if ((msgItem.buttonsLayout && msgItem.buttonsLayout.style==="float"))}}float{{else}}fix{{/if}} {{if ((msgItem.details && msgItem.details.length))}}hide{{/if}}">\t\t\t\t\t   {{each(key, actionbtn) msgItem.buttons}}\t\t\t\t\t\t\t   {{if (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && msgItem.buttonsLayout.displayLimit.count && (key < msgItem.buttonsLayout.displayLimit.count)) || (!msgItem.buttonsLayout && key < 2) || (msgItem.buttonsLayout && !msgItem.buttonsLayout.displayLimit && key < 2) || (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && !msgItem.buttonsLayout.displayLimit.count && key < 2)}}\t\t\t\t\t\t\t\t {{if actionbtn.title}}\t\t\t\t\t\t\t\t   <div role="listitem" tabindex="0" class="actionBtns action" actionObj="${JSON.stringify(actionbtn)}">\t\t\t\t\t\t\t\t   <i>\t\t\t\t\t\t\t\t   {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}\t\t\t\t\t\t\t\t   <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t\t\t   <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kGVT16VdVBlbZdDLuDM61xYiKbmujSkprmdLJZCSLv0rBv9ThWNjAVpl4p5iRG4+GmVcyHT8/P7XTUTQyHA4twCTTU6znmSWErWi7Nql1pKIcAUoHu0a4qry+vpr1eq2Pra5APjw8mNFoVNpPbS6j1dEgHAHiEAy9K8Bh6Pb21i0uvV8sFobfdDo1y+XS8IJPT0+VkDLd1vYyyg9EDpC1wOL1CeWXl5e+qqOyzWYjgDc3N9Ln4+OjESQ2YHBDUM5JiHNdy/X1tbm/v5ew0mSpFBkyQHYIYtQ5pA0kDLCoZERsX+cUF/Lt7e3IGVzbLoug4rDnGL3VauXatSMTZo4TRZHc5xocHmCBiQ8MAeSrxA0rvk5tyvB45Ovrq7QbjoSX+wQWmOIk2QPyydRWCD388Oziy1FG7AOiKPQhBNUJTHz4HKY4H/fqOr+/v5v5fC7NPj8/zePjoxmPx7luZSFJY2SusedBX1qGrhiYPe2zojiOMzgK2Qa/v7+z+q5ulEkAlbaJct+0Ad21KFPrxXdxcSHe6AIRQlwBuC6UuO2r7mUNkkMocVVjrWNfnc1m4iRXV1e5LRA4dgyuifVC2rbRrTZgQgSQBKfNJkI8u7u7U13Z1YWjkFgH7CmQMCEyxUorJS3+GCGVIpyWK2RbG9peAEkN2wpfKM/PzzLNZXCqE0jWZBtRJpnifd4aNl4rwLEGEaaQrQnIKvF5f1l7Rg8m5DDFRvLWsg5uOQFa4SgnDtbBuf2b3JNDH3xkD0gnkuomQudzi8uSxUEy/v9hvO7l5ATCOX2QNaidyPhJqquEoFwMzFXt29bB4EoOkFyANeXLS3iz4vedq6jpfZWzYNvNR9CZA6SA4wgyft2sKSMw85n08vLCYyeCTlcIzNguSs93PkjiTsavWxRweK8Gz6KSts/kyGyRKuiNbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t\t   </span> \t\t\t\t\t\t\t\t   {{/if}} \t\t\t\t\t\t\t\t   </i><span role="button">${actionbtn.title}</span></div>\t\t\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t\t   {{/if}}\t\t\t\t\t   {{/each}}\t\t\t\t\t   {{if (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && msgItem.buttonsLayout.displayLimit.count && (msgItem.buttons.length > msgItem.buttonsLayout.displayLimit.count)) || (!msgItem.buttonsLayout && msgItem.buttons.length > 2) || (msgItem.buttonsLayout && !msgItem.buttonsLayout.displayLimit && msgItem.buttons.length > 2) || (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && !msgItem.buttonsLayout.displayLimit.count && msgItem.buttons.length > 2)}}\t\t\t\t\t   {{if (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && msgItem.buttonsLayout.displayLimit.count && (msgItem.buttons.length > msgItem.buttonsLayout.displayLimit.count)) || (!msgItem.buttonsLayout && msgItem.buttons.length > 3) || (msgItem.buttonsLayout && !msgItem.buttonsLayout.displayLimit && msgItem.buttons.length > 3) || (msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && !msgItem.buttonsLayout.displayLimit.count && msgItem.buttons.length > 3)}}\t\t\t\t\t\t <div class="dropbtnWidgt actionBtns" style="margin:0;margin-top: 0px;top: unset;">... More</div>\t\t\t\t\t\t <ul  class="dropdown-contentWidgt" style="list-style:none;">\t\t\t\t\t\t   {{each(key, actionbtn) msgItem.buttons}} \t\t\t\t\t\t\t{{if key >= 2}}\t\t\t\t\t\t\t\t   <li role="button" tabindex="0" title="${actionbtn.title}" class="dropdown-item action" href="javascript:void(0)" actionObj="${JSON.stringify(actionbtn)}">\t\t\t\t\t\t\t\t   <i>\t\t\t\t\t\t\t\t   {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}\t\t\t\t\t\t\t\t   <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t\t\t   <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg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NbLrpS9y9gHQc2BzFPV1QZV1fgVutN0dTq3YyL9YCvbIWeCvdE7W8y6tMq7VRXHeujVJAGjHkHEeweLsWdIrumrh65CRFEKaA4wim/NQDTFcn0aDTA0xVzjTwa3IErH30yktKALb9z3YErMYwwI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t\t\t   </span> \t\t\t\t\t\t\t\t   {{/if}} \t\t\t\t\t\t\t\t   </i>${actionbtn.title}</li>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t   {{/each}}\t\t\t\t\t\t </ul>\t\t\t\t\t   {{/if}}\t\t\t\t\t   {{if ((msgItem.buttonsLayout && msgItem.buttonsLayout.displayLimit && !msgItem.buttonsLayout.displayLimit.count) || (!msgItem.buttonsLayout) ) && msgItem.buttons.length === 3}}\t\t\t\t\t   {{each(key, actionbtn) msgItem.buttons}}\t\t\t\t\t\t{{if key === 2 }}\t\t\t\t\t\t {{if actionbtn.title}}\t\t\t\t\t\t   <div role="button" tabindex="0" class="actionBtns action" actionObj="${JSON.stringify(actionbtn)}">\t\t\t\t\t\t   <i>\t\t\t\t\t\t   {{if actionbtn.image && actionbtn.image.image_type === "image" && actionbtn.image.image_src}}\t\t\t\t\t\t   <span class="wid-temp-btnImage"> \t\t\t\t\t\t\t   <img aria-hidden="true" alt="image" src="${actionbtn.image.image_src}" onerror="this.onerror=null;this.src=\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA/FJREFUWAnNmItK60AQQLdN05eIIoog+v+/pQiKIlhab9M2SXv3TDthk25evenFgTbJPmZOdndmM9ubL/7szC+WwalsvZ4xg2BggqBvevah3+/JFX273c5stzu5punWJGli70+z1BowDAcmHAQWaA/mM7sH3teEIcChBd6aOElNHCe+LqVljQEHFmo0DAWsVFtJBcBBEMhvaF9wvYlNYmGbSC0gyifjoShvorCuDSM/GY9MmqYmWm1kG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wI+89VceoiuoHRTJW51dSas6vf4FP88rnfrjdTEAAAAASUVORK5CYII=\';"/> \t\t\t\t\t\t   </span> \t\t\t\t\t\t   {{/if}} \t\t\t\t\t\t   </i>${actionbtn.title}</div>\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t  {{/if}}\t\t\t\t\t\t{{/each}}\t\t\t\t\t   {{/if}}\t\t\t\t\t {{/if}}\t\t\t\t   </div>\t\t\t\t   {{/if}}\t\t\t\t </li> \t\t\t\t {{/if}}\t\t\t\t{{/each}} \t\t\t   </ul> \t   <div style="clear:both"></div>\t   {{if dataItems && dataItems.length > 3 && viewmore}} \t\t   <div class="listViewMore" onclick="viewMorePanel(\'${JSON.stringify(panelDetail)}\')"><span class="seeMoreText">See more <span class="see-more"></span></span></div>\t   {{/if}}\t   {{if dataItems && dataItems.length === 0}}\t\t   <div class="noContent">\t\t\t   <img aria-hidden="true" class="img img-fluid" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNzEiIGhlaWdodD0iNjMiIHZpZXdCb3g9IjAgMCAxNzEgNjMiPgogICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBmaWxsPSIjRTVFOEVDIj4KICAgICAgICAgICAgPHJlY3Qgd2lkdGg9IjEzMSIgaGVpZ2h0PSIxMiIgeD0iMzkiIHk9IjUiIHJ4PSIyIi8+CiAgICAgICAgICAgIDxyZWN0IHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcng9IjIiLz4KICAgICAgICA8L2c+CiAgICAgICAgPGcgZmlsbD0iI0U1RThFQyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCA0MSkiPgogICAgICAgICAgICA8cmVjdCB3aWR0aD0iMTMxIiBoZWlnaHQ9IjEyIiB4PSIzOSIgeT0iNSIgcng9IjIiLz4KICAgICAgICAgICAgPHJlY3Qgd2lkdGg9IjIyIiBoZWlnaHQ9IjIyIiByeD0iMiIvPgogICAgICAgIDwvZz4KICAgICAgICA8cGF0aCBzdHJva2U9IiNFNUU4RUMiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIHN0cm9rZS13aWR0aD0iLjciIGQ9Ik0uNSAzMS41aDE3MCIvPgogICAgPC9nPgo8L3N2Zz4K" width="118px" height="118px" style="margin-top:15px;">\t\t\t   <div class="col-12 rmpmW nodataTxt">No Data</div>\t\t   </div>\t   {{/if}}\t\t\t </div>\t\t  {{/if}}\t\t </div>     </div>\t\t</div>\t</li>\t{{/if}} \t<\/script>':"customTableTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> {{if msgData.message}} \t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}"\t\tclass="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon tablechart"> \t\t{{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t{{if msgData.icon}}<div aria-live="off" class="profile-photo extraBottom"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t{{if msgData.message[0].component.payload.text}}<div class="messageBubble tableChart">\t\t\t<span>{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}}</span>\t\t</div>{{/if}}\t\t<div class="tablechartDiv {{if msgData.message[0].component.payload.table_design && msgData.message[0].component.payload.table_design == "regular"}}regular{{else}}hide{{/if}}">\t\t\t<div style="overflow-x:auto; padding: 0 8px;">\t\t\t\t<table cellspacing="0" cellpadding="0">\t\t\t\t\t<tr class="headerTitle">\t\t\t\t\t\t{{each(key, tableHeader) msgData.message[0].component.payload.columns}} \t\t\t\t\t\t\t<th {{if tableHeader[1]}}style="text-align:${tableHeader[1]};"{{/if}}>${tableHeader[0]}</th>\t\t\t\t\t\t{{/each}} \t\t\t\t\t</tr>\t\t\t\t\t{{each(key, tableRow) msgData.message[0].component.payload.elements}} \t\t\t\t\t\t{{if tableRow.Values.length>1}}\t\t\t\t\t\t\t<tr {{if key > 4}}class="hide"{{/if}}>\t\t\t\t\t\t\t\t{{each(cellkey, cellValue) tableRow.Values}} \t\t\t\t\t\t\t\t\t<td {{if cellValue[1] == "button"}}class="clickableButton {{if cellValue[2].type == "web_url"}}clickableLink{{/if}}" type="${cellValue[2].type}" {{if cellValue[2].type == "web_url"}}url="${cellValue[2].url}"{{/if}} payload="${cellValue[2].payload}"{{/if}} {{if cellkey === tableRow.Values.length-1}}colspan="2"{{/if}} id=" {{if key == 0}} addTopBorder {{/if}}" {{if msgData.message[0].component.payload.columns[cellkey][1]}}style="text-align:${msgData.message[0].component.payload.columns[cellkey][1]};" {{/if}} title="${cellValue[0]}">${cellValue[0]}</td>\t\t\t\t\t\t\t\t{{/each}} \t\t\t\t\t\t\t</tr>\t\t\t\t\t\t{{/if}}\t\t\t\t\t{{/each}} \t\t\t\t</table>\t\t\t</div>\t\t\t{{if msgData.message[0].component.payload.elements.length > 5 && msgData.message[0].component.payload.table_design && msgData.message[0].component.payload.table_design == "regular"}}<div class="showMore">Show more</div>{{/if}}\t\t</div>\t\t <div class="accordionTable {{if msgData.message[0].component.payload.table_design && msgData.message[0].component.payload.table_design == "regular"}}hide{{else}}responsive{{/if}}">\t\t\t{{each(key, tableRow) msgData.message[0].component.payload.elements}} \t\t\t\t{{if key < 4}}\t\t\t\t\t<div class="accordionRow">\t\t\t\t\t\t{{each(cellkey, cellValue) tableRow.Values}} \t\t\t\t\t\t\t{{if cellkey < 2}}\t\t\t\t\t\t\t\t<div class="accordionCol">\t\t\t\t\t\t\t\t\t<div class="colTitle hideSdkEle">${msgData.message[0].component.payload.columns[cellkey][0]}</div>\t\t\t\t\t\t\t\t\t<div class="colVal">${cellValue} - edited</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{else}}\t\t\t\t\t\t\t\t<div class="accordionCol hideSdkEle">\t\t\t\t\t\t\t\t\t<div class="colTitle">${msgData.message[0].component.payload.columns[cellkey][0]}</div>\t\t\t\t\t\t\t\t\t<div class="colVal">${cellValue}</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t{{/each}} \t\t\t\t\t\t<span class="fa fa-caret-right tableBtn"></span>\t\t\t\t\t</div>\t\t\t\t{{/if}}\t\t\t{{/each}} \t\t\t<div class="showMore">Show more</div>\t\t</div>\t</li> {{/if}} </scipt>':"advancedListTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t{{if msgData.message}} \t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t<div class="advanced-list-wrapper {{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listViewType !="button"}}img-with-title with-accordion if-multiple-accordions-list{{/if}}{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listViewType ==="button"}}if-multiple-tags{{/if}} {{if msgData.message[0].component.payload.fromHistory}}fromHistory{{/if}}">\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.sliderView}}<button class="close-btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button> {{/if}}\t{{if msgData && msgData.createdOn}}<div class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t{{if msgData && msgData.icon}}<div class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.openPreviewModal && msgData.message[0].component.payload.seeMoreAction === "modal"}}\t\t<div class="preview-modal-header">\t\t\t<div class="preview-modal-title">{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.previewModalTitle}}${msgData.message[0].component.payload.previewModalTitle}{{else}}Upcoming meet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WxsPSIjMjAyMTI0Ii8+Cjwvc3ZnPgo="></button>\t\t</div>\t{{/if}}\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listViewType !="button"}}\t\t<div class="main-title-text-block">\t\t\t<div class="title-main {{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && !msgData.message[0].component.payload.isSortEnabled && !msgData.message[0].component.payload.isSearchEnabled && !msgData.message[0].component.payload.isButtonAvailable}}w-100{{/if}}">\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.title}}\t\t\t\t\t<div class="title-main {{if msgData.message[0].component.payload.description}}main-title{{/if}} {{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && !msgData.message[0].component.payload.isSortEnabled && !msgData.message[0].component.payload.isSearchEnabled && !msgData.message[0].component.payload.isButtonAvailable}}w-100{{/if}}">${msgData.message[0].component.payload.title}</div>\t\t\t\t{{/if}}\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.description}}\t\t\t\t\t<div class="desc-title">${msgData.message[0].component.payload.description}</div>\t\t\t\t{{/if}}\t\t\t</div>\t\t\t<div class="filter-sort-block">\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.isFilterEnabled && msgData.message[0].component.payload.filterOptions && msgData.message[0].component.payload.filterOptions.length}}\t\t\t\t\t\t<div class="filter-icon">\t\t\t\t\t\t\t<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAJCAYAAAACTR1pAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA7SURBVHgB1c+hEQAgDEPRZJMa9oLJYDHuuknAYLgKkP0qF/doViqojp+khjzxjCfrtrnPgVzxPkJrYFtkCRTHyEG/TwAAAABJRU5ErkJggg==">\t\t\t\t\t\t\t<ul  class="more-button-info hide" style="list-style:none;">\t\t\t\t\t\t\t\t<button class="close_btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t\t\t\t\t\t\t{{each(filterOptionKey, filterOption) msgData.message[0].component.payload.filterOptions}} \t\t\t\t\t\t\t\t\t\t\t<li><button class="button_" {{if filterOption && filterOption.type}}type="${filterOption.type}"{{/if}} value="${filterOption.payload}">{{if filterOption && filterOption.icon}}<img src="${filterOption.icon}">{{/if}} {{html helpers.convertMDtoHTML(filterOption.title, "bot")}}</button></li>\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t</div>\t\t\t\t{{/if}}\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.isSortEnabled}}\t\t\t\t\t\t<div class="sort-icon">\t\t\t\t\t\t\t<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADQSURBVHgBtVLLDcIwDH1B5d4RohbuHaHdACZoNwEmgA0YAZigK5QzH5kNyr3UuB9KKCISSLyDHb/4xdJzAAPa89faG83Qg67hT0zOaS9cKGcDRiClK2LQ+bh4tg1DgGM5bDthK0rBvJf6AiiSpuRd/IpBHRk7olPSUEzgW4QSV1jgEFEueW6SwpGklU04wI/4j1DrcfCJs09UvKx224l8PxYurbbqWIVcTMW/FKoM5RUtTmuwiirzehNVJiF/VLXjXERQFd+sieiQ4RvUH8XAHSO4SlLHWJY+AAAAAElFTkSuQmCC">\t\t\t\t\t\t</div>\t\t\t\t{{/if}}\t\t\t</div>\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.isSearchEnabled}}\t\t\t\t<div class="search-block">\t\t\t\t\t<img class="search_icon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAANCAYAAACZ3F9/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEtSURBVHgBlVJNTsJgFJxX6lYb40J3HwHX9gh6AvUEwglMVy7hBuIJwCN4AmDpirq2wDtClyZWPqf0hwqWhEmavm++N33zJhVUYIzxALcDR65grYFFSPpNNZpgC42N6NKHyBiQcwqmfL8D9gKCJ+/0zPdOjqdxHH8V/ZJPMhB3ximB6ny05cLAcZ/TWhfRPf5etobGtPuoQbqCabaW7LkuOGe9l0gHSEZ1QlWNYeWVuz+UQuDI0LGmwF7YECsGthF+xyQ9HAinmFT1X4NbDvgoDm7mAi/Mt8dq8p8iS5052KRZcFJeNtsznhSrJKjuy8TvKBqyDHUZ3ewI86YBmx7TJj7cHT7tMFEE5HsQG+pi3t0R5rbS344CMesp+hmWvLjj3FVXcACyjzYGwE//F5fNZ2bVtWT6AAAAAElFTkSuQmCC">\t\t\t\t\t<input type="text" class="input_text hide"  placeholder="Search">\t\t\t\t\t<img class="close_icon hide"  src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACuSURBVHgBnZLBDcMgDEWdsoBLF6AVvXeEbla6Ta7doJmgC/SQY08pGxAHJZGVGIiChLCNH/4yBqBlzPUGG9eUq6JRhQ9qDf7fNVnoYh901Iinl/K++yHqigIuB0cogKP9bNtvzSRYZ842jK+uoHhHObIUAU5Bijsk+81l41HfmTy5mlg5I+8AcjSIdkpqrMa6R24DhW7P0FJerttJqAgX/0mCh5ErQSt4mu09Q94DEcdaRcYvY1cAAAAASUVORK5CYII=">\t\t\t\t</div>\t\t\t{{else msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.isButtonAvailable}}\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.headerOptions && msgData.message[0].component.payload.headerOptions.length}}\t\t\t\t\t{{each(headerOptionKey,headerOption) msgData.message[0].component.payload.headerOptions}}\t\t\t\t\t{{if headerOption && headerOption.type === "button"}}\t\t\t\t\t\t\t<div class="if-button-mode">\t\t\t\t\t\t\t\t<button class="button-">${headerOption.label}</button>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{/if}}\t\t\t\t\t{{/each}}\t\t\t\t{{/if}}\t\t\t{{/if}}\t\t</div>\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.tableHeading}}\t\t<div class="small-title-sec">\t\t\t<div class="left-title">${msgData.message[0].component.payload.tableHeading.rightLabel}</div>\t\t\t<div class="right-title">${msgData.message[0].component.payload.tableHeading.leftLabel}</div>\t\t</div>\t\t{{/if}}\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listViewType == "nav" && msgData.message[0].component.payload.navHeaders && msgData.message[0].component.payload.navHeaders.length}}\t\t\t<div class="callendar-tabs">\t\t\t\t{{each(i,navheader) msgData.message[0].component.payload.navHeaders}}\t\t\t\t\t<div class="month-tab {{if i==0}}active-month{{/if}}" id="${navheader.id}">${navheader.title}</div>\t\t\t\t{{/each}}\t\t\t</div>\t\t{{/if}}\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listItems && msgData.message[0].component.payload.listItems.length}} \t\t\t{{each(key, listItem) msgData.message[0].component.payload.listItems}} \t\t\t   {{if  (msgData.message[0].component.payload.listItemDisplayCount &&  msgData.message[0].component.payload.listItemDisplayCount > key && (((!msgData.message[0].component.payload.seeMoreAction )||(msgData.message[0].component.payload.seeMoreAction && msgData.message[0].component.payload.seeMoreAction === "slider") || (msgData.message[0].component.payload.seeMoreAction && msgData.message[0].component.payload.seeMoreAction === "modal"))) || (!msgData.message[0].component.payload.listItemDisplayCount) || (msgData.message[0].component.payload.listItemDisplayCount && msgData.message[0].component.payload.seeMoreAction &&  msgData.message[0].component.payload.seeMoreAction === "inline")) }}\t\t\t\t\t<div class="multiple-accor-rows {{if msgData.message[0].component.payload.listItemDisplayCount &&  msgData.message[0].component.payload.listItemDisplayCount < key && msgData.message[0].component.payload.seeMoreAction === "inline"}}hide inline{{/if}} {{if listItem && listItem.type && listItem.type=== "view"}}if-template-view-type{{/if}}" id="{{if listItem && listItem.navId}}${listItem.navId}{{/if}}" type="${listItem.type}" actionObj="${JSON.stringify(listItem)}" {{if listItem.elementStyles}}style="{{each(styleKey,listItemStyle) listItem.elementStyles}}${styleKey}:${listItemStyle};{{/each}}"{{/if}}>\t\t\t\t\t\t<div class="accor-header-top">\t\t\t\t\t\t\t{{if listItem && listItem.icon || listItem.iconText}}\t\t\t\t\t\t\t\t<div class="img-block {{if listItem.iconShape}}${listItem.iconShape}{{/if}} {{if listItem.imageSize}}${listItem.imageSize}{{/if}}">\t\t\t\t\t\t\t\t\t{{if listItem && listItem.icon}}\t\t\t\t\t\t\t\t\t\t<img src="${listItem.icon}">\t\t\t\t\t\t\t\t\t{{else listItem && listItem.iconText}}\t\t\t\t\t\t\t\t\t\t<div class="icon-text" {{if listItem.iconStyles}}style="{{each(iconStyleKey,style) listItem.iconStyles}}${iconStyleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(listItem.iconText, "bot")}}</div>\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t<div class="content-block {{if !listItem.icon && !listItem.iconText}}pd-0{{/if}} {{if listItem && !listItem.headerOptions}}w-100{{/if}}">\t\t\t\t\t\t\t\t{{if listItem && listItem.title}}\t\t\t\t\t\t\t\t\t<div class="title-text" {{if listItem && listItem.titleStyles}}style="{{each(styleKey,style) listItem.titleStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(listItem.title, "bot")}}</div>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t{{if listItem && listItem.description}}\t\t\t\t\t\t\t\t\t<div class="title-desc {{if listItem && listItem.descriptionIcon}}desciptionIcon{{/if}} {{if listItem && listItem.descriptionIconAlignment && (listItem.descriptionIconAlignment==="right")}}if-icon-right{{else listItem && (listItem.descriptionIconAlignment && (listItem.descriptionIconAlignment==="left")) || !listItem.descriptionIconAlignment}}if-icon-left{{/if}}" {{if listItem && listItem.descriptionStyles}}style="{{each(styleKey,style) listItem.descriptionStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{if listItem && listItem.descriptionIcon}}<span class="desc-icon"><img  src="${listItem.descriptionIcon}"></span>{{/if}}{{html helpers.convertMDtoHTML(listItem.description, "bot")}}</div>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{if listItem && listItem.headerOptions && listItem.headerOptions.length}}\t\t\t\t\t\t\t\t{{each(i,headerOption) listItem.headerOptions}}\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.type == "text"}}\t\t\t\t\t\t\t\t\t\t<div class="btn_block">\t\t\t\t\t\t\t\t\t\t\t<div class="amout-text" {{if headerOption && headerOption.styles}}style="{{each(styleKey,style) headerOption.styles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(headerOption.value, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.type == "icon"}}\t\t\t\t\t\t\t\t\t\t<div class="action-icon-acc">\t\t\t\t\t\t\t\t\t\t\t<img src="${headerOption.icon}">\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.contenttype == "button"}}\t\t\t\t\t\t\t\t\t\t\t<div class="btn_block">\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.contenttype == "button" && headerOption.isStatus}}\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="btn_tag shorlisted" {{if headerOption && headerOption.buttonStyles}}style="{{each(styleKey,style) headerOption.buttonStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(headerOption.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.contenttype == "button" && !headerOption.isStatus}}\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="button_" type="${headerOption.type}" {{if headerOption.url}}url="${headerOption.url}"{{/if}} value="${headerOption.payload}" {{if headerOption && headerOption.buttonStyles}}style="{{each(styleKey,style) headerOption.buttonStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(headerOption.title, "bot")}}</button>\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.type == "dropdown"}}\t\t\t\t\t\t\t\t\t\t\t<div class="btn_block dropdown">\t\t\t\t\t\t\t\t\t\t\t\t<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjNweCIgaGVpZ2h0PSIxMHB4IiB2aWV3Qm94PSIwIDAgMyAxMCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4NCiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4NCiAgICA8dGl0bGU+ZWxsaXBzaXNHcmF5PC90aXRsZT4NCiAgICA8ZGV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uNjc4NTcyMzIgMCwyLjUgTDAsMS4yMTQyODU3MSBDMCwxLjAzNTcxMzM5IDAuMDYyNDk5Mzc1LDAuODgzOTI5MTk2IDAuMTg3NSwwLjc1ODkyODU3MSBDMC4zMTI1MDA2MjUsMC42MzM5Mjc5NDYgMC40NjQyODQ4MjEsMC41NzE0Mjg1NzEgMC42NDI4NTcxNDMsMC41NzE0Mjg1NzEgTDEuOTI4NTcxNDMsMC41NzE0Mjg1NzEgQzIuMTA3MTQzNzUsMC41NzE0Mjg1NzEgMi4yNTg5Mjc5NSwwLjYzMzkyNzk0NiAyLjM4MzkyODU3LDAuNzU4OTI4NTcxIEMyLjUwODkyOTIsMC44ODM5MjkxOTYgMi41NzE0Mjg1NywxLjAzNTcxMzM5IDIuNTcxNDI4NTcsMS4yMTQyODU3MSBaIiBpZD0iZWxsaXBzaXNHcmF5IiBmaWxsPSIjOEE5NTlGIj48L3BhdGg+DQogICAgPC9nPg0KPC9zdmc+">\t\t\t\t\t\t\t\t\t\t\t\t{{if dropdownOptions && dropdownOptions.length}}\t\t\t\t\t\t\t\t\t\t\t\t<ul  class="more-button-info hide" style="list-style:none;">\t\t\t\t\t\t\t\t\t\t\t\t<button class="close_btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(optionKeykey, option) headerOption.dropdownOptions}} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><button class="button_" {{if option && option.type}}type="${option.type}"{{/if}} {{if option.url}}url="${option.url}"{{/if}} value="${option.payload}">{{if option && option.icon}}<img src="${option.icon}">{{/if}} {{html helpers.convertMDtoHTML(option.title, "bot")}}</button></li>\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t</div>\t\t\t\t\t\t<div class="accor-inner-content" {{if listItem && listItem.isCollapsed}}style="display:block;"{{/if}}>\t\t\t\t\t\t\t{{if listItem && listItem.view == "default" && listItem.textInformation && listItem.textInformation.length}}\t\t\t\t\t\t\t{{each(i,textInfo) listItem.textInformation}}\t\t\t\t\t\t\t\t<div class="details-content {{if textInfo && textInfo.iconAlignment && (textInfo.iconAlignment==="right")}}if-icon-right{{else textInfo && (textInfo.iconAlignment && (textInfo.iconAlignment==="left")) || !textInfo.iconAlignment}}if-icon-left{{/if}}">\t\t\t\t\t\t\t\t\t{{if textInfo && textInfo.icon}}\t\t\t\t\t\t\t\t\t<span class="icon-img">\t\t\t\t\t\t\t\t\t\t<img src="${textInfo.icon}">\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t{{if textInfo && textInfo.title}}\t\t\t\t\t\t\t\t\t\t<span class="text-info" {{if textInfo && textInfo.styles}}style="{{each(styleKey,style) textInfo.styles}}${styleKey}:${style};{{/each}}"{{/if}} {{if textInfo && textInfo.type}}type="${textInfo.type}"{{/if}} {{if textInfo && textInfo.url}}url="${textInfo.url}"{{/if}}>{{html helpers.convertMDtoHTML(textInfo.title, "bot")}}</span>\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t{{if listItem && listItem.buttonHeader}}\t\t\t\t\t\t\t   <div class="button-header"><div class="button-header-title">{{html helpers.convertMDtoHTML(listItem.buttonHeader, "bot")}}</div></div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{if listItem && listItem.buttons && listItem.buttons.length}}\t\t\t\t\t\t\t\t<div class="inner-btns-acc {{if listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment == "center"}}if-btn-position-center{{else (listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment  == "left")}}if-btn-position-left{{else (listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment == "right")}}if-btn-position-right{{else (listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment  == "fullwidth")}}if-full-width-btn"{{/if}}">\t\t\t\t\t\t\t\t  {{if (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "dropdown") || (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "slider") || (listItem && !listItem.seeMoreAction)}}\t\t\t\t\t\t\t\t\t\t{{each(i,button) listItem.buttons}}\t\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.buttonsLayout && listItem.buttonsLayout.displayLimit && listItem.buttonsLayout.displayLimit.count && (i < listItem.buttonsLayout.displayLimit.count)) || (listItem && !listItem.buttonsLayout && i < 2) || (listItem && !listItem.buttonsLayout && listItem.buttons.length === 3)}}\t\t\t\t\t\t\t\t\t\t\t\t<button class="button_" type="${button.type}" title="${button.title}" value="${button.payload}"><img src="${button.icon}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t{{else (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "inline")}}\t\t\t\t\t\t\t\t\t\t{{each(i,button) listItem.buttons}}\t\t\t\t\t\t\t\t\t\t\t\t<button class="button_ {{if !((listItem && listItem.buttonsLayout && listItem.buttonsLayout.displayLimit && listItem.buttonsLayout.displayLimit.count && (i < listItem.buttonsLayout.displayLimit.count)) || (listItem && !listItem.buttonsLayout && i < 2) || (listItem && !listItem.buttonsLayout && listItem.buttons.length === 3))}} hide {{/if}}" type="${button.type}" title="${button.title}" value="${button.payload}"><img src="${button.icon}">${button.title}</button>\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.buttonsLayout && listItem.buttonsLayout.displayLimit && listItem.buttonsLayout.displayLimit.count && listItem.buttonsLayout.displayLimit.count < listItem.buttons.length) || (listItem && !listItem.buttonsLayout && listItem.buttons.length > 3)}}\t\t\t\t\t\t\t\t\t\t\t\t<button class=" more-btn" actionObj="${JSON.stringify(listItem)}"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAADCAYAAABI4YUMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACBSURBVHgBNYyxDcJQDET/OREwBhukA0pG+COwQaCnSCR6+BswAqwBTeYB4eOcKJbss89+xnLbtyl5dsfp++6GpFhszhmoWvJXPq/LI7zVrluTvCqHWsAtTDM/SI7RByDZS2McIdK1g54h1yq9OxszG+HpAAVgqgxl9tztbsZG7fMPUTQuCUr8UX4AAAAASUVORK5CYII=">More</button>\t\t\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "dropdown") || (listItem && !listItem.seeMoreAction)}}\t\t\t\t\t\t\t\t\t\t\t\t\t<ul  class="more-button-info" style="list-style:none;">\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="close_btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(key, button) listItem.buttons}} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if key >= 2}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><button class="button_" type="${button.type}" value="${button.payload}"><img src="${button.icon}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button></li>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{if listItem && (listItem.view == "table") && listItem.tableListData}}\t\t\t\t\t\t\t    {{if listItem.tableListData}}\t\t\t\t\t\t\t\t\t<div class="inner-acc-table-sec">\t\t\t\t\t\t\t\t\t\t{{each(i,list) listItem.tableListData}}\t\t\t\t\t\t\t\t\t\t  {{if list.rowData && list.rowData.length}}\t\t\t\t\t\t\t\t\t\t\t<div class="table-sec {{if listItem.type && listItem.type == "column"}}if-label-table-columns{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t{{each(key,row) list.rowData}}\t\t\t\t\t\t\t\t\t\t\t\t\t{{if ((list.rowData.length > 6) && (key < 6)) || (list.rowData.length === 6)}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if !row.icon}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="header-name">{{html helpers.convertMDtoHTML(row.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name">{{html helpers.convertMDtoHTML(row.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{else}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="labeld-img-block {{if row.iconSize}}${row.iconSize}{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${row.icon}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="label-content">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="header-name">{{html helpers.convertMDtoHTML(row.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name">{{html helpers.convertMDtoHTML(row.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t{{if (list.rowData.length > 6)}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table-more">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name"><span>More <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAALCAYAAACzkJeoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACDSURBVHgBdY7BDYMwDEW/E+612gWs0gE6Qtmkm7ACGzADI7ABG5AJIAMgQozEIUDewQf/Z/lDdso/brAcAZmWny/289QnoY8wPzqAmrNgdeQEe1h3Ap1LaD1QMSKgMpeKxtZxDsAyJJfyLlsE+iIslXPOUy7QHeUCpRD5/LBC4o8kUDaUO0VusgMydwAAAABJRU5ErkJggg=="></div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t {{/if}}\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{if listItem && listItem.view == "options" && listItem.optionsData && listItem.optionsData.length}}\t\t\t\t\t\t\t{{each(i,option) listItem.optionsData}}\t\t\t\t\t\t\t\t{{if option && option.type == "radio"}}\t\t\t\t\t\t\t\t\t<div class="kr_sg_radiobutton option">\t\t\t\t\t\t\t\t\t\t<input id="${key+""+i}" name="radio" class="radio-custom option-input" value="${option.value}" text = "${option.label}" type="radio">\t\t\t\t\t\t\t\t\t\t<label for="${key+""+i}" class="radio-custom-label">{{html helpers.convertMDtoHTML(option.label, "bot")}}</label>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t{{if option && option.type == "checkbox"}}\t\t\t\t\t\t\t\t<div class="kr_sg_checkbox option">\t\t\t\t\t\t\t\t\t<input id="${key+""+i}" class="checkbox-custom option-input" text = "${option.label}" value="${option.value}" type="checkbox">\t\t\t\t\t\t\t\t\t<label for="${key+""+i}" class="checkbox-custom-label">{{html helpers.convertMDtoHTML(option.label, "bot")}}</label>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t{{if listItem && listItem.buttons && listItem.buttons.length}}\t\t\t\t\t\t\t\t\t<div class="btn_group {{if listItem.buttonAligment && listItem.buttonAligment == "center"}}if-btn-position-center{{else (listItem.buttonAligment && listItem.buttonAligment == "left")}}if-btn-position-left{{else (listItem.buttonAligment && listItem.buttonAligment == "right")}}if-btn-position-right{{else (listItem.buttonAligment && listItem.buttonAligment == "fullWidth")}}if-full-width-btn"{{/if}}">\t\t\t\t\t\t\t\t\t\t{{each(i,button) listItem.buttons}}\t\t\t\t\t\t\t\t\t\t\t<button class="{{if button && button.btnType =="confirm"}}submitBtn p-button{{else button && button.btnType=="cancel"}}cancelBtn s-button{{/if}}" title="${button.title}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button>\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t{{/if}}\t\t\t{{/each}}\t\t\t{{if (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMore && msgData.message[0].component.payload.listItems.length > msgData.message[0].component.payload.listItemDisplayCount) || (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listItems.length > msgData.message[0].component.payload.listItemDisplayCount)}}\t\t\t\t<div class="see-more-data">\t\t\t\t    {{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && (!msgData.message[0].component.payload.seeMoreVisibity || (msgData.message[0].component.payload.seeMoreVisibity && msgData.message[0].component.payload.seeMoreVisibity === "link"))}}\t\t\t\t\t\t<span>{{if (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMoreTitle)}} ${msgData.message[0].component.payload.seeMoreTitle} {{else}}See more{{/if}} <img {{if msgData.message[0].component.payload.seeMoreIcon}} src="${msgData.message[0].component.payload.seeMoreIcon}" {{else}} src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAALCAYAAACzkJeoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACDSURBVHgBdY7BDYMwDEW/E+612gWs0gE6Qtmkm7ACGzADI7ABG5AJIAMgQozEIUDewQf/Z/lDdso/brAcAZmWny/289QnoY8wPzqAmrNgdeQEe1h3Ap1LaD1QMSKgMpeKxtZxDsAyJJfyLlsE+iIslXPOUy7QHeUCpRD5/LBC4o8kUDaUO0VusgMydwAAAABJRU5ErkJggg=="{{/if}}></span>\t\t\t\t\t{{else msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && (msgData.message[0].component.payload.seeMoreVisibity  && msgData.message[0].component.payload.seeMoreVisibity === "button")}}\t\t\t\t\t\t\t<button class="button_seemore" >{{if (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMoreIcon)}}<img src="${msgData.message[0].component.payload.seeMoreIcon}">{{/if}}{{if (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMoreTitle)}} ${msgData.message[0].component.payload.seeMoreTitle} {{else}}See more{{/if}}</button>\t\t\t\t\t{{/if}}\t\t\t\t</div>\t\t\t{{/if}}\t\t{{/if}}\t{{/if}}\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listViewType ==="button"}}\t\t<div class="content-sec">\t\t\t<div class="left-sec">\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.title}}\t\t\t\t\t<div class="main-title">{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.title, "bot")}}</div>\t\t\t\t{{/if}}\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.description}}\t\t\t\t\t<div class="desc-title">{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.description, "bot")}}</div>\t\t\t\t{{/if}}\t\t\t</div>\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.headerOptions}}\t\t\t<div class="right-sec">\t\t\t\t{{each(i,headerOption) msgData.message[0].component.payload.headerOptions}}\t\t\t\t\t{{if (headerOption.type == "button") || (headerOption.contenttype == "button")}}\t\t\t\t\t\t<button class="button-">{{html helpers.convertMDtoHTML(headerOption.title, "bot")}}</button>\t\t\t\t\t{{/if}}\t\t\t\t{{/each}}\t\t\t</div>\t\t\t{{/if}}\t\t</div>\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listViewType ==="button" && msgData.message[0].component.payload.listItems && msgData.message[0].component.payload.listItems.length}}\t\t\t<div class="tags-data">\t\t\t\t{{each(i,listItem) msgData.message[0].component.payload.listItems}}\t\t\t\t   {{if (msgData.message[0].component.payload.listItemDisplayCount && i < msgData.message[0].component.payload.listItemDisplayCount && ((msgData.message[0].component.payload.seeMoreAction === "slider") || (msgData.message[0].component.payload.seeMoreAction === "modal"))) || !msgData.message[0].component.payload.listItemDisplayCount || (msgData.message[0].component.payload.listItemDisplayCount && msgData.message[0].component.payload.seeMoreAction === "inline")}}\t\t\t\t\t\t<div class="tag-name {{if msgData.message[0].component.payload.listItemDisplayCount && i > msgData.message[0].component.payload.listItemDisplayCount && msgData.message[0].component.payload.seeMoreAction === "inline"}}hide inline{{/if}}" type="${listItem.type}" value="${listItem.payload}">${listItem.title}</div>\t\t\t\t\t{{/if}}\t\t\t\t{{/each}}\t\t\t\t{{if (msgData.message[0].component.payload.seeMore && msgData.message[0].component.payload.listItems.length > msgData.message[0].component.payload.listItemDisplayCount) || (msgData.message[0].component.payload.listItems.length > msgData.message[0].component.payload.listItemDisplayCount)}}\t\t\t\t\t<div class="more-tags see-more-data">${msgData.message[0].component.payload.listItems.length - msgData.message[0].component.payload.listItemDisplayCount}{{if (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMoreTitle)}} ${msgData.message[0].component.payload.seeMoreTitle} {{else}}More{{/if}} <img {{if msgData.message[0].component.payload.seeMoreIcon}} src="${msgData.message[0].component.payload.seeMoreIcon}" {{else}} src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAALCAYAAACzkJeoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACDSURBVHgBdY7BDYMwDEW/E+612gWs0gE6Qtmkm7ACGzADI7ABG5AJIAMgQozEIUDewQf/Z/lDdso/brAcAZmWny/289QnoY8wPzqAmrNgdeQEe1h3Ap1LaD1QMSKgMpeKxtZxDsAyJJfyLlsE+iIslXPOUy7QHeUCpRD5/LBC4o8kUDaUO0VusgMydwAAAABJRU5ErkJggg=="{{/if}}></div>\t\t\t\t{{/if}}\t\t\t</div>\t\t{{/if}}\t{{/if}}\t</div></li>\t{{/if}}\t</scipt>':"cardTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t{{if msgData.message}} \t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t\t{{if msgData.message && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.cards && msgData.message[0].component.payload.cards.length}}\t\t{{each(key,card) msgData.message[0].component.payload.cards}}\t\t<div class="card-template">\t\t\t<div class="card-body" {{if (card && card.cardStyles)}}style="{{each(styleKey,style) card.cardStyles}}${styleKey} : ${style};{{/each}}"{{/if}} {{if card.type}}type="${card.type}{{/if}}" {{if card.value}}value="${card.value}{{/if}}" actionObj="${JSON.stringify(card)}">\t\t\t\t{{if card && card.cardHeading && (!card.cardHeading.icon && !card.cardHeading.description)}}\t\t\t\t\t<div class="card-title" {{if card && card.cardHeading && card.cardHeading.headerStyles}}style="{{each(styleKey,style) card.cardHeading.headerStyles}}${styleKey} : ${style};{{/each}}"{{/if}}>${card.cardHeading.title}</div>\t\t\t\t\t{{else (card && card.cardHeading && (card.cardHeading.icon || card.cardHeading.description))}}\t\t\t\t\t\t<div class="card-title-block {{if card && !card.cardDescription}}left-border{{/if}}" {{if card && card.cardHeading && card.cardHeading.headerStyles}}style="{{each(styleKey,style) card.cardHeading.headerStyles}}${styleKey} : ${style};{{/each}}"{{/if}}>\t\t\t\t\t\t\t{{if card && card.cardHeading && (card.cardHeading.icon || card.cardHeading.iconText)}}\t\t\t\t\t\t\t\t<div class="card-block-img {{if card && card.cardHeading && card.cardHeading.iconSize}}${card.cardHeading.iconSize}{{/if}}">\t\t\t\t\t\t\t\t\t{{if  card && card.cardHeading && (card.cardHeading.icon)}}\t\t\t\t\t\t\t\t\t\t<img src="${card.cardHeading.icon}">\t\t\t\t\t\t\t\t\t{{else card && card.cardHeading && (card.cardHeading.iconText)}}\t\t\t\t\t\t\t\t\t\t<div class="icon-text" {{if  card && card.cardHeading &&  card.cardHeading.iconStyles}}style="{{each(iconStyleKey,style) card.cardHeading.iconStyles}}${iconStyleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(card.cardHeading.iconText, "bot")}}</div>\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t<div class="card-block" {{if (card && card.cardContentStyles && !card.cardDescription)}}style="{{each(styleKey,style) card.cardContentStyles}}${styleKey} : ${style};{{/each}}"{{/if}}>\t\t\t\t\t\t\t\t{{if card && card.cardHeading && card.cardHeading.title}}\t\t\t\t\t\t\t\t\t\t<div class="title-text {{if (card && card.cardHeading && card.cardHeading.headerExtraInfo)}}card-text-overflow {{/if}}" title="${card.cardHeading.title}">{{html helpers.convertMDtoHTML(card.cardHeading.title, "bot")}}</div>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t{{if card && card.cardHeading && card.cardHeading.description}}\t\t\t\t\t\t\t\t\t\t<div class="title-desc">{{html helpers.convertMDtoHTML(card.cardHeading.description, "bot")}}</div>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{if (card && card.cardHeading && card.cardHeading.headerExtraInfo)}}\t\t\t\t\t\t\t\t<span class="card-text-action" actionObj="${JSON.stringify(card.cardHeading.headerExtraInfo)}">{{if card && card.cardHeading && card.cardHeading.headerExtraInfo &&  card.cardHeading.headerExtraInfo.title}}<span class="card-action-data">${card.cardHeading.headerExtraInfo.title}</span>{{/if}}{{if (card && card.cardHeading && card.cardHeading.headerExtraInfo &&  card.cardHeading.headerExtraInfo.icon)}}<img src="${card.cardHeading.headerExtraInfo.icon}" class="icon"/>{{/if}}\t\t\t\t\t\t\t\t{{if (card && card.cardHeading && card.cardHeading.headerExtraInfo && card.cardHeading.headerExtraInfo.type === "dropdown")}}\t\t\t\t\t\t\t\t<ul  class="more-button-info hide" style="list-style:none;">\t\t\t\t\t\t\t\t\t\t<button class="close_btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t\t\t\t\t\t\t\t{{if (card && card.cardHeading && card.cardHeading.headerExtraInfo && card.cardHeading.headerExtraInfo.dropdownOptions && card.cardHeading.headerExtraInfo.dropdownOptions.length)}}\t\t\t\t\t\t\t\t\t\t{{each(optionKeykey, option) card.cardHeading.headerExtraInfo.dropdownOptions}} \t\t\t\t\t\t\t\t\t\t\t\t<li><button class="button_" value="${option.payload}" {{if option && option.type}}type="${option.type}"{{/if}}>{{if option && option.icon}}<img src="${option.icon}">{{/if}}{{html helpers.convertMDtoHTML(option.title, "bot")}}</button></li>\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t</div>\t\t\t\t{{/if}}\t\t\t\t{{if card && card.cardDescription && card.cardDescription.length}}\t\t\t\t\t<div class="card-data" {{if card && card.cardContentStyles }}style="{{each(styleKey,style) card.cardContentStyles}}${styleKey} : ${style};{{/each}}"{{/if}}>\t\t\t\t\t\t<div class="card-data-list {{if (card && card.cardType == "list")}}card-display-flex{{/if}}">\t\t\t\t\t\t{{each(i,desc) card.cardDescription}}\t\t\t\t\t\t   {{if ((card && card.cardType != "list") || card && !card.cardHeading)}}\t\t\t\t\t\t\t<div class="card-text">\t\t\t\t\t\t\t\t{{if desc && desc.icon}}\t\t\t\t\t\t\t\t\t<span class="card-text-icon {{if desc && desc.iconAlignment && (desc.iconAlignment==="right")}}if-icon-right{{else desc && (desc.iconAlignment && (desc.iconAlignment==="left")) || !desc.iconAlignment}}if-icon-left{{/if}}"><img class="icon-img" src="${desc.icon}" /></span>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t{{if desc && desc.title}}\t\t\t\t\t\t\t\t\t<span class="card-text-desc" {{if desc.type}}type="${desc.type}"{{/if}} title="${desc.title}" {{if desc.textStyles}}style="{{each(key,style) desc.textStyles}}${key}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(desc.title, "bot")}}</span>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{else (card && card.cardType == "list")}}\t\t\t\t\t\t\t\t<div class="card-block-text">\t\t\t\t\t\t\t\t\t{{if desc && desc.description}}\t\t\t\t\t\t\t\t\t\t<div class="title-desc">{{html helpers.convertMDtoHTML(desc.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t{{if desc && desc.title}}\t\t\t\t\t\t\t\t\t\t<div class="title-text" title="${desc.title}">{{html helpers.convertMDtoHTML(desc.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t{{if false}}\t\t\t\t\t\t<div class="card-text icon"><span class="card-text-action"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAHCAYAAAA8sqwkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABdSURBVHgBjctNDYAwDIbhNkUAoKAZCOCIHBwhASzgCAfDQelhh2Xrfr5Tkz4vgDF2y8VuPa0fWRgEDz33cZ748/4pBhEOwy2NqIztiOo4j7CN407uQTGDyNsVqP0BaHUk0IS2sYcAAAAASUVORK5CYII="></span></div>\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t{{if card && card.buttons && card.buttons.length}}\t\t\t\t\t\t<div class="card-data-btn btn-info">\t\t\t\t\t\t   {{each(buttonKey,button) card.buttons}}\t\t\t\t\t\t\t\t<button class="card-btn" type="${button.type}" {{if button && button.buttonStyles }}style="{{each(styleKey,style) button.buttonStyles}}${styleKey} : ${style};{{/each}}"{{/if}} title="${button.title}" value="${button.payload}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button>\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t</div>\t\t\t\t\t{{/if}}\t\t\t\t{{/if}}\t\t\t</div>\t\t</div>\t\t{{/each}}\t\t{{/if}}\t</li>\t{{/if}}\t<\/script>':"proposeTimes"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">\t{{if msgData.message}}\t\t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t\t   <div class="propose-template">\t\t   {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t   {{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t   {{if msgData.message && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.title}}<div class="propose-times-title"> {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.title, "bot")}}</div>{{/if}}\t\t\t{{if msgData.message && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.elements && msgData.message[0].component.payload.elements.length}}\t\t\t\t<div class="propse-times-elements">\t\t\t\t\t{{each(key,element) msgData.message[0].component.payload.elements}}\t\t\t\t\t\t<div class="element" type="${element.type}" value="${element.payload}">\t\t\t\t\t\t{{html helpers.convertMDtoHTML(element.title, "bot")}}\t\t\t\t\t\t</div>\t\t\t\t\t{{/each}}\t\t\t\t</div>\t\t\t{{/if}}\t\t\t{{if  msgData.message && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.buttons && msgData.message[0].component.payload.buttons.length}}\t\t\t\t<div class="action-buttons">\t\t\t\t\t{{each(key,button) msgData.message[0].component.payload.buttons}}\t\t\t\t\t\t<div class="propoese-element-button {{if button.class}}${button.class}{{/if}}" type="${button.type}" value="${button.payload}">\t\t\t\t\t\t{{html helpers.convertMDtoHTML(button.title, "bot")}}\t\t\t\t\t\t</div>\t\t\t\t\t{{/each}}\t\t\t\t</div>\t\t\t{{/if}}\t\t\t</div>\t\t</li>\t{{/if}}\t<\/script>':"proposeActionSheetTemplate"===t?'<script id="chat-window-listTemplate" type="text/x-jqury-tmpl">\t<div class="propose-action-sheet-template">\t    <div class="heading-title">Other Options</div>\t\t<button class="close-button" title="Close"><img src="data:image/svg+xml;base64,           PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t{{if msgData.message && msgData.message[0].component.payload && msgData.message[0].component.payload.moreOptions && msgData.message[0].component.payload.moreOptions.length}}\t\t\t<div class="header-tabs">\t\t\t    {{each(i, nav) msgData.message[0].component.payload.moreOptions}}\t\t\t\t    <div class="tab-title" id="${nav.id}" actionObj="${JSON.stringify(nav)}">\t\t\t\t\t    ${nav.title}\t\t\t\t\t</div>\t\t\t\t{{/each}}\t\t\t</div>\t\t\t<div class="tab-container">\t\t\t\t{{if data}}\t\t\t\t   <div class="tab-data id="${data.id}">\t\t\t\t\t\t{{if data && data.description}}\t\t\t\t\t\t\t${data.description}\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t<div class="tab-content">\t\t\t\t\t\t{{if data && data.elements && data.elements.length}}\t\t\t\t\t\t\t<div class="tab-elements">\t\t\t\t\t\t\t\t{{each(elementKey,element) data.elements}}\t\t\t\t\t\t\t\t\t<div class="kr_sg_checkbox option">\t\t\t\t\t\t\t\t\t\t<input id="${elementKey}" class="checkbox-custom option-input" text = "${element.title}" value="${element.value}" type="checkbox">\t\t\t\t\t\t\t\t\t\t<label for="${elementKey}" class="checkbox-custom-label">{{html helpers.convertMDtoHTML(element.title, "bot")}}</label>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t{{if data && data.buttons && data.buttons.length}}\t\t\t\t\t\t\t\t<div class="action-buttons">\t\t\t\t\t\t\t\t\t{{each(buttonKey,button) data.buttons}}\t\t\t\t\t\t\t\t\t\t<div class="propoese-element-button {{if button.class}}${button.class}{{/if}}" type="${button.type}" title="${button.title}" value="${button.payload}">\t\t\t\t\t\t\t\t\t\t{{html helpers.convertMDtoHTML(button.title, "bot")}}\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t{{/if}}\t\t\t</div>\t\t{{/if}}\t</div>\t<\/script>':"default_card_template"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl">\t{{if msgData.message}}\t\t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t\t   <div class="default-card-template">\t\t   {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t   {{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t\t<div class="main-title-text-block">\t\t\t\t \t<div class="title-main">\t\t\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.mainTitle}}\t\t\t\t\t\t\t\t<div class="title-main">{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.mainTitle, "bot")}}</div>\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.description}}\t\t\t\t\t\t\t\t<div class="desc-title">{{html helpers.convertMDtoHTML(msgData.message[0].component.payload.description, "bot")}}</div>\t\t\t\t\t\t{{/if}}\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.elements && msgData.message[0].component.payload.elements.length}}\t\t\t\t    <div class="default-card-elements">\t\t\t\t\t\t{{each(i,listItem) msgData.message[0].component.payload.elements}}\t\t\t\t\t\t  <div class="element-content">\t\t\t\t\t\t\t\t<div class="element-header">\t\t\t\t\t\t\t\t\t{{if listItem && listItem.icon || listItem.iconText}}\t\t\t\t\t\t\t\t\t\t<div class="img-block {{if listItem.iconShape}}${listItem.iconShape}{{/if}} {{if listItem.imageSize}}${listItem.imageSize}{{/if}}">\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.icon}}\t\t\t\t\t\t\t\t\t\t\t\t<img src="${listItem.icon}">\t\t\t\t\t\t\t\t\t\t\t{{else listItem && listItem.iconText}}\t\t\t\t\t\t\t\t\t\t\t\t<div class="icon-text" {{if listItem.iconStyles}}style="{{each(iconStyleKey,style) listItem.iconStyles}}${iconStyleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(listItem.iconText, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t<div class="content-block {{if (listItem && listItem.icon) || (listItem && listItem.iconText) }}pdl-15{{/if}}">\t\t\t\t\t\t\t\t\t\t{{if listItem.title}}\t\t\t\t\t\t\t\t\t\t\t<div class="title-text" {{if listItem && listItem.titleStyles}}style="{{each(styleKey,style) listItem.titleStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(listItem.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{if listItem.description}}\t\t\t\t\t\t\t\t\t\t\t<div class="title-desc" {{if listItem && listItem.descriptionStyles}}style="{{each(styleKey,style) listItem.descriptionStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(listItem.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t{{if listItem.headerOptions && listItem.headerOptions.length}}\t\t\t\t\t\t\t\t\t{{each(i,headerOption) listItem.headerOptions}}\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.type == "text"}}\t\t\t\t\t\t\t\t\t\t\t\t<div class="btn_block">\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="amout-text" {{if headerOption && headerOption.styles}}style="{{each(styleKey,style) headerOption.styles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(headerOption.value, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.type == "icon"}}\t\t\t\t\t\t\t\t\t\t\t\t<div class="action-icon-acc">\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${headerOption.icon}">\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.contenttype == "button"}}\t\t\t\t\t\t\t\t\t\t\t\t<div class="btn_block">\t\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.contenttype == "button" && headerOption.isStatus}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="btn_tag shorlisted" {{if headerOption && headerOption.buttonStyles}}style="{{each(styleKey,style) headerOption.buttonStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(headerOption.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.contenttype == "button" && !headerOption.isStatus}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="button_" type="${headerOption.type}" value="${headerOption.payload}" {{if headerOption && headerOption.buttonStyles}}style="{{each(styleKey,style) headerOption.buttonStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(headerOption.title, "bot")}}</button>\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.type ==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downOptions.length}}\t\t\t\t\t\t\t\t\t\t\t\t\t<ul  class="more-button-info hide" style="list-style:none;">\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="close_btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(optionKeykey, option) headerOption.dropdownOptions}} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><button class="button_" {{if option && option.type}}type="${option.type}"{{/if}} value="${option.payload}">{{if option && option.icon}}<img src="${option.icon}">{{/if}} {{html helpers.convertMDtoHTML(option.title, "bot")}}</button></li>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t </div>\t\t\t\t\t\t\t\t <div class="accor-inner-content">\t\t\t\t\t\t\t\t\t{{if listItem && listItem.view == "default" && listItem.textInformation && listItem.textInformation.length}}\t\t\t\t\t\t\t\t\t\t{{each(i,textInfo) listItem.textInformation}}\t\t\t\t\t\t\t\t\t\t\t<div class="details-content {{if textInfo && textInfo.iconAlignment && (textInfo.iconAlignment==="right")}}if-icon-right{{else textInfo && (textInfo.iconAlignment && (textInfo.iconAlignment==="left")) || !textInfo.iconAlignment}}if-icon-left{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t{{if textInfo && textInfo.icon}}\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="icon-img">\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${textInfo.icon}">\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t{{if textInfo && textInfo.title}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="text-info" {{if textInfo && textInfo.styles}}style="{{each(styleKey,style) textInfo.styles}}${styleKey}:${style};{{/each}}"{{/if}} {{if textInfo && textInfo.type}}type="${textInfo.type}"{{/if}} {{if textInfo && textInfo.url}}url="${textInfo.url}"{{/if}}>{{html helpers.convertMDtoHTML(textInfo.title, "bot")}}</span>\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{if listItem && listItem.buttonHeader}}\t\t\t\t\t\t\t   <div class="button-header"><div class="button-header-title">{{html helpers.convertMDtoHTML(listItem.buttonHeader, "bot")}}</div></div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{if listItem && listItem.buttons && listItem.buttons.length}}\t\t\t\t\t\t\t\t<div class="inner-btns-acc {{if listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment == "center"}}if-btn-position-center{{else (listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment  == "left")}}if-btn-position-left{{else (listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment == "right")}}if-btn-position-right{{else (listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment  == "fullwidth")}}if-full-width-btn"{{/if}}">\t\t\t\t\t\t\t\t  {{if (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "dropdown") || (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "slider") || (listItem && !listItem.seeMoreAction)}}\t\t\t\t\t\t\t\t\t\t{{each(i,button) listItem.buttons}}\t\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.buttonsLayout && listItem.buttonsLayout.displayLimit && listItem.buttonsLayout.displayLimit.count && (i < listItem.buttonsLayout.displayLimit.count)) || (listItem && !listItem.buttonsLayout && i < 2) || (listItem && !listItem.buttonsLayout && listItem.buttons.length === 3)}}\t\t\t\t\t\t\t\t\t\t\t\t<button class="button_"  type="${button.type}" title="${button.title}" {{if button && button.buttonStyles }}style="{{each(styleKey,style) button.buttonStyles}}${styleKey} : ${style};{{/each}}"{{/if}} value="${button.payload}"><img src="${button.icon}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t{{else (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "inline")}}\t\t\t\t\t\t\t\t\t\t{{each(i,button) listItem.buttons}}\t\t\t\t\t\t\t\t\t\t\t\t<button class="button_ {{if !((listItem && listItem.buttonsLayout && listItem.buttonsLayout.displayLimit && listItem.buttonsLayout.displayLimit.count && (i < listItem.buttonsLayout.displayLimit.count)) || (listItem && !listItem.buttonsLayout && i < 2) || (listItem && !listItem.buttonsLayout && listItem.buttons.length === 3))}} hide {{/if}}" type="${button.type}" title="${button.title}" value="${button.payload}" {{if button && button.buttonStyles }}style="{{each(styleKey,style) button.buttonStyles}}${styleKey} : ${style};{{/each}}"{{/if}}><img src="${button.icon}">${button.title}</button>\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.buttonsLayout && listItem.buttonsLayout.displayLimit && listItem.buttonsLayout.displayLimit.count && listItem.buttonsLayout.displayLimit.count < listItem.buttons.length) || (listItem && !listItem.buttonsLayout && listItem.buttons.length > 3)}}\t\t\t\t\t\t\t\t\t\t\t\t<button class=" more-btn" actionObj="${JSON.stringify(listItem)}"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAADCAYAAABI4YUMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACBSURBVHgBNYyxDcJQDET/OREwBhukA0pG+COwQaCnSCR6+BswAqwBTeYB4eOcKJbss89+xnLbtyl5dsfp++6GpFhszhmoWvJXPq/LI7zVrluTvCqHWsAtTDM/SI7RByDZS2McIdK1g54h1yq9OxszG+HpAAVgqgxl9tztbsZG7fMPUTQuCUr8UX4AAAAASUVORK5CYII=">More</button>\t\t\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "dropdown") || (listItem && !listItem.seeMoreAction)}}\t\t\t\t\t\t\t\t\t\t\t\t\t<ul  class="more-button-info" style="list-style:none;">\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="close_btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(key, button) listItem.buttons}} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if key >= 2}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><button class="button_" type="${button.type}" {{if button && button.buttonStyles }}style="{{each(styleKey,style) button.buttonStyles}}${styleKey} : ${style};{{/each}}"{{/if}} value="${button.payload}"><img src="${button.icon}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button></li>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t </div>\t\t\t\t\t\t  </div>\t\t\t\t\t\t{{/each}}\t\t\t\t\t</div>\t\t\t\t{{/if}}\t\t   </div>\t\t</li>\t{{/if}}\t<\/script>':"advancedMultiListTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t{{if msgData.message}} \t\t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t\t<div class="advanced-multi-list-wrapper {{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listViewType !="button"}}img-with-title with-accordion if-multiple-accordions-list{{/if}}{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listViewType ==="button"}}if-multiple-tags{{/if}} {{if msgData.message[0].component.payload.fromHistory}}fromHistory{{/if}}">\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.sliderView}}<button class="close-btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button> {{/if}}\t\t{{if msgData && msgData.createdOn}}<div class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t{{if msgData && msgData.icon}}<div class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listViewType !="button"}}\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.openPreviewModal && msgData.message[0].component.payload.seeMoreAction === "modal"}}\t\t \t<div class="preview-modal-header">\t\t\t <div class="preview-modal-title">{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.previewModalTitle}}${msgData.message[0].component.payload.previewModalTitle}{{else}}Upcoming meetings{{/if}}</div>\t\t\t <button class="advancedlist-template-close" title="Close"><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS43NjU5IDEuNjUwNTlDMTEuOTkgMS4zNzg2OCAxMS45NjE2IDAuOTYxNTk0IDExLjY5MDMgMC42OTAzMjdDMTEuNDAzMSAwLjQwMzEwMyAxMC45NTI0IDAuMzg4MTI1IDEwLjY4MzcgMC42NTY4NzJMNiA1LjM0MDUyTDEuMzE2MzUgMC42NTY4NzJMMS4yNjk5MyAwLjYxNDcwNkMwLjk5ODAyOCAwLjM5MDYyOSAwLjU4MDk0IDAuNDE5MDYgMC4zMDk2NzMgMC42OTAzMjdDMC4wMjI0NDg4IDAuOTc3NTUxIDAuMDA3NDcwNTcgMS40MjgyNiAwLjI3NjIxOCAxLjY5N0w0Ljk1OTg3IDYuMzgwNjVMMC4zNDMxNjQgMTAuOTk3NEwwLjMwMDk5OCAxMS4wNDM4QzAuMDc2OTIwNyAxMS4zMTU3IDAuMTA1MzUxIDExLjczMjggMC4zNzY2MTkgMTIuMDA0QzAuNjYzODQzIDEyLjI5MTMgMS4xMTQ1NSAxMi4zMDYyIDEuMzgzMyAxMi4wMzc1TDYgNy40MjA3OUwxMC42MTY3IDEyLjAzNzVMMTAuNjYzMSAxMi4wNzk3QzEwLjkzNSAxMi4zMDM3IDExLjM1MjEgMTIuMjc1MyAxMS42MjM0IDEyLjAwNEMxMS45MTA2IDExLjcxNjggMTEuOTI1NiAxMS4yNjYxIDExLjY1NjggMTAuOTk3NEw3LjA0MDEzIDYuMzgwNjVMMTEuNzIzOCAxLjY5N0wxMS43NjU5IDEuNjUwNTlaIiBmaWxsPSIjMjAyMTI0Ii8+Cjwvc3ZnPgo="></button>\t\t\t</div>\t\t{{/if}}\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listItems && msgData.message[0].component.payload.listItems.length}} \t\t\t   {{each(parentKey,parentListItem)  msgData.message[0].component.payload.listItems}}\t\t\t   {{if  (msgData.message[0].component.payload.listItemDisplayCount &&  msgData.message[0].component.payload.listItemDisplayCount > parentKey && (((!msgData.message[0].component.payload.seeMoreAction )||(msgData.message[0].component.payload.seeMoreAction && msgData.message[0].component.payload.seeMoreAction === "slider") || (msgData.message[0].component.payload.seeMoreAction && msgData.message[0].component.payload.seeMoreAction === "modal"))) || (!msgData.message[0].component.payload.listItemDisplayCount) || (msgData.message[0].component.payload.listItemDisplayCount && msgData.message[0].component.payload.seeMoreAction &&  msgData.message[0].component.payload.seeMoreAction === "inline")) }}\t\t\t\t\t<div class="advance-multi-list-parent {{if msgData.message[0].component.payload.listItemDisplayCount-1 &&  msgData.message[0].component.payload.listItemDisplayCount-1 < parentKey && msgData.message[0].component.payload.seeMoreAction === "inline"}}hide inline{{/if}}">\t\t\t\t\t\t\t\t\t{{if parentListItem && parentListItem.title}}<div class="main-title" {{if parentListItem && parentListItem.titleStyles}}style="{{each(styleKey,style) parentListItem.titleStyles}}${styleKey}:${style};{{/each}}"{{/if}}>${parentListItem.title}</div>{{/if}}\t\t\t\t\t\t\t\t\t{{if parentListItem && parentListItem.description}}<div class="main-title-desc" {{if parentListItem && parentListItem.descriptionStyles}}style="{{each(styleKey,style) parentListItem.descriptionStyles}}${styleKey}:${style};{{/each}}"{{/if}}>${parentListItem.description}</div>{{/if}}\t\t\t\t\t\t\t\t\t{{if parentListItem && parentListItem.subListItems && parentListItem.subListItems.length}}\t\t\t\t\t\t\t\t\t\t{{each(key, listItem) parentListItem.subListItems}} \t\t\t\t\t\t\t\t\t\t    <div class="multi-list-subItems">\t\t\t\t\t\t\t\t\t\t\t\t<div class="multiple-accor-rows {{if listItem && listItem.borderAvailable}}pl-14{{/if}} {{if listItem && listItem.type && listItem.type=== "view"}}if-template-view-type{{/if}}" id="{{if listItem && listItem.navId}}${listItem.navId}{{/if}}"  type="${listItem.type}" actionObj="${JSON.stringify(listItem)}" {{if listItem.elementStyles}}style="{{each(styleKey,listItemStyle) listItem.elementStyles}}${styleKey}:${listItemStyle};{{/each}}"{{/if}}>\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="accor-header-top">\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.borderAvailable}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="border-div" {{if listItem && listItem.borderStyles}}style="{{each(styleKey,style) listItem.borderStyles}}${styleKey}:${style};{{/each}}"{{/if}}></div>\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.icon || listItem.iconText}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="img-block {{if listItem.iconShape}}${listItem.iconShape}{{/if}} {{if listItem.imageSize}}${listItem.imageSize}{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.icon}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${listItem.icon}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{else listItem && listItem.iconText}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="icon-text" {{if listItem.iconStyles}}style="{{each(iconStyleKey,style) listItem.iconStyles}}${iconStyleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(listItem.iconText, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="content-block {{if !listItem.icon && !listItem.iconText}}pd-0{{/if}}{{if listItem && ((!listItem.icon && !listItem.iconText) || !listItem.headerOptions)}} w-100{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.title}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-text" {{if listItem && listItem.titleStyles}}style="{{each(styleKey,style) listItem.titleStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(listItem.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.description}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-desc {{if listItem && listItem.descriptionIcon}}desciptionIcon {{/if}}{{if listItem && listItem.descriptionIconAlignment && (listItem.descriptionIconAlignment==="right")}}if-icon-right{{else listItem && (listItem.descriptionIconAlignment && (listItem.descriptionIconAlignment==="left")) || !listItem.descriptionIconAlignment}}if-icon-left{{/if}}" {{if listItem && listItem.descriptionStyles}}style="{{each(styleKey,style) listItem.descriptionStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{if listItem && listItem.descriptionIcon}}<span class="desc-icon"><img  src="${listItem.descriptionIcon}"></span>{{/if}}{{html helpers.convertMDtoHTML(listItem.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.headerOptions && listItem.headerOptions.length}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(i,headerOption) listItem.headerOptions}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.type == "text"}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="btn_block">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="amout-text" {{if headerOption && headerOption.styles}}style="{{each(styleKey,style) headerOption.styles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(headerOption.value, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.type == "icon"}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="action-icon-acc">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${headerOption.icon}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.contenttype == "button"}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="btn_block">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.contenttype == "button" && headerOption.isStatus}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="btn_tag shorlisted" {{if headerOption && headerOption.buttonStyles}}style="{{each(styleKey,style) headerOption.buttonStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(headerOption.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.contenttype == "button" && !headerOption.isStatus}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="button_" type="${headerOption.type}" value="${headerOption.payload}" {{if headerOption && headerOption.buttonStyles}}style="{{each(styleKey,style) headerOption.buttonStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{html helpers.convertMDtoHTML(headerOption.title, "bot")}}</button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if headerOption && headerOption.type == "dropdown"}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="btn_block dropdown">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjNweCIgaGVpZ2h0PSIxMHB4IiB2aWV3Qm94PSIwIDAgMyAxMCIgdmVyc2lvbj0iMS4xIiB4bWxucz0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sMi45NTUzNTcxNCBDMi4yNTg5Mjc5NSwzLjA4MDM1Nzc3IDIuMTA3MTQzNzUsMy4xNDI4NTcxNCAxLjkyODU3MTQzLDMuMTQyODU3MTQgTDAuNjQyODU3MTQzLDMuMTQyODU3MTQgQzAuNDY0Mjg0ODIxLDMuMTQyODU3MTQgMC4zMTI1MDA2MjUsMy4wODAzNTc3NyAwLjE4NzUsMi45NTUzNTcxNCBDMC4wNjI0OTkzNzUsMi44MzAzNTY1MiAwLDIuNjc4NTcyMzIgMCwyLjUgTDAsMS4yMTQyODU3MSBDMCwxLjAzNTcxMzM5IDAuMDYyNDk5Mzc1LDAuODgzOTI5MTk2IDAuMTg3NSwwLjc1ODkyODU3MSBDMC4zMTI1MDA2MjUsMC42MzM5Mjc5NDYgMC40NjQyODQ4MjEsMC41NzE0Mjg1NzEgMC42NDI4NTcxNDMsMC41NzE0Mjg1NzEgTDEuOTI4NTcxNDMsMC41NzE0Mjg1NzEgQzIuMTA3MTQzNzUsMC41NzE0Mjg1NzEgMi4yNTg5Mjc5NSwwLjYzMzkyNzk0NiAyLjM4MzkyODU3LDAuNzU4OTI4NTcxIEMyLjUwODkyOTIsMC44ODM5MjkxOTYgMi41NzE0Mjg1NywxLjAzNTcxMzM5IDIuNTcxNDI4NTcsMS4yMTQyODU3MSBaIiBpZD0iZWxsaXBzaXNHcmF5IiBmaWxsPSIjOEE5NTlGIj48L3BhdGg+DQogICAgPC9nPg0KPC9zdmc+">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if dropdownOptions && dropdownOptions.length}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul  class="more-button-info hide" style="list-style:none;">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="close_btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(optionKeykey, option) headerOption.dropdownOptions}} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><button class="button_" {{if option && option.type}}type="${option.type}"{{/if}} value="${option.payload}">{{if option && option.icon}}<img src="${option.icon}">{{/if}} {{html helpers.convertMDtoHTML(option.title, "bot")}}</button></li>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="accor-inner-content" {{if listItem && listItem.isCollapsed}}style="display:block;"{{/if}}>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.view == "default" && listItem.textInformation && listItem.textInformation.length}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(i,textInfo) listItem.textInformation}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="details-content {{if textInfo && textInfo.iconAlignment && (textInfo.iconAlignment==="right")}}if-icon-right{{else textInfo && (textInfo.iconAlignment && (textInfo.iconAlignment==="left")) || !textInfo.iconAlignment}}if-icon-left{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if textInfo && textInfo.icon}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="icon-img">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${textInfo.icon}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if textInfo && textInfo.title}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="text-info" {{if textInfo && textInfo.styles}}style="{{each(styleKey,style) textInfo.styles}}${styleKey}:${style};{{/each}}"{{/if}} {{if textInfo && textInfo.type}}type="${textInfo.type}"{{/if}} {{if textInfo && textInfo.url}}url="${textInfo.url}"{{/if}}>{{html helpers.convertMDtoHTML(textInfo.title, "bot")}}</span>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.buttonHeader}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="button-header"><div class="button-header-title">{{html helpers.convertMDtoHTML(listItem.buttonHeader, "bot")}}</div></div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.buttons && listItem.buttons.length}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="inner-btns-acc {{if listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment == "center"}}if-btn-position-center{{else (listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment  == "left")}}if-btn-position-left{{else (listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment == "right")}}if-btn-position-right{{else (listItem.buttonsLayout && listItem.buttonsLayout.buttonAligment && listItem.buttonsLayout.buttonAligment  == "fullwidth")}}if-full-width-btn"{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "dropdown") || (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "slider") || (listItem && !listItem.seeMoreAction)}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(i,button) listItem.buttons}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.buttonsLayout && listItem.buttonsLayout.displayLimit && listItem.buttonsLayout.displayLimit.count && (i < listItem.buttonsLayout.displayLimit.count)) || (listItem && !listItem.buttonsLayout && i < 2) || (listItem && !listItem.buttonsLayout && listItem.buttons.length === 3)}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="button_" type="${button.type}" {{if button && button.url}}url="${button.url}"{{/if}} title="${button.title}" value="${button.payload}"  {{if button && button.buttonStyles}}style="{{each(styleKey,style) button.buttonStyles}}${styleKey}:${style};{{/each}}"{{/if}}><img src="${button.icon}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{else (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "inline")}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(i,button) listItem.buttons}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="button_ {{if button && button.buttonStyles}}style="{{each(styleKey,style) button.buttonStyles}}${styleKey}:${style};{{/each}}"{{/if}} {{if !((listItem && listItem.buttonsLayout && listItem.buttonsLayout.displayLimit && listItem.buttonsLayout.displayLimit.count && (i < listItem.buttonsLayout.displayLimit.count)) || (listItem && !listItem.buttonsLayout && i < 2) || (listItem && !listItem.buttonsLayout && listItem.buttons.length === 3))}} hide {{/if}}" type="${button.type}" {{if button.url}}url="${button.url}"{{/if}} title="${button.title}" value="${button.payload}"><img src="${button.icon}">${button.title}</button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.buttonsLayout && listItem.buttonsLayout.displayLimit && listItem.buttonsLayout.displayLimit.count && listItem.buttonsLayout.displayLimit.count < listItem.buttons.length) || (listItem && !listItem.buttonsLayout && listItem.buttons.length > 3)}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=" more-btn" actionObj="${JSON.stringify(listItem)}"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAADCAYAAABI4YUMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACBSURBVHgBNYyxDcJQDET/OREwBhukA0pG+COwQaCnSCR6+BswAqwBTeYB4eOcKJbss89+xnLbtyl5dsfp++6GpFhszhmoWvJXPq/LI7zVrluTvCqHWsAtTDM/SI7RByDZS2McIdK1g54h1yq9OxszG+HpAAVgqgxl9tztbsZG7fMPUTQuCUr8UX4AAAAASUVORK5CYII=">More</button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if (listItem && listItem.seeMoreAction && listItem.seeMoreAction === "dropdown") || (listItem && !listItem.seeMoreAction)}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul  class="more-button-info" style="list-style:none;">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="close_btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(key, button) listItem.buttons}} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if key >= 2}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><button class="button_" {{if button && button.url}}url="${button.url}"{{/if}} type="${button.type}" {{if button && button.buttonStyles}}style="{{each(styleKey,style) button.buttonStyles}}${styleKey}:${style};{{/each}}"{{/if}} value="${button.payload}"><img src="${button.icon}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button></li>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && (listItem.view == "table") && listItem.tableListData}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem.tableListData}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="inner-acc-table-sec">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(i,list) listItem.tableListData}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if list.rowData && list.rowData.length}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="table-sec {{if listItem.type && listItem.type == "column"}}if-label-table-columns{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(key,row) list.rowData}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if ((list.rowData.length > 6) && (key < 6)) || (list.rowData.length === 6)}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if !row.icon}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="header-name">{{html helpers.convertMDtoHTML(row.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name">{{html helpers.convertMDtoHTML(row.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{else}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="labeld-img-block {{if row.iconSize}}${row.iconSize}{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${row.icon}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="label-content">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="header-name">{{html helpers.convertMDtoHTML(row.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name">{{html helpers.convertMDtoHTML(row.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if (list.rowData.length > 6)}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table-more">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name"><span>More <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAALCAYAAACzkJeoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACDSURBVHgBdY7BDYMwDEW/E+612gWs0gE6Qtmkm7ACGzADI7ABG5AJIAMgQozEIUDewQf/Z/lDdso/brAcAZmWny/289QnoY8wPzqAmrNgdeQEe1h3Ap1LaD1QMSKgMpeKxtZxDsAyJJfyLlsE+iIslXPOUy7QHeUCpRD5/LBC4o8kUDaUO0VusgMydwAAAABJRU5ErkJggg=="></div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.view == "options" && listItem.optionsData && listItem.optionsData.length}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(i,option) listItem.optionsData}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if option && option.type == "radio"}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="kr_sg_radiobutton option">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id="${key+""+i}" name="radio" class="radio-custom option-input" value="${option.value}" text = "${option.label}" type="radio">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for="${key+""+i}" class="radio-custom-label">{{html helpers.convertMDtoHTML(option.label, "bot")}}</label>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if option && option.type == "checkbox"}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="kr_sg_checkbox option">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id="${key+""+i}" class="checkbox-custom option-input" text = "${option.label}" value="${option.value}" type="checkbox">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for="${key+""+i}" class="checkbox-custom-label">{{html helpers.convertMDtoHTML(option.label, "bot")}}</label>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if listItem && listItem.buttons && listItem.buttons.length}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="btn_group {{if listItem.buttonAligment && listItem.buttonAligment == "center"}}if-btn-position-center{{else (listItem.buttonAligment && listItem.buttonAligment == "left")}}if-btn-position-left{{else (listItem.buttonAligment && listItem.buttonAligment == "right")}}if-btn-position-right{{else (listItem.buttonAligment && listItem.buttonAligment == "fullWidth")}}if-full-width-btn"{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(i,button) listItem.buttons}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="{{if button && button.btnType =="confirm"}}submitBtn p-button{{else button && button.btnType=="cancel"}}cancelBtn s-button{{/if}}" title="${button.title}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t</div>\t\t\t\t\t{{/if}}\t\t\t\t{{/each}}\t\t\t\t{{if (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMore && msgData.message[0].component.payload.listItems.length > msgData.message[0].component.payload.listItemDisplayCount) || (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.listItems.length > msgData.message[0].component.payload.listItemDisplayCount)}}\t\t\t\t\t<div class="see-more-data">\t\t\t\t\t\t{{if msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && (!msgData.message[0].component.payload.seeMoreVisibity || (msgData.message[0].component.payload.seeMoreVisibity && msgData.message[0].component.payload.seeMoreVisibity === "link"))}}\t\t\t\t\t\t\t<span>{{if (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMoreTitle)}} ${msgData.message[0].component.payload.seeMoreTitle} {{else}}See more{{/if}} <img {{if msgData.message[0].component.payload.seeMoreIcon}} src="${msgData.message[0].component.payload.seeMoreIcon}" {{else}} src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAALCAYAAACzkJeoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACDSURBVHgBdY7BDYMwDEW/E+612gWs0gE6Qtmkm7ACGzADI7ABG5AJIAMgQozEIUDewQf/Z/lDdso/brAcAZmWny/289QnoY8wPzqAmrNgdeQEe1h3Ap1LaD1QMSKgMpeKxtZxDsAyJJfyLlsE+iIslXPOUy7QHeUCpRD5/LBC4o8kUDaUO0VusgMydwAAAABJRU5ErkJggg=="{{/if}}></span>\t\t\t\t\t\t{{else msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && (msgData.message[0].component.payload.seeMoreVisibity  && msgData.message[0].component.payload.seeMoreVisibity === "button")}}\t\t\t\t\t\t\t\t<button class="button_seemore" >{{if (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMoreIcon)}}<img src="${msgData.message[0].component.payload.seeMoreIcon.seeMoreIcon}">{{/if}}{{if (msgData && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.seeMoreTitle)}} ${msgData.message[0].component.payload.seeMoreTitle} {{else}}See more{{/if}}</button>\t\t\t\t\t\t{{/if}}\t\t\t\t\t</div>\t\t\t\t{{/if}}\t\t\t{{/if}}\t\t{{/if}}\t\t</div>\t</li>\t\t{{/if}}\t</scipt>':"articleTemplate"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> {{if msgData.message}} \t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> \t   <div class="article-template">\t\t\t{{if msgData.createdOn}}<div class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t{{if msgData.icon}}<div class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t{{if msgData.message[0].component.payload.sliderView}} <button class="close-button" title="Close"><img src="data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>{{/if}}\t\t\t\t<div class="article-template-content" actionObj="${JSON.stringify(msgData.message[0].component.payload)}">\t\t\t\t\t{{if msgData.message[0].component.payload.elements.length}}\t\t\t\t\t\t<div class="article-template-elements">\t\t\t\t\t\t\t{{each(key,value) msgData.message[0].component.payload.elements}}\t\t\t\t\t\t\t\t  {{if ((key <  msgData.message[0].component.payload.displayLimit) && (msgData.message[0].component.payload.seemoreAction === "slider")) || (msgData.message[0].component.payload.seemoreAction !== "slider") || !msgData.message[0].component.payload.displayLimit }}\t\t\t\t\t\t\t\t\t\t<div class="media-block media-blue {{if (key >=  msgData.message[0].component.payload.displayLimit) && (msgData.message[0].component.payload.seemoreAction === "inline")}}hide{{/if}}" {{if value.styles}}style="{{each(styleKey,style) value.styles}}${styleKey}:${style};{{/each}}"{{/if}} actionObj="${JSON.stringify(value)}">\t\t\t\t\t\t\t\t\t\t\t<div class="media-header">{{html helpers.convertMDtoHTML(value.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t<div class="media-desc">{{html helpers.convertMDtoHTML(value.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t<div class="media-space-between">\t\t\t\t\t\t\t\t\t\t\t\t<div class="media-icon-block">\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="media-icon">\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${value.icon}"/>\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="media-icon-desc">\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="media-icon-desc-data">{{html helpers.convertMDtoHTML(value.createdOn, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="media-icon-desc-data">{{html helpers.convertMDtoHTML(value.updatedOn, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t<div><button class="btn-primary btn" actionObj="${JSON.stringify(value.button)}" type="${value.button.type}" {{if value.button.type === "url"}}url="${value.button.url}"{{/if}} {{if value.button.styles}}style="{{each(styleKey,style) value.button.styles}}${styleKey}:${style};{{/each}}"{{/if}}>${value.button.title}</button></div>\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t</div>\t\t\t\t\t{{/if}}\t\t\t\t\t{{if msgData.message[0].component.payload.showmore || (msgData.message[0].component.payload.elements.length > msgData.message[0].component.payload.displayLimit)}}\t\t\t\t\t\t<div class="article-show-more" {{if  msgData.message[0].component.payload.showMoreStyles}}style="{{each(styleKey,style) msgData.message[0].component.payload.showMoreStyles}}${styleKey}:${style};{{/each}}"{{/if}}>{{if msgData.message[0].component.payload.seeMoreTitle}}${msgData.message[0].component.payload.seeMoreTitle}{{else}}Show more{{/if}}</div>\t\t\t\t\t{{/if}}\t\t\t\t</div>\t   </div>\t</li>\t{{/if}} <\/script>':"resetPinTemplate"==t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> {{if msgData && msgData.message && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload}} \t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} {{if msgData.icon}}with-icon{{/if}}mashreq-otp-validation" data-kr-msg-id="${msgData.messageId}"> \t\t<div class="reset-pin-template">\t\t\t<div class="hading-text">${msgData.message[0].component.payload.title}\t\t\t{{if msgData && msgData.message && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.sliderView && !msgData.fromHistory}}\t\t\t<button class="close-button" title="Close"><img src="data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t{{/if}}\t\t\t</div>\t\t\t\t<div class="reset-pin-generation">\t\t\t\t\t<div class="enter-pin-info">\t\t\t\t\t<div class="enter-pin-title">${msgData.message[0].component.payload.enterPinTitle}</div>\t\t\t\t\t\t{{if msgData.message[0].component.payload.pinLength === 4}}\t\t\t\t\t\t\t<div class="enter-pin-inputs">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{else msgData.message[0].component.payload.pinLength == 5}}\t\t\t\t\t\t\t<div class="enter-pin-inputs">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{else msgData.message[0].component.payload.pinLength == 6}}\t\t\t\t\t\t\t<div class="enter-pin-inputs">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{/if}}\t\t\t\t\t</div>\t\t\t\t\t<div class="reenter-pin-info">\t\t\t\t\t\t<div class="reenter-pin-title">${msgData.message[0].component.payload.reEnterPinTitle}</div>\t\t\t\t\t\t{{if msgData.message[0].component.payload.pinLength === 4}}\t\t\t\t\t\t\t<div class="reenter-pin-inputs">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{else msgData.message[0].component.payload.pinLength == 5}}\t\t\t\t\t\t\t<div class="reenter-pin-inputs">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{else msgData.message[0].component.payload.pinLength == 6}}\t\t\t\t\t\t\t<div class="reenter-pin-inputs">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{/if}}\t\t\t\t\t</div>\t\t\t\t\t<div class="warning-message hide error-message-info">${msgData.message[0].component.payload.warningMessage}</div>\t\t\t\t\t<div class="error-message hide error-message-info">${msgData.message[0].component.payload.errorMessage}</div>\t\t\t\t\t{{if msgData.message[0].component.payload.resetButtons && msgData.message[0].component.payload.resetButtons.length}}\t\t\t\t\t<div class="resetpin-button-group">\t\t\t\t\t\t{{each(key,button) msgData.message[0].component.payload.resetButtons}}\t\t\t\t\t\t\t<button class="reset-btn disabled" title="${button.title}"><span class="button-title">${button.title}</span>{{if button.icon}}<img src="${button.icon}">{{/if}}</button>\t\t\t\t\t\t{{/each}}\t\t\t\t\t</div>\t\t\t\t\t{{/if}}\t\t\t\t</div>\t\t</div>\t</li>{{/if}} <\/script>':"quick_replies_welcome"===t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t\t{{if msgData.message}} \t\t\t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon quickReplies" data-kr-msg-id="${msgData.messageId}"> \t\t\t\t<div class="buttonTmplContent "> \t\t\t\t\t{{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}} \t\t\t\t\t{{if msgData.icon}}<div aria-live="off" class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}} \t\t\t\t\t{{if msgData.message[0].component.payload.text}} \t\t\t\t\t\t<div class="buttonTmplContentHeading quickReply"> \t\t\t\t\t\t\t{{if msgData.type === "bot_response"}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "bot")}} {{else}} {{html helpers.convertMDtoHTML(msgData.message[0].component.payload.text, "user")}} {{/if}} \t\t\t\t\t\t\t{{if msgData.message[0].cInfo && msgData.message[0].cInfo.emoji}} \t\t\t\t\t\t\t\t<span class="emojione emojione-${msgData.message[0].cInfo.emoji[0].code}">${msgData.message[0].cInfo.emoji[0].title}</span> \t\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t</div>\t\t\t\t\t\t{{/if}} \t\t\t\t\t\t{{if msgData.message[0].component.payload.quick_replies && msgData.message[0].component.payload.quick_replies.length}} \t\t\t\t\t\t\t<div class="quick_replies_btn_parent"><div class="autoWidth">\t\t\t\t\t\t\t\t{{each(key, msgItem) msgData.message[0].component.payload.quick_replies}} \t\t\t\t\t\t\t\t\t<div class="buttonTmplContentChild quickReplyDiv displayInline"> <span {{if msgItem.payload}} value="${msgItem.payload}"{{/if}} actual-value="${msgItem.title}" class="buttonQuickReply {{if msgItem.image_url}}with-img{{/if}}" type="${msgItem.content_type}">\t\t\t\t\t\t\t\t\t\t{{if msgItem.image_url}}<img src="${msgItem.image_url}">{{/if}} <span class="quickreplyText {{if msgItem.image_url}}with-img{{/if}}">${msgItem.title}</span></span>\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t{{/each}} \t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t{{/if}} \t\t\t\t</div>\t\t\t</li> \t\t{{/if}} </scipt>':"otpValidationTemplate"==t?'<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> {{if msgData && msgData.message && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload}} \t<li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} {{if msgData.icon}}with-icon{{/if}}mashreq-otp-validation" data-kr-msg-id="${msgData.messageId}"> \t\t<div class="otp-validations">\t\t\t<div class="hading-text">${msgData.message[0].component.payload.title}\t\t\t{{if msgData && msgData.message && msgData.message[0] && msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.sliderView && !msgData.fromHistory}}\t\t\t<button class="close-button" title="Close"><img src="data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t{{/if}}\t\t\t</div>\t\t\t{{if msgData.message[0].component.payload.type ==="otp" || !msgData.message[0].component.payload.type}}\t\t\t  <div class="otp-content">\t\t\t\t<div class="desc-text">${msgData.message[0].component.payload.description}</div>\t\t\t\t{{if  msgData.message && msgData.message[0].component.payload.mobileNumber}}\t\t\t\t\t<div class="phone-number-block">\t\t\t\t\t\t<div class="icon-block">\t\t\t\t\t\t\t<img src="{{if msgData.message && msgData.message[0].component.payload.mobileIcon}}${msgData.message[0].payload.component.mobileIcon}{{else}}data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAATCAYAAABLN4eXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADESURBVHgB7ZNNCsIwEIW/FH+2PUK8gTdQTyDddaPWk4gHEQq6F0+gnqT1BHaraOO0qXWVUtwJPkgmDPPlJTCjqGRmRBJGuHVWW+LioEpgzkpCAR1kZQ5ogSEVcPKGruQEasfJZWMifKlJ8Jh4Vc6nL4kGqbh8QcYD3+ML/aHfgDr16cbAhLYX20MeR3q00gfqotWGS1OxNHZi77fKuBM0AiFaghab1DrlLAXfyyBOnZRiKPtauj2tPy7zonkydltJcTVvL7jJL/rGRbIOAAAAAElFTkSuQmCC{{/if}}">\t\t\t\t\t\t</div>\t\t\t\t\t\t<div class="number-phone">${msgData.message[0].component.payload.mobileNumber}</div>\t\t\t\t\t</div>\t\t\t\t{{/if}}\t\t\t\t{{if  msgData.message && msgData.message[0].component.payload.mobileDesc}}\t\t\t\t\t<div class="text-tip">${msgData.message[0].component.payload.mobileDesc}</div>\t\t\t\t{{/if}}\t\t\t\t<div class="otp-block-inputs">\t\t\t\t\t<div class="input-block">\t\t\t\t\t\t<img alt="" class="otp-view-eye eye-icon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURBVHic7N13tF1Vtcfx76RKld6bSAkIPBSVjjRBitJ9IF1ApVcVREFFOooIKvIA6V1AqoCEiCCCgEgNoYUSeu+SkPn+WCvkptzk3nvKXHvv32eMM8AxMPcH95yz5l5lLnN3REREpFmmiA4gIiIi3acCQEREpIFUAIiIiDSQCgAREZEGUgEgIiLSQCoAREREGkgFgIiISAOpABAREWkgFQAiIiINpAJARESkgVQAiIiINJAKABERkQZSASAiItJAKgBEREQaSAWAiIhIA6kAEBERaSAVACIiIg2kAkBERKSBVACIiIg0kAoAERGRBlIBICIi0kAqAERERBpIBYCIiEgDqQAQERFpIBUAIiIiDaQCQEREpIFUAIiIiDSQCgAREZEGUgEgIiLSQCoAREREGkgFgIiISAOpABAREWkgFQAiIiINpAJARESkgVQAiIiINJAKABERkQZSASAiItJAKgBEREQaSAWAiIhIA6kAEBERaSAVACIiIg2kAkBERKSBVACIiIg0kAoAERGRBlIBICIi0kAqAERERBpIBYCIiEgDqQAQERFpIBUAIiIiDaQCQEREpIFUAIiIiDSQCgAREZEGUgEgIiLSQCoAREREGkgFgIiISAOpABAREWkgFQAiIiINpAJARESkgVQAiIiINJAKABERkQZSASAiItJAKgBEREQaSAWAiIhIA6kAEBERaSAVACIiIg2kAkBERKSBVACIiIg0kAoAERGRBlIBICIi0kAqAERERBpIBYCIiEgDqQAQERFpIBUAIiIiDaQCQEREpIFUAIiIiDSQCgAREZEGUgEgIiLSQCoAREREGkgFgIiISAOpABAREWkgFQAiIiINpAJARESkgVQAiIiINJAKABERkQZSASAiItJAKgBEREQaSAWAiIhIA6kAEBERaSAVACIiIg2kAkBERKSBVACIiIg00FTRAUSkO8xsSuBT470APuz5cvePYxKKSDeZu0dnEJE+MLOpgHmAeXt5zcqEA3zPV18L/lGMVxSM93o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cTersH4g6QKnNvAHojJ2/Ii0g3RgsHMkWY/6+ENhs3H9eOPLfmzXy3x21xZi/z2fjGQ4rgafH/XsfB4aAJ0jf1Z8kPY2vIS27vHrkz0cn+fMR0qA8Saolt/SVJKll7PwlSWoZO39JklrGzl+SpJY5hDR4KbpD7yaPkAYqSpKkHuxJmqYU3aHb+UuSVJE5wDXEd+jdxNf+kiT16TPEd+g++UuSVKG9SYugRHfqdv6SJFXoq8R36r72lySpQpuSlkGN7tjt/CVJqtAfEt+x+9pfklSpwegDyMBR0QfQATf2kSSpYP9F/NO9r/0lSarYbcR38nb+kiRVbAXxHb2dvyRJFXuS+M7ezl+SpIrdQnyHb+cvSaqUswDS5j+5WA4cB1wefSCSpGbzBgB+HX0AIx4FXoidvyRJlXgd8a/9XeRHkqSKzSd2JoDf/CVJCnIqdv6SJLXOnsAafO0vSVLrfAo7f0mSWmc2abMdX/tLktQye5DWBfDJX5KkljmIcm4CHgAOrrAckiSpS3sA11Jc538NsHulJZAkST2ZA3ya/mYHrCENLpxT8bFLkqQ+7UlaJ2AlnXf8K0f+O3sEHK8kSdMaiD6AGlkAvAQ4GtgP2BbYceT/dh+wjLSvwPnAT0mrC0qSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmN9v8BEBk6vZ12oGIAAAAASUVORK5CYII=" />\t\t\t\t\t\t<input type="password" class="input-item" maxlength="{{if msgData.message[0].component.payload.pinLength}}${msgData.message[0].component.payload.pinLength}{{else}}6{{/if}}">\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t\t<div class="respond-time hide">Resend possible in <span>90 sec.</span></div>\t\t\t\t{{if msgData.message[0].component.payload.otpButtons}}\t\t\t\t   <div class="otp-btn-group">\t\t\t\t\t\t{{each(key,btn) msgData.message[0].component.payload.otpButtons}}\t\t\t\t\t\t   <button class="{{if btn.type ==="submit"}}otp-btn disabled{{else btn.type ==="resend"}}otp-resend{{/if}}" {{if btn.payload}}value="${btn.payload}"{{/if}}><span class="button-title">${btn.title}</span>{{if btn.icon}}<img src="${btn.icon}">{{/if}}</button>\t\t\t\t\t\t{{/each}}\t\t\t\t   </div>\t\t\t\t{{/if}}\t\t\t  </div>\t\t\t{{else  msgData.message[0].component.payload.type ==="resetPin"}}\t\t\t\t<div class="reset-pin-generation">\t\t\t\t\t<div class="enter-pin-info">\t\t\t\t\t<div class="enter-pin-title">${msgData.message[0].component.payload.enterPinTitle}</div>\t\t\t\t\t\t<div class="enter-pin-inputs">\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<div class="reenter-pin-info">\t\t\t\t\t\t<div class="reenter-pin-title">${msgData.message[0].component.payload.reEnterPinTitle}</div>\t\t\t\t\t\t<div class="reenter-pin-inputs">\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t\t<input type="password" class="input-item" maxlength="1">\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<div class="warning-message hide error-message-info">${msgData.message[0].component.payload.warningMessage}</div>\t\t\t\t\t<div class="error-message hide error-message-info">${msgData.message[0].component.payload.errorMessage}</div>\t\t\t\t\t{{if msgData.message[0].component.payload.resetButtons && msgData.message[0].component.payload.resetButtons.length}}\t\t\t\t\t<div class="resetpin-button-group">\t\t\t\t\t\t{{each(key,button) msgData.message[0].component.payload.resetButtons}}\t\t\t\t\t\t\t<button class="reset-btn disabled" title="${button.title}"><span class="button-title">${button.title}</span>{{if button.icon}}<img src="${button.icon}">{{/if}}</button>\t\t\t\t\t\t{{/each}}\t\t\t\t\t</div>\t\t\t\t\t{{/if}}\t\t\t\t</div>\t\t\t{{/if}}\t\t</div>\t</li>{{/if}} <\/script>':"bankingFeedbackTemplate"===t?'<script id="chat-window-listTemplate" type="text/x-jqury-tmpl">{{if msgData.message && msgData.message[0].component.payload}} <li data-time="${msgData.createdOnTimemillis}" id="${msgData.messageId}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" data-kr-msg-id="${msgData.messageId}"> {{if msgData.createdOn}}<div aria-live="off" class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>\t\t\t{{/if}} \t\t\t{{if msgData.icon}}\t\t\t<div aria-live="off" class="profile-photo">\t\t\t\t<div class="user-account avtar" style="background-image:url(${msgData.icon})"></div>\t\t\t</div> \t\t\t{{/if}} \t<div class="{{if msgData.message[0].component.payload.fromHistory}} dummy bankingFeedBackTemplate messageBubble {{else}}bankingFeedBackTemplate messageBubble{{/if}}"> \t\t\t<div class="bankingFeedBackTemplate-experience-content">\t\t\t\t{{if msgData.message[0].component.payload}}<div class="content-heading"> ${msgData.message[0].component.payload.heading}</div>{{/if}}\t\t\t\t<div class="bankingFeedBackTemplate-content-experience">\t\t\t\t\t{{if msgData && msgData.message[0].component.payload.experienceContent}}\t\t\t\t\t\t{{each(key, experience) msgData.message[0].component.payload.experienceContent}}\t\t\t\t\t\t\t<div class="content-list-view">\t\t\t\t\t\t\t\t<input  class = "checkInput" type="radio" text = "${experience.value}" value = "${experience.value}" id="${experience.id}${msgData.messageId}" actionObj="${JSON.stringify(experience)}"> \t\t\t\t\t\t\t\t<label for="${experience.id}${msgData.messageId}" class="checkInput-label">${experience.value}</label> \t\t\t\t\t\t\t</div>\t\t\t\t\t\t{{/each}}\t\t\t\t\t{{/if}}\t\t\t\t</div>\t\t\t</div>\t\t\t{{if msgData && msgData.message[0].component.payload.experienceContent}}\t\t\t\t{{each(key, experience) msgData.message[0].component.payload.experienceContent}}\t\t\t\t\t{{if experience && experience.empathyMessage && experience.empathyMessage.length}}\t\t\t\t\t\t<div class="empathy-message hide" id="${experience.id}${msgData.messageId}"> ${experience.empathyMessage}</div>\t\t\t\t\t{{/if}}\t\t\t\t{{/each}}\t\t\t{{/if}}\t\t\t{{if msgData &&  msgData.message[0] &&  msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.feedbackList}}\t\t\t<div class="bankingFeedBackTemplate-feedback-content hide">\t\t\t\t\t\t{{if msgData &&  msgData.message[0] &&  msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.feedbackListHeading}}<div class="feebackList-heading">${msgData.message[0].component.payload.feedbackListHeading}</div>{{/if}}\t\t\t\t\t\t\t{{if msgData &&  msgData.message[0] &&  msgData.message[0].component && msgData.message[0].component.payload && msgData.message[0].component.payload.feedbackList && msgData.message[0].component.payload.feedbackList.length}}\t\t\t\t\t\t\t<div class="experience-feedback-listItems">\t\t\t\t\t\t\t\t{{each(keyval, list) msgData.message[0].component.payload.feedbackList}}\t\t\t\t\t\t\t\t<div class="feedback-listItem">\t\t\t\t\t\t\t\t\t<div class="checkbox checkbox-primary styledCSS checkboxesDiv"> \t\t\t\t\t\t\t\t\t\t<input  class = "checkInput" type="checkbox" text = "${list.value}" value = "${list.value}" id="${list.id}${msgData.messageId}" actionObj="${JSON.stringify(list)}" > \t\t\t\t\t\t\t\t\t\t<label for="${list.id}${msgData.messageId}">${list.value}</label> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t<div class="suggestions-component"><textarea type="text" class="feedback-suggestionInput" rows="5" id="bankingSuggestionInput" placeholder="Tell us more.."></textarea></div>\t\t\t\t\t\t\t{{if msgData.message[0].component.payload.buttons && msgData.message[0].component.payload.buttons.length}}\t\t\t\t\t\t\t\t<div class="buttons-div">\t\t\t\t\t\t\t\t\t{{each(btnKey,button) msgData.message[0].component.payload.buttons}}\t\t\t\t\t\t\t\t\t\t<div class="{{if (button.btnType == "confirm") }}feedback-submit {{else (button.btnType == "cancel")}}feedback-cancel{{/if}}"><button type="button" class="{{if (button.btnType == "confirm") }}submitBtn {{else (button.btnType == "cancel")}}cancelBtn{{/if}}">${button.label}</button></div>\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t</div>\t\t\t{{/if}}\t</div></li>{{/if}}<\/script>':"checkListTemplate"===t?'<script id="chat_checklist_tmpl" type="text/x-jqury-tmpl">         {{if msgData.message}}             <li data-time="${msgData.createdOnTimemillis}" class="{{if msgData.type === "bot_response"}}fromOtherUsers{{else}}fromCurrentUser{{/if}} with-icon" id="${msgData.messageId}" data-kr-msg-id="${msgData.messageId}">                <div class="check-list-template">                       {{if msgData.createdOn}}<div class="extra-info">${helpers.formatDate(msgData.createdOn)}</div>{{/if}}                     {{if msgData.icon}}<div class="profile-photo"> <div class="user-account avtar" style="background-image:url(${msgData.icon})"></div> </div> {{/if}}                         {{if msgData.message[0].component.payload.sliderView}} <button class="close-button" title="Close"><img src="data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>{{/if}}                        <div class="check-list-template-content">                            {{if msgData.message[0].component.payload.title}}<div class="templateHeading">${msgData.message[0].component.payload.title}</div>{{/if}}                            {{if msgData.message[0].component.payload.elements}}                               <div class="check-list-elements">                                       {{each(key,element) msgData.message[0].component.payload.elements}}                                      <div class="checklist-element {{if element.default_action}}clickable{{/if}}" {{if element.elementStyles}}style="{{each(styleKey,style) element.elementStyles}}${styleKey}:${style};{{/each}}"{{/if}} id="${element.id}" {{if element.default_action}}actionObj="${JSON.stringify(element.default_action)}"{{/if}}>                                        <div class="checklist-heading">                                            <div class="left-info-sec-data">                                                <div class="headig-with-progress">                                                    <div class="element-title-block">${element.title}</div>                                                </div>                                                <div class="checklist-options-wrapper">                                                     {{if element.subInformation}}                                                        <div class="checklist-options">                                                            {{each(optionkey,option) element.subInformation}}                                                                <div class="option-info">                                                                    <div class="option-title">${option.title}</div>                                                                    <div class="option-value">${option.value}</div>                                                                </div>                                                            {{/each}}                                                        </div>                                                    {{/if}}                                                </div>                                             </div>                                            <div class="progress-data-block">                                                {{if element.taskProgress}}                                                    <div class="checklist-progress" id="progress${element.id}">                                                        <div class="checklist-percentage">                                                        ${element.taskProgress}                                                        </div>                                                    </div>                                                {{/if}}                                                <div class="chevron-subelement" subElementIndex="${key}" msgId="${msgData.messageId}">                                                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none">                                                        <path d="M6 9L12 15L18 9" stroke="#101828" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>                                                    </svg>                                                </div>                                             </div>                                        </div>                                        {{if element.subElements &&  element.subElements.length}}                                          <div class="checklist-subElements" subElementItem="${msgData.messageId}-${key}">                                             {{each(subElementKey,subElement) element.subElements}}                                                <div class="subelement-info" {{if subElement.default_action}}actionObj="${JSON.stringify(subElement.default_action)}"{{/if}}>                                                        <div class="subelement-header">                                                            <div class="subelemt-title-text">${subElement.title}</div>                                                            {{if subElement.rightContent && subElement.rightContent.icon}}                                                                <div class="icon-block" actionObj="${JSON.stringify(subElement.rightContent.default_action)}">                                                                    <img src="${subElement.rightContent.icon}">                                                                </div>                                                            {{/if}}                                                        </div>                                                        {{if subElement.values}}                                                            <div class="subelemnt-values">                                                                {{each(valkey,val) subElement.values}}                                                                    <div class="subelement-value">                                                                        <span class="val-title">${val.title}</span>                                                                        {{if val.icon}}                                                                                <span class="val-icon"><img src="${val.icon}"></span>                                                                        {{/if}}                                                                        <span class="val-value">${val.value}</span>                                                                    </div>                                                                {{/each}}                                                            </div>                                                        {{/if}}                                                </div>                                             {{/each}}                                          </div>                                        {{/if}}                                      </div>                                    {{/each}}                               </div>                            {{/if}}                        </div>               </div>            </li>            {{/if}}         <\/script>':""},c.prototype.getColumnWidth=function(e){var t,n="100%";if(e){t=e.replace(/[^\d.-]/g,""),console.log(e);try{n=100-parseInt(t,10)}catch(t){console.log(e)}return n}},c.prototype.templateEvents=function(t,e,n){chatInitialize=this.chatInitialize;var o=this,a=d(t);if("TabbedList"===e||"listWidget"===e){d(a.find(".tabs")[0]).addClass("active");var s=a.find(".listViewLeftContent");if(s&&s.length)for(i=0;i<s.length;i++){var r,t=s[i];d(t).attr("col-size")&&(r=d(t).hasClass("listViewLeftContent")?o.getColumnWidth(100-parseInt(d(t).attr("col-size"))+"%"):o.getColumnWidth(d(t).attr("col-size")),d(t).css("width",r+"%"))}console.log(n),a.off("click",".listViewLeftContent").on("click",".listViewLeftContent",function(t){t.stopPropagation();var e,t=d(t.currentTarget).attr("actionObj");t&&(e={},e=JSON.parse(t));valueClick(this,e)}),a.off("click",".moreValue").on("click",".moreValue",function(t){t.stopPropagation()}),a.off("click",".tabs").on("click",".tabs",function(t){t.stopPropagation();var e=d(t.target).text(),n=d(t.target).closest(".tab-list-template").data(),i=(i=d(t.target).closest(".tab-list-template").attr("panelDetail"))&&JSON.parse(i);delete n.tmplItem;var a={tempdata:n,dataItems:n.elements,helpers:helpers,viewmore:i.viewmore,panelDetail:i};n&&n.tabs&&Object.keys(n.tabs)&&Object.keys(n.tabs).length&&(a={tempdata:n,dataItems:n.tabs[e],tabs:Object.keys(n.tabs),helpers:helpers,viewmore:i.viewmore,panelDetail:i});a=d(o.getTemplate("TabbedList")).tmplProxy(a);d(a).find(".tabs[data-tabid='"+e+"']").addClass("active"),d(t.target).closest(".tab-list-template").html(d(a).html())}),a.off("click","#showMoreContents").on("click","#showMoreContents",function(t){t.stopPropagation(),d(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showMoreBottom").removeClass("hide")}),a.off("click",".wid-temp-showMoreClose").on("click",".wid-temp-showMoreClose",function(t){t.stopPropagation(),d(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showMoreBottom").addClass("hide")}),a.off("click",".wid-temp-showActions").on("click",".wid-temp-showActions",function(t){t.stopPropagation(),d(t.currentTarget)&&d(t.currentTarget).closest(".listViewTmplContentChild")&&d(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions")&&d(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions").hasClass("active")?(d(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions").removeClass("active"),d(t.currentTarget).closest(".listViewTmplContentChild").find(".meetingActionButtons").addClass("hide")):(d(t.currentTarget).closest(".listViewTmplContentChild").find(".wid-temp-showActions").addClass("active"),d(t.currentTarget).closest(".listViewTmplContentChild").find(".meetingActionButtons").removeClass("hide"))}),a.off("click",".action").on("click",".action",function(t){t.stopPropagation();var e,n=d(t.currentTarget).attr("actionObj");n&&(e={},e=JSON.parse(n)),"object"==typeof e&&e.link?window.open(e.link):(t=d(t.currentTarget).parent(),valueClick(t,e))})}a.off("click",".dropbtnWidgt.moreValue,.dropbtnWidgt.actionBtns").on("click",".dropbtnWidgt.moreValue,.dropbtnWidgt.actionBtns",function(t){d(this).next().hasClass("dropdown-contentWidgt")&&d(this).next().toggleClass("show"),d(".dropdown-contentWidgt.show").not(d(this).next()).removeClass("show")}),window.onclick=function(t){if(!t.target.matches(".dropbtnWidgt"))for(var e=document.getElementsByClassName("dropdown-contentWidgt"),n=0;n<e.length;n++){var i=e[n];i.classList.contains("show")&&i.classList.remove("show")}}},c.prototype.bindEvents=function(r){chatInitialize=this.chatInitialize,helpers=this.helpers,d(r).find(".selectTemplateDropdowm").on("change",function(t){t.preventDefault(),t.stopPropagation();t=d(this).find("option:selected");chatInitialize.sendMessage(d(".chatInputBox").text(this.value),t.attr("name"))}),d(r).find(".formMainComponent").on("keydown",function(t){13==t.keyCode&&(t.preventDefault(),t.stopPropagation())}),d(r).find("#submit").on("click",function(t){var e,n=d(t.currentTarget).closest(".buttonTmplContent").find(".formMainComponent .formBody"),i=d(t.currentTarget).closest(".fromOtherUsers.with-icon"),t=d(i).data();if(t.tmplItem.data.msgData.message[0].component.payload&&(t.tmplItem.data.msgData.message[0].component.payload.ignoreCheckMark=!0,e=t.tmplItem.data.msgData),""==n.find("#email").val())d(i).find(".buttonTmplContent").last().find(".errorMessage").removeClass("hide"),d(".errorMessage").text("Please enter value");else if(0!=n.find("input[type='password']").length){for(var i=n.find("#email").val(),a=i.length,o="",s=0;s<a;s++)o+="*";d(".chatInputBox").text(i),d(r).find(".formMainComponent form").addClass("hide")}else 0==n.find("input[type='password']").length&&(d(".chatInputBox").text(n.find("#email").val()),o=n.find("#email").val(),d(r).find(".formMainComponent form").addClass("hide"));chatInitialize.sendMessage(d(".chatInputBox"),o,e)}),d(r).off("click",".closeBottomSlider").on("click",".closeBottomSlider",function(t){bottomSliderAction("hide")}),d(r).off("click",".singleSelect").on("click",".singleSelect",function(t){var e=d(t.currentTarget).closest(".listTmplContentBox"),n=d(e).find(".collectionDiv"),a=d(e).find(".checkbox input");d(n).removeClass("selected");var o=d(t.currentTarget).closest(".collectionDiv");d(o).addClass("selected");t=d(o).find(".groupMultiSelect input");if(n&&n.length)for(i=0;i<n.length;i++)if(n&&!d(n[i]).hasClass("selected")){var s=d(n[i]).find(".checkbox input");for(j=0;j<s.length;j++)d(s[j]).prop("checked",!1)}if(o&&o[0]){var r=!0,l=d(o).find(".checkbox.singleSelect input");if(l&&l.length)for(i=0;i<l.length;i++)d(l[i]).prop("checked")||(r=!1);r?d(t).prop("checked",!0):d(t).prop("checked",!1)}var c=!1,e=d(e).find(".multiCheckboxBtn");if(a&&a.length)for(i=0;i<a.length;i++)d(a[i]).prop("checked")&&(c=!0);c?d(e).removeClass("hide"):d(e).addClass("hide")}),d(r).off("click",".viewMoreGroups").on("click",".viewMoreGroups",function(t){t=d(t.currentTarget).closest(".listTmplContentBox"),t=d(t).find(".collectionDiv");d(t).removeClass("hide"),d(".viewMoreContainer").addClass("hide")}),d(r).off("click",".groupMultiSelect").on("click",".groupMultiSelect",function(t){var e=d(t.currentTarget).find("input"),n=d(e[0]).prop("checked"),e=d(t.currentTarget).closest(".collectionDiv"),a=d(e).find(".checkbox input"),t=d(t.currentTarget).closest(".listTmplContentBox"),o=d(t).find(".checkbox input");if(o&&o.length)for(i=0;i<o.length;i++)d(o[i]).prop("checked",!1);if(n){if(a&&a.length)for(i=0;i<a.length;i++)d(a[i]).prop("checked",!0)}else if(a&&a.length)for(i=0;i<a.length;i++)d(a[i]).prop("checked",!1);var s=!1,t=d(t).find(".multiCheckboxBtn");if(o&&o.length)for(i=0;i<o.length;i++)d(o[i]).prop("checked")&&(s=!0);s?d(t).removeClass("hide"):d(t).addClass("hide")}),d(r).find(".multiCheckboxBtn").on("click",function(t){var e=d(r).data();!0===e.message[0].component.payload.sliderView&&(e.message[0].component.payload.sliderView=!1,chatInitialize.renderMessage(e),bottomSliderAction("hide")),e.message[0].component.payload.sliderView=!1;for(var n=d(t.currentTarget.parentElement).find(".checkInput:checked"),i=[],a=[],o=0;o<n.length;o++)i.push(d(n[o]).attr("value")),a.push(d(n[o]).attr("text"));d(".chatInputBox").text("Here are the selected items : "+i.toString()),chatInitialize.sendMessage(d(".chatInputBox"),"Here are the selected items : "+a.toString()),d(r).find(".multiCheckboxBtn").hide(),d(r).find(".advancedMultiSelectScroll").css({"pointer-events":"none"}),d(r).find(".advancedMultiSelectScroll").css({overflow:"hidden"})}),d(r).off("click",".listViewTmplContent .seeMoreList").on("click",".listViewTmplContent .seeMoreList",function(t){0!==d(".list-template-sheet").length?(d(".list-template-sheet").remove(),listViewTabs(t)):0===d(".list-template-sheet").length&&listViewTabs(t)}),d(r).find(".listViewLeftContent").on("click",function(t){var e,n;d(this).attr("data-url")?((n=d(this).attr("data-url")).indexOf("http:")<0&&n.indexOf("https:")<0&&(n="http:////"+n),window.open(n,"_blank")):(e=d(this).attr("data-value")||d(this).attr("data-title"),n=d(this).attr("data-title"),chatInitialize.sendMessage(d(".chatInputBox").text(e),n),d(".listViewTmplContentBox").css({"pointer-events":"none"}))}),d(r).off("click",".listViewItemValue.actionLink,.listTableDetailsDesc").on("click",".listViewItemValue.actionLink,.listTableDetailsDesc",function(){valueClick(this)}),d(r).find(".ratingMainComponent").off("click",'[type*="radio"]').on("click",'[type*="radio"]',function(t){var e=d(t.currentTarget).attr("value"),n=d(r).data(),a=n.message[0].component.payload.sliderView;for(d("label.active")&&d("label").removeClass("active"),i=parseInt(e);0<i;i--)d('label[for="'+i+'-stars"]').addClass("active");e==n.message[0].component.payload.starArrays.length?(t=n.message[0].component.payload.messageTodisplay,d(".suggestionsMainComponent").remove(),d(".ratingStar").remove(),d(".submitButton")&&d(".submitButton").remove(),d(".kore-action-sheet").find(".ratingMainComponent").append('<div class="ratingStar">'+t+'</div><div class="submitButton"><button type="button" class="submitBtn">Submit</button></div>')):(d(".submitButton")&&d(".submitButton").remove(),d(".ratingStar").remove(),0<d(".suggestionsMainComponent").length&&d(".suggestionsMainComponent").remove(),d(".kore-action-sheet").find(".ratingMainComponent").append(c.prototype.suggestionComponent())),!1===a&&(chatInitialize.sendMessage(d(".chatInputBox").text(e),e),d(".ratingMainComponent").css({"pointer-events":"none"})),d(".buttonTmplContent .ratingMainComponent .submitBtn").click(function(){var t;n.message[0].component.payload.sliderView=!1,e==n.message[0].component.payload.starArrays.length?(t=n.message[0].component.payload.messageTodisplay,chatInitialize.renderMessage(n),chatInitialize.sendMessage(d(".chatInputBox").text(e+" :"+t),e+" :"+t)):""==d(".suggestionInput").val()?(chatInitialize.renderMessage(n),chatInitialize.sendMessage(d(".chatInputBox").text(e),e)):(t=d(".suggestionInput").val(),chatInitialize.renderMessage(n),chatInitialize.sendMessage(d(".chatInputBox").text(e+" :"+t),e+" :"+t)),bottomSliderAction("hide"),n.message[0].component.payload.sliderView=!0})}),d(r).find(".buttonTmplContent .ratingMainComponent .close-btn").click(function(t){bottomSliderAction("hide"),t.stopPropagation()}),d(r).find(".emojiComponent,.thumpsUpDownComponent,.numbersComponent").off("click",".emoji-rating").on("click",".emoji-rating",function(t){var n=d(r).data(),e=n.message[0].component.payload.sliderView;"0"!==d(r).find(".emojiComponent .emoji-rating.active").length&&(d(".emojiComponent .emoji-rating").removeClass("active"),d(".emojiElement").remove()),"0"!==d(r).find(".thumpsUpDownComponent .emoji-rating.active").length&&(d(".thumpsUpDownComponent .emoji-rating").removeClass("active"),d(".emojiElement").remove()),"0"!==d(r).find(".numbersComponent .emoji-rating.active").length&&(d(".numbersComponent .emoji-rating").removeClass("active"),d(".emojiElement").remove());var i=d(this).attr("value"),a=d(this).attr("data-id");d(t.currentTarget).addClass("active"),0===d(r).find(".emojiComponent.version2").length&&0===d(r).find(".thumpsUpDownComponent").length&&0===d(r).find(".numbersComponent").length&&("rating_1"==d(this).attr("id")&&d("#rating_1.active")?(d("<img class='emojiElement' />").attr("src","libs/images/emojis/gifs/rating_1.gif").appendTo(this),d(t.currentTarget).removeClass("active")):"rating_2"==d(this).attr("id")&&d("#rating_2.active")?(d("<img class='emojiElement' />").attr("src","libs/images/emojis/gifs/rating_2.gif").appendTo(this),d(t.currentTarget).removeClass("active")):"rating_3"==d(this).attr("id")&&d("#rating_3.active")?(d("<img class='emojiElement' />").attr("src","libs/images/emojis/gifs/rating_3.gif").appendTo(this),d(t.currentTarget).removeClass("active")):"rating_4"==d(this).attr("id")&&d("#rating_4.active")?(d("<img class='emojiElement' />").attr("src","libs/images/emojis/gifs/rating_4.gif").appendTo(this),d(t.currentTarget).removeClass("active")):"rating_5"==d(this).attr("id")&&d("#rating_5.active")&&(d("<img class='emojiElement' />").attr("src","libs/images/emojis/gifs/rating_5.gif").appendTo(this),d(t.currentTarget).removeClass("active"))),n&&n.message[0]&&n.message[0].component&&n.message[0].component.payload&&"CSAT"!==n.message[0].component.payload.view&&"NPS"!==n.message[0].component.payload.view&&"ThumbsUpDown"!==n.message[0].component.payload.view?d(this).attr("value")<"5"?(d(".ratingStar").remove(),d(".submitButton")&&d(".submitButton").remove(),0<d(".suggestionsMainComponent").length&&d(".suggestionsMainComponent").remove(),(d(".kore-action-sheet").find(".thumpsUpDownComponent").length?d(".kore-action-sheet").find(".thumpsUpDownComponent"):d(".kore-action-sheet").find(".numbersComponent").length?d(".kore-action-sheet").find(".numbersComponent"):d(".kore-action-sheet").find(".emojiComponent")).append(c.prototype.suggestionComponent())):(d(".submitButton")&&d(".submitButton").remove(),0<d(".ratingStar").length&&d(".ratingStar").remove(),t=n.message[0].component.payload.messageTodisplay,d(".suggestionsMainComponent").remove(),(d(".kore-action-sheet").find(".thumpsUpDownComponent").length?d(".kore-action-sheet").find(".thumpsUpDownComponent"):d(".kore-action-sheet").find(".numbersComponent").length?d(".kore-action-sheet").find(".numbersComponent"):d(".kore-action-sheet").find(".emojiComponent")).append('<div class="ratingStar">'+t+'</div><div class="submitButton"><button type="button" class="submitBtn">Submit</button></div>')):n.message[0].component.payload.sliderView&&(n.message[0].component.payload.sliderView=!1,n.message[0].component.payload.selectedValue=JSON.parse(a),chatInitialize.renderMessage(n),chatInitialize.sendMessage(d(".chatInputBox").text(i),i),bottomSliderAction("hide"),n.message[0].component.payload.sliderView=!0),!1===e&&(chatInitialize.sendMessage(d(".chatInputBox").text(i),i),d(".rating-main-component").css({"pointer-events":"none"})),d(".emojiComponent,.thumpsUpDownComponent,.numbersComponent").off("click",".submitBtn").on("click",".submitBtn",function(t){var e;n.message[0].component.payload.sliderView=!1,"5"==i?(e=n.message[0].component.payload.messageTodisplay,chatInitialize.renderMessage(n),chatInitialize.sendMessage(d(".chatInputBox").text(i+" :"+e),"Rating: "+i+" and "+e)):""==d(".suggestionInput").val()?(chatInitialize.renderMessage(n),chatInitialize.sendMessage(d(".chatInputBox").text(i),i)):(e=d(".suggestionInput").val(),chatInitialize.renderMessage(n),e?chatInitialize.sendMessage(d(".chatInputBox").text(i+" :"+e),i+" :"+e):chatInitialize.sendMessage(d(".chatInputBox").text(i),i)),bottomSliderAction("hide"),n.message[0].component.payload.sliderView=!0})}),d(r).find(".buttonTmplContent .emojiComponent .close-btn,.buttonTmplContent .thumpsUpDownComponent .close-btn,.buttonTmplContent .numbersComponent .close-btn").click(function(t){bottomSliderAction("hide"),t.stopPropagation()}),d(".kore-chat-window").off("click",".clickableButton").on("click",".clickableButton",function(t){var e;"postback"==d(this).attr("type")?(e=d(this).attr("payload"),d(".chatInputBox").text(e),chatInitialize.sendMessage(d(".chatInputBox"),d(this).text())):(e=d(this).attr("url"),chatInitialize.openExternalLink(e)),document.getElementById("myPreviewModal").style.display="none"})},c.prototype.suggestionComponent=function(){return'<div class="suggestionsMainComponent">\t<div class="suggestionsHeading">What can be improved?</div>\t<div class="suggestionBox">\t<textarea type="text" class="suggestionInput" placeholder="Add Suggestions"></textarea></div>\t<div class="submitButton"><button type="button" class="submitBtn">Submit</button></div>\t</div>'},this.bottomSliderAction=function(t,e){d(".kore-action-sheet").animate({height:"toggle"}),"hide"==t?(d(".kore-action-sheet").innerHTML="",d(".kore-action-sheet").addClass("hide")):(d(".kore-action-sheet").removeClass("hide"),d(".kore-action-sheet .actionSheetContainer").empty(),setTimeout(function(){d(".kore-action-sheet .actionSheetContainer").append(e)},200))},this.listViewTabs=function(t){var n=d(t.currentTarget).closest("li.fromOtherUsers.with-icon.listView").data();n.message[0].component.payload.seeMore&&(n.message[0].component.payload.seeMore=!1);t=d(c.prototype.getChatTemplate("actionSheetTemplate")).tmpl({msgData:n,dataItems:n.message[0].component.payload.moreData[Object.keys(n.message[0].component.payload.moreData)[0]],tabs:Object.keys(n.message[0].component.payload.moreData),helpers:helpers});d(d(t).find(".tabs")[0]).addClass("active"),d(".kore-action-sheet").append(t),d(".kore-action-sheet .list-template-sheet").removeClass("hide"),this.bottomSliderAction("show",d(".list-template-sheet")),d(".kore-action-sheet .list-template-sheet .displayMonth .tabs").on("click",function(t){var e=d(t.target).text(),t=d(c.prototype.getChatTemplate("actionSheetTemplate")).tmpl({msgData:n,dataItems:n.message[0].component.payload.moreData[e],tabs:Object.keys(n.message[0].component.payload.moreData),helpers:helpers});d(".list-template-sheet .displayMonth").find(".tabs").removeClass("active"),d(".list-template-sheet .displayMonth").find(".tabs[data-tabid='"+e+"']").addClass("active"),d(".list-template-sheet .displayListValues").html(d(t).find(".displayListValues")),d(".kore-action-sheet .list-template-sheet .listViewLeftContent").on("click",function(){valueClick(this)})}),d(".kore-action-sheet .list-template-sheet .close-button").on("click",function(t){bottomSliderAction("hide")}),d(".kore-action-sheet .list-template-sheet .listViewLeftContent").on("click",function(){valueClick(this)})},this.valueClick=function(t,e){var n,i;e?"url"!==e.type?(e.payload&&(i=e.payload,(n={}).payload=t.innerText||e.title,chatInitialize.sendMessage(d(".chatInputBox").text(i),n.payload)),t&&t.hasClass("dropdown-contentWidgt")&&d(t).hide()):window.open(e.url,"_blank"):d(t).attr("data-url")||d(t).attr("url")?((e=d(t).attr("data-url")||d(t).attr("url")).indexOf("http:")<0&&e.indexOf("https:")<0&&(e="http:////"+e),window.open(e,"_blank")):(i=d(t).attr("data-value")||d(t).attr("data-title"),t=d(t).attr("data-title"),chatInitialize.sendMessage(d(".chatInputBox").text(i),t),d(".kore-action-sheet .list-template-sheet").animate({height:"toggle"}),bottomSliderAction("hide"),d(".listViewTmplContentBox").css({"pointer-events":"none"}))},c.prototype.advancedListTemplateEvents=function(r,l){this.chatInitialize&&(chatInitialize=this.chatInitialize),this.helpers&&(helpers=this.helpers);var u=d(r);d(r).data();if("nav"==l.message[0].component.payload.listViewType){var t,e=l.message[0].component.payload.navHeaders;l.message[0].component.payload.navHeaders&&l.message[0].component.payload.navHeaders.length&&(t=l.message[0].component.payload.navHeaders[0],u.find(".month-tab#"+t.id).addClass("active-month"));for(var n=0;n<e.length;n++)e[n].id!=t.id&&u.find(".multiple-accor-rows#"+e[n].id).addClass("hide")}u.off("click",".advanced-list-wrapper .callendar-tabs .month-tab").on("click",".advanced-list-wrapper .callendar-tabs .month-tab",function(t){var e=d(r).data(),n=t.currentTarget.id;if(e&&"nav"==e.message[0].component.payload.listViewType&&e.message[0].component.payload.navHeaders){for(var i=e.message[0].component.payload.navHeaders,a=0;a<i.length;a++)n!=i[a].id&&(u.find(".advanced-list-wrapper .multiple-accor-rows#"+i[a].id).hasClass("hide")||(u.find(".advanced-list-wrapper .advanced-list-wrapper .multiple-accor-rows#"+i[a].id).addClass("hide"),u.find(".advanced-list-wrapper .multiple-accor-rows#"+i[a].id).css({display:"none"})));for(a=0;a<i.length;a++)i[a].id==n?u.find(".advanced-list-wrapper .month-tab#"+i[a].id).addClass("active-month"):i[a].id!=n&&u.find(".advanced-list-wrapper .month-tab#"+i[a].id).removeClass("active-month")}u.find(".advanced-list-wrapper .multiple-accor-rows#"+n).addClass("hide")&&(u.find(".advanced-list-wrapper .multiple-accor-rows#"+n).removeClass("hide"),u.find(".advanced-list-wrapper .multiple-accor-rows#"+n).css({display:"block"}))}),u.off("click",".advanced-list-wrapper .multiple-accor-rows .accor-inner-content .option").on("click",".advanced-list-wrapper .multiple-accor-rows .accor-inner-content .option",function(t){t.preventDefault(),t.stopPropagation(),"radio"==d(this).find(".option-input").attr("type")&&d(this).parent().find(".option.selected-item").removeClass("selected-item"),d(this).find(".option-input").prop("checked")?(d(this).hasClass("selected-item")&&d(this).removeClass("selected-item"),d(this).find(".option-input").prop("checked",!1)):(d(this).find(".option-input").prop("checked",!0),d(this).addClass("selected-item"))}),u.off("click",".advanced-list-wrapper .multiple-accor-rows .accor-inner-content .option .option-input").on("click",".advanced-list-wrapper .multiple-accor-rows .accor-inner-content .option .option-input",function(t){var e=t.currentTarget.id;t.stopPropagation(),t.preventDefault(),d("#"+e).prop("checked")?(d(this).parent().hasClass("selected-item")&&d(this).parent().removeClass("selected-item"),d("#"+e).prop("checked",!1)):(d("#"+e).prop("checked",!0),d(this).parent().addClass("selected-item"))}),u.off("click",".advanced-list-wrapper .multiple-accor-rows .accor-header-top").on("click",".advanced-list-wrapper .multiple-accor-rows .accor-header-top",function(t){var e,n=t.currentTarget.parentElement,i=n.children[1].childElementCount,t=d(t.currentTarget).parent().attr("actionObj"),a=JSON.parse(t),t=n.getAttribute("type");if(t&&"postback"==t||"text"==t){d(".chatInputBox").text(a.payload||a.title);n=a.renderMessage||a.title;chatInitialize.sendMessage(d(".chatInputBox"),n),bottomSliderAction("hide"),u.find(".advanced-list-wrapper").css({"pointer-events":"none"})}else if(t&&"url"==t||"web_url"==t){if(void 0!==d(this).attr("msgData")){try{o=JSON.parse(d(this).attr("msgData"))}catch(t){}if(o&&o.message&&o.message[0].component&&(o.message[0].component.formData||o.message[0].component.payload&&o.message[0].component.payload.formData))return o.message[0].component.formData&&(o.message[0].component.payload.formData=o.message[0].component.formData),void chatInitialize.renderWebForm(o)}var o=a.url;o.indexOf("http:")<0&&o.indexOf("https:")<0&&(o="http:////"+o),chatInitialize.openExternalLink(o)}else if(0<i&&a.isAccordian&&(d(this).find(".action-icon-acc").toggleClass("rotate-icon"),d(this).closest(".multiple-accor-rows").find(".accor-inner-content").toggle(300)),a&&a.headerOptions&&a.headerOptions.length){for(var s=0;s<a.headerOptions.length;s++){var r=a.headerOptions[s];r&&"icon"===r.type&&r.iconRotation&&(e=r.iconRotation)}d(this).find(".action-icon-acc").hasClass("rotate-icon")?d(this).find(".action-icon-acc.rotate-icon").css("transform","rotate("+e+"deg)"):d(this).find(".action-icon-acc").css("transform","")}}),u.off("click",".advanced-list-wrapper .main-title-text-block .search-block .search_icon").on("click",".advanced-list-wrapper .main-title-text-block .search-block .search_icon",function(t){d(this).parent().find(".input_text").removeClass("hide"),d(this).parent().find(".close_icon").removeClass("hide")}),u.off("click",".advanced-list-wrapper .main-title-text-block .search-block .close_icon").on("click",".advanced-list-wrapper .main-title-text-block .search-block .close_icon",function(t){var e;d(this).parent().find(".input_text").val(""),"nav"==d(r).data().message[0].component.payload.listViewType?(e=d(this).parent().parent().parent().find(".callendar-tabs .month-tab.active-month"),e=d(e).attr("id"),d(this).parent().parent().parent().find(".multiple-accor-rows#"+e).filter(function(){d(this).hasClass("hide")||d(this).css({display:"block"})})):d(this).parent().parent().parent().find(".multiple-accor-rows").filter(function(){d(this).hasClass("hide")||d(this).css({display:"block"})}),d(this).parent().find(".input_text").addClass("hide"),d(this).parent().find(".close_icon").addClass("hide")}),u.off("click",".advanced-list-wrapper .main-title-text-block .search-block .input_text").on("keyup",".advanced-list-wrapper .main-title-text-block .search-block .input_text",function(t){var e,n=d(this).val().toLowerCase();"nav"==d(r).data().message[0].component.payload.listViewType?(e=d(this).parent().parent().parent().find(".callendar-tabs .month-tab.active-month"),e=d(e).attr("id"),d(this).parent().parent().parent().find(".multiple-accor-rows#"+e).filter(function(){d(this).toggle(-1<d(this).find(".accor-header-top .title-text").text().toLowerCase().indexOf(n))})):d(this).parent().parent().parent().find(".multiple-accor-rows").filter(function(){d(this).toggle(-1<d(this).find(".accor-header-top .title-text").text().toLowerCase().indexOf(n))})}),u.off("click",".advanced-list-wrapper .main-title-text-block .filter-sort-block .sort-icon").on("click",".advanced-list-wrapper .main-title-text-block .filter-sort-block .sort-icon",function(t){var e=this,n=d(e).parent().parent().parent().find(".see-more-data");d(e).attr("type")&&"asc"!=d(e).attr("type")?"desc"==d(e).attr("type")&&(d(e).attr("type","asc"),n&&n.length?d(e).parent().parent().parent().find(".multiple-accor-rows").sort(function(t,e){return d(t).find(".accor-header-top .title-text").text()>d(e).find(".accor-header-top .title-text").text()?-1:1}).insertBefore(d(e).parent().parent().parent().find(".see-more-data")):d(e).parent().parent().parent().find(".multiple-accor-rows").sort(function(t,e){return d(t).find(".accor-header-top .title-text").text()>d(e).find(".accor-header-top .title-text").text()?-1:1}).appendTo(d(e).parent().parent().parent())):(d(e).attr("type","desc"),n&&n.length?d(e).parent().parent().parent().find(".multiple-accor-rows").sort(function(t,e){return d(t).find(".accor-header-top .title-text").text()<d(e).find(".accor-header-top .title-text").text()?-1:1}).insertBefore(d(e).parent().parent().parent().find(".see-more-data")):d(e).parent().parent().parent().find(".multiple-accor-rows").sort(function(t,e){return d(t).find(".accor-header-top .title-text").text()<d(e).find(".accor-header-top .title-text").text()?-1:1}).appendTo(d(e).parent().parent().parent()))}),u.off("click",".advanced-list-wrapper .see-more-data").on("click",".advanced-list-wrapper .see-more-data",function(t){var e,n,i,a=d(r).data();if(a&&a.message[0]&&a.message[0].component&&a.message[0].component.payload&&"slider"===a.message[0].component.payload.seeMoreAction)0!==d(".list-template-sheet").length?d(".list-template-sheet").remove():0===d(".list-template-sheet").length&&(a.message[0].component.payload.seeMore&&(a.message[0].component.payload.seeMore=!1,a.message[0].component.payload.listItemDisplayCount=l.message[0].component.payload.listItems.length),l.message[0].component.payload.sliderView||(l.message[0].component.payload.sliderView=!0),messageHtml=d(c.prototype.getChatTemplate("advancedListTemplate")).tmpl({msgData:a,helpers:helpers}),d(messageHtml).find(".advanced-list-wrapper .extra-info").hide(),bottomSliderAction("show",messageHtml),c.prototype.advancedListTemplateEvents(messageHtml,a));else if(a&&a.message[0]&&a.message[0].component&&a.message[0].component.payload&&"inline"===a.message[0].component.payload.seeMoreAction){e=a&&a.message[0]&&a.message[0].component&&a.message[0].component.payload&&"button"===a.message[0].component.payload.listViewType?d(r).find(".tag-name.hide"):d(r).find(".multiple-accor-rows.hide");for(var o=0;o<e.length;o++)d(e[o]).hasClass("hide")&&d(e[o]).removeClass("hide");d(r).find(".see-more-data").addClass("hide")}else a&&a.message[0]&&a.message[0].component&&a.message[0].component.payload&&"modal"===a.message[0].component.payload.seeMoreAction&&(n=document.getElementById("myPreviewModal"),d(".largePreviewContent").empty(),n.style.display="block",i=document.getElementsByClassName("closeElePreview")[0],d(i).addClass("hide"),a.message[0].component.payload.seeMore&&(a.message[0].component.payload.seeMore=!1,a.message[0].component.payload.openPreviewModal=!0,a.message[0].component.payload.listItemDisplayCount=l.message[0].component.payload.listItems.length+1),messageHtml=d(c.prototype.getChatTemplate("advancedListTemplate")).tmpl({msgData:a,helpers:helpers}),d(messageHtml).find(".advanced-list-wrapper .extra-info").hide(),d(".largePreviewContent").append(messageHtml),document.getElementsByClassName("advancedlist-template-close")[0].onclick=function(){n.style.display="none",d(".largePreviewContent").removeClass("addheight")},d(".largePreviewContent .fromOtherUsers ").css("list-style","none"),c.prototype.advancedListTemplateEvents(messageHtml,a));for(var s=u.find(".advanced-list-wrapper .more-button-info"),o=0;o<s.length;o++)d(s[o]).is(":visible")&&d(s[o]).toggle(300)}),u.off("click",".advanced-list-wrapper .close-btn").on("click",".advanced-list-wrapper .close-btn",function(t){bottomSliderAction("hide"),t.stopPropagation()}),u.off("click",".advanced-list-wrapper .multiple-accor-rows .accor-inner-content .inner-btns-acc .more-btn").on("click",".advanced-list-wrapper .multiple-accor-rows .accor-inner-content .inner-btns-acc .more-btn",function(t){t.stopPropagation();t=d(this).attr("actionObj"),t=JSON.parse(t);if(t&&"dropdown"==t.seeMoreAction||t&&!t.seeMoreAction)d(this).parent().find(".more-button-info")&&d(this).parent().find(".more-button-info").toggle(300);else if(t&&"inline"==t.seeMoreAction){for(var e=d(this).parent(),n=d(e).find(".button_.hide"),i=0;i<n.length;i++)d(n[i]).hasClass("hide")&&d(n[i]).removeClass("hide");d(e).find(".more-btn").addClass("hide")}else t&&"slider"==t.seeMoreAction&&((e=d('<div class="advancelisttemplate"></div>')).append('<div class="TaskPickerContainer">\t\t\t\t<div class="taskMenuHeader">\t\t\t\t\t <button class="closeSheet close-button" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button> \t\t\t\t   <label class="taskHeading"> '+t.title+" </label>\t\t\t\t</div>"),e.find(".TaskPickerContainer").append(function(t){var e=d('<div class="inner-btns-acc if-full-width-btn"></div>');t&&t.buttons&&t.buttons.forEach(function(t){t=d('<button class="button_" type="'+t.type+'" title="'+t.title+'" value="'+t.payload+'" ><img src="'+t.icon+'">'+t.title+"</button>");e.append(t)});return e}(t)),d(".kore-action-sheet").hasClass("hide")?bottomSliderAction("show",e):(d(".kore-action-sheet").find(".actionSheetContainer").empty(),d(".kore-action-sheet").find(".actionSheetContainer").append(e)),e.off("click",".inner-btns-acc .button_").on("click",".inner-btns-acc .button_",function(t){var e=d(this).attr("type");if("postback"==(e=e&&e.toLowerCase())||"text"==e){d(".chatInputBox").text(d(this).attr("actual-value")||d(this).attr("value"));var n,i=d(this)[0].innerText.trim()||d(this).attr("data-value").trim();d(".largePreviewContent .advanced-list-wrapper")&&(n=document.getElementById("myPreviewModal"),d(".largePreviewContent").empty(),n.style.display="none",d(".largePreviewContent").removeClass("addheight")),bottomSliderAction("hide"),chatInitialize.sendMessage(d(".chatInputBox"),i),u.find(".advanced-list-wrapper").css({"pointer-events":"none"})}else if("url"==e||"web_url"==e){if(void 0!==d(this).attr("msgData")){try{a=JSON.parse(d(this).attr("msgData"))}catch(t){}if(a&&a.message&&a.message[0].component&&(a.message[0].component.formData||a.message[0].component.payload&&a.message[0].component.payload.formData))return a.message[0].component.formData&&(a.message[0].component.payload.formData=a.message[0].component.formData),void chatInitialize.renderWebForm(a)}var a=d(this).attr("url");a.indexOf("http:")<0&&a.indexOf("https:")<0&&(a="http:////"+a),chatInitialize.openExternalLink(a)}}),document.getElementById("myPreviewModal").style.display="none",d(".largePreviewContent").empty())}),u.off("click",".advanced-list-wrapper .multiple-accor-rows .accor-inner-content .inner-btns-acc .more-button-info .close_btn,.filter-icon .close_btn").on("click",".advanced-list-wrapper .multiple-accor-rows .accor-inner-content .inner-btns-acc .more-button-info .close_btn,.filter-icon .close_btn",function(t){t.stopPropagation(),d(this).parent()&&d(this).parent().toggle(300)}),u.off("click",".advanced-list-wrapper .multiple-accor-rows .accor-header-top .btn_block.dropdown,.filter-icon").on("click",".advanced-list-wrapper .multiple-accor-rows .accor-header-top .btn_block.dropdown,.filter-icon",function(t){t.stopPropagation(),d(this).find(".more-button-info")&&d(this).find(".more-button-info").toggle(300)}),d(".kore-action-sheet").off("click",".advancelisttemplate .TaskPickerContainer .close-button").on("click",".advancelisttemplate .TaskPickerContainer .close-button",function(t){bottomSliderAction("hide")}),u.off("click",".advanced-list-wrapper .multiple-accor-rows .inner-acc-table-sec .table-sec .column-table-more").on("click",".advanced-list-wrapper .multiple-accor-rows .inner-acc-table-sec .table-sec .column-table-more",function(t){var e=document.getElementById("myPreviewModal");d(".largePreviewContent").empty(),e.style.display="block",document.getElementsByClassName("closeElePreview")[0].onclick=function(){e.style.display="none",d(".largePreviewContent").empty(),d(".largePreviewContent").removeClass("addheight")};t=d(t.currentTarget).closest(".multiple-accor-rows"),t=d(t).attr("actionObj"),t=JSON.parse(t);d(".largePreviewContent").append(d('<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t\t\t\t<div class="advanced-list-wrapper img-with-title with-accordion if-multiple-accordions-list">\t\t\t\t\t<div class="multiple-accor-rows">\t\t\t\t\t\t\t<div class="accor-inner-content">\t\t\t\t\t\t\t\t\t<div class="inner-acc-table-sec">\t\t\t\t\t\t\t\t\t\t{{each(i,list) listItem.tableListData}}\t\t\t\t\t\t\t\t\t\t\t{{if list.rowData && list.rowData.length}}\t\t\t\t\t\t\t\t\t\t\t\t<div class="table-sec {{if listItem.type && listItem.type == "column"}}if-label-table-columns{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(key,row) list.rowData}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if !row.icon}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="header-name">${row.title}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name">${row.description}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{else}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="labeld-img-block {{if row.iconSize}}${row.iconSize}{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${row.icon}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="label-content">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="header-name">${row.title}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name">${row.description}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t</div>\t\t\t<\/script>').tmpl({listItem:t})),d(".largePreviewContent")&&(d(".largePreviewContent").find(".multiple-accor-rows").css({"border-bottom":"0"}),d(".largePreviewContent").find(".accor-inner-content").css({display:"block"}))}),u.off("click",".advanced-list-wrapper .button_,.advanced-list-wrapper .inner-btns-acc .button_,.advanced-list-wrapper .tags-data .tag-name,.advanced-list-wrapper .btn_group .submitBtn,.advanced-list-wrapper .btn_group .cancelBtn,.advanced-list-wrapper .details-content .text-info,.advancelisttemplate .inner-btns-acc .button_,.advancelisttemplate .filter-icon .button_").on("click",".advanced-list-wrapper .button_,.advanced-list-wrapper .inner-btns-acc .button_,.advanced-list-wrapper .tags-data .tag-name,.advanced-list-wrapper .btn_group .submitBtn,.advanced-list-wrapper .btn_group .cancelBtn,.advanced-list-wrapper .details-content .text-info,.advancelisttemplate .inner-btns-acc .button_,.advancelisttemplate .filter-icon .button_",function(t){t.preventDefault(),t.stopPropagation();var e=d(this).attr("type");if("postback"==(e=e&&e.toLowerCase())||"text"==e){d(".chatInputBox").text(d(this).attr("actual-value")||d(this).attr("value"));var n,i=d(this)[0].innerText.trim()||d(this).attr("data-value").trim();d(".largePreviewContent .advanced-list-wrapper")&&(n=document.getElementById("myPreviewModal"),d(".largePreviewContent").empty(),n.style.display="none",d(".largePreviewContent").removeClass("addheight")),bottomSliderAction("hide"),chatInitialize.sendMessage(d(".chatInputBox"),i),u.find(".advanced-list-wrapper").css({"pointer-events":"none"})}else if("url"==e||"web_url"==e){if(void 0!==d(this).attr("msgData")){try{a=JSON.parse(d(this).attr("msgData"))}catch(t){}if(a&&a.message&&a.message[0].component&&(a.message[0].component.formData||a.message[0].component.payload&&a.message[0].component.payload.formData))return a.message[0].component.formData&&(a.message[0].component.payload.formData=a.message[0].component.formData),void chatInitialize.renderWebForm(a)}var a=d(this).attr("url");a.indexOf("http:")<0&&a.indexOf("https:")<0&&(a="http:////"+a),chatInitialize.openExternalLink(a)}if(t.currentTarget.classList&&0<t.currentTarget.classList.length&&"submitBtn"===t.currentTarget.classList[0]){for(var o=d(t.currentTarget.parentElement.parentElement).find(".option-input:checked"),s=[],r=[],l=0;l<o.length;l++)s.push(d(o[l]).attr("value")),r.push(d(o[l]).attr("text"));s&&s.length?d(".chatInputBox").text(d(this).attr("title")+": "+s.toString()):d(".chatInputBox").text(d(this).attr("title")),chatInitialize.sendMessage(d(".chatInputBox"),r.toString()),u.find(".advanced-list-wrapper").css({"pointer-events":"none"}),bottomSliderAction("hide")}if(t.currentTarget.classList&&0<t.currentTarget.classList.length&&"cancelBtn"===t.currentTarget.classList[0])for(o=d(t.currentTarget.parentElement.parentElement).find(".option-input:checked"),s=[],r=[],l=0;l<o.length;l++)d(o[l]).prop("checked",!1),o[l].parentElement.classList.contains("selected-item")&&o[l].parentElement.classList.remove("selected-item");for(var c=u.find(".advanced-list-wrapper .more-button-info"),l=0;l<c.length;l++)d(c[l]).is(":visible")&&d(c[l]).toggle(300)})},c.prototype.cardTemplateEvents=function(o,t){chatInitialize=this.chatInitialize,helpers=this.helpers,d(o).off("click",".card-template .card-body .card-text-action .card-action-data,.icon").on("click",".card-template .card-body .card-text-action .card-action-data,.icon",function(t){var e=d(this).parent().attr("actionObj"),e=JSON.parse(e);console.log(e),t.stopPropagation(),e.type&&"dropdown"==e.type&&d(this).parent().find(".more-button-info")&&d(this).parent().find(".more-button-info").toggle(300)}),d(o).off("click",".card-template .card-body .more-button-info .close_btn").on("click",".card-template .card-body .more-button-info .close_btn",function(t){t.stopPropagation(),d(this).parent().parent().find(".more-button-info")&&d(this).parent().parent().find(".more-button-info").toggle(300)}),d(o).off("click",".card-template .card-body,.card-template .card-body .card-btn,.card-template .card-body .card-text-desc").on("click",".card-template .card-body,.card-template .card-body .card-btn,.card-template .card-body .card-text-desc",function(t){t.stopPropagation();var e,n,i,a,t=d(this).attr("type");"postback"==(t=t&&t.toLowerCase())||"text"==t?((n=d(this).attr("actionObj"))?((i=JSON.parse(n))&&(e=i.default_action.payload,d(".chatInputBox").text(e),e=i&&i.default_action&&i.default_action.title?i.default_action.title:d(this)[0].innerText.trim()||d(this).attr("data-value").trim()),chatInitialize.sendMessage(d(".chatInputBox"),e)):(d(".chatInputBox").text(d(this).attr("actual-value")||d(this).attr("value")),e=d(this)[0].innerText.trim()||d(this).attr("data-value").trim(),chatInitialize.sendMessage(d(".chatInputBox"),e)),d(o).find(".card-template").css({"pointer-events":"none"})):"action"==t?(n=d(this).attr("actionObj"),i=JSON.parse(n),a=document.getElementById("myPreviewModal"),d(".largePreviewContent").empty(),a.style.display="block",document.getElementsByClassName("closeElePreview")[0].onclick=function(){a.style.display="none",d(".largePreviewContent").empty(),d(".largePreviewContent").removeClass("addheight"),d(".largePreviewContent").removeClass("card-template-modal")},d(".largePreviewContent").append(d('<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t\t\t\t\t<div class="card-template">\t\t\t\t\t\t<div class="card-body" {{if (card && card.cardStyles)}}style="{{each(styleKey,style) card.cardStyles}}${styleKey} : ${style};{{/each}}"{{/if}} {{if card.type}}type="${card.type}{{/if}}" actionObj="${JSON.stringify(card)}">\t\t\t\t\t\t\t{{if card && card.cardHeading && (!card.cardHeading.icon && !card.cardHeading.description)}}\t\t\t\t\t\t\t\t<div class="card-title" {{if card && card.cardHeading && card.cardHeading.headerStyles}}style="{{each(styleKey,style) card.cardHeading.headerStyles}}${styleKey} : ${style};{{/each}}"{{/if}}>${card.cardHeading.title}</div>\t\t\t\t\t\t\t\t{{else (card && card.cardHeading && (card.cardHeading.icon || card.cardHeading.description))}}\t\t\t\t\t\t\t\t\t<div class="card-title-block {{if card && !card.cardDescription}}left-border{{/if}}" {{if card && card.cardHeading && card.cardHeading.headerStyles}}style="{{each(styleKey,style) card.cardHeading.headerStyles}}${styleKey} : ${style};{{/each}}"{{/if}}>\t\t\t\t\t\t\t\t\t\t{{if card && card.cardHeading && card.cardHeading.icon}}\t\t\t\t\t\t\t\t\t\t\t<div class="card-block-img {{if card && card.cardHeading && card.cardHeading.iconSize}}${card.cardHeading.iconSize}{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t<img src="${card.cardHeading.icon}"/>\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t<div class="card-block" {{if (card && card.cardContentStyles && !card.cardDescription)}}style="{{each(styleKey,style) card.cardContentStyles}}${styleKey} : ${style};{{/each}}"{{/if}}>\t\t\t\t\t\t\t\t\t\t\t{{if card && card.cardHeading && card.cardHeading.title}}\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-text {{if (card && card.cardHeading && card.cardHeading.headerExtraInfo)}}card-text-overflow {{/if}}" title="${card.cardHeading.title}">{{html helpers.convertMDtoHTML(card.cardHeading.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t{{if card && card.cardHeading && card.cardHeading.description}}\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-desc">{{html helpers.convertMDtoHTML(card.cardHeading.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{if (card && card.cardHeading && card.cardHeading.headerExtraInfo)}}\t\t\t\t\t\t\t\t\t\t\t<span class="card-text-action" actionObj="${JSON.stringify(card.cardHeading.headerExtraInfo)}">{{if card && card.cardHeading && card.cardHeading.headerExtraInfo &&  card.cardHeading.headerExtraInfo.title}}<span class="card-action-data">${card.cardHeading.headerExtraInfo.title}</span>{{/if}}{{if (card && card.cardHeading && card.cardHeading.headerExtraInfo &&  card.cardHeading.headerExtraInfo.icon)}}<img src="${card.cardHeading.headerExtraInfo.icon}" class="icon"/>{{/if}}\t\t\t\t\t\t\t\t\t\t\t{{if (card && card.cardHeading && card.cardHeading.headerExtraInfo && card.cardHeading.headerExtraInfo.type === "dropdown")}}\t\t\t\t\t\t\t\t\t\t\t<ul  class="more-button-info hide" style="list-style:none;">\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="close_btn" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button>\t\t\t\t\t\t\t\t\t\t\t\t\t{{if (card && card.cardHeading && card.cardHeading.headerExtraInfo && card.cardHeading.headerExtraInfo.dropdownOptions && card.cardHeading.headerExtraInfo.dropdownOptions.length)}}\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(optionKeykey, option) card.cardHeading.headerExtraInfo.dropdownOptions}} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li><button class="button_" value="${option.payload}" {{if option && option.type}}type="${option.type}"{{/if}}>{{if option && option.icon}}<img src="${option.icon}">{{/if}}{{html helpers.convertMDtoHTML(option.title, "bot")}}</button></li>\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t</ul>\t\t\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{if card && card.cardDescription && card.cardDescription.length}}\t\t\t\t\t\t\t\t<div class="card-data" {{if card && card.cardContentStyles }}style="{{each(styleKey,style) card.cardContentStyles}}${styleKey} : ${style};{{/each}}"{{/if}}>\t\t\t\t\t\t\t\t\t<div class="card-data-list {{if (card && card.cardType == "list")}}card-display-flex{{/if}}">\t\t\t\t\t\t\t\t\t{{each(i,desc) card.cardDescription}}\t\t\t\t\t\t\t\t\t{{if ((card && card.cardType != "list") || card && !card.cardHeading)}}\t\t\t\t\t\t\t\t\t\t<div class="card-text">\t\t\t\t\t\t\t\t\t\t\t{{if desc && desc.icon}}\t\t\t\t\t\t\t\t\t\t\t\t<span class="card-text-icon"><img src="${desc.icon}" /></span>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t{{if desc && desc.title}}\t\t\t\t\t\t\t\t\t\t\t\t<span class="card-text-desc"  {{if desc.type}}type="${desc.type}"{{/if}} title="${desc.title}">{{html helpers.convertMDtoHTML(desc.title, "bot")}}</span>\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{else (card && card.cardType == "list")}}\t\t\t\t\t\t\t\t\t\t\t<div class="card-block-text">\t\t\t\t\t\t\t\t\t\t\t\t{{if desc && desc.description}}\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-desc">{{html helpers.convertMDtoHTML(desc.description, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t{{if desc && desc.title}}\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-text" title="${desc.title}">{{html helpers.convertMDtoHTML(desc.title, "bot")}}</div>\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t{{if false}}\t\t\t\t\t\t\t\t\t<div class="card-text icon"><span class="card-text-action"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAHCAYAAAA8sqwkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABdSURBVHgBjctNDYAwDIbhNkUAoKAZCOCIHBwhASzgCAfDQelhh2Xrfr5Tkz4vgDF2y8VuPa0fWRgEDz33cZ748/4pBhEOwy2NqIztiOo4j7CN407uQTGDyNsVqP0BaHUk0IS2sYcAAAAASUVORK5CYII="></span></div>\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t{{if card && card.buttons && card.buttons.length}}\t\t\t\t\t\t\t\t\t<div class="card-data-btn btn-info">\t\t\t\t\t\t\t\t\t{{each(buttonKey,button) card.buttons}}\t\t\t\t\t\t\t\t\t\t\t<button class="card-btn" type="${button.type}" {{if button && button.buttonStyles }}style="{{each(styleKey,style) button.buttonStyles}}${styleKey} : ${style};{{/each}}"{{/if}} title="${button.title}">{{html helpers.convertMDtoHTML(button.title, "bot")}}</button>\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t<\/script>').tmpl({card:i})),d(".largePreviewContent").addClass("card-template-modal")):"url"!==t&&"web_url"!=t||((t=d(this).attr("title")).indexOf("http:")<0&&t.indexOf("https:")<0&&(t="http:////"+t),chatInitialize.openExternalLink(t))})},c.prototype.proposeTimesTemplateBindEvents=function(t,e){this.chatInitialize&&(chatInitialize=this.chatInitialize),this.helpers&&(helpers=this.helpers);var n=d(t);d(t).data();n.off("click",".action-buttons .propoese-element-button,.propose-template .propse-times-elements .element").on("click",".action-buttons .propoese-element-button,.propose-template .propse-times-elements .element",function(t){t.preventDefault(),t.stopPropagation();var t=d(this).attr("type");"postback"!==(t=t&&t.toLowerCase())?function(){var t=n.data(),e=d(c.prototype.getChatTemplate("proposeActionSheetTemplate")).tmpl({msgData:t,data:t.message[0].component.payload.moreOptions[0],helpers:helpers});(function(o,s){var e=this;d(o).off("click",".close-button").on("click",".close-button",function(t){e.bottomSliderAction("hide")}),d(o).off("click",".header-tabs .tab-title").on("click",".header-tabs .tab-title",function(t){for(var e=this.getAttribute("id"),n=d(o).find(".header-tabs .tab-title"),i=this.getAttribute("actionObj"),a=0;a<n.length;a++)d(n[a]).removeClass("active-tab");d(this).addClass("active-tab");i=JSON.parse(i),i=d(c.prototype.getChatTemplate("proposeActionSheetTemplate")).tmpl({msgData:s,data:i,helpers:helpers});d(".kore-action-sheet .propose-action-sheet-template .tab-container").html(d(i).find(".tab-container")),d(".kore-action-sheet .propose-action-sheet-template").find("#"+e).addClass("active-tab")}),d(o).off("click",".tab-container .tab-content .tab-elements .option").on("click",".tab-container .tab-content .tab-elements .option",function(t){d(this).find(".option-input").prop("checked")?(d(this).hasClass("selected-item")&&d(this).removeClass("selected-item"),d(this).find(".option-input").prop("checked",!1)):(d(this).find(".option-input").prop("checked",!0),d(this).addClass("selected-item"))}),d(o).off("click",".tab-container .tab-content .action-buttons .s-button").on("click",".tab-container .tab-content .action-buttons .s-button",function(t){for(var e=d(this).closest(".tab-content").find(".tab-elements .kr_sg_checkbox"),n=0;n<e.length;n++)d(e[n]).hasClass("selected-item")&&d(e[n]).removeClass("selected-item"),d(e[n]).find(".option-input").prop("checked")&&d(e[n]).find(".option-input").prop("checked",!1)}),d(o).off("click",".tab-container .tab-content .action-buttons .p-button").on("click",".tab-container .tab-content .action-buttons .p-button",function(t){for(var e=[],n=[],i=d(this).closest(".tab-content").find(".tab-elements .kr_sg_checkbox .option-input:checked"),a=0;a<i.length;a++)e.push(d(i[a]).attr("value")),n.push(d(i[a]).attr("text"));e&&e.length?d(".chatInputBox").text(d(this).attr("title")+": "+e.toString()):d(".chatInputBox").text(d(this).attr("title")),chatInitialize.sendMessage(d(".chatInputBox"),n.toString()),bottomSliderAction("hide")})})(e,t),d(".kore-action-sheet").empty(),d(".kore-action-sheet").append(e),d(".kore-action-sheet .list-template-sheet").removeClass("hide");e=d(".kore-action-sheet .propose-action-sheet-template").find(".header-tabs .tab-title");d(e[0]).addClass("active-tab"),this.bottomSliderAction("show",d(".list-template-sheet"))}():"postback"==t&&(d(".chatInputBox").text(d(this).attr("actual-value")||d(this).attr("value")),t=d(this)[0].innerText.trim()||d(this).attr("data-value").trim(),chatInitialize.sendMessage(d(".chatInputBox"),t),n.find(".propose-template").css({"pointer-events":"none"}))})},c.prototype.defaultCardTemplateEvents=function(t,e){chatInitialize=this.chatInitialize,helpers=this.helpers;var u=d(t);d(t).data();u.off("click",".default-card-elements .element-content .accor-inner-content .inner-btns-acc .more-btn").on("click",".default-card-elements .element-content .accor-inner-content .inner-btns-acc .more-btn",function(t){t.stopPropagation();t=d(this).attr("actionObj"),t=JSON.parse(t);if(t&&"dropdown"==t.seeMoreAction||t&&!t.seeMoreAction)d(this).parent().find(".more-button-info")&&d(this).parent().find(".more-button-info").toggle(300);else if(t&&"inline"==t.seeMoreAction){for(var e=d(this).parent(),n=d(e).find(".button_.hide"),i=0;i<n.length;i++)d(n[i]).hasClass("hide")&&d(n[i]).removeClass("hide");d(e).find(".button_.more-btn").addClass("hide")}else t&&"slider"==t.seeMoreAction&&((e=d('<div class="default-cardtmplate"></div>')).append(sliderHeader(t)),e.find(".TaskPickerContainer").append(sliderContent(t)),d(".kore-action-sheet").hasClass("hide")?bottomSliderAction("show",e):(d(".kore-action-sheet").find(".actionSheetContainer").empty(),d(".kore-action-sheet").find(".actionSheetContainer").append(e)),sliderButtonEvents(e),document.getElementById("myPreviewModal").style.display="none",d(".largePreviewContent").empty())}),u.off("click",".default-card-elements .element-content .accor-inner-content .inner-btns-acc .more-button-info .close_btn").on("click",".default-card-elements .element-content .accor-inner-content .inner-btns-acc .more-button-info .close_btn",function(t){t.stopPropagation(),d(this).parent()&&d(this).parent().toggle(300)}),u.off("click",".default-card-elements .button_,.default-card-elements .inner-btns-acc .button_,.default-card-elements .tags-data .tag-name,.default-card-elements .btn_group .submitBtn,.default-card-elements .btn_group .cancelBtn,.default-card-elements .details-content .text-info,.default-card-elements .inner-btns-acc .button_,.default-card-elements .filter-icon .button_").on("click",".default-card-elements .button_,.default-card-elements .inner-btns-acc .button_,.advanced-list-wrapper .tags-data .tag-name,.default-card-elements .btn_group .submitBtn,.default-card-elements .btn_group .cancelBtn,.default-card-elements .details-content .text-info,.advancelisttemplate .inner-btns-acc .button_,.advancelisttemplate .filter-icon .button_",function(t){t.preventDefault(),t.stopPropagation();var e=d(this).attr("type");if("postback"==(e=e&&e.toLowerCase())||"text"==e){d(".chatInputBox").text(d(this).attr("actual-value")||d(this).attr("value"));var n,i=d(this)[0].innerText.trim()||d(this).attr("data-value").trim();d(".largePreviewContent .default-card-elements")&&(n=document.getElementById("myPreviewModal"),d(".largePreviewContent").empty(),n.style.display="none",d(".largePreviewContent").removeClass("addheight")),bottomSliderAction("hide"),chatInitialize.sendMessage(d(".chatInputBox"),i),u.find(".default-card-elements").css({"pointer-events":"none"})}else if("url"==e||"web_url"==e){if(void 0!==d(this).attr("msgData")){try{a=JSON.parse(d(this).attr("msgData"))}catch(t){}if(a&&a.message&&a.message[0].component&&(a.message[0].component.formData||a.message[0].component.payload&&a.message[0].component.payload.formData))return a.message[0].component.formData&&(a.message[0].component.payload.formData=a.message[0].component.formData),void chatInitialize.renderWebForm(a)}var a=d(this).attr("url");a.indexOf("http:")<0&&a.indexOf("https:")<0&&(a="http:////"+a),chatInitialize.openExternalLink(a)}if(t.currentTarget.classList&&0<t.currentTarget.classList.length&&"submitBtn"===t.currentTarget.classList[0]){for(var o=d(t.currentTarget.parentElement.parentElement).find(".option-input:checked"),s=[],r=[],l=0;l<o.length;l++)s.push(d(o[l]).attr("value")),r.push(d(o[l]).attr("text"));s&&s.length?d(".chatInputBox").text(d(this).attr("title")+": "+s.toString()):d(".chatInputBox").text(d(this).attr("title")),chatInitialize.sendMessage(d(".chatInputBox"),r.toString()),u.find(".default-card-elements").css({"pointer-events":"none"}),bottomSliderAction("hide")}if(t.currentTarget.classList&&0<t.currentTarget.classList.length&&"cancelBtn"===t.currentTarget.classList[0])for(o=d(t.currentTarget.parentElement.parentElement).find(".option-input:checked"),s=[],r=[],l=0;l<o.length;l++)d(o[l]).prop("checked",!1),o[l].parentElement.classList.contains("selected-item")&&o[l].parentElement.classList.remove("selected-item");for(var c=u.find(".default-card-elements .more-button-info"),l=0;l<c.length;l++)d(c[l]).is(":visible")&&d(c[l]).toggle(300)}),u.off("click",".default-card-elements .btn_block.dropdown").on("click",".default-card-elements .btn_block.dropdown",function(t){t.stopPropagation(),d(this).find(".more-button-info")&&d(this).find(".more-button-info").toggle(300)})},c.prototype.advancedMultiListTemplateEvents=function(r,l){this.chatInitialize&&(chatInitialize=this.chatInitialize),this.helpers&&(helpers=this.helpers);var u=d(r);d(r).data();if("nav"==l.message[0].component.payload.listViewType){var t,e=l.message[0].component.payload.navHeaders;l.message[0].component.payload.navHeaders&&l.message[0].component.payload.navHeaders.length&&(t=l.message[0].component.payload.navHeaders[0],u.find(".month-tab#"+t.id).addClass("active-month"));for(var n=0;n<e.length;n++)e[n].id!=t.id&&u.find(".multiple-accor-rows#"+e[n].id).addClass("hide")}u.off("click",".advanced-multi-list-wrapper .callendar-tabs .month-tab").on("click",".advanced-multi-list-wrapper .callendar-tabs .month-tab",function(t){var e=d(r).data(),n=t.currentTarget.id;if(e&&"nav"==e.message[0].component.payload.listViewType&&e.message[0].component.payload.navHeaders){for(var i=e.message[0].component.payload.navHeaders,a=0;a<i.length;a++)n!=i[a].id&&(u.find(".advanced-multi-list-wrapper .multiple-accor-rows#"+i[a].id).hasClass("hide")||(u.find(".advanced-multi-list-wrapper .advanced-multi-list-wrapper .multiple-accor-rows#"+i[a].id).addClass("hide"),u.find(".advanced-multi-list-wrapper .multiple-accor-rows#"+i[a].id).css({display:"none"})));for(a=0;a<i.length;a++)i[a].id==n?u.find(".advanced-multi-list-wrapper .month-tab#"+i[a].id).addClass("active-month"):i[a].id!=n&&u.find(".advanced-multi-list-wrapper .month-tab#"+i[a].id).removeClass("active-month")}u.find(".advanced-multi-list-wrapper .multiple-accor-rows#"+n).addClass("hide")&&(u.find(".advanced-multi-list-wrapper .multiple-accor-rows#"+n).removeClass("hide"),u.find(".advanced-multi-list-wrapper .multiple-accor-rows#"+n).css({display:"block"}))}),u.off("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-inner-content .option").on("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-inner-content .option",function(t){t.preventDefault(),t.stopPropagation(),"radio"==d(this).find(".option-input").attr("type")&&d(this).parent().find(".option.selected-item").removeClass("selected-item"),d(this).find(".option-input").prop("checked")?(d(this).hasClass("selected-item")&&d(this).removeClass("selected-item"),d(this).find(".option-input").prop("checked",!1)):(d(this).find(".option-input").prop("checked",!0),d(this).addClass("selected-item"))}),u.off("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-inner-content .option .option-input").on("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-inner-content .option .option-input",function(t){var e=t.currentTarget.id;t.stopPropagation(),t.preventDefault(),d("#"+e).prop("checked")?(d(this).parent().hasClass("selected-item")&&d(this).parent().removeClass("selected-item"),d("#"+e).prop("checked",!1)):(d("#"+e).prop("checked",!0),d(this).parent().addClass("selected-item"))}),u.off("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-header-top").on("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-header-top",function(t){var e,n=t.currentTarget.parentElement,i=n.children[1].childElementCount,t=d(t.currentTarget).parent().attr("actionObj"),a=JSON.parse(t),t=n.getAttribute("type");if(t&&"postback"==t||"text"==t){d(".chatInputBox").text(a.payload||a.title);n=a.renderMessage||a.title;chatInitialize.sendMessage(d(".chatInputBox"),n),u.find(".advanced-multi-list-wrapper").css({"pointer-events":"none"})}else if(t&&"url"==t||"web_url"==t){if(void 0!==d(this).attr("msgData")){try{o=JSON.parse(d(this).attr("msgData"))}catch(t){}if(o&&o.message&&o.message[0].component&&(o.message[0].component.formData||o.message[0].component.payload&&o.message[0].component.payload.formData))return o.message[0].component.formData&&(o.message[0].component.payload.formData=o.message[0].component.formData),void chatInitialize.renderWebForm(o)}var o=a.url;o.indexOf("http:")<0&&o.indexOf("https:")<0&&(o="http:////"+o),chatInitialize.openExternalLink(o)}else if(0<i&&a.isAccordian&&(d(this).find(".action-icon-acc").toggleClass("rotate-icon"),d(this).closest(".multiple-accor-rows").find(".accor-inner-content").toggle(300)),a&&a.headerOptions&&a.headerOptions.length){for(var s=0;s<a.headerOptions.length;s++){var r=a.headerOptions[s];r&&"icon"===r.type&&r.iconRotation&&(e=r.iconRotation)}d(this).find(".action-icon-acc").hasClass("rotate-icon")?d(this).find(".action-icon-acc.rotate-icon").css("transform","rotate("+e+"deg)"):d(this).find(".action-icon-acc").css("transform","")}}),u.off("click",".advanced-multi-list-wrapper .main-title-text-block .search-block .search_icon").on("click",".advanced-multi-list-wrapper .main-title-text-block .search-block .search_icon",function(t){d(this).parent().find(".input_text").removeClass("hide"),d(this).parent().find(".close_icon").removeClass("hide")}),u.off("click",".advanced-multi-list-wrapper .main-title-text-block .search-block .close_icon").on("click",".advanced-multi-list-wrapper .main-title-text-block .search-block .close_icon",function(t){var e;d(this).parent().find(".input_text").val(""),"nav"==d(r).data().message[0].component.payload.listViewType?(e=d(this).parent().parent().parent().find(".callendar-tabs .month-tab.active-month"),e=d(e).attr("id"),d(this).parent().parent().parent().find(".multiple-accor-rows#"+e).filter(function(){d(this).hasClass("hide")||d(this).css({display:"block"})})):d(this).parent().parent().parent().find(".multiple-accor-rows").filter(function(){d(this).hasClass("hide")||d(this).css({display:"block"})}),d(this).parent().find(".input_text").addClass("hide"),d(this).parent().find(".close_icon").addClass("hide")}),u.off("click",".advanced-multi-list-wrapper .main-title-text-block .search-block .input_text").on("keyup",".advanced-multi-list-wrapper .main-title-text-block .search-block .input_text",function(t){var e,n=d(this).val().toLowerCase();"nav"==d(r).data().message[0].component.payload.listViewType?(e=d(this).parent().parent().parent().find(".callendar-tabs .month-tab.active-month"),e=d(e).attr("id"),d(this).parent().parent().parent().find(".multiple-accor-rows#"+e).filter(function(){d(this).toggle(-1<d(this).find(".accor-header-top .title-text").text().toLowerCase().indexOf(n))})):d(this).parent().parent().parent().find(".multiple-accor-rows").filter(function(){d(this).toggle(-1<d(this).find(".accor-header-top .title-text").text().toLowerCase().indexOf(n))})}),d(".kore-action-sheet").off("click",".advancelisttemplate .TaskPickerContainer .close-button").on("click",".advancelisttemplate .TaskPickerContainer .close-button",function(t){bottomSliderAction("hide")}),u.off("click",".advanced-multi-list-wrapper .main-title-text-block .filter-sort-block .sort-icon").on("click",".advanced-multi-list-wrapper .main-title-text-block .filter-sort-block .sort-icon",function(t){var e=this,n=d(e).parent().parent().parent().find(".see-more-data");d(e).attr("type")&&"asc"!=d(e).attr("type")?"desc"==d(e).attr("type")&&(d(e).attr("type","asc"),n&&n.length?d(e).parent().parent().parent().find(".multiple-accor-rows").sort(function(t,e){return d(t).find(".accor-header-top .title-text").text()>d(e).find(".accor-header-top .title-text").text()?-1:1}).insertBefore(d(e).parent().parent().parent().find(".see-more-data")):d(e).parent().parent().parent().find(".multiple-accor-rows").sort(function(t,e){return d(t).find(".accor-header-top .title-text").text()>d(e).find(".accor-header-top .title-text").text()?-1:1}).appendTo(d(e).parent().parent().parent())):(d(e).attr("type","desc"),n&&n.length?d(e).parent().parent().parent().find(".multiple-accor-rows").sort(function(t,e){return d(t).find(".accor-header-top .title-text").text()<d(e).find(".accor-header-top .title-text").text()?-1:1}).insertBefore(d(e).parent().parent().parent().find(".see-more-data")):d(e).parent().parent().parent().find(".multiple-accor-rows").sort(function(t,e){return d(t).find(".accor-header-top .title-text").text()<d(e).find(".accor-header-top .title-text").text()?-1:1}).appendTo(d(e).parent().parent().parent()))}),u.off("click",".advanced-multi-list-wrapper .see-more-data").on("click",".advanced-multi-list-wrapper .see-more-data",function(t){var e,n,i,a=d(r).data();if(a&&a.message[0]&&a.message[0].component&&a.message[0].component.payload&&"slider"===a.message[0].component.payload.seeMoreAction)0!==d(".list-template-sheet").length?d(".list-template-sheet").remove():0===d(".list-template-sheet").length&&(a.message[0].component.payload.seeMore&&(a.message[0].component.payload.seeMore=!1,a.message[0].component.payload.listItemDisplayCount=l.message[0].component.payload.listItems.length),l.message[0].component.payload.sliderView||(l.message[0].component.payload.sliderView=!0),messageHtml=d(c.prototype.getChatTemplate("advancedMultiListTemplate")).tmpl({msgData:a,helpers:helpers}),d(messageHtml).find(".advanced-multi-list-wrapper .extra-info").hide(),bottomSliderAction("show",messageHtml),c.prototype.advancedMultiListTemplateEvents(messageHtml,a));else if(a&&a.message[0]&&a.message[0].component&&a.message[0].component.payload&&"inline"===a.message[0].component.payload.seeMoreAction){e=a&&a.message[0]&&a.message[0].component&&a.message[0].component.payload&&"button"===a.message[0].component.payload.listViewType?d(r).find(".tag-name.hide"):d(r).find(".advance-multi-list-parent.hide");for(var o=0;o<e.length;o++)d(e[o]).hasClass("hide")&&d(e[o]).removeClass("hide");d(r).find(".see-more-data").addClass("hide")}else a&&a.message[0]&&a.message[0].component&&a.message[0].component.payload&&"modal"===a.message[0].component.payload.seeMoreAction&&(n=document.getElementById("myPreviewModal"),d(".largePreviewContent").empty(),n.style.display="block",i=document.getElementsByClassName("closeElePreview")[0],d(i).addClass("hide"),a.message[0].component.payload.seeMore&&(a.message[0].component.payload.seeMore=!1,a.message[0].component.payload.openPreviewModal=!0,a.message[0].component.payload.listItemDisplayCount=l.message[0].component.payload.listItems.length+1),messageHtml=d(c.prototype.getChatTemplate("advancedMultiListTemplate")).tmpl({msgData:a,helpers:helpers}),d(messageHtml).find(".advanced-multi-list-wrapper .extra-info").hide(),d(".largePreviewContent").append(messageHtml),document.getElementsByClassName("advancedlist-template-close")[0].onclick=function(){n.style.display="none",d(".largePreviewContent").removeClass("addheight")},d(".largePreviewContent .fromOtherUsers ").css("list-style","none"),c.prototype.advancedMultiListTemplateEvents(messageHtml,a));for(var s=u.find(".advanced-multi-list-wrapper .more-button-info"),o=0;o<s.length;o++)d(s[o]).is(":visible")&&d(s[o]).toggle(300)}),u.off("click",".advanced-multi-list-wrapper .close-btn").on("click",".advanced-multi-list-wrapper .close-btn",function(t){bottomSliderAction("hide"),t.stopPropagation()}),u.off("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-inner-content .inner-btns-acc .more-btn").on("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-inner-content .inner-btns-acc .more-btn",function(t){t.stopPropagation();t=d(this).attr("actionObj"),t=JSON.parse(t);if(t&&"dropdown"==t.seeMoreAction||t&&!t.seeMoreAction)d(this).parent().find(".more-button-info")&&d(this).parent().find(".more-button-info").toggle(300);else if(t&&"inline"==t.seeMoreAction){for(var e=d(this).parent(),n=d(e).find(".button_.hide"),i=0;i<n.length;i++)d(n[i]).hasClass("hide")&&d(n[i]).removeClass("hide");d(e).find(".more-btn").addClass("hide")}else t&&"slider"==t.seeMoreAction&&((e=d('<div class="advancelisttemplate"></div>')).append('<div class="TaskPickerContainer">\t\t\t\t\t\t<div class="taskMenuHeader">\t\t\t\t\t\t\t <button class="closeSheet close-button" title="Close"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTQgMTQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjMgKDY3Mjk3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJBcnRib2FyZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTM0NC4wMDAwMDAsIC0yMjkuMDAwMDAwKSIgZmlsbD0iIzhBOTU5RiI+CiAgICAgICAgICAgIDxnIGlkPSJjbG9zZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzQ0LjAwMDAwMCwgMjI5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjE0IDEuNCAxMi42IDAgNyA1LjYgMS40IDAgMCAxLjQgNS42IDcgMCAxMi42IDEuNCAxNCA3IDguNCAxMi42IDE0IDE0IDEyLjYgOC40IDciPjwvcG9seWdvbj4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"></button> \t\t\t\t\t\t   <label class="taskHeading"> '+t.title+" </label>\t\t\t\t\t\t</div>"),e.find(".TaskPickerContainer").append(function(t){var e=d('<div class="inner-btns-acc if-full-width-btn"></div>');t&&t.buttons&&t.buttons.forEach(function(t){t=d('<button class="button_" type="'+t.type+'" title="'+t.title+'" value="'+t.payload+'" ><img src="'+t.icon+'">'+t.title+"</button>");e.append(t)});return e}(t)),d(".kore-action-sheet").hasClass("hide")?bottomSliderAction("show",e):(d(".kore-action-sheet").find(".actionSheetContainer").empty(),d(".kore-action-sheet").find(".actionSheetContainer").append(e)),e.off("click",".inner-btns-acc .button_").on("click",".inner-btns-acc .button_",function(t){var e=d(this).attr("type");if("postback"==(e=e&&e.toLowerCase())||"text"==e){d(".chatInputBox").text(d(this).attr("actual-value")||d(this).attr("value"));var n,i=d(this)[0].innerText.trim()||d(this).attr("data-value").trim();d(".largePreviewContent .advanced-multi-list-wrapper")&&(n=document.getElementById("myPreviewModal"),d(".largePreviewContent").empty(),n.style.display="none",d(".largePreviewContent").removeClass("addheight")),bottomSliderAction("hide"),chatInitialize.sendMessage(d(".chatInputBox"),i),u.find(".advanced-multi-list-wrapper").css({"pointer-events":"none"})}else if("url"==e||"web_url"==e){if(void 0!==d(this).attr("msgData")){try{a=JSON.parse(d(this).attr("msgData"))}catch(t){}if(a&&a.message&&a.message[0].component&&(a.message[0].component.formData||a.message[0].component.payload&&a.message[0].component.payload.formData))return a.message[0].component.formData&&(a.message[0].component.payload.formData=a.message[0].component.formData),void chatInitialize.renderWebForm(a)}var a=d(this).attr("url");a.indexOf("http:")<0&&a.indexOf("https:")<0&&(a="http:////"+a),chatInitialize.openExternalLink(a)}}),document.getElementById("myPreviewModal").style.display="none",d(".largePreviewContent").empty())}),u.off("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-inner-content .inner-btns-acc .more-button-info .close_btn,.filter-icon .close_btn").on("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-inner-content .inner-btns-acc .more-button-info .close_btn,.filter-icon .close_btn",function(t){t.stopPropagation(),d(this).parent()&&d(this).parent().toggle(300)}),u.off("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-header-top .btn_block.dropdown,.filter-icon").on("click",".advanced-multi-list-wrapper .multiple-accor-rows .accor-header-top .btn_block.dropdown,.filter-icon",function(t){t.stopPropagation(),d(this).find(".more-button-info")&&d(this).find(".more-button-info").toggle(300)}),u.off("click",".advanced-multi-list-wrapper .multiple-accor-rows .inner-acc-table-sec .table-sec .column-table-more").on("click",".advanced-multi-list-wrapper .multiple-accor-rows .inner-acc-table-sec .table-sec .column-table-more",function(t){var e=document.getElementById("myPreviewModal");d(".largePreviewContent").empty(),e.style.display="block";var n=document.getElementsByClassName("closeElePreview")[0];d(n).removeClass("hide"),n.onclick=function(){e.style.display="none",d(".largePreviewContent").empty(),d(".largePreviewContent").removeClass("addheight")};t=d(t.currentTarget).closest(".multiple-accor-rows"),t=d(t).attr("actionObj"),t=JSON.parse(t);d(".largePreviewContent").append(d('<script id="chat_message_tmpl" type="text/x-jqury-tmpl"> \t\t\t\t\t\t<div class="advanced-multi-list-wrapper img-with-title with-accordion if-multiple-accordions-list">\t\t\t\t\t\t\t<div class="multiple-accor-rows">\t\t\t\t\t\t\t\t\t<div class="accor-inner-content">\t\t\t\t\t\t\t\t\t\t\t<div class="inner-acc-table-sec">\t\t\t\t\t\t\t\t\t\t\t\t{{each(i,list) listItem.tableListData}}\t\t\t\t\t\t\t\t\t\t\t\t\t{{if list.rowData && list.rowData.length}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="table-sec {{if listItem.type && listItem.type == "column"}}if-label-table-columns{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{each(key,row) list.rowData}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{if !row.icon}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="header-name">${row.title}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name">${row.description}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{else}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="column-table">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="labeld-img-block {{if row.iconSize}}${row.iconSize}{{/if}}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src="${row.icon}">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="label-content">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="header-name">${row.title}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="title-name">${row.description}</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t{{/if}}\t\t\t\t\t\t\t\t\t\t\t\t{{/each}}\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<\/script>').tmpl({listItem:t})),d(".largePreviewContent")&&(d(".largePreviewContent").find(".multiple-accor-rows").css({"border-bottom":"0"}),d(".largePreviewContent").find(".accor-inner-content").css({display:"block"}))}),u.off("click",".advanced-multi-list-wrapper .button_,.advanced-multi-list-wrapper .inner-btns-acc .button_,.advanced-multi-list-wrapper .tags-data .tag-name,.advanced-multi-list-wrapper .btn_group .submitBtn,.advanced-multi-list-wrapper .btn_group .cancelBtn,.advanced-multi-list-wrapper .details-content .text-info,.advancelisttemplate .inner-btns-acc .button_,.advancelisttemplate .filter-icon .button_").on("click",".advanced-multi-list-wrapper .button_,.advanced-multi-list-wrapper .inner-btns-acc .button_,.advanced-multi-list-wrapper .tags-data .tag-name,.advanced-multi-list-wrapper .btn_group .submitBtn,.advanced-multi-list-wrapper .btn_group .cancelBtn,.advanced-multi-list-wrapper .details-content .text-info,.advancelisttemplate .inner-btns-acc .button_,.advancelisttemplate .filter-icon .button_",function(t){t.preventDefault(),t.stopPropagation();var e=d(this).attr("type");if("postback"==(e=e&&e.toLowerCase())||"text"==e){d(".chatInputBox").text(d(this).attr("actual-value")||d(this).attr("value"));var n,i=d(this)[0].innerText.trim()||d(this).attr("data-value").trim();d(".largePreviewContent .advanced-multi-list-wrapper")&&(n=document.getElementById("myPreviewModal"),d(".largePreviewContent").empty(),n.style.display="none",d(".largePreviewContent").removeClass("addheight")),bottomSliderAction("hide"),chatInitialize.sendMessage(d(".chatInputBox"),i),u.find(".advanced-multi-list-wrapper").css({"pointer-events":"none"})}else if("url"==e||"web_url"==e){if(void 0!==d(this).attr("msgData")){try{a=JSON.parse(d(this).attr("msgData"))}catch(t){}if(a&&a.message&&a.message[0].component&&(a.message[0].component.formData||a.message[0].component.payload&&a.message[0].component.payload.formData))return a.message[0].component.formData&&(a.message[0].component.payload.formData=a.message[0].component.formData),void chatInitialize.renderWebForm(a)}var a=d(this).attr("url");a.indexOf("http:")<0&&a.indexOf("https:")<0&&(a="http:////"+a),chatInitialize.openExternalLink(a)}if(t.currentTarget.classList&&0<t.currentTarget.classList.length&&"submitBtn"===t.currentTarget.classList[0]){for(var o=d(t.currentTarget.parentElement.parentElement).find(".option-input:checked"),s=[],r=[],l=0;l<o.length;l++)s.push(d(o[l]).attr("value")),r.push(d(o[l]).attr("text"));s&&s.length?d(".chatInputBox").text(d(this).attr("title")+": "+s.toString()):d(".chatInputBox").text(d(this).attr("title")),chatInitialize.sendMessage(d(".chatInputBox"),r.toString()),u.find(".advanced-multi-list-wrapper").css({"pointer-events":"none"}),bottomSliderAction("hide")}if(t.currentTarget.classList&&0<t.currentTarget.classList.length&&"cancelBtn"===t.currentTarget.classList[0])for(o=d(t.currentTarget.parentElement.parentElement).find(".option-input:checked"),s=[],r=[],l=0;l<o.length;l++)d(o[l]).prop("checked",!1),o[l].parentElement.classList.contains("selected-item")&&o[l].parentElement.classList.remove("selected-item");for(var c=u.find(".advanced-multi-list-wrapper .more-button-info"),l=0;l<c.length;l++)d(c[l]).is(":visible")&&d(c[l]).toggle(300)})},c.prototype.articleTemplateEvents=function(i,a){this.chatInitialize&&(chatInitialize=this.chatInitialize),this.helpers&&(helpers=this.helpers),this.extension&&(extension=this.extension);d(i);var a=d(i).data(),o=chatInitialize.config.chatContainer;d(i).off("click",".article-template-content .article-template-elements .media-block .btn-primary").on("click",".article-template-content .article-template-elements .media-block .btn-primary",function(t){t.stopPropagation();var e,n=d(t.currentTarget).attr("type");"postback"==(n=n&&n.toLowerCase())||"text"==n?(e=d(t.currentTarget).attr("actionObj"),e=(t=JSON.parse(e)).payload||t.title,bottomSliderAction("hide"),chatInitialize.sendMessage(d(".chatInputBox").text(e),t.title),d(o).find(".article-template-content").css({"pointer-events":"none"})):"url"!=n&&"web_url"!=n||((n=d(this).attr("url")).indexOf("http:")<0&&n.indexOf("https:")<0&&(n="http:////"+n),chatInitialize.openExternalLink(n))}),d(i).off("click",".article-template-content .article-show-more").on("click",".article-template-content .article-show-more",function(t){var e,n=d(t.currentTarget).closest(".article-template-content"),n=d(n).attr("actionObj"),n=JSON.parse(n).seemoreAction;n&&"slider"!==n?"inline"===n&&(e=d(i).find(".article-template .article-template-content .article-template-elements .media-block.hide"),d(e).removeClass("hide"),e=d(t.currentTarget).closest(".article-template-content"),d(e).find(".article-show-more").addClass("hide")):(a.message[0].component.payload.displayLimit=a.message[0].component.payload.elements.length,a.message[0].component.payload.showmore=!1,a.message[0].component.payload.sliderView=!0,e=d(c.prototype.getChatTemplate("articleTemplate")).tmpl({msgData:a,helpers:helpers}),d(e).find(".article-template .extra-info").hide(),c.prototype.articleTemplateEvents(e,a),bottomSliderAction("show",e))}),d(i).off("click",".article-template .close-button").on("click",".article-template .close-button",function(t){bottomSliderAction("hide")}),d(i).off("click",".article-template-content .article-template-elements .media-block ").on("click",".article-template-content .article-template-elements .media-block",function(t){var e=d(t.currentTarget).attr("actionObj"),n=JSON.parse(e);n.hasOwnProperty("default_action")&&(t=n.default_action,"url"==(e=n.default_action.type)||"web_url"==e?((t=t.url).indexOf("http:")<0&&t.indexOf("https:")<0&&(t="http:////"+t),chatInitialize.openExternalLink(t)):"postback"===e&&(e=n.default_action.payload,n=n.default_action.messageToDisplay||n.title,bottomSliderAction("hide"),chatInitialize.sendMessage(d(".chatInputBox").text(e),n),d(o).find(".article-template-content").css({"pointer-events":"none"})))})},c.prototype.resetPinTemplateEvents=function(c,u){chatInitialize=this.chatInitialize,helpers=this.helpers,d(c).off("keypress",".reset-pin-template .enter-pin-inputs .input-item,.reset-pin-template .reenter-pin-inputs .input-item").on("keypress",".reset-pin-template .enter-pin-inputs .input-item,.reset-pin-template .reenter-pin-inputs .input-item",function(t){return 48<=t.keyCode&&t.keyCode<=57}),d(c).off("keyup",".reset-pin-template .enter-pin-inputs .input-item,.reset-pin-template .reenter-pin-inputs .input-item").on("keyup",".reset-pin-template .enter-pin-inputs .input-item,.reset-pin-template .reenter-pin-inputs .input-item",function(t){var e;8===t.keyCode||37===t.keyCode?d(t.currentTarget).val().length||(e=d(t.currentTarget).prev()).length&&d(e).focus():(48<=t.keyCode&&t.keyCode<=57||39===t.keyCode)&&(n=d(t.currentTarget).next()).length&&d(n).focus();for(var n=d(t.currentTarget).next(),i=d(c).find(".reset-pin-template .enter-pin-inputs .input-item"),a=d(c).find(".reset-pin-template .reenter-pin-inputs .input-item"),o="",s="",r=0;r<i.length;r++)o+=d(i[r]).val(),0;for(r=0;r<a.length;r++)s+=d(a[r]).val();new RegExp(o);n=u.message[0].component.payload.pinLength;o.length&&s.length?o.length==n&&s.length==n?d(c).find(".reset-pin-generation .resetpin-button-group .reset-btn").removeClass("disabled"):o.length==n&&s.length==n||d(c).find(".reset-pin-generation .resetpin-button-group .reset-btn").addClass("disabled"):d(c).find(".reset-pin-generation .resetpin-button-group .reset-btn").addClass("disabled")}),d(c).off("click",".reset-pin-template .reset-pin-generation .resetpin-button-group .reset-btn").on("click",".reset-pin-template .reset-pin-generation .resetpin-button-group .reset-btn",function(t){for(var e=d(c).find(".reset-pin-template .enter-pin-inputs .input-item"),n=d(c).find(".reset-pin-template .reenter-pin-inputs .input-item"),i="",a="",o="",s=0;s<e.length;s++)i+=d(e[s]).val(),o+="*";for(s=0;s<n.length;s++)a+=d(n[s]).val();const r=new RegExp(i);var l;r.test(a)?(d(c).find(".warning-message").hasClass("hide")||d(c).find(".warning-message").addClass("hide"),d(c).find(".error-message").hasClass("hide")||d(c).find(".error-message").addClass("hide"),u.message[0].component.payload.piiReductionChar&&(i=(l=u.message[0].component.payload.piiReductionChar)+i+l),d(".chatInputBox").text(i),u.message[0].component.payload.sliderView=!1,u.message[0].component.payload.ignoreCheckMark=!0,chatInitialize.sendMessage(d(".chatInputBox"),o,u,!0),bottomSliderAction("hide"),d(".kore-chat-window").hasClass("background-blur")&&d(".kore-chat-window").removeClass("background-blur")):d(c).find(".warning-message").removeClass("hide")}),d(c).off("click",".reset-pin-template .hading-text .close-button").on("click",".reset-pin-template .hading-text .close-button",function(t){d(".chatInputBox").text("cancel");chatInitialize.sendMessage(d(".chatInputBox"),"******",u,!0),bottomSliderAction("hide"),d(".kore-chat-window").hasClass("background-blur")&&d(".kore-chat-window").removeClass("background-blur")})},c.prototype.otpValidationTemplateEvents=function(l,c){chatInitialize=this.chatInitialize,helpers=this.helpers,d(l).off("keypress",".otp-validations .otp-block-inputs .input-item,.otp-validations .enter-pin-inputs .input-item,.otp-validations .reenter-pin-inputs .input-item").on("keypress",".otp-validations .otp-block-inputs .input-item,.otp-validations .enter-pin-inputs .input-item,.otp-validations .reenter-pin-inputs .input-item",function(t){return 48<=t.keyCode&&t.keyCode<=57}),d(l).off("keyup",".otp-validations .enter-pin-inputs .input-item,.otp-validations .reenter-pin-inputs .input-item").on("keyup",".otp-validations .enter-pin-inputs .input-item,.otp-validations .reenter-pin-inputs .input-item",function(t){var e;8===t.keyCode||37===t.keyCode?d(t.currentTarget).val().length||(e=d(t.currentTarget).prev()).length&&d(e).focus():(48<=t.keyCode&&t.keyCode<=57||39===t.keyCode)&&(n=d(t.currentTarget).next()).length&&d(n).focus();for(var n=d(t.currentTarget).next(),i=d(l).find(".otp-validations .enter-pin-inputs .input-item"),a=d(l).find(".otp-validations .reenter-pin-inputs .input-item"),o="",s="",r=0;r<i.length;r++)o+=d(i[r]).val(),0;for(r=0;r<a.length;r++)s+=d(a[r]).val();new RegExp(o);o.length&&s.length?4==o.length&&4==s.length?d(l).find(".reset-pin-generation .resetpin-button-group .reset-btn").removeClass("disabled"):4==o.length&&4==s.length||d(l).find(".reset-pin-generation .resetpin-button-group .reset-btn").addClass("disabled"):d(l).find(".reset-pin-generation .resetpin-button-group .reset-btn").addClass("disabled")}),d(l).off("click",".otp-validations .reset-pin-generation .resetpin-button-group .reset-btn").on("click",".otp-validations .reset-pin-generation .resetpin-button-group .reset-btn",function(t){for(var e=d(l).find(".otp-validations .enter-pin-inputs .input-item"),n=d(l).find(".otp-validations .reenter-pin-inputs .input-item"),i="",a="",o="",s=0;s<e.length;s++)i+=d(e[s]).val(),o+="*";for(s=0;s<n.length;s++)a+=d(n[s]).val();const r=new RegExp(i);r.test(a)?(d(l).find(".warning-message").hasClass("hide")||d(l).find(".warning-message").addClass("hide"),d(l).find(".error-message").hasClass("hide")||d(l).find(".error-message").addClass("hide"),d(".chatInputBox").text(i),c.message[0].component.payload.sliderView=!1,c.message[0].component.payload.ignoreCheckMark=!0,chatInitialize.sendMessage(d(".chatInputBox"),o,c,!0),bottomSliderAction("hide"),d(".kore-chat-window").hasClass("background-blur")&&d(".kore-chat-window").removeClass("background-blur")):d(l).find(".warning-message").removeClass("hide")}),d(l).off("keyup",".otp-validations .otp-block-inputs .input-item").on("keyup",".otp-validations .otp-block-inputs .input-item",function(t){var e=c.message[0].component.payload.pinLength;d(t.currentTarget).val()&&d(t.currentTarget).val().length===e?d(l).find(".otp-validations .otp-btn-group .otp-btn").removeClass("disabled"):d(l).find(".otp-validations .otp-btn-group .otp-btn").addClass("disabled")}),d(l).off("click",".otp-validations .otp-btn-group .otp-btn").on("click",".otp-validations .otp-btn-group .otp-btn",function(t){var e=d(t.currentTarget).closest(".otp-content").find(".otp-block-inputs .input-item").val();c.message[0].component.payload.piiReductionChar&&(e=(t=c.message[0].component.payload.piiReductionChar)+e+t),d(".chatInputBox").text(e);chatInitialize.sendMessage(d(".chatInputBox"),"******",c,!0),bottomSliderAction("hide"),d(".kore-chat-window").hasClass("background-blur")&&d(".kore-chat-window").removeClass("background-blur")}),d(l).off("click",".otp-validations .otp-block-inputs .eye-icon").on("click",".otp-validations .otp-block-inputs .eye-icon",function(t){t.currentTarget.classList&&"otp-view-eye"===t.currentTarget.classList[0]?(d(t.currentTarget).closest(".otp-block-inputs").find(".input-item").attr("type","text"),d(t.currentTarget).closest(".otp-block-inputs").find(".otp-view-eye").addClass("hide"),d(t.currentTarget).closest(".otp-block-inputs").find(".otp-hidden-eye").removeClass("hide")):t.currentTarget.classList&&"otp-hidden-eye"===t.currentTarget.classList[0]&&(d(t.currentTarget).closest(".otp-block-inputs").find(".input-item").attr("type","password"),d(t.currentTarget).closest(".otp-block-inputs").find(".otp-hidden-eye").addClass("hide"),d(t.currentTarget).closest(".otp-block-inputs").find(".otp-view-eye").removeClass("hide"))}),d(l).off("click",".otp-validations .hading-text .close-button").on("click",".otp-validations .hading-text .close-button",function(t){d(".chatInputBox").text("cancel");chatInitialize.sendMessage(d(".chatInputBox"),"******",c,!0),bottomSliderAction("hide"),d(".kore-chat-window").hasClass("background-blur")&&d(".kore-chat-window").removeClass("background-blur")}),d(l).off("click",".otp-validations .otp-btn-group .otp-resend").on("click",".otp-validations .otp-btn-group .otp-resend",function(t){t=d(t.currentTarget).attr("value");d(".chatInputBox").text(t),chatInitialize.sendMessage(d(".chatInputBox"),t,c,!0),bottomSliderAction("hide")})},c.prototype.bankingFeedbackTemplateEvents=function(c){var u=this;u.chatInitialize.config.chatContainer;d(c).off("click",'.bankingFeedBackTemplate-experience-content [type*="radio"]').on("click",'.bankingFeedBackTemplate-experience-content [type*="radio"]',function(t){for(var e=d(t.currentTarget).attr("id"),n=(d(c).data(),d(c).find('[type*="radio"]')),i=d(c).find(".empathy-message"),a=0;a<i.length;a++)d(c).find(i[a]).hasClass("hide")||d(c).find(i[a]).addClass("hide");for(a=0;a<n.length;a++)e!=d(n[a]).attr("id")&&d(c).find(n[a]).prop("checked")?d(c).find(n[a]).prop("checked",!1):e===d(c).find(n[a]).attr("id")&&d(c).find(n[a]).prop("checked")&&d(c).find(".empathy-message#"+e).hasClass("hide")&&d(c).find(".empathy-message#"+e).removeClass("hide");d(c).find(".bankingFeedBackTemplate-feedback-content").hasClass("hide")&&d(c).find(".bankingFeedBackTemplate-feedback-content").removeClass("hide")}),d(c).off("click",".bankingFeedBackTemplate-feedback-content .buttons-div .feedback-submit").on("click",".bankingFeedBackTemplate-feedback-content .buttons-div .feedback-submit",function(t){var e=d(c).data();if(e&&e.message&&e.message[0]&&e.message[0].component&&e.message[0].component.payload&&e.message[0].component.payload.experienceContent){e.message[0].component.payload.experienceContent;for(var n,i={selectedFeedback:[]},a=d(c).find('[type*="radio"]'),o=0;o<a.length;o++)d(c).find(a[o]).prop("checked")&&(n=d(a[o]).attr("actionObj"),delete(n=JSON.parse(n)).empathyMessage,i.selectedExperience=n);for(var s,r=d(c).find(".experience-feedback-listItems").find('[type*="checkbox"]'),o=0;o<r.length;o++)d(c).find(r[o]).prop("checked")&&(s=d(r[o]).attr("actionObj"),s=JSON.parse(s),i.selectedFeedback.push(s));var l=d(c).find("#bankingSuggestionInput").val();i.userSuggestion=l;l=e.message[0].component.payload.messageToDisplay;d(".chatInputBox").text(JSON.stringify(i)),d(c).find(".bankingFeedBackTemplate").addClass("disabled"),u.chatInitialize.sendMessage(d(".chatInputBox"),l,e,!0)}}),d(c).off("click",".bankingFeedBackTemplate-feedback-content .buttons-div .feedback-cancel").on("click",".bankingFeedBackTemplate-feedback-content .buttons-div .feedback-cancel",function(t){var e=d(c).data();if(e&&e.message&&e.message[0]&&e.message[0].component&&e.message[0].component.payload&&e.message[0].component.payload.experienceContent){e.message[0].component.payload.experienceContent;for(var n,i={selectedFeedback:[]},a=d(c).find('[type*="radio"]'),o=0;o<a.length;o++)d(a[o]).prop("checked")&&(d(a[o]).prop("checked",!1),n=d(a[o]).attr("actionObj"),delete(n=JSON.parse(n)).empathyMessage,i.selectedExperience=n);for(var s,r=d(c).find(".experience-feedback-listItems").find('[type*="checkbox"]'),o=0;o<r.length;o++)d(c).find(r[o]).prop("checked")&&(d(c).find(r[o]).prop("checked",!1),s=d(r[o]).attr("actionObj"),s=JSON.parse(s),i.selectedFeedback.push(s));d(c).find("#bankingSuggestionInput").val("");var l=d(c).find("#bankingSuggestionInput").val();i.userSuggestion=l;e.message[0].component.payload.messageToDisplay;d(".chatInputBox").text("Cancel"),d(c).find(".bankingFeedBackTemplate").addClass("disabled"),u.chatInitialize.sendMessage(d(".chatInputBox"),"Cancel",e)}})},c.prototype.bindCheckListTemplates=function(t,a){!function(t,e){if(e&&e.message[0].component.payload.elements.length)for(var n=0;n<e.message[0].component.payload.elements.length;n++){var i=e.message[0].component.payload.elements[n],a=n,o=d(t).find("#"+a),s=i.progressStyles,r=parseInt(i.taskProgress);if(o&&s)for(var l=0;l<Object.keys(s).length;l++){var c,u=Object.keys(s)[l];"background"==u?d(o).find(".checklist-progress#progress"+a).append("<style>#progress"+a+":before{background-image:conic-gradient(transparent "+r+"%, "+s[u]+" "+r+"%)}</style>"):"fillColor"===u?(d(o).find(".checklist-progress").css("--percentage",+r+"%"),c="conic-gradient("+s[u]+" 100%, "+s[u]+" 100%, "+s[u]+" 100%)",d(o).find(".checklist-progress").css({"background-image":c})):"textcolor"===u&&d(o).find(".checklist-percentage").css({color:s[u]})}else d(o).find(".checklist-progress").css("--percentage",+r+"%")}}(t,a),this.chatInitialize&&(chatInitialize=this.chatInitialize),this.helpers&&(helpers=this.helpers),this.extension&&(extension=this.extension),d(t).off("click",".subelement-info").on("click",".subelement-info",function(t){t.stopPropagation();var e,n,i=d(t.currentTarget).attr("actionObj");i&&("postback"==(e=(n=JSON.parse(i)).type)?(t=n.payload,i=n.title,d(".chatInputBox").text(t),chatInitialize.sendMessage(d(".chatInputBox"),i,a)):"url"==e&&(n=n.url,chatInitialize.openExternalLink(n)))}),d(t).off("click",".checklist-element").on("click",".checklist-element",function(t){t.stopPropagation();var e,n,i=d(t.currentTarget).attr("actionObj");i&&("postback"==(e=(n=JSON.parse(i)).type)?(t=n.payload,i=n.title,d(".chatInputBox").text(t),chatInitialize.sendMessage(d(".chatInputBox"),i,a)):"url"==e&&(n=n.url,chatInitialize.openExternalLink(n)))}),d(t).off("click",".subelement-info .subelement-header .icon-block").on("click",".subelement-info .subelement-header .icon-block",function(t){t.stopPropagation();var e,n,i=d(t.currentTarget).attr("actionObj");i&&("postback"==(e=(n=JSON.parse(i)).type)?(t=n.payload,i=n.title,d(".chatInputBox").text(t),chatInitialize.sendMessage(d(".chatInputBox"),i,a)):"url"==e&&(n=n.url,chatInitialize.openExternalLink(n)))}),d(t).off("click",".chevron-subelement").on("click",".chevron-subelement",function(t){t.stopPropagation(),d(t.currentTarget).toggleClass("open");var e=d(t.currentTarget).attr("subElementIndex"),t=d(t.currentTarget).attr("msgId");d('[subElementItem="'+t+"-"+e+'"]').toggleClass("show")})},window.customTemplate=c,bottomSliderAction,listViewTabs,valueClick}($),function(){var s,r,l,o,c,e,n,i,a,u,d,f,p,h,m,g,t,y,v,D,b,A,I,M,w=document.createElement("i");function C(t,e){try{return t.querySelectorAll(e)}catch(t){return[]}}function _(t,e){for(var n,i={selector:t,callback:e,elements:new WeakMap},a=C(r,i.selector),o=0;n=a[o++];)i.elements.set(n,!0),i.callback.call(n,n);s.push(i),l||(l=new MutationObserver(k)).observe(r,{childList:!0,subtree:!0}),T(i)}function T(t,e){var n,i=0,a=[];try{e&&e.matches(t.selector)&&a.push(e)}catch(t){}for(o&&Array.prototype.push.apply(a,C(e||r,t.selector));n=a[i++];)t.elements.has(n)||(t.elements.set(n,!0),t.callback.call(n,n))}function k(t){for(var e,n,i,a,o=0;n=t[o++];)for(i=n.addedNodes,e=0;a=i[e++];)1===a.nodeType&&function(t){for(var e,n=0;e=s[n++];)T(e,t)}(a)}function N(t,e,n){e=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,e)}function S(n){if(!n.ieCP_polyfilled&&!n.ieCP_elementSheet&&n.sheet){if(n.href)return a=n.href,t=function(t){var e=E(t);t!==e&&z(n,e)},(e=new XMLHttpRequest).open("GET",a),e.overrideMimeType("text/css"),e.onload=function(){200<=e.status&&e.status<400&&t(e.responseText)},void e.send();var t,e,i=n.innerHTML,a=E(i);i!==a&&z(n,a)}}function E(t){return t.replace(a,function(t,e,n,i,a,o){return e+"-ie-"+(o?"❗":"")+i+":"+j(a)}).replace(u,function(t,e,n,i){return e+"-ieVar-"+(i?"❗":"")+n+"; "+n})}function j(t){return t}function O(t){return t}function L(e){e["z-index"]===e&&x();const t=e.cssText;var n,i=t.match(d);if(i)for(var a=[],o=0;n=i[o++];){let t=n.slice(7,-1);"❗"===t[0]&&(t=t.substr(1)),a.push(t),c[t]||(c[t]=[]),c[t].push(e)}var s=t.match(f);if(s){var r={};for(o=0;n=s[o++];){var l=n.substr(4).split(":");let t=l[0];l=l[1];"❗"===t[0]&&(t=t.substr(1)),r[t]=l}}return{getters:a,setters:r}}function z(t,e){t.sheet.cssText=e,t.ieCP_polyfilled=!0;for(var n=t.sheet.rules,i=0;o=n[i++];){var a=L(o.style);a.getters&&function(e,n){U(e),_(B(e),function(t){P(t,n,e),H(t)})}(o.selectorText,a.getters),a.setters&&function(t,e){U(t),_(B(t),function(t){R(t,e)})}(o.selectorText,a.setters);var o=o.parentRule&&o.parentRule.media&&o.parentRule.media.mediaText;o&&(a.getters||a.setters)&&matchMedia(o).addListener(function(){Q(document.documentElement)})}F()}function P(t,e,n){var i,a,o=0,s=n.split(",");for(t.setAttribute("iecp-needed",!0),t.ieCPSelectors||(t.ieCPSelectors={});i=e[o++];)for(a=0;n=s[a++];){var r=n.trim().split("::");t.ieCPSelectors[i]||(t.ieCPSelectors[i]=[]),t.ieCPSelectors[i].push({selector:r[0],pseudo:r[1]?"::"+r[1]:""})}}function R(t,e){for(var n in t.ieCP_setters||(t.ieCP_setters={}),e)t.ieCP_setters["--"+n]=1;Q(t)}function F(){for(var t in c)for(var e,n=c[t],i=0;e=n[i++];)if(!e.owningElement){var a=e["-ieVar-"+t];if(a&&""!==(a=V(getComputedStyle(document.documentElement),a)))try{e[t]=a}catch(t){}}}function U(t){for(var e in t=t.split(",")[0],h){var n=t.split(":"+e);if(1<n.length){var i=n[1].match(/^[^\s]*/),i=B(n[0]+i);const a=h[e];_(i,function(t){t.addEventListener(a.on,W),t.addEventListener(a.off,W)})}}}function B(t){return t.replace(p,"").replace(":not()","")}function H(t){e.add(t),n||(n=!0,requestAnimationFrame(function(){i=!(n=!1),e.forEach(Y),e.clear(),setTimeout(function(){i=!1}),i=!1}))}function Y(t){t.ieCP_unique||(t.ieCP_unique=++g,t.classList.add("iecp-u"+t.ieCP_unique));var e,n=getComputedStyle(t);let i="";for(e in t.runtimeStyle.cssText="",t.ieCPSelectors){var a=n["-ieVar-❗"+e],o=a||n["-ieVar-"+e];if(o){var s={},r=V(n,o,s);a&&(r+=" !important");for(var l,c=0;l=t.ieCPSelectors[e][c++];)"%styleAttr"===l.selector&&(t.style[e]=r),!a&&!1!==s.allByRoot||(l.pseudo?i+=l.selector+".iecp-u"+t.ieCP_unique+l.pseudo+"{"+e+":"+r+"}\n":a?t.style.cssText+=e+":"+r:t.runtimeStyle[e]=r)}}!function(t,e){if(!t.ieCP_styleEl&&e){const n=document.createElement("style");n.ieCP_elementSheet=1,document.head.appendChild(n),t.ieCP_styleEl=n}t.ieCP_styleEl&&(t.ieCP_styleEl.innerHTML=e)}(t,i)}function Q(t){if(t){t===document.documentElement&&F();var e=t.querySelectorAll("[iecp-needed]");t.hasAttribute&&t.hasAttribute("iecp-needed")&&H(t);for(var n,i=0;n=e[i++];)H(n)}}function W(t){Q(t.target)}function V(i,t,a){return function(n,i){let t=0,a=null,o=0,s="",r=0,e,l;for(;e=n[r++];){if("("===e&&(++t,null===a&&n[r-4]+n[r-3]+n[r-2]==="var"&&(a=t,s+=n.substring(o,r-4),o=r),n[r-5]+n[r-4]+n[r-3]+n[r-2]==="calc"&&(l=t)),")"===e&&a===t){let t=n.substring(o,r-1).trim(),e;var c=t.indexOf(",");-1!==c&&(e=t.slice(c+1),t=t.slice(0,c)),s+=i(t,e,l),o=r,a=null}")"===e&&(--t,l===t&&(l=null))}return s+=n.substring(o),s}(t,function(t,e,n){t=i.getPropertyValue(t);return n&&(t=t.replace(/^calc\(/,"(")),a&&i.lastPropertyServedBy!==document.documentElement&&(a.allByRoot=!1),t=""===t&&e?V(i,e,a):t})}w.style.setProperty("--x","y"),"y"!==w.style.getPropertyValue("--x")&&w.msMatchesSelector&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),s=[],r=document,o=!1,document.addEventListener("DOMContentLoaded",function(){o=!0}),"classList"in Element.prototype||N("classList",HTMLElement.prototype,Element.prototype),"innerHTML"in Element.prototype||N("innerHTML",HTMLElement.prototype,Element.prototype),"runtimeStyle"in Element.prototype||N("runtimeStyle",HTMLElement.prototype,Element.prototype),"sheet"in SVGStyleElement.prototype||Object.defineProperty(SVGStyleElement.prototype,"sheet",{get:function(){for(var t,e=document.styleSheets,n=0;t=e[n++];)if(t.ownerNode===this)return t}}),c={},e=new Set,i=n=!1,a=/([\s{;])(--([A-Za-z0-9-_]*)\s*:([^;!}{]+)(!important)?)(?=\s*([;}]|$))/g,u=/([{;]\s*)([A-Za-z0-9-_]+\s*:[^;}{]*var\([^!;}{]+)(!important)?(?=\s*([;}$]|$))/g,d=/-ieVar-([^:]+):/g,f=/-ie-([^};]+)/g,p=/:(hover|active|focus|target|visited|link|:before|:after|:first-letter|:first-line)/,_("style:not([iecp-ignore])",S),_("link[rel=stylesheet]:not([iecp-ignore])",S),_("[ie-style]",function(t){var e=E("{"+t.getAttribute("ie-style")).substr(1);t.style.cssText+=";"+e;e=L(t.style);e.getters&&P(t,e.getters,"%styleAttr"),e.setters&&R(t,e.setters)}),h={hover:{on:"mouseenter",off:"mouseleave"},focus:{on:"focusin",off:"focusout"},active:{on:"CSSActivate",off:"CSSDeactivate"}},m=null,document.addEventListener("mousedown",function(e){setTimeout(function(){var t;e.target===document.activeElement&&((t=document.createEvent("Event")).initEvent("CSSActivate",!0,!0),(m=e.target).dispatchEvent(t))})}),document.addEventListener("mouseup",function(){var t;m&&((t=document.createEvent("Event")).initEvent("CSSDeactivate",!0,!0),m.dispatchEvent(t),m=null)}),g=0,t=new MutationObserver(function(t){if(!i)for(var e,n=0;e=t[n++];)"iecp-needed"!==e.attributeName&&Q(e.target)}),setTimeout(function(){t.observe(document,{attributes:!0,subtree:!0})}),y=location.hash,addEventListener("hashchange",function(t){var e,n=document.getElementById(location.hash.substr(1));n?(e=document.getElementById(y.substr(1)),Q(n),Q(e)):Q(document),y=location.hash}),w=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"style"),v=w.get,w.get=function(){const t=v.call(this);return t.owningElement=this,t},Object.defineProperty(HTMLElement.prototype,"style",w),D=getComputedStyle,window.getComputedStyle=function(t){var e=D.apply(this,arguments);return e.computedFor=t,e},w=CSSStyleDeclaration.prototype,b=w.getPropertyValue,w.getPropertyValue=function(t){if(!t)return b.apply(this,arguments);if(this.lastPropertyServedBy=!1,"-"!==(t=t.trim())[0]||"-"!==t[1])return b.apply(this,arguments);var e=t.substr(2),n="-ie-"+e,i="-ie-❗"+e;let a=O(this[i]||this[n]);if(this.computedFor){if(void 0===a||A[a]){if(A[a]||!M[t]||M[t].inherits){let t=this.computedFor.parentNode;for(;t&&1===t.nodeType;){var o=getComputedStyle(t),o=O(o[i]||o[n]);if(void 0!==o){a=V(this,o),this.lastPropertyServedBy=t;break}t=t.parentNode}}}else a=V(this,a),this.lastPropertyServedBy=this.computedFor;if("initial"===a)return""}return void 0===a&&M[t]&&(a=M[t].initialValue),void 0===a?"":a},A={inherit:1,revert:1,unset:1},I=w.setProperty,w.setProperty=function(t,e,n){if("-"!==t[0]||"-"!==t[1])return I.apply(this,arguments);const i=this.owningElement;i&&(i.ieCP_setters||(i.ieCP_setters={}),i.ieCP_setters[t]=1),t="-ie-"+("important"===n?"❗":"")+t.substr(2),this.cssText+="; "+t+":"+j(e)+";",i&&Q(i)},window.CSS||(window.CSS={}),M={},CSS.registerProperty=function(t){M[t.name]=t})}();var apiKey=apiKey||{},gapi=gapi||{},gapiLoaded=!1;function initGapi(){if(!apiKey)return!1;console.log("loading gapi"),gapi.client.setApiKey(apiKey),gapi.client.load("speech","v1beta1",function(){console.log("gapi loaded"),gapiLoaded=!0})}function handleFile(){sendBlobToSpeech($("#inputFile")[0].files[0],"flac",16e3)}function setCaretEnd(t){var e,n;t&&t.item(0)&&t.item(0).innerText.length?((e=document.createRange()).selectNodeContents(t[0]),e.collapse(!1),(n=window.getSelection()).removeAllRanges(),n.addRange(e),prevRange=e):(prevRange=!1,t&&t[0]&&t[0].focus())}function uiCallback(t){t.results&&t.results[0]?($(".chatInputBox").html($(".chatInputBox").html()+" "+t.results[0].alternatives[0].transcript),setTimeout(function(){setCaretEnd(document.getElementsByClassName("chatInputBox")),document.getElementsByClassName("chatInputBox")[0].scrollTop=document.getElementsByClassName("chatInputBox")[0].scrollHeight},350)):403===t.code&&(gapiLoaded=!1,$(".recordingMicrophone").is(":visible")&&$(".recordingMicrophone").trigger("click"),alert(t.message||"Please provide valid Google speech API key"))}function sendBlobToSpeech(t,e,n){if(!gapiLoaded)return $(".recordingMicrophone").is(":visible")&&$(".recordingMicrophone").trigger("click"),void alert("Please provide valid Google speech API key");var i=new FileReader;i.addEventListener("loadend",function(){sendBytesToSpeech(btoa(i.result),e,n,uiCallback)}),i.readAsBinaryString(t)}function sendBytesToSpeech(t,e,n,i){gapi.client&&gapi.client.speech?gapi.client.speech.speech.syncrecognize({config:{encoding:e,sampleRate:n,languageCode:"en_US"},audio:{content:t}}).execute(function(t){i(t)}):(gapiLoaded=!1,$(".recordingMicrophone").is(":visible")&&$(".recordingMicrophone").trigger("click"),alert("Please provide valid Google speech API key"))}apiKey="";(gapi=window.gapi=window.gapi||{})._bs=(new Date).getTime(),function(){var t,e=this,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},c=function(t,e){return t<e?-1:e<t?1:0};t:{var n=e.navigator;if(n){n=n.userAgent;if(n){t=n;break t}}t=""}function i(){var t=e.document;return t?t.documentMode:void 0}var a,o=function(t,e){var n=y;Object.prototype.hasOwnProperty.call(n,t)||(n[t]=e(t))},s=-1!=t.indexOf("Opera"),r=-1!=t.indexOf("Trident")||-1!=t.indexOf("MSIE"),u=-1!=t.indexOf("Edge"),d=!(-1==t.indexOf("Gecko")||-1!=t.toLowerCase().indexOf("webkit")&&-1==t.indexOf("Edge")||-1!=t.indexOf("Trident")||-1!=t.indexOf("MSIE")||-1!=t.indexOf("Edge")),f=-1!=t.toLowerCase().indexOf("webkit")&&-1==t.indexOf("Edge");t:{var p="",h=(h=t,d?/rv:([^\);]+)(\)|;)/.exec(h):u?/Edge\/([\d\.]+)/.exec(h):r?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(h):f?/WebKit\/(\S+)/.exec(h):s?/(?:Version)[ \/]?(\S+)/.exec(h):void 0);if(h&&(p=h?h[1]:""),r){h=i();if(null!=h&&h>parseFloat(p)){a=String(h);break t}}a=p}function m(r){o(r,function(){for(var t=0,e=l(String(g)).split("."),n=l(String(r)).split("."),i=Math.max(e.length,n.length),a=0;0==t&&a<i;a++)for(var o=e[a]||"",s=n[a]||"";o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],(0!=o[0].length||0!=s[0].length)&&(t=c(0==o[1].length?0:parseInt(o[1],10),0==s[1].length?0:parseInt(s[1],10))||c(0==o[2].length,0==s[2].length)||c(o[2],s[2]),o=o[3],s=s[3],0==t););return 0<=t})}var g=a,y={},v=e.document,D=v&&r?i()||("CSS1Compat"==v.compatMode?parseInt(g,10):5):void 0;(O=!(O=!d&&!r)?v=(v=r)?9<=Number(D):v:O)||d&&m("1.9.1"),r&&m("9");var b=window,A=document,I=b.location,M=function(){},w=/\[native code\]/,C=function(t,e,n){return t[e]=t[e]||n},_=function(t){t=t.sort();for(var e=[],n=void 0,i=0;i<t.length;i++){var a=t[i];a!=n&&e.push(a),n=a}return e},T=function(){var t;if((t=Object.create)&&w.test(t))t=t(null);else for(var e in t={})t[e]=void 0;return t},k=C(b,"gapi",{}),x=C(b,"___jsl",T());C(x,"I",0),C(x,"hel",10);var N=function(){var t=I.href;if(x.dpo)var e=x.h;else{e=x.h;if(t=t&&(/([#].*&|[#])jsh=([^&#]*)/g.exec(t)||/([?#].*&|[?#])jsh=([^&#]*)/g.exec(t)))try{e=decodeURIComponent(t[2])}catch(t){}}return e},S=function(t){var e=C(x,"PQ",[]);x.PQ=[];var n=e.length;if(0===n)t();else for(var i=0,a=function(){++i===n&&t()},o=0;o<n;o++)e[o](a)},E=function(t){return C(C(x,"H",T()),t,T())},j=C(x,"perf",T()),O=C(j,"g",T()),L=C(j,"i",T());C(j,"r",[]),T(),T();var z=function(t,e,n){var i=j.r;"function"==typeof i?i(t,e,n):i.push([t,e,n])},P=function(t,e,n){e&&0<e.length&&(e=R(e),n&&0<n.length&&(e+="___"+R(n)),n=e=28<e.length?e.substr(0,28)+(e.length-28):e,e=C(L,"_p",T()),C(e,n,T())[t]=(new Date).getTime(),z(t,"_p",n))},R=function(t){return t.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")},F=T(),U=[],B=function(t){throw Error("Bad hint"+(t?": "+t:""))};U.push(["jsl",function(t){for(var e in t){var n;Object.prototype.hasOwnProperty.call(t,e)&&("object"==typeof(n=t[e])?x[e]=C(x,e,[]).concat(n):C(x,e,n))}(e=t.u)&&((t=C(x,"us",[])).push(e),(e=/^https:(.*)$/.exec(e))&&t.push("http:"+e[1]))}]);function H(t,e,n,i){function a(t){return encodeURIComponent(t).replace(/%2C/g,",")}return t=J(t),V.test(n)||B("invalid_callback"),e=q(e),i=i&&i.length?q(i):null,[encodeURIComponent(t.g).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",a(t.version),"/m=",a(e),i?"/exm="+a(i):"","/rt=j/sv=1/d=1/ed=1",t.a?"/am="+a(t.a):"",t.c?"/rs="+a(t.c):"",t.f?"/t="+a(t.f):"","/cb=",a(n)].join("")}var Y=/^(\/[a-zA-Z0-9_\-]+)+$/,Q=[/\/amp\//,/\/amp$/,/^\/amp$/],W=/^[a-zA-Z0-9\-_\.,!]+$/,V=/^gapi\.loaded_[0-9]+$/,G=/^[a-zA-Z0-9,._-]+$/,Z=function(t,e,n,i){var a=t.split(";"),o=a.shift(),s=F[o],r=null;return s?r=s(a,e,n,i):B("no hint processor for: "+o),r||B("failed to generate load url"),n=(e=r).match(tt),(i=e.match($))&&1===i.length&&X.test(e)&&n&&1===n.length||B("failed sanity: "+t),r},J=function(t){"/"!==t.charAt(0)&&B("relative path");for(var e=t.substring(1).split("/"),n=[];e.length;){if((t=e.shift()).length&&0!=t.indexOf(".")){if(0<t.indexOf("=")){e.unshift(t);break}}else B("empty/relative directory");n.push(t)}t={};for(var i=0,a=e.length;i<a;++i){var o=e[i].split("="),s=decodeURIComponent(o[0]),r=decodeURIComponent(o[1]);2==o.length&&s&&r&&(t[s]=t[s]||r)}for(e="/"+n.join("/"),Y.test(e)||B("invalid_prefix"),n=0,i=Q.length;n<i;++n)Q[n].test(e)&&B("invalid_prefix");return{g:e,version:n=K(t,"k",!0),a:i=K(t,"am"),c:a=K(t,"rs"),f:t=K(t,"t")}},q=function(t){for(var e=[],n=0,i=t.length;n<i;++n){var a=t[n].replace(/\./g,"_").replace(/-/g,"_");G.test(a)&&e.push(a)}return e.join(",")},K=function(t,e,n){if(!(t=t[e])&&n&&B("missing: "+e),t){if(W.test(t))return t;B("invalid: "+e)}return null},X=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,$=/\/cb=/g,tt=/\/\//g,et=function(){var t=N();if(!t)throw Error("Bad hint");return t};F.m=function(t,e,n,i){return(t=t[0])||B("missing_hint"),"https://apis.google.com"+H(t,e,n,i)};var nt=decodeURI("%73cript"),it=/^[-+_0-9\/A-Za-z]+={0,2}$/,at=function(t,e){for(var n=[],i=0;i<t.length;++i){var a,o=t[i];if(a=o){t:{for(a=0;a<e.length;a++)if(e[a]===o)break t;a=-1}a=a<0}a&&n.push(o)}return n},ot=function(){var t=x.nonce;if(void 0!==t)return t&&t===String(t)&&t.match(it)?t:x.nonce=null;var e=C(x,"us",[]);if(!e||!e.length)return x.nonce=null;for(var n=A.getElementsByTagName(nt),i=0,a=n.length;i<a;++i){var o=n[i];if(o.src&&(t=String(o.nonce||o.getAttribute("nonce")||"")||null)){for(var s=0,r=e.length;s<r&&e[s]!==o.src;++s);if(s!==r&&t&&t===String(t)&&t.match(it))return x.nonce=t}}return null},st=function(t){var e;"loading"!=A.readyState?rt(t):(e=null!==(e=ot())?' nonce="'+e+'"':"",A.write("<"+nt+' src="'+encodeURI(t)+'"'+e+"></"+nt+">"))},rt=function(t){var e=A.createElement(nt);e.setAttribute("src",t),null!==(t=ot())&&e.setAttribute("nonce",t),e.async="true",(t=A.getElementsByTagName(nt)[0])?t.parentNode.insertBefore(e,t):(A.head||A.body||A.documentElement).appendChild(e)},lt=function(t,e){var n=e&&e._c;if(n)for(var i=0;i<U.length;i++){var a=U[i][0],o=U[i][1];o&&Object.prototype.hasOwnProperty.call(n,a)&&o(n[a],t,e)}},ct=function(e,n,t){ft(function(){var t=n===N()?C(k,"_",T()):T(),t=C(E(n),"_",t);e(t)},t)},ut=function(t,e){var n=e||{};"function"==typeof e&&((n={}).callback=e),lt(t,n),e=t?t.split(":"):[];var i=n.h||et(),a=C(x,"ah",T());if(a["::"]&&e.length){t=[];for(var o=null;o=e.shift();){var s=o.split("."),s=a[o]||a[s[1]&&"ns:"+s[0]||""]||i,r=t.length&&t[t.length-1]||null,l=r;r&&r.hint==s||t.push(l={hint:s,b:[]}),l.b.push(o)}var c,u=t.length;for(1<u&&((c=n.callback)&&(n.callback=function(){0==--u&&c()}));e=t.shift();)dt(e.b,n,e.hint)}else dt(e||[],n,i)},dt=function(t,e,i){t=_(t)||[];var a=e.callback,o=e.config,n=e.timeout,s=e.ontimeout,r=e.onerror,l=void 0;"function"==typeof r&&(l=r);var c=null,u=!1;if(n&&!s||!n&&s)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";function d(t,e){if(!u){b.clearTimeout(c),f.push.apply(f,y);var n=((k||{}).config||{}).update;if(n?n(o):o&&C(x,"cu",[]).push(o),e){P("me0",t,p);try{ct(e,i,l)}finally{P("me1",t,p)}}return 1}}var r=C(E(i),"r",[]).sort(),f=C(E(i),"L",[]).sort(),p=[].concat(r);0<n&&(c=b.setTimeout(function(){u=!0,s()},n));var h,m,g,y=at(t,f);y.length?(y=at(t,r),h=C(x,"CP",[]),m=h.length,h[m]=function(e){if(!e)return 0;P("ml1",y,p);function t(t){h[m]=null,d(y,e)&&S(function(){a&&a(),t()})}function n(){var t=h[m+1];t&&t()}0<m&&h[m-1]?h[m]=function(){t(n)}:t(n)},y.length?(g="loaded_"+x.I++,k[g]=function(t){h[m](t),k[g]=null},t=Z(i,y,"gapi."+g,r),r.push.apply(r,y),P("ml0",y,p),(e.sync||b.___gapisync?st:rt)(t)):h[m](M)):d(y)&&a&&a()},ft=function(t,n){if(x.hee&&0<x.hel)try{return t()}catch(e){n&&n(e),x.hel--,ut("debug_error",function(){try{window.___jsl.hefn(e)}catch(t){throw e}})}else try{return t()}catch(t){throw n&&n(t),t}};k.load=function(t,e){return ft(function(){return ut(t,e)})},O.bs0=window.gapi._bs||(new Date).getTime(),z("bs0"),O.bs1=(new Date).getTime(),z("bs1"),delete window.gapi._bs}.call(this),gapi.load("client",{callback:window.gapi_onload,_c:{jsl:{ci:{deviceType:"desktop","oauth-flow":{authUrl:"https://accounts.google.com/o/oauth2/auth",proxyUrl:"https://accounts.google.com/o/oauth2/postmessageRelay",disableOpt:!0,idpIframeUrl:"https://accounts.google.com/o/oauth2/iframe",usegapi:!1},debug:{reportExceptionRate:.05,forceIm:!1,rethrowException:!1,host:"https://apis.google.com"},enableMultilogin:!0,"googleapis.config":{auth:{useFirstPartyAuthV2:!0}},isPlusUser:!1,inline:{css:1},disableRealtimeCallback:!1,drive_share:{skipInitCommand:!0},csi:{rate:.01},client:{cors:!1},isLoggedIn:!0,signInDeprecation:{rate:0},include_granted_scopes:!0,llang:"en",iframes:{ytsubscribe:{url:"https://www.youtube.com/subscribe_embed?usegapi=1"},plus_share:{params:{url:""},url:":socialhost:/:session_prefix::se:_/+1/sharebutton?plusShare=true&usegapi=1"},":source:":"3p",playemm:{url:"https://play.google.com/work/embedded/search?usegapi=1&usegapi=1"},partnersbadge:{url:"https://www.gstatic.com/partners/badge/templates/badge.html?usegapi=1"},dataconnector:{url:"https://dataconnector.corp.google.com/:session_prefix:ui/widgetview?usegapi=1"},shortlists:{url:""},plus_followers:{params:{url:""},url:":socialhost:/_/im/_/widget/render/plus/followers?usegapi=1"},post:{params:{url:""},url:":socialhost:/:session_prefix::im_prefix:_/widget/render/post?usegapi=1"},signin:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/signin?usegapi=1",methods:["onauth"]},donation:{url:"https://onetoday.google.com/home/donationWidget?usegapi=1"},plusone:{params:{count:"",size:"",url:""},url:":socialhost:/:session_prefix::se:_/+1/fastbutton?usegapi=1"},":im_socialhost:":"https://plus.googleapis.com",backdrop:{url:"https://clients3.google.com/cast/chromecast/home/widget/backdrop?usegapi=1"},visibility:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/visibility?usegapi=1"},additnow:{url:"https://apis.google.com/additnow/additnow.html?usegapi=1",methods:["launchurl"]},":signuphost:":"https://plus.google.com",community:{url:":ctx_socialhost:/:session_prefix::im_prefix:_/widget/render/community?usegapi=1"},plus:{url:":socialhost:/:session_prefix:_/widget/render/badge?usegapi=1"},commentcount:{url:":socialhost:/:session_prefix:_/widget/render/commentcount?usegapi=1"},zoomableimage:{url:"https://ssl.gstatic.com/microscope/embed/"},appfinder:{url:"https://gsuite.google.com/:session_prefix:marketplace/appfinder?usegapi=1"},person:{url:":socialhost:/:session_prefix:_/widget/render/person?usegapi=1"},savetodrive:{url:"https://drive.google.com/savetodrivebutton?usegapi=1",methods:["save"]},page:{url:":socialhost:/:session_prefix:_/widget/render/page?usegapi=1"},card:{url:":socialhost:/:session_prefix:_/hovercard/card"},youtube:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/youtube?usegapi=1",methods:["scroll","openwindow"]},plus_circle:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/plus/circle?usegapi=1"},rbr_s:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/render/recobarsimplescroller"},udc_webconsentflow:{params:{url:""},url:"https://myaccount.google.com/webconsent?usegapi=1"},savetoandroidpay:{url:"https://androidpay.google.com/a/widget/save"},blogger:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/blogger?usegapi=1",methods:["scroll","openwindow"]},evwidget:{params:{url:""},url:":socialhost:/:session_prefix:_/events/widget?usegapi=1"},surveyoptin:{url:"https://www.google.com/shopping/customerreviews/optin?usegapi=1"},":socialhost:":"https://apis.google.com",hangout:{url:"https://talkgadget.google.com/:session_prefix:talkgadget/_/widget"},":gplus_url:":"https://plus.google.com",rbr_i:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/render/recobarinvitation"},share:{url:":socialhost:/:session_prefix::im_prefix:_/widget/render/share?usegapi=1"},comments:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/comments?usegapi=1",methods:["scroll","openwindow"]},autocomplete:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/autocomplete"},ratingbadge:{url:"https://www.google.com/shopping/customerreviews/badge?usegapi=1"},appcirclepicker:{url:":socialhost:/:session_prefix:_/widget/render/appcirclepicker"},follow:{url:":socialhost:/:session_prefix:_/widget/render/follow?usegapi=1"},sharetoclassroom:{url:"https://www.gstatic.com/classroom/sharewidget/widget_stable.html?usegapi=1"},ytshare:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/ytshare?usegapi=1"},family_creation:{params:{url:""},url:"https://families.google.com/webcreation?usegapi=1&usegapi=1"},configurator:{url:":socialhost:/:session_prefix:_/plusbuttonconfigurator?usegapi=1"},savetowallet:{url:"https://androidpay.google.com/a/widget/save"}}},h:"m;/_/scs/apps-static/_/js/k=oz.gapi.en.eHREbSEMRRA.O/m=__features__/am=AQ/rt=j/d=1/rs=AGLTcCOt6BoAnQMKeQ-jZgcZrCjxtuDnlA",u:"https://apis.google.com/js/client:api.js",hee:!0,fp:"1fc2dd475dcc7ca759499d98ade252554e0156c5",dpo:!1},fp:"1fc2dd475dcc7ca759499d98ade252554e0156c5",annotation:["interactivepost","recobar","signin2","autocomplete","profile"],bimodal:["signin","share"]}}),function(t){var t=t||{},e={logLevel:"debug",koreAPIUrl:"https://bots.kore.ai/",koreSpeechAPIUrl:""};e.koreAnonymousFn=koreAnonymousFn,e.recorderWorkerPath="../libs/recorderWorker.js",e.JWTUrl="PLEASE_ENTER_JWTURL_HERE",e.userIdentity="PLEASE_ENTER_USER_EMAIL_ID",e.botInfo={name:"PLEASE_ENTER_BOT_NAME",_id:"PLEASE_ENTER_BOT_ID"},e.clientId="PLEASE_ENTER_CLIENT_ID",e.clientSecret="PLEASE_ENTER_CLIENT_SECRET",e.brandingAPIUrl=e.koreAPIUrl+"websdkthemes/"+e.botInfo._id+"/activetheme",e.enableThemes=!0,t.chatConfig={botOptions:e,allowIframe:!1,isSendButton:!1,isTTSEnabled:!0,ttsInterface:"webapi",isSpeechEnabled:!0,allowGoogleSpeech:!0,allowLocation:!0,loadHistory:!1,messageHistoryLimit:10,autoEnableSpeechAndTTS:!1,graphLib:"d3",googleMapsAPIKey:"",minimizeMode:!0,multiPageApp:{enable:!1,userIdentityStore:"localStorage",chatWindowStateStore:"localStorage"},supportDelayedMessages:!0,maxTypingIndicatorTime:1e4,pickersConfig:{showDatePickerIcon:!1,showDateRangePickerIcon:!1,showClockPickerIcon:!1,showTaskMenuPickerIcon:!1,showradioOptionMenuPickerIcon:!1},sendFailedMessage:{MAX_RETRIES:3},syncMessages:{onReconnect:{enable:!0,batchSize:10},onNetworkResume:{enable:!0,batchSize:10}},showAttachment:!0}}(window.KoreSDK),function(){var t={logLevel:"debug",koreAPIUrl:"https://bots.kore.ai",JWTUrl:"PLEASE_ENTER_JWTURL_HERE",userIdentity:"PLEASE_ENTER_USER_EMAIL_ID",botInfo:{name:"PLEASE_ENTER_BOT_NAME",_id:"PLEASE_ENTER_BOT_ID"},clientId:"PLEASE_ENTER_CLIENT_ID",clientSecret:"PLEASE_ENTER_CLIENT_SECRET"};(window.KoreSDK||{}).widgetsConfig={botOptions:t}}(),function(a){var o,t=location.href.split("#")[1]||"";if(!(o=window.JWT_OBJ?window.JWT_OBJ:o)&&t)try{t=t.substr(0,t.length),o=atob(t),o=JSON.parse(o)}catch(t){alert("Something went wrong. Please try again.."+t)}function e(i){return new Promise(function(t,e){var n=document.createElement("script");n.src=i,n.async=!0,n.addEventListener("load",t),n.addEventListener("error",function(t){return e(t.error)}),document.head.appendChild(n)})}var i=function(){console.info("generating UUID");var n=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(n+=performance.now()),"u-xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?e:3&e|8).toString(16)})}();function n(){var i,t=o.unblu;i=t,new Promise(function(t,e){var n=document.createElement("meta");n.name="unblu:named-area",n.content=i.namedAreaNames,document.head.appendChild(n)}),Promise.all([e(t.unbluHostUrl+"/js-api/v2/visitor/visitor-api.min.js"),e(t.unbluHostUrl+"/visitor.js?x-unblu-apikey="+t.apikey)]).then(function(){!function(){var t=o.unblu;t.apikey;function e(t,e){return Promise.resolve(JSON.stringify({identity:identity}))}serverUrl=t.unbluHostUrl,identity=t.sub,window.unblu.api.initialize().then(function(t){console.log("API initialized successfully!"),a("#appLoadingIndicator").hide(),t.setNewConversationInterceptor(e),t.ui.openIndividualUi()}).catch(t=>{console.log("------error : ",t),"INITIALIZATION_TIMEOUT"===t.type||t.type}),console.log("personIfo",window.unbluapi)}()})}var s,r,l=window.KoreSDK.chatConfig;o&&o.ity&&(i=o.ity),l.botOptions.userIdentity=i,l.botOptions.assertionFn=function(e,n){var t;o&&o.jwt?(e.assertion=o.jwt,e.handleError=r.showError,e.chatHistory=r.chatHistory,e.botDetails=r.botDetails,n(null,e),setTimeout(function(){r&&r.initToken&&r.initToken(e)},2e3)):(t={clientId:e.clientId,clientSecret:e.clientSecret,identity:i,aud:"",isAnonymous:!1},a.ajax({url:e.JWTUrl,type:"post",data:t,dataType:"json",success:function(t){e.assertion=t.jwt,e.handleError=r.showError,e.chatHistory=r.chatHistory,o&&o.jwt||(e.botDetails=r.botDetails,setTimeout(function(){r&&r.initToken&&r.initToken(e)},2e3)),n(null,e)},error:function(t){r.showError(t.responseText)}}))},l.botOptions.jwtgrantSuccessCB=function(t){var e;o.isAttribution&&a(".kore-chat-window").addClass("if-free-credits-bot"),e=t,l.botOptions.enableThemes&&(t=(l.botOptions.brandingAPIUrl||"").replace(":appId",l.botOptions.botInfo._id),a.ajax({url:t,headers:{Authorization:"bearer "+e.authorization.accessToken},type:"get",dataType:"json",success:function(t){r&&r.applySDKBranding&&r.applySDKBranding(t),r&&r.initToken&&r.initToken(e)},error:function(t){console.log(t)}}))},l.onJWTGrantError=function(t){var e;o&&o.jwt&&(e=o.koreAPIUrl+"api/platform/websdksts",a.ajax({url:e,headers:{"Content-Type":"application/json"},contentType:"application/json",data:JSON.stringify({ak:o.ak,ity:o.ity,botId:o.botInfo._id}),type:"post",dataType:"json",success:function(t){t&&t.jwt&&(o.jwt=t.jwt,a(".kore-chat-header .disabled").prop("disabled",!1).removeClass("disabled"),a(".kore-chat-window .reload-btn").trigger("click"))},error:function(t){console.log(t)}}))},o&&o.botInfo&&(l.botOptions.botInfo=o.botInfo),o&&o.koreAPIUrl&&(l.botOptions.koreAPIUrl=o.koreAPIUrl+"api/",l.botOptions.brandingAPIUrl=l.botOptions.koreAPIUrl+"websdkthemes/"+o.botInfo._id+"/activetheme"),o&&o.brand&&o.brand.headerTitle&&(l.chatTitleOverride=o.brand.headerTitle),o&&o.tasktotrigger&&(l.tasktotrigger=o.tasktotrigger),o&&o.botInfo&&o.botInfo.panelsExists&&((s=window.KoreSDK.widgetsConfig).botOptions.botInfo=l.botOptions.botInfo,s.botOptions.koreAPIUrl=o.koreAPIUrl.substr(0,o.koreAPIUrl.length-1),s.botOptions.userIdentity=l.botOptions.userIdentity,t=new KoreWidgetSDK(s),(l.widgetSDKInstace=t).setJWT(o.jwt),t.show(s,{menu:".kr-wiz-menu-chat",content:".kr-wiz-content-chat"})),a("html").removeClass("loading"),o&&o.errorObj?(s=a(".kr-sdkEmptyState .emptyDes"))&&s.length?(a("html").addClass("error"),a(".kr-sdkEmptyState .emptyDes").html(o.errorObj.message),o&&o.errorObj&&o.errorObj.errorTitle&&a(".kr-sdkEmptyState .emptyTitle").html(o.errorObj.errorTitle)):window.alert(o.errorObj.message):(o&&o.channel&&"unblu"===o.channel?(n(),a("#appLoadingIndicator").show()):r=koreBotChat(),window.KoreSDK.show=function(t){r.show(t)})}(jQuery||window.KoreSDK&&window.KoreSDK.dependencies&&window.KoreSDK.dependencies.jQuery),function(t){t.KoreSDK=t.KoreSDK||{},t.KoreSDK.dependencies=t.KoreSDK.dependencies||{},t.KoreSDK.dependencies.jQuery||(t.KoreSDK.dependencies.jQuery=jQuery.noConflict(!0)),t.define=t.__define,t.require=t.__require,t.__define=void 0,t.__require=void 0}(window);