@meetelise/chat 1.53.0 → 1.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/public/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){return i(e,o,r)}},79:(e,t,n)=>{var i=n(3702),r=n(80),o=n(4739),a=n(8655),s=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},80:(e,t,n)=>{var i=n(6025),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},85:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(1,arguments);var n=(0,i.default)(e),s=(0,r.default)(n,t).getTime()-(0,o.default)(n,t).getTime();return Math.round(s/l)+1};var i=s(n(5039)),r=s(n(930)),o=s(n(9799)),a=s(n(427));function s(e){return e&&e.__esModule?e:{default:e}}var l=6048e5;e.exports=t.default},104:(e,t,n)=>{var i=n(3661);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},170:(e,t,n)=>{var i=n(6440);function r(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&i(e,this,t)}var a=o.prototype;a.append=function(e,t){this._pairs.push([e,t])},a.toString=function(e){var t=e?function(t){return e.call(this,t,r)}:r;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},e.exports=o},243:e=>{e.exports=FormData},270:(e,t,n)=>{var i=n(7068),r=n(346);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,o,a,e,s))}},289:(e,t,n)=>{var i=n(2651);e.exports=function(e){return i(this,e).get(e)}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var r=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}},e.exports=t.default},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},521:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=(0,i.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),s=n-o;return Math.floor(s/a)+1};var i=o(n(5039)),r=o(n(427));function o(e){return e&&e.__esModule?e:{default:e}}var a=864e5;e.exports=t.default},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},583:(e,t,n)=>{var i=n(7237),r=n(7255),o=n(8586),a=n(7797);e.exports=function(e){return o(e)?i(a(e)):r(e)}},620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(8963))&&i.__esModule?i:{default:i};var o={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return(0,r.default)("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,r.default)(n+1,2)},d:function(e,t){return(0,r.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,r.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,r.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,r.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,r.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return(0,r.default)(o,t.length)}};t.default=o,e.exports=t.default},631:(e,t,n)=>{var i=n(8077),r=n(9326);e.exports=function(e,t){return null!=e&&r(e,t,i)}},641:(e,t,n)=>{var i=n(6649),r=n(5950);e.exports=function(e,t){return e&&i(e,t,r)}},659:(e,t,n)=>{var i=n(1873),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var r=a.call(e);return i&&(t?e[s]=n:delete e[s]),r}},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var a,s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}},e.exports=t.default},689:(e,t,n)=>{var i=n(2),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=i(e),d=u.length;if(d!=i(t).length&&!l)return!1;for(var c=d;c--;){var h=u[c];if(!(l?h in t:r.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++c<d;){var y=e[h=u[c]],b=t[h];if(o)var v=l?o(b,y,h,t,e,s):o(y,b,h,e,t,s);if(!(void 0===v?y===b||a(y,b,n,o,s):v)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=e.constructor,C=t.constructor;w==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof C&&C instanceof C||(g=!1)}return s.delete(e),s.delete(t),g}},695:(e,t,n)=>{var i=n(8096),r=n(2428),o=n(6449),a=n(3656),s=n(361),l=n(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),d=!n&&r(e),c=!n&&!d&&a(e),h=!n&&!d&&!c&&l(e),p=n||d||c||h,f=p?i(e.length,String):[],g=f.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||c&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},756:(e,t,n)=>{var i=n(3805);e.exports=function(e){return e==e&&!i(e)}},776:(e,t,n)=>{var i=n(756),r=n(5950);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,i(a)]}return t}},786:(e,t,n)=>{e.exports=n(1894)},828:(e,t,n)=>{var i=n(4647),r=n(3222),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=r(e))&&e.replace(o,i).replace(a,"")}},882:e=>{e.exports=function(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}},909:(e,t,n)=>{var i=n(641),r=n(8329)(i);e.exports=r},930:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,o.default)(s),u=null==n.weekStartsOn?l:(0,o.default)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,i.default)(e),c=d.getUTCDay(),h=(c<u?7:0)+c-u;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d};var i=a(n(5039)),r=a(n(427)),o=a(n(9784));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},945:(e,t,n)=>{var i=n(79),r=n(8223),o=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!r||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},1042:(e,t,n)=>{var i=n(6110)(Object,"create");e.exports=i},1074:e=>{e.exports=function(e){return e.split("")}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1175:(e,t,n)=>{var i=n(6025);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},1287:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(e,t,i){var r,o=n[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r};t.default=i,e.exports=t.default},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1420:(e,t,n)=>{var i=n(79);e.exports=function(){this.__data__=new i,this.size=0}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},1545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var i,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[s]}return i[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},1549:(e,t,n)=>{var i=n(2032),r=n(3862),o=n(6721),a=n(2749),s=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},1601:e=>{e.exports=function(e){return e[1]}},1733:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},1769:(e,t,n)=>{var i=n(6449),r=n(8586),o=n(1802),a=n(3222);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:o(a(e))}},1799:(e,t,n)=>{var i=n(7217),r=n(270);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var d=(u=n[a])[0],c=e[d],h=u[1];if(l&&u[2]){if(void 0===c&&!(d in e))return!1}else{var p=new i;if(o)var f=o(c,h,d,e,t,p);if(!(void 0===f?r(h,c,3,o,p):f))return!1}}return!0}},1802:(e,t,n)=>{var i=n(2224),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=i(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,i,r){t.push(i?r.replace(o,"$1"):n||e)}),t});e.exports=a},1873:(e,t,n)=>{var i=n(9325).Symbol;e.exports=i},1882:(e,t,n)=>{var i=n(2552),r=n(3805);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1894:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},1986:(e,t,n)=>{var i=n(1873),r=n(7828),o=n(5288),a=n(5911),s=n(317),l=n(4247),u=i?i.prototype:void 0,d=u?u.valueOf:void 0;e.exports=function(e,t,n,i,u,c,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!c(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&i;if(p||(p=l),e.size!=t.size&&!f)return!1;var g=h.get(e);if(g)return g==t;i|=2,h.set(e,t);var m=a(p(e),p(t),i,u,c,h);return h.delete(e),m;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},2e3:(e,t,n)=>{var i=n(3945),r=n(2429),o=n(5389),a=n(6449);e.exports=function(e,t){return function(n,s){var l=a(n)?i:r,u=t?t():{};return l(n,e,o(s,2),u)}}},2002:(e,t,n)=>{var i=n(170);e.exports="undefined"!=typeof URLSearchParams?URLSearchParams:i},2012:(e,t,n)=>{var i=n(9516),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(i.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=i.trim(e.slice(0,o)).toLowerCase(),n=i.trim(e.slice(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},2013:(e,t,n)=>{var i=n(3360),r=n(2e3),o=Object.prototype.hasOwnProperty,a=r(function(e,t,n){o.call(e,n)?e[n].push(t):i(e,n,[t])});e.exports=a},2032:(e,t,n)=>{var i=n(1042);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},2036:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(1,arguments);var n=(0,i.default)(e),s=n.getUTCFullYear(),l=t||{},u=l.locale,d=u&&u.options&&u.options.firstWeekContainsDate,c=null==d?1:(0,a.default)(d),h=null==l.firstWeekContainsDate?c:(0,a.default)(l.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(s+1,0,h),p.setUTCHours(0,0,0,0);var f=(0,o.default)(p,t),g=new Date(0);g.setUTCFullYear(s,0,h),g.setUTCHours(0,0,0,0);var m=(0,o.default)(g,t);return n.getTime()>=f.getTime()?s+1:n.getTime()>=m.getTime()?s:s-1};var i=s(n(5039)),r=s(n(427)),o=s(n(930)),a=s(n(9784));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2054:e=>{var t="\\ud800-\\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")"+"?",u="[\\ufe0e\\ufe0f]?",d=u+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+l+")*"),c="(?:"+[o+i+"?",i,a,s,n].join("|")+")",h=RegExp(r+"(?="+r+")|"+c+d,"g");e.exports=function(e){return e.match(h)||[]}},2193:(e,t,n)=>{var i=n(8984),r=n(5861),o=n(2428),a=n(6449),s=n(4894),l=n(3656),u=n(5527),d=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||d(e)||o(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!i(e).length;for(var n in e)if(c.call(e,n))return!1;return!0}},2199:(e,t,n)=>{var i=n(4528),r=n(6449);e.exports=function(e,t,n){var o=t(e);return r(e)?o:i(o,n(e))}},2224:(e,t,n)=>{var i=n(104);e.exports=function(e){var t=i(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},2225:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\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",a="["+o+"]",s="\\d+",l="["+n+"]",u="["+i+"]",d="[^"+t+o+s+n+i+r+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+r+"]",f="(?:"+u+"|"+d+")",g="(?:"+p+"|"+d+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",y="(?:['’](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+b+("(?:\\u200d(?:"+["[^"+t+"]",c,h].join("|")+")"+v+b+")*"),C="(?:"+[l,c,h].join("|")+")"+w,x=RegExp([p+"?"+u+"+"+m+"(?="+[a,p,"$"].join("|")+")",g+"+"+y+"(?="+[a,p+f,"$"].join("|")+")",p+"?"+f+"+"+m,p+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,C].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},2428:(e,t,n)=>{var i=n(7534),r=n(346),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},2429:(e,t,n)=>{var i=n(909);e.exports=function(e,t,n,r){return i(e,function(e,i,o){t(r,e,n(e),o)}),r}},2461:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(1287)),r=l(n(4994)),o=l(n(6376)),a=l(n(2568)),s=l(n(5024));function l(e){return e&&e.__esModule?e:{default:e}}var u={code:"en-US",formatDistance:i.default,formatLong:r.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=u,e.exports=t.default},2485:(e,t)=>{var n;!function(){var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)i.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},2505:(e,t,n)=>{e.exports=n(8015)},2507:(e,t,n)=>{var i=n(8754),r=n(9698),o=n(3912),a=n(3222);e.exports=function(e){return function(t){t=a(t);var n=r(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?i(n,1).join(""):t.slice(1);return s[e]()+l}}},2552:(e,t,n)=>{var i=n(1873),r=n(659),o=n(9350),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):o(e)}},2568:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(1545))&&i.__esModule?i:{default:i};var o={ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,r.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=o,e.exports=t.default},2651:(e,t,n)=>{var i=n(4218);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},2749:(e,t,n)=>{var i=n(1042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},2804:(e,t,n)=>{var i=n(6110)(n(9325),"Promise");e.exports=i},2881:(e,t,n)=>{var i=n(9516),r=n(7412);e.exports=function(e,t,n,o){var a=this||r;return i.forEach(o,function(i){e=i.call(a,e,t,n)}),e}},2949:(e,t,n)=>{var i=n(2651);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},3040:(e,t,n)=>{var i=n(1549),r=n(79),o=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},3076:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t};var i=o(n(5039)),r=o(n(427));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3191:(e,t,n)=>{var i=n(8563);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;this.promise.then(function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,i=new Promise(function(e){n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,r,o){n.reason||(n.reason=new i(e,r,o),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},3221:e=>{e.exports=function(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(o[l],l,o))break}return t}}},3222:(e,t,n)=>{var i=n(7556);e.exports=function(e){return null==e?"":i(e)}},3243:(e,t,n)=>{var i=n(6110),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},3345:e=>{e.exports=function(){return[]}},3360:(e,t,n)=>{var i=n(3243);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3471:(e,t,n)=>{var i=n(9516);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.clear=function(){this.handlers&&(this.handlers=[])},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},3488:e=>{e.exports=function(e){return e}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},3650:(e,t,n)=>{var i=n(4335)(Object.keys,Object);e.exports=i},3656:(e,t,n)=>{e=n.nmd(e);var i=n(9325),r=n(9935),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?i.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l},3661:(e,t,n)=>{var i=n(3040),r=n(7670),o=n(289),a=n(4509),s=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},3663:(e,t,n)=>{var i=n(1799),r=n(776),o=n(7197);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3729:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}},3786:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,i.default)(t);return(0,r.default)(e,-n)};var i=a(n(9784)),r=a(n(5011)),o=a(n(427));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},3864:e=>{e.exports=function(e){return!(!e||!e.__CANCEL__)}},3912:(e,t,n)=>{var i=n(1074),r=n(9698),o=n(2054);e.exports=function(e){return r(e)?o(e):i(e)}},3916:(e,t,n)=>{var i=n(3360),r=n(641),o=n(5389);e.exports=function(e,t){var n={};return t=o(t,3),r(e,function(e,r,o){i(n,r,t(e,r,o))}),n}},3945:e=>{e.exports=function(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var a=e[r];t(i,a,n(a),e)}return i}},3948:(e,t,n)=>{var i=n(9516);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},3950:e=>{e.exports=function(){}},4058:(e,t,n)=>{var i=n(4792),r=n(5539)(function(e,t,n){return t=t.toLowerCase(),e+(n?i(t):t)});e.exports=r},4124:(e,t,n)=>{var i=n(5539)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=i},4202:(e,t,n)=>{var i=n(9516);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},4248:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},4298:(e,t,n)=>{var i=n(9516);e.exports=function(e){function t(e,n,r,o){var a=e[o++];if("__proto__"===a)return!0;var s=Number.isFinite(+a),l=o>=e.length;return a=!a&&i.isArray(r)?r.length:a,l?(i.hasOwnProperty(r,a)?r[a]=[r[a],n]:r[a]=n,!s):(r[a]&&i.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&i.isArray(r[a])&&(r[a]=function(e){var t,n,i={},r=Object.keys(e),o=r.length;for(t=0;t<o;t++)i[n=r[t]]=e[n];return i}(r[a])),!s)}if(i.isFormData(e)&&i.isFunction(e.entries)){var n={};return i.forEachEntry(e,function(e,r){t(function(e){return i.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]})}(e),r,n,0)}),n}return null}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4394:(e,t,n)=>{var i=n(2552),r=n(346);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},4490:(e,t,n)=>{var i=n(9516),r=n(2881),o=n(3864),a=n(7412),s=n(8563),l=n(7018);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,null,e.transformRequest),l(e.headers,"Accept"),l(e.headers,"Content-Type"),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return u(e),t.data=r.call(e,t.data,t.headers,t.status,e.transformResponse),t},function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))),Promise.reject(t)})}},4509:(e,t,n)=>{var i=n(2651);e.exports=function(e){return i(this,e).has(e)}},4528:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},4552:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},4647:(e,t,n)=>{var i=n(4552)({À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=i},4664:(e,t,n)=>{var i=n(9770),r=n(3345),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),i(a(e),function(t){return o.call(e,t)}))}:r;e.exports=s},4680:e=>{e.exports=function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}},4739:(e,t,n)=>{var i=n(6025);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},4792:(e,t,n)=>{var i=n(3222),r=n(5808);e.exports=function(e){return r(i(e).toLowerCase())}},4840:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},4841:(e,t,n)=>{var i=n(9641).version,r=n(5845),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){return function(o,s,l){if(!1===e)throw new r(function(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(s," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!a[s]&&(a[s]=!0),!e||e(o,s,l)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),o=i.length;o-- >0;){var a=i[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new r("option "+a+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}},validators:o}},4894:(e,t,n)=>{var i=n(1882),r=n(294);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},4896:e=>{e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},4901:(e,t,n)=>{var i=n(2552),r=n(294),o=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!a[i(e)]}},4932:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}},4994:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(9059))&&i.__esModule?i:{default:i};var o={date:(0,r.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=o,e.exports=t.default},5011:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e).getTime(),a=(0,i.default)(t);return new Date(n+a)};var i=a(n(9784)),r=a(n(5039)),o=a(n(427));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5019:(e,t,n)=>{var i=n(9516);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},5024:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(663));function r(e){return e&&e.__esModule?e:{default:e}}var o={ordinalNumber:(0,r(n(311)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,i.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,i.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=o,e.exports=t.default},5039:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):new Date(NaN)};var i,r=(i=n(427))&&i.__esModule?i:{default:i};e.exports=t.default},5042:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=d(n(521)),r=d(n(9638)),o=d(n(5891)),a=d(n(85)),s=d(n(2036)),l=d(n(8963)),u=d(n(620));function d(e){return e&&e.__esModule?e:{default:e}}var c="midnight",h="noon",p="morning",f="afternoon",g="evening",m="night",y={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return u.default.y(e,t)},Y:function(e,t,n,i){var r=(0,s.default)(e,i),o=r>0?r:1-r;if("YY"===t){var a=o%100;return(0,l.default)(a,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,l.default)(o,t.length)},R:function(e,t){var n=(0,o.default)(e);return(0,l.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,l.default)(n,t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return(0,l.default)(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return(0,l.default)(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return u.default.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return(0,l.default)(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var r=(0,a.default)(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.default)(r,t.length)},I:function(e,t,n){var i=(0,r.default)(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):(0,l.default)(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.default.d(e,t)},D:function(e,t,n){var r=(0,i.default)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,l.default)(r,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,l.default)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,l.default)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return(0,l.default)(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,r=e.getUTCHours();switch(i=12===r?h:0===r?c:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,r=e.getUTCHours();switch(i=r>=17?g:r>=12?f:r>=4?p:m,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return u.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.default.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):(0,l.default)(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):(0,l.default)(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.default.s(e,t)},S:function(e,t){return u.default.S(e,t)},X:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return v(r);case"XXXX":case"XX":return w(r);default:return w(r,":")}},x:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return v(r);case"xxxx":case"xx":return w(r);default:return w(r,":")}},O:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(r,":");default:return"GMT"+w(r,":")}},z:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(r,":");default:return"GMT"+w(r,":")}},t:function(e,t,n,i){var r=i._originalDate||e,o=Math.floor(r.getTime()/1e3);return(0,l.default)(o,t.length)},T:function(e,t,n,i){var r=(i._originalDate||e).getTime();return(0,l.default)(r,t.length)}};function b(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+(0,l.default)(o,2)}function v(e,t){return e%60==0?(e>0?"-":"+")+(0,l.default)(Math.abs(e)/60,2):w(e,t)}function w(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+(0,l.default)(Math.floor(r/60),2)+n+(0,l.default)(r%60,2)}var C=y;t.default=C,e.exports=t.default},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],u=i.base?l[0]+i.base:l[0],d=o[u]||0,c="".concat(u," ").concat(d);o[u]=d+1;var h=n(c),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var f=r(p,i);i.byIndex=s,t.splice(s,0,{identifier:c,updater:f,references:1})}a.push(c)}return a}function r(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=i(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var l=i(e,r),u=0;u<o.length;u++){var d=n(o[u]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}o=l}}},5083:(e,t,n)=>{var i=n(1882),r=n(7296),o=n(3805),a=n(7473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,h=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(i(e)?h:s).test(a(e))}},5102:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)};var i,r=(i=n(427))&&i.__esModule?i:{default:i};e.exports=t.default},5155:(e,t,n)=>{var i=n(9516),r=n(9106),o=n(3471),a=n(4490),s=n(5343),l=n(9615),u=n(4841),d=u.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1);var r=t.paramsSerializer;null!=r&&(i.isFunction(r)?t.paramsSerializer={serialize:r}:u.assertOptions(r,{encode:d.function,serialize:d.function},!0));var o=[],l=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});var c,h=[];if(this.interceptors.response.forEach(function(e){h.push(e.fulfilled,e.rejected)}),!l){var p=[a,void 0];for(Array.prototype.unshift.apply(p,o),p=p.concat(h),c=Promise.resolve(t);p.length;)c=c.then(p.shift(),p.shift());return c}for(var f=t;o.length;){var g=o.shift(),m=o.shift();try{f=g(f)}catch(e){m(e);break}}try{c=a(f)}catch(e){return Promise.reject(e)}for(;h.length;)c=c.then(h.shift(),h.shift());return c},c.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url,e.allowAbsoluteUrls);return r(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),i.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}c.prototype[e]=t(),c.prototype[e+"Form"]=t(!0)}),e.exports=c},5160:e=>{e.exports=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i<r;)o[i]=e[i+t];return o}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5343:(e,t,n)=>{var i=n(9516);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isEmptyObject(t)?i.merge({},e):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=u[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)}),n}},5389:(e,t,n)=>{var i=n(3663),r=n(7978),o=n(3488),a=n(6449),s=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?r(e[0],e[1]):i(e):s(e)}},5434:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},5481:(e,t,n)=>{var i=n(9325)["__core-js_shared__"];e.exports=i},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5539:(e,t,n)=>{var i=n(882),r=n(828),o=n(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return i(o(r(t).replace(a,"")),e,"")}}},5541:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),o=n(6314),a=n.n(o)()(r());a.push([e.id,"@media screen and (min-width: 768px) {\n .meetelise-chat.pane.launcher__desktop {\n right: -32px;\n }\n}\n",""]);const s=a},5580:(e,t,n)=>{var i=n(6110)(n(9325),"DataView");e.exports=i},5592:(e,t,n)=>{var i=n(9516),r=n(7522),o=n(3948),a=n(9106),s=n(9615),l=n(2012),u=n(4202),d=n(4896),c=n(5845),h=n(8563),p=n(5656),f=n(5721);e.exports=function(e){return new Promise(function(t,n){var g,m=e.data,y=e.headers,b=e.responseType,v=e.withXSRFToken;function w(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}i.isFormData(m)&&i.isStandardBrowserEnv()&&delete y["Content-Type"];var C=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",$=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(x+":"+$)}var S=s(e.baseURL,e.url,e.allowAbsoluteUrls);function A(){if(C){var i="getAllResponseHeaders"in C?l(C.getAllResponseHeaders()):null,o={data:b&&"text"!==b&&"json"!==b?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:i,config:e,request:C};r(function(e){t(e),w()},function(e){n(e),w()},o),C=null}}if(C.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),C.timeout=e.timeout,"onloadend"in C?C.onloadend=A:C.onreadystatechange=function(){C&&4===C.readyState&&(0!==C.status||C.responseURL&&0===C.responseURL.indexOf("file:"))&&setTimeout(A)},C.onabort=function(){C&&(n(new c("Request aborted",c.ECONNABORTED,e,C)),C=null)},C.onerror=function(){n(new c("Network Error",c.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new c(t,i.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,e,C)),C=null},i.isStandardBrowserEnv()&&(v&&i.isFunction(v)&&(v=v(e)),v||!1!==v&&u(S))){var E=e.xsrfHeaderName&&e.xsrfCookieName&&o.read(e.xsrfCookieName);E&&(y[e.xsrfHeaderName]=E)}"setRequestHeader"in C&&i.forEach(y,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete y[t]:C.setRequestHeader(t,e)}),i.isUndefined(e.withCredentials)||(C.withCredentials=!!e.withCredentials),b&&"json"!==b&&(C.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&C.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&C.upload&&C.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(t){C&&(n(!t||t.type?new h(null,e,C):t),C.abort(),C=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),m||!1===m||0===m||""===m||(m=null);var T=p(S);T&&-1===f.protocols.indexOf(T)?n(new c("Unsupported protocol "+T+":",c.ERR_BAD_REQUEST,e)):C.send(m)})}},5656:e=>{e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5721:(e,t,n)=>{e.exports=n(9490)},5749:(e,t,n)=>{var i=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},5808:(e,t,n)=>{var i=n(2507)("toUpperCase");e.exports=i},5816:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(1,arguments),!(0,i.default)(e)&&"number"!=typeof e)return!1;var t=(0,r.default)(e);return!isNaN(Number(t))};var i=a(n(5102)),r=a(n(5039)),o=a(n(427));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5845:(e,t,n)=>{var i=n(9516);function r(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(e){a[e]={value:e}}),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,n,a,s,l){var u=Object.create(o);return i.toFlatObject(e,u,function(e){return e!==Error.prototype}),r.call(u,e.message,t,n,a,s),u.cause=e,u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},5861:(e,t,n)=>{var i=n(5580),r=n(8223),o=n(2804),a=n(6545),s=n(8303),l=n(2552),u=n(7473),d="[object Map]",c="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",g=u(i),m=u(r),y=u(o),b=u(a),v=u(s),w=l;(i&&w(new i(new ArrayBuffer(1)))!=f||r&&w(new r)!=d||o&&w(o.resolve())!=c||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?u(n):"";if(i)switch(i){case g:return f;case m:return d;case y:return c;case b:return h;case v:return p}return t}),e.exports=w},5891:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.default)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=(0,o.default)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1};var i=a(n(5039)),r=a(n(427)),o=a(n(3076));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5911:(e,t,n)=>{var i=n(8859),r=n(4248),o=n(9219);e.exports=function(e,t,n,a,s,l){var u=1&n,d=e.length,c=t.length;if(d!=c&&!(u&&c>d))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,g=!0,m=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++f<d;){var y=e[f],b=t[f];if(a)var v=u?a(b,y,f,t,e,l):a(y,b,f,e,t,l);if(void 0!==v){if(v)continue;g=!1;break}if(m){if(!r(t,function(e,t){if(!o(m,t)&&(y===e||s(y,e,n,a,l)))return m.push(t)})){g=!1;break}}else if(y!==b&&!s(y,b,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},5950:(e,t,n)=>{var i=n(695),r=n(8984),o=n(4894);e.exports=function(e){return o(e)?i(e):r(e)}},6009:(e,t,n)=>{e=n.nmd(e);var i=n(4840),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&i.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},6025:(e,t,n)=>{var i=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},6069:(e,t,n)=>{var i=n(9516),r=n(6440),o=n(5721);e.exports=function(e,t){return r(e,new o.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return o.isNode&&i.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}},6110:(e,t,n)=>{var i=n(5083),r=n(392);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<e.length;u++){var d=[].concat(e[u]);i&&a[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},6353:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,h.default)(2,arguments);var p=String(t),v=n||{},w=v.locale||r.default,C=w.options&&w.options.firstWeekContainsDate,x=null==C?1:(0,c.default)(C),$=null==v.firstWeekContainsDate?x:(0,c.default)(v.firstWeekContainsDate);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=w.options&&w.options.weekStartsOn,A=null==S?0:(0,c.default)(S),E=null==v.weekStartsOn?A:(0,c.default)(v.weekStartsOn);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!w.localize)throw new RangeError("locale must contain localize property");if(!w.formatLong)throw new RangeError("locale must contain formatLong property");var T=(0,a.default)(e);if(!(0,i.default)(T))throw new RangeError("Invalid time value");var k=(0,u.default)(T),_=(0,o.default)(T,k),O={firstWeekContainsDate:$,weekStartsOn:E,locale:w,_originalDate:T},P=p.match(g).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,l.default[t])(e,w.formatLong,O):e}).join("").match(f).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return n.match(m)[1].replace(y,"'");var r=s.default[i];if(r)return!v.useAdditionalWeekYearTokens&&(0,d.isProtectedWeekYearToken)(n)&&(0,d.throwProtectedError)(n,t,e),!v.useAdditionalDayOfYearTokens&&(0,d.isProtectedDayOfYearToken)(n)&&(0,d.throwProtectedError)(n,t,e),r(_,n,w.localize,O);if(i.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("");return P};var i=p(n(5816)),r=p(n(2461)),o=p(n(3786)),a=p(n(5039)),s=p(n(5042)),l=p(n(6680)),u=p(n(9720)),d=n(9417),c=p(n(9784)),h=p(n(427));function p(e){return e&&e.__esModule?e:{default:e}}var f=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;e.exports=t.default},6376:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i=function(e,t,i,r){return n[e]};t.default=i,e.exports=t.default},6440:(e,t,n)=>{var i=n(9516),r=n(5845),o=n(786);function a(e){return i.isPlainObject(e)||i.isArray(e)}function s(e){return i.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,n){return e?e.concat(t).map(function(e,t){return e=s(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}var u=i.toFlatObject(i,{},null,function(e){return/^is[A-Z]/.test(e)});e.exports=function(e,t,n){if(!i.isObject(e))throw new TypeError("target must be an object");t=t||new(o||FormData);var d,c=(n=i.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!i.isUndefined(t[e])})).metaTokens,h=n.visitor||y,p=n.dots,f=n.indexes,g=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((d=t)&&i.isFunction(d.append)&&"FormData"===d[Symbol.toStringTag]&&d[Symbol.iterator]);if(!i.isFunction(h))throw new TypeError("visitor must be a function");function m(e){if(null===e)return"";if(i.isDate(e))return e.toISOString();if(!g&&i.isBlob(e))throw new r("Blob is not supported. Use a Buffer instead.");return i.isArrayBuffer(e)||i.isTypedArray(e)?g&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function y(e,n,r){var o=e;if(e&&!r&&"object"==typeof e)if(i.endsWith(n,"{}"))n=c?n:n.slice(0,-2),e=JSON.stringify(e);else if(i.isArray(e)&&function(e){return i.isArray(e)&&!e.some(a)}(e)||i.isFileList(e)||i.endsWith(n,"[]")&&(o=i.toArray(e)))return n=s(n),o.forEach(function(e,r){!i.isUndefined(e)&&null!==e&&t.append(!0===f?l([n],r,p):null===f?n:n+"[]",m(e))}),!1;return!!a(e)||(t.append(l(r,n,p),m(e)),!1)}var b=[],v=Object.assign(u,{defaultVisitor:y,convertValue:m,isVisitable:a});if(!i.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!i.isUndefined(n)){if(-1!==b.indexOf(n))throw Error("Circular reference detected in "+r.join("."));b.push(n),i.forEach(n,function(n,o){!0===(!(i.isUndefined(n)||null===n)&&h.call(t,n,i.isString(o)?o.trim():o,r,v))&&e(n,r?r.concat(o):[o])}),b.pop()}}(e),t}},6449:e=>{var t=Array.isArray;e.exports=t},6545:(e,t,n)=>{var i=n(6110)(n(9325),"Set");e.exports=i},6645:(e,t,n)=>{var i=n(1733),r=n(5434),o=n(3222),a=n(2225);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?r(e)?a(e):i(e):e.match(t)||[]}},6649:(e,t,n)=>{var i=n(3221)();e.exports=i},6680:(e,t)=>{function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function i(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={p:i,P:function(e,t){var r,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return n(e,t);switch(a){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",n(a,t)).replace("{{time}}",i(s,t))}},o=r;t.default=o,e.exports=t.default},6721:(e,t,n)=>{var i=n(1042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},7018:(e,t,n)=>{var i=n(9516);e.exports=function(e,t){i.forEach(e,function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])})}},7035:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)({},e)};var i,r=(i=n(7390))&&i.__esModule?i:{default:i};e.exports=t.default},7068:(e,t,n)=>{var i=n(7217),r=n(5911),o=n(1986),a=n(689),s=n(5861),l=n(6449),u=n(3656),d=n(7167),c="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var b=l(e),v=l(t),w=b?h:s(e),C=v?h:s(t),x=(w=w==c?p:w)==p,$=(C=C==c?p:C)==p,S=w==C;if(S&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(S&&!x)return y||(y=new i),b||d(e)?r(e,t,n,g,m,y):o(e,t,w,n,g,m,y);if(!(1&n)){var A=x&&f.call(e,"__wrapped__"),E=$&&f.call(t,"__wrapped__");if(A||E){var T=A?e.value():e,k=E?t.value():t;return y||(y=new i),m(T,k,n,g,y)}}return!!S&&(y||(y=new i),a(e,t,n,g,m,y))}},7167:(e,t,n)=>{var i=n(4901),r=n(7301),o=n(6009),a=o&&o.isTypedArray,s=a?r(a):i;e.exports=s},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},7217:(e,t,n)=>{var i=n(79),r=n(1420),o=n(938),a=n(3605),s=n(9817),l=n(945);function u(e){var t=this.__data__=new i(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},7237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255:(e,t,n)=>{var i=n(7422);e.exports=function(e){return function(t){return i(t,e)}}},7296:(e,t,n)=>{var i,r=n(5481),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},7390:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},e.exports=t.default},7412:(e,t,n)=>{var i=n(9516),r=n(7018),o=n(5845),a=n(4896),s=n(6440),l=n(6069),u=n(5721),d=n(4298),c={"Content-Type":"application/x-www-form-urlencoded"};function h(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var p,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(p=n(5592)),p),transformRequest:[function(e,t){r(t,"Accept"),r(t,"Content-Type");var n,o=t&&t["Content-Type"]||"",a=o.indexOf("application/json")>-1,u=i.isObject(e);if(u&&i.isHTMLForm(e)&&(e=new FormData(e)),i.isFormData(e))return a?JSON.stringify(d(e)):e;if(i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return h(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(u){if(-1!==o.indexOf("application/x-www-form-urlencoded"))return l(e,this.formSerializer).toString();if((n=i.isFileList(e))||o.indexOf("multipart/form-data")>-1){var c=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,c&&new c,this.formSerializer)}}return u||a?(h(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&i.isString(e)&&(n&&!this.responseType||r)){var a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:u.classes.FormData,Blob:u.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(e){f.headers[e]={}}),i.forEach(["post","put","patch"],function(e){f.headers[e]=i.merge(c)}),e.exports=f},7422:(e,t,n)=>{var i=n(1769),r=n(7797);e.exports=function(e,t){for(var n=0,o=(t=i(t,e)).length;null!=e&&n<o;)e=e[r(t[n++])];return n&&n==o?e:void 0}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7522:(e,t,n)=>{var i=n(5845);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},7534:(e,t,n)=>{var i=n(2552),r=n(346);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},7556:(e,t,n)=>{var i=n(1873),r=n(4932),o=n(6449),a=n(4394),s=i?i.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7659:e=>{var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},7670:(e,t,n)=>{var i=n(2651);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},7674:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,r.default)(n)};var i=a(n(5891)),r=a(n(3076)),o=a(n(427));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7797:(e,t,n)=>{var i=n(4394);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7825:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7828:(e,t,n)=>{var i=n(9325).Uint8Array;e.exports=i},7978:(e,t,n)=>{var i=n(270),r=n(8156),o=n(631),a=n(8586),s=n(756),l=n(7197),u=n(7797);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=r(n,e);return void 0===a&&a===t?o(n,e):i(t,a,3)}}},7980:e=>{e.exports=function(e){return function(t){return e.apply(null,t)}}},8015:(e,t,n)=>{var i=n(9516),r=n(9012),o=n(5155),a=n(5343),s=n(7412),l=n(4298);var u=function e(t){var n=new o(t),s=r(o.prototype.request,n);return i.extend(s,o.prototype,n),i.extend(s,n),s.create=function(n){return e(a(t,n))},s}(s);u.Axios=o,u.CanceledError=n(8563),u.CancelToken=n(3191),u.isCancel=n(3864),u.VERSION=n(9641).version,u.toFormData=n(6440),u.AxiosError=n(5845),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=n(7980),u.isAxiosError=n(5019),u.formToJSON=function(e){return l(i.isHTMLForm(e)?new FormData(e):e)},e.exports=u,e.exports.default=u},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},8096:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},8156:(e,t,n)=>{var i=n(7422);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},8223:(e,t,n)=>{var i=n(6110)(n(9325),"Map");e.exports=i},8303:(e,t,n)=>{var i=n(6110)(n(9325),"WeakMap");e.exports=i},8329:(e,t,n)=>{var i=n(4894);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==r(s[a],a,s););return n}}},8563:(e,t,n)=>{var i=n(5845);function r(e,t,n){i.call(this,null==e?"canceled":e,i.ERR_CANCELED,t,n),this.name="CanceledError"}n(9516).inherits(r,i,{__CANCEL__:!0}),e.exports=r},8586:(e,t,n)=>{var i=n(6449),r=n(4394),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},8655:(e,t,n)=>{var i=n(6025);e.exports=function(e){return i(this.__data__,e)>-1}},8754:(e,t,n)=>{var i=n(5160);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}},8805:function(e,t,n){e.exports=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function r(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function o(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}function a(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function c(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),t}var h={exports:{}};!function(e){!function(t,n){var i=Math.pow(2,-24),r=Math.pow(2,32),o=Math.pow(2,53),a={encode:function(e){var t,i=new ArrayBuffer(256),a=new DataView(i),s=0;function l(e){for(var n=i.byteLength,r=s+e;n<r;)n*=2;if(n!==i.byteLength){var o=a;i=new ArrayBuffer(n),a=new DataView(i);for(var l=s+3>>2,u=0;u<l;++u)a.setUint32(4*u,o.getUint32(4*u))}return t=e,a}function u(){s+=t}function d(e){u(l(1).setUint8(s,e))}function c(e){for(var t=l(e.length),n=0;n<e.length;++n)t.setUint8(s+n,e[n]);u()}function h(e,t){t<24?d(e<<5|t):t<256?(d(e<<5|24),d(t)):t<65536?(d(e<<5|25),function(e){u(l(2).setUint16(s,e))}(t)):t<4294967296?(d(e<<5|26),function(e){u(l(4).setUint32(s,e))}(t)):(d(e<<5|27),function(e){var t=e%r,n=(e-t)/r,i=l(8);i.setUint32(s,n),i.setUint32(s+4,t),u()}(t))}if(function e(t){var i;if(!1===t)return d(244);if(!0===t)return d(245);if(null===t)return d(246);if(t===n)return d(247);switch(typeof t){case"number":if(Math.floor(t)===t){if(0<=t&&t<=o)return h(0,t);if(-o<=t&&t<0)return h(1,-(t+1))}return d(251),function(e){u(l(8).setFloat64(s,e))}(t);case"string":var r=[];for(i=0;i<t.length;++i){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(192|a>>6),r.push(128|63&a)):a<55296?(r.push(224|a>>12),r.push(128|a>>6&63),r.push(128|63&a)):(a=(1023&a)<<10,a|=1023&t.charCodeAt(++i),a+=65536,r.push(240|a>>18),r.push(128|a>>12&63),r.push(128|a>>6&63),r.push(128|63&a))}return h(3,r.length),c(r);default:var p;if(Array.isArray(t))for(h(4,p=t.length),i=0;i<p;++i)e(t[i]);else if(t instanceof Uint8Array)h(2,t.length),c(t);else{var f=Object.keys(t);for(h(5,p=f.length),i=0;i<p;++i){var g=f[i];e(g),e(t[g])}}}}(e),"slice"in i)return i.slice(0,s);for(var p=new ArrayBuffer(s),f=new DataView(p),g=0;g<s;++g)f.setUint8(g,a.getUint8(g));return p},decode:function(e,t,o){var a=new DataView(e),s=0;function l(e,t){return s+=t,e}function u(t){return l(new Uint8Array(e,s,t),t)}function d(){return l(a.getUint8(s),1)}function c(){return l(a.getUint16(s),2)}function h(){return l(a.getUint32(s),4)}function p(){return 255===a.getUint8(s)&&(s+=1,!0)}function f(e){if(e<24)return e;if(24===e)return d();if(25===e)return c();if(26===e)return h();if(27===e)return h()*r+h();if(31===e)return-1;throw"Invalid length encoding"}function g(e){var t=d();if(255===t)return-1;var n=f(31&t);if(n<0||t>>5!==e)throw"Invalid indefinite length element";return n}function m(e,t){for(var n=0;n<t;++n){var i=d();128&i&&(i<224?(i=(31&i)<<6|63&d(),t-=1):i<240?(i=(15&i)<<12|(63&d())<<6|63&d(),t-=2):(i=(15&i)<<18|(63&d())<<12|(63&d())<<6|63&d(),t-=3)),i<65536?e.push(i):(i-=65536,e.push(55296|i>>10),e.push(56320|1023&i))}}"function"!=typeof t&&(t=function(e){return e}),"function"!=typeof o&&(o=function(){return n});var y=function e(){var r,h,y=d(),b=y>>5,v=31&y;if(7===b)switch(v){case 25:return function(){var e=new ArrayBuffer(4),t=new DataView(e),n=c(),r=32768&n,o=31744&n,a=1023&n;if(31744===o)o=261120;else if(0!==o)o+=114688;else if(0!==a)return a*i;return t.setUint32(0,r<<16|o<<13|a<<13),t.getFloat32(0)}();case 26:return l(a.getFloat32(s),4);case 27:return l(a.getFloat64(s),8)}if((h=f(v))<0&&(b<2||6<b))throw"Invalid length";switch(b){case 0:return h;case 1:return-1-h;case 2:if(h<0){for(var w=[],C=0;(h=g(b))>=0;)C+=h,w.push(u(h));var x=new Uint8Array(C),$=0;for(r=0;r<w.length;++r)x.set(w[r],$),$+=w[r].length;return x}return u(h);case 3:var S=[];if(h<0)for(;(h=g(b))>=0;)m(S,h);else m(S,h);return String.fromCharCode.apply(null,S);case 4:var A;if(h<0)for(A=[];!p();)A.push(e());else for(A=new Array(h),r=0;r<h;++r)A[r]=e();return A;case 5:var E={};for(r=0;r<h||h<0&&!p();++r)E[e()]=e();return E;case 6:return t(e(),h);case 7:switch(h){case 20:return!1;case 21:return!0;case 22:return null;case 23:return n;default:return o(h)}}}();if(s!==e.byteLength)throw"Remaining bytes";return y}};e.exports?e.exports=a:t.CBOR||(t.CBOR=a)}(d)}(h);var p=h.exports,f={exports:{}};!function(e,t){!function(e){var t="0.1.0",n={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function i(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}function r(e,t){var i=n[t||"all"];return i&&i.test(e)||!1}i.isUUID=r,i.VERSION=t,e.uuid=i,e.isUUID=r}(t),null!==e&&(e.exports=t.uuid)}(f,f.exports);var g=f.exports,m=function(){return g.uuid?g.uuid():g()},y=function(){function e(e){var t,n,i,r,o=e.setup;if(this._PNSDKSuffix={},this.instanceId="pn-".concat(m()),this.secretKey=o.secretKey||o.secret_key,this.subscribeKey=o.subscribeKey||o.subscribe_key,this.publishKey=o.publishKey||o.publish_key,this.sdkName=o.sdkName,this.sdkFamily=o.sdkFamily,this.partnerId=o.partnerId,this.setAuthKey(o.authKey),this.cryptoModule=o.cryptoModule,this.setFilterExpression(o.filterExpression),"string"!=typeof o.origin&&!Array.isArray(o.origin)&&void 0!==o.origin)throw new Error("Origin must be either undefined, a string or a list of strings.");if(this.origin=o.origin||Array.from({length:20},function(e,t){return"ps".concat(t+1,".pndsn.com")}),this.secure=o.ssl||!1,this.restore=o.restore||!1,this.proxy=o.proxy,this.keepAlive=o.keepAlive,this.keepAliveSettings=o.keepAliveSettings,this.autoNetworkDetection=o.autoNetworkDetection||!1,this.dedupeOnSubscribe=o.dedupeOnSubscribe||!1,this.maximumCacheSize=o.maximumCacheSize||100,this.customEncrypt=o.customEncrypt,this.customDecrypt=o.customDecrypt,this.fileUploadPublishRetryLimit=null!==(t=o.fileUploadPublishRetryLimit)&&void 0!==t?t:5,this.useRandomIVs=null===(n=o.useRandomIVs)||void 0===n||n,this.enableEventEngine=null!==(i=o.enableEventEngine)&&void 0!==i&&i,this.maintainPresenceState=null===(r=o.maintainPresenceState)||void 0===r||r,"undefined"!=typeof location&&"https:"===location.protocol&&(this.secure=!0),this.logVerbosity=o.logVerbosity||!1,this.suppressLeaveEvents=o.suppressLeaveEvents||!1,this.announceFailedHeartbeats=o.announceFailedHeartbeats||!0,this.announceSuccessfulHeartbeats=o.announceSuccessfulHeartbeats||!1,this.useInstanceId=o.useInstanceId||!1,this.useRequestId=o.useRequestId||!1,this.requestMessageCountThreshold=o.requestMessageCountThreshold,o.retryConfiguration&&this._setRetryConfiguration(o.retryConfiguration),this.setTransactionTimeout(o.transactionalRequestTimeout||15e3),this.setSubscribeTimeout(o.subscribeRequestTimeout||31e4),this.setSendBeaconConfig(o.useSendBeacon||!0),o.presenceTimeout?this.setPresenceTimeout(o.presenceTimeout):this._presenceTimeout=300,null!=o.heartbeatInterval&&this.setHeartbeatInterval(o.heartbeatInterval),"string"==typeof o.userId){if("string"==typeof o.uuid)throw new Error("Only one of the following configuration options has to be provided: `uuid` or `userId`");this.setUserId(o.userId)}else{if("string"!=typeof o.uuid)throw new Error("One of the following configuration options has to be provided: `uuid` or `userId`");this.setUUID(o.uuid)}this.setCipherKey(o.cipherKey,o)}return e.prototype.getAuthKey=function(){return this.authKey},e.prototype.setAuthKey=function(e){return this.authKey=e,this},e.prototype.setCipherKey=function(e,t,n){var i;return this.cipherKey=e,this.cipherKey&&(this.cryptoModule=null!==(i=t.cryptoModule)&&void 0!==i?i:t.initCryptoModule({cipherKey:this.cipherKey,useRandomIVs:this.useRandomIVs}),n&&(n.cryptoModule=this.cryptoModule)),this},e.prototype.getUUID=function(){return this.UUID},e.prototype.setUUID=function(e){if(!e||"string"!=typeof e||0===e.trim().length)throw new Error("Missing uuid parameter. Provide a valid string uuid");return this.UUID=e,this},e.prototype.getUserId=function(){return this.UUID},e.prototype.setUserId=function(e){if(!e||"string"!=typeof e||0===e.trim().length)throw new Error("Missing or invalid userId parameter. Provide a valid string userId");return this.UUID=e,this},e.prototype.getFilterExpression=function(){return this.filterExpression},e.prototype.setFilterExpression=function(e){return this.filterExpression=e,this},e.prototype.getPresenceTimeout=function(){return this._presenceTimeout},e.prototype.setPresenceTimeout=function(e){return this._presenceTimeout=e>=20?e:20,this.setHeartbeatInterval(this._presenceTimeout/2-1),this},e.prototype.setProxy=function(e){this.proxy=e},e.prototype.getHeartbeatInterval=function(){return this._heartbeatInterval},e.prototype.setHeartbeatInterval=function(e){return this._heartbeatInterval=e,this},e.prototype.getSubscribeTimeout=function(){return this._subscribeRequestTimeout},e.prototype.setSubscribeTimeout=function(e){return this._subscribeRequestTimeout=e,this},e.prototype.getTransactionTimeout=function(){return this._transactionalRequestTimeout},e.prototype.setTransactionTimeout=function(e){return this._transactionalRequestTimeout=e,this},e.prototype.isSendBeaconEnabled=function(){return this._useSendBeacon},e.prototype.setSendBeaconConfig=function(e){return this._useSendBeacon=e,this},e.prototype.getVersion=function(){return"7.6.3"},e.prototype._setRetryConfiguration=function(e){if(e.minimumdelay<2)throw new Error("Minimum delay can not be set less than 2 seconds for retry");if(e.maximumDelay>150)throw new Error("Maximum delay can not be set more than 150 seconds for retry");if(e.maximumDelay&&maximumRetry>6)throw new Error("Maximum retry for exponential retry policy can not be more than 6");if(e.maximumRetry>10)throw new Error("Maximum retry for linear retry policy can not be more than 10");this.retryConfiguration=e},e.prototype._addPnsdkSuffix=function(e,t){this._PNSDKSuffix[e]=t},e.prototype._getPnsdkSuffix=function(e){var t=this;return Object.keys(this._PNSDKSuffix).reduce(function(n,i){return n+e+t._PNSDKSuffix[i]},"")},e}();function b(e){var t=e.replace(/==?$/,""),n=Math.floor(t.length/4*3),i=new ArrayBuffer(n),r=new Uint8Array(i),o=0;function a(){var e=t.charAt(o++),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);if(-1===n)throw new Error("Illegal character at ".concat(o,": ").concat(t.charAt(o-1)));return n}for(var s=0;s<n;s+=3){var l=a(),u=a(),d=a(),c=a(),h=(63&l)<<2|u>>4,p=(15&u)<<4|d>>2,f=(3&d)<<6|c;r[s]=h,64!=d&&(r[s+1]=p),64!=c&&(r[s+2]=f)}return i}function v(e){for(var t,n="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(e),o=r.byteLength,a=o%3,s=o-a,l=0;l<s;l+=3)n+=i[(16515072&(t=r[l]<<16|r[l+1]<<8|r[l+2]))>>18]+i[(258048&t)>>12]+i[(4032&t)>>6]+i[63&t];return 1==a?n+=i[(252&(t=r[s]))>>2]+i[(3&t)<<4]+"==":2==a&&(n+=i[(64512&(t=r[s]<<8|r[s+1]))>>10]+i[(1008&t)>>4]+i[(15&t)<<2]+"="),n}var w,C,x,$,S,A=A||function(e){var t={},n=t.lib={},i=function(){},r=n.Base={extend:function(e){i.prototype=this;var t=new i;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=n.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes;if(e=e.sigBytes,this.clamp(),i%4)for(var r=0;r<e;r++)t[i+r>>>2]|=(n[r>>>2]>>>24-r%4*8&255)<<24-(i+r)%4*8;else if(65535<n.length)for(r=0;r<e;r+=4)t[i+r>>>2]=n[r>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(4294967296*e.random()|0);return new o.init(n,t)}}),a=t.enc={},s=a.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++){var r=t[i>>>2]>>>24-i%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new o.init(n,t/2)}},l=a.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++)n.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new o.init(n,t)}},u=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=n.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,r=n.sigBytes,a=this.blockSize,s=r/(4*a);if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,r=e.min(4*t,r),t){for(var l=0;l<t;l+=a)this._doProcessBlock(i,l);l=i.splice(0,t),n.sigBytes-=r}return new o.init(l,r)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});n.Hasher=d.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new c.HMAC.init(e,n).finalize(t)}}});var c=t.algo={};return t}(Math);!function(e){for(var t=A,n=(r=t.lib).WordArray,i=r.Hasher,r=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},l=2,u=0;64>u;){var d;e:{d=l;for(var c=e.sqrt(d),h=2;h<=c;h++)if(!(d%h)){d=!1;break e}d=!0}d&&(8>u&&(o[u]=s(e.pow(l,.5))),a[u]=s(e.pow(l,1/3)),u++),l++}var p=[];r=r.SHA256=i.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],u=n[5],d=n[6],c=n[7],h=0;64>h;h++){if(16>h)p[h]=0|e[t+h];else{var f=p[h-15],g=p[h-2];p[h]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+p[h-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[h-16]}f=c+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&d)+a[h]+p[h],g=((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+(i&r^i&o^r&o),c=d,d=u,u=l,l=s+f|0,s=o,o=r,r=i,i=f+g|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+c|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=i._createHelper(r),t.HmacSHA256=i._createHmacHelper(r)}(Math),C=(w=A).enc.Utf8,w.algo.HMAC=w.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=C.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),o=this._iKey=t.clone(),a=r.words,s=o.words,l=0;l<n;l++)a[l]^=1549556828,s[l]^=909522486;r.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}}),$=(x=A).lib.WordArray,x.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp(),e=[];for(var r=0;r<n;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a<n;a++)e.push(i.charAt(o>>>6*(3-a)&63));if(t=i.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,n=this._map;(i=n.charAt(64))&&-1!=(i=e.indexOf(i))&&(t=i);for(var i=[],r=0,o=0;o<t;o++)if(o%4){var a=n.indexOf(e.charAt(o-1))<<o%4*2,s=n.indexOf(e.charAt(o))>>>6-o%4*2;i[r>>>2]|=(a|s)<<24-r%4*8,r++}return $.create(i,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){function t(e,t,n,i,r,o,a){return((e=e+(t&n|~t&i)+r+a)<<o|e>>>32-o)+t}function n(e,t,n,i,r,o,a){return((e=e+(t&i|n&~i)+r+a)<<o|e>>>32-o)+t}function i(e,t,n,i,r,o,a){return((e=e+(t^n^i)+r+a)<<o|e>>>32-o)+t}function r(e,t,n,i,r,o,a){return((e=e+(n^(t|~i))+r+a)<<o|e>>>32-o)+t}for(var o=A,a=(l=o.lib).WordArray,s=l.Hasher,l=o.algo,u=[],d=0;64>d;d++)u[d]=4294967296*e.abs(e.sin(d+1))|0;l=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var a=0;16>a;a++){var s=e[l=o+a];e[l]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}a=this._hash.words;var l=e[o+0],d=(s=e[o+1],e[o+2]),c=e[o+3],h=e[o+4],p=e[o+5],f=e[o+6],g=e[o+7],m=e[o+8],y=e[o+9],b=e[o+10],v=e[o+11],w=e[o+12],C=e[o+13],x=e[o+14],$=e[o+15],S=t(S=a[0],T=a[1],E=a[2],A=a[3],l,7,u[0]),A=t(A,S,T,E,s,12,u[1]),E=t(E,A,S,T,d,17,u[2]),T=t(T,E,A,S,c,22,u[3]);S=t(S,T,E,A,h,7,u[4]),A=t(A,S,T,E,p,12,u[5]),E=t(E,A,S,T,f,17,u[6]),T=t(T,E,A,S,g,22,u[7]),S=t(S,T,E,A,m,7,u[8]),A=t(A,S,T,E,y,12,u[9]),E=t(E,A,S,T,b,17,u[10]),T=t(T,E,A,S,v,22,u[11]),S=t(S,T,E,A,w,7,u[12]),A=t(A,S,T,E,C,12,u[13]),E=t(E,A,S,T,x,17,u[14]),S=n(S,T=t(T,E,A,S,$,22,u[15]),E,A,s,5,u[16]),A=n(A,S,T,E,f,9,u[17]),E=n(E,A,S,T,v,14,u[18]),T=n(T,E,A,S,l,20,u[19]),S=n(S,T,E,A,p,5,u[20]),A=n(A,S,T,E,b,9,u[21]),E=n(E,A,S,T,$,14,u[22]),T=n(T,E,A,S,h,20,u[23]),S=n(S,T,E,A,y,5,u[24]),A=n(A,S,T,E,x,9,u[25]),E=n(E,A,S,T,c,14,u[26]),T=n(T,E,A,S,m,20,u[27]),S=n(S,T,E,A,C,5,u[28]),A=n(A,S,T,E,d,9,u[29]),E=n(E,A,S,T,g,14,u[30]),S=i(S,T=n(T,E,A,S,w,20,u[31]),E,A,p,4,u[32]),A=i(A,S,T,E,m,11,u[33]),E=i(E,A,S,T,v,16,u[34]),T=i(T,E,A,S,x,23,u[35]),S=i(S,T,E,A,s,4,u[36]),A=i(A,S,T,E,h,11,u[37]),E=i(E,A,S,T,g,16,u[38]),T=i(T,E,A,S,b,23,u[39]),S=i(S,T,E,A,C,4,u[40]),A=i(A,S,T,E,l,11,u[41]),E=i(E,A,S,T,c,16,u[42]),T=i(T,E,A,S,f,23,u[43]),S=i(S,T,E,A,y,4,u[44]),A=i(A,S,T,E,w,11,u[45]),E=i(E,A,S,T,$,16,u[46]),S=r(S,T=i(T,E,A,S,d,23,u[47]),E,A,l,6,u[48]),A=r(A,S,T,E,g,10,u[49]),E=r(E,A,S,T,x,15,u[50]),T=r(T,E,A,S,p,21,u[51]),S=r(S,T,E,A,w,6,u[52]),A=r(A,S,T,E,c,10,u[53]),E=r(E,A,S,T,b,15,u[54]),T=r(T,E,A,S,s,21,u[55]),S=r(S,T,E,A,m,6,u[56]),A=r(A,S,T,E,$,10,u[57]),E=r(E,A,S,T,f,15,u[58]),T=r(T,E,A,S,C,21,u[59]),S=r(S,T,E,A,h,6,u[60]),A=r(A,S,T,E,v,10,u[61]),E=r(E,A,S,T,d,15,u[62]),T=r(T,E,A,S,y,21,u[63]),a[0]=a[0]+S|0,a[1]=a[1]+T|0,a[2]=a[2]+E|0,a[3]=a[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296);for(n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process(),n=(t=this._hash).words,i=0;4>i;i++)r=n[i],n[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return t},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),o.MD5=s._createHelper(l),o.HmacMD5=s._createHmacHelper(l)}(Math),function(){var e,t=A,n=(e=t.lib).Base,i=e.WordArray,r=(e=t.algo).EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=(s=this.cfg).hasher.create(),r=i.create(),o=r.words,a=s.keySize,s=s.iterations;o.length<a;){l&&n.update(l);var l=n.update(e).finalize(t);n.reset();for(var u=1;u<s;u++)l=n.finalize(l),n.reset();r.concat(l)}return r.sigBytes=4*a,r}});t.EvpKDF=function(e,t,n){return r.create(n).compute(e,t)}}(),A.lib.Cipher||function(){var e=(h=A).lib,t=e.Base,n=e.WordArray,i=e.BufferedBlockAlgorithm,r=h.enc.Base64,o=h.algo.EvpKDF,a=e.Cipher=i.extend({cfg:t.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,i){return("string"==typeof n?p:c).encrypt(e,t,n,i)},decrypt:function(t,n,i){return("string"==typeof n?p:c).decrypt(e,t,n,i)}}}});e.StreamCipher=a.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var s=h.mode={},l=function(e,t,n){var i=this._iv;i?this._iv=void 0:i=this._prevBlock;for(var r=0;r<n;r++)e[t+r]^=i[r]},u=(e.BlockCipherMode=t.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();u.Encryptor=u.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;l.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),u.Decryptor=u.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=e.slice(t,t+i);n.decryptBlock(e,t),l.call(this,e,t,i),this._prevBlock=r}}),s=s.CBC=u,u=(h.pad={}).Pkcs7={pad:function(e,t){for(var i,r=(i=(i=4*t)-e.sigBytes%i)<<24|i<<16|i<<8|i,o=[],a=0;a<i;a+=4)o.push(r);i=n.create(o,i),e.concat(i)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},e.BlockCipher=a.extend({cfg:a.cfg.extend({mode:s,padding:u}),reset:function(){a.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var d=e.CipherParams=t.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),c=(s=(h.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?n.create([1398893684,1701076831]).concat(e).concat(t):t).toString(r)},parse:function(e){var t=(e=r.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var i=n.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return d.create({ciphertext:e,salt:i})}},e.SerializableCipher=t.extend({cfg:t.extend({format:s}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i);return t=r.finalize(t),r=r.cfg,d.create({ciphertext:t,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),h=(h.kdf={}).OpenSSL={execute:function(e,t,i,r){return r||(r=n.random(8)),e=o.create({keySize:t+i}).compute(e,r),i=n.create(e.words.slice(t),4*i),e.sigBytes=4*t,d.create({key:e,iv:i,salt:r})}},p=e.PasswordBasedCipher=c.extend({cfg:c.cfg.extend({kdf:h}),encrypt:function(e,t,n,i){return n=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize),i.iv=n.iv,(e=c.encrypt.call(this,e,t,n.key,i)).mixIn(n),e},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),n=i.kdf.execute(n,e.keySize,e.ivSize,t.salt),i.iv=n.iv,c.decrypt.call(this,e,t,n.key,i)}})}(),function(){for(var e=A,t=e.lib.BlockCipher,n=e.algo,i=[],r=[],o=[],a=[],s=[],l=[],u=[],d=[],c=[],h=[],p=[],f=0;256>f;f++)p[f]=128>f?f<<1:f<<1^283;var g=0,m=0;for(f=0;256>f;f++){var y=(y=m^m<<1^m<<2^m<<3^m<<4)>>>8^255&y^99;i[g]=y,r[y]=g;var b=p[g],v=p[b],w=p[v],C=257*p[y]^16843008*y;o[g]=C<<24|C>>>8,a[g]=C<<16|C>>>16,s[g]=C<<8|C>>>24,l[g]=C,C=16843009*w^65537*v^257*b^16843008*g,u[y]=C<<24|C>>>8,d[y]=C<<16|C>>>16,c[y]=C<<8|C>>>24,h[y]=C,g?(g=b^p[p[p[w^b]]],m^=p[p[m]]):g=m=1}var x=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=t.extend({_doReset:function(){for(var e=(n=this._key).words,t=n.sigBytes/4,n=4*((this._nRounds=t+6)+1),r=this._keySchedule=[],o=0;o<n;o++)if(o<t)r[o]=e[o];else{var a=r[o-1];o%t?6<t&&4==o%t&&(a=i[a>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a]):(a=i[(a=a<<8|a>>>24)>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a],a^=x[o/t|0]<<24),r[o]=r[o-t]^a}for(e=this._invKeySchedule=[],t=0;t<n;t++)o=n-t,a=t%4?r[o]:r[o-4],e[t]=4>t||4>=o?a:u[i[a>>>24]]^d[i[a>>>16&255]]^c[i[a>>>8&255]]^h[i[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,a,s,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,c,h,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,o,a,s){for(var l=this._nRounds,u=e[t]^n[0],d=e[t+1]^n[1],c=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var g=i[u>>>24]^r[d>>>16&255]^o[c>>>8&255]^a[255&h]^n[p++],m=i[d>>>24]^r[c>>>16&255]^o[h>>>8&255]^a[255&u]^n[p++],y=i[c>>>24]^r[h>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];h=i[h>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&c]^n[p++],u=g,d=m,c=y}g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[p++],m=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^n[p++],y=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],h=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[p++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=h},keySize:8}),e.AES=t._createHelper(n)}(),A.mode.ECB=((S=A.lib.BlockCipherMode.extend()).Encryptor=S.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),S.Decryptor=S.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),S);var E=A;function T(e){var t,n=[];for(t=0;t<e.length;t+=1)n[t/4|0]|=e[t]<<24-8*t;return E.lib.WordArray.create(n,e.length)}var k=function(){function e(e){var t=e.config;this._config=t,this._iv="0123456789012345",this._allowedKeyEncodings=["hex","utf8","base64","binary"],this._allowedKeyLengths=[128,256],this._allowedModes=["ecb","cbc"],this._defaultOptions={encryptKey:!0,keyEncoding:"utf8",keyLength:256,mode:"cbc"}}return e.prototype.HMACSHA256=function(e){return E.HmacSHA256(e,this._config.secretKey).toString(E.enc.Base64)},e.prototype.SHA256=function(e){return E.SHA256(e).toString(E.enc.Hex)},e.prototype._parseOptions=function(e){var t=e||{};return t.hasOwnProperty("encryptKey")||(t.encryptKey=this._defaultOptions.encryptKey),t.hasOwnProperty("keyEncoding")||(t.keyEncoding=this._defaultOptions.keyEncoding),t.hasOwnProperty("keyLength")||(t.keyLength=this._defaultOptions.keyLength),t.hasOwnProperty("mode")||(t.mode=this._defaultOptions.mode),-1===this._allowedKeyEncodings.indexOf(t.keyEncoding.toLowerCase())&&(t.keyEncoding=this._defaultOptions.keyEncoding),-1===this._allowedKeyLengths.indexOf(parseInt(t.keyLength,10))&&(t.keyLength=this._defaultOptions.keyLength),-1===this._allowedModes.indexOf(t.mode.toLowerCase())&&(t.mode=this._defaultOptions.mode),t},e.prototype._decodeKey=function(e,t){return"base64"===t.keyEncoding?E.enc.Base64.parse(e):"hex"===t.keyEncoding?E.enc.Hex.parse(e):e},e.prototype._getPaddedKey=function(e,t){return e=this._decodeKey(e,t),t.encryptKey?E.enc.Utf8.parse(this.SHA256(e).slice(0,32)):e},e.prototype._getMode=function(e){return"ecb"===e.mode?E.mode.ECB:E.mode.CBC},e.prototype._getIV=function(e){return"cbc"===e.mode?E.enc.Utf8.parse(this._iv):null},e.prototype._getRandomIV=function(){return E.lib.WordArray.random(16)},e.prototype.encrypt=function(e,t,n){return this._config.customEncrypt?this._config.customEncrypt(e):this.pnEncrypt(e,t,n)},e.prototype.decrypt=function(e,t,n){return this._config.customDecrypt?this._config.customDecrypt(e):this.pnDecrypt(e,t,n)},e.prototype.pnEncrypt=function(e,t,n){if(!t&&!this._config.cipherKey)return e;n=this._parseOptions(n);var i=this._getMode(n),r=this._getPaddedKey(t||this._config.cipherKey,n);if(this._config.useRandomIVs){var o=this._getRandomIV(),a=E.AES.encrypt(e,r,{iv:o,mode:i}).ciphertext;return o.clone().concat(a.clone()).toString(E.enc.Base64)}var s=this._getIV(n);return E.AES.encrypt(e,r,{iv:s,mode:i}).ciphertext.toString(E.enc.Base64)||e},e.prototype.pnDecrypt=function(e,t,n){if(!t&&!this._config.cipherKey)return e;n=this._parseOptions(n);var i=this._getMode(n),r=this._getPaddedKey(t||this._config.cipherKey,n);if(this._config.useRandomIVs){var o=T((l=new Uint8ClampedArray(b(e))).slice(0,16)),a=T(l.slice(16));try{var s=E.AES.decrypt({ciphertext:a},r,{iv:o,mode:i}).toString(E.enc.Utf8);return JSON.parse(s)}catch(e){return null}}else{o=this._getIV(n);try{var l=E.enc.Base64.parse(e);return s=E.AES.decrypt({ciphertext:l},r,{iv:o,mode:i}).toString(E.enc.Utf8),JSON.parse(s)}catch(e){return null}}},e}(),_=function(){function e(e){var t=e.timeEndpoint;this._timeEndpoint=t}return e.prototype.onReconnection=function(e){this._reconnectionCallback=e},e.prototype.startPolling=function(){this._timeTimer=setInterval(this._performTimeLoop.bind(this),3e3)},e.prototype.stopPolling=function(){clearInterval(this._timeTimer)},e.prototype._performTimeLoop=function(){var e=this;this._timeEndpoint(function(t){t.error||(clearInterval(e._timeTimer),e._reconnectionCallback())})},e}(),O=function(){function e(e){var t=e.config;this.hashHistory=[],this._config=t}return e.prototype.getKey=function(e){var t=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n+=1)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}(JSON.stringify(e.payload)).toString(),n=e.publishMetaData.publishTimetoken;return"".concat(n,"-").concat(t)},e.prototype.isDuplicate=function(e){return this.hashHistory.includes(this.getKey(e))},e.prototype.addEntry=function(e){this.hashHistory.length>=this._config.maximumCacheSize&&this.hashHistory.shift(),this.hashHistory.push(this.getKey(e))},e.prototype.clearHistory=function(){this.hashHistory=[]},e}(),P={PNNetworkUpCategory:"PNNetworkUpCategory",PNNetworkDownCategory:"PNNetworkDownCategory",PNNetworkIssuesCategory:"PNNetworkIssuesCategory",PNTimeoutCategory:"PNTimeoutCategory",PNBadRequestCategory:"PNBadRequestCategory",PNAccessDeniedCategory:"PNAccessDeniedCategory",PNUnknownCategory:"PNUnknownCategory",PNReconnectedCategory:"PNReconnectedCategory",PNConnectedCategory:"PNConnectedCategory",PNRequestMessageCountExceededCategory:"PNRequestMessageCountExceededCategory",PNDisconnectedCategory:"PNDisconnectedCategory",PNConnectionErrorCategory:"PNConnectionErrorCategory",PNDisconnectedUnexpectedlyCategory:"PNDisconnectedUnexpectedlyCategory"},I=function(){function e(e){var t=e.subscribeEndpoint,n=e.leaveEndpoint,i=e.heartbeatEndpoint,r=e.setStateEndpoint,o=e.timeEndpoint,a=e.getFileUrl,s=e.config,l=e.crypto,u=e.listenerManager,d=e.cryptoModule,c=e.eventEmitter;this._listenerManager=u,this._config=s,this._leaveEndpoint=n,this._heartbeatEndpoint=i,this._setStateEndpoint=r,this._subscribeEndpoint=t,this._getFileUrl=a,this._crypto=l,this._cryptoModule=d,this._channels={},this._presenceChannels={},this._heartbeatChannels={},this._heartbeatChannelGroups={},this._channelGroups={},this._presenceChannelGroups={},this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[],this._currentTimetoken=0,this._lastTimetoken=0,this._storedTimetoken=null,this._subscriptionStatusAnnounced=!1,this._isOnline=!0,this._reconnectionManager=new _({timeEndpoint:o}),this._dedupingManager=new O({config:s}),this._cryptoModule&&(this._decoder=new TextDecoder),this._eventEmitter=c}return e.prototype.adaptStateChange=function(e,t){var n=this,i=e.state,r=e.channels,o=void 0===r?[]:r,a=e.channelGroups,s=void 0===a?[]:a,l=e.withHeartbeat,u=void 0!==l&&l;if(o.forEach(function(e){e in n._channels&&(n._channels[e].state=i)}),s.forEach(function(e){e in n._channelGroups&&(n._channelGroups[e].state=i)}),u){var d={};return o.forEach(function(e){return d[e]=i}),s.forEach(function(e){return d[e]=i}),this._heartbeatEndpoint({channels:o,channelGroups:s,state:d},t)}return this._setStateEndpoint({state:i,channels:o,channelGroups:s},t)},e.prototype.adaptPresenceChange=function(e){var t=this,n=e.connected,i=e.channels,r=void 0===i?[]:i,o=e.channelGroups,a=void 0===o?[]:o;n?(r.forEach(function(e){t._heartbeatChannels[e]={state:{}}}),a.forEach(function(e){t._heartbeatChannelGroups[e]={state:{}}})):(r.forEach(function(e){e in t._heartbeatChannels&&delete t._heartbeatChannels[e]}),a.forEach(function(e){e in t._heartbeatChannelGroups&&delete t._heartbeatChannelGroups[e]}),!1===this._config.suppressLeaveEvents&&this._leaveEndpoint({channels:r,channelGroups:a},function(e){t._listenerManager.announceStatus(e)})),this.reconnect()},e.prototype.adaptSubscribeChange=function(e){var t=this,n=e.timetoken,i=e.channels,r=void 0===i?[]:i,o=e.channelGroups,a=void 0===o?[]:o,s=e.withPresence,l=void 0!==s&&s,u=e.withHeartbeats,d=void 0!==u&&u;this._config.subscribeKey&&""!==this._config.subscribeKey?(n&&(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=n),"0"!==this._currentTimetoken&&0!==this._currentTimetoken&&(this._storedTimetoken=this._currentTimetoken,this._currentTimetoken=0),r.forEach(function(e){t._channels[e]={state:{}},l&&(t._presenceChannels[e]={}),(d||t._config.getHeartbeatInterval())&&(t._heartbeatChannels[e]={}),t._pendingChannelSubscriptions.push(e)}),a.forEach(function(e){t._channelGroups[e]={state:{}},l&&(t._presenceChannelGroups[e]={}),(d||t._config.getHeartbeatInterval())&&(t._heartbeatChannelGroups[e]={}),t._pendingChannelGroupSubscriptions.push(e)}),this._subscriptionStatusAnnounced=!1,this.reconnect()):console&&console.log},e.prototype.adaptUnsubscribeChange=function(e,t){var n=this,i=e.channels,r=void 0===i?[]:i,o=e.channelGroups,a=void 0===o?[]:o,s=[],l=[];r.forEach(function(e){e in n._channels&&(delete n._channels[e],s.push(e),e in n._heartbeatChannels&&delete n._heartbeatChannels[e]),e in n._presenceChannels&&(delete n._presenceChannels[e],s.push(e))}),a.forEach(function(e){e in n._channelGroups&&(delete n._channelGroups[e],l.push(e),e in n._heartbeatChannelGroups&&delete n._heartbeatChannelGroups[e]),e in n._presenceChannelGroups&&(delete n._presenceChannelGroups[e],l.push(e))}),0===s.length&&0===l.length||(!1!==this._config.suppressLeaveEvents||t||this._leaveEndpoint({channels:s,channelGroups:l},function(e){e.affectedChannels=s,e.affectedChannelGroups=l,e.currentTimetoken=n._currentTimetoken,e.lastTimetoken=n._lastTimetoken,n._listenerManager.announceStatus(e)}),0===Object.keys(this._channels).length&&0===Object.keys(this._presenceChannels).length&&0===Object.keys(this._channelGroups).length&&0===Object.keys(this._presenceChannelGroups).length&&(this._lastTimetoken=0,this._currentTimetoken=0,this._storedTimetoken=null,this._region=null,this._reconnectionManager.stopPolling()),this.reconnect())},e.prototype.unsubscribeAll=function(e){this.adaptUnsubscribeChange({channels:this.getSubscribedChannels(),channelGroups:this.getSubscribedChannelGroups()},e)},e.prototype.getHeartbeatChannels=function(){return Object.keys(this._heartbeatChannels)},e.prototype.getHeartbeatChannelGroups=function(){return Object.keys(this._heartbeatChannelGroups)},e.prototype.getSubscribedChannels=function(){return Object.keys(this._channels)},e.prototype.getSubscribedChannelGroups=function(){return Object.keys(this._channelGroups)},e.prototype.reconnect=function(){this._startSubscribeLoop(),this._registerHeartbeatTimer()},e.prototype.disconnect=function(){this._stopSubscribeLoop(),this._stopHeartbeatTimer(),this._reconnectionManager.stopPolling()},e.prototype._registerHeartbeatTimer=function(){this._stopHeartbeatTimer(),0!==this._config.getHeartbeatInterval()&&void 0!==this._config.getHeartbeatInterval()&&(this._performHeartbeatLoop(),this._heartbeatTimer=setInterval(this._performHeartbeatLoop.bind(this),1e3*this._config.getHeartbeatInterval()))},e.prototype._stopHeartbeatTimer=function(){this._heartbeatTimer&&(clearInterval(this._heartbeatTimer),this._heartbeatTimer=null)},e.prototype._performHeartbeatLoop=function(){var e=this,t=this.getHeartbeatChannels(),n=this.getHeartbeatChannelGroups(),i={};0===t.length&&0===n.length||(this.getSubscribedChannels().forEach(function(t){var n=e._channels[t].state;Object.keys(n).length&&(i[t]=n)}),this.getSubscribedChannelGroups().forEach(function(t){var n=e._channelGroups[t].state;Object.keys(n).length&&(i[t]=n)}),this._heartbeatEndpoint({channels:t,channelGroups:n,state:i},function(t){t.error&&e._config.announceFailedHeartbeats&&e._listenerManager.announceStatus(t),t.error&&e._config.autoNetworkDetection&&e._isOnline&&(e._isOnline=!1,e.disconnect(),e._listenerManager.announceNetworkDown(),e.reconnect()),!t.error&&e._config.announceSuccessfulHeartbeats&&e._listenerManager.announceStatus(t)}.bind(this)))},e.prototype._startSubscribeLoop=function(){var e=this;this._stopSubscribeLoop();var t={},n=[],i=[];if(Object.keys(this._channels).forEach(function(i){var r=e._channels[i].state;Object.keys(r).length&&(t[i]=r),n.push(i)}),Object.keys(this._presenceChannels).forEach(function(e){n.push("".concat(e,"-pnpres"))}),Object.keys(this._channelGroups).forEach(function(n){var r=e._channelGroups[n].state;Object.keys(r).length&&(t[n]=r),i.push(n)}),Object.keys(this._presenceChannelGroups).forEach(function(e){i.push("".concat(e,"-pnpres"))}),0!==n.length||0!==i.length){var r={channels:n,channelGroups:i,state:t,timetoken:this._currentTimetoken,filterExpression:this._config.filterExpression,region:this._region};this._subscribeCall=this._subscribeEndpoint(r,this._processSubscribeResponse.bind(this))}},e.prototype._processSubscribeResponse=function(e,t){var n=this;if(e.error){if(e.errorData&&"Aborted"===e.errorData.message)return;e.category===P.PNTimeoutCategory?this._startSubscribeLoop():e.category===P.PNNetworkIssuesCategory?(this.disconnect(),e.error&&this._config.autoNetworkDetection&&this._isOnline&&(this._isOnline=!1,this._listenerManager.announceNetworkDown()),this._reconnectionManager.onReconnection(function(){n._config.autoNetworkDetection&&!n._isOnline&&(n._isOnline=!0,n._listenerManager.announceNetworkUp()),n.reconnect(),n._subscriptionStatusAnnounced=!0;var t={category:P.PNReconnectedCategory,operation:e.operation,lastTimetoken:n._lastTimetoken,currentTimetoken:n._currentTimetoken};n._listenerManager.announceStatus(t)}),this._reconnectionManager.startPolling(),this._listenerManager.announceStatus(e)):e.category===P.PNBadRequestCategory?(this._stopHeartbeatTimer(),this._listenerManager.announceStatus(e)):this._listenerManager.announceStatus(e)}else{if(this._storedTimetoken?(this._currentTimetoken=this._storedTimetoken,this._storedTimetoken=null):(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=t.metadata.timetoken),!this._subscriptionStatusAnnounced){var i={};i.category=P.PNConnectedCategory,i.operation=e.operation,i.affectedChannels=this._pendingChannelSubscriptions,i.subscribedChannels=this.getSubscribedChannels(),i.affectedChannelGroups=this._pendingChannelGroupSubscriptions,i.lastTimetoken=this._lastTimetoken,i.currentTimetoken=this._currentTimetoken,this._subscriptionStatusAnnounced=!0,this._listenerManager.announceStatus(i),this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[]}var r=t.messages||[],o=this._config,a=o.requestMessageCountThreshold,s=o.dedupeOnSubscribe;if(a&&r.length>=a){var l={};l.category=P.PNRequestMessageCountExceededCategory,l.operation=e.operation,this._listenerManager.announceStatus(l)}r.forEach(function(e){if(e.channel,e.subscriptionMatch,s){if(n._dedupingManager.isDuplicate(e))return;n._dedupingManager.addEntry(e)}n._eventEmitter.emitEvent(e)}),this._region=t.metadata.region,this._startSubscribeLoop()}},e.prototype._stopSubscribeLoop=function(){this._subscribeCall&&("function"==typeof this._subscribeCall.abort&&this._subscribeCall.abort(),this._subscribeCall=null)},e.prototype._renameEvent=function(e){return"set"===e?"updated":"removed"},e.prototype._renameChannelField=function(e){var t=e.channel,n=r(e,["channel"]);return n.spaceId=t,n},e}(),N={PNTimeOperation:"PNTimeOperation",PNHistoryOperation:"PNHistoryOperation",PNDeleteMessagesOperation:"PNDeleteMessagesOperation",PNFetchMessagesOperation:"PNFetchMessagesOperation",PNMessageCounts:"PNMessageCountsOperation",PNSubscribeOperation:"PNSubscribeOperation",PNUnsubscribeOperation:"PNUnsubscribeOperation",PNPublishOperation:"PNPublishOperation",PNSignalOperation:"PNSignalOperation",PNAddMessageActionOperation:"PNAddActionOperation",PNRemoveMessageActionOperation:"PNRemoveMessageActionOperation",PNGetMessageActionsOperation:"PNGetMessageActionsOperation",PNCreateUserOperation:"PNCreateUserOperation",PNUpdateUserOperation:"PNUpdateUserOperation",PNDeleteUserOperation:"PNDeleteUserOperation",PNGetUserOperation:"PNGetUsersOperation",PNGetUsersOperation:"PNGetUsersOperation",PNCreateSpaceOperation:"PNCreateSpaceOperation",PNUpdateSpaceOperation:"PNUpdateSpaceOperation",PNDeleteSpaceOperation:"PNDeleteSpaceOperation",PNGetSpaceOperation:"PNGetSpacesOperation",PNGetSpacesOperation:"PNGetSpacesOperation",PNGetMembersOperation:"PNGetMembersOperation",PNUpdateMembersOperation:"PNUpdateMembersOperation",PNGetMembershipsOperation:"PNGetMembershipsOperation",PNUpdateMembershipsOperation:"PNUpdateMembershipsOperation",PNListFilesOperation:"PNListFilesOperation",PNGenerateUploadUrlOperation:"PNGenerateUploadUrlOperation",PNPublishFileOperation:"PNPublishFileOperation",PNGetFileUrlOperation:"PNGetFileUrlOperation",PNDownloadFileOperation:"PNDownloadFileOperation",PNGetAllUUIDMetadataOperation:"PNGetAllUUIDMetadataOperation",PNGetUUIDMetadataOperation:"PNGetUUIDMetadataOperation",PNSetUUIDMetadataOperation:"PNSetUUIDMetadataOperation",PNRemoveUUIDMetadataOperation:"PNRemoveUUIDMetadataOperation",PNGetAllChannelMetadataOperation:"PNGetAllChannelMetadataOperation",PNGetChannelMetadataOperation:"PNGetChannelMetadataOperation",PNSetChannelMetadataOperation:"PNSetChannelMetadataOperation",PNRemoveChannelMetadataOperation:"PNRemoveChannelMetadataOperation",PNSetMembersOperation:"PNSetMembersOperation",PNSetMembershipsOperation:"PNSetMembershipsOperation",PNPushNotificationEnabledChannelsOperation:"PNPushNotificationEnabledChannelsOperation",PNRemoveAllPushNotificationsOperation:"PNRemoveAllPushNotificationsOperation",PNWhereNowOperation:"PNWhereNowOperation",PNSetStateOperation:"PNSetStateOperation",PNHereNowOperation:"PNHereNowOperation",PNGetStateOperation:"PNGetStateOperation",PNHeartbeatOperation:"PNHeartbeatOperation",PNChannelGroupsOperation:"PNChannelGroupsOperation",PNRemoveGroupOperation:"PNRemoveGroupOperation",PNChannelsForGroupOperation:"PNChannelsForGroupOperation",PNAddChannelsToGroupOperation:"PNAddChannelsToGroupOperation",PNRemoveChannelsFromGroupOperation:"PNRemoveChannelsFromGroupOperation",PNAccessManagerGrant:"PNAccessManagerGrant",PNAccessManagerGrantToken:"PNAccessManagerGrantToken",PNAccessManagerAudit:"PNAccessManagerAudit",PNAccessManagerRevokeToken:"PNAccessManagerRevokeToken",PNHandshakeOperation:"PNHandshakeOperation",PNReceiveMessagesOperation:"PNReceiveMessagesOperation"},M=function(){function e(e){this._maximumSamplesCount=100,this._trackedLatencies={},this._latencies={},this._telemetryExcludeOperations=[N.PNSubscribeOperation,N.PNReceiveMessagesOperation,N.PNHandshakeOperation],this._maximumSamplesCount=e.maximumSamplesCount||this._maximumSamplesCount}return e.prototype.operationsLatencyForRequest=function(){var e=this,t={};return Object.keys(this._latencies).forEach(function(n){var i=e._latencies[n],r=e._averageLatency(i);r>0&&(t["l_".concat(n)]=r)}),t},e.prototype.startLatencyMeasure=function(e,t){!this._telemetryExcludeOperations.includes(e)&&t&&(this._trackedLatencies[t]=Date.now())},e.prototype.stopLatencyMeasure=function(e,t){if(!this._telemetryExcludeOperations.includes(e)&&t){var n=this._endpointName(e),i=this._latencies[n],r=this._trackedLatencies[t];i||(this._latencies[n]=[],i=this._latencies[n]),i.push(Date.now()-r),i.length>this._maximumSamplesCount&&i.splice(0,i.length-this._maximumSamplesCount),delete this._trackedLatencies[t]}},e.prototype._averageLatency=function(e){return Math.floor(e.reduce(function(e,t){return e+t},0)/e.length)},e.prototype._endpointName=function(e){var t=null;switch(e){case N.PNPublishOperation:t="pub";break;case N.PNSignalOperation:t="sig";break;case N.PNHistoryOperation:case N.PNFetchMessagesOperation:case N.PNDeleteMessagesOperation:case N.PNMessageCounts:t="hist";break;case N.PNUnsubscribeOperation:case N.PNWhereNowOperation:case N.PNHereNowOperation:case N.PNHeartbeatOperation:case N.PNSetStateOperation:case N.PNGetStateOperation:t="pres";break;case N.PNAddChannelsToGroupOperation:case N.PNRemoveChannelsFromGroupOperation:case N.PNChannelGroupsOperation:case N.PNRemoveGroupOperation:case N.PNChannelsForGroupOperation:t="cg";break;case N.PNPushNotificationEnabledChannelsOperation:case N.PNRemoveAllPushNotificationsOperation:t="push";break;case N.PNCreateUserOperation:case N.PNUpdateUserOperation:case N.PNDeleteUserOperation:case N.PNGetUserOperation:case N.PNGetUsersOperation:case N.PNCreateSpaceOperation:case N.PNUpdateSpaceOperation:case N.PNDeleteSpaceOperation:case N.PNGetSpaceOperation:case N.PNGetSpacesOperation:case N.PNGetMembersOperation:case N.PNUpdateMembersOperation:case N.PNGetMembershipsOperation:case N.PNUpdateMembershipsOperation:t="obj";break;case N.PNAddMessageActionOperation:case N.PNRemoveMessageActionOperation:case N.PNGetMessageActionsOperation:t="msga";break;case N.PNAccessManagerGrant:case N.PNAccessManagerAudit:t="pam";break;case N.PNAccessManagerGrantToken:case N.PNAccessManagerRevokeToken:t="pamv3";break;default:t="time"}return t},e}(),D=function(){function e(e,t,n){this._payload=e,this._setDefaultPayloadStructure(),this.title=t,this.body=n}return Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{set:function(e){this._subtitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{set:function(e){this._body=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"badge",{set:function(e){this._badge=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sound",{set:function(e){this._sound=e},enumerable:!1,configurable:!0}),e.prototype._setDefaultPayloadStructure=function(){},e.prototype.toObject=function(){return{}},e}(),L=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),Object.defineProperty(n.prototype,"configurations",{set:function(e){e&&e.length&&(this._configurations=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"notification",{get:function(){return this._payload.aps},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.aps.alert.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){e&&e.length&&(this._payload.aps.alert.subtitle=e,this._subtitle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"body",{get:function(){return this._body},set:function(e){e&&e.length&&(this._payload.aps.alert.body=e,this._body=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"badge",{get:function(){return this._badge},set:function(e){null!=e&&(this._payload.aps.badge=e,this._badge=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sound",{get:function(){return this._sound},set:function(e){e&&e.length&&(this._payload.aps.sound=e,this._sound=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),n.prototype._setDefaultPayloadStructure=function(){this._payload.aps={alert:{}}},n.prototype.toObject=function(){var e=this,t=i({},this._payload),n=t.aps,r=n.alert;if(this._isSilent&&(n["content-available"]=1),"apns2"===this._apnsPushType){if(!this._configurations||!this._configurations.length)throw new ReferenceError("APNS2 configuration is missing");var o=[];this._configurations.forEach(function(t){o.push(e._objectFromAPNS2Configuration(t))}),o.length&&(t.pn_push=o)}return r&&Object.keys(r).length||delete n.alert,this._isSilent&&(delete n.alert,delete n.badge,delete n.sound,r={}),this._isSilent||Object.keys(r).length?t:null},n.prototype._objectFromAPNS2Configuration=function(e){var t=this;if(!e.targets||!e.targets.length)throw new ReferenceError("At least one APNS2 target should be provided");var n=[];e.targets.forEach(function(e){n.push(t._objectFromAPNSTarget(e))});var i=e.collapseId,r=e.expirationDate,o={auth_method:"token",targets:n,version:"v2"};return i&&i.length&&(o.collapse_id=i),r&&(o.expiration=r.toISOString()),o},n.prototype._objectFromAPNSTarget=function(e){if(!e.topic||!e.topic.length)throw new TypeError("Target 'topic' undefined.");var t=e.topic,n=e.environment,i=void 0===n?"development":n,r=e.excludedDevices,o=void 0===r?[]:r,a={topic:t,environment:i};return o.length&&(a.excluded_devices=o),a},n}(D),U=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),Object.defineProperty(n.prototype,"backContent",{get:function(){return this._backContent},set:function(e){e&&e.length&&(this._payload.back_content=e,this._backContent=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"backTitle",{get:function(){return this._backTitle},set:function(e){e&&e.length&&(this._payload.back_title=e,this._backTitle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return this._count},set:function(e){null!=e&&(this._payload.count=e,this._count=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._type},set:function(e){e&&e.length&&(this._payload.type=e,this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"subtitle",{get:function(){return this.backTitle},set:function(e){this.backTitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"body",{get:function(){return this.backContent},set:function(e){this.backContent=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"badge",{get:function(){return this.count},set:function(e){this.count=e},enumerable:!1,configurable:!0}),n.prototype.toObject=function(){return Object.keys(this._payload).length?i({},this._payload):null},n}(D),R=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),Object.defineProperty(n.prototype,"notification",{get:function(){return this._payload.notification},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"data",{get:function(){return this._payload.data},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.notification.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"body",{get:function(){return this._body},set:function(e){e&&e.length&&(this._payload.notification.body=e,this._body=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sound",{get:function(){return this._sound},set:function(e){e&&e.length&&(this._payload.notification.sound=e,this._sound=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"icon",{get:function(){return this._icon},set:function(e){e&&e.length&&(this._payload.notification.icon=e,this._icon=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tag",{get:function(){return this._tag},set:function(e){e&&e.length&&(this._payload.notification.tag=e,this._tag=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),n.prototype._setDefaultPayloadStructure=function(){this._payload.notification={},this._payload.data={}},n.prototype.toObject=function(){var e=i({},this._payload.data),t=null,n={};if(Object.keys(this._payload).length>2){var o=this._payload;o.notification,o.data;var a=r(o,["notification","data"]);e=i(i({},e),a)}return this._isSilent?e.notification=this._payload.notification:t=this._payload.notification,Object.keys(e).length&&(n.data=e),t&&Object.keys(t).length&&(n.notification=t),Object.keys(n).length?n:null},n}(D),B=function(){function e(e,t){this._payload={apns:{},mpns:{},fcm:{}},this._title=e,this._body=t,this.apns=new L(this._payload.apns,e,t),this.mpns=new U(this._payload.mpns,e,t),this.fcm=new R(this._payload.fcm,e,t)}return Object.defineProperty(e.prototype,"debugging",{set:function(e){this._debugging=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){this._subtitle=e,this.apns.subtitle=e,this.mpns.subtitle=e,this.fcm.subtitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"badge",{get:function(){return this._badge},set:function(e){this._badge=e,this.apns.badge=e,this.mpns.badge=e,this.fcm.badge=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sound",{get:function(){return this._sound},set:function(e){this._sound=e,this.apns.sound=e,this.mpns.sound=e,this.fcm.sound=e},enumerable:!1,configurable:!0}),e.prototype.buildPayload=function(e){var t={};if(e.includes("apns")||e.includes("apns2")){this.apns._apnsPushType=e.includes("apns")?"apns":"apns2";var n=this.apns.toObject();n&&Object.keys(n).length&&(t.pn_apns=n)}if(e.includes("mpns")){var i=this.mpns.toObject();i&&Object.keys(i).length&&(t.pn_mpns=i)}if(e.includes("fcm")){var r=this.fcm.toObject();r&&Object.keys(r).length&&(t.pn_gcm=r)}return Object.keys(t).length&&this._debugging&&(t.pn_debug=!0),t},e}(),j=function(){function e(){this._listeners=[]}return e.prototype.addListener=function(e){this._listeners.includes(e)||this._listeners.push(e)},e.prototype.removeListener=function(e){var t=[];this._listeners.forEach(function(n){n!==e&&t.push(n)}),this._listeners=t},e.prototype.removeAllListeners=function(){this._listeners=[]},e.prototype.announcePresence=function(e){this._listeners.forEach(function(t){t.presence&&t.presence(e)})},e.prototype.announceStatus=function(e){this._listeners.forEach(function(t){t.status&&t.status(e)})},e.prototype.announceMessage=function(e){this._listeners.forEach(function(t){t.message&&t.message(e)})},e.prototype.announceSignal=function(e){this._listeners.forEach(function(t){t.signal&&t.signal(e)})},e.prototype.announceMessageAction=function(e){this._listeners.forEach(function(t){t.messageAction&&t.messageAction(e)})},e.prototype.announceFile=function(e){this._listeners.forEach(function(t){t.file&&t.file(e)})},e.prototype.announceObjects=function(e){this._listeners.forEach(function(t){t.objects&&t.objects(e)})},e.prototype.announceUser=function(e){this._listeners.forEach(function(t){t.user&&t.user(e)})},e.prototype.announceSpace=function(e){this._listeners.forEach(function(t){t.space&&t.space(e)})},e.prototype.announceMembership=function(e){this._listeners.forEach(function(t){t.membership&&t.membership(e)})},e.prototype.announceNetworkUp=function(){var e={};e.category=P.PNNetworkUpCategory,this.announceStatus(e)},e.prototype.announceNetworkDown=function(){var e={};e.category=P.PNNetworkDownCategory,this.announceStatus(e)},e}(),F=function(){function e(e,t){this._config=e,this._cbor=t}return e.prototype.setToken=function(e){e&&e.length>0?this._token=e:this._token=void 0},e.prototype.getToken=function(){return this._token},e.prototype.extractPermissions=function(e){var t={read:!1,write:!1,manage:!1,delete:!1,get:!1,update:!1,join:!1};return!(128&~e)&&(t.join=!0),!(64&~e)&&(t.update=!0),!(32&~e)&&(t.get=!0),!(8&~e)&&(t.delete=!0),!(4&~e)&&(t.manage=!0),!(2&~e)&&(t.write=!0),!(1&~e)&&(t.read=!0),t},e.prototype.parseToken=function(e){var t=this,n=this._cbor.decodeToken(e);if(void 0!==n){var i=n.res.uuid?Object.keys(n.res.uuid):[],r=Object.keys(n.res.chan),o=Object.keys(n.res.grp),a=n.pat.uuid?Object.keys(n.pat.uuid):[],s=Object.keys(n.pat.chan),l=Object.keys(n.pat.grp),u={version:n.v,timestamp:n.t,ttl:n.ttl,authorized_uuid:n.uuid},d=i.length>0,c=r.length>0,h=o.length>0;(d||c||h)&&(u.resources={},d&&(u.resources.uuids={},i.forEach(function(e){u.resources.uuids[e]=t.extractPermissions(n.res.uuid[e])})),c&&(u.resources.channels={},r.forEach(function(e){u.resources.channels[e]=t.extractPermissions(n.res.chan[e])})),h&&(u.resources.groups={},o.forEach(function(e){u.resources.groups[e]=t.extractPermissions(n.res.grp[e])})));var p=a.length>0,f=s.length>0,g=l.length>0;return(p||f||g)&&(u.patterns={},p&&(u.patterns.uuids={},a.forEach(function(e){u.patterns.uuids[e]=t.extractPermissions(n.pat.uuid[e])})),f&&(u.patterns.channels={},s.forEach(function(e){u.patterns.channels[e]=t.extractPermissions(n.pat.chan[e])})),g&&(u.patterns.groups={},l.forEach(function(e){u.patterns.groups[e]=t.extractPermissions(n.pat.grp[e])}))),Object.keys(n.meta).length>0&&(u.meta=n.meta),u.signature=n.sig,u}},e}();function H(e){return encodeURIComponent(e).replace(/[!~*'()]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}function G(e){return function(e){var t=[];return Object.keys(e).forEach(function(e){return t.push(e)}),t}(e).sort()}var z={signPamFromParams:function(e){return G(e).map(function(t){return"".concat(t,"=").concat(H(e[t]))}).join("&")},endsWith:function(e,t){return-1!==e.indexOf(t,this.length-t.length)},createPromise:function(){var e,t;return{promise:new Promise(function(n,i){e=n,t=i}),reject:t,fulfill:e}},encodeString:H,stringToArrayBuffer:function(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),i=0,r=e.length;i<r;i++)n[i]=e.charCodeAt(i);return t},removeSingleOccurance:function(e,t){var n=Object.fromEntries(t.map(function(e){return[e,!1]}));return e.filter(function(e){return!(t.includes(e)&&!n[e]&&(n[e]=!0,1))})},findUniqueCommonElements:function(e,t){return __spreadArray([],__read(e),!1).filter(function(n){return t.includes(n)&&e.indexOf(n)===e.lastIndexOf(n)&&t.indexOf(n)===t.lastIndexOf(n)})}},Q=function(e){function n(t,n){var i=this.constructor,r=e.call(this,t)||this;return r.name=r.constructor.name,r.status=n,r.message=t,Object.setPrototypeOf(r,i.prototype),r}return t(n,e),n}(Error);function W(e){return(t={message:e}).type="validationError",t.error=!0,t;var t}function q(e,t,n){return e.usePost&&e.usePost(t,n)?e.postURL(t,n):e.usePatch&&e.usePatch(t,n)?e.patchURL(t,n):e.useGetFile&&e.useGetFile(t,n)?e.getFileURL(t,n):e.getURL(t,n)}function V(e){if(e.sdkName)return e.sdkName;var t="PubNub-JS-".concat(e.sdkFamily);e.partnerId&&(t+="-".concat(e.partnerId)),t+="/".concat(e.getVersion());var n=e._getPnsdkSuffix(" ");return n.length>0&&(t+=n),t}function Y(e,t,n){return t.usePost&&t.usePost(e,n)?"POST":t.usePatch&&t.usePatch(e,n)?"PATCH":t.useDelete&&t.useDelete(e,n)?"DELETE":t.useGetFile&&t.useGetFile(e,n)?"GETFILE":"GET"}function K(e,t,n,i,r){var o=e.config,a=e.crypto,s=Y(e,r,i);n.timestamp=Math.floor((new Date).getTime()/1e3),"PNPublishOperation"===r.getOperation()&&r.usePost&&r.usePost(e,i)&&(s="GET"),"GETFILE"===s&&(s="GET");var l="".concat(s,"\n").concat(o.publishKey,"\n").concat(t,"\n").concat(z.signPamFromParams(n),"\n");if("POST"===s)l+="string"==typeof(u=r.postPayload(e,i))?u:JSON.stringify(u);else if("PATCH"===s){var u;l+="string"==typeof(u=r.patchPayload(e,i))?u:JSON.stringify(u)}var d="v2.".concat(a.HMACSHA256(l));d=(d=(d=d.replace(/\+/g,"-")).replace(/\//g,"_")).replace(/=+$/,""),n.signature=d}function X(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.networking,a=e.config,s=e.telemetryManager,l=e.tokenManager,u=m(),d=null,c=null,h={};t.getOperation()===N.PNTimeOperation||t.getOperation()===N.PNChannelGroupsOperation?d=n[0]:(h=n[0],d=n[1]),"undefined"==typeof Promise||d||(c=z.createPromise());var p=t.validateParams(e,h);if(p)return d?d(W(p)):c?(c.reject(new Q("Validation failed, check status for details",W(p))),c.promise):void 0;var f,g=t.prepareParams(e,h),y=q(t,e,h),b={url:y,operation:t.getOperation(),timeout:t.getRequestTimeout(e),headers:t.getRequestHeaders?t.getRequestHeaders():{},ignoreBody:"function"==typeof t.ignoreBody&&t.ignoreBody(e),forceBuffered:"function"==typeof t.forceBuffered?t.forceBuffered(e,h):null,abortSignal:"function"==typeof t.getAbortSignal?t.getAbortSignal(e,h):null};g.uuid=a.UUID,g.pnsdk=V(a);var v=s.operationsLatencyForRequest();if(Object.keys(v).length&&(g=i(i({},g),v)),a.useInstanceId&&(g.instanceid=a.instanceId),a.useRequestId&&(g.requestid=u),t.isAuthSupported()){var w=l.getToken()||a.getAuthKey();w&&(g.auth=w)}a.secretKey&&K(e,y,g,h,t);var C=function(n,i){if(n.error)return t.handleError&&t.handleError(e,h,n),void(d?d(n):c&&c.reject(new Q("PubNub call failed, check status for details",n)));s.stopLatencyMeasure(t.getOperation(),u);var r=t.handleResponse(e,i,h);"function"!=typeof(null==r?void 0:r.then)&&(r=Promise.resolve(r)),r.then(function(e){d?d(n,e):c&&c.fulfill(e)}).catch(function(e){if(d){var n=e;t.getOperation()===N.PNSubscribeOperation&&(n={statusCode:400,error:!0,operation:t.getOperation(),errorData:e,category:P.PNUnknownCategory}),d(n,null)}else c&&c.reject(new Q("PubNub call failed, check status for details",e))})};if(s.startLatencyMeasure(t.getOperation(),u),"POST"===Y(e,t,h)){var x=t.postPayload(e,h);f=o.POST(g,x,b,C)}else"PATCH"===Y(e,t,h)?(x=t.patchPayload(e,h),f=o.PATCH(g,x,b,C)):f="DELETE"===Y(e,t,h)?o.DELETE(g,b,C):"GETFILE"===Y(e,t,h)?o.GETFILE(g,b,C):o.GET(g,b,C);return t.getOperation()===N.PNSubscribeOperation?f:c?c.promise:void 0}var Z=Object.freeze({__proto__:null,getOperation:function(){return N.PNAddChannelsToGroupOperation},validateParams:function(e,t){var n=t.channels,i=t.channelGroup,r=e.config;return i?n&&0!==n.length?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var n=t.channelGroup,i=e.config;return"/v1/channel-registration/sub-key/".concat(i.subscribeKey,"/channel-group/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channels;return{add:(void 0===n?[]:n).join(",")}},handleResponse:function(){return{}}}),J=Object.freeze({__proto__:null,getOperation:function(){return N.PNRemoveChannelsFromGroupOperation},validateParams:function(e,t){var n=t.channels,i=t.channelGroup,r=e.config;return i?n&&0!==n.length?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var n=t.channelGroup,i=e.config;return"/v1/channel-registration/sub-key/".concat(i.subscribeKey,"/channel-group/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channels;return{remove:(void 0===n?[]:n).join(",")}},handleResponse:function(){return{}}}),ee=Object.freeze({__proto__:null,getOperation:function(){return N.PNRemoveGroupOperation},validateParams:function(e,t){var n=t.channelGroup,i=e.config;return n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var n=t.channelGroup,i=e.config;return"/v1/channel-registration/sub-key/".concat(i.subscribeKey,"/channel-group/").concat(z.encodeString(n),"/remove")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},handleResponse:function(){return{}}}),te=Object.freeze({__proto__:null,getOperation:function(){return N.PNChannelGroupsOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v1/channel-registration/sub-key/".concat(t.subscribeKey,"/channel-group")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{groups:t.payload.groups}}}),ne=Object.freeze({__proto__:null,getOperation:function(){return N.PNChannelsForGroupOperation},validateParams:function(e,t){var n=t.channelGroup,i=e.config;return n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var n=t.channelGroup,i=e.config;return"/v1/channel-registration/sub-key/".concat(i.subscribeKey,"/channel-group/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{channels:t.payload.channels}}}),ie=Object.freeze({__proto__:null,getOperation:function(){return N.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var n=t.device,i=t.pushGateway,r=t.channels,o=t.topic,a=e.config;return n?i?"apns2"!==i||o?r&&0!==r.length?a.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var n=t.device,i=t.pushGateway,r=e.config;return"apns2"===i?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(n):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(n)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.pushGateway,r=t.channels,o=void 0===r?[]:r,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:n,add:o.join(",")};return"apns2"===n&&delete(u=i(i({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),re=Object.freeze({__proto__:null,getOperation:function(){return N.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var n=t.device,i=t.pushGateway,r=t.channels,o=t.topic,a=e.config;return n?i?"apns2"!==i||o?r&&0!==r.length?a.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var n=t.device,i=t.pushGateway,r=e.config;return"apns2"===i?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(n):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(n)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.pushGateway,r=t.channels,o=void 0===r?[]:r,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:n,remove:o.join(",")};return"apns2"===n&&delete(u=i(i({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),oe=Object.freeze({__proto__:null,getOperation:function(){return N.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var n=t.device,i=t.pushGateway,r=t.topic,o=e.config;return n?i?"apns2"!==i||r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var n=t.device,i=t.pushGateway,r=e.config;return"apns2"===i?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(n):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(n)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.pushGateway,r=t.environment,o=void 0===r?"development":r,a=t.topic,s=t.start,l=t.count,u={type:n};return"apns2"===n&&delete(u=i(i({},u),{environment:o,topic:a})).type,s&&(u.start=s),l&&l>0&&(u.count=l),u},handleResponse:function(e,t){return{channels:t}}}),ae=Object.freeze({__proto__:null,getOperation:function(){return N.PNRemoveAllPushNotificationsOperation},validateParams:function(e,t){var n=t.device,i=t.pushGateway,r=t.topic,o=e.config;return n?i?"apns2"!==i||r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var n=t.device,i=t.pushGateway,r=e.config;return"apns2"===i?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(n,"/remove"):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(n,"/remove")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.pushGateway,r=t.environment,o=void 0===r?"development":r,a=t.topic,s={type:n};return"apns2"===n&&delete(s=i(i({},s),{environment:o,topic:a})).type,s},handleResponse:function(){return{}}}),se=Object.freeze({__proto__:null,getOperation:function(){return N.PNUnsubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(o),"/leave")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channelGroups,i=void 0===n?[]:n,r={};return i.length>0&&(r["channel-group"]=i.join(",")),r},handleResponse:function(){return{}}}),le=Object.freeze({__proto__:null,getOperation:function(){return N.PNWhereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.uuid,r=void 0===i?n.UUID:i;return"/v2/presence/sub-key/".concat(n.subscribeKey,"/uuid/").concat(z.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return t.payload?{channels:t.payload.channels}:{channels:[]}}}),ue=Object.freeze({__proto__:null,getOperation:function(){return N.PNHeartbeatOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(o),"/heartbeat")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(e,t){var n=t.channelGroups,i=void 0===n?[]:n,r=t.state,o=e.config,a={};return i.length>0&&(a["channel-group"]=i.join(",")),r&&(a.state=JSON.stringify(r)),a.heartbeat=o.getPresenceTimeout(),a},handleResponse:function(){return{}}}),de=Object.freeze({__proto__:null,getOperation:function(){return N.PNGetStateOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.uuid,r=void 0===i?n.UUID:i,o=t.channels,a=void 0===o?[]:o,s=a.length>0?a.join(","):",";return"/v2/presence/sub-key/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(s),"/uuid/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channelGroups,i=void 0===n?[]:n,r={};return i.length>0&&(r["channel-group"]=i.join(",")),r},handleResponse:function(e,t,n){var i=n.channels,r=void 0===i?[]:i,o=n.channelGroups,a=void 0===o?[]:o,s={};return 1===r.length&&0===a.length?s[r[0]]=t.payload:s=t.payload,{channels:s}}}),ce=Object.freeze({__proto__:null,getOperation:function(){return N.PNSetStateOperation},validateParams:function(e,t){var n=e.config,i=t.state,r=t.channels,o=void 0===r?[]:r,a=t.channelGroups,s=void 0===a?[]:a;return i?n.subscribeKey?0===o.length&&0===s.length?"Please provide a list of channels and/or channel-groups":void 0:"Missing Subscribe Key":"Missing State"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(o),"/uuid/").concat(z.encodeString(n.UUID),"/data")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.state,i=t.channelGroups,r=void 0===i?[]:i,o={};return o.state=JSON.stringify(n),r.length>0&&(o["channel-group"]=r.join(",")),o},handleResponse:function(e,t){return{state:t.payload}}}),he=Object.freeze({__proto__:null,getOperation:function(){return N.PNHereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=t.channelGroups,a=void 0===o?[]:o,s="/v2/presence/sub-key/".concat(n.subscribeKey);if(r.length>0||a.length>0){var l=r.length>0?r.join(","):",";s+="/channel/".concat(z.encodeString(l))}return s},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channelGroups,r=void 0===n?[]:n,o=t.includeUUIDs,a=void 0===o||o,s=t.includeState,l=void 0!==s&&s,u=t.queryParameters,d=void 0===u?{}:u,c={};return a||(c.disable_uuids=1),l&&(c.state=1),r.length>0&&(c["channel-group"]=r.join(",")),i(i({},c),d)},handleResponse:function(e,t,n){var i=n.channels,r=void 0===i?[]:i,o=n.channelGroups,a=void 0===o?[]:o,s=n.includeUUIDs,l=void 0===s||s,u=n.includeState,d=void 0!==u&&u;return r.length>1||a.length>0||0===a.length&&0===r.length?function(){var e={};return e.totalChannels=t.payload.total_channels,e.totalOccupancy=t.payload.total_occupancy,e.channels={},Object.keys(t.payload.channels).forEach(function(n){var i=t.payload.channels[n],r=[];return e.channels[n]={occupants:r,name:n,occupancy:i.occupancy},l&&i.uuids.forEach(function(e){d?r.push({state:e.state,uuid:e.uuid}):r.push({state:null,uuid:e})}),e}),e}():function(){var e={},n=[];return e.totalChannels=1,e.totalOccupancy=t.occupancy,e.channels={},e.channels[r[0]]={occupants:n,name:r[0],occupancy:t.occupancy},l&&t.uuids&&t.uuids.forEach(function(e){d?n.push({state:e.state,uuid:e.uuid}):n.push({state:null,uuid:e})}),e}()},handleError:function(e,t,n){402!==n.statusCode||this.getURL(e,t).includes("channel")||(n.errorData.message="You have tried to perform a Global Here Now operation, your keyset configuration does not support that. Please provide a channel, or enable the Global Here Now feature from the Portal.")}}),pe=Object.freeze({__proto__:null,getOperation:function(){return N.PNAddMessageActionOperation},validateParams:function(e,t){var n=e.config,i=t.action,r=t.channel;return t.messageTimetoken?n.subscribeKey?r?i?i.value?i.type?i.type.length>15?"Action.type value exceed maximum length of 15":void 0:"Missing Action.type":"Missing Action.value":"Missing Action":"Missing message channel":"Missing Subscribe Key":"Missing message timetoken"},usePost:function(){return!0},postURL:function(e,t){var n=e.config,i=t.channel,r=t.messageTimetoken;return"/v1/message-actions/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(i),"/message/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},getRequestHeaders:function(){return{"Content-Type":"application/json"}},isAuthSupported:function(){return!0},prepareParams:function(){return{}},postPayload:function(e,t){return t.action},handleResponse:function(e,t){return{data:t.data}}}),fe=Object.freeze({__proto__:null,getOperation:function(){return N.PNRemoveMessageActionOperation},validateParams:function(e,t){var n=e.config,i=t.channel,r=t.actionTimetoken;return t.messageTimetoken?r?n.subscribeKey?i?void 0:"Missing message channel":"Missing Subscribe Key":"Missing action timetoken":"Missing message timetoken"},useDelete:function(){return!0},getURL:function(e,t){var n=e.config,i=t.channel,r=t.actionTimetoken,o=t.messageTimetoken;return"/v1/message-actions/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(i),"/message/").concat(o,"/action/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{data:t.data}}}),ge=Object.freeze({__proto__:null,getOperation:function(){return N.PNGetMessageActionsOperation},validateParams:function(e,t){var n=e.config,i=t.channel;return n.subscribeKey?i?void 0:"Missing message channel":"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channel;return"/v1/message-actions/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.limit,i=t.start,r=t.end,o={};return n&&(o.limit=n),i&&(o.start=i),r&&(o.end=r),o},handleResponse:function(e,t){var n={data:t.data,start:null,end:null};return n.data.length&&(n.end=n.data[n.data.length-1].actionTimetoken,n.start=n.data[0].actionTimetoken),n}}),me={getOperation:function(){return N.PNListFilesOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"channel can't be empty"},getURL:function(e,t){var n=e.config;return"/v1/files/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/files")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n={};return t.limit&&(n.limit=t.limit),t.next&&(n.next=t.next),n},handleResponse:function(e,t){return{status:t.status,data:t.data,next:t.next,count:t.count}}},ye={getOperation:function(){return N.PNGenerateUploadUrlOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.name)?void 0:"name can't be empty":"channel can't be empty"},usePost:function(){return!0},postURL:function(e,t){var n=e.config;return"/v1/files/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/generate-upload-url")},postPayload:function(e,t){return{name:t.name}},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status,data:t.data,file_upload_request:t.file_upload_request}}},be={getOperation:function(){return N.PNPublishFileOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.fileId)?(null==t?void 0:t.fileName)?void 0:"file name can't be empty":"file id can't be empty":"channel can't be empty"},getURL:function(e,t){var n=e.config,i=n.publishKey,r=n.subscribeKey,o=function(e,t){var n=JSON.stringify(t);if(e.cryptoModule){var i=e.cryptoModule.encrypt(n);n="string"==typeof i?i:v(i),n=JSON.stringify(n)}return n||""}(e,{message:t.message,file:{name:t.fileName,id:t.fileId}});return"/v1/files/publish-file/".concat(i,"/").concat(r,"/0/").concat(z.encodeString(t.channel),"/0/").concat(z.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n={};return t.ttl&&(n.ttl=t.ttl),void 0!==t.storeInHistory&&(n.store=t.storeInHistory?"1":"0"),t.meta&&"object"==typeof t.meta&&(n.meta=JSON.stringify(t.meta)),n},handleResponse:function(e,t){return{timetoken:t[2]}}},ve=function(e){var t=function(e){var t=this,n=e.generateUploadUrl,i=e.publishFile,r=e.modules,s=r.PubNubFile,l=r.config,u=r.cryptography,d=r.cryptoModule,c=r.networking;return function(e){var r=e.channel,h=e.file,p=e.message,f=e.cipherKey,g=e.meta,m=e.ttl,y=e.storeInHistory;return o(t,void 0,void 0,function(){var e,t,o,b,v,w,C,x,$,S,A,E,T,k,_,O,P,I,N,M,D,L,U,R,B,j,F,H,G;return a(this,function(a){switch(a.label){case 0:if(!r)throw new Q("Validation failed, check status for details",W("channel can't be empty"));if(!h)throw new Q("Validation failed, check status for details",W("file can't be empty"));return e=s.create(h),[4,n({channel:r,name:e.name})];case 1:return t=a.sent(),o=t.file_upload_request,b=o.url,v=o.form_fields,w=t.data,C=w.id,x=w.name,s.supportsEncryptFile&&(f||d)?null!=f?[3,3]:[4,d.encryptFile(e,s)]:[3,6];case 2:return $=a.sent(),[3,5];case 3:return[4,u.encryptFile(f,e,s)];case 4:$=a.sent(),a.label=5;case 5:e=$,a.label=6;case 6:S=v,e.mimeType&&(S=v.map(function(t){return"Content-Type"===t.key?{key:t.key,value:e.mimeType}:t})),a.label=7;case 7:return a.trys.push([7,21,,22]),s.supportsFileUri&&h.uri?(T=(E=c).POSTFILE,k=[b,S],[4,e.toFileUri()]):[3,10];case 8:return[4,T.apply(E,k.concat([a.sent()]))];case 9:return A=a.sent(),[3,20];case 10:return s.supportsFile?(O=(_=c).POSTFILE,P=[b,S],[4,e.toFile()]):[3,13];case 11:return[4,O.apply(_,P.concat([a.sent()]))];case 12:return A=a.sent(),[3,20];case 13:return s.supportsBuffer?(N=(I=c).POSTFILE,M=[b,S],[4,e.toBuffer()]):[3,16];case 14:return[4,N.apply(I,M.concat([a.sent()]))];case 15:return A=a.sent(),[3,20];case 16:return s.supportsBlob?(L=(D=c).POSTFILE,U=[b,S],[4,e.toBlob()]):[3,19];case 17:return[4,L.apply(D,U.concat([a.sent()]))];case 18:return A=a.sent(),[3,20];case 19:throw new Error("Unsupported environment");case 20:return[3,22];case 21:throw(R=a.sent()).response&&"string"==typeof R.response.text?(B=R.response.text,j=/<Message>(.*)<\/Message>/gi.exec(B),new Q(j?"Upload to bucket failed: ".concat(j[1]):"Upload to bucket failed.",R)):new Q("Upload to bucket failed.",R);case 22:if(204!==A.status)throw new Q("Upload to bucket was unsuccessful",A);F=l.fileUploadPublishRetryLimit,H=!1,G={timetoken:"0"},a.label=23;case 23:return a.trys.push([23,25,,26]),[4,i({channel:r,message:p,fileId:C,fileName:x,meta:g,storeInHistory:y,ttl:m})];case 24:return G=a.sent(),H=!0,[3,26];case 25:return a.sent(),F-=1,[3,26];case 26:if(!H&&F>0)return[3,23];a.label=27;case 27:if(H)return[2,{timetoken:G.timetoken,id:C,name:x}];throw new Q("Publish failed. You may want to execute that operation manually using pubnub.publishFile",{channel:r,id:C,name:x})}})})}}(e);return function(e,n){var i=t(e);return"function"==typeof n?(i.then(function(e){return n(null,e)}).catch(function(e){return n(e,null)}),i):i}},we=function(e,t){var n=t.channel,i=t.id,r=t.name,o=e.config,a=e.networking,s=e.tokenManager;if(!n)throw new Q("Validation failed, check status for details",W("channel can't be empty"));if(!i)throw new Q("Validation failed, check status for details",W("file id can't be empty"));if(!r)throw new Q("Validation failed, check status for details",W("file name can't be empty"));var l="/v1/files/".concat(o.subscribeKey,"/channels/").concat(z.encodeString(n),"/files/").concat(i,"/").concat(r),u={};u.uuid=o.getUUID(),u.pnsdk=V(o);var d=s.getToken()||o.getAuthKey();d&&(u.auth=d),o.secretKey&&K(e,l,u,{},{getOperation:function(){return"PubNubGetFileUrlOperation"}});var c=Object.keys(u).map(function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(u[e]))}).join("&");return""!==c?"".concat(a.getStandardOrigin()).concat(l,"?").concat(c):"".concat(a.getStandardOrigin()).concat(l)},Ce={getOperation:function(){return N.PNDownloadFileOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.name)?(null==t?void 0:t.id)?void 0:"id can't be empty":"name can't be empty":"channel can't be empty"},useGetFile:function(){return!0},getFileURL:function(e,t){var n=e.config;return"/v1/files/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/files/").concat(t.id,"/").concat(t.name)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},ignoreBody:function(){return!0},forceBuffered:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t,n){var i=e.PubNubFile,r=e.config,s=e.cryptography,l=e.cryptoModule;return o(void 0,void 0,void 0,function(){var e,o,u,d;return a(this,function(a){switch(a.label){case 0:return e=t.response.body,i.supportsEncryptFile&&(n.cipherKey||l)?null!=n.cipherKey?[3,2]:[4,l.decryptFile(i.create({data:e,name:n.name}),i)]:[3,5];case 1:return o=a.sent().data,[3,4];case 2:return[4,s.decrypt(null!==(u=n.cipherKey)&&void 0!==u?u:r.cipherKey,e)];case 3:o=a.sent(),a.label=4;case 4:e=o,a.label=5;case 5:return[2,i.create({data:e,name:null!==(d=t.response.name)&&void 0!==d?d:n.name,mimeType:t.response.type})]}})})}},xe={getOperation:function(){return N.PNListFilesOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.id)?(null==t?void 0:t.name)?void 0:"file name can't be empty":"file id can't be empty":"channel can't be empty"},useDelete:function(){return!0},getURL:function(e,t){var n=e.config;return"/v1/files/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/files/").concat(t.id,"/").concat(t.name)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status}}},$e={getOperation:function(){return N.PNGetAllUUIDMetadataOperation},validateParams:function(){},getURL:function(e){var t=e.config;return"/v2/objects/".concat(t.subscribeKey,"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(n=t.include)||void 0===n?void 0:n.customFields)&&h.include.push("custom"),h.include=h.include.join(","),(null===(i=null==t?void 0:t.include)||void 0===i?void 0:i.totalCount)&&(h.count=null===(r=t.include)||void 0===r?void 0:r.totalCount),(null===(o=null==t?void 0:t.page)||void 0===o?void 0:o.next)&&(h.start=null===(a=t.page)||void 0===a?void 0:a.next),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.prev)&&(h.end=null===(u=t.page)||void 0===u?void 0:u.prev),(null==t?void 0:t.filter)&&(h.filter=t.filter),h.limit=null!==(d=null==t?void 0:t.limit)&&void 0!==d?d:100,(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,next:t.next,prev:t.prev}}},Se={getOperation:function(){return N.PNGetUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:i.getUUID()))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r=e.config,o={};return o.uuid=null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:r.getUUID(),o.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&o.include.pop(),o.include=o.include.join(","),o},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ae={getOperation:function(){return N.PNSetUUIDMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.data))return"Data cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=t.uuid)&&void 0!==n?n:i.getUUID()))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r=e.config,o={};return o.uuid=null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:r.getUUID(),o.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&o.include.pop(),o.include=o.include.join(","),o},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ee={getOperation:function(){return N.PNRemoveUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:i.getUUID()))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i=e.config;return{uuid:null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:i.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Te={getOperation:function(){return N.PNGetAllChannelMetadataOperation},validateParams:function(){},getURL:function(e){var t=e.config;return"/v2/objects/".concat(t.subscribeKey,"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(n=t.include)||void 0===n?void 0:n.customFields)&&h.include.push("custom"),h.include=h.include.join(","),(null===(i=null==t?void 0:t.include)||void 0===i?void 0:i.totalCount)&&(h.count=null===(r=t.include)||void 0===r?void 0:r.totalCount),(null===(o=null==t?void 0:t.page)||void 0===o?void 0:o.next)&&(h.start=null===(a=t.page)||void 0===a?void 0:a.next),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.prev)&&(h.end=null===(u=t.page)||void 0===u?void 0:u.prev),(null==t?void 0:t.filter)&&(h.filter=t.filter),h.limit=null!==(d=null==t?void 0:t.limit)&&void 0!==d?d:100,(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},ke={getOperation:function(){return N.PNGetChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&i.include.pop(),i.include=i.include.join(","),i},handleResponse:function(e,t){return{status:t.status,data:t.data}}},_e={getOperation:function(){return N.PNSetChannelMetadataOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.data)?void 0:"Data cannot be empty":"Channel cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&i.include.pop(),i.include=i.include.join(","),i},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Oe={getOperation:function(){return N.PNRemoveChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Pe={getOperation:function(){return N.PNGetMembersOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"channel cannot be empty"},getURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h,p,f,g,m,y={include:[]};return(null==t?void 0:t.include)&&((null===(n=t.include)||void 0===n?void 0:n.statusField)&&y.include.push("status"),(null===(i=t.include)||void 0===i?void 0:i.customFields)&&y.include.push("custom"),(null===(r=t.include)||void 0===r?void 0:r.UUIDFields)&&y.include.push("uuid"),(null===(o=t.include)||void 0===o?void 0:o.customUUIDFields)&&y.include.push("uuid.custom"),(null===(a=t.include)||void 0===a?void 0:a.UUIDStatusField)&&y.include.push("uuid.status"),(null===(s=t.include)||void 0===s?void 0:s.UUIDTypeField)&&y.include.push("uuid.type")),y.include=y.include.join(","),(null===(u=null==t?void 0:t.include)||void 0===u?void 0:u.totalCount)&&(y.count=null===(d=t.include)||void 0===d?void 0:d.totalCount),(null===(c=null==t?void 0:t.page)||void 0===c?void 0:c.next)&&(y.start=null===(h=t.page)||void 0===h?void 0:h.next),(null===(p=null==t?void 0:t.page)||void 0===p?void 0:p.prev)&&(y.end=null===(f=t.page)||void 0===f?void 0:f.prev),(null==t?void 0:t.filter)&&(y.filter=t.filter),y.limit=null!==(g=null==t?void 0:t.limit)&&void 0!==g?g:100,(null==t?void 0:t.sort)&&(y.sort=Object.entries(null!==(m=t.sort)&&void 0!==m?m:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),y},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ie={getOperation:function(){return N.PNSetMembersOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.uuids)&&0!==(null==t?void 0:t.uuids.length)?void 0:"UUIDs cannot be empty":"Channel cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/uuids")},patchPayload:function(e,t){var n;return(n={set:[],delete:[]})[t.type]=t.uuids.map(function(e){return"string"==typeof e?{uuid:{id:e}}:{uuid:{id:e.id},custom:e.custom,status:e.status}}),n},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(n=t.include)||void 0===n?void 0:n.customFields)&&h.include.push("custom"),(null===(i=t.include)||void 0===i?void 0:i.customUUIDFields)&&h.include.push("uuid.custom"),(null===(r=t.include)||void 0===r?void 0:r.UUIDFields)&&h.include.push("uuid")),h.include=h.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(h.count=!0),(null===(a=null==t?void 0:t.page)||void 0===a?void 0:a.next)&&(h.start=null===(s=t.page)||void 0===s?void 0:s.next),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.prev)&&(h.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(h.filter=t.filter),null!=t.limit&&(h.limit=t.limit),(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ne={getOperation:function(){return N.PNGetMembershipsOperation},validateParams:function(){},getURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:i.getUUID()),"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h,p,f,g,m,y={include:[]};return(null==t?void 0:t.include)&&((null===(n=t.include)||void 0===n?void 0:n.statusField)&&y.include.push("status"),(null===(i=t.include)||void 0===i?void 0:i.customFields)&&y.include.push("custom"),(null===(r=t.include)||void 0===r?void 0:r.channelFields)&&y.include.push("channel"),(null===(o=t.include)||void 0===o?void 0:o.customChannelFields)&&y.include.push("channel.custom"),(null===(a=t.include)||void 0===a?void 0:a.channelStatusField)&&y.include.push("channel.status"),(null===(s=t.include)||void 0===s?void 0:s.channelTypeField)&&y.include.push("channel.type")),y.include=y.include.join(","),(null===(u=null==t?void 0:t.include)||void 0===u?void 0:u.totalCount)&&(y.count=null===(d=t.include)||void 0===d?void 0:d.totalCount),(null===(c=null==t?void 0:t.page)||void 0===c?void 0:c.next)&&(y.start=null===(h=t.page)||void 0===h?void 0:h.next),(null===(p=null==t?void 0:t.page)||void 0===p?void 0:p.prev)&&(y.end=null===(f=t.page)||void 0===f?void 0:f.prev),(null==t?void 0:t.filter)&&(y.filter=t.filter),y.limit=null!==(g=null==t?void 0:t.limit)&&void 0!==g?g:100,(null==t?void 0:t.sort)&&(y.sort=Object.entries(null!==(m=t.sort)&&void 0!==m?m:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),y},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Me={getOperation:function(){return N.PNSetMembershipsOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channels)||0===(null==t?void 0:t.channels.length))return"Channels cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=t.uuid)&&void 0!==n?n:i.getUUID()),"/channels")},patchPayload:function(e,t){var n;return(n={set:[],delete:[]})[t.type]=t.channels.map(function(e){return"string"==typeof e?{channel:{id:e}}:{channel:{id:e.id},custom:e.custom,status:e.status}}),n},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(n=t.include)||void 0===n?void 0:n.customFields)&&h.include.push("custom"),(null===(i=t.include)||void 0===i?void 0:i.customChannelFields)&&h.include.push("channel.custom"),(null===(r=t.include)||void 0===r?void 0:r.channelFields)&&h.include.push("channel")),h.include=h.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(h.count=!0),(null===(a=null==t?void 0:t.page)||void 0===a?void 0:a.next)&&(h.start=null===(s=t.page)||void 0===s?void 0:s.next),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.prev)&&(h.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(h.filter=t.filter),null!=t.limit&&(h.limit=t.limit),(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},De=Object.freeze({__proto__:null,getOperation:function(){return N.PNAccessManagerAudit},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v2/auth/audit/sub-key/".concat(t.subscribeKey)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e,t){var n=t.channel,i=t.channelGroup,r=t.authKeys,o=void 0===r?[]:r,a={};return n&&(a.channel=n),i&&(a["channel-group"]=i),o.length>0&&(a.auth=o.join(",")),a},handleResponse:function(e,t){return t.payload}}),Le=Object.freeze({__proto__:null,getOperation:function(){return N.PNAccessManagerGrant},validateParams:function(e,t){var n=e.config;return n.subscribeKey?n.publishKey?n.secretKey?null==t.uuids||t.authKeys?null==t.uuids||null==t.channels&&null==t.channelGroups?void 0:"Both channel/channelgroup and uuid cannot be used in the same request":"authKeys are required for grant request on uuids":"Missing Secret Key":"Missing Publish Key":"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v2/auth/grant/sub-key/".concat(t.subscribeKey)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e,t){var n=t.channels,i=void 0===n?[]:n,r=t.channelGroups,o=void 0===r?[]:r,a=t.uuids,s=void 0===a?[]:a,l=t.ttl,u=t.read,d=void 0!==u&&u,c=t.write,h=void 0!==c&&c,p=t.manage,f=void 0!==p&&p,g=t.get,m=void 0!==g&&g,y=t.join,b=void 0!==y&&y,v=t.update,w=void 0!==v&&v,C=t.authKeys,x=void 0===C?[]:C,$=t.delete,S={};return S.r=d?"1":"0",S.w=h?"1":"0",S.m=f?"1":"0",S.d=$?"1":"0",S.g=m?"1":"0",S.j=b?"1":"0",S.u=w?"1":"0",i.length>0&&(S.channel=i.join(",")),o.length>0&&(S["channel-group"]=o.join(",")),x.length>0&&(S.auth=x.join(",")),s.length>0&&(S["target-uuid"]=s.join(",")),(l||0===l)&&(S.ttl=l),S},handleResponse:function(){return{}}});function Ue(e){var t,n,i,r,o=void 0!==(null==e?void 0:e.authorizedUserId),a=void 0!==(null===(t=null==e?void 0:e.resources)||void 0===t?void 0:t.users),s=void 0!==(null===(n=null==e?void 0:e.resources)||void 0===n?void 0:n.spaces),l=void 0!==(null===(i=null==e?void 0:e.patterns)||void 0===i?void 0:i.users),u=void 0!==(null===(r=null==e?void 0:e.patterns)||void 0===r?void 0:r.spaces);return l||a||u||s||o}function Re(e){var t=0;return e.join&&(t|=128),e.update&&(t|=64),e.get&&(t|=32),e.delete&&(t|=8),e.manage&&(t|=4),e.write&&(t|=2),e.read&&(t|=1),t}function Be(e,t){if(Ue(t))return function(e,t){var n=t.ttl,i=t.resources,r=t.patterns,o=t.meta,a=t.authorizedUserId,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(i){var l=i.users,u=i.spaces,d=i.groups;l&&Object.keys(l).forEach(function(e){s.permissions.resources.uuids[e]=Re(l[e])}),u&&Object.keys(u).forEach(function(e){s.permissions.resources.channels[e]=Re(u[e])}),d&&Object.keys(d).forEach(function(e){s.permissions.resources.groups[e]=Re(d[e])})}if(r){var c=r.users,h=r.spaces,p=r.groups;c&&Object.keys(c).forEach(function(e){s.permissions.patterns.uuids[e]=Re(c[e])}),h&&Object.keys(h).forEach(function(e){s.permissions.patterns.channels[e]=Re(h[e])}),p&&Object.keys(p).forEach(function(e){s.permissions.patterns.groups[e]=Re(p[e])})}return(n||0===n)&&(s.ttl=n),o&&(s.permissions.meta=o),a&&(s.permissions.uuid="".concat(a)),s}(0,t);var n=t.ttl,i=t.resources,r=t.patterns,o=t.meta,a=t.authorized_uuid,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(i){var l=i.uuids,u=i.channels,d=i.groups;l&&Object.keys(l).forEach(function(e){s.permissions.resources.uuids[e]=Re(l[e])}),u&&Object.keys(u).forEach(function(e){s.permissions.resources.channels[e]=Re(u[e])}),d&&Object.keys(d).forEach(function(e){s.permissions.resources.groups[e]=Re(d[e])})}if(r){var c=r.uuids,h=r.channels,p=r.groups;c&&Object.keys(c).forEach(function(e){s.permissions.patterns.uuids[e]=Re(c[e])}),h&&Object.keys(h).forEach(function(e){s.permissions.patterns.channels[e]=Re(h[e])}),p&&Object.keys(p).forEach(function(e){s.permissions.patterns.groups[e]=Re(p[e])})}return(n||0===n)&&(s.ttl=n),o&&(s.permissions.meta=o),a&&(s.permissions.uuid="".concat(a)),s}var je=Object.freeze({__proto__:null,getOperation:function(){return N.PNAccessManagerGrantToken},extractPermissions:Re,validateParams:function(e,t){var n,i,r,o,a,s,l=e.config;if(!l.subscribeKey)return"Missing Subscribe Key";if(!l.publishKey)return"Missing Publish Key";if(!l.secretKey)return"Missing Secret Key";if(!t.resources&&!t.patterns)return"Missing either Resources or Patterns.";var u=void 0!==(null==t?void 0:t.authorized_uuid),d=void 0!==(null===(n=null==t?void 0:t.resources)||void 0===n?void 0:n.uuids),c=void 0!==(null===(i=null==t?void 0:t.resources)||void 0===i?void 0:i.channels),h=void 0!==(null===(r=null==t?void 0:t.resources)||void 0===r?void 0:r.groups),p=void 0!==(null===(o=null==t?void 0:t.patterns)||void 0===o?void 0:o.uuids),f=void 0!==(null===(a=null==t?void 0:t.patterns)||void 0===a?void 0:a.channels),g=void 0!==(null===(s=null==t?void 0:t.patterns)||void 0===s?void 0:s.groups),m=u||d||p||c||f||h||g;return Ue(t)&&m?"Cannot mix `users`, `spaces` and `authorizedUserId` with `uuids`, `channels`, `groups` and `authorized_uuid`":(!t.resources||t.resources.uuids&&0!==Object.keys(t.resources.uuids).length||t.resources.channels&&0!==Object.keys(t.resources.channels).length||t.resources.groups&&0!==Object.keys(t.resources.groups).length||t.resources.users&&0!==Object.keys(t.resources.users).length||t.resources.spaces&&0!==Object.keys(t.resources.spaces).length)&&(!t.patterns||t.patterns.uuids&&0!==Object.keys(t.patterns.uuids).length||t.patterns.channels&&0!==Object.keys(t.patterns.channels).length||t.patterns.groups&&0!==Object.keys(t.patterns.groups).length||t.patterns.users&&0!==Object.keys(t.patterns.users).length||t.patterns.spaces&&0!==Object.keys(t.patterns.spaces).length)?void 0:"Missing values for either Resources or Patterns."},postURL:function(e){var t=e.config;return"/v3/pam/".concat(t.subscribeKey,"/grant")},usePost:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(){return{}},postPayload:function(e,t){return Be(0,t)},handleResponse:function(e,t){return t.data.token}}),Fe={getOperation:function(){return N.PNAccessManagerRevokeToken},validateParams:function(e,t){return e.config.secretKey?t?void 0:"token can't be empty":"Missing Secret Key"},getURL:function(e,t){var n=e.config;return"/v3/pam/".concat(n.subscribeKey,"/grant/").concat(z.encodeString(t))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e){return{uuid:e.config.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}};function He(e,t){var n=JSON.stringify(t);if(e.cryptoModule){var i=e.cryptoModule.encrypt(n);n="string"==typeof i?i:v(i),n=JSON.stringify(n)}return n||""}var Ge=Object.freeze({__proto__:null,getOperation:function(){return N.PNPublishOperation},validateParams:function(e,t){var n=e.config,i=t.message;return t.channel?i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},usePost:function(e,t){var n=t.sendByPost;return void 0!==n&&n},getURL:function(e,t){var n=e.config,i=t.channel,r=He(e,t.message);return"/publish/".concat(n.publishKey,"/").concat(n.subscribeKey,"/0/").concat(z.encodeString(i),"/0/").concat(z.encodeString(r))},postURL:function(e,t){var n=e.config,i=t.channel;return"/publish/".concat(n.publishKey,"/").concat(n.subscribeKey,"/0/").concat(z.encodeString(i),"/0")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},postPayload:function(e,t){return He(e,t.message)},prepareParams:function(e,t){var n=t.meta,i=t.replicate,r=void 0===i||i,o=t.storeInHistory,a=t.ttl,s={};return null!=o&&(s.store=o?"1":"0"),a&&(s.ttl=a),!1===r&&(s.norep="true"),n&&"object"==typeof n&&(s.meta=JSON.stringify(n)),s},handleResponse:function(e,t){return{timetoken:t[2]}}}),ze=Object.freeze({__proto__:null,getOperation:function(){return N.PNSignalOperation},validateParams:function(e,t){var n=e.config,i=t.message;return t.channel?i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},getURL:function(e,t){var n,i=e.config,r=t.channel,o=(n=t.message,JSON.stringify(n));return"/signal/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(z.encodeString(r),"/0/").concat(z.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{timetoken:t[2]}}}),Qe=Object.freeze({__proto__:null,getOperation:function(){return N.PNHistoryOperation},validateParams:function(e,t){var n=t.channel,i=e.config;return n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var n=t.channel,i=e.config;return"/v2/history/sub-key/".concat(i.subscribeKey,"/channel/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.start,i=t.end,r=t.reverse,o=t.count,a=void 0===o?100:o,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,d=void 0!==u&&u,c={include_token:"true"};return c.count=a,n&&(c.start=n),i&&(c.end=i),l&&(c.string_message_token="true"),null!=r&&(c.reverse=r.toString()),d&&(c.include_meta="true"),c},handleResponse:function(e,t){var n={messages:[],startTimeToken:t[1],endTimeToken:t[2]};return Array.isArray(t[0])&&t[0].forEach(function(t){var i=function(e,t){var n={};if(!e.cryptoModule)return n.payload=t,n;try{var i=e.cryptoModule.decrypt(t),r=i instanceof ArrayBuffer?JSON.parse((new TextDecoder).decode(i)):i;return n.payload=r,n}catch(i){e.config.logVerbosity&&console&&console.log,n.payload=t,n.error="Error while decrypting message content: ".concat(i.message)}return n}(e,t.message),r={timetoken:t.timetoken,entry:i.payload};t.meta&&(r.meta=t.meta),i.error&&(r.error=i.error),n.messages.push(r)}),n}}),We=Object.freeze({__proto__:null,getOperation:function(){return N.PNDeleteMessagesOperation},validateParams:function(e,t){var n=t.channel,i=e.config;return n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},useDelete:function(){return!0},getURL:function(e,t){var n=t.channel,i=e.config;return"/v3/history/sub-key/".concat(i.subscribeKey,"/channel/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.start,i=t.end,r={};return n&&(r.start=n),i&&(r.end=i),r},handleResponse:function(e,t){return t.payload}}),qe=Object.freeze({__proto__:null,getOperation:function(){return N.PNMessageCounts},validateParams:function(e,t){var n=t.channels,i=t.timetoken,r=t.channelTimetokens,o=e.config;return n?i&&r?"timetoken and channelTimetokens are incompatible together":r&&r.length>1&&n.length!==r.length?"Length of channelTimetokens and channels do not match":o.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var n=t.channels,i=e.config,r=n.join(",");return"/v3/history/sub-key/".concat(i.subscribeKey,"/message-counts/").concat(z.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.timetoken,i=t.channelTimetokens,r={};if(i&&1===i.length){var o=l(i,1)[0];r.timetoken=o}else i?r.channelsTimetoken=i.join(","):n&&(r.timetoken=n);return r},handleResponse:function(e,t){return{channels:t.channels}}}),Ve=Object.freeze({__proto__:null,getOperation:function(){return N.PNFetchMessagesOperation},validateParams:function(e,t){var n=t.channels,i=t.includeMessageActions,r=void 0!==i&&i,o=e.config;if(!n||0===n.length)return"Missing channels";if(!o.subscribeKey)return"Missing Subscribe Key";if(r&&n.length>1)throw new TypeError("History can return actions data for a single channel only. Either pass a single channel or disable the includeMessageActions flag.")},getURL:function(e,t){var n=t.channels,i=void 0===n?[]:n,r=t.includeMessageActions,o=void 0!==r&&r,a=e.config,s=o?"history-with-actions":"history",l=i.length>0?i.join(","):",";return"/v3/".concat(s,"/sub-key/").concat(a.subscribeKey,"/channel/").concat(z.encodeString(l))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channels,i=t.start,r=t.end,o=t.includeMessageActions,a=t.count,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,d=void 0!==u&&u,c=t.includeUuid,h=t.includeUUID,p=void 0===h||h,f=t.includeMessageType,g=void 0===f||f,m={};return m.max=a||(n.length>1||!0===o?25:100),i&&(m.start=i),r&&(m.end=r),l&&(m.string_message_token="true"),d&&(m.include_meta="true"),p&&!1!==c&&(m.include_uuid="true"),g&&(m.include_message_type="true"),m},handleResponse:function(e,t){var n={channels:{}};return Object.keys(t.channels||{}).forEach(function(i){n.channels[i]=[],(t.channels[i]||[]).forEach(function(t){var r={},o=function(e,t){var n={};if(!e.cryptoModule)return n.payload=t,n;try{var i=e.cryptoModule.decrypt(t),r=i instanceof ArrayBuffer?JSON.parse((new TextDecoder).decode(i)):i;return n.payload=r,n}catch(i){e.config.logVerbosity&&console&&console.log,n.payload=t,n.error="Error while decrypting message content: ".concat(i.message)}return n}(e,t.message);r.channel=i,r.timetoken=t.timetoken,r.message=o.payload,r.messageType=t.message_type,r.uuid=t.uuid,t.actions&&(r.actions=t.actions,r.data=t.actions),t.meta&&(r.meta=t.meta),o.error&&(r.error=o.error),n.channels[i].push(r)})}),t.more&&(n.more=t.more),n}}),Ye=Object.freeze({__proto__:null,getOperation:function(){return N.PNTimeOperation},getURL:function(){return"/time/0"},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},isAuthSupported:function(){return!1},handleResponse:function(e,t){return{timetoken:t[0]}},validateParams:function(){}}),Ke=Object.freeze({__proto__:null,getOperation:function(){return N.PNSubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/subscribe/".concat(n.subscribeKey,"/").concat(z.encodeString(o),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=e.config,i=t.state,r=t.channelGroups,o=void 0===r?[]:r,a=t.timetoken,s=t.filterExpression,l=t.region,u={heartbeat:n.getPresenceTimeout()};return o.length>0&&(u["channel-group"]=o.join(",")),s&&s.length>0&&(u["filter-expr"]=s),Object.keys(i).length&&(u.state=JSON.stringify(i)),a&&(u.tt=a),l&&(u.tr=l),u},handleResponse:function(e,t){var n=[];t.m.forEach(function(e){var t={timetoken:e.p.t,region:e.p.r},i={shard:parseInt(e.a,10),subscriptionMatch:e.b,channel:e.c,messageType:e.e,payload:e.d,flags:e.f,issuingClientId:e.i,subscribeKey:e.k,originationTimetoken:e.o,userMetadata:e.u,publishMetaData:t};n.push(i)});var i={timetoken:t.t.t,region:t.t.r};return{messages:n,metadata:i}}}),Xe={getOperation:function(){return N.PNHandshakeOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channels)&&!(null==t?void 0:t.channelGroups))return"channels and channleGroups both should not be empty"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/subscribe/".concat(n.subscribeKey,"/").concat(z.encodeString(o),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n={};return t.channelGroups&&t.channelGroups.length>0&&(n["channel-group"]=t.channelGroups.join(",")),n.tt=0,t.state&&(n.state=JSON.stringify(t.state)),t.filterExpression&&t.filterExpression.length>0&&(n["filter-expr"]=t.filterExpression),n.ee="",n},handleResponse:function(e,t){return{region:t.t.r,timetoken:t.t.t}}},Ze={getOperation:function(){return N.PNReceiveMessagesOperation},validateParams:function(e,t){return(null==t?void 0:t.channels)||(null==t?void 0:t.channelGroups)?(null==t?void 0:t.timetoken)?(null==t?void 0:t.region)?void 0:"region can not be empty":"timetoken can not be empty":"channels and channleGroups both should not be empty"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/subscribe/".concat(n.subscribeKey,"/").concat(z.encodeString(o),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},getAbortSignal:function(e,t){return t.abortSignal},prepareParams:function(e,t){var n={};return t.channelGroups&&t.channelGroups.length>0&&(n["channel-group"]=t.channelGroups.join(",")),t.filterExpression&&t.filterExpression.length>0&&(n["filter-expr"]=t.filterExpression),n.tt=t.timetoken,n.tr=t.region,n.ee="",n},handleResponse:function(e,t){var n=[];return t.m.forEach(function(e){var t={shard:parseInt(e.a,10),subscriptionMatch:e.b,channel:e.c,messageType:e.e,payload:e.d,flags:e.f,issuingClientId:e.i,subscribeKey:e.k,originationTimetoken:e.o,userMetadata:e.u,publishMetaData:{timetoken:e.p.t,region:e.p.r}};n.push(t)}),{messages:n,metadata:{region:t.t.r,timetoken:t.t.t}}}},Je=function(){function e(e){void 0===e&&(e=!1),this.sync=e,this.listeners=new Set}return e.prototype.subscribe=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.notify=function(e){var t=this,n=function(){t.listeners.forEach(function(t){t(e)})};this.sync?n():setTimeout(n,0)},e}(),et=function(){function e(e){this.label=e,this.transitionMap=new Map,this.enterEffects=[],this.exitEffects=[]}return e.prototype.transition=function(e,t){var n;if(this.transitionMap.has(t.type))return null===(n=this.transitionMap.get(t.type))||void 0===n?void 0:n(e,t)},e.prototype.on=function(e,t){return this.transitionMap.set(e,t),this},e.prototype.with=function(e,t){return[this,e,null!=t?t:[]]},e.prototype.onEnter=function(e){return this.enterEffects.push(e),this},e.prototype.onExit=function(e){return this.exitEffects.push(e),this},e}(),tt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.describe=function(e){return new et(e)},n.prototype.start=function(e,t){this.currentState=e,this.currentContext=t,this.notify({type:"engineStarted",state:e,context:t})},n.prototype.transition=function(e){var t,n,i,r,o,a;if(!this.currentState)throw new Error("Start the engine first");this.notify({type:"eventReceived",event:e});var u=this.currentState.transition(this.currentContext,e);if(u){var d=l(u,3),c=d[0],h=d[1],p=d[2];try{for(var f=s(this.currentState.exitEffects),g=f.next();!g.done;g=f.next()){var m=g.value;this.notify({type:"invocationDispatched",invocation:m(this.currentContext)})}}catch(e){t={error:e}}finally{try{g&&!g.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}var y=this.currentState;this.currentState=c;var b=this.currentContext;this.currentContext=h,this.notify({type:"transitionDone",fromState:y,fromContext:b,toState:c,toContext:h,event:e});try{for(var v=s(p),w=v.next();!w.done;w=v.next())m=w.value,this.notify({type:"invocationDispatched",invocation:m})}catch(e){i={error:e}}finally{try{w&&!w.done&&(r=v.return)&&r.call(v)}finally{if(i)throw i.error}}try{for(var C=s(this.currentState.enterEffects),x=C.next();!x.done;x=C.next())m=x.value,this.notify({type:"invocationDispatched",invocation:m(this.currentContext)})}catch(e){o={error:e}}finally{try{x&&!x.done&&(a=C.return)&&a.call(C)}finally{if(o)throw o.error}}}},n}(Je),nt=function(){function e(e){this.dependencies=e,this.instances=new Map,this.handlers=new Map}return e.prototype.on=function(e,t){this.handlers.set(e,t)},e.prototype.dispatch=function(e){if("CANCEL"!==e.type){var t=this.handlers.get(e.type);if(!t)throw new Error("Unhandled invocation '".concat(e.type,"'"));var n=t(e.payload,this.dependencies);e.managed&&this.instances.set(e.type,n),n.start()}else if(this.instances.has(e.payload)){var i=this.instances.get(e.payload);null==i||i.cancel(),this.instances.delete(e.payload)}},e.prototype.dispose=function(){var e,t;try{for(var n=s(this.instances.entries()),i=n.next();!i.done;i=n.next()){var r=l(i.value,2),o=r[0];r[1].cancel(),this.instances.delete(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e}();function it(e,t){var n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return{type:e,payload:null==t?void 0:t.apply(void 0,u([],l(n),!1))}};return n.type=e,n}function rt(e,t){var n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return{type:e,payload:t.apply(void 0,u([],l(n),!1)),managed:!1}};return n.type=e,n}function ot(e,t){var n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return{type:e,payload:t.apply(void 0,u([],l(n),!1)),managed:!0}};return n.type=e,n.cancel={type:"CANCEL",payload:e,managed:!1},n}var at=function(e){function n(){var t=this.constructor,n=e.call(this,"The operation was aborted.")||this;return n.name="AbortError",Object.setPrototypeOf(n,t.prototype),n}return t(n,e),n}(Error),st=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._aborted=!1,t}return t(n,e),Object.defineProperty(n.prototype,"aborted",{get:function(){return this._aborted},enumerable:!1,configurable:!0}),n.prototype.throwIfAborted=function(){if(this._aborted)throw new at},n.prototype.abort=function(){this._aborted=!0,this.notify(new at)},n}(Je),lt=function(e){function n(t,n,i){var r=e.call(this,t,n)||this;return r.asyncFunction=i,r.abortSignal=new st,r}return t(n,e),n.prototype.start=function(){this.asyncFunction(this.payload,this.abortSignal,this.dependencies).catch(function(e){})},n.prototype.cancel=function(){this.abortSignal.abort()},n}(function(e,t){this.payload=e,this.dependencies=t}),ut=function(e){return function(t,n){return new lt(t,n,e)}},dt=ot("HANDSHAKE",function(e,t){return{channels:e,groups:t}}),ct=ot("RECEIVE_MESSAGES",function(e,t,n){return{channels:e,groups:t,cursor:n}}),ht=rt("EMIT_MESSAGES",function(e){return e}),pt=rt("EMIT_STATUS",function(e){return e}),ft=ot("RECEIVE_RECONNECT",function(e){return e}),gt=ot("HANDSHAKE_RECONNECT",function(e){return e}),mt=it("SUBSCRIPTION_CHANGED",function(e,t){return{channels:e,groups:t}}),yt=it("SUBSCRIPTION_RESTORED",function(e,t,n,i){return{channels:e,groups:t,cursor:{timetoken:n,region:null!=i?i:0}}}),bt=it("HANDSHAKE_SUCCESS",function(e){return e}),vt=it("HANDSHAKE_FAILURE",function(e){return e}),wt=it("HANDSHAKE_RECONNECT_SUCCESS",function(e){return{cursor:e}}),Ct=it("HANDSHAKE_RECONNECT_FAILURE",function(e){return e}),xt=it("HANDSHAKE_RECONNECT_GIVEUP",function(e){return e}),$t=it("RECEIVE_SUCCESS",function(e,t){return{cursor:e,events:t}}),St=it("RECEIVE_FAILURE",function(e){return e}),At=it("RECEIVE_RECONNECT_SUCCESS",function(e,t){return{cursor:e,events:t}}),Et=it("RECEIVE_RECONNECT_FAILURE",function(e){return e}),Tt=it("RECEIVING_RECONNECT_GIVEUP",function(e){return e}),kt=it("DISCONNECT",function(){return{}}),_t=it("RECONNECT",function(e,t){return{cursor:{timetoken:null!=e?e:"",region:null!=t?t:0}}}),Ot=it("UNSUBSCRIBE_ALL",function(){return{}}),Pt=function(e){function n(t,n){var r=e.call(this,n)||this;return r.on(dt.type,ut(function(e,n,s){var l=s.handshake,u=s.presenceState,d=s.config;return o(r,void 0,void 0,function(){var r,o;return a(this,function(a){switch(a.label){case 0:n.throwIfAborted(),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,l(i({abortSignal:n,channels:e.channels,channelGroups:e.groups,filterExpression:d.filterExpression},d.maintainPresenceState&&{state:u}))];case 2:return r=a.sent(),[2,t.transition(bt(r))];case 3:return(o=a.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof Q?[2,t.transition(vt(o))]:[3,4];case 4:return[2]}})})})),r.on(ct.type,ut(function(e,n,i){var s=i.receiveMessages,l=i.config;return o(r,void 0,void 0,function(){var i,r;return a(this,function(o){switch(o.label){case 0:n.throwIfAborted(),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,s({abortSignal:n,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region,filterExpression:l.filterExpression})];case 2:return i=o.sent(),t.transition($t(i.metadata,i.messages)),[3,4];case 3:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof Q&&!n.aborted?[2,t.transition(St(r))]:[3,4];case 4:return[2]}})})})),r.on(ht.type,ut(function(e,t,n){var i=n.emitMessages;return o(r,void 0,void 0,function(){return a(this,function(t){return e.length>0&&i(e),[2]})})})),r.on(pt.type,ut(function(e,t,n){var i=n.emitStatus;return o(r,void 0,void 0,function(){return a(this,function(t){return i(e),[2]})})})),r.on(ft.type,ut(function(e,n,i){var s=i.receiveMessages,l=i.delay,u=i.config;return o(r,void 0,void 0,function(){var i,r;return a(this,function(o){switch(o.label){case 0:return u.retryConfiguration&&u.retryConfiguration.shouldRetry(e.reason,e.attempts)?(n.throwIfAborted(),[4,l(u.retryConfiguration.getDelay(e.attempts,e.reason))]):[3,6];case 1:o.sent(),n.throwIfAborted(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,s({abortSignal:n,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region,filterExpression:u.filterExpression})];case 3:return i=o.sent(),[2,t.transition(At(i.metadata,i.messages))];case 4:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof Q?[2,t.transition(Et(r))]:[3,5];case 5:return[3,7];case 6:return[2,t.transition(Tt(new Q(u.retryConfiguration.getGiveupReason(e.reason,e.attempts))))];case 7:return[2]}})})})),r.on(gt.type,ut(function(e,n,s){var l=s.handshake,u=s.delay,d=s.presenceState,c=s.config;return o(r,void 0,void 0,function(){var r,o;return a(this,function(a){switch(a.label){case 0:return c.retryConfiguration&&c.retryConfiguration.shouldRetry(e.reason,e.attempts)?(n.throwIfAborted(),[4,u(c.retryConfiguration.getDelay(e.attempts,e.reason))]):[3,6];case 1:a.sent(),n.throwIfAborted(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l(i({abortSignal:n,channels:e.channels,channelGroups:e.groups,filterExpression:c.filterExpression},c.maintainPresenceState&&{state:d}))];case 3:return r=a.sent(),[2,t.transition(wt(r))];case 4:return(o=a.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof Q?[2,t.transition(Ct(o))]:[3,5];case 5:return[3,7];case 6:return[2,t.transition(xt(new Q(c.retryConfiguration.getGiveupReason(e.reason,e.attempts))))];case 7:return[2]}})})})),r}return t(n,e),n}(nt),It=new et("HANDSHAKE_FAILED");It.on(mt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),It.on(_t.type,function(e,t){return Bt.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor||e.cursor})}),It.on(yt.type,function(e,t){var n,i;return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region?t.payload.cursor.region:null!==(i=null===(n=null==e?void 0:e.cursor)||void 0===n?void 0:n.region)&&void 0!==i?i:0}})}),It.on(Ot.type,function(e){return jt.with()});var Nt=new et("HANDSHAKE_STOPPED");Nt.on(mt.type,function(e,t){return Nt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Nt.on(_t.type,function(e,t){return Bt.with(i(i({},e),{cursor:t.payload.cursor||e.cursor}))}),Nt.on(yt.type,function(e,t){var n;return Nt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||(null===(n=null==e?void 0:e.cursor)||void 0===n?void 0:n.region)||0}})}),Nt.on(Ot.type,function(e){return jt.with()});var Mt=new et("RECEIVE_FAILED");Mt.on(_t.type,function(e,t){var n;return Bt.with({channels:e.channels,groups:e.groups,cursor:{timetoken:t.payload.cursor.timetoken?null===(n=t.payload.cursor)||void 0===n?void 0:n.timetoken:e.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Mt.on(mt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Mt.on(yt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Mt.on(Ot.type,function(e){return jt.with(void 0)});var Dt=new et("RECEIVE_STOPPED");Dt.on(mt.type,function(e,t){return Dt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Dt.on(yt.type,function(e,t){return Dt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Dt.on(_t.type,function(e,t){var n;return Bt.with({channels:e.channels,groups:e.groups,cursor:{timetoken:t.payload.cursor.timetoken?null===(n=t.payload.cursor)||void 0===n?void 0:n.timetoken:e.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Dt.on(Ot.type,function(){return jt.with(void 0)});var Lt=new et("RECEIVE_RECONNECTING");Lt.onEnter(function(e){return ft(e)}),Lt.onExit(function(){return ft.cancel}),Lt.on(At.type,function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[ht(t.payload.events)])}),Lt.on(Et.type,function(e,t){return Lt.with(i(i({},e),{attempts:e.attempts+1,reason:t.payload}))}),Lt.on(Tt.type,function(e,t){var n;return Mt.with({groups:e.groups,channels:e.channels,cursor:e.cursor,reason:t.payload},[pt({category:P.PNDisconnectedUnexpectedlyCategory,error:null===(n=t.payload)||void 0===n?void 0:n.message})])}),Lt.on(kt.type,function(e){return Dt.with({channels:e.channels,groups:e.groups,cursor:e.cursor},[pt({category:P.PNDisconnectedCategory})])}),Lt.on(yt.type,function(e,t){return Ut.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Lt.on(mt.type,function(e,t){return Ut.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Lt.on(Ot.type,function(e){return jt.with(void 0,[pt({category:P.PNDisconnectedCategory})])});var Ut=new et("RECEIVING");Ut.onEnter(function(e){return ct(e.channels,e.groups,e.cursor)}),Ut.onExit(function(){return ct.cancel}),Ut.on($t.type,function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[ht(t.payload.events)])}),Ut.on(mt.type,function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?jt.with(void 0):Ut.with({cursor:e.cursor,channels:t.payload.channels,groups:t.payload.groups})}),Ut.on(yt.type,function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?jt.with(void 0):Ut.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Ut.on(St.type,function(e,t){return Lt.with(i(i({},e),{attempts:0,reason:t.payload}))}),Ut.on(kt.type,function(e){return Dt.with({channels:e.channels,groups:e.groups,cursor:e.cursor},[pt({category:P.PNDisconnectedCategory})])}),Ut.on(Ot.type,function(e){return jt.with(void 0,[pt({category:P.PNDisconnectedCategory})])});var Rt=new et("HANDSHAKE_RECONNECTING");Rt.onEnter(function(e){return gt(e)}),Rt.onExit(function(){return gt.cancel}),Rt.on(wt.type,function(e,t){var n,i,r={timetoken:(null===(n=e.cursor)||void 0===n?void 0:n.timetoken)?null===(i=e.cursor)||void 0===i?void 0:i.timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region};return Ut.with({channels:e.channels,groups:e.groups,cursor:r},[pt({category:P.PNConnectedCategory})])}),Rt.on(Ct.type,function(e,t){return Rt.with(i(i({},e),{attempts:e.attempts+1,reason:t.payload}))}),Rt.on(xt.type,function(e,t){var n;return It.with({groups:e.groups,channels:e.channels,cursor:e.cursor,reason:t.payload},[pt({category:P.PNConnectionErrorCategory,error:null===(n=t.payload)||void 0===n?void 0:n.message})])}),Rt.on(kt.type,function(e){return Nt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}),Rt.on(mt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Rt.on(yt.type,function(e,t){var n,i;return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:(null===(n=t.payload.cursor)||void 0===n?void 0:n.region)||(null===(i=null==e?void 0:e.cursor)||void 0===i?void 0:i.region)||0}})}),Rt.on(Ot.type,function(e){return jt.with(void 0)});var Bt=new et("HANDSHAKING");Bt.onEnter(function(e){return dt(e.channels,e.groups)}),Bt.onExit(function(){return dt.cancel}),Bt.on(mt.type,function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?jt.with(void 0):Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Bt.on(bt.type,function(e,t){var n,i;return Ut.with({channels:e.channels,groups:e.groups,cursor:{timetoken:(null===(n=null==e?void 0:e.cursor)||void 0===n?void 0:n.timetoken)?null===(i=null==e?void 0:e.cursor)||void 0===i?void 0:i.timetoken:t.payload.timetoken,region:t.payload.region}},[pt({category:P.PNConnectedCategory})])}),Bt.on(vt.type,function(e,t){return Rt.with({channels:e.channels,groups:e.groups,cursor:e.cursor,attempts:0,reason:t.payload})}),Bt.on(kt.type,function(e){return Nt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}),Bt.on(yt.type,function(e,t){var n;return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||(null===(n=null==e?void 0:e.cursor)||void 0===n?void 0:n.region)||0}})}),Bt.on(Ot.type,function(e){return jt.with()});var jt=new et("UNSUBSCRIBED");jt.on(mt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups})}),jt.on(yt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:t.payload.cursor})});var Ft=function(){function e(e){var t=this;this.engine=new tt,this.channels=[],this.groups=[],this.dependencies=e,this.dispatcher=new Pt(this.engine,e),this._unsubscribeEngine=this.engine.subscribe(function(e){"invocationDispatched"===e.type&&t.dispatcher.dispatch(e.invocation)}),this.engine.start(jt,void 0)}return Object.defineProperty(e.prototype,"_engine",{get:function(){return this.engine},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e){var t=this,n=e.channels,i=e.channelGroups,r=e.timetoken,o=e.withPresence;this.channels=u(u([],l(this.channels),!1),l(null!=n?n:[]),!1),this.groups=u(u([],l(this.groups),!1),l(null!=i?i:[]),!1),o&&(this.channels.map(function(e){return t.channels.push("".concat(e,"-pnpres"))}),this.groups.map(function(e){return t.groups.push("".concat(e,"-pnpres"))})),r?this.engine.transition(yt(Array.from(new Set(u(u([],l(this.channels),!1),l(null!=n?n:[]),!1))),Array.from(new Set(u(u([],l(this.groups),!1),l(null!=i?i:[]),!1))),r)):this.engine.transition(mt(Array.from(new Set(u(u([],l(this.channels),!1),l(null!=n?n:[]),!1))),Array.from(new Set(u(u([],l(this.groups),!1),l(null!=i?i:[]),!1))))),this.dependencies.join&&this.dependencies.join({channels:Array.from(new Set(this.channels.filter(function(e){return!e.endsWith("-pnpres")}))),groups:Array.from(new Set(this.groups.filter(function(e){return!e.endsWith("-pnpres")})))})},e.prototype.unsubscribe=function(e){var t=this,n=e.channels,i=void 0===n?[]:n,r=e.channelGroups,o=void 0===r?[]:r,a=z.removeSingleOccurance(this.channels,u(u([],l(i),!1),l(i.map(function(e){return"".concat(e,"-pnpres")})),!1)),s=z.removeSingleOccurance(this.groups,u(u([],l(o),!1),l(o.map(function(e){return"".concat(e,"-pnpres")})),!1));if(new Set(this.channels).size!==new Set(a).size||new Set(this.groups).size!==new Set(s).size){var d=z.findUniqueCommonElements(this.channels,i),c=z.findUniqueCommonElements(this.groups,o);this.dependencies.presenceState&&(null==d||d.forEach(function(e){return delete t.dependencies.presenceState[e]}),null==c||c.forEach(function(e){return delete t.dependencies.presenceState[e]})),this.channels=a,this.groups=s,this.engine.transition(mt(Array.from(new Set(this.channels.slice(0))),Array.from(new Set(this.groups.slice(0))))),this.dependencies.leave&&this.dependencies.leave({channels:d.slice(0),groups:c.slice(0)})}},e.prototype.unsubscribeAll=function(){this.channels=[],this.groups=[],this.dependencies.presenceState&&(this.dependencies.presenceState={}),this.engine.transition(mt(this.channels.slice(0),this.groups.slice(0))),this.dependencies.leaveAll&&this.dependencies.leaveAll()},e.prototype.reconnect=function(e){var t=e.timetoken,n=e.region;this.engine.transition(_t(t,n))},e.prototype.disconnect=function(){this.engine.transition(kt()),this.dependencies.leaveAll&&this.dependencies.leaveAll()},e.prototype.getSubscribedChannels=function(){return Array.from(new Set(this.channels))},e.prototype.getSubscribedChannelGroups=function(){return Array.from(new Set(this.groups))},e.prototype.dispose=function(){this.disconnect(),this._unsubscribeEngine(),this.dispatcher.dispose()},e}(),Ht=it("RECONNECT",function(){return{}}),Gt=it("DISCONNECT",function(){return{}}),zt=it("JOINED",function(e,t){return{channels:e,groups:t}}),Qt=it("LEFT",function(e,t){return{channels:e,groups:t}}),Wt=it("LEFT_ALL",function(){return{}}),qt=it("HEARTBEAT_SUCCESS",function(e){return{statusCode:e}}),Vt=it("HEARTBEAT_FAILURE",function(e){return e}),Yt=it("HEARTBEAT_GIVEUP",function(){return{}}),Kt=it("TIMES_UP",function(){return{}}),Xt=rt("HEARTBEAT",function(e,t){return{channels:e,groups:t}}),Zt=rt("LEAVE",function(e,t){return{channels:e,groups:t}}),Jt=rt("EMIT_STATUS",function(e){return e}),en=ot("WAIT",function(){return{}}),tn=ot("DELAYED_HEARTBEAT",function(e){return e}),nn=function(e){function n(t,n){var r=e.call(this,n)||this;return r.on(Xt.type,ut(function(e,n,s){var l=s.heartbeat,u=s.presenceState,d=s.config;return o(r,void 0,void 0,function(){var n;return a(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,l(i({channels:e.channels,channelGroups:e.groups},d.maintainPresenceState&&{state:u}))];case 1:return r.sent(),t.transition(qt(200)),[3,3];case 2:return(n=r.sent())instanceof Q?[2,t.transition(Vt(n))]:[3,3];case 3:return[2]}})})})),r.on(Zt.type,ut(function(e,t,n){var i=n.leave,s=n.config;return o(r,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:if(s.suppressLeaveEvents)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,i({channels:e.channels,channelGroups:e.groups})];case 2:case 3:return t.sent(),[3,4];case 4:return[2]}})})})),r.on(en.type,ut(function(e,n,i){var s=i.heartbeatDelay;return o(r,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return n.throwIfAborted(),[4,s()];case 1:return e.sent(),n.throwIfAborted(),[2,t.transition(Kt())]}})})})),r.on(tn.type,ut(function(e,n,s){var l=s.heartbeat,u=s.retryDelay,d=s.presenceState,c=s.config;return o(r,void 0,void 0,function(){var r;return a(this,function(o){switch(o.label){case 0:return c.retryConfiguration&&c.retryConfiguration.shouldRetry(e.reason,e.attempts)?(n.throwIfAborted(),[4,u(c.retryConfiguration.getDelay(e.attempts,e.reason))]):[3,6];case 1:o.sent(),n.throwIfAborted(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,l(i({channels:e.channels,channelGroups:e.groups},c.maintainPresenceState&&{state:d}))];case 3:return o.sent(),[2,t.transition(qt(200))];case 4:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof Q?[2,t.transition(Vt(r))]:[3,5];case 5:return[3,7];case 6:return[2,t.transition(Yt())];case 7:return[2]}})})})),r.on(Jt.type,ut(function(e,t,n){var s=n.emitStatus,l=n.config;return o(r,void 0,void 0,function(){var t;return a(this,function(n){return l.announceFailedHeartbeats&&!0===(null===(t=null==e?void 0:e.status)||void 0===t?void 0:t.error)?s(e.status):l.announceSuccessfulHeartbeats&&200===e.statusCode&&s(i(i({},e),{operation:N.PNHeartbeatOperation,error:!1})),[2]})})})),r}return t(n,e),n}(nt),rn=new et("HEARTBEAT_STOPPED");rn.on(zt.type,function(e,t){return rn.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),rn.on(Qt.type,function(e,t){return rn.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})})}),rn.on(Ht.type,function(e,t){return ln.with({channels:e.channels,groups:e.groups})}),rn.on(Wt.type,function(e,t){return un.with(void 0)});var on=new et("HEARTBEAT_COOLDOWN");on.onEnter(function(){return en()}),on.onExit(function(){return en.cancel}),on.on(Kt.type,function(e,t){return ln.with({channels:e.channels,groups:e.groups})}),on.on(zt.type,function(e,t){return ln.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),on.on(Qt.type,function(e,t){return ln.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})},[Zt(t.payload.channels,t.payload.groups)])}),on.on(Gt.type,function(e){return rn.with({channels:e.channels,groups:e.groups},[Zt(e.channels,e.groups)])}),on.on(Wt.type,function(e,t){return un.with(void 0,[Zt(e.channels,e.groups)])});var an=new et("HEARTBEAT_FAILED");an.on(zt.type,function(e,t){return ln.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),an.on(Qt.type,function(e,t){return ln.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})},[Zt(t.payload.channels,t.payload.groups)])}),an.on(Ht.type,function(e,t){return ln.with({channels:e.channels,groups:e.groups})}),an.on(Gt.type,function(e,t){return rn.with({channels:e.channels,groups:e.groups},[Zt(e.channels,e.groups)])}),an.on(Wt.type,function(e,t){return un.with(void 0,[Zt(e.channels,e.groups)])});var sn=new et("HEARBEAT_RECONNECTING");sn.onEnter(function(e){return tn(e)}),sn.onExit(function(){return tn.cancel}),sn.on(zt.type,function(e,t){return ln.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),sn.on(Qt.type,function(e,t){return ln.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})},[Zt(t.payload.channels,t.payload.groups)])}),sn.on(Gt.type,function(e,t){rn.with({channels:e.channels,groups:e.groups},[Zt(e.channels,e.groups)])}),sn.on(qt.type,function(e,t){return on.with({channels:e.channels,groups:e.groups})}),sn.on(Vt.type,function(e,t){return sn.with(i(i({},e),{attempts:e.attempts+1,reason:t.payload}))}),sn.on(Yt.type,function(e,t){return an.with({channels:e.channels,groups:e.groups})}),sn.on(Wt.type,function(e,t){return un.with(void 0,[Zt(e.channels,e.groups)])});var ln=new et("HEARTBEATING");ln.onEnter(function(e){return Xt(e.channels,e.groups)}),ln.on(qt.type,function(e,t){return on.with({channels:e.channels,groups:e.groups})}),ln.on(zt.type,function(e,t){return ln.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),ln.on(Qt.type,function(e,t){return ln.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})},[Zt(t.payload.channels,t.payload.groups)])}),ln.on(Vt.type,function(e,t){return sn.with(i(i({},e),{attempts:0,reason:t.payload}))}),ln.on(Gt.type,function(e){return rn.with({channels:e.channels,groups:e.groups},[Zt(e.channels,e.groups)])}),ln.on(Wt.type,function(e,t){return un.with(void 0,[Zt(e.channels,e.groups)])});var un=new et("HEARTBEAT_INACTIVE");un.on(zt.type,function(e,t){return ln.with({channels:t.payload.channels,groups:t.payload.groups})});var dn=function(){function e(e){var t=this;this.engine=new tt,this.channels=[],this.groups=[],this.dispatcher=new nn(this.engine,e),this.dependencies=e,this._unsubscribeEngine=this.engine.subscribe(function(e){"invocationDispatched"===e.type&&t.dispatcher.dispatch(e.invocation)}),this.engine.start(un,void 0)}return Object.defineProperty(e.prototype,"_engine",{get:function(){return this.engine},enumerable:!1,configurable:!0}),e.prototype.join=function(e){var t=e.channels,n=e.groups;this.channels=u(u([],l(this.channels),!1),l(null!=t?t:[]),!1),this.groups=u(u([],l(this.groups),!1),l(null!=n?n:[]),!1),this.engine.transition(zt(this.channels.slice(0),this.groups.slice(0)))},e.prototype.leave=function(e){var t=this,n=e.channels,i=e.groups;this.dependencies.presenceState&&(null==n||n.forEach(function(e){return delete t.dependencies.presenceState[e]}),null==i||i.forEach(function(e){return delete t.dependencies.presenceState[e]})),this.engine.transition(Qt(null!=n?n:[],null!=i?i:[]))},e.prototype.leaveAll=function(){this.engine.transition(Wt())},e.prototype.dispose=function(){this._unsubscribeEngine(),this.dispatcher.dispose()},e}(),cn=function(){function e(){}return e.LinearRetryPolicy=function(e){return{delay:e.delay,maximumRetry:e.maximumRetry,shouldRetry:function(e,t){var n;return 403!==(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.statusCode)&&this.maximumRetry>t},getDelay:function(e,t){var n;return 1e3*((null!==(n=t.retryAfter)&&void 0!==n?n:this.delay)+Math.random())},getGiveupReason:function(e,t){var n;return this.maximumRetry<=t?"retry attempts exhaused.":403===(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.statusCode)?"forbidden operation.":"unknown error"}}},e.ExponentialRetryPolicy=function(e){return{minimumDelay:e.minimumDelay,maximumDelay:e.maximumDelay,maximumRetry:e.maximumRetry,shouldRetry:function(e,t){var n;return 403!==(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.statusCode)&&this.maximumRetry>t},getDelay:function(e,t){var n;return 1e3*((null!==(n=t.retryAfter)&&void 0!==n?n:Math.min(Math.pow(2,e),this.maximumDelay))+Math.random())},getGiveupReason:function(e,t){var n;return this.maximumRetry<=t?"retry attempts exhaused.":403===(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.statusCode)?"forbidden operation.":"unknown error"}}},e}(),hn=function(){function e(e){var t=e.modules,n=e.listenerManager,i=e.getFileUrl;this.modules=t,this.listenerManager=n,this.getFileUrl=i,this._channelListenerMap=new Map,this._groupListenerMap=new Map,t.cryptoModule&&(this._decoder=new TextDecoder)}return e.prototype.emitEvent=function(e){var t=e.channel,n=e.publishMetaData,o=e.subscriptionMatch;if(t===o&&(o=null),e.channel.endsWith("-pnpres")){var a={channel:null,subscription:null};t&&(a.channel=t.substring(0,t.lastIndexOf("-pnpres"))),o&&(a.subscription=o.substring(0,o.lastIndexOf("-pnpres"))),a.action=e.payload.action,a.state=e.payload.data,a.timetoken=n.timetoken,a.occupancy=e.payload.occupancy,a.uuid=e.payload.uuid,a.timestamp=e.payload.timestamp,e.payload.join&&(a.join=e.payload.join),e.payload.leave&&(a.leave=e.payload.leave),e.payload.timeout&&(a.timeout=e.payload.timeout),a.actualChannel=null!=o?t:null,a.subscribedChannel=null!=o?o:t,this.listenerManager.announcePresence(a),this._announce("presence",a,a.channel,a.subscription)}else if(1===e.messageType)(a={channel:null,subscription:null}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId,e.userMetadata&&(a.userMetadata=e.userMetadata),a.message=e.payload,this.listenerManager.announceSignal(a),this._announce("signal",a,a.channel,a.subscription);else if(2===e.messageType){if((a={channel:null,subscription:null}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId,e.userMetadata&&(a.userMetadata=e.userMetadata),a.message={event:e.payload.event,type:e.payload.type,data:e.payload.data},this.listenerManager.announceObjects(a),this._announce("objects",a,a.channel,a.subscription),"uuid"===e.payload.type){var s=this._renameChannelField(a),l=i(i({},s),{message:i(i({},s.message),{event:this._renameEvent(s.message.event),type:"user"})});this.listenerManager.announceUser(l),this._announce("user",l,a.channel,a.subscription)}else if("channel"===e.payload.type){s=this._renameChannelField(a);var u=i(i({},s),{message:i(i({},s.message),{event:this._renameEvent(s.message.event),type:"space"})});this.listenerManager.announceSpace(u),this._announce("space",u,a.channel,a.subscription)}else if("membership"===e.payload.type){var d=(s=this._renameChannelField(a)).message.data,c=d.uuid,h=d.channel,p=r(d,["uuid","channel"]);p.user=c,p.space=h;var f=i(i({},s),{message:i(i({},s.message),{event:this._renameEvent(s.message.event),data:p})});this.listenerManager.announceMembership(f),this._announce("membership",f,a.channel,a.subscription)}}else if(3===e.messageType)(a={}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId,a.data={messageTimetoken:e.payload.data.messageTimetoken,actionTimetoken:e.payload.data.actionTimetoken,type:e.payload.data.type,uuid:e.issuingClientId,value:e.payload.data.value},a.event=e.payload.event,this.listenerManager.announceMessageAction(a),this._announce("messageAction",a,a.channel,a.subscription);else if(4===e.messageType){(a={}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId;var g=e.payload;if(this.modules.cryptoModule){var m=void 0;try{m=(y=this.modules.cryptoModule.decrypt(e.payload))instanceof ArrayBuffer?JSON.parse(this._decoder.decode(y)):y}catch(e){m=null,a.error="Error while decrypting message content: ".concat(e.message)}null!==m&&(g=m)}e.userMetadata&&(a.userMetadata=e.userMetadata),a.message=g.message,a.file={id:g.file.id,name:g.file.name,url:this.getFileUrl({id:g.file.id,name:g.file.name,channel:t})},this.listenerManager.announceFile(a),this._announce("file",a,a.channel,a.subscription)}else{if((a={channel:null,subscription:null}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId,e.userMetadata&&(a.userMetadata=e.userMetadata),this.modules.cryptoModule){m=void 0;try{var y;m=(y=this.modules.cryptoModule.decrypt(e.payload))instanceof ArrayBuffer?JSON.parse(this._decoder.decode(y)):y}catch(e){m=null,a.error="Error while decrypting message content: ".concat(e.message)}a.message=null!=m?m:e.payload}else a.message=e.payload;a.actualChannel=null!=o?t:null,a.subscribedChannel=null!=o?o:t,this.listenerManager.announceMessage(a),this._announce("message",a,a.channel,a.subscription)}},e.prototype.addListener=function(e,t,n){var i=this;t&&n?(null==t||t.forEach(function(t){i._channelListenerMap[t]?i._channelListenerMap[t].includes(e)||i._channelListenerMap[t].push(e):i._channelListenerMap[t]=[e]}),null==n||n.forEach(function(t){i._groupListenerMap[t]?i._groupListenerMap[t].includes(e)||i._groupListenerMap[t].push(e):i._groupListenerMap[t]=[e]})):this.listenerManager.addListener(e)},e.prototype.removeListener=function(e,t,n){var i=this;t&&n?(null==t||t.forEach(function(t){var n;i._channelListenerMap[t]=null===(n=i._channelListenerMap[t])||void 0===n?void 0:n.filter(function(t){return t!==e})}),null==n||n.forEach(function(t){var n;i._groupListenerMap[t]=null===(n=i._groupListenerMap[t])||void 0===n?void 0:n.filter(function(t){return t!==e})})):this.listenerManager.removeListener(e)},e.prototype.removeAllListeners=function(){this.listenerManager.removeAllListeners()},e.prototype._renameEvent=function(e){return"set"===e?"updated":"removed"},e.prototype._renameChannelField=function(e){var t=e.channel,n=r(e,["channel"]);return n.spaceId=t,n},e.prototype._announce=function(e,t,n,i){var r,o;null===(r=this._channelListenerMap[n])||void 0===r||r.forEach(function(n){return n[e]&&n[e](t)}),null===(o=this._groupListenerMap[i])||void 0===o||o.forEach(function(n){return n[e]&&n[e](t)})},e}(),pn=function(){function e(){}return e.prototype.subscribe=function(){var e,t;this.pubnub.subscribe(i({channels:this.channelNames,channelGroups:this.groupNames},(null===(t=null===(e=this.options)||void 0===e?void 0:e.cursor)||void 0===t?void 0:t.timetoken)&&{timetoken:this.options.cursor.timetoken}))},e.prototype.unsubscribe=function(){this.pubnub.unsubscribe({channels:this.channelNames.filter(function(e){return!e.endsWith("-pnpres")}),channelGroups:this.groupNames.filter(function(e){return!e.endsWith("-pnpres")})})},Object.defineProperty(e.prototype,"onMessage",{set:function(e){this.listener.message=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onPresence",{set:function(e){this.listener.presence=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSignal",{set:function(e){this.listener.signal=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onObjects",{set:function(e){this.listener.objects=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMessageAction",{set:function(e){this.listener.messageAction=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onFile",{set:function(e){this.listener.file=e},enumerable:!1,configurable:!0}),e.prototype.addListener=function(e){this.eventEmitter.addListener(e,this.channelNames.filter(function(e){return!e.endsWith("-pnpres")}),this.groupNames.filter(function(e){return!e.endsWith("-pnpres")}))},e.prototype.removeListener=function(e){this.eventEmitter.removeListener(e,this.channelNames,this.groupNames)},Object.defineProperty(e.prototype,"channels",{get:function(){return this.channelNames.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"channelGroups",{get:function(){return this.groupNames.slice(0)},enumerable:!1,configurable:!0}),e}(),fn=function(e){function n(t){var n=t.channels,i=void 0===n?[]:n,r=t.channelGroups,o=void 0===r?[]:r,a=t.subscriptionOptions,s=t.eventEmitter,d=t.pubnub,c=e.call(this)||this;return c.channelNames=[],c.groupNames=[],c.subscriptionList=[],c.options=a,c.eventEmitter=s,c.pubnub=d,i.filter(function(e){return!e.endsWith("-pnpres")}).forEach(function(e){var t=c.pubnub.channel(e).subscription(c.options);c.channelNames=u(u([],l(c.channelNames),!1),l(t.channels),!1),c.subscriptionList.push(t)}),o.filter(function(e){return!e.endsWith("-pnpres")}).forEach(function(e){var t=c.pubnub.channelGroup(e).subscription(c.options);c.groupNames=u(u([],l(c.groupNames),!1),l(t.channelGroups),!1),c.subscriptionList.push(t)}),c.listener={},s.addListener(c.listener,c.channelNames.filter(function(e){return!e.endsWith("-pnpres")}),c.groupNames.filter(function(e){return!e.endsWith("-pnpres")})),c}return t(n,e),n.prototype.addSubscription=function(e){this.subscriptionList.push(e),this.channelNames=u(u([],l(this.channelNames),!1),l(e.channels),!1),this.groupNames=u(u([],l(this.groupNames),!1),l(e.channelGroups),!1),this.eventEmitter.addListener(this.listener,e.channels,e.channelGroups)},n.prototype.removeSubscription=function(e){var t=e.channels,n=e.channelGroups;this.channelNames=this.channelNames.filter(function(e){return!t.includes(e)}),this.groupNames=this.groupNames.filter(function(e){return!n.includes(e)}),this.subscriptionList=this.subscriptionList.filter(function(t){return t!==e}),this.eventEmitter.removeListener(this.listener,t,n)},n.prototype.addSubscriptionSet=function(e){this.subscriptionList=u(u([],l(this.subscriptionList),!1),l(e.subscriptions),!1),this.channelNames=u(u([],l(this.channelNames),!1),l(e.channels),!1),this.groupNames=u(u([],l(this.groupNames),!1),l(e.channelGroups),!1),this.eventEmitter.addListener(this.listener,e.channels,e.channelGroups)},n.prototype.removeSubscriptionSet=function(e){var t=e.channels,n=e.channelGroups;this.channelNames=this.channelNames.filter(function(e){return!t.includes(e)}),this.groupNames=this.groupNames.filter(function(e){return!n.includes(e)}),this.subscriptionList=this.subscriptionList.filter(function(t){return!e.subscriptions.includes(t)}),this.eventEmitter.removeListener(this.listener,t,n)},Object.defineProperty(n.prototype,"subscriptions",{get:function(){return this.subscriptionList.slice(0)},enumerable:!1,configurable:!0}),n}(pn),gn=function(e){function n(t){var n=t.channels,i=t.channelGroups,r=t.subscriptionOptions,o=t.eventEmitter,a=t.pubnub,s=e.call(this)||this;return s.channelNames=[],s.groupNames=[],s.channelNames=n,s.groupNames=i,s.options=r,s.pubnub=a,s.eventEmitter=o,s.listener={},o.addListener(s.listener,s.channelNames.filter(function(e){return!e.endsWith("-pnpres")}),s.groupNames.filter(function(e){return!e.endsWith("-pnpres")})),s}return t(n,e),n.prototype.addSubscription=function(e){return new fn({channels:u(u([],l(this.channelNames),!1),l(e.channels),!1),channelGroups:u(u([],l(this.groupNames),!1),l(e.channelGroups),!1),subscriptionOptions:i(i({},this.options),null==e?void 0:e.options),eventEmitter:this.eventEmitter,pubnub:this.pubnub})},n}(pn),mn=function(){function e(e,t,n){this.name=e,this.eventEmitter=t,this.pubnub=n}return e.prototype.subscription=function(e){return new gn({channels:(null==e?void 0:e.receivePresenceEvents)?[this.name,"".concat(this.name,"-pnpres")]:[this.name],channelGroups:[],subscriptionOptions:e,eventEmitter:this.eventEmitter,pubnub:this.pubnub})},e}(),yn=function(){function e(e,t,n){this.name=e,this.eventEmitter=t,this.pubnub=n}return e.prototype.subscription=function(e){return new gn({channels:[],channelGroups:(null==e?void 0:e.receivePresenceEvents)?[this.name,"".concat(this.name,"-pnpres")]:[this.name],subscriptionOptions:e,eventEmitter:this.eventEmitter,pubnub:this.pubnub})},e}(),bn=function(){function e(e,t,n){this.id=e,this.eventEmitter=t,this.pubnub=n}return e.prototype.subscription=function(e){return new gn({channels:[this.id],channelGroups:[],subscriptionOptions:e,eventEmitter:this.eventEmitter,pubnub:this.pubnub})},e}(),vn=function(){function e(e,t,n){this.id=e,this.eventEmitter=t,this.pubnub=n}return e.prototype.subscription=function(e){return new gn({channels:[this.id],channelGroups:[],subscriptionOptions:e,eventEmitter:this.eventEmitter,pubnub:this.pubnub})},e}(),wn=function(){function e(e){var t=this,n=e.networking,r=e.cbor,o=new y({setup:e});this._config=o;var a=new k({config:o}),d=e.cryptography;n.init(o);var c=new F(o,r);this._tokenManager=c;var h=new M({maximumSamplesCount:6e4});this._telemetryManager=h;var p=this._config.cryptoModule,f={config:o,networking:n,crypto:a,cryptography:d,tokenManager:c,telemetryManager:h,PubNubFile:e.PubNubFile,cryptoModule:p};this.File=e.PubNubFile,this.encryptFile=function(e,t){return 1==arguments.length&&"string"!=typeof e&&f.cryptoModule?(t=e,f.cryptoModule.encryptFile(t,this.File)):d.encryptFile(e,t,this.File)},this.decryptFile=function(e,t){return 1==arguments.length&&"string"!=typeof e&&f.cryptoModule?(t=e,f.cryptoModule.decryptFile(t,this.File)):d.decryptFile(e,t,this.File)};var g=X.bind(this,f,Ye),m=X.bind(this,f,se),b=X.bind(this,f,ue),w=X.bind(this,f,ce),C=X.bind(this,f,Ke),x=new j;if(this._listenerManager=x,this.iAmHere=X.bind(this,f,ue),this.iAmAway=X.bind(this,f,se),this.setPresenceState=X.bind(this,f,ce),this.handshake=X.bind(this,f,Xe),this.receiveMessages=X.bind(this,f,Ze),this._eventEmitter=new hn({modules:f,listenerManager:this._listenerManager,getFileUrl:function(e){return we(f,e)}}),!0===o.enableEventEngine){if(o.maintainPresenceState&&(this.presenceState={},this.setState=function(e){var n,i;return null===(n=e.channels)||void 0===n||n.forEach(function(n){return t.presenceState[n]=e.state}),null===(i=e.channelGroups)||void 0===i||i.forEach(function(n){return t.presenceState[n]=e.state}),t.setPresenceState({channels:e.channels,channelGroups:e.channelGroups,state:t.presenceState})}),o.getHeartbeatInterval()){var $=new dn({heartbeat:this.iAmHere,leave:this.iAmAway,heartbeatDelay:function(){return new Promise(function(e){return setTimeout(e,1e3*f.config.getHeartbeatInterval())})},retryDelay:function(e){return new Promise(function(t){return setTimeout(t,e)})},config:f.config,presenceState:this.presenceState,emitStatus:function(e){x.announceStatus(e)}});this.presenceEventEngine=$,this.join=this.presenceEventEngine.join.bind($),this.leave=this.presenceEventEngine.leave.bind($),this.leaveAll=this.presenceEventEngine.leaveAll.bind($)}var S=new Ft({handshake:this.handshake,receiveMessages:this.receiveMessages,delay:function(e){return new Promise(function(t){return setTimeout(t,e)})},join:this.join,leave:this.leave,leaveAll:this.leaveAll,presenceState:this.presenceState,config:f.config,emitMessages:function(e){var n,i;try{for(var r=s(e),o=r.next();!o.done;o=r.next()){var a=o.value;t._eventEmitter.emitEvent(a)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},emitStatus:function(e){x.announceStatus(e)}});this.subscribe=S.subscribe.bind(S),this.unsubscribe=S.unsubscribe.bind(S),this.unsubscribeAll=S.unsubscribeAll.bind(S),this.reconnect=S.reconnect.bind(S),this.disconnect=S.disconnect.bind(S),this.destroy=S.dispose.bind(S),this.getSubscribedChannels=S.getSubscribedChannels.bind(S),this.getSubscribedChannelGroups=S.getSubscribedChannelGroups.bind(S),this.eventEngine=S}else{var A=new I({timeEndpoint:g,leaveEndpoint:m,heartbeatEndpoint:b,setStateEndpoint:w,subscribeEndpoint:C,crypto:f.crypto,config:f.config,listenerManager:x,getFileUrl:function(e){return we(f,e)},cryptoModule:f.cryptoModule,eventEmitter:this._eventEmitter});this.subscribe=A.adaptSubscribeChange.bind(A),this.unsubscribe=A.adaptUnsubscribeChange.bind(A),this.disconnect=A.disconnect.bind(A),this.reconnect=A.reconnect.bind(A),this.unsubscribeAll=A.unsubscribeAll.bind(A),this.getSubscribedChannels=A.getSubscribedChannels.bind(A),this.getSubscribedChannelGroups=A.getSubscribedChannelGroups.bind(A),this.setState=A.adaptStateChange.bind(A),this.presence=A.adaptPresenceChange.bind(A),this.destroy=function(e){A.unsubscribeAll(e),A.disconnect()}}this.addListener=this._eventEmitter.addListener.bind(this._eventEmitter),this.removeListener=this._eventEmitter.removeListener.bind(this._eventEmitter),this.removeAllListeners=this._eventEmitter.removeAllListeners.bind(this._eventEmitter),this.parseToken=c.parseToken.bind(c),this.setToken=c.setToken.bind(c),this.getToken=c.getToken.bind(c),this.channelGroups={listGroups:X.bind(this,f,te),listChannels:X.bind(this,f,ne),addChannels:X.bind(this,f,Z),removeChannels:X.bind(this,f,J),deleteGroup:X.bind(this,f,ee)},this.push={addChannels:X.bind(this,f,ie),removeChannels:X.bind(this,f,re),deleteDevice:X.bind(this,f,ae),listChannels:X.bind(this,f,oe)},this.hereNow=X.bind(this,f,he),this.whereNow=X.bind(this,f,le),this.getState=X.bind(this,f,de),this.grant=X.bind(this,f,Le),this.grantToken=X.bind(this,f,je),this.audit=X.bind(this,f,De),this.revokeToken=X.bind(this,f,Fe),this.publish=X.bind(this,f,Ge),this.fire=function(e,n){return e.replicate=!1,e.storeInHistory=!1,t.publish(e,n)},this.signal=X.bind(this,f,ze),this.history=X.bind(this,f,Qe),this.deleteMessages=X.bind(this,f,We),this.messageCounts=X.bind(this,f,qe),this.fetchMessages=X.bind(this,f,Ve),this.addMessageAction=X.bind(this,f,pe),this.removeMessageAction=X.bind(this,f,fe),this.getMessageActions=X.bind(this,f,ge),this.listFiles=X.bind(this,f,me);var E=X.bind(this,f,ye);this.publishFile=X.bind(this,f,be),this.sendFile=ve({generateUploadUrl:E,publishFile:this.publishFile,modules:f}),this.getFileUrl=function(e){return we(f,e)},this.downloadFile=X.bind(this,f,Ce),this.deleteFile=X.bind(this,f,xe),this.channel=function(e){return new mn(e,t._eventEmitter,t)},this.channelGroup=function(e){return new yn(e,t._eventEmitter,t)},this.channelMetadata=function(e){return new bn(e,t._eventEmitter,t)},this.userMetadata=function(e){return new vn(e,t._eventEmitter,t)},this.subscriptionSet=function(e){return new fn({channels:e.channels,channelGroups:e.channelGroups,subscriptionOptions:e.subscriptionOptions,eventEmitter:t._eventEmitter,pubnub:t})},this.objects={getAllUUIDMetadata:X.bind(this,f,$e),getUUIDMetadata:X.bind(this,f,Se),setUUIDMetadata:X.bind(this,f,Ae),removeUUIDMetadata:X.bind(this,f,Ee),getAllChannelMetadata:X.bind(this,f,Te),getChannelMetadata:X.bind(this,f,ke),setChannelMetadata:X.bind(this,f,_e),removeChannelMetadata:X.bind(this,f,Oe),getChannelMembers:X.bind(this,f,Pe),setChannelMembers:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return X.call.apply(X,u([t,f,Ie,i({type:"set"},e)],l(n),!1))},removeChannelMembers:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return X.call.apply(X,u([t,f,Ie,i({type:"delete"},e)],l(n),!1))},getMemberships:X.bind(this,f,Ne),setMemberships:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return X.call.apply(X,u([t,f,Me,i({type:"set"},e)],l(n),!1))},removeMemberships:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return X.call.apply(X,u([t,f,Me,i({type:"delete"},e)],l(n),!1))}},this.createUser=function(e){return t.objects.setUUIDMetadata({uuid:e.userId,data:e.data,include:e.include})},this.updateUser=this.createUser,this.removeUser=function(e){return t.objects.removeUUIDMetadata({uuid:null==e?void 0:e.userId})},this.fetchUser=function(e){return t.objects.getUUIDMetadata({uuid:null==e?void 0:e.userId,include:null==e?void 0:e.include})},this.fetchUsers=this.objects.getAllUUIDMetadata,this.createSpace=function(e){return t.objects.setChannelMetadata({channel:e.spaceId,data:e.data,include:e.include})},this.updateSpace=this.createSpace,this.removeSpace=function(e){return t.objects.removeChannelMetadata({channel:e.spaceId})},this.fetchSpace=function(e){return t.objects.getChannelMetadata({channel:e.spaceId,include:e.include})},this.fetchSpaces=this.objects.getAllChannelMetadata,this.addMemberships=function(e){var n,i;return"string"==typeof e.spaceId?t.objects.setChannelMembers({channel:e.spaceId,uuids:null===(n=e.users)||void 0===n?void 0:n.map(function(e){return"string"==typeof e?e:{id:e.userId,custom:e.custom,status:e.status}}),limit:0}):t.objects.setMemberships({uuid:e.userId,channels:null===(i=e.spaces)||void 0===i?void 0:i.map(function(e){return"string"==typeof e?e:{id:e.spaceId,custom:e.custom,status:e.status}}),limit:0})},this.updateMemberships=this.addMemberships,this.removeMemberships=function(e){return"string"==typeof e.spaceId?t.objects.removeChannelMembers({channel:e.spaceId,uuids:e.userIds,limit:0}):t.objects.removeMemberships({uuid:e.userId,channels:e.spaceIds,limit:0})},this.fetchMemberships=function(e){return"string"==typeof e.spaceId?t.objects.getChannelMembers({channel:e.spaceId,filter:e.filter,limit:e.limit,page:e.page,include:{customFields:e.include.customFields,UUIDFields:e.include.userFields,customUUIDFields:e.include.customUserFields,statusField:e.include.statusField,UUIDStatusField:e.include.userStatusField,UUIDTypeField:e.include.userTypeField,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map(function(e){var t=l(e,2),n=t[0],i=t[1];return[n.replace("user","uuid"),i]})):null}).then(function(e){var t;return e.data=null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{user:e.uuid,custom:e.custom,updated:e.updated,eTag:e.eTag}}),e}):t.objects.getMemberships({uuid:e.userId,filter:e.filter,limit:e.limit,page:e.page,include:{customFields:e.include.customFields,channelFields:e.include.spaceFields,customChannelFields:e.include.customSpaceFields,statusField:e.include.statusField,channelStatusField:e.include.spaceStatusField,channelTypeField:e.include.spaceTypeField,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map(function(e){var t=l(e,2),n=t[0],i=t[1];return[n.replace("space","channel"),i]})):null}).then(function(e){var t;return e.data=null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{space:e.channel,custom:e.custom,updated:e.updated,eTag:e.eTag}}),e})},this.time=g,this.stop=this.destroy,this.encrypt=function(e,t){if(void 0===t&&f.cryptoModule){var n=f.cryptoModule.encrypt(e);return"string"==typeof n?n:v(n)}return a.encrypt(e,t)},this.decrypt=function(e,t){if(void 0===t&&p){var n=f.cryptoModule.decrypt(e);return n instanceof ArrayBuffer?JSON.parse((new TextDecoder).decode(n)):n}return a.decrypt(e,t)},this.getAuthKey=f.config.getAuthKey.bind(f.config),this.setAuthKey=f.config.setAuthKey.bind(f.config),this.getUUID=f.config.getUUID.bind(f.config),this.setUUID=f.config.setUUID.bind(f.config),this.getUserId=f.config.getUserId.bind(f.config),this.setUserId=f.config.setUserId.bind(f.config),this.getFilterExpression=f.config.getFilterExpression.bind(f.config),this.setFilterExpression=f.config.setFilterExpression.bind(f.config),this.setCipherKey=function(t){return f.config.setCipherKey(t,e,f)},this.setHeartbeatInterval=f.config.setHeartbeatInterval.bind(f.config),n.hasModule("proxy")&&(this.setProxy=function(e){f.config.setProxy(e),t.reconnect()})}return e.prototype.getVersion=function(){return this._config.getVersion()},e.prototype._addPnsdkSuffix=function(e,t){this._config._addPnsdkSuffix(e,t)},e.prototype.networkDownDetected=function(){this._listenerManager.announceNetworkDown(),this._config.restore?this.disconnect():this.destroy(!0)},e.prototype.networkUpDetected=function(){this._listenerManager.announceNetworkUp(),this.reconnect()},e.notificationPayload=function(e,t){return new B(e,t)},e.generateUUID=function(){return m()},e.OPERATIONS=N,e.CATEGORIES=P,e.LinearRetryPolicy=cn.LinearRetryPolicy,e.ExponentialRetryPolicy=cn.ExponentialRetryPolicy,e}(),Cn=function(){function e(e){var t=this;this._modules={},Object.keys(e).forEach(function(n){t._modules[n]=e[n].bind(t)})}return e.prototype.init=function(e){this._config=e,Array.isArray(this._config.origin)?this._currentSubDomain=Math.floor(Math.random()*this._config.origin.length):this._currentSubDomain=0,this._coreParams={},this.shiftStandardOrigin()},e.prototype.nextOrigin=function(){var e=this._config.secure?"https://":"http://";if("string"==typeof this._config.origin)return"".concat(e).concat(this._config.origin);this._currentSubDomain+=1,this._currentSubDomain>=this._config.origin.length&&(this._currentSubDomain=0);var t=this._config.origin[this._currentSubDomain];return"".concat(e).concat(t)},e.prototype.hasModule=function(e){return e in this._modules},e.prototype.shiftStandardOrigin=function(){return this._standardOrigin=this.nextOrigin(),this._standardOrigin},e.prototype.getStandardOrigin=function(){return this._standardOrigin},e.prototype.POSTFILE=function(e,t,n){return this._modules.postfile(e,t,n)},e.prototype.GETFILE=function(e,t,n){return this._modules.getfile(e,t,n)},e.prototype.POST=function(e,t,n,i){return this._modules.post(e,t,n,i)},e.prototype.PATCH=function(e,t,n,i){return this._modules.patch(e,t,n,i)},e.prototype.GET=function(e,t,n){return this._modules.get(e,t,n)},e.prototype.DELETE=function(e,t,n){return this._modules.del(e,t,n)},e.prototype._detectErrorCategory=function(e){if("ENOTFOUND"===e.code)return P.PNNetworkIssuesCategory;if("ECONNREFUSED"===e.code)return P.PNNetworkIssuesCategory;if("ECONNRESET"===e.code)return P.PNNetworkIssuesCategory;if("EAI_AGAIN"===e.code)return P.PNNetworkIssuesCategory;if(0===e.status||e.hasOwnProperty("status")&&void 0===e.status)return P.PNNetworkIssuesCategory;if(e.timeout)return P.PNTimeoutCategory;if("ETIMEDOUT"===e.code)return P.PNNetworkIssuesCategory;if(e.response){if(e.response.badRequest)return P.PNBadRequestCategory;if(e.response.forbidden)return P.PNAccessDeniedCategory}return P.PNUnknownCategory},e}();function xn(e){var t=function(e){return e&&"object"==typeof e&&e.constructor===Object};if(!t(e))return e;var n={};return Object.keys(e).forEach(function(i){var r=function(e){return"string"==typeof e||e instanceof String}(i),o=i,a=e[i];Array.isArray(i)||r&&i.indexOf(",")>=0?o=(r?i.split(","):i).reduce(function(e,t){return e+String.fromCharCode(t)},""):(function(e){return"number"==typeof e&&isFinite(e)}(i)||r&&!isNaN(i))&&(o=String.fromCharCode(r?parseInt(i,10):10)),n[o]=t(a)?xn(a):a}),n}var $n=function(){function e(e,t){this._base64ToBinary=t,this._decode=e}return e.prototype.decodeToken=function(e){var t="";e.length%4==3?t="=":e.length%4==2&&(t="==");var n=e.replace(/-/gi,"+").replace(/_/gi,"/")+t,i=this._decode(this._base64ToBinary(n));if("object"==typeof i)return i},e}(),Sn={exports:{}},An={exports:{}};!function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<i.length;r++)if((n=i[r])===t||n.fn===t){i.splice(r,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){i=0;for(var r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}}(An);var En=In;In.default=In,In.stable=Ln,In.stableStringify=Ln;var Tn="[...]",kn="[Circular]",_n=[],On=[];function Pn(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function In(e,t,n,i){var r;void 0===i&&(i=Pn()),Mn(e,"",0,[],void 0,0,i);try{r=0===On.length?JSON.stringify(e,t,n):JSON.stringify(e,Rn(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==_n.length;){var o=_n.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return r}function Nn(e,t,n,i){var r=Object.getOwnPropertyDescriptor(i,n);void 0!==r.get?r.configurable?(Object.defineProperty(i,n,{value:e}),_n.push([i,n,t,r])):On.push([t,n,e]):(i[n]=e,_n.push([i,n,t]))}function Mn(e,t,n,i,r,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;s<i.length;s++)if(i[s]===e)return void Nn(kn,e,t,r);if(void 0!==a.depthLimit&&o>a.depthLimit)return void Nn(Tn,e,t,r);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void Nn(Tn,e,t,r);if(i.push(e),Array.isArray(e))for(s=0;s<e.length;s++)Mn(e[s],s,s,i,e,o,a);else{var l=Object.keys(e);for(s=0;s<l.length;s++){var u=l[s];Mn(e[u],u,s,i,e,o,a)}}i.pop()}}function Dn(e,t){return e<t?-1:e>t?1:0}function Ln(e,t,n,i){void 0===i&&(i=Pn());var r,o=Un(e,"",0,[],void 0,0,i)||e;try{r=0===On.length?JSON.stringify(o,t,n):JSON.stringify(o,Rn(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==_n.length;){var a=_n.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return r}function Un(e,t,n,i,r,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;s<i.length;s++)if(i[s]===e)return void Nn(kn,e,t,r);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==a.depthLimit&&o>a.depthLimit)return void Nn(Tn,e,t,r);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void Nn(Tn,e,t,r);if(i.push(e),Array.isArray(e))for(s=0;s<e.length;s++)Un(e[s],s,s,i,e,o,a);else{var l={},u=Object.keys(e).sort(Dn);for(s=0;s<u.length;s++){var d=u[s];Un(e[d],d,s,i,e,o,a),l[d]=e[d]}if(void 0===r)return l;_n.push([r,t,e]),r[t]=l}i.pop()}}function Rn(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(On.length>0)for(var i=0;i<On.length;i++){var r=On[i];if(r[1]===t&&r[0]===n){n=r[2],On.splice(i,1);break}}return e.call(this,t,n)}}var Bn,jn="undefined"!=typeof Symbol&&Symbol,Fn=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0},Hn="Function.prototype.bind called on incompatible ",Gn=Array.prototype.slice,zn=Object.prototype.toString,Qn="[object Function]",Wn=function(e){var t=this;if("function"!=typeof t||zn.call(t)!==Qn)throw new TypeError(Hn+t);for(var n,i=Gn.call(arguments,1),r=function(){if(this instanceof n){var r=t.apply(this,i.concat(Gn.call(arguments)));return Object(r)===r?r:this}return t.apply(e,i.concat(Gn.call(arguments)))},o=Math.max(0,t.length-i.length),a=[],s=0;s<o;s++)a.push("$"+s);if(n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(r),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n},qn=Function.prototype.bind||Wn,Vn=qn.call(Function.call,Object.prototype.hasOwnProperty),Yn=SyntaxError,Kn=Function,Xn=TypeError,Zn=function(e){try{return Kn('"use strict"; return ('+e+").constructor;")()}catch(e){}},Jn=Object.getOwnPropertyDescriptor;if(Jn)try{Jn({},"")}catch(e){Jn=null}var ei=function(){throw new Xn},ti=Jn?function(){try{return ei}catch(e){try{return Jn(arguments,"callee").get}catch(e){return ei}}}():ei,ni="function"==typeof jn&&"function"==typeof Symbol&&"symbol"==typeof jn("foo")&&"symbol"==typeof Symbol("bar")&&Fn(),ii=Object.getPrototypeOf||function(e){return e.__proto__},ri={},oi="undefined"==typeof Uint8Array?Bn:ii(Uint8Array),ai={"%AggregateError%":"undefined"==typeof AggregateError?Bn:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Bn:ArrayBuffer,"%ArrayIteratorPrototype%":ni?ii([][Symbol.iterator]()):Bn,"%AsyncFromSyncIteratorPrototype%":Bn,"%AsyncFunction%":ri,"%AsyncGenerator%":ri,"%AsyncGeneratorFunction%":ri,"%AsyncIteratorPrototype%":ri,"%Atomics%":"undefined"==typeof Atomics?Bn:Atomics,"%BigInt%":"undefined"==typeof BigInt?Bn:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Bn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Bn:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Bn:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Bn:FinalizationRegistry,"%Function%":Kn,"%GeneratorFunction%":ri,"%Int8Array%":"undefined"==typeof Int8Array?Bn:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Bn:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Bn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ni?ii(ii([][Symbol.iterator]())):Bn,"%JSON%":"object"==typeof JSON?JSON:Bn,"%Map%":"undefined"==typeof Map?Bn:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&ni?ii((new Map)[Symbol.iterator]()):Bn,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Bn:Promise,"%Proxy%":"undefined"==typeof Proxy?Bn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Bn:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Bn:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&ni?ii((new Set)[Symbol.iterator]()):Bn,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Bn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ni?ii(""[Symbol.iterator]()):Bn,"%Symbol%":ni?Symbol:Bn,"%SyntaxError%":Yn,"%ThrowTypeError%":ti,"%TypedArray%":oi,"%TypeError%":Xn,"%Uint8Array%":"undefined"==typeof Uint8Array?Bn:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Bn:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Bn:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Bn:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Bn:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Bn:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Bn:WeakSet},si=function e(t){var n;if("%AsyncFunction%"===t)n=Zn("async function () {}");else if("%GeneratorFunction%"===t)n=Zn("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Zn("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&(n=ii(r.prototype))}return ai[t]=n,n},li={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ui=qn,di=Vn,ci=ui.call(Function.call,Array.prototype.concat),hi=ui.call(Function.apply,Array.prototype.splice),pi=ui.call(Function.call,String.prototype.replace),fi=ui.call(Function.call,String.prototype.slice),gi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mi=/\\(\\)?/g,yi=function(e){var t=fi(e,0,1),n=fi(e,-1);if("%"===t&&"%"!==n)throw new Yn("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Yn("invalid intrinsic syntax, expected opening `%`");var i=[];return pi(e,gi,function(e,t,n,r){i[i.length]=n?pi(r,mi,"$1"):t||e}),i},bi=function(e,t){var n,i=e;if(di(li,i)&&(i="%"+(n=li[i])[0]+"%"),di(ai,i)){var r=ai[i];if(r===ri&&(r=si(i)),void 0===r&&!t)throw new Xn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new Yn("intrinsic "+e+" does not exist!")},vi=function(e,t){if("string"!=typeof e||0===e.length)throw new Xn("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Xn('"allowMissing" argument must be a boolean');var n=yi(e),i=n.length>0?n[0]:"",r=bi("%"+i+"%",t),o=r.name,a=r.value,s=!1,l=r.alias;l&&(i=l[0],hi(n,ci([0,1],l)));for(var u=1,d=!0;u<n.length;u+=1){var c=n[u],h=fi(c,0,1),p=fi(c,-1);if(('"'===h||"'"===h||"`"===h||'"'===p||"'"===p||"`"===p)&&h!==p)throw new Yn("property names with quotes must have matching quotes");if("constructor"!==c&&d||(s=!0),di(ai,o="%"+(i+="."+c)+"%"))a=ai[o];else if(null!=a){if(!(c in a)){if(!t)throw new Xn("base intrinsic for "+e+" exists, but the property is not available.");return}if(Jn&&u+1>=n.length){var f=Jn(a,c);a=(d=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:a[c]}else d=di(a,c),a=a[c];d&&!s&&(ai[o]=a)}}return a},wi={exports:{}};!function(e){var t=qn,n=vi,i=n("%Function.prototype.apply%"),r=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(r,i),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var n=o(t,r,arguments);return a&&s&&a(n,"length").configurable&&s(n,"length",{value:1+l(0,e.length-(arguments.length-1))}),n};var u=function(){return o(t,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u}(wi);var Ci=vi,xi=wi.exports,$i=xi(Ci("String.prototype.indexOf")),Si=c(Object.freeze({__proto__:null,default:{}})),Ai="function"==typeof Map&&Map.prototype,Ei=Object.getOwnPropertyDescriptor&&Ai?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ti=Ai&&Ei&&"function"==typeof Ei.get?Ei.get:null,ki=Ai&&Map.prototype.forEach,_i="function"==typeof Set&&Set.prototype,Oi=Object.getOwnPropertyDescriptor&&_i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Pi=_i&&Oi&&"function"==typeof Oi.get?Oi.get:null,Ii=_i&&Set.prototype.forEach,Ni="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Mi="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Di="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Li=Boolean.prototype.valueOf,Ui=Object.prototype.toString,Ri=Function.prototype.toString,Bi=String.prototype.match,ji=String.prototype.slice,Fi=String.prototype.replace,Hi=String.prototype.toUpperCase,Gi=String.prototype.toLowerCase,zi=RegExp.prototype.test,Qi=Array.prototype.concat,Wi=Array.prototype.join,qi=Array.prototype.slice,Vi=Math.floor,Yi="function"==typeof BigInt?BigInt.prototype.valueOf:null,Ki=Object.getOwnPropertySymbols,Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Zi="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Ji="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,er=Object.prototype.propertyIsEnumerable,tr=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function nr(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||zi.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-Vi(-e):Vi(e);if(i!==e){var r=String(i),o=ji.call(t,r.length+1);return Fi.call(r,n,"$&_")+"."+Fi.call(Fi.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Fi.call(t,n,"$&_")}var ir=Si,rr=ir.custom,or=dr(rr)?rr:null;function ar(e,t,n){var i="double"===(n.quoteStyle||t)?'"':"'";return i+e+i}function sr(e){return Fi.call(String(e),/"/g,""")}function lr(e){return!("[object Array]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}function ur(e){return!("[object RegExp]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}function dr(e){if(Zi)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Xi)return!1;try{return Xi.call(e),!0}catch(e){}return!1}var cr=Object.prototype.hasOwnProperty||function(e){return e in this};function hr(e,t){return cr.call(e,t)}function pr(e){return Ui.call(e)}function fr(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function gr(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return gr(ji.call(e,0,t.maxStringLength),t)+i}return ar(Fi.call(Fi.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,mr),"single",t)}function mr(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Hi.call(t.toString(16))}function yr(e){return"Object("+e+")"}function br(e){return e+" { ? }"}function vr(e,t,n,i){return e+" ("+t+") {"+(i?wr(n,i):Wi.call(n,", "))+"}"}function wr(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Wi.call(e,","+n)+"\n"+t.prev}function Cr(e,t){var n=lr(e),i=[];if(n){i.length=e.length;for(var r=0;r<e.length;r++)i[r]=hr(e,r)?t(e[r],e):""}var o,a="function"==typeof Ki?Ki(e):[];if(Zi){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)hr(e,l)&&(n&&String(Number(l))===l&&l<e.length||Zi&&o["$"+l]instanceof Symbol||(zi.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e))));if("function"==typeof Ki)for(var u=0;u<a.length;u++)er.call(e,a[u])&&i.push("["+t(a[u])+"]: "+t(e[a[u]],e));return i}var xr=vi,$r=function(e,t){var n=Ci(e,!!t);return"function"==typeof n&&$i(e,".prototype.")>-1?xi(n):n},Sr=function e(t,n,i,r){var o=n||{};if(hr(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(hr(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!hr(o,"customInspect")||o.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(hr(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(hr(o,"numericSeparator")&&"boolean"!=typeof o.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return gr(t,o);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var l=String(t);return s?nr(t,l):l}if("bigint"==typeof t){var u=String(t)+"n";return s?nr(t,u):u}var c=void 0===o.depth?5:o.depth;if(void 0===i&&(i=0),i>=c&&c>0&&"object"==typeof t)return lr(t)?"[Array]":"[Object]";var h=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Wi.call(Array(e.indent+1)," ")}return{base:n,prev:Wi.call(Array(t+1),n)}}(o,i);if(void 0===r)r=[];else if(fr(r,t)>=0)return"[Circular]";function p(t,n,a){if(n&&(r=qi.call(r)).push(n),a){var s={depth:o.depth};return hr(o,"quoteStyle")&&(s.quoteStyle=o.quoteStyle),e(t,s,i+1,r)}return e(t,o,i+1,r)}if("function"==typeof t&&!ur(t)){var f=function(e){if(e.name)return e.name;var t=Bi.call(Ri.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),g=Cr(t,p);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(g.length>0?" { "+Wi.call(g,", ")+" }":"")}if(dr(t)){var m=Zi?Fi.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Xi.call(t);return"object"!=typeof t||Zi?m:yr(m)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var y="<"+Gi.call(String(t.nodeName)),b=t.attributes||[],v=0;v<b.length;v++)y+=" "+b[v].name+"="+ar(sr(b[v].value),"double",o);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+"</"+Gi.call(String(t.nodeName))+">"}if(lr(t)){if(0===t.length)return"[]";var w=Cr(t,p);return h&&!function(e){for(var t=0;t<e.length;t++)if(fr(e[t],"\n")>=0)return!1;return!0}(w)?"["+wr(w,h)+"]":"[ "+Wi.call(w,", ")+" ]"}if(function(e){return!("[object Error]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t)){var C=Cr(t,p);return"cause"in Error.prototype||!("cause"in t)||er.call(t,"cause")?0===C.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Wi.call(C,", ")+" }":"{ ["+String(t)+"] "+Wi.call(Qi.call("[cause]: "+p(t.cause),C),", ")+" }"}if("object"==typeof t&&a){if(or&&"function"==typeof t[or]&&ir)return ir(t,{depth:c-i});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Ti||!e||"object"!=typeof e)return!1;try{Ti.call(e);try{Pi.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var x=[];return ki&&ki.call(t,function(e,n){x.push(p(n,t,!0)+" => "+p(e,t))}),vr("Map",Ti.call(t),x,h)}if(function(e){if(!Pi||!e||"object"!=typeof e)return!1;try{Pi.call(e);try{Ti.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var $=[];return Ii&&Ii.call(t,function(e){$.push(p(e,t))}),vr("Set",Pi.call(t),$,h)}if(function(e){if(!Ni||!e||"object"!=typeof e)return!1;try{Ni.call(e,Ni);try{Mi.call(e,Mi)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return br("WeakMap");if(function(e){if(!Mi||!e||"object"!=typeof e)return!1;try{Mi.call(e,Mi);try{Ni.call(e,Ni)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return br("WeakSet");if(function(e){if(!Di||!e||"object"!=typeof e)return!1;try{return Di.call(e),!0}catch(e){}return!1}(t))return br("WeakRef");if(function(e){return!("[object Number]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t))return yr(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Yi)return!1;try{return Yi.call(e),!0}catch(e){}return!1}(t))return yr(p(Yi.call(t)));if(function(e){return!("[object Boolean]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t))return yr(Li.call(t));if(function(e){return!("[object String]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t))return yr(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===d)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t)&&!ur(t)){var S=Cr(t,p),A=tr?tr(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",T=!A&&Ji&&Object(t)===t&&Ji in t?ji.call(pr(t),8,-1):E?"Object":"",k=(A||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(T||E?"["+Wi.call(Qi.call([],T||[],E||[]),": ")+"] ":"");return 0===S.length?k+"{}":h?k+"{"+wr(S,h)+"}":k+"{ "+Wi.call(S,", ")+" }"}return String(t)},Ar=xr("%TypeError%"),Er=xr("%WeakMap%",!0),Tr=xr("%Map%",!0),kr=$r("WeakMap.prototype.get",!0),_r=$r("WeakMap.prototype.set",!0),Or=$r("WeakMap.prototype.has",!0),Pr=$r("Map.prototype.get",!0),Ir=$r("Map.prototype.set",!0),Nr=$r("Map.prototype.has",!0),Mr=function(e,t){for(var n,i=e;null!==(n=i.next);i=n)if(n.key===t)return i.next=n.next,n.next=e.next,e.next=n,n},Dr=String.prototype.replace,Lr=/%20/g,Ur="RFC3986",Rr={default:Ur,formatters:{RFC1738:function(e){return Dr.call(e,Lr,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Ur},Br=Rr,jr=Object.prototype.hasOwnProperty,Fr=Array.isArray,Hr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Gr=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(n[i]=e[i]);return n},zr={arrayToObject:Gr,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var r=t[i],o=r.obj[r.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],u=o[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:o,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Fr(n)){for(var i=[],r=0;r<n.length;++r)void 0!==n[r]&&i.push(n[r]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var i=e.replace(/\+/g," ");if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(e,t,n,i,r){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var a="",s=0;s<o.length;++s){var l=o.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||r===Br.RFC1738&&(40===l||41===l)?a+=o.charAt(s):l<128?a+=Hr[l]:l<2048?a+=Hr[192|l>>6]+Hr[128|63&l]:l<55296||l>=57344?a+=Hr[224|l>>12]+Hr[128|l>>6&63]+Hr[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(s)),a+=Hr[240|l>>18]+Hr[128|l>>12&63]+Hr[128|l>>6&63]+Hr[128|63&l])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Fr(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(Fr(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!jr.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return Fr(t)&&!Fr(n)&&(r=Gr(t,i)),Fr(t)&&Fr(n)?(n.forEach(function(n,r){if(jr.call(t,r)){var o=t[r];o&&"object"==typeof o&&n&&"object"==typeof n?t[r]=e(o,n,i):t.push(n)}else t[r]=n}),t):Object.keys(n).reduce(function(t,r){var o=n[r];return jr.call(t,r)?t[r]=e(t[r],o,i):t[r]=o,t},r)}},Qr=function(){var e,t,n,i={assert:function(e){if(!i.has(e))throw new Ar("Side channel does not contain "+Sr(e))},get:function(i){if(Er&&i&&("object"==typeof i||"function"==typeof i)){if(e)return kr(e,i)}else if(Tr){if(t)return Pr(t,i)}else if(n)return function(e,t){var n=Mr(e,t);return n&&n.value}(n,i)},has:function(i){if(Er&&i&&("object"==typeof i||"function"==typeof i)){if(e)return Or(e,i)}else if(Tr){if(t)return Nr(t,i)}else if(n)return function(e,t){return!!Mr(e,t)}(n,i);return!1},set:function(i,r){Er&&i&&("object"==typeof i||"function"==typeof i)?(e||(e=new Er),_r(e,i,r)):Tr?(t||(t=new Tr),Ir(t,i,r)):(n||(n={key:{},next:null}),function(e,t,n){var i=Mr(e,t);i?i.value=n:e.next={key:t,next:e.next,value:n}}(n,i,r))}};return i},Wr=zr,qr=Rr,Vr=Object.prototype.hasOwnProperty,Yr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Kr=Array.isArray,Xr=Array.prototype.push,Zr=function(e,t){Xr.apply(e,Kr(t)?t:[t])},Jr=Date.prototype.toISOString,eo=qr.default,to={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Wr.encode,encodeValuesOnly:!1,format:eo,formatter:qr.formatters[eo],indices:!1,serializeDate:function(e){return Jr.call(e)},skipNulls:!1,strictNullHandling:!1},no={},io=function e(t,n,i,r,o,a,s,l,u,d,c,h,p,f,g,m){for(var y,b=t,v=m,w=0,C=!1;void 0!==(v=v.get(no))&&!C;){var x=v.get(t);if(w+=1,void 0!==x){if(x===w)throw new RangeError("Cyclic object value");C=!0}void 0===v.get(no)&&(w=0)}if("function"==typeof l?b=l(n,b):b instanceof Date?b=c(b):"comma"===i&&Kr(b)&&(b=Wr.maybeMap(b,function(e){return e instanceof Date?c(e):e})),null===b){if(o)return s&&!f?s(n,to.encoder,g,"key",h):n;b=""}if("string"==typeof(y=b)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||Wr.isBuffer(b))return s?[p(f?n:s(n,to.encoder,g,"key",h))+"="+p(s(b,to.encoder,g,"value",h))]:[p(n)+"="+p(String(b))];var $,S=[];if(void 0===b)return S;if("comma"===i&&Kr(b))f&&s&&(b=Wr.maybeMap(b,s)),$=[{value:b.length>0?b.join(",")||null:void 0}];else if(Kr(l))$=l;else{var A=Object.keys(b);$=u?A.sort(u):A}for(var E=r&&Kr(b)&&1===b.length?n+"[]":n,T=0;T<$.length;++T){var k=$[T],_="object"==typeof k&&void 0!==k.value?k.value:b[k];if(!a||null!==_){var O=Kr(b)?"function"==typeof i?i(E,k):E:E+(d?"."+k:"["+k+"]");m.set(t,w);var P=Qr();P.set(no,m),Zr(S,e(_,O,i,r,o,a,"comma"===i&&f&&Kr(b)?null:s,l,u,d,c,h,p,f,g,P))}}return S},ro=zr,oo=Object.prototype.hasOwnProperty,ao=Array.isArray,so={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ro.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},lo=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},uo=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},co=function(e,t,n,i){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,l=[];if(s){if(!n.plainObjects&&oo.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var u=0;n.depth>0&&null!==(a=o.exec(r))&&u<n.depth;){if(u+=1,!n.plainObjects&&oo.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+r.slice(a.index)+"]"),function(e,t,n,i){for(var r=i?t:uo(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=r:"__proto__"!==l&&(a[l]=r):a={0:r}}r=a}return r}(l,t,n,i)}},ho=function(e,t){var n,i=e,r=function(e){if(!e)return to;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||to.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=qr.default;if(void 0!==e.format){if(!Vr.call(qr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=qr.formatters[n],r=to.filter;return("function"==typeof e.filter||Kr(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:to.addQueryPrefix,allowDots:void 0===e.allowDots?to.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:to.charsetSentinel,delimiter:void 0===e.delimiter?to.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:to.encode,encoder:"function"==typeof e.encoder?e.encoder:to.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:to.encodeValuesOnly,filter:r,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:to.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:to.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:to.strictNullHandling}}(t);"function"==typeof r.filter?i=(0,r.filter)("",i):Kr(r.filter)&&(n=r.filter);var o,a=[];if("object"!=typeof i||null===i)return"";o=t&&t.arrayFormat in Yr?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=Yr[o];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l="comma"===s&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),r.sort&&n.sort(r.sort);for(var u=Qr(),d=0;d<n.length;++d){var c=n[d];r.skipNulls&&null===i[c]||Zr(a,io(i[c],c,s,l,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var h=a.join(r.delimiter),p=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),h.length>0?p+h:""},po={formats:Rr,parse:function(e,t){var n=function(e){if(!e)return so;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?so.charset:e.charset;return{allowDots:void 0===e.allowDots?so.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:so.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:so.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:so.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:so.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:so.comma,decoder:"function"==typeof e.decoder?e.decoder:so.decoder,delimiter:"string"==typeof e.delimiter||ro.isRegExp(e.delimiter)?e.delimiter:so.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:so.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:so.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:so.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:so.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:so.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var i="string"==typeof e?function(e,t){var n,i={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=r.split(t.delimiter,o),s=-1,l=t.charset;if(t.charsetSentinel)for(n=0;n<a.length;++n)0===a[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[n]?l="utf-8":"utf8=%26%2310003%3B"===a[n]&&(l="iso-8859-1"),s=n,n=a.length);for(n=0;n<a.length;++n)if(n!==s){var u,d,c=a[n],h=c.indexOf("]="),p=-1===h?c.indexOf("="):h+1;-1===p?(u=t.decoder(c,so.decoder,l,"key"),d=t.strictNullHandling?null:""):(u=t.decoder(c.slice(0,p),so.decoder,l,"key"),d=ro.maybeMap(uo(c.slice(p+1),t),function(e){return t.decoder(e,so.decoder,l,"value")})),d&&t.interpretNumericEntities&&"iso-8859-1"===l&&(d=lo(d)),c.indexOf("[]=")>-1&&(d=ao(d)?[d]:d),oo.call(i,u)?i[u]=ro.combine(i[u],d):i[u]=d}return i}(e,n):e,r=n.plainObjects?Object.create(null):{},o=Object.keys(i),a=0;a<o.length;++a){var s=o[a],l=co(s,i[s],n,"string"==typeof e);r=ro.merge(r,l,n)}return!0===n.allowSparse?r:ro.compact(r)},stringify:ho},fo={};!function(e){function t(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}e.type=e=>e.split(/ *; */).shift(),e.params=e=>{const n={};var i,r=t(e.split(/ *; */));try{for(r.s();!(i=r.n()).done;){const e=i.value.split(/ *= */),t=e.shift(),r=e.shift();t&&r&&(n[t]=r)}}catch(e){r.e(e)}finally{r.f()}return n},e.parseLinks=e=>{const n={};var i,r=t(e.split(/ *, */));try{for(r.s();!(i=r.n()).done;){const e=i.value.split(/ *; */),t=e[0].slice(1,-1);n[e[1].split(/ *= */)[1].slice(1,-1)]=t}}catch(e){r.e(e)}finally{r.f()}return n},e.cleanHeader=(e,t)=>(delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e),e.isObject=e=>null!==e&&"object"==typeof e,e.hasOwn=Object.hasOwn||function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(e),t)},e.mixin=(t,n)=>{for(const i in n)e.hasOwn(n,i)&&(t[i]=n[i])}}(fo);const go=Si,mo=fo.isObject,yo=fo.hasOwn;var bo=vo;function vo(){}vo.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},vo.prototype.parse=function(e){return this._parser=e,this},vo.prototype.responseType=function(e){return this._responseType=e,this},vo.prototype.serialize=function(e){return this._serializer=e,this},vo.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(const t in e)if(yo(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload}return this},vo.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};const wo=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),Co=new Set([408,413,429,500,502,503,504,521,522,524]);vo.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){}if(t&&t.status&&Co.has(t.status))return!0;if(e){if(e.code&&wo.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},vo.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},vo.prototype.then=function(e,t){if(!this._fullfilledPromise){const e=this;this._endCalled,this._fullfilledPromise=new Promise((t,n)=>{e.on("abort",()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void n(this.timedoutError);const e=new Error("Aborted");e.code="ABORTED",e.status=this.status,e.method=this.method,e.url=this.url,n(e)}),e.end((e,i)=>{e?n(e):t(i)})})}return this._fullfilledPromise.then(e,t)},vo.prototype.catch=function(e){return this.then(void 0,e)},vo.prototype.use=function(e){return e(this),this},vo.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},vo.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},vo.prototype.get=function(e){return this._header[e.toLowerCase()]},vo.prototype.getHeader=vo.prototype.get,vo.prototype.set=function(e,t){if(mo(e)){for(const t in e)yo(e,t)&&this.set(t,e[t]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},vo.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},vo.prototype.field=function(e,t,n){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(mo(e)){for(const t in e)yo(e,t)&&this.field(t,e[t]);return this}if(Array.isArray(t)){for(const n in t)yo(t,n)&&this.field(e,t[n]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),n?this._getFormData().append(e,t,n):this._getFormData().append(e,t),this},vo.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(go.gte(process.version,"v13.0.0")&&go.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},vo.prototype._auth=function(e,t,n,i){switch(n.type){case"basic":this.set("Authorization",`Basic ${i(`${e}:${t}`)}`);break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization",`Bearer ${e}`)}return this},vo.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},vo.prototype.redirects=function(e){return this._maxRedirects=e,this},vo.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},vo.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},vo.prototype.send=function(e){const t=mo(e);let n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&mo(this._data))for(const t in e){if("bigint"==typeof e[t]&&!e[t].toJSON)throw new Error("Cannot serialize BigInt value to json");yo(e,t)&&(this._data[t]=e[t])}else{if("bigint"==typeof e)throw new Error("Cannot send value of type BigInt");"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],n&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${e}`:e:(this._data||"")+e):this._data=e}return!t||this._isHost(e)||n||this.type("json"),this},vo.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},vo.prototype._finalizeQueryString=function(){const e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){const e=this.url.indexOf("?");if(e>=0){const t=this.url.slice(e+1).split("&");"function"==typeof this._sort?t.sort(this._sort):t.sort(),this.url=this.url.slice(0,e)+"?"+t.join("&")}}},vo.prototype._appendQueryString=()=>{},vo.prototype._timeoutError=function(e,t,n){if(this._aborted)return;const i=new Error(`${e+t}ms exceeded`);i.timeout=t,i.code="ECONNABORTED",i.errno=n,this.timedout=!0,this.timedoutError=i,this.abort(),this.callback(i)},vo.prototype._setTimeouts=function(){const e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(()=>{e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(()=>{e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};const xo=fo;var $o=So;function So(){}function Ao(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function To(){this._defaults=[]}So.prototype.get=function(e){return this.header[e.toLowerCase()]},So.prototype._setHeaderProperties=function(e){const t=e["content-type"]||"";this.type=xo.type(t);const n=xo.params(t);for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(this[e]=n[e]);this.links={};try{e.link&&(this.links=xo.parseLinks(e.link))}catch(e){}},So.prototype._setStatusProperties=function(e){const t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e};for(var ko=0,_o=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];ko<_o.length;ko++){const e=_o[ko];To.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this._defaults.push({fn:e,args:n}),this}}To.prototype._setDefaults=function(e){var t,n=Ao(this._defaults);try{for(n.s();!(t=n.n()).done;){const n=t.value;e[n.fn](...n.args)}}catch(e){n.e(e)}finally{n.f()}};var Oo=To;!function(e,t){function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}let r;r="undefined"!=typeof window?window:"undefined"==typeof self?void 0:self;const o=An.exports,a=En,s=po,l=bo,u=fo.isObject,d=fo.mixin,c=fo.hasOwn,h=$o,p=Oo;function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};const g=t=e.exports;t.Request=x,g.getXHR=()=>{if(r.XMLHttpRequest)return new r.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const m="".trim?e=>e.trim():e=>e.replace(/(^\s*|\s*$)/g,"");function y(e){if(!u(e))return e;const t=[];for(const n in e)c(e,n)&&b(t,n,e[n]);return t.join("&")}function b(e,t,i){if(void 0!==i)if(null!==i)if(Array.isArray(i)){var r,o=n(i);try{for(o.s();!(r=o.n()).done;)b(e,t,r.value)}catch(e){o.e(e)}finally{o.f()}}else if(u(i))for(const n in i)c(i,n)&&b(e,`${t}[${n}]`,i[n]);else e.push(encodeURI(t)+"="+encodeURIComponent(i));else e.push(encodeURI(t))}function v(e){const t={},n=e.split("&");let i,r;for(let e=0,o=n.length;e<o;++e)i=n[e],r=i.indexOf("="),-1===r?t[decodeURIComponent(i)]="":t[decodeURIComponent(i.slice(0,r))]=decodeURIComponent(i.slice(r+1));return t}function w(e){return/[/+]json($|[^-\w])/i.test(e)}function C(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){const t=e.split(/\r?\n/),n={};let i,r,o,a;for(let e=0,s=t.length;e<s;++e)r=t[e],i=r.indexOf(":"),-1!==i&&(o=r.slice(0,i).toLowerCase(),a=m(r.slice(i+1)),n[o]=a);return n}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function x(e,t){const n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",()=>{let e,t=null,i=null;try{i=new C(n)}catch(e){return t=new Error("Parser is unable to parse the response"),t.parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",i);try{n._isResponseOK(i)||(e=new Error(i.statusText||i.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=i,e.status=e.status||i.status,n.callback(e,i)):n.callback(null,i)})}g.serializeObject=y,g.parseString=v,g.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},g.serialize={"application/x-www-form-urlencoded":s.stringify,"application/json":a},g.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},d(C.prototype,h.prototype),C.prototype._parseBody=function(e){let t=g.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&w(this.type)&&(t=g.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},C.prototype.toError=function(){const e=this.req,t=e.method,n=e.url,i=`cannot ${t} ${n} (${this.status})`,r=new Error(i);return r.status=this.status,r.method=t,r.url=n,r},g.Response=C,o(x.prototype),d(x.prototype,l.prototype),x.prototype.type=function(e){return this.set("Content-Type",g.types[e]||e),this},x.prototype.accept=function(e){return this.set("Accept",g.types[e]||e),this},x.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"==typeof t&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});const i=n.encoder?n.encoder:e=>{if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,i)},x.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},x.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},x.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},x.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},x.prototype.crossDomainError=function(){const e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},x.prototype.agent=function(){return this},x.prototype.ca=x.prototype.agent,x.prototype.buffer=x.prototype.ca,x.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},x.prototype.pipe=x.prototype.write,x.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},x.prototype.end=function(e){this._endCalled,this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},x.prototype._setUploadTimeout=function(){const e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(()=>{e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},x.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const e=this;this.xhr=g.getXHR();const t=this.xhr;let n=this._formData||this._data;this._setTimeouts(),t.addEventListener("readystatechange",()=>{const n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4!==n)return;let i;try{i=t.status}catch(e){i=0}if(!i){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")});const i=(t,n)=>{n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",i.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",i.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){const e=this._header["content-type"];let t=this._serializer||g.serialize[e?e.split(";")[0]:""];!t&&w(e)&&(t=g.serialize["application/json"]),t&&(n=t(n))}for(const e in this.header)null!==this.header[e]&&c(this.header,e)&&t.setRequestHeader(e,this.header[e]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},g.agent=()=>new p;for(var $=0,S=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];$<S.length;$++){const e=S[$];p.prototype[e.toLowerCase()]=function(t,n){const i=new g.Request(e,t);return this._setDefaults(i),n&&i.end(n),i}}function A(e,t,n){const i=g("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}p.prototype.del=p.prototype.delete,g.get=(e,t,n)=>{const i=g("GET",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},g.head=(e,t,n)=>{const i=g("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},g.options=(e,t,n)=>{const i=g("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},g.del=A,g.delete=A,g.patch=(e,t,n)=>{const i=g("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},g.post=(e,t,n)=>{const i=g("POST",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},g.put=(e,t,n)=>{const i=g("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}}(Sn,Sn.exports);var Po=Sn.exports;function Io(e){var t=(new Date).getTime(),n=(new Date).toISOString(),i=console&&console.log?console:window&&window.console&&window.console.log?window.console:console;i.log("<<<<<"),i.log("[".concat(n,"]"),"\n",e.url,"\n",e.qs),i.log("-----"),e.on("response",function(n){var r=(new Date).getTime()-t,o=(new Date).toISOString();i.log(">>>>>>"),i.log("[".concat(o," / ").concat(r,"]"),"\n",e.url,"\n",e.qs,"\n",n.text),i.log("-----")})}function No(e,t,n){var i=this;this._config.logVerbosity&&(e=e.use(Io)),this._config.proxy&&this._modules.proxy&&(e=this._modules.proxy.call(this,e)),this._config.keepAlive&&this._modules.keepAlive&&(e=this._modules.keepAlive(e));var r=e;if(t.abortSignal)var o=t.abortSignal.subscribe(function(){r.abort(),o()});return!0===t.forceBuffered?r="undefined"==typeof Blob?r.buffer().responseType("arraybuffer"):r.responseType("arraybuffer"):!1===t.forceBuffered&&(r=r.buffer(!1)),(r=r.timeout(t.timeout)).on("abort",function(){return n({category:P.PNUnknownCategory,error:!0,operation:t.operation,errorData:new Error("Aborted")},null)}),r.end(function(e,r){var o,a={};if(a.error=null!==e,a.operation=t.operation,r&&r.status&&(a.statusCode=r.status),e){if(e.response&&e.response.text&&!i._config.logVerbosity)try{a.errorData=JSON.parse(e.response.text)}catch(t){a.errorData=e}else a.errorData=e;return a.category=i._detectErrorCategory(e),n(a,null)}if(t.ignoreBody)o={headers:r.headers,redirects:r.redirects,response:r};else try{o=JSON.parse(r.text)}catch(e){return a.errorData=r,a.error=!0,n(a,null)}return o.error&&1===o.error&&o.status&&o.message&&o.service?(a.errorData=o,a.statusCode=o.status,a.error=!0,a.category=i._detectErrorCategory(a),n(a,null)):(o.error&&o.error.message&&(a.errorData=o.error),n(a,o))}),r}function Mo(e,t,n){return o(this,void 0,void 0,function(){var i;return a(this,function(r){switch(r.label){case 0:return i=Po.post(e),t.forEach(function(e){var t=e.key,n=e.value;i=i.field(t,n)}),i.attach("file",n,{contentType:"application/octet-stream"}),[4,i];case 1:return[2,r.sent()]}})})}function Do(e,t,n){var i=Po.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return No.call(this,i,t,n)}function Lo(e,t,n){var i=Po.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return No.call(this,i,t,n)}function Uo(e,t,n,i){var r=Po.post(this.getStandardOrigin()+n.url).query(e).set(n.headers).send(t);return No.call(this,r,n,i)}function Ro(e,t,n,i){var r=Po.patch(this.getStandardOrigin()+n.url).query(e).set(n.headers).send(t);return No.call(this,r,n,i)}function Bo(e,t,n){var i=Po.delete(this.getStandardOrigin()+t.url).set(t.headers).query(e);return No.call(this,i,t,n)}function jo(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e),0),n.set(new Uint8Array(t),e.byteLength),n.buffer}var Fo,Ho=function(){function e(){}return Object.defineProperty(e.prototype,"algo",{get:function(){return"aes-256-cbc"},enumerable:!1,configurable:!0}),e.prototype.encrypt=function(e,t){return o(this,void 0,void 0,function(){var n;return a(this,function(i){switch(i.label){case 0:return[4,this.getKey(e)];case 1:if(n=i.sent(),t instanceof ArrayBuffer)return[2,this.encryptArrayBuffer(n,t)];if("string"==typeof t)return[2,this.encryptString(n,t)];throw new Error("Cannot encrypt this file. In browsers file encryption supports only string or ArrayBuffer")}})})},e.prototype.decrypt=function(e,t){return o(this,void 0,void 0,function(){var n;return a(this,function(i){switch(i.label){case 0:return[4,this.getKey(e)];case 1:if(n=i.sent(),t instanceof ArrayBuffer)return[2,this.decryptArrayBuffer(n,t)];if("string"==typeof t)return[2,this.decryptString(n,t)];throw new Error("Cannot decrypt this file. In browsers file decryption supports only string or ArrayBuffer")}})})},e.prototype.encryptFile=function(e,t,n){return o(this,void 0,void 0,function(){var i,r,o;return a(this,function(a){switch(a.label){case 0:if(t.data.byteLength<=0)throw new Error("encryption error. empty content");return[4,this.getKey(e)];case 1:return i=a.sent(),[4,t.data.arrayBuffer()];case 2:return r=a.sent(),[4,this.encryptArrayBuffer(i,r)];case 3:return o=a.sent(),[2,n.create({name:t.name,mimeType:"application/octet-stream",data:o})]}})})},e.prototype.decryptFile=function(e,t,n){return o(this,void 0,void 0,function(){var i,r,o;return a(this,function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return i=a.sent(),[4,t.data.arrayBuffer()];case 2:return r=a.sent(),[4,this.decryptArrayBuffer(i,r)];case 3:return o=a.sent(),[2,n.create({name:t.name,data:o})]}})})},e.prototype.getKey=function(t){return o(this,void 0,void 0,function(){var n,i,r;return a(this,function(o){switch(o.label){case 0:return[4,crypto.subtle.digest("SHA-256",e.encoder.encode(t))];case 1:return n=o.sent(),i=Array.from(new Uint8Array(n)).map(function(e){return e.toString(16).padStart(2,"0")}).join(""),r=e.encoder.encode(i.slice(0,32)).buffer,[2,crypto.subtle.importKey("raw",r,"AES-CBC",!0,["encrypt","decrypt"])]}})})},e.prototype.encryptArrayBuffer=function(e,t){return o(this,void 0,void 0,function(){var n,i,r;return a(this,function(o){switch(o.label){case 0:return n=crypto.getRandomValues(new Uint8Array(16)),i=jo,r=[n.buffer],[4,crypto.subtle.encrypt({name:"AES-CBC",iv:n},e,t)];case 1:return[2,i.apply(void 0,r.concat([o.sent()]))]}})})},e.prototype.decryptArrayBuffer=function(t,n){return o(this,void 0,void 0,function(){var i;return a(this,function(r){switch(r.label){case 0:if(i=n.slice(0,16),n.slice(e.IV_LENGTH).byteLength<=0)throw new Error("decryption error: empty content");return[4,crypto.subtle.decrypt({name:"AES-CBC",iv:i},t,n.slice(e.IV_LENGTH))];case 1:return[2,r.sent()]}})})},e.prototype.encryptString=function(t,n){return o(this,void 0,void 0,function(){var i,r,o,s;return a(this,function(a){switch(a.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),r=e.encoder.encode(n).buffer,[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},t,r)];case 1:return o=a.sent(),s=jo(i.buffer,o),[2,e.decoder.decode(s)]}})})},e.prototype.decryptString=function(t,n){return o(this,void 0,void 0,function(){var i,r,o,s;return a(this,function(a){switch(a.label){case 0:return i=e.encoder.encode(n).buffer,r=i.slice(0,16),o=i.slice(16),[4,crypto.subtle.decrypt({name:"AES-CBC",iv:r},t,o)];case 1:return s=a.sent(),[2,e.decoder.decode(s)]}})})},e.IV_LENGTH=16,e.encoder=new TextEncoder,e.decoder=new TextDecoder,e}(),Go=(Fo=function(){function e(e){if(e instanceof File)this.data=e,this.name=this.data.name,this.mimeType=this.data.type;else if(e.data){var t=e.data;this.data=new File([t],e.name,{type:e.mimeType}),this.name=e.name,e.mimeType&&(this.mimeType=e.mimeType)}if(void 0===this.data)throw new Error("Couldn't construct a file out of supplied options.");if(void 0===this.name)throw new Error("Couldn't guess filename out of the options. Please provide one.")}return e.create=function(e){return new this(e)},e.prototype.toBuffer=function(){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("This feature is only supported in Node.js environments.")})})},e.prototype.toStream=function(){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("This feature is only supported in Node.js environments.")})})},e.prototype.toFileUri=function(){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("This feature is only supported in react native environments.")})})},e.prototype.toBlob=function(){return o(this,void 0,void 0,function(){return a(this,function(e){return[2,this.data]})})},e.prototype.toArrayBuffer=function(){return o(this,void 0,void 0,function(){var e=this;return a(this,function(t){return[2,new Promise(function(t,n){var i=new FileReader;i.addEventListener("load",function(){if(i.result instanceof ArrayBuffer)return t(i.result)}),i.addEventListener("error",function(){n(i.error)}),i.readAsArrayBuffer(e.data)})]})})},e.prototype.toString=function(){return o(this,void 0,void 0,function(){var e=this;return a(this,function(t){return[2,new Promise(function(t,n){var i=new FileReader;i.addEventListener("load",function(){if("string"==typeof i.result)return t(i.result)}),i.addEventListener("error",function(){n(i.error)}),i.readAsBinaryString(e.data)})]})})},e.prototype.toFile=function(){return o(this,void 0,void 0,function(){return a(this,function(e){return[2,this.data]})})},e}(),Fo.supportsFile="undefined"!=typeof File,Fo.supportsBlob="undefined"!=typeof Blob,Fo.supportsArrayBuffer="undefined"!=typeof ArrayBuffer,Fo.supportsBuffer=!1,Fo.supportsStream=!1,Fo.supportsString=!0,Fo.supportsEncryptFile=!0,Fo.supportsFileUri=!1,Fo),zo=function(){function e(e){this.config=e,this.cryptor=new k({config:e}),this.fileCryptor=new Ho}return Object.defineProperty(e.prototype,"identifier",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.encrypt=function(e){var t="string"==typeof e?e:(new TextDecoder).decode(e);return{data:this.cryptor.encrypt(t),metadata:null}},e.prototype.decrypt=function(e){var t="string"==typeof e.data?e.data:v(e.data);return this.cryptor.decrypt(t)},e.prototype.encryptFile=function(e,t){var n;return o(this,void 0,void 0,function(){return a(this,function(i){return[2,this.fileCryptor.encryptFile(null===(n=this.config)||void 0===n?void 0:n.cipherKey,e,t)]})})},e.prototype.decryptFile=function(e,t){return o(this,void 0,void 0,function(){return a(this,function(n){return[2,this.fileCryptor.decryptFile(this.config.cipherKey,e,t)]})})},e}(),Qo=function(){function e(e){this.cipherKey=e.cipherKey,this.CryptoJS=E,this.encryptedKey=this.CryptoJS.SHA256(this.cipherKey)}return Object.defineProperty(e.prototype,"algo",{get:function(){return"AES-CBC"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"identifier",{get:function(){return"ACRH"},enumerable:!1,configurable:!0}),e.prototype.getIv=function(){return crypto.getRandomValues(new Uint8Array(e.BLOCK_SIZE))},e.prototype.getKey=function(){return o(this,void 0,void 0,function(){var t,n;return a(this,function(i){switch(i.label){case 0:return t=e.encoder.encode(this.cipherKey),[4,crypto.subtle.digest("SHA-256",t.buffer)];case 1:return n=i.sent(),[2,crypto.subtle.importKey("raw",n,this.algo,!0,["encrypt","decrypt"])]}})})},e.prototype.encrypt=function(t){if(0===("string"==typeof t?t:e.decoder.decode(t)).length)throw new Error("encryption error. empty content");var n=this.getIv();return{metadata:n,data:b(this.CryptoJS.AES.encrypt(t,this.encryptedKey,{iv:this.bufferToWordArray(n),mode:this.CryptoJS.mode.CBC}).ciphertext.toString(this.CryptoJS.enc.Base64))}},e.prototype.decrypt=function(t){var n=this.bufferToWordArray(new Uint8ClampedArray(t.metadata)),i=this.bufferToWordArray(new Uint8ClampedArray(t.data));return e.encoder.encode(this.CryptoJS.AES.decrypt({ciphertext:i},this.encryptedKey,{iv:n,mode:this.CryptoJS.mode.CBC}).toString(this.CryptoJS.enc.Utf8)).buffer},e.prototype.encryptFileData=function(e){return o(this,void 0,void 0,function(){var t,n,i;return a(this,function(r){switch(r.label){case 0:return[4,this.getKey()];case 1:return t=r.sent(),n=this.getIv(),i={},[4,crypto.subtle.encrypt({name:this.algo,iv:n},t,e)];case 2:return[2,(i.data=r.sent(),i.metadata=n,i)]}})})},e.prototype.decryptFileData=function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(n){switch(n.label){case 0:return[4,this.getKey()];case 1:return t=n.sent(),[2,crypto.subtle.decrypt({name:this.algo,iv:e.metadata},t,e.data)]}})})},e.prototype.bufferToWordArray=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n[t/4|0]|=e[t]<<24-8*t;return this.CryptoJS.lib.WordArray.create(n,e.length)},e.BLOCK_SIZE=16,e.encoder=new TextEncoder,e.decoder=new TextDecoder,e}(),Wo=function(){function e(e){var t;this.defaultCryptor=e.default,this.cryptors=null!==(t=e.cryptors)&&void 0!==t?t:[]}return e.legacyCryptoModule=function(e){var t;return new this({default:new zo({cipherKey:e.cipherKey,useRandomIVs:null===(t=e.useRandomIVs)||void 0===t||t}),cryptors:[new Qo({cipherKey:e.cipherKey})]})},e.aesCbcCryptoModule=function(e){var t;return new this({default:new Qo({cipherKey:e.cipherKey}),cryptors:[new zo({cipherKey:e.cipherKey,useRandomIVs:null===(t=e.useRandomIVs)||void 0===t||t})]})},e.withDefaultCryptor=function(e){return new this({default:e})},e.prototype.getAllCryptors=function(){return u([this.defaultCryptor],l(this.cryptors),!1)},e.prototype.encrypt=function(e){var t=this.defaultCryptor.encrypt(e);if(!t.metadata)return t.data;var n=this.getHeaderData(t);return this.concatArrayBuffer(n,t.data)},e.prototype.decrypt=function(e){var t="string"==typeof e?b(e):e,n=qo.tryParse(t),i=this.getCryptor(n),r=n.length>0?t.slice(n.length-n.metadataLength,n.length):null;if(t.slice(n.length).byteLength<=0)throw new Error("decryption error. empty content");return i.decrypt({data:t.slice(n.length),metadata:r})},e.prototype.encryptFile=function(e,t){return o(this,void 0,void 0,function(){var n,i;return a(this,function(r){switch(r.label){case 0:return this.defaultCryptor.identifier===qo.LEGACY_IDENTIFIER?[2,this.defaultCryptor.encryptFile(e,t)]:[4,this.getFileData(e.data)];case 1:return n=r.sent(),[4,this.defaultCryptor.encryptFileData(n)];case 2:return i=r.sent(),[2,t.create({name:e.name,mimeType:"application/octet-stream",data:this.concatArrayBuffer(this.getHeaderData(i),i.data)})]}})})},e.prototype.decryptFile=function(t,n){return o(this,void 0,void 0,function(){var i,r,o,s,l,u,d,c;return a(this,function(a){switch(a.label){case 0:return[4,t.data.arrayBuffer()];case 1:return i=a.sent(),r=qo.tryParse(i),(null==(o=this.getCryptor(r))?void 0:o.identifier)===e.LEGACY_IDENTIFIER?[2,o.decryptFile(t,n)]:[4,this.getFileData(i)];case 2:return s=a.sent(),l=s.slice(r.length-r.metadataLength,r.length),d=(u=n).create,c={name:t.name},[4,this.defaultCryptor.decryptFileData({data:i.slice(r.length),metadata:l})];case 3:return[2,d.apply(u,[(c.data=a.sent(),c)])]}})})},e.prototype.getCryptor=function(e){if(""===e){var t=this.getAllCryptors().find(function(e){return""===e.identifier});if(t)return t;throw new Error("unknown cryptor error")}if(e instanceof Vo)return this.getCryptorFromId(e.identifier)},e.prototype.getCryptorFromId=function(e){var t=this.getAllCryptors().find(function(t){return e===t.identifier});if(t)return t;throw Error("unknown cryptor error")},e.prototype.concatArrayBuffer=function(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e),0),n.set(new Uint8Array(t),e.byteLength),n.buffer},e.prototype.getHeaderData=function(e){if(e.metadata){var t=qo.from(this.defaultCryptor.identifier,e.metadata),n=new Uint8Array(t.length),i=0;return n.set(t.data,i),i+=t.length-e.metadata.byteLength,n.set(new Uint8Array(e.metadata),i),n.buffer}},e.prototype.getFileData=function(t){return o(this,void 0,void 0,function(){return a(this,function(n){switch(n.label){case 0:return t instanceof Blob?[4,t.arrayBuffer()]:[3,2];case 1:return[2,n.sent()];case 2:if(t instanceof ArrayBuffer)return[2,t];if("string"==typeof t)return[2,e.encoder.encode(t)];throw new Error("Cannot decrypt/encrypt file. In browsers file encrypt/decrypt supported for string, ArrayBuffer or Blob")}})})},e.LEGACY_IDENTIFIER="",e.encoder=new TextEncoder,e.decoder=new TextDecoder,e}(),qo=function(){function e(){}return e.from=function(t,n){if(t!==e.LEGACY_IDENTIFIER)return new Vo(t,n.byteLength)},e.tryParse=function(t){var n=new Uint8Array(t),i="";if(n.byteLength>=4&&(i=n.slice(0,4),this.decoder.decode(i)!==e.SENTINEL))return"";if(!(n.byteLength>=5))throw new Error("decryption error. invalid header version");if(n[4]>e.MAX_VERSION)throw new Error("unknown cryptor error");var r="",o=5+e.IDENTIFIER_LENGTH;if(!(n.byteLength>=o))throw new Error("decryption error. invalid crypto identifier");r=n.slice(5,o);var a=null;if(!(n.byteLength>=o+1))throw new Error("decryption error. invalid metadata length");return a=n[o],o+=1,255===a&&n.byteLength>=o+2&&(a=new Uint16Array(n.slice(o,o+2)).reduce(function(e,t){return(e<<8)+t},0),o+=2),new Vo(this.decoder.decode(r),a)},e.SENTINEL="PNED",e.LEGACY_IDENTIFIER="",e.IDENTIFIER_LENGTH=4,e.VERSION=1,e.MAX_VERSION=1,e.decoder=new TextDecoder,e}(),Vo=function(){function e(e,t){this._identifier=e,this._metadataLength=t}return Object.defineProperty(e.prototype,"identifier",{get:function(){return this._identifier},set:function(e){this._identifier=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadataLength",{get:function(){return this._metadataLength},set:function(e){this._metadataLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return qo.VERSION},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return qo.SENTINEL.length+1+qo.IDENTIFIER_LENGTH+(this.metadataLength<255?1:3)+this.metadataLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=0,t=new Uint8Array(this.length),n=new TextEncoder;t.set(n.encode(qo.SENTINEL)),t[e+=qo.SENTINEL.length]=this.version,e++,this.identifier&&t.set(n.encode(this.identifier),e),e+=qo.IDENTIFIER_LENGTH;var i=this.metadataLength;return i<255?t[e]=i:t.set([255,i>>8,255&i],e),t},enumerable:!1,configurable:!0}),e.IDENTIFIER_LENGTH=4,e.SENTINEL="PNED",e}();function Yo(e){if(!navigator||!navigator.sendBeacon)return!1;navigator.sendBeacon(e)}var Ko=function(e){function n(t){var n=this,i=t.listenToBrowserNetworkEvents,r=void 0===i||i;return t.sdkFamily="Web",t.networking=new Cn({del:Bo,get:Lo,post:Uo,patch:Ro,sendBeacon:Yo,getfile:Do,postfile:Mo}),t.cbor=new $n(function(e){return xn(p.decode(e))},b),t.PubNubFile=Go,t.cryptography=new Ho,t.initCryptoModule=function(e){return new Wo({default:new zo({cipherKey:e.cipherKey,useRandomIVs:e.useRandomIVs}),cryptors:[new Qo({cipherKey:e.cipherKey})]})},n=e.call(this,t)||this,r&&(window.addEventListener("offline",function(){n.networkDownDetected()}),window.addEventListener("online",function(){n.networkUpDetected()})),n}return t(n,e),n.CryptoModule=Wo,n}(wn);return Ko}()},8859:(e,t,n)=>{var i=n(3661),r=n(1380),o=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=o,e.exports=a},8879:(e,t,n)=>{var i=n(4335)(Object.getPrototypeOf,Object);e.exports=i},8963:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e<0?"-":"",i=Math.abs(e).toString();for(;i.length<t;)i="0"+i;return n+i},e.exports=t.default},8984:(e,t,n)=>{var i=n(5527),r=n(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9012:e=>{e.exports=function(e,t){return function(){return e.apply(t,arguments)}}},9059:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}},e.exports=t.default},9106:(e,t,n)=>{var i=n(9516),r=n(170);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a));var s,l=n&&n.encode||o,u=n&&n.serialize;return(s=u?u(t,n):i.isURLSearchParams(t)?t.toString():new r(t,n).toString(l))&&(e+=(-1===e.indexOf("?")?"?":"&")+s),e}},9137:e=>{e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},9219:e=>{e.exports=function(e,t){return e.has(t)}},9325:(e,t,n)=>{var i=n(4840),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},9326:(e,t,n)=>{var i=n(1769),r=n(2428),o=n(6449),a=n(361),s=n(294),l=n(7797);e.exports=function(e,t,n){for(var u=-1,d=(t=i(t,e)).length,c=!1;++u<d;){var h=l(t[u]);if(!(c=null!=e&&n(e,h)))break;e=e[h]}return c||++u!=d?c:!!(d=null==e?0:e.length)&&s(d)&&a(h,d)&&(o(e)||r(e))}},9344:(e,t,n)=>{var i=n(3805),r=Object.create,o=function(){function e(){}return function(t){if(!i(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9417:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==n.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==i.indexOf(e)},t.throwProtectedError=function(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))};var n=["D","DD"],i=["YY","YYYY"]},9490:(e,t,n)=>{e.exports={isBrowser:!0,classes:{URLSearchParams:n(2002),FormData:n(243),Blob},protocols:["http","https","file","blob","url","data"]}},9516:(e,t,n)=>{var i,r=n(9012),o=Object.prototype.toString,a=(i=Object.create(null),function(e){var t=o.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var d=s("ArrayBuffer");function c(e){return"number"==typeof e}function h(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=s("Date"),g=s("File"),m=s("Blob"),y=s("FileList");function b(e){return"[object Function]"===o.call(e)}var v=s("URLSearchParams");function w(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var C,x=(C="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return C&&e instanceof C});var $,S=s("HTMLFormElement"),A=($=Object.prototype.hasOwnProperty,function(e,t){return $.call(e,t)});e.exports={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:c,isObject:h,isPlainObject:p,isEmptyObject:function(e){return e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype},isUndefined:u,isDate:f,isFile:g,isBlob:m,isFunction:b,isStream:function(e){return h(e)&&b(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:w,merge:function e(){var t={};function n(n,i){p(t[i])&&p(n)?t[i]=e(t[i],n):p(n)?t[i]=e({},n):l(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)w(arguments[i],n);return t},extend:function(e,t,n){return w(t,function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,i){var r,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a=r[o],i&&!i(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;if(l(e))return e;var t=e.length;if(!c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:x,isFileList:y,forEachEntry:function(e,t){for(var n,i=(e&&e[Symbol.iterator]).call(e);(n=i.next())&&!n.done;){var r=n.value;t.call(e,r[0],r[1])}},matchAll:function(e,t){for(var n,i=[];null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:S,hasOwnProperty:A}},9615:(e,t,n)=>{var i=n(9137),r=n(4680);e.exports=function(e,t,n){var o=!i(t);return e&&(o||!1===n)?r(e,t):t}},9638:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,i.default)(e),n=(0,r.default)(t).getTime()-(0,o.default)(t).getTime();return Math.round(n/l)+1};var i=s(n(5039)),r=s(n(3076)),o=s(n(7674)),a=s(n(427));function s(e){return e&&e.__esModule?e:{default:e}}var l=6048e5;e.exports=t.default},9641:e=>{e.exports={version:"0.30.1"}},9698:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9720:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},9752:(e,t,n)=>{var i=n(3729),r=n(9344),o=n(641),a=n(5389),s=n(8879),l=n(6449),u=n(3656),d=n(1882),c=n(3805),h=n(7167);e.exports=function(e,t,n){var p=l(e),f=p||u(e)||h(e);if(t=a(t,4),null==n){var g=e&&e.constructor;n=f?p?new g:[]:c(e)&&d(g)?r(s(e)):{}}return(f?i:o)(e,function(e,i,r){return t(n,e,i,r)}),n}},9770:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}},9784:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},9799:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(1,arguments);var n=t||{},s=n.locale,l=s&&s.options&&s.options.firstWeekContainsDate,u=null==l?1:(0,a.default)(l),d=null==n.firstWeekContainsDate?u:(0,a.default)(n.firstWeekContainsDate),c=(0,i.default)(e,t),h=new Date(0);return h.setUTCFullYear(c,0,d),h.setUTCHours(0,0,0,0),(0,o.default)(h,t)};var i=s(n(2036)),r=s(n(427)),o=s(n(930)),a=s(n(9784));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},9935:e=>{e.exports=function(){return!1}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0;var i=n(2505),r=n.n(i);const o=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),s=new Map;class l{constructor(e,t){if(this._$cssResult$=!0,t!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=s.get(this.cssText);return o&&void 0===e&&(s.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const u=(e,...t)=>{const n=1===e.length?e[0]:t.reduce((t,n,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[i+1],e[0]);return new l(n,a)},d=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new l("string"==typeof e?e:e+"",a))(t)})(e):e;var c;const h=window.trustedTypes,p=h?h.emptyScript:"",f=window.reactiveElementPolyfillSupport,g={toAttribute(e,t){switch(t){case Boolean:e=e?p:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},m=(e,t)=>t!==e&&(t==t||e==e),y={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:m};class b extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const i=this._$Eh(n,t);void 0!==i&&(this._$Eu.set(i,n),e.push(i))}),e}static createProperty(e,t=y){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(i){const r=this[e];this[t]=i,this.requestUpdate(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(d(e))}else void 0!==e&&t.push(d(e));return t}static _$Eh(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,n;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$Eg)||void 0===t||t.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{o?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{const n=document.createElement("style"),i=window.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=t.cssText,e.appendChild(n)})})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Eg)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$Eg)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ES(e,t,n=y){var i,r;const o=this.constructor._$Eh(e,n);if(void 0!==o&&!0===n.reflect){const a=(null!==(r=null===(i=n.converter)||void 0===i?void 0:i.toAttribute)&&void 0!==r?r:g.toAttribute)(t,n.type);this._$Ei=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}_$AK(e,t){var n,i,r;const o=this.constructor,a=o._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){const e=o.getPropertyOptions(a),s=e.converter,l=null!==(r=null!==(i=null===(n=s)||void 0===n?void 0:n.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==r?r:g.fromAttribute;this._$Ei=a,this[a]=l(t,e.type),this._$Ei=null}}requestUpdate(e,t,n){let i=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||m)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Ei!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((e,t)=>this[t]=e),this._$Et=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$Eg)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(n)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$Eg)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$ES(t,this[t],e)),this._$EC=void 0),this._$EU()}updated(e){}firstUpdated(e){}}var v;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(c=globalThis.reactiveElementVersions)&&void 0!==c?c:globalThis.reactiveElementVersions=[]).push("1.3.1");const w=globalThis.trustedTypes,C=w?w.createPolicy("lit-html",{createHTML:e=>e}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,$="?"+x,S=`<${$}>`,A=document,E=(e="")=>A.createComment(e),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,k=Array.isArray,_=e=>{var t;return k(e)||"function"==typeof(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,I=/>/g,N=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,M=/'/g,D=/"/g,L=/^(?:script|style|textarea|title)$/i,U=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),R=U(1),B=U(2),j=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),H=new WeakMap,G=A.createTreeWalker(A,129,null,!1),z=(e,t)=>{const n=e.length-1,i=[];let r,o=2===t?"<svg>":"",a=O;for(let t=0;t<n;t++){const n=e[t];let s,l,u=-1,d=0;for(;d<n.length&&(a.lastIndex=d,l=a.exec(n),null!==l);)d=a.lastIndex,a===O?"!--"===l[1]?a=P:void 0!==l[1]?a=I:void 0!==l[2]?(L.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=N):void 0!==l[3]&&(a=N):a===N?">"===l[0]?(a=null!=r?r:O,u=-1):void 0===l[1]?u=-2:(u=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?N:'"'===l[3]?D:M):a===D||a===M?a=N:a===P||a===I?a=O:(a=N,r=void 0);const c=a===N&&e[t+1].startsWith("/>")?" ":"";o+=a===O?n+S:u>=0?(i.push(s),n.slice(0,u)+"$lit$"+n.slice(u)+x+c):n+x+(-2===u?(i.push(void 0),t):c)}const s=o+(e[n]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(s):s,i]};class Q{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let r=0,o=0;const a=e.length-1,s=this.parts,[l,u]=z(e,t);if(this.el=Q.createElement(l,n),G.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(i=G.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes()){const e=[];for(const t of i.getAttributeNames())if(t.endsWith("$lit$")||t.startsWith(x)){const n=u[o++];if(e.push(t),void 0!==n){const e=i.getAttribute(n.toLowerCase()+"$lit$").split(x),t=/([.?@])?(.*)/.exec(n);s.push({type:1,index:r,name:t[2],strings:e,ctor:"."===t[1]?K:"?"===t[1]?Z:"@"===t[1]?J:Y})}else s.push({type:6,index:r})}for(const t of e)i.removeAttribute(t)}if(L.test(i.tagName)){const e=i.textContent.split(x),t=e.length-1;if(t>0){i.textContent=w?w.emptyScript:"";for(let n=0;n<t;n++)i.append(e[n],E()),G.nextNode(),s.push({type:2,index:++r});i.append(e[t],E())}}}else if(8===i.nodeType)if(i.data===$)s.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(x,e+1));)s.push({type:7,index:r}),e+=x.length-1}r++}}static createElement(e,t){const n=A.createElement("template");return n.innerHTML=e,n}}function W(e,t,n=e,i){var r,o,a,s;if(t===j)return t;let l=void 0!==i?null===(r=n._$Cl)||void 0===r?void 0:r[i]:n._$Cu;const u=T(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===u?l=void 0:(l=new u(e),l._$AT(e,n,i)),void 0!==i?(null!==(a=(s=n)._$Cl)&&void 0!==a?a:s._$Cl=[])[i]=l:n._$Cu=l),void 0!==l&&(t=W(e,l._$AS(e,t.values),l,i)),t}class q{constructor(e,t){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var t;const{el:{content:n},parts:i}=this._$AD,r=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:A).importNode(n,!0);G.currentNode=r;let o=G.nextNode(),a=0,s=0,l=i[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new V(o,o.nextSibling,this,e):1===l.type?t=new l.ctor(o,l.name,l.strings,this,e):6===l.type&&(t=new ee(o,this,e)),this.v.push(t),l=i[++s]}a!==(null==l?void 0:l.index)&&(o=G.nextNode(),a++)}return r}m(e){let t=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class V{constructor(e,t,n,i){var r;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cg=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=W(this,e,t),T(e)?e===F||null==e||""===e?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==j&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.k(e):_(e)?this.S(e):this.$(e)}M(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}k(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}$(e){this._$AH!==F&&T(this._$AH)?this._$AA.nextSibling.data=e:this.k(A.createTextNode(e)),this._$AH=e}T(e){var t;const{values:n,_$litType$:i}=e,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=Q.createElement(i.h,this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===r)this._$AH.m(n);else{const e=new q(r,this),t=e.p(this.options);e.m(n),this.k(t),this._$AH=e}}_$AC(e){let t=H.get(e.strings);return void 0===t&&H.set(e.strings,t=new Q(e)),t}S(e){k(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,i=0;for(const r of e)i===t.length?t.push(n=new V(this.M(E()),this.M(E()),this,this.options)):n=t[i],n._$AI(r),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cg=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Y{constructor(e,t,n,i,r){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,i){const r=this.strings;let o=!1;if(void 0===r)e=W(this,e,t,0),o=!T(e)||e!==this._$AH&&e!==j,o&&(this._$AH=e);else{const i=e;let a,s;for(e=r[0],a=0;a<r.length-1;a++)s=W(this,i[n+a],t,a),s===j&&(s=this._$AH[a]),o||(o=!T(s)||s!==this._$AH[a]),s===F?e=F:e!==F&&(e+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}o&&!i&&this.C(e)}C(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class K extends Y{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===F?void 0:e}}const X=w?w.emptyScript:"";class Z extends Y{constructor(){super(...arguments),this.type=4}C(e){e&&e!==F?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class J extends Y{constructor(e,t,n,i,r){super(e,t,n,i,r),this.type=5}_$AI(e,t=this){var n;if((e=null!==(n=W(this,e,t,0))&&void 0!==n?n:F)===j)return;const i=this._$AH,r=e===F&&i!==F||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==F&&(i===F||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}class ee{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){W(this,e)}}const te={L:"$lit$",P:x,V:$,I:1,N:z,R:q,j:_,D:W,H:V,F:Y,O:Z,W:J,B:K,Z:ee},ne=window.litHtmlPolyfillSupport;var ie,re;null==ne||ne(Q,V),(null!==(v=globalThis.litHtmlVersions)&&void 0!==v?v:globalThis.litHtmlVersions=[]).push("2.2.2");class oe extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=((e,t,n)=>{var i,r;const o=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:t;let a=o._$litPart$;if(void 0===a){const e=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;o._$litPart$=a=new V(t.insertBefore(E(),e),e,void 0,null!=n?n:{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}render(){return j}}oe.finalized=!0,oe._$litElement$=!0,null===(ie=globalThis.litElementHydrateSupport)||void 0===ie||ie.call(globalThis,{LitElement:oe});const ae=globalThis.litElementPolyfillSupport;null==ae||ae({LitElement:oe});(null!==(re=globalThis.litElementVersions)&&void 0!==re?re:globalThis.litElementVersions=[]).push("3.2.0");const se=e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:n,elements:i}=t;return{kind:n,elements:i,finisher(t){window.customElements.define(e,t)}}})(e,t),le=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};function ue(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):le(e,t)}function de(e){return ue({...e,state:!0})}function ce(e,t){return(({finisher:e,descriptor:t})=>(n,i)=>{var r;if(void 0===i){const i=null!==(r=n.originalKey)&&void 0!==r?r:n.key,o=null!=t?{kind:"method",placement:"prototype",key:i,descriptor:t(n.key)}:{...n,key:i};return null!=e&&(o.finisher=function(t){e(t,i)}),o}{const r=n.constructor;void 0!==t&&Object.defineProperty(n,i,t(i)),null==e||e(r,i)}})({descriptor:n=>{const i={get(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(t){const t="symbol"==typeof n?Symbol():"__"+n;i.get=function(){var n,i;return void 0===this[t]&&(this[t]=null!==(i=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(e))&&void 0!==i?i:null),this[t]}}return i}})}var he;null===(he=window.HTMLSlotElement)||void 0===he||he.prototype.assignedElements;const pe=1,fe=2,ge=e=>(...t)=>({_$litDirective$:e,values:t});class me{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const ye=ge(class extends me{constructor(e){var t;if(super(e),e.type!==pe||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var n,i;if(void 0===this.et){this.et=new Set,void 0!==e.strings&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in t)t[e]&&!(null===(n=this.st)||void 0===n?void 0:n.has(e))&&this.et.add(e);return this.render(t)}const r=e.element.classList;this.et.forEach(e=>{e in t||(r.remove(e),this.et.delete(e))});for(const e in t){const n=!!t[e];n===this.et.has(e)||(null===(i=this.st)||void 0===i?void 0:i.has(e))||(n?(r.add(e),this.et.add(e)):(r.remove(e),this.et.delete(e)))}return j}}),{H:be}=te,ve=(e,t)=>{var n,i;const r=e._$AN;if(void 0===r)return!1;for(const e of r)null===(i=(n=e)._$AO)||void 0===i||i.call(n,t,!1),ve(e,t);return!0},we=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},Ce=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Se(t)}};function xe(e){void 0!==this._$AN?(we(this),this._$AM=e,Ce(this)):this._$AM=e}function $e(e,t=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(i))for(let e=n;e<i.length;e++)ve(i[e],!1),we(i[e]);else null!=i&&(ve(i,!1),we(i));else ve(this,e)}const Se=e=>{var t,n,i,r;e.type==fe&&(null!==(t=(i=e)._$AP)&&void 0!==t||(i._$AP=$e),null!==(n=(r=e)._$AQ)&&void 0!==n||(r._$AQ=xe))};class Ae extends me{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Ce(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,i;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),t&&(ve(this,e),we(this))}setValue(e){if((e=>void 0===e.strings)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const Ee=()=>new Te;class Te{}const ke=new WeakMap,_e=ge(class extends Ae{render(e){return F}update(e,[t]){var n;const i=t!==this.U;return i&&void 0!==this.U&&this.ot(void 0),(i||this.rt!==this.lt)&&(this.U=t,this.ht=null===(n=e.options)||void 0===n?void 0:n.host,this.ot(this.lt=e.element)),F}ot(e){var t;if("function"==typeof this.U){const n=null!==(t=this.ht)&&void 0!==t?t:globalThis;let i=ke.get(n);void 0===i&&(i=new WeakMap,ke.set(n,i)),void 0!==i.get(this.U)&&this.U.call(this.ht,void 0),i.set(this.U,e),void 0!==e&&this.U.call(this.ht,e)}else this.U.value=e}get rt(){var e,t,n;return"function"==typeof this.U?null===(t=ke.get(null!==(e=this.ht)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.U):null===(n=this.U)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),Oe=u`
|
|
1
|
+
var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){return i(e,o,r)}},79:(e,t,n)=>{var i=n(3702),r=n(80),o=n(4739),a=n(8655),s=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},80:(e,t,n)=>{var i=n(6025),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},85:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(1,arguments);var n=(0,i.default)(e),s=(0,r.default)(n,t).getTime()-(0,o.default)(n,t).getTime();return Math.round(s/l)+1};var i=s(n(5039)),r=s(n(930)),o=s(n(9799)),a=s(n(427));function s(e){return e&&e.__esModule?e:{default:e}}var l=6048e5;e.exports=t.default},104:(e,t,n)=>{var i=n(3661);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},170:(e,t,n)=>{var i=n(6440);function r(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&i(e,this,t)}var a=o.prototype;a.append=function(e,t){this._pairs.push([e,t])},a.toString=function(e){var t=e?function(t){return e.call(this,t,r)}:r;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},e.exports=o},243:e=>{e.exports=FormData},270:(e,t,n)=>{var i=n(7068),r=n(346);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,o,a,e,s))}},289:(e,t,n)=>{var i=n(2651);e.exports=function(e){return i(this,e).get(e)}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var r=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}},e.exports=t.default},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},521:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=(0,i.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),s=n-o;return Math.floor(s/a)+1};var i=o(n(5039)),r=o(n(427));function o(e){return e&&e.__esModule?e:{default:e}}var a=864e5;e.exports=t.default},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},583:(e,t,n)=>{var i=n(7237),r=n(7255),o=n(8586),a=n(7797);e.exports=function(e){return o(e)?i(a(e)):r(e)}},620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(8963))&&i.__esModule?i:{default:i};var o={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return(0,r.default)("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,r.default)(n+1,2)},d:function(e,t){return(0,r.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,r.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,r.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,r.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,r.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return(0,r.default)(o,t.length)}};t.default=o,e.exports=t.default},631:(e,t,n)=>{var i=n(8077),r=n(9326);e.exports=function(e,t){return null!=e&&r(e,t,i)}},641:(e,t,n)=>{var i=n(6649),r=n(5950);e.exports=function(e,t){return e&&i(e,t,r)}},659:(e,t,n)=>{var i=n(1873),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var r=a.call(e);return i&&(t?e[s]=n:delete e[s]),r}},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var a,s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}},e.exports=t.default},689:(e,t,n)=>{var i=n(2),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=i(e),d=u.length;if(d!=i(t).length&&!l)return!1;for(var c=d;c--;){var h=u[c];if(!(l?h in t:r.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++c<d;){var y=e[h=u[c]],b=t[h];if(o)var v=l?o(b,y,h,t,e,s):o(y,b,h,e,t,s);if(!(void 0===v?y===b||a(y,b,n,o,s):v)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=e.constructor,C=t.constructor;w==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof C&&C instanceof C||(g=!1)}return s.delete(e),s.delete(t),g}},695:(e,t,n)=>{var i=n(8096),r=n(2428),o=n(6449),a=n(3656),s=n(361),l=n(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),d=!n&&r(e),c=!n&&!d&&a(e),h=!n&&!d&&!c&&l(e),p=n||d||c||h,f=p?i(e.length,String):[],g=f.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||c&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},756:(e,t,n)=>{var i=n(3805);e.exports=function(e){return e==e&&!i(e)}},776:(e,t,n)=>{var i=n(756),r=n(5950);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,i(a)]}return t}},786:(e,t,n)=>{e.exports=n(1894)},828:(e,t,n)=>{var i=n(4647),r=n(3222),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=r(e))&&e.replace(o,i).replace(a,"")}},882:e=>{e.exports=function(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}},909:(e,t,n)=>{var i=n(641),r=n(8329)(i);e.exports=r},930:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,o.default)(s),u=null==n.weekStartsOn?l:(0,o.default)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,i.default)(e),c=d.getUTCDay(),h=(c<u?7:0)+c-u;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d};var i=a(n(5039)),r=a(n(427)),o=a(n(9784));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},945:(e,t,n)=>{var i=n(79),r=n(8223),o=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!r||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},1042:(e,t,n)=>{var i=n(6110)(Object,"create");e.exports=i},1074:e=>{e.exports=function(e){return e.split("")}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1175:(e,t,n)=>{var i=n(6025);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},1287:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(e,t,i){var r,o=n[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r};t.default=i,e.exports=t.default},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1420:(e,t,n)=>{var i=n(79);e.exports=function(){this.__data__=new i,this.size=0}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},1545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var i,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[s]}return i[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},1549:(e,t,n)=>{var i=n(2032),r=n(3862),o=n(6721),a=n(2749),s=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},1601:e=>{e.exports=function(e){return e[1]}},1733:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},1769:(e,t,n)=>{var i=n(6449),r=n(8586),o=n(1802),a=n(3222);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:o(a(e))}},1799:(e,t,n)=>{var i=n(7217),r=n(270);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var d=(u=n[a])[0],c=e[d],h=u[1];if(l&&u[2]){if(void 0===c&&!(d in e))return!1}else{var p=new i;if(o)var f=o(c,h,d,e,t,p);if(!(void 0===f?r(h,c,3,o,p):f))return!1}}return!0}},1802:(e,t,n)=>{var i=n(2224),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=i(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,i,r){t.push(i?r.replace(o,"$1"):n||e)}),t});e.exports=a},1873:(e,t,n)=>{var i=n(9325).Symbol;e.exports=i},1882:(e,t,n)=>{var i=n(2552),r=n(3805);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1894:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},1986:(e,t,n)=>{var i=n(1873),r=n(7828),o=n(5288),a=n(5911),s=n(317),l=n(4247),u=i?i.prototype:void 0,d=u?u.valueOf:void 0;e.exports=function(e,t,n,i,u,c,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!c(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&i;if(p||(p=l),e.size!=t.size&&!f)return!1;var g=h.get(e);if(g)return g==t;i|=2,h.set(e,t);var m=a(p(e),p(t),i,u,c,h);return h.delete(e),m;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},2e3:(e,t,n)=>{var i=n(3945),r=n(2429),o=n(5389),a=n(6449);e.exports=function(e,t){return function(n,s){var l=a(n)?i:r,u=t?t():{};return l(n,e,o(s,2),u)}}},2002:(e,t,n)=>{var i=n(170);e.exports="undefined"!=typeof URLSearchParams?URLSearchParams:i},2012:(e,t,n)=>{var i=n(9516),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(i.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=i.trim(e.slice(0,o)).toLowerCase(),n=i.trim(e.slice(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},2013:(e,t,n)=>{var i=n(3360),r=n(2e3),o=Object.prototype.hasOwnProperty,a=r(function(e,t,n){o.call(e,n)?e[n].push(t):i(e,n,[t])});e.exports=a},2032:(e,t,n)=>{var i=n(1042);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},2036:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(1,arguments);var n=(0,i.default)(e),s=n.getUTCFullYear(),l=t||{},u=l.locale,d=u&&u.options&&u.options.firstWeekContainsDate,c=null==d?1:(0,a.default)(d),h=null==l.firstWeekContainsDate?c:(0,a.default)(l.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(s+1,0,h),p.setUTCHours(0,0,0,0);var f=(0,o.default)(p,t),g=new Date(0);g.setUTCFullYear(s,0,h),g.setUTCHours(0,0,0,0);var m=(0,o.default)(g,t);return n.getTime()>=f.getTime()?s+1:n.getTime()>=m.getTime()?s:s-1};var i=s(n(5039)),r=s(n(427)),o=s(n(930)),a=s(n(9784));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2054:e=>{var t="\\ud800-\\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")"+"?",u="[\\ufe0e\\ufe0f]?",d=u+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+l+")*"),c="(?:"+[o+i+"?",i,a,s,n].join("|")+")",h=RegExp(r+"(?="+r+")|"+c+d,"g");e.exports=function(e){return e.match(h)||[]}},2193:(e,t,n)=>{var i=n(8984),r=n(5861),o=n(2428),a=n(6449),s=n(4894),l=n(3656),u=n(5527),d=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||d(e)||o(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!i(e).length;for(var n in e)if(c.call(e,n))return!1;return!0}},2199:(e,t,n)=>{var i=n(4528),r=n(6449);e.exports=function(e,t,n){var o=t(e);return r(e)?o:i(o,n(e))}},2224:(e,t,n)=>{var i=n(104);e.exports=function(e){var t=i(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},2225:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\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",a="["+o+"]",s="\\d+",l="["+n+"]",u="["+i+"]",d="[^"+t+o+s+n+i+r+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+r+"]",f="(?:"+u+"|"+d+")",g="(?:"+p+"|"+d+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",y="(?:['’](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+b+("(?:\\u200d(?:"+["[^"+t+"]",c,h].join("|")+")"+v+b+")*"),C="(?:"+[l,c,h].join("|")+")"+w,x=RegExp([p+"?"+u+"+"+m+"(?="+[a,p,"$"].join("|")+")",g+"+"+y+"(?="+[a,p+f,"$"].join("|")+")",p+"?"+f+"+"+m,p+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,C].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},2428:(e,t,n)=>{var i=n(7534),r=n(346),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},2429:(e,t,n)=>{var i=n(909);e.exports=function(e,t,n,r){return i(e,function(e,i,o){t(r,e,n(e),o)}),r}},2461:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(1287)),r=l(n(4994)),o=l(n(6376)),a=l(n(2568)),s=l(n(5024));function l(e){return e&&e.__esModule?e:{default:e}}var u={code:"en-US",formatDistance:i.default,formatLong:r.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=u,e.exports=t.default},2485:(e,t)=>{var n;!function(){var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)i.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},2505:(e,t,n)=>{e.exports=n(8015)},2507:(e,t,n)=>{var i=n(8754),r=n(9698),o=n(3912),a=n(3222);e.exports=function(e){return function(t){t=a(t);var n=r(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?i(n,1).join(""):t.slice(1);return s[e]()+l}}},2552:(e,t,n)=>{var i=n(1873),r=n(659),o=n(9350),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):o(e)}},2568:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(1545))&&i.__esModule?i:{default:i};var o={ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,r.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=o,e.exports=t.default},2651:(e,t,n)=>{var i=n(4218);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},2749:(e,t,n)=>{var i=n(1042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},2804:(e,t,n)=>{var i=n(6110)(n(9325),"Promise");e.exports=i},2881:(e,t,n)=>{var i=n(9516),r=n(7412);e.exports=function(e,t,n,o){var a=this||r;return i.forEach(o,function(i){e=i.call(a,e,t,n)}),e}},2949:(e,t,n)=>{var i=n(2651);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},3040:(e,t,n)=>{var i=n(1549),r=n(79),o=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},3076:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t};var i=o(n(5039)),r=o(n(427));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3191:(e,t,n)=>{var i=n(8563);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;this.promise.then(function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,i=new Promise(function(e){n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,r,o){n.reason||(n.reason=new i(e,r,o),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},3221:e=>{e.exports=function(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(o[l],l,o))break}return t}}},3222:(e,t,n)=>{var i=n(7556);e.exports=function(e){return null==e?"":i(e)}},3243:(e,t,n)=>{var i=n(6110),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},3345:e=>{e.exports=function(){return[]}},3360:(e,t,n)=>{var i=n(3243);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3471:(e,t,n)=>{var i=n(9516);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.clear=function(){this.handlers&&(this.handlers=[])},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},3488:e=>{e.exports=function(e){return e}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},3650:(e,t,n)=>{var i=n(4335)(Object.keys,Object);e.exports=i},3656:(e,t,n)=>{e=n.nmd(e);var i=n(9325),r=n(9935),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?i.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l},3661:(e,t,n)=>{var i=n(3040),r=n(7670),o=n(289),a=n(4509),s=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},3663:(e,t,n)=>{var i=n(1799),r=n(776),o=n(7197);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3729:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}},3786:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,i.default)(t);return(0,r.default)(e,-n)};var i=a(n(9784)),r=a(n(5011)),o=a(n(427));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},3864:e=>{e.exports=function(e){return!(!e||!e.__CANCEL__)}},3912:(e,t,n)=>{var i=n(1074),r=n(9698),o=n(2054);e.exports=function(e){return r(e)?o(e):i(e)}},3916:(e,t,n)=>{var i=n(3360),r=n(641),o=n(5389);e.exports=function(e,t){var n={};return t=o(t,3),r(e,function(e,r,o){i(n,r,t(e,r,o))}),n}},3945:e=>{e.exports=function(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var a=e[r];t(i,a,n(a),e)}return i}},3948:(e,t,n)=>{var i=n(9516);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},3950:e=>{e.exports=function(){}},4058:(e,t,n)=>{var i=n(4792),r=n(5539)(function(e,t,n){return t=t.toLowerCase(),e+(n?i(t):t)});e.exports=r},4124:(e,t,n)=>{var i=n(5539)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=i},4202:(e,t,n)=>{var i=n(9516);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},4248:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},4298:(e,t,n)=>{var i=n(9516);e.exports=function(e){function t(e,n,r,o){var a=e[o++];if("__proto__"===a)return!0;var s=Number.isFinite(+a),l=o>=e.length;return a=!a&&i.isArray(r)?r.length:a,l?(i.hasOwnProperty(r,a)?r[a]=[r[a],n]:r[a]=n,!s):(r[a]&&i.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&i.isArray(r[a])&&(r[a]=function(e){var t,n,i={},r=Object.keys(e),o=r.length;for(t=0;t<o;t++)i[n=r[t]]=e[n];return i}(r[a])),!s)}if(i.isFormData(e)&&i.isFunction(e.entries)){var n={};return i.forEachEntry(e,function(e,r){t(function(e){return i.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]})}(e),r,n,0)}),n}return null}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4394:(e,t,n)=>{var i=n(2552),r=n(346);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},4490:(e,t,n)=>{var i=n(9516),r=n(2881),o=n(3864),a=n(7412),s=n(8563),l=n(7018);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,null,e.transformRequest),l(e.headers,"Accept"),l(e.headers,"Content-Type"),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return u(e),t.data=r.call(e,t.data,t.headers,t.status,e.transformResponse),t},function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))),Promise.reject(t)})}},4509:(e,t,n)=>{var i=n(2651);e.exports=function(e){return i(this,e).has(e)}},4528:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},4552:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},4647:(e,t,n)=>{var i=n(4552)({À:"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",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=i},4664:(e,t,n)=>{var i=n(9770),r=n(3345),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),i(a(e),function(t){return o.call(e,t)}))}:r;e.exports=s},4680:e=>{e.exports=function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}},4739:(e,t,n)=>{var i=n(6025);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},4792:(e,t,n)=>{var i=n(3222),r=n(5808);e.exports=function(e){return r(i(e).toLowerCase())}},4840:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},4841:(e,t,n)=>{var i=n(9641).version,r=n(5845),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){return function(o,s,l){if(!1===e)throw new r(function(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(s," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!a[s]&&(a[s]=!0),!e||e(o,s,l)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),o=i.length;o-- >0;){var a=i[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new r("option "+a+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}},validators:o}},4894:(e,t,n)=>{var i=n(1882),r=n(294);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},4896:e=>{e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},4901:(e,t,n)=>{var i=n(2552),r=n(294),o=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!a[i(e)]}},4932:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}},4994:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(9059))&&i.__esModule?i:{default:i};var o={date:(0,r.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=o,e.exports=t.default},5011:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,r.default)(e).getTime(),a=(0,i.default)(t);return new Date(n+a)};var i=a(n(9784)),r=a(n(5039)),o=a(n(427));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5019:(e,t,n)=>{var i=n(9516);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},5024:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(663));function r(e){return e&&e.__esModule?e:{default:e}}var o={ordinalNumber:(0,r(n(311)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,i.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,i.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=o,e.exports=t.default},5039:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):new Date(NaN)};var i,r=(i=n(427))&&i.__esModule?i:{default:i};e.exports=t.default},5042:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=d(n(521)),r=d(n(9638)),o=d(n(5891)),a=d(n(85)),s=d(n(2036)),l=d(n(8963)),u=d(n(620));function d(e){return e&&e.__esModule?e:{default:e}}var c="midnight",h="noon",p="morning",f="afternoon",g="evening",m="night",y={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return u.default.y(e,t)},Y:function(e,t,n,i){var r=(0,s.default)(e,i),o=r>0?r:1-r;if("YY"===t){var a=o%100;return(0,l.default)(a,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,l.default)(o,t.length)},R:function(e,t){var n=(0,o.default)(e);return(0,l.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,l.default)(n,t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return(0,l.default)(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return(0,l.default)(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return u.default.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return(0,l.default)(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var r=(0,a.default)(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.default)(r,t.length)},I:function(e,t,n){var i=(0,r.default)(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):(0,l.default)(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.default.d(e,t)},D:function(e,t,n){var r=(0,i.default)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,l.default)(r,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,l.default)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,l.default)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return(0,l.default)(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,r=e.getUTCHours();switch(i=12===r?h:0===r?c:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,r=e.getUTCHours();switch(i=r>=17?g:r>=12?f:r>=4?p:m,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return u.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.default.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):(0,l.default)(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):(0,l.default)(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.default.s(e,t)},S:function(e,t){return u.default.S(e,t)},X:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return v(r);case"XXXX":case"XX":return w(r);default:return w(r,":")}},x:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return v(r);case"xxxx":case"xx":return w(r);default:return w(r,":")}},O:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(r,":");default:return"GMT"+w(r,":")}},z:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(r,":");default:return"GMT"+w(r,":")}},t:function(e,t,n,i){var r=i._originalDate||e,o=Math.floor(r.getTime()/1e3);return(0,l.default)(o,t.length)},T:function(e,t,n,i){var r=(i._originalDate||e).getTime();return(0,l.default)(r,t.length)}};function b(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+(0,l.default)(o,2)}function v(e,t){return e%60==0?(e>0?"-":"+")+(0,l.default)(Math.abs(e)/60,2):w(e,t)}function w(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+(0,l.default)(Math.floor(r/60),2)+n+(0,l.default)(r%60,2)}var C=y;t.default=C,e.exports=t.default},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],u=i.base?l[0]+i.base:l[0],d=o[u]||0,c="".concat(u," ").concat(d);o[u]=d+1;var h=n(c),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var f=r(p,i);i.byIndex=s,t.splice(s,0,{identifier:c,updater:f,references:1})}a.push(c)}return a}function r(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=i(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var l=i(e,r),u=0;u<o.length;u++){var d=n(o[u]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}o=l}}},5083:(e,t,n)=>{var i=n(1882),r=n(7296),o=n(3805),a=n(7473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,h=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(i(e)?h:s).test(a(e))}},5102:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)};var i,r=(i=n(427))&&i.__esModule?i:{default:i};e.exports=t.default},5155:(e,t,n)=>{var i=n(9516),r=n(9106),o=n(3471),a=n(4490),s=n(5343),l=n(9615),u=n(4841),d=u.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1);var r=t.paramsSerializer;null!=r&&(i.isFunction(r)?t.paramsSerializer={serialize:r}:u.assertOptions(r,{encode:d.function,serialize:d.function},!0));var o=[],l=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});var c,h=[];if(this.interceptors.response.forEach(function(e){h.push(e.fulfilled,e.rejected)}),!l){var p=[a,void 0];for(Array.prototype.unshift.apply(p,o),p=p.concat(h),c=Promise.resolve(t);p.length;)c=c.then(p.shift(),p.shift());return c}for(var f=t;o.length;){var g=o.shift(),m=o.shift();try{f=g(f)}catch(e){m(e);break}}try{c=a(f)}catch(e){return Promise.reject(e)}for(;h.length;)c=c.then(h.shift(),h.shift());return c},c.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url,e.allowAbsoluteUrls);return r(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),i.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}c.prototype[e]=t(),c.prototype[e+"Form"]=t(!0)}),e.exports=c},5160:e=>{e.exports=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i<r;)o[i]=e[i+t];return o}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5343:(e,t,n)=>{var i=n(9516);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isEmptyObject(t)?i.merge({},e):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=u[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)}),n}},5389:(e,t,n)=>{var i=n(3663),r=n(7978),o=n(3488),a=n(6449),s=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?r(e[0],e[1]):i(e):s(e)}},5434:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},5481:(e,t,n)=>{var i=n(9325)["__core-js_shared__"];e.exports=i},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5539:(e,t,n)=>{var i=n(882),r=n(828),o=n(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return i(o(r(t).replace(a,"")),e,"")}}},5541:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(1601),r=n.n(i),o=n(6314),a=n.n(o)()(r());a.push([e.id,"@media screen and (min-width: 768px) {\n .meetelise-chat.pane.launcher__desktop {\n right: -32px;\n }\n}\n",""]);const s=a},5580:(e,t,n)=>{var i=n(6110)(n(9325),"DataView");e.exports=i},5592:(e,t,n)=>{var i=n(9516),r=n(7522),o=n(3948),a=n(9106),s=n(9615),l=n(2012),u=n(4202),d=n(4896),c=n(5845),h=n(8563),p=n(5656),f=n(5721);e.exports=function(e){return new Promise(function(t,n){var g,m=e.data,y=e.headers,b=e.responseType,v=e.withXSRFToken;function w(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}i.isFormData(m)&&i.isStandardBrowserEnv()&&delete y["Content-Type"];var C=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",$=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(x+":"+$)}var S=s(e.baseURL,e.url,e.allowAbsoluteUrls);function A(){if(C){var i="getAllResponseHeaders"in C?l(C.getAllResponseHeaders()):null,o={data:b&&"text"!==b&&"json"!==b?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:i,config:e,request:C};r(function(e){t(e),w()},function(e){n(e),w()},o),C=null}}if(C.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),C.timeout=e.timeout,"onloadend"in C?C.onloadend=A:C.onreadystatechange=function(){C&&4===C.readyState&&(0!==C.status||C.responseURL&&0===C.responseURL.indexOf("file:"))&&setTimeout(A)},C.onabort=function(){C&&(n(new c("Request aborted",c.ECONNABORTED,e,C)),C=null)},C.onerror=function(){n(new c("Network Error",c.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new c(t,i.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,e,C)),C=null},i.isStandardBrowserEnv()&&(v&&i.isFunction(v)&&(v=v(e)),v||!1!==v&&u(S))){var E=e.xsrfHeaderName&&e.xsrfCookieName&&o.read(e.xsrfCookieName);E&&(y[e.xsrfHeaderName]=E)}"setRequestHeader"in C&&i.forEach(y,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete y[t]:C.setRequestHeader(t,e)}),i.isUndefined(e.withCredentials)||(C.withCredentials=!!e.withCredentials),b&&"json"!==b&&(C.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&C.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&C.upload&&C.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(t){C&&(n(!t||t.type?new h(null,e,C):t),C.abort(),C=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),m||!1===m||0===m||""===m||(m=null);var T=p(S);T&&-1===f.protocols.indexOf(T)?n(new c("Unsupported protocol "+T+":",c.ERR_BAD_REQUEST,e)):C.send(m)})}},5656:e=>{e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5721:(e,t,n)=>{e.exports=n(9490)},5749:(e,t,n)=>{var i=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},5808:(e,t,n)=>{var i=n(2507)("toUpperCase");e.exports=i},5816:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(1,arguments),!(0,i.default)(e)&&"number"!=typeof e)return!1;var t=(0,r.default)(e);return!isNaN(Number(t))};var i=a(n(5102)),r=a(n(5039)),o=a(n(427));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5845:(e,t,n)=>{var i=n(9516);function r(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(e){a[e]={value:e}}),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,n,a,s,l){var u=Object.create(o);return i.toFlatObject(e,u,function(e){return e!==Error.prototype}),r.call(u,e.message,t,n,a,s),u.cause=e,u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},5861:(e,t,n)=>{var i=n(5580),r=n(8223),o=n(2804),a=n(6545),s=n(8303),l=n(2552),u=n(7473),d="[object Map]",c="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",g=u(i),m=u(r),y=u(o),b=u(a),v=u(s),w=l;(i&&w(new i(new ArrayBuffer(1)))!=f||r&&w(new r)!=d||o&&w(o.resolve())!=c||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?u(n):"";if(i)switch(i){case g:return f;case m:return d;case y:return c;case b:return h;case v:return p}return t}),e.exports=w},5891:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.default)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=(0,o.default)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1};var i=a(n(5039)),r=a(n(427)),o=a(n(3076));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5911:(e,t,n)=>{var i=n(8859),r=n(4248),o=n(9219);e.exports=function(e,t,n,a,s,l){var u=1&n,d=e.length,c=t.length;if(d!=c&&!(u&&c>d))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,g=!0,m=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++f<d;){var y=e[f],b=t[f];if(a)var v=u?a(b,y,f,t,e,l):a(y,b,f,e,t,l);if(void 0!==v){if(v)continue;g=!1;break}if(m){if(!r(t,function(e,t){if(!o(m,t)&&(y===e||s(y,e,n,a,l)))return m.push(t)})){g=!1;break}}else if(y!==b&&!s(y,b,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},5950:(e,t,n)=>{var i=n(695),r=n(8984),o=n(4894);e.exports=function(e){return o(e)?i(e):r(e)}},6009:(e,t,n)=>{e=n.nmd(e);var i=n(4840),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&i.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},6025:(e,t,n)=>{var i=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},6069:(e,t,n)=>{var i=n(9516),r=n(6440),o=n(5721);e.exports=function(e,t){return r(e,new o.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return o.isNode&&i.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}},6110:(e,t,n)=>{var i=n(5083),r=n(392);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<e.length;u++){var d=[].concat(e[u]);i&&a[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},6353:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,h.default)(2,arguments);var p=String(t),v=n||{},w=v.locale||r.default,C=w.options&&w.options.firstWeekContainsDate,x=null==C?1:(0,c.default)(C),$=null==v.firstWeekContainsDate?x:(0,c.default)(v.firstWeekContainsDate);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=w.options&&w.options.weekStartsOn,A=null==S?0:(0,c.default)(S),E=null==v.weekStartsOn?A:(0,c.default)(v.weekStartsOn);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!w.localize)throw new RangeError("locale must contain localize property");if(!w.formatLong)throw new RangeError("locale must contain formatLong property");var T=(0,a.default)(e);if(!(0,i.default)(T))throw new RangeError("Invalid time value");var k=(0,u.default)(T),_=(0,o.default)(T,k),O={firstWeekContainsDate:$,weekStartsOn:E,locale:w,_originalDate:T},P=p.match(g).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,l.default[t])(e,w.formatLong,O):e}).join("").match(f).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return n.match(m)[1].replace(y,"'");var r=s.default[i];if(r)return!v.useAdditionalWeekYearTokens&&(0,d.isProtectedWeekYearToken)(n)&&(0,d.throwProtectedError)(n,t,e),!v.useAdditionalDayOfYearTokens&&(0,d.isProtectedDayOfYearToken)(n)&&(0,d.throwProtectedError)(n,t,e),r(_,n,w.localize,O);if(i.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("");return P};var i=p(n(5816)),r=p(n(2461)),o=p(n(3786)),a=p(n(5039)),s=p(n(5042)),l=p(n(6680)),u=p(n(9720)),d=n(9417),c=p(n(9784)),h=p(n(427));function p(e){return e&&e.__esModule?e:{default:e}}var f=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;e.exports=t.default},6376:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i=function(e,t,i,r){return n[e]};t.default=i,e.exports=t.default},6440:(e,t,n)=>{var i=n(9516),r=n(5845),o=n(786);function a(e){return i.isPlainObject(e)||i.isArray(e)}function s(e){return i.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,n){return e?e.concat(t).map(function(e,t){return e=s(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}var u=i.toFlatObject(i,{},null,function(e){return/^is[A-Z]/.test(e)});e.exports=function(e,t,n){if(!i.isObject(e))throw new TypeError("target must be an object");t=t||new(o||FormData);var d,c=(n=i.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!i.isUndefined(t[e])})).metaTokens,h=n.visitor||y,p=n.dots,f=n.indexes,g=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((d=t)&&i.isFunction(d.append)&&"FormData"===d[Symbol.toStringTag]&&d[Symbol.iterator]);if(!i.isFunction(h))throw new TypeError("visitor must be a function");function m(e){if(null===e)return"";if(i.isDate(e))return e.toISOString();if(!g&&i.isBlob(e))throw new r("Blob is not supported. Use a Buffer instead.");return i.isArrayBuffer(e)||i.isTypedArray(e)?g&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function y(e,n,r){var o=e;if(e&&!r&&"object"==typeof e)if(i.endsWith(n,"{}"))n=c?n:n.slice(0,-2),e=JSON.stringify(e);else if(i.isArray(e)&&function(e){return i.isArray(e)&&!e.some(a)}(e)||i.isFileList(e)||i.endsWith(n,"[]")&&(o=i.toArray(e)))return n=s(n),o.forEach(function(e,r){!i.isUndefined(e)&&null!==e&&t.append(!0===f?l([n],r,p):null===f?n:n+"[]",m(e))}),!1;return!!a(e)||(t.append(l(r,n,p),m(e)),!1)}var b=[],v=Object.assign(u,{defaultVisitor:y,convertValue:m,isVisitable:a});if(!i.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!i.isUndefined(n)){if(-1!==b.indexOf(n))throw Error("Circular reference detected in "+r.join("."));b.push(n),i.forEach(n,function(n,o){!0===(!(i.isUndefined(n)||null===n)&&h.call(t,n,i.isString(o)?o.trim():o,r,v))&&e(n,r?r.concat(o):[o])}),b.pop()}}(e),t}},6449:e=>{var t=Array.isArray;e.exports=t},6545:(e,t,n)=>{var i=n(6110)(n(9325),"Set");e.exports=i},6645:(e,t,n)=>{var i=n(1733),r=n(5434),o=n(3222),a=n(2225);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?r(e)?a(e):i(e):e.match(t)||[]}},6649:(e,t,n)=>{var i=n(3221)();e.exports=i},6680:(e,t)=>{function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function i(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={p:i,P:function(e,t){var r,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return n(e,t);switch(a){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",n(a,t)).replace("{{time}}",i(s,t))}},o=r;t.default=o,e.exports=t.default},6721:(e,t,n)=>{var i=n(1042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},7018:(e,t,n)=>{var i=n(9516);e.exports=function(e,t){i.forEach(e,function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])})}},7035:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)({},e)};var i,r=(i=n(7390))&&i.__esModule?i:{default:i};e.exports=t.default},7068:(e,t,n)=>{var i=n(7217),r=n(5911),o=n(1986),a=n(689),s=n(5861),l=n(6449),u=n(3656),d=n(7167),c="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var b=l(e),v=l(t),w=b?h:s(e),C=v?h:s(t),x=(w=w==c?p:w)==p,$=(C=C==c?p:C)==p,S=w==C;if(S&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(S&&!x)return y||(y=new i),b||d(e)?r(e,t,n,g,m,y):o(e,t,w,n,g,m,y);if(!(1&n)){var A=x&&f.call(e,"__wrapped__"),E=$&&f.call(t,"__wrapped__");if(A||E){var T=A?e.value():e,k=E?t.value():t;return y||(y=new i),m(T,k,n,g,y)}}return!!S&&(y||(y=new i),a(e,t,n,g,m,y))}},7167:(e,t,n)=>{var i=n(4901),r=n(7301),o=n(6009),a=o&&o.isTypedArray,s=a?r(a):i;e.exports=s},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},7217:(e,t,n)=>{var i=n(79),r=n(1420),o=n(938),a=n(3605),s=n(9817),l=n(945);function u(e){var t=this.__data__=new i(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},7237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255:(e,t,n)=>{var i=n(7422);e.exports=function(e){return function(t){return i(t,e)}}},7296:(e,t,n)=>{var i,r=n(5481),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},7390:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},e.exports=t.default},7412:(e,t,n)=>{var i=n(9516),r=n(7018),o=n(5845),a=n(4896),s=n(6440),l=n(6069),u=n(5721),d=n(4298),c={"Content-Type":"application/x-www-form-urlencoded"};function h(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var p,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(p=n(5592)),p),transformRequest:[function(e,t){r(t,"Accept"),r(t,"Content-Type");var n,o=t&&t["Content-Type"]||"",a=o.indexOf("application/json")>-1,u=i.isObject(e);if(u&&i.isHTMLForm(e)&&(e=new FormData(e)),i.isFormData(e))return a?JSON.stringify(d(e)):e;if(i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return h(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(u){if(-1!==o.indexOf("application/x-www-form-urlencoded"))return l(e,this.formSerializer).toString();if((n=i.isFileList(e))||o.indexOf("multipart/form-data")>-1){var c=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,c&&new c,this.formSerializer)}}return u||a?(h(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&i.isString(e)&&(n&&!this.responseType||r)){var a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:u.classes.FormData,Blob:u.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(e){f.headers[e]={}}),i.forEach(["post","put","patch"],function(e){f.headers[e]=i.merge(c)}),e.exports=f},7422:(e,t,n)=>{var i=n(1769),r=n(7797);e.exports=function(e,t){for(var n=0,o=(t=i(t,e)).length;null!=e&&n<o;)e=e[r(t[n++])];return n&&n==o?e:void 0}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7522:(e,t,n)=>{var i=n(5845);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},7534:(e,t,n)=>{var i=n(2552),r=n(346);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},7556:(e,t,n)=>{var i=n(1873),r=n(4932),o=n(6449),a=n(4394),s=i?i.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7659:e=>{var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},7670:(e,t,n)=>{var i=n(2651);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},7674:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,r.default)(n)};var i=a(n(5891)),r=a(n(3076)),o=a(n(427));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7797:(e,t,n)=>{var i=n(4394);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7825:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7828:(e,t,n)=>{var i=n(9325).Uint8Array;e.exports=i},7978:(e,t,n)=>{var i=n(270),r=n(8156),o=n(631),a=n(8586),s=n(756),l=n(7197),u=n(7797);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=r(n,e);return void 0===a&&a===t?o(n,e):i(t,a,3)}}},7980:e=>{e.exports=function(e){return function(t){return e.apply(null,t)}}},8015:(e,t,n)=>{var i=n(9516),r=n(9012),o=n(5155),a=n(5343),s=n(7412),l=n(4298);var u=function e(t){var n=new o(t),s=r(o.prototype.request,n);return i.extend(s,o.prototype,n),i.extend(s,n),s.create=function(n){return e(a(t,n))},s}(s);u.Axios=o,u.CanceledError=n(8563),u.CancelToken=n(3191),u.isCancel=n(3864),u.VERSION=n(9641).version,u.toFormData=n(6440),u.AxiosError=n(5845),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=n(7980),u.isAxiosError=n(5019),u.formToJSON=function(e){return l(i.isHTMLForm(e)?new FormData(e):e)},e.exports=u,e.exports.default=u},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},8096:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},8156:(e,t,n)=>{var i=n(7422);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},8223:(e,t,n)=>{var i=n(6110)(n(9325),"Map");e.exports=i},8303:(e,t,n)=>{var i=n(6110)(n(9325),"WeakMap");e.exports=i},8329:(e,t,n)=>{var i=n(4894);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==r(s[a],a,s););return n}}},8563:(e,t,n)=>{var i=n(5845);function r(e,t,n){i.call(this,null==e?"canceled":e,i.ERR_CANCELED,t,n),this.name="CanceledError"}n(9516).inherits(r,i,{__CANCEL__:!0}),e.exports=r},8586:(e,t,n)=>{var i=n(6449),r=n(4394),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},8655:(e,t,n)=>{var i=n(6025);e.exports=function(e){return i(this.__data__,e)>-1}},8754:(e,t,n)=>{var i=n(5160);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}},8805:function(e,t,n){e.exports=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function r(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function o(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})}function a(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function c(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),t}var h={exports:{}};!function(e){!function(t,n){var i=Math.pow(2,-24),r=Math.pow(2,32),o=Math.pow(2,53),a={encode:function(e){var t,i=new ArrayBuffer(256),a=new DataView(i),s=0;function l(e){for(var n=i.byteLength,r=s+e;n<r;)n*=2;if(n!==i.byteLength){var o=a;i=new ArrayBuffer(n),a=new DataView(i);for(var l=s+3>>2,u=0;u<l;++u)a.setUint32(4*u,o.getUint32(4*u))}return t=e,a}function u(){s+=t}function d(e){u(l(1).setUint8(s,e))}function c(e){for(var t=l(e.length),n=0;n<e.length;++n)t.setUint8(s+n,e[n]);u()}function h(e,t){t<24?d(e<<5|t):t<256?(d(e<<5|24),d(t)):t<65536?(d(e<<5|25),function(e){u(l(2).setUint16(s,e))}(t)):t<4294967296?(d(e<<5|26),function(e){u(l(4).setUint32(s,e))}(t)):(d(e<<5|27),function(e){var t=e%r,n=(e-t)/r,i=l(8);i.setUint32(s,n),i.setUint32(s+4,t),u()}(t))}if(function e(t){var i;if(!1===t)return d(244);if(!0===t)return d(245);if(null===t)return d(246);if(t===n)return d(247);switch(typeof t){case"number":if(Math.floor(t)===t){if(0<=t&&t<=o)return h(0,t);if(-o<=t&&t<0)return h(1,-(t+1))}return d(251),function(e){u(l(8).setFloat64(s,e))}(t);case"string":var r=[];for(i=0;i<t.length;++i){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(192|a>>6),r.push(128|63&a)):a<55296?(r.push(224|a>>12),r.push(128|a>>6&63),r.push(128|63&a)):(a=(1023&a)<<10,a|=1023&t.charCodeAt(++i),a+=65536,r.push(240|a>>18),r.push(128|a>>12&63),r.push(128|a>>6&63),r.push(128|63&a))}return h(3,r.length),c(r);default:var p;if(Array.isArray(t))for(h(4,p=t.length),i=0;i<p;++i)e(t[i]);else if(t instanceof Uint8Array)h(2,t.length),c(t);else{var f=Object.keys(t);for(h(5,p=f.length),i=0;i<p;++i){var g=f[i];e(g),e(t[g])}}}}(e),"slice"in i)return i.slice(0,s);for(var p=new ArrayBuffer(s),f=new DataView(p),g=0;g<s;++g)f.setUint8(g,a.getUint8(g));return p},decode:function(e,t,o){var a=new DataView(e),s=0;function l(e,t){return s+=t,e}function u(t){return l(new Uint8Array(e,s,t),t)}function d(){return l(a.getUint8(s),1)}function c(){return l(a.getUint16(s),2)}function h(){return l(a.getUint32(s),4)}function p(){return 255===a.getUint8(s)&&(s+=1,!0)}function f(e){if(e<24)return e;if(24===e)return d();if(25===e)return c();if(26===e)return h();if(27===e)return h()*r+h();if(31===e)return-1;throw"Invalid length encoding"}function g(e){var t=d();if(255===t)return-1;var n=f(31&t);if(n<0||t>>5!==e)throw"Invalid indefinite length element";return n}function m(e,t){for(var n=0;n<t;++n){var i=d();128&i&&(i<224?(i=(31&i)<<6|63&d(),t-=1):i<240?(i=(15&i)<<12|(63&d())<<6|63&d(),t-=2):(i=(15&i)<<18|(63&d())<<12|(63&d())<<6|63&d(),t-=3)),i<65536?e.push(i):(i-=65536,e.push(55296|i>>10),e.push(56320|1023&i))}}"function"!=typeof t&&(t=function(e){return e}),"function"!=typeof o&&(o=function(){return n});var y=function e(){var r,h,y=d(),b=y>>5,v=31&y;if(7===b)switch(v){case 25:return function(){var e=new ArrayBuffer(4),t=new DataView(e),n=c(),r=32768&n,o=31744&n,a=1023&n;if(31744===o)o=261120;else if(0!==o)o+=114688;else if(0!==a)return a*i;return t.setUint32(0,r<<16|o<<13|a<<13),t.getFloat32(0)}();case 26:return l(a.getFloat32(s),4);case 27:return l(a.getFloat64(s),8)}if((h=f(v))<0&&(b<2||6<b))throw"Invalid length";switch(b){case 0:return h;case 1:return-1-h;case 2:if(h<0){for(var w=[],C=0;(h=g(b))>=0;)C+=h,w.push(u(h));var x=new Uint8Array(C),$=0;for(r=0;r<w.length;++r)x.set(w[r],$),$+=w[r].length;return x}return u(h);case 3:var S=[];if(h<0)for(;(h=g(b))>=0;)m(S,h);else m(S,h);return String.fromCharCode.apply(null,S);case 4:var A;if(h<0)for(A=[];!p();)A.push(e());else for(A=new Array(h),r=0;r<h;++r)A[r]=e();return A;case 5:var E={};for(r=0;r<h||h<0&&!p();++r)E[e()]=e();return E;case 6:return t(e(),h);case 7:switch(h){case 20:return!1;case 21:return!0;case 22:return null;case 23:return n;default:return o(h)}}}();if(s!==e.byteLength)throw"Remaining bytes";return y}};e.exports?e.exports=a:t.CBOR||(t.CBOR=a)}(d)}(h);var p=h.exports,f={exports:{}};!function(e,t){!function(e){var t="0.1.0",n={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function i(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}function r(e,t){var i=n[t||"all"];return i&&i.test(e)||!1}i.isUUID=r,i.VERSION=t,e.uuid=i,e.isUUID=r}(t),null!==e&&(e.exports=t.uuid)}(f,f.exports);var g=f.exports,m=function(){return g.uuid?g.uuid():g()},y=function(){function e(e){var t,n,i,r,o=e.setup;if(this._PNSDKSuffix={},this.instanceId="pn-".concat(m()),this.secretKey=o.secretKey||o.secret_key,this.subscribeKey=o.subscribeKey||o.subscribe_key,this.publishKey=o.publishKey||o.publish_key,this.sdkName=o.sdkName,this.sdkFamily=o.sdkFamily,this.partnerId=o.partnerId,this.setAuthKey(o.authKey),this.cryptoModule=o.cryptoModule,this.setFilterExpression(o.filterExpression),"string"!=typeof o.origin&&!Array.isArray(o.origin)&&void 0!==o.origin)throw new Error("Origin must be either undefined, a string or a list of strings.");if(this.origin=o.origin||Array.from({length:20},function(e,t){return"ps".concat(t+1,".pndsn.com")}),this.secure=o.ssl||!1,this.restore=o.restore||!1,this.proxy=o.proxy,this.keepAlive=o.keepAlive,this.keepAliveSettings=o.keepAliveSettings,this.autoNetworkDetection=o.autoNetworkDetection||!1,this.dedupeOnSubscribe=o.dedupeOnSubscribe||!1,this.maximumCacheSize=o.maximumCacheSize||100,this.customEncrypt=o.customEncrypt,this.customDecrypt=o.customDecrypt,this.fileUploadPublishRetryLimit=null!==(t=o.fileUploadPublishRetryLimit)&&void 0!==t?t:5,this.useRandomIVs=null===(n=o.useRandomIVs)||void 0===n||n,this.enableEventEngine=null!==(i=o.enableEventEngine)&&void 0!==i&&i,this.maintainPresenceState=null===(r=o.maintainPresenceState)||void 0===r||r,"undefined"!=typeof location&&"https:"===location.protocol&&(this.secure=!0),this.logVerbosity=o.logVerbosity||!1,this.suppressLeaveEvents=o.suppressLeaveEvents||!1,this.announceFailedHeartbeats=o.announceFailedHeartbeats||!0,this.announceSuccessfulHeartbeats=o.announceSuccessfulHeartbeats||!1,this.useInstanceId=o.useInstanceId||!1,this.useRequestId=o.useRequestId||!1,this.requestMessageCountThreshold=o.requestMessageCountThreshold,o.retryConfiguration&&this._setRetryConfiguration(o.retryConfiguration),this.setTransactionTimeout(o.transactionalRequestTimeout||15e3),this.setSubscribeTimeout(o.subscribeRequestTimeout||31e4),this.setSendBeaconConfig(o.useSendBeacon||!0),o.presenceTimeout?this.setPresenceTimeout(o.presenceTimeout):this._presenceTimeout=300,null!=o.heartbeatInterval&&this.setHeartbeatInterval(o.heartbeatInterval),"string"==typeof o.userId){if("string"==typeof o.uuid)throw new Error("Only one of the following configuration options has to be provided: `uuid` or `userId`");this.setUserId(o.userId)}else{if("string"!=typeof o.uuid)throw new Error("One of the following configuration options has to be provided: `uuid` or `userId`");this.setUUID(o.uuid)}this.setCipherKey(o.cipherKey,o)}return e.prototype.getAuthKey=function(){return this.authKey},e.prototype.setAuthKey=function(e){return this.authKey=e,this},e.prototype.setCipherKey=function(e,t,n){var i;return this.cipherKey=e,this.cipherKey&&(this.cryptoModule=null!==(i=t.cryptoModule)&&void 0!==i?i:t.initCryptoModule({cipherKey:this.cipherKey,useRandomIVs:this.useRandomIVs}),n&&(n.cryptoModule=this.cryptoModule)),this},e.prototype.getUUID=function(){return this.UUID},e.prototype.setUUID=function(e){if(!e||"string"!=typeof e||0===e.trim().length)throw new Error("Missing uuid parameter. Provide a valid string uuid");return this.UUID=e,this},e.prototype.getUserId=function(){return this.UUID},e.prototype.setUserId=function(e){if(!e||"string"!=typeof e||0===e.trim().length)throw new Error("Missing or invalid userId parameter. Provide a valid string userId");return this.UUID=e,this},e.prototype.getFilterExpression=function(){return this.filterExpression},e.prototype.setFilterExpression=function(e){return this.filterExpression=e,this},e.prototype.getPresenceTimeout=function(){return this._presenceTimeout},e.prototype.setPresenceTimeout=function(e){return this._presenceTimeout=e>=20?e:20,this.setHeartbeatInterval(this._presenceTimeout/2-1),this},e.prototype.setProxy=function(e){this.proxy=e},e.prototype.getHeartbeatInterval=function(){return this._heartbeatInterval},e.prototype.setHeartbeatInterval=function(e){return this._heartbeatInterval=e,this},e.prototype.getSubscribeTimeout=function(){return this._subscribeRequestTimeout},e.prototype.setSubscribeTimeout=function(e){return this._subscribeRequestTimeout=e,this},e.prototype.getTransactionTimeout=function(){return this._transactionalRequestTimeout},e.prototype.setTransactionTimeout=function(e){return this._transactionalRequestTimeout=e,this},e.prototype.isSendBeaconEnabled=function(){return this._useSendBeacon},e.prototype.setSendBeaconConfig=function(e){return this._useSendBeacon=e,this},e.prototype.getVersion=function(){return"7.6.3"},e.prototype._setRetryConfiguration=function(e){if(e.minimumdelay<2)throw new Error("Minimum delay can not be set less than 2 seconds for retry");if(e.maximumDelay>150)throw new Error("Maximum delay can not be set more than 150 seconds for retry");if(e.maximumDelay&&maximumRetry>6)throw new Error("Maximum retry for exponential retry policy can not be more than 6");if(e.maximumRetry>10)throw new Error("Maximum retry for linear retry policy can not be more than 10");this.retryConfiguration=e},e.prototype._addPnsdkSuffix=function(e,t){this._PNSDKSuffix[e]=t},e.prototype._getPnsdkSuffix=function(e){var t=this;return Object.keys(this._PNSDKSuffix).reduce(function(n,i){return n+e+t._PNSDKSuffix[i]},"")},e}();function b(e){var t=e.replace(/==?$/,""),n=Math.floor(t.length/4*3),i=new ArrayBuffer(n),r=new Uint8Array(i),o=0;function a(){var e=t.charAt(o++),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);if(-1===n)throw new Error("Illegal character at ".concat(o,": ").concat(t.charAt(o-1)));return n}for(var s=0;s<n;s+=3){var l=a(),u=a(),d=a(),c=a(),h=(63&l)<<2|u>>4,p=(15&u)<<4|d>>2,f=(3&d)<<6|c;r[s]=h,64!=d&&(r[s+1]=p),64!=c&&(r[s+2]=f)}return i}function v(e){for(var t,n="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(e),o=r.byteLength,a=o%3,s=o-a,l=0;l<s;l+=3)n+=i[(16515072&(t=r[l]<<16|r[l+1]<<8|r[l+2]))>>18]+i[(258048&t)>>12]+i[(4032&t)>>6]+i[63&t];return 1==a?n+=i[(252&(t=r[s]))>>2]+i[(3&t)<<4]+"==":2==a&&(n+=i[(64512&(t=r[s]<<8|r[s+1]))>>10]+i[(1008&t)>>4]+i[(15&t)<<2]+"="),n}var w,C,x,$,S,A=A||function(e){var t={},n=t.lib={},i=function(){},r=n.Base={extend:function(e){i.prototype=this;var t=new i;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=n.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes;if(e=e.sigBytes,this.clamp(),i%4)for(var r=0;r<e;r++)t[i+r>>>2]|=(n[r>>>2]>>>24-r%4*8&255)<<24-(i+r)%4*8;else if(65535<n.length)for(r=0;r<e;r+=4)t[i+r>>>2]=n[r>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(4294967296*e.random()|0);return new o.init(n,t)}}),a=t.enc={},s=a.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++){var r=t[i>>>2]>>>24-i%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new o.init(n,t/2)}},l=a.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++)n.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new o.init(n,t)}},u=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=n.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,r=n.sigBytes,a=this.blockSize,s=r/(4*a);if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,r=e.min(4*t,r),t){for(var l=0;l<t;l+=a)this._doProcessBlock(i,l);l=i.splice(0,t),n.sigBytes-=r}return new o.init(l,r)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});n.Hasher=d.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new c.HMAC.init(e,n).finalize(t)}}});var c=t.algo={};return t}(Math);!function(e){for(var t=A,n=(r=t.lib).WordArray,i=r.Hasher,r=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},l=2,u=0;64>u;){var d;e:{d=l;for(var c=e.sqrt(d),h=2;h<=c;h++)if(!(d%h)){d=!1;break e}d=!0}d&&(8>u&&(o[u]=s(e.pow(l,.5))),a[u]=s(e.pow(l,1/3)),u++),l++}var p=[];r=r.SHA256=i.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],u=n[5],d=n[6],c=n[7],h=0;64>h;h++){if(16>h)p[h]=0|e[t+h];else{var f=p[h-15],g=p[h-2];p[h]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+p[h-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[h-16]}f=c+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&d)+a[h]+p[h],g=((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+(i&r^i&o^r&o),c=d,d=u,u=l,l=s+f|0,s=o,o=r,r=i,i=f+g|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+c|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=i._createHelper(r),t.HmacSHA256=i._createHmacHelper(r)}(Math),C=(w=A).enc.Utf8,w.algo.HMAC=w.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=C.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),o=this._iKey=t.clone(),a=r.words,s=o.words,l=0;l<n;l++)a[l]^=1549556828,s[l]^=909522486;r.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}}),$=(x=A).lib.WordArray,x.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp(),e=[];for(var r=0;r<n;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a<n;a++)e.push(i.charAt(o>>>6*(3-a)&63));if(t=i.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,n=this._map;(i=n.charAt(64))&&-1!=(i=e.indexOf(i))&&(t=i);for(var i=[],r=0,o=0;o<t;o++)if(o%4){var a=n.indexOf(e.charAt(o-1))<<o%4*2,s=n.indexOf(e.charAt(o))>>>6-o%4*2;i[r>>>2]|=(a|s)<<24-r%4*8,r++}return $.create(i,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){function t(e,t,n,i,r,o,a){return((e=e+(t&n|~t&i)+r+a)<<o|e>>>32-o)+t}function n(e,t,n,i,r,o,a){return((e=e+(t&i|n&~i)+r+a)<<o|e>>>32-o)+t}function i(e,t,n,i,r,o,a){return((e=e+(t^n^i)+r+a)<<o|e>>>32-o)+t}function r(e,t,n,i,r,o,a){return((e=e+(n^(t|~i))+r+a)<<o|e>>>32-o)+t}for(var o=A,a=(l=o.lib).WordArray,s=l.Hasher,l=o.algo,u=[],d=0;64>d;d++)u[d]=4294967296*e.abs(e.sin(d+1))|0;l=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var a=0;16>a;a++){var s=e[l=o+a];e[l]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}a=this._hash.words;var l=e[o+0],d=(s=e[o+1],e[o+2]),c=e[o+3],h=e[o+4],p=e[o+5],f=e[o+6],g=e[o+7],m=e[o+8],y=e[o+9],b=e[o+10],v=e[o+11],w=e[o+12],C=e[o+13],x=e[o+14],$=e[o+15],S=t(S=a[0],T=a[1],E=a[2],A=a[3],l,7,u[0]),A=t(A,S,T,E,s,12,u[1]),E=t(E,A,S,T,d,17,u[2]),T=t(T,E,A,S,c,22,u[3]);S=t(S,T,E,A,h,7,u[4]),A=t(A,S,T,E,p,12,u[5]),E=t(E,A,S,T,f,17,u[6]),T=t(T,E,A,S,g,22,u[7]),S=t(S,T,E,A,m,7,u[8]),A=t(A,S,T,E,y,12,u[9]),E=t(E,A,S,T,b,17,u[10]),T=t(T,E,A,S,v,22,u[11]),S=t(S,T,E,A,w,7,u[12]),A=t(A,S,T,E,C,12,u[13]),E=t(E,A,S,T,x,17,u[14]),S=n(S,T=t(T,E,A,S,$,22,u[15]),E,A,s,5,u[16]),A=n(A,S,T,E,f,9,u[17]),E=n(E,A,S,T,v,14,u[18]),T=n(T,E,A,S,l,20,u[19]),S=n(S,T,E,A,p,5,u[20]),A=n(A,S,T,E,b,9,u[21]),E=n(E,A,S,T,$,14,u[22]),T=n(T,E,A,S,h,20,u[23]),S=n(S,T,E,A,y,5,u[24]),A=n(A,S,T,E,x,9,u[25]),E=n(E,A,S,T,c,14,u[26]),T=n(T,E,A,S,m,20,u[27]),S=n(S,T,E,A,C,5,u[28]),A=n(A,S,T,E,d,9,u[29]),E=n(E,A,S,T,g,14,u[30]),S=i(S,T=n(T,E,A,S,w,20,u[31]),E,A,p,4,u[32]),A=i(A,S,T,E,m,11,u[33]),E=i(E,A,S,T,v,16,u[34]),T=i(T,E,A,S,x,23,u[35]),S=i(S,T,E,A,s,4,u[36]),A=i(A,S,T,E,h,11,u[37]),E=i(E,A,S,T,g,16,u[38]),T=i(T,E,A,S,b,23,u[39]),S=i(S,T,E,A,C,4,u[40]),A=i(A,S,T,E,l,11,u[41]),E=i(E,A,S,T,c,16,u[42]),T=i(T,E,A,S,f,23,u[43]),S=i(S,T,E,A,y,4,u[44]),A=i(A,S,T,E,w,11,u[45]),E=i(E,A,S,T,$,16,u[46]),S=r(S,T=i(T,E,A,S,d,23,u[47]),E,A,l,6,u[48]),A=r(A,S,T,E,g,10,u[49]),E=r(E,A,S,T,x,15,u[50]),T=r(T,E,A,S,p,21,u[51]),S=r(S,T,E,A,w,6,u[52]),A=r(A,S,T,E,c,10,u[53]),E=r(E,A,S,T,b,15,u[54]),T=r(T,E,A,S,s,21,u[55]),S=r(S,T,E,A,m,6,u[56]),A=r(A,S,T,E,$,10,u[57]),E=r(E,A,S,T,f,15,u[58]),T=r(T,E,A,S,C,21,u[59]),S=r(S,T,E,A,h,6,u[60]),A=r(A,S,T,E,v,10,u[61]),E=r(E,A,S,T,d,15,u[62]),T=r(T,E,A,S,y,21,u[63]),a[0]=a[0]+S|0,a[1]=a[1]+T|0,a[2]=a[2]+E|0,a[3]=a[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296);for(n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process(),n=(t=this._hash).words,i=0;4>i;i++)r=n[i],n[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return t},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),o.MD5=s._createHelper(l),o.HmacMD5=s._createHmacHelper(l)}(Math),function(){var e,t=A,n=(e=t.lib).Base,i=e.WordArray,r=(e=t.algo).EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=(s=this.cfg).hasher.create(),r=i.create(),o=r.words,a=s.keySize,s=s.iterations;o.length<a;){l&&n.update(l);var l=n.update(e).finalize(t);n.reset();for(var u=1;u<s;u++)l=n.finalize(l),n.reset();r.concat(l)}return r.sigBytes=4*a,r}});t.EvpKDF=function(e,t,n){return r.create(n).compute(e,t)}}(),A.lib.Cipher||function(){var e=(h=A).lib,t=e.Base,n=e.WordArray,i=e.BufferedBlockAlgorithm,r=h.enc.Base64,o=h.algo.EvpKDF,a=e.Cipher=i.extend({cfg:t.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,i){return("string"==typeof n?p:c).encrypt(e,t,n,i)},decrypt:function(t,n,i){return("string"==typeof n?p:c).decrypt(e,t,n,i)}}}});e.StreamCipher=a.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var s=h.mode={},l=function(e,t,n){var i=this._iv;i?this._iv=void 0:i=this._prevBlock;for(var r=0;r<n;r++)e[t+r]^=i[r]},u=(e.BlockCipherMode=t.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();u.Encryptor=u.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;l.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),u.Decryptor=u.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=e.slice(t,t+i);n.decryptBlock(e,t),l.call(this,e,t,i),this._prevBlock=r}}),s=s.CBC=u,u=(h.pad={}).Pkcs7={pad:function(e,t){for(var i,r=(i=(i=4*t)-e.sigBytes%i)<<24|i<<16|i<<8|i,o=[],a=0;a<i;a+=4)o.push(r);i=n.create(o,i),e.concat(i)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},e.BlockCipher=a.extend({cfg:a.cfg.extend({mode:s,padding:u}),reset:function(){a.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var d=e.CipherParams=t.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),c=(s=(h.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?n.create([1398893684,1701076831]).concat(e).concat(t):t).toString(r)},parse:function(e){var t=(e=r.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var i=n.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return d.create({ciphertext:e,salt:i})}},e.SerializableCipher=t.extend({cfg:t.extend({format:s}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i);return t=r.finalize(t),r=r.cfg,d.create({ciphertext:t,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),h=(h.kdf={}).OpenSSL={execute:function(e,t,i,r){return r||(r=n.random(8)),e=o.create({keySize:t+i}).compute(e,r),i=n.create(e.words.slice(t),4*i),e.sigBytes=4*t,d.create({key:e,iv:i,salt:r})}},p=e.PasswordBasedCipher=c.extend({cfg:c.cfg.extend({kdf:h}),encrypt:function(e,t,n,i){return n=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize),i.iv=n.iv,(e=c.encrypt.call(this,e,t,n.key,i)).mixIn(n),e},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),n=i.kdf.execute(n,e.keySize,e.ivSize,t.salt),i.iv=n.iv,c.decrypt.call(this,e,t,n.key,i)}})}(),function(){for(var e=A,t=e.lib.BlockCipher,n=e.algo,i=[],r=[],o=[],a=[],s=[],l=[],u=[],d=[],c=[],h=[],p=[],f=0;256>f;f++)p[f]=128>f?f<<1:f<<1^283;var g=0,m=0;for(f=0;256>f;f++){var y=(y=m^m<<1^m<<2^m<<3^m<<4)>>>8^255&y^99;i[g]=y,r[y]=g;var b=p[g],v=p[b],w=p[v],C=257*p[y]^16843008*y;o[g]=C<<24|C>>>8,a[g]=C<<16|C>>>16,s[g]=C<<8|C>>>24,l[g]=C,C=16843009*w^65537*v^257*b^16843008*g,u[y]=C<<24|C>>>8,d[y]=C<<16|C>>>16,c[y]=C<<8|C>>>24,h[y]=C,g?(g=b^p[p[p[w^b]]],m^=p[p[m]]):g=m=1}var x=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=t.extend({_doReset:function(){for(var e=(n=this._key).words,t=n.sigBytes/4,n=4*((this._nRounds=t+6)+1),r=this._keySchedule=[],o=0;o<n;o++)if(o<t)r[o]=e[o];else{var a=r[o-1];o%t?6<t&&4==o%t&&(a=i[a>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a]):(a=i[(a=a<<8|a>>>24)>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a],a^=x[o/t|0]<<24),r[o]=r[o-t]^a}for(e=this._invKeySchedule=[],t=0;t<n;t++)o=n-t,a=t%4?r[o]:r[o-4],e[t]=4>t||4>=o?a:u[i[a>>>24]]^d[i[a>>>16&255]]^c[i[a>>>8&255]]^h[i[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,a,s,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,c,h,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,o,a,s){for(var l=this._nRounds,u=e[t]^n[0],d=e[t+1]^n[1],c=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var g=i[u>>>24]^r[d>>>16&255]^o[c>>>8&255]^a[255&h]^n[p++],m=i[d>>>24]^r[c>>>16&255]^o[h>>>8&255]^a[255&u]^n[p++],y=i[c>>>24]^r[h>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];h=i[h>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&c]^n[p++],u=g,d=m,c=y}g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[p++],m=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^n[p++],y=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],h=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[p++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=h},keySize:8}),e.AES=t._createHelper(n)}(),A.mode.ECB=((S=A.lib.BlockCipherMode.extend()).Encryptor=S.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),S.Decryptor=S.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),S);var E=A;function T(e){var t,n=[];for(t=0;t<e.length;t+=1)n[t/4|0]|=e[t]<<24-8*t;return E.lib.WordArray.create(n,e.length)}var k=function(){function e(e){var t=e.config;this._config=t,this._iv="0123456789012345",this._allowedKeyEncodings=["hex","utf8","base64","binary"],this._allowedKeyLengths=[128,256],this._allowedModes=["ecb","cbc"],this._defaultOptions={encryptKey:!0,keyEncoding:"utf8",keyLength:256,mode:"cbc"}}return e.prototype.HMACSHA256=function(e){return E.HmacSHA256(e,this._config.secretKey).toString(E.enc.Base64)},e.prototype.SHA256=function(e){return E.SHA256(e).toString(E.enc.Hex)},e.prototype._parseOptions=function(e){var t=e||{};return t.hasOwnProperty("encryptKey")||(t.encryptKey=this._defaultOptions.encryptKey),t.hasOwnProperty("keyEncoding")||(t.keyEncoding=this._defaultOptions.keyEncoding),t.hasOwnProperty("keyLength")||(t.keyLength=this._defaultOptions.keyLength),t.hasOwnProperty("mode")||(t.mode=this._defaultOptions.mode),-1===this._allowedKeyEncodings.indexOf(t.keyEncoding.toLowerCase())&&(t.keyEncoding=this._defaultOptions.keyEncoding),-1===this._allowedKeyLengths.indexOf(parseInt(t.keyLength,10))&&(t.keyLength=this._defaultOptions.keyLength),-1===this._allowedModes.indexOf(t.mode.toLowerCase())&&(t.mode=this._defaultOptions.mode),t},e.prototype._decodeKey=function(e,t){return"base64"===t.keyEncoding?E.enc.Base64.parse(e):"hex"===t.keyEncoding?E.enc.Hex.parse(e):e},e.prototype._getPaddedKey=function(e,t){return e=this._decodeKey(e,t),t.encryptKey?E.enc.Utf8.parse(this.SHA256(e).slice(0,32)):e},e.prototype._getMode=function(e){return"ecb"===e.mode?E.mode.ECB:E.mode.CBC},e.prototype._getIV=function(e){return"cbc"===e.mode?E.enc.Utf8.parse(this._iv):null},e.prototype._getRandomIV=function(){return E.lib.WordArray.random(16)},e.prototype.encrypt=function(e,t,n){return this._config.customEncrypt?this._config.customEncrypt(e):this.pnEncrypt(e,t,n)},e.prototype.decrypt=function(e,t,n){return this._config.customDecrypt?this._config.customDecrypt(e):this.pnDecrypt(e,t,n)},e.prototype.pnEncrypt=function(e,t,n){if(!t&&!this._config.cipherKey)return e;n=this._parseOptions(n);var i=this._getMode(n),r=this._getPaddedKey(t||this._config.cipherKey,n);if(this._config.useRandomIVs){var o=this._getRandomIV(),a=E.AES.encrypt(e,r,{iv:o,mode:i}).ciphertext;return o.clone().concat(a.clone()).toString(E.enc.Base64)}var s=this._getIV(n);return E.AES.encrypt(e,r,{iv:s,mode:i}).ciphertext.toString(E.enc.Base64)||e},e.prototype.pnDecrypt=function(e,t,n){if(!t&&!this._config.cipherKey)return e;n=this._parseOptions(n);var i=this._getMode(n),r=this._getPaddedKey(t||this._config.cipherKey,n);if(this._config.useRandomIVs){var o=T((l=new Uint8ClampedArray(b(e))).slice(0,16)),a=T(l.slice(16));try{var s=E.AES.decrypt({ciphertext:a},r,{iv:o,mode:i}).toString(E.enc.Utf8);return JSON.parse(s)}catch(e){return null}}else{o=this._getIV(n);try{var l=E.enc.Base64.parse(e);return s=E.AES.decrypt({ciphertext:l},r,{iv:o,mode:i}).toString(E.enc.Utf8),JSON.parse(s)}catch(e){return null}}},e}(),_=function(){function e(e){var t=e.timeEndpoint;this._timeEndpoint=t}return e.prototype.onReconnection=function(e){this._reconnectionCallback=e},e.prototype.startPolling=function(){this._timeTimer=setInterval(this._performTimeLoop.bind(this),3e3)},e.prototype.stopPolling=function(){clearInterval(this._timeTimer)},e.prototype._performTimeLoop=function(){var e=this;this._timeEndpoint(function(t){t.error||(clearInterval(e._timeTimer),e._reconnectionCallback())})},e}(),O=function(){function e(e){var t=e.config;this.hashHistory=[],this._config=t}return e.prototype.getKey=function(e){var t=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n+=1)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}(JSON.stringify(e.payload)).toString(),n=e.publishMetaData.publishTimetoken;return"".concat(n,"-").concat(t)},e.prototype.isDuplicate=function(e){return this.hashHistory.includes(this.getKey(e))},e.prototype.addEntry=function(e){this.hashHistory.length>=this._config.maximumCacheSize&&this.hashHistory.shift(),this.hashHistory.push(this.getKey(e))},e.prototype.clearHistory=function(){this.hashHistory=[]},e}(),P={PNNetworkUpCategory:"PNNetworkUpCategory",PNNetworkDownCategory:"PNNetworkDownCategory",PNNetworkIssuesCategory:"PNNetworkIssuesCategory",PNTimeoutCategory:"PNTimeoutCategory",PNBadRequestCategory:"PNBadRequestCategory",PNAccessDeniedCategory:"PNAccessDeniedCategory",PNUnknownCategory:"PNUnknownCategory",PNReconnectedCategory:"PNReconnectedCategory",PNConnectedCategory:"PNConnectedCategory",PNRequestMessageCountExceededCategory:"PNRequestMessageCountExceededCategory",PNDisconnectedCategory:"PNDisconnectedCategory",PNConnectionErrorCategory:"PNConnectionErrorCategory",PNDisconnectedUnexpectedlyCategory:"PNDisconnectedUnexpectedlyCategory"},I=function(){function e(e){var t=e.subscribeEndpoint,n=e.leaveEndpoint,i=e.heartbeatEndpoint,r=e.setStateEndpoint,o=e.timeEndpoint,a=e.getFileUrl,s=e.config,l=e.crypto,u=e.listenerManager,d=e.cryptoModule,c=e.eventEmitter;this._listenerManager=u,this._config=s,this._leaveEndpoint=n,this._heartbeatEndpoint=i,this._setStateEndpoint=r,this._subscribeEndpoint=t,this._getFileUrl=a,this._crypto=l,this._cryptoModule=d,this._channels={},this._presenceChannels={},this._heartbeatChannels={},this._heartbeatChannelGroups={},this._channelGroups={},this._presenceChannelGroups={},this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[],this._currentTimetoken=0,this._lastTimetoken=0,this._storedTimetoken=null,this._subscriptionStatusAnnounced=!1,this._isOnline=!0,this._reconnectionManager=new _({timeEndpoint:o}),this._dedupingManager=new O({config:s}),this._cryptoModule&&(this._decoder=new TextDecoder),this._eventEmitter=c}return e.prototype.adaptStateChange=function(e,t){var n=this,i=e.state,r=e.channels,o=void 0===r?[]:r,a=e.channelGroups,s=void 0===a?[]:a,l=e.withHeartbeat,u=void 0!==l&&l;if(o.forEach(function(e){e in n._channels&&(n._channels[e].state=i)}),s.forEach(function(e){e in n._channelGroups&&(n._channelGroups[e].state=i)}),u){var d={};return o.forEach(function(e){return d[e]=i}),s.forEach(function(e){return d[e]=i}),this._heartbeatEndpoint({channels:o,channelGroups:s,state:d},t)}return this._setStateEndpoint({state:i,channels:o,channelGroups:s},t)},e.prototype.adaptPresenceChange=function(e){var t=this,n=e.connected,i=e.channels,r=void 0===i?[]:i,o=e.channelGroups,a=void 0===o?[]:o;n?(r.forEach(function(e){t._heartbeatChannels[e]={state:{}}}),a.forEach(function(e){t._heartbeatChannelGroups[e]={state:{}}})):(r.forEach(function(e){e in t._heartbeatChannels&&delete t._heartbeatChannels[e]}),a.forEach(function(e){e in t._heartbeatChannelGroups&&delete t._heartbeatChannelGroups[e]}),!1===this._config.suppressLeaveEvents&&this._leaveEndpoint({channels:r,channelGroups:a},function(e){t._listenerManager.announceStatus(e)})),this.reconnect()},e.prototype.adaptSubscribeChange=function(e){var t=this,n=e.timetoken,i=e.channels,r=void 0===i?[]:i,o=e.channelGroups,a=void 0===o?[]:o,s=e.withPresence,l=void 0!==s&&s,u=e.withHeartbeats,d=void 0!==u&&u;this._config.subscribeKey&&""!==this._config.subscribeKey?(n&&(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=n),"0"!==this._currentTimetoken&&0!==this._currentTimetoken&&(this._storedTimetoken=this._currentTimetoken,this._currentTimetoken=0),r.forEach(function(e){t._channels[e]={state:{}},l&&(t._presenceChannels[e]={}),(d||t._config.getHeartbeatInterval())&&(t._heartbeatChannels[e]={}),t._pendingChannelSubscriptions.push(e)}),a.forEach(function(e){t._channelGroups[e]={state:{}},l&&(t._presenceChannelGroups[e]={}),(d||t._config.getHeartbeatInterval())&&(t._heartbeatChannelGroups[e]={}),t._pendingChannelGroupSubscriptions.push(e)}),this._subscriptionStatusAnnounced=!1,this.reconnect()):console&&console.log},e.prototype.adaptUnsubscribeChange=function(e,t){var n=this,i=e.channels,r=void 0===i?[]:i,o=e.channelGroups,a=void 0===o?[]:o,s=[],l=[];r.forEach(function(e){e in n._channels&&(delete n._channels[e],s.push(e),e in n._heartbeatChannels&&delete n._heartbeatChannels[e]),e in n._presenceChannels&&(delete n._presenceChannels[e],s.push(e))}),a.forEach(function(e){e in n._channelGroups&&(delete n._channelGroups[e],l.push(e),e in n._heartbeatChannelGroups&&delete n._heartbeatChannelGroups[e]),e in n._presenceChannelGroups&&(delete n._presenceChannelGroups[e],l.push(e))}),0===s.length&&0===l.length||(!1!==this._config.suppressLeaveEvents||t||this._leaveEndpoint({channels:s,channelGroups:l},function(e){e.affectedChannels=s,e.affectedChannelGroups=l,e.currentTimetoken=n._currentTimetoken,e.lastTimetoken=n._lastTimetoken,n._listenerManager.announceStatus(e)}),0===Object.keys(this._channels).length&&0===Object.keys(this._presenceChannels).length&&0===Object.keys(this._channelGroups).length&&0===Object.keys(this._presenceChannelGroups).length&&(this._lastTimetoken=0,this._currentTimetoken=0,this._storedTimetoken=null,this._region=null,this._reconnectionManager.stopPolling()),this.reconnect())},e.prototype.unsubscribeAll=function(e){this.adaptUnsubscribeChange({channels:this.getSubscribedChannels(),channelGroups:this.getSubscribedChannelGroups()},e)},e.prototype.getHeartbeatChannels=function(){return Object.keys(this._heartbeatChannels)},e.prototype.getHeartbeatChannelGroups=function(){return Object.keys(this._heartbeatChannelGroups)},e.prototype.getSubscribedChannels=function(){return Object.keys(this._channels)},e.prototype.getSubscribedChannelGroups=function(){return Object.keys(this._channelGroups)},e.prototype.reconnect=function(){this._startSubscribeLoop(),this._registerHeartbeatTimer()},e.prototype.disconnect=function(){this._stopSubscribeLoop(),this._stopHeartbeatTimer(),this._reconnectionManager.stopPolling()},e.prototype._registerHeartbeatTimer=function(){this._stopHeartbeatTimer(),0!==this._config.getHeartbeatInterval()&&void 0!==this._config.getHeartbeatInterval()&&(this._performHeartbeatLoop(),this._heartbeatTimer=setInterval(this._performHeartbeatLoop.bind(this),1e3*this._config.getHeartbeatInterval()))},e.prototype._stopHeartbeatTimer=function(){this._heartbeatTimer&&(clearInterval(this._heartbeatTimer),this._heartbeatTimer=null)},e.prototype._performHeartbeatLoop=function(){var e=this,t=this.getHeartbeatChannels(),n=this.getHeartbeatChannelGroups(),i={};0===t.length&&0===n.length||(this.getSubscribedChannels().forEach(function(t){var n=e._channels[t].state;Object.keys(n).length&&(i[t]=n)}),this.getSubscribedChannelGroups().forEach(function(t){var n=e._channelGroups[t].state;Object.keys(n).length&&(i[t]=n)}),this._heartbeatEndpoint({channels:t,channelGroups:n,state:i},function(t){t.error&&e._config.announceFailedHeartbeats&&e._listenerManager.announceStatus(t),t.error&&e._config.autoNetworkDetection&&e._isOnline&&(e._isOnline=!1,e.disconnect(),e._listenerManager.announceNetworkDown(),e.reconnect()),!t.error&&e._config.announceSuccessfulHeartbeats&&e._listenerManager.announceStatus(t)}.bind(this)))},e.prototype._startSubscribeLoop=function(){var e=this;this._stopSubscribeLoop();var t={},n=[],i=[];if(Object.keys(this._channels).forEach(function(i){var r=e._channels[i].state;Object.keys(r).length&&(t[i]=r),n.push(i)}),Object.keys(this._presenceChannels).forEach(function(e){n.push("".concat(e,"-pnpres"))}),Object.keys(this._channelGroups).forEach(function(n){var r=e._channelGroups[n].state;Object.keys(r).length&&(t[n]=r),i.push(n)}),Object.keys(this._presenceChannelGroups).forEach(function(e){i.push("".concat(e,"-pnpres"))}),0!==n.length||0!==i.length){var r={channels:n,channelGroups:i,state:t,timetoken:this._currentTimetoken,filterExpression:this._config.filterExpression,region:this._region};this._subscribeCall=this._subscribeEndpoint(r,this._processSubscribeResponse.bind(this))}},e.prototype._processSubscribeResponse=function(e,t){var n=this;if(e.error){if(e.errorData&&"Aborted"===e.errorData.message)return;e.category===P.PNTimeoutCategory?this._startSubscribeLoop():e.category===P.PNNetworkIssuesCategory?(this.disconnect(),e.error&&this._config.autoNetworkDetection&&this._isOnline&&(this._isOnline=!1,this._listenerManager.announceNetworkDown()),this._reconnectionManager.onReconnection(function(){n._config.autoNetworkDetection&&!n._isOnline&&(n._isOnline=!0,n._listenerManager.announceNetworkUp()),n.reconnect(),n._subscriptionStatusAnnounced=!0;var t={category:P.PNReconnectedCategory,operation:e.operation,lastTimetoken:n._lastTimetoken,currentTimetoken:n._currentTimetoken};n._listenerManager.announceStatus(t)}),this._reconnectionManager.startPolling(),this._listenerManager.announceStatus(e)):e.category===P.PNBadRequestCategory?(this._stopHeartbeatTimer(),this._listenerManager.announceStatus(e)):this._listenerManager.announceStatus(e)}else{if(this._storedTimetoken?(this._currentTimetoken=this._storedTimetoken,this._storedTimetoken=null):(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=t.metadata.timetoken),!this._subscriptionStatusAnnounced){var i={};i.category=P.PNConnectedCategory,i.operation=e.operation,i.affectedChannels=this._pendingChannelSubscriptions,i.subscribedChannels=this.getSubscribedChannels(),i.affectedChannelGroups=this._pendingChannelGroupSubscriptions,i.lastTimetoken=this._lastTimetoken,i.currentTimetoken=this._currentTimetoken,this._subscriptionStatusAnnounced=!0,this._listenerManager.announceStatus(i),this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[]}var r=t.messages||[],o=this._config,a=o.requestMessageCountThreshold,s=o.dedupeOnSubscribe;if(a&&r.length>=a){var l={};l.category=P.PNRequestMessageCountExceededCategory,l.operation=e.operation,this._listenerManager.announceStatus(l)}r.forEach(function(e){if(e.channel,e.subscriptionMatch,s){if(n._dedupingManager.isDuplicate(e))return;n._dedupingManager.addEntry(e)}n._eventEmitter.emitEvent(e)}),this._region=t.metadata.region,this._startSubscribeLoop()}},e.prototype._stopSubscribeLoop=function(){this._subscribeCall&&("function"==typeof this._subscribeCall.abort&&this._subscribeCall.abort(),this._subscribeCall=null)},e.prototype._renameEvent=function(e){return"set"===e?"updated":"removed"},e.prototype._renameChannelField=function(e){var t=e.channel,n=r(e,["channel"]);return n.spaceId=t,n},e}(),M={PNTimeOperation:"PNTimeOperation",PNHistoryOperation:"PNHistoryOperation",PNDeleteMessagesOperation:"PNDeleteMessagesOperation",PNFetchMessagesOperation:"PNFetchMessagesOperation",PNMessageCounts:"PNMessageCountsOperation",PNSubscribeOperation:"PNSubscribeOperation",PNUnsubscribeOperation:"PNUnsubscribeOperation",PNPublishOperation:"PNPublishOperation",PNSignalOperation:"PNSignalOperation",PNAddMessageActionOperation:"PNAddActionOperation",PNRemoveMessageActionOperation:"PNRemoveMessageActionOperation",PNGetMessageActionsOperation:"PNGetMessageActionsOperation",PNCreateUserOperation:"PNCreateUserOperation",PNUpdateUserOperation:"PNUpdateUserOperation",PNDeleteUserOperation:"PNDeleteUserOperation",PNGetUserOperation:"PNGetUsersOperation",PNGetUsersOperation:"PNGetUsersOperation",PNCreateSpaceOperation:"PNCreateSpaceOperation",PNUpdateSpaceOperation:"PNUpdateSpaceOperation",PNDeleteSpaceOperation:"PNDeleteSpaceOperation",PNGetSpaceOperation:"PNGetSpacesOperation",PNGetSpacesOperation:"PNGetSpacesOperation",PNGetMembersOperation:"PNGetMembersOperation",PNUpdateMembersOperation:"PNUpdateMembersOperation",PNGetMembershipsOperation:"PNGetMembershipsOperation",PNUpdateMembershipsOperation:"PNUpdateMembershipsOperation",PNListFilesOperation:"PNListFilesOperation",PNGenerateUploadUrlOperation:"PNGenerateUploadUrlOperation",PNPublishFileOperation:"PNPublishFileOperation",PNGetFileUrlOperation:"PNGetFileUrlOperation",PNDownloadFileOperation:"PNDownloadFileOperation",PNGetAllUUIDMetadataOperation:"PNGetAllUUIDMetadataOperation",PNGetUUIDMetadataOperation:"PNGetUUIDMetadataOperation",PNSetUUIDMetadataOperation:"PNSetUUIDMetadataOperation",PNRemoveUUIDMetadataOperation:"PNRemoveUUIDMetadataOperation",PNGetAllChannelMetadataOperation:"PNGetAllChannelMetadataOperation",PNGetChannelMetadataOperation:"PNGetChannelMetadataOperation",PNSetChannelMetadataOperation:"PNSetChannelMetadataOperation",PNRemoveChannelMetadataOperation:"PNRemoveChannelMetadataOperation",PNSetMembersOperation:"PNSetMembersOperation",PNSetMembershipsOperation:"PNSetMembershipsOperation",PNPushNotificationEnabledChannelsOperation:"PNPushNotificationEnabledChannelsOperation",PNRemoveAllPushNotificationsOperation:"PNRemoveAllPushNotificationsOperation",PNWhereNowOperation:"PNWhereNowOperation",PNSetStateOperation:"PNSetStateOperation",PNHereNowOperation:"PNHereNowOperation",PNGetStateOperation:"PNGetStateOperation",PNHeartbeatOperation:"PNHeartbeatOperation",PNChannelGroupsOperation:"PNChannelGroupsOperation",PNRemoveGroupOperation:"PNRemoveGroupOperation",PNChannelsForGroupOperation:"PNChannelsForGroupOperation",PNAddChannelsToGroupOperation:"PNAddChannelsToGroupOperation",PNRemoveChannelsFromGroupOperation:"PNRemoveChannelsFromGroupOperation",PNAccessManagerGrant:"PNAccessManagerGrant",PNAccessManagerGrantToken:"PNAccessManagerGrantToken",PNAccessManagerAudit:"PNAccessManagerAudit",PNAccessManagerRevokeToken:"PNAccessManagerRevokeToken",PNHandshakeOperation:"PNHandshakeOperation",PNReceiveMessagesOperation:"PNReceiveMessagesOperation"},N=function(){function e(e){this._maximumSamplesCount=100,this._trackedLatencies={},this._latencies={},this._telemetryExcludeOperations=[M.PNSubscribeOperation,M.PNReceiveMessagesOperation,M.PNHandshakeOperation],this._maximumSamplesCount=e.maximumSamplesCount||this._maximumSamplesCount}return e.prototype.operationsLatencyForRequest=function(){var e=this,t={};return Object.keys(this._latencies).forEach(function(n){var i=e._latencies[n],r=e._averageLatency(i);r>0&&(t["l_".concat(n)]=r)}),t},e.prototype.startLatencyMeasure=function(e,t){!this._telemetryExcludeOperations.includes(e)&&t&&(this._trackedLatencies[t]=Date.now())},e.prototype.stopLatencyMeasure=function(e,t){if(!this._telemetryExcludeOperations.includes(e)&&t){var n=this._endpointName(e),i=this._latencies[n],r=this._trackedLatencies[t];i||(this._latencies[n]=[],i=this._latencies[n]),i.push(Date.now()-r),i.length>this._maximumSamplesCount&&i.splice(0,i.length-this._maximumSamplesCount),delete this._trackedLatencies[t]}},e.prototype._averageLatency=function(e){return Math.floor(e.reduce(function(e,t){return e+t},0)/e.length)},e.prototype._endpointName=function(e){var t=null;switch(e){case M.PNPublishOperation:t="pub";break;case M.PNSignalOperation:t="sig";break;case M.PNHistoryOperation:case M.PNFetchMessagesOperation:case M.PNDeleteMessagesOperation:case M.PNMessageCounts:t="hist";break;case M.PNUnsubscribeOperation:case M.PNWhereNowOperation:case M.PNHereNowOperation:case M.PNHeartbeatOperation:case M.PNSetStateOperation:case M.PNGetStateOperation:t="pres";break;case M.PNAddChannelsToGroupOperation:case M.PNRemoveChannelsFromGroupOperation:case M.PNChannelGroupsOperation:case M.PNRemoveGroupOperation:case M.PNChannelsForGroupOperation:t="cg";break;case M.PNPushNotificationEnabledChannelsOperation:case M.PNRemoveAllPushNotificationsOperation:t="push";break;case M.PNCreateUserOperation:case M.PNUpdateUserOperation:case M.PNDeleteUserOperation:case M.PNGetUserOperation:case M.PNGetUsersOperation:case M.PNCreateSpaceOperation:case M.PNUpdateSpaceOperation:case M.PNDeleteSpaceOperation:case M.PNGetSpaceOperation:case M.PNGetSpacesOperation:case M.PNGetMembersOperation:case M.PNUpdateMembersOperation:case M.PNGetMembershipsOperation:case M.PNUpdateMembershipsOperation:t="obj";break;case M.PNAddMessageActionOperation:case M.PNRemoveMessageActionOperation:case M.PNGetMessageActionsOperation:t="msga";break;case M.PNAccessManagerGrant:case M.PNAccessManagerAudit:t="pam";break;case M.PNAccessManagerGrantToken:case M.PNAccessManagerRevokeToken:t="pamv3";break;default:t="time"}return t},e}(),D=function(){function e(e,t,n){this._payload=e,this._setDefaultPayloadStructure(),this.title=t,this.body=n}return Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{set:function(e){this._subtitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{set:function(e){this._body=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"badge",{set:function(e){this._badge=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sound",{set:function(e){this._sound=e},enumerable:!1,configurable:!0}),e.prototype._setDefaultPayloadStructure=function(){},e.prototype.toObject=function(){return{}},e}(),L=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),Object.defineProperty(n.prototype,"configurations",{set:function(e){e&&e.length&&(this._configurations=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"notification",{get:function(){return this._payload.aps},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.aps.alert.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){e&&e.length&&(this._payload.aps.alert.subtitle=e,this._subtitle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"body",{get:function(){return this._body},set:function(e){e&&e.length&&(this._payload.aps.alert.body=e,this._body=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"badge",{get:function(){return this._badge},set:function(e){null!=e&&(this._payload.aps.badge=e,this._badge=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sound",{get:function(){return this._sound},set:function(e){e&&e.length&&(this._payload.aps.sound=e,this._sound=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),n.prototype._setDefaultPayloadStructure=function(){this._payload.aps={alert:{}}},n.prototype.toObject=function(){var e=this,t=i({},this._payload),n=t.aps,r=n.alert;if(this._isSilent&&(n["content-available"]=1),"apns2"===this._apnsPushType){if(!this._configurations||!this._configurations.length)throw new ReferenceError("APNS2 configuration is missing");var o=[];this._configurations.forEach(function(t){o.push(e._objectFromAPNS2Configuration(t))}),o.length&&(t.pn_push=o)}return r&&Object.keys(r).length||delete n.alert,this._isSilent&&(delete n.alert,delete n.badge,delete n.sound,r={}),this._isSilent||Object.keys(r).length?t:null},n.prototype._objectFromAPNS2Configuration=function(e){var t=this;if(!e.targets||!e.targets.length)throw new ReferenceError("At least one APNS2 target should be provided");var n=[];e.targets.forEach(function(e){n.push(t._objectFromAPNSTarget(e))});var i=e.collapseId,r=e.expirationDate,o={auth_method:"token",targets:n,version:"v2"};return i&&i.length&&(o.collapse_id=i),r&&(o.expiration=r.toISOString()),o},n.prototype._objectFromAPNSTarget=function(e){if(!e.topic||!e.topic.length)throw new TypeError("Target 'topic' undefined.");var t=e.topic,n=e.environment,i=void 0===n?"development":n,r=e.excludedDevices,o=void 0===r?[]:r,a={topic:t,environment:i};return o.length&&(a.excluded_devices=o),a},n}(D),U=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),Object.defineProperty(n.prototype,"backContent",{get:function(){return this._backContent},set:function(e){e&&e.length&&(this._payload.back_content=e,this._backContent=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"backTitle",{get:function(){return this._backTitle},set:function(e){e&&e.length&&(this._payload.back_title=e,this._backTitle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return this._count},set:function(e){null!=e&&(this._payload.count=e,this._count=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._type},set:function(e){e&&e.length&&(this._payload.type=e,this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"subtitle",{get:function(){return this.backTitle},set:function(e){this.backTitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"body",{get:function(){return this.backContent},set:function(e){this.backContent=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"badge",{get:function(){return this.count},set:function(e){this.count=e},enumerable:!1,configurable:!0}),n.prototype.toObject=function(){return Object.keys(this._payload).length?i({},this._payload):null},n}(D),R=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),Object.defineProperty(n.prototype,"notification",{get:function(){return this._payload.notification},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"data",{get:function(){return this._payload.data},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.notification.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"body",{get:function(){return this._body},set:function(e){e&&e.length&&(this._payload.notification.body=e,this._body=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sound",{get:function(){return this._sound},set:function(e){e&&e.length&&(this._payload.notification.sound=e,this._sound=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"icon",{get:function(){return this._icon},set:function(e){e&&e.length&&(this._payload.notification.icon=e,this._icon=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tag",{get:function(){return this._tag},set:function(e){e&&e.length&&(this._payload.notification.tag=e,this._tag=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),n.prototype._setDefaultPayloadStructure=function(){this._payload.notification={},this._payload.data={}},n.prototype.toObject=function(){var e=i({},this._payload.data),t=null,n={};if(Object.keys(this._payload).length>2){var o=this._payload;o.notification,o.data;var a=r(o,["notification","data"]);e=i(i({},e),a)}return this._isSilent?e.notification=this._payload.notification:t=this._payload.notification,Object.keys(e).length&&(n.data=e),t&&Object.keys(t).length&&(n.notification=t),Object.keys(n).length?n:null},n}(D),B=function(){function e(e,t){this._payload={apns:{},mpns:{},fcm:{}},this._title=e,this._body=t,this.apns=new L(this._payload.apns,e,t),this.mpns=new U(this._payload.mpns,e,t),this.fcm=new R(this._payload.fcm,e,t)}return Object.defineProperty(e.prototype,"debugging",{set:function(e){this._debugging=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){this._subtitle=e,this.apns.subtitle=e,this.mpns.subtitle=e,this.fcm.subtitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"badge",{get:function(){return this._badge},set:function(e){this._badge=e,this.apns.badge=e,this.mpns.badge=e,this.fcm.badge=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sound",{get:function(){return this._sound},set:function(e){this._sound=e,this.apns.sound=e,this.mpns.sound=e,this.fcm.sound=e},enumerable:!1,configurable:!0}),e.prototype.buildPayload=function(e){var t={};if(e.includes("apns")||e.includes("apns2")){this.apns._apnsPushType=e.includes("apns")?"apns":"apns2";var n=this.apns.toObject();n&&Object.keys(n).length&&(t.pn_apns=n)}if(e.includes("mpns")){var i=this.mpns.toObject();i&&Object.keys(i).length&&(t.pn_mpns=i)}if(e.includes("fcm")){var r=this.fcm.toObject();r&&Object.keys(r).length&&(t.pn_gcm=r)}return Object.keys(t).length&&this._debugging&&(t.pn_debug=!0),t},e}(),j=function(){function e(){this._listeners=[]}return e.prototype.addListener=function(e){this._listeners.includes(e)||this._listeners.push(e)},e.prototype.removeListener=function(e){var t=[];this._listeners.forEach(function(n){n!==e&&t.push(n)}),this._listeners=t},e.prototype.removeAllListeners=function(){this._listeners=[]},e.prototype.announcePresence=function(e){this._listeners.forEach(function(t){t.presence&&t.presence(e)})},e.prototype.announceStatus=function(e){this._listeners.forEach(function(t){t.status&&t.status(e)})},e.prototype.announceMessage=function(e){this._listeners.forEach(function(t){t.message&&t.message(e)})},e.prototype.announceSignal=function(e){this._listeners.forEach(function(t){t.signal&&t.signal(e)})},e.prototype.announceMessageAction=function(e){this._listeners.forEach(function(t){t.messageAction&&t.messageAction(e)})},e.prototype.announceFile=function(e){this._listeners.forEach(function(t){t.file&&t.file(e)})},e.prototype.announceObjects=function(e){this._listeners.forEach(function(t){t.objects&&t.objects(e)})},e.prototype.announceUser=function(e){this._listeners.forEach(function(t){t.user&&t.user(e)})},e.prototype.announceSpace=function(e){this._listeners.forEach(function(t){t.space&&t.space(e)})},e.prototype.announceMembership=function(e){this._listeners.forEach(function(t){t.membership&&t.membership(e)})},e.prototype.announceNetworkUp=function(){var e={};e.category=P.PNNetworkUpCategory,this.announceStatus(e)},e.prototype.announceNetworkDown=function(){var e={};e.category=P.PNNetworkDownCategory,this.announceStatus(e)},e}(),F=function(){function e(e,t){this._config=e,this._cbor=t}return e.prototype.setToken=function(e){e&&e.length>0?this._token=e:this._token=void 0},e.prototype.getToken=function(){return this._token},e.prototype.extractPermissions=function(e){var t={read:!1,write:!1,manage:!1,delete:!1,get:!1,update:!1,join:!1};return!(128&~e)&&(t.join=!0),!(64&~e)&&(t.update=!0),!(32&~e)&&(t.get=!0),!(8&~e)&&(t.delete=!0),!(4&~e)&&(t.manage=!0),!(2&~e)&&(t.write=!0),!(1&~e)&&(t.read=!0),t},e.prototype.parseToken=function(e){var t=this,n=this._cbor.decodeToken(e);if(void 0!==n){var i=n.res.uuid?Object.keys(n.res.uuid):[],r=Object.keys(n.res.chan),o=Object.keys(n.res.grp),a=n.pat.uuid?Object.keys(n.pat.uuid):[],s=Object.keys(n.pat.chan),l=Object.keys(n.pat.grp),u={version:n.v,timestamp:n.t,ttl:n.ttl,authorized_uuid:n.uuid},d=i.length>0,c=r.length>0,h=o.length>0;(d||c||h)&&(u.resources={},d&&(u.resources.uuids={},i.forEach(function(e){u.resources.uuids[e]=t.extractPermissions(n.res.uuid[e])})),c&&(u.resources.channels={},r.forEach(function(e){u.resources.channels[e]=t.extractPermissions(n.res.chan[e])})),h&&(u.resources.groups={},o.forEach(function(e){u.resources.groups[e]=t.extractPermissions(n.res.grp[e])})));var p=a.length>0,f=s.length>0,g=l.length>0;return(p||f||g)&&(u.patterns={},p&&(u.patterns.uuids={},a.forEach(function(e){u.patterns.uuids[e]=t.extractPermissions(n.pat.uuid[e])})),f&&(u.patterns.channels={},s.forEach(function(e){u.patterns.channels[e]=t.extractPermissions(n.pat.chan[e])})),g&&(u.patterns.groups={},l.forEach(function(e){u.patterns.groups[e]=t.extractPermissions(n.pat.grp[e])}))),Object.keys(n.meta).length>0&&(u.meta=n.meta),u.signature=n.sig,u}},e}();function H(e){return encodeURIComponent(e).replace(/[!~*'()]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}function G(e){return function(e){var t=[];return Object.keys(e).forEach(function(e){return t.push(e)}),t}(e).sort()}var z={signPamFromParams:function(e){return G(e).map(function(t){return"".concat(t,"=").concat(H(e[t]))}).join("&")},endsWith:function(e,t){return-1!==e.indexOf(t,this.length-t.length)},createPromise:function(){var e,t;return{promise:new Promise(function(n,i){e=n,t=i}),reject:t,fulfill:e}},encodeString:H,stringToArrayBuffer:function(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),i=0,r=e.length;i<r;i++)n[i]=e.charCodeAt(i);return t},removeSingleOccurance:function(e,t){var n=Object.fromEntries(t.map(function(e){return[e,!1]}));return e.filter(function(e){return!(t.includes(e)&&!n[e]&&(n[e]=!0,1))})},findUniqueCommonElements:function(e,t){return __spreadArray([],__read(e),!1).filter(function(n){return t.includes(n)&&e.indexOf(n)===e.lastIndexOf(n)&&t.indexOf(n)===t.lastIndexOf(n)})}},Q=function(e){function n(t,n){var i=this.constructor,r=e.call(this,t)||this;return r.name=r.constructor.name,r.status=n,r.message=t,Object.setPrototypeOf(r,i.prototype),r}return t(n,e),n}(Error);function W(e){return(t={message:e}).type="validationError",t.error=!0,t;var t}function q(e,t,n){return e.usePost&&e.usePost(t,n)?e.postURL(t,n):e.usePatch&&e.usePatch(t,n)?e.patchURL(t,n):e.useGetFile&&e.useGetFile(t,n)?e.getFileURL(t,n):e.getURL(t,n)}function V(e){if(e.sdkName)return e.sdkName;var t="PubNub-JS-".concat(e.sdkFamily);e.partnerId&&(t+="-".concat(e.partnerId)),t+="/".concat(e.getVersion());var n=e._getPnsdkSuffix(" ");return n.length>0&&(t+=n),t}function Y(e,t,n){return t.usePost&&t.usePost(e,n)?"POST":t.usePatch&&t.usePatch(e,n)?"PATCH":t.useDelete&&t.useDelete(e,n)?"DELETE":t.useGetFile&&t.useGetFile(e,n)?"GETFILE":"GET"}function K(e,t,n,i,r){var o=e.config,a=e.crypto,s=Y(e,r,i);n.timestamp=Math.floor((new Date).getTime()/1e3),"PNPublishOperation"===r.getOperation()&&r.usePost&&r.usePost(e,i)&&(s="GET"),"GETFILE"===s&&(s="GET");var l="".concat(s,"\n").concat(o.publishKey,"\n").concat(t,"\n").concat(z.signPamFromParams(n),"\n");if("POST"===s)l+="string"==typeof(u=r.postPayload(e,i))?u:JSON.stringify(u);else if("PATCH"===s){var u;l+="string"==typeof(u=r.patchPayload(e,i))?u:JSON.stringify(u)}var d="v2.".concat(a.HMACSHA256(l));d=(d=(d=d.replace(/\+/g,"-")).replace(/\//g,"_")).replace(/=+$/,""),n.signature=d}function X(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e.networking,a=e.config,s=e.telemetryManager,l=e.tokenManager,u=m(),d=null,c=null,h={};t.getOperation()===M.PNTimeOperation||t.getOperation()===M.PNChannelGroupsOperation?d=n[0]:(h=n[0],d=n[1]),"undefined"==typeof Promise||d||(c=z.createPromise());var p=t.validateParams(e,h);if(p)return d?d(W(p)):c?(c.reject(new Q("Validation failed, check status for details",W(p))),c.promise):void 0;var f,g=t.prepareParams(e,h),y=q(t,e,h),b={url:y,operation:t.getOperation(),timeout:t.getRequestTimeout(e),headers:t.getRequestHeaders?t.getRequestHeaders():{},ignoreBody:"function"==typeof t.ignoreBody&&t.ignoreBody(e),forceBuffered:"function"==typeof t.forceBuffered?t.forceBuffered(e,h):null,abortSignal:"function"==typeof t.getAbortSignal?t.getAbortSignal(e,h):null};g.uuid=a.UUID,g.pnsdk=V(a);var v=s.operationsLatencyForRequest();if(Object.keys(v).length&&(g=i(i({},g),v)),a.useInstanceId&&(g.instanceid=a.instanceId),a.useRequestId&&(g.requestid=u),t.isAuthSupported()){var w=l.getToken()||a.getAuthKey();w&&(g.auth=w)}a.secretKey&&K(e,y,g,h,t);var C=function(n,i){if(n.error)return t.handleError&&t.handleError(e,h,n),void(d?d(n):c&&c.reject(new Q("PubNub call failed, check status for details",n)));s.stopLatencyMeasure(t.getOperation(),u);var r=t.handleResponse(e,i,h);"function"!=typeof(null==r?void 0:r.then)&&(r=Promise.resolve(r)),r.then(function(e){d?d(n,e):c&&c.fulfill(e)}).catch(function(e){if(d){var n=e;t.getOperation()===M.PNSubscribeOperation&&(n={statusCode:400,error:!0,operation:t.getOperation(),errorData:e,category:P.PNUnknownCategory}),d(n,null)}else c&&c.reject(new Q("PubNub call failed, check status for details",e))})};if(s.startLatencyMeasure(t.getOperation(),u),"POST"===Y(e,t,h)){var x=t.postPayload(e,h);f=o.POST(g,x,b,C)}else"PATCH"===Y(e,t,h)?(x=t.patchPayload(e,h),f=o.PATCH(g,x,b,C)):f="DELETE"===Y(e,t,h)?o.DELETE(g,b,C):"GETFILE"===Y(e,t,h)?o.GETFILE(g,b,C):o.GET(g,b,C);return t.getOperation()===M.PNSubscribeOperation?f:c?c.promise:void 0}var Z=Object.freeze({__proto__:null,getOperation:function(){return M.PNAddChannelsToGroupOperation},validateParams:function(e,t){var n=t.channels,i=t.channelGroup,r=e.config;return i?n&&0!==n.length?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var n=t.channelGroup,i=e.config;return"/v1/channel-registration/sub-key/".concat(i.subscribeKey,"/channel-group/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channels;return{add:(void 0===n?[]:n).join(",")}},handleResponse:function(){return{}}}),J=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveChannelsFromGroupOperation},validateParams:function(e,t){var n=t.channels,i=t.channelGroup,r=e.config;return i?n&&0!==n.length?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var n=t.channelGroup,i=e.config;return"/v1/channel-registration/sub-key/".concat(i.subscribeKey,"/channel-group/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channels;return{remove:(void 0===n?[]:n).join(",")}},handleResponse:function(){return{}}}),ee=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveGroupOperation},validateParams:function(e,t){var n=t.channelGroup,i=e.config;return n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var n=t.channelGroup,i=e.config;return"/v1/channel-registration/sub-key/".concat(i.subscribeKey,"/channel-group/").concat(z.encodeString(n),"/remove")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},handleResponse:function(){return{}}}),te=Object.freeze({__proto__:null,getOperation:function(){return M.PNChannelGroupsOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v1/channel-registration/sub-key/".concat(t.subscribeKey,"/channel-group")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{groups:t.payload.groups}}}),ne=Object.freeze({__proto__:null,getOperation:function(){return M.PNChannelsForGroupOperation},validateParams:function(e,t){var n=t.channelGroup,i=e.config;return n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var n=t.channelGroup,i=e.config;return"/v1/channel-registration/sub-key/".concat(i.subscribeKey,"/channel-group/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{channels:t.payload.channels}}}),ie=Object.freeze({__proto__:null,getOperation:function(){return M.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var n=t.device,i=t.pushGateway,r=t.channels,o=t.topic,a=e.config;return n?i?"apns2"!==i||o?r&&0!==r.length?a.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var n=t.device,i=t.pushGateway,r=e.config;return"apns2"===i?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(n):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(n)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.pushGateway,r=t.channels,o=void 0===r?[]:r,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:n,add:o.join(",")};return"apns2"===n&&delete(u=i(i({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),re=Object.freeze({__proto__:null,getOperation:function(){return M.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var n=t.device,i=t.pushGateway,r=t.channels,o=t.topic,a=e.config;return n?i?"apns2"!==i||o?r&&0!==r.length?a.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var n=t.device,i=t.pushGateway,r=e.config;return"apns2"===i?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(n):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(n)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.pushGateway,r=t.channels,o=void 0===r?[]:r,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:n,remove:o.join(",")};return"apns2"===n&&delete(u=i(i({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),oe=Object.freeze({__proto__:null,getOperation:function(){return M.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var n=t.device,i=t.pushGateway,r=t.topic,o=e.config;return n?i?"apns2"!==i||r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var n=t.device,i=t.pushGateway,r=e.config;return"apns2"===i?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(n):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(n)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.pushGateway,r=t.environment,o=void 0===r?"development":r,a=t.topic,s=t.start,l=t.count,u={type:n};return"apns2"===n&&delete(u=i(i({},u),{environment:o,topic:a})).type,s&&(u.start=s),l&&l>0&&(u.count=l),u},handleResponse:function(e,t){return{channels:t}}}),ae=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveAllPushNotificationsOperation},validateParams:function(e,t){var n=t.device,i=t.pushGateway,r=t.topic,o=e.config;return n?i?"apns2"!==i||r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var n=t.device,i=t.pushGateway,r=e.config;return"apns2"===i?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(n,"/remove"):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(n,"/remove")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.pushGateway,r=t.environment,o=void 0===r?"development":r,a=t.topic,s={type:n};return"apns2"===n&&delete(s=i(i({},s),{environment:o,topic:a})).type,s},handleResponse:function(){return{}}}),se=Object.freeze({__proto__:null,getOperation:function(){return M.PNUnsubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(o),"/leave")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channelGroups,i=void 0===n?[]:n,r={};return i.length>0&&(r["channel-group"]=i.join(",")),r},handleResponse:function(){return{}}}),le=Object.freeze({__proto__:null,getOperation:function(){return M.PNWhereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.uuid,r=void 0===i?n.UUID:i;return"/v2/presence/sub-key/".concat(n.subscribeKey,"/uuid/").concat(z.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return t.payload?{channels:t.payload.channels}:{channels:[]}}}),ue=Object.freeze({__proto__:null,getOperation:function(){return M.PNHeartbeatOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(o),"/heartbeat")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(e,t){var n=t.channelGroups,i=void 0===n?[]:n,r=t.state,o=e.config,a={};return i.length>0&&(a["channel-group"]=i.join(",")),r&&(a.state=JSON.stringify(r)),a.heartbeat=o.getPresenceTimeout(),a},handleResponse:function(){return{}}}),de=Object.freeze({__proto__:null,getOperation:function(){return M.PNGetStateOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.uuid,r=void 0===i?n.UUID:i,o=t.channels,a=void 0===o?[]:o,s=a.length>0?a.join(","):",";return"/v2/presence/sub-key/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(s),"/uuid/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channelGroups,i=void 0===n?[]:n,r={};return i.length>0&&(r["channel-group"]=i.join(",")),r},handleResponse:function(e,t,n){var i=n.channels,r=void 0===i?[]:i,o=n.channelGroups,a=void 0===o?[]:o,s={};return 1===r.length&&0===a.length?s[r[0]]=t.payload:s=t.payload,{channels:s}}}),ce=Object.freeze({__proto__:null,getOperation:function(){return M.PNSetStateOperation},validateParams:function(e,t){var n=e.config,i=t.state,r=t.channels,o=void 0===r?[]:r,a=t.channelGroups,s=void 0===a?[]:a;return i?n.subscribeKey?0===o.length&&0===s.length?"Please provide a list of channels and/or channel-groups":void 0:"Missing Subscribe Key":"Missing State"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(o),"/uuid/").concat(z.encodeString(n.UUID),"/data")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.state,i=t.channelGroups,r=void 0===i?[]:i,o={};return o.state=JSON.stringify(n),r.length>0&&(o["channel-group"]=r.join(",")),o},handleResponse:function(e,t){return{state:t.payload}}}),he=Object.freeze({__proto__:null,getOperation:function(){return M.PNHereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=t.channelGroups,a=void 0===o?[]:o,s="/v2/presence/sub-key/".concat(n.subscribeKey);if(r.length>0||a.length>0){var l=r.length>0?r.join(","):",";s+="/channel/".concat(z.encodeString(l))}return s},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channelGroups,r=void 0===n?[]:n,o=t.includeUUIDs,a=void 0===o||o,s=t.includeState,l=void 0!==s&&s,u=t.queryParameters,d=void 0===u?{}:u,c={};return a||(c.disable_uuids=1),l&&(c.state=1),r.length>0&&(c["channel-group"]=r.join(",")),i(i({},c),d)},handleResponse:function(e,t,n){var i=n.channels,r=void 0===i?[]:i,o=n.channelGroups,a=void 0===o?[]:o,s=n.includeUUIDs,l=void 0===s||s,u=n.includeState,d=void 0!==u&&u;return r.length>1||a.length>0||0===a.length&&0===r.length?function(){var e={};return e.totalChannels=t.payload.total_channels,e.totalOccupancy=t.payload.total_occupancy,e.channels={},Object.keys(t.payload.channels).forEach(function(n){var i=t.payload.channels[n],r=[];return e.channels[n]={occupants:r,name:n,occupancy:i.occupancy},l&&i.uuids.forEach(function(e){d?r.push({state:e.state,uuid:e.uuid}):r.push({state:null,uuid:e})}),e}),e}():function(){var e={},n=[];return e.totalChannels=1,e.totalOccupancy=t.occupancy,e.channels={},e.channels[r[0]]={occupants:n,name:r[0],occupancy:t.occupancy},l&&t.uuids&&t.uuids.forEach(function(e){d?n.push({state:e.state,uuid:e.uuid}):n.push({state:null,uuid:e})}),e}()},handleError:function(e,t,n){402!==n.statusCode||this.getURL(e,t).includes("channel")||(n.errorData.message="You have tried to perform a Global Here Now operation, your keyset configuration does not support that. Please provide a channel, or enable the Global Here Now feature from the Portal.")}}),pe=Object.freeze({__proto__:null,getOperation:function(){return M.PNAddMessageActionOperation},validateParams:function(e,t){var n=e.config,i=t.action,r=t.channel;return t.messageTimetoken?n.subscribeKey?r?i?i.value?i.type?i.type.length>15?"Action.type value exceed maximum length of 15":void 0:"Missing Action.type":"Missing Action.value":"Missing Action":"Missing message channel":"Missing Subscribe Key":"Missing message timetoken"},usePost:function(){return!0},postURL:function(e,t){var n=e.config,i=t.channel,r=t.messageTimetoken;return"/v1/message-actions/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(i),"/message/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},getRequestHeaders:function(){return{"Content-Type":"application/json"}},isAuthSupported:function(){return!0},prepareParams:function(){return{}},postPayload:function(e,t){return t.action},handleResponse:function(e,t){return{data:t.data}}}),fe=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveMessageActionOperation},validateParams:function(e,t){var n=e.config,i=t.channel,r=t.actionTimetoken;return t.messageTimetoken?r?n.subscribeKey?i?void 0:"Missing message channel":"Missing Subscribe Key":"Missing action timetoken":"Missing message timetoken"},useDelete:function(){return!0},getURL:function(e,t){var n=e.config,i=t.channel,r=t.actionTimetoken,o=t.messageTimetoken;return"/v1/message-actions/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(i),"/message/").concat(o,"/action/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{data:t.data}}}),ge=Object.freeze({__proto__:null,getOperation:function(){return M.PNGetMessageActionsOperation},validateParams:function(e,t){var n=e.config,i=t.channel;return n.subscribeKey?i?void 0:"Missing message channel":"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channel;return"/v1/message-actions/".concat(n.subscribeKey,"/channel/").concat(z.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.limit,i=t.start,r=t.end,o={};return n&&(o.limit=n),i&&(o.start=i),r&&(o.end=r),o},handleResponse:function(e,t){var n={data:t.data,start:null,end:null};return n.data.length&&(n.end=n.data[n.data.length-1].actionTimetoken,n.start=n.data[0].actionTimetoken),n}}),me={getOperation:function(){return M.PNListFilesOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"channel can't be empty"},getURL:function(e,t){var n=e.config;return"/v1/files/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/files")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n={};return t.limit&&(n.limit=t.limit),t.next&&(n.next=t.next),n},handleResponse:function(e,t){return{status:t.status,data:t.data,next:t.next,count:t.count}}},ye={getOperation:function(){return M.PNGenerateUploadUrlOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.name)?void 0:"name can't be empty":"channel can't be empty"},usePost:function(){return!0},postURL:function(e,t){var n=e.config;return"/v1/files/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/generate-upload-url")},postPayload:function(e,t){return{name:t.name}},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status,data:t.data,file_upload_request:t.file_upload_request}}},be={getOperation:function(){return M.PNPublishFileOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.fileId)?(null==t?void 0:t.fileName)?void 0:"file name can't be empty":"file id can't be empty":"channel can't be empty"},getURL:function(e,t){var n=e.config,i=n.publishKey,r=n.subscribeKey,o=function(e,t){var n=JSON.stringify(t);if(e.cryptoModule){var i=e.cryptoModule.encrypt(n);n="string"==typeof i?i:v(i),n=JSON.stringify(n)}return n||""}(e,{message:t.message,file:{name:t.fileName,id:t.fileId}});return"/v1/files/publish-file/".concat(i,"/").concat(r,"/0/").concat(z.encodeString(t.channel),"/0/").concat(z.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n={};return t.ttl&&(n.ttl=t.ttl),void 0!==t.storeInHistory&&(n.store=t.storeInHistory?"1":"0"),t.meta&&"object"==typeof t.meta&&(n.meta=JSON.stringify(t.meta)),n},handleResponse:function(e,t){return{timetoken:t[2]}}},ve=function(e){var t=function(e){var t=this,n=e.generateUploadUrl,i=e.publishFile,r=e.modules,s=r.PubNubFile,l=r.config,u=r.cryptography,d=r.cryptoModule,c=r.networking;return function(e){var r=e.channel,h=e.file,p=e.message,f=e.cipherKey,g=e.meta,m=e.ttl,y=e.storeInHistory;return o(t,void 0,void 0,function(){var e,t,o,b,v,w,C,x,$,S,A,E,T,k,_,O,P,I,M,N,D,L,U,R,B,j,F,H,G;return a(this,function(a){switch(a.label){case 0:if(!r)throw new Q("Validation failed, check status for details",W("channel can't be empty"));if(!h)throw new Q("Validation failed, check status for details",W("file can't be empty"));return e=s.create(h),[4,n({channel:r,name:e.name})];case 1:return t=a.sent(),o=t.file_upload_request,b=o.url,v=o.form_fields,w=t.data,C=w.id,x=w.name,s.supportsEncryptFile&&(f||d)?null!=f?[3,3]:[4,d.encryptFile(e,s)]:[3,6];case 2:return $=a.sent(),[3,5];case 3:return[4,u.encryptFile(f,e,s)];case 4:$=a.sent(),a.label=5;case 5:e=$,a.label=6;case 6:S=v,e.mimeType&&(S=v.map(function(t){return"Content-Type"===t.key?{key:t.key,value:e.mimeType}:t})),a.label=7;case 7:return a.trys.push([7,21,,22]),s.supportsFileUri&&h.uri?(T=(E=c).POSTFILE,k=[b,S],[4,e.toFileUri()]):[3,10];case 8:return[4,T.apply(E,k.concat([a.sent()]))];case 9:return A=a.sent(),[3,20];case 10:return s.supportsFile?(O=(_=c).POSTFILE,P=[b,S],[4,e.toFile()]):[3,13];case 11:return[4,O.apply(_,P.concat([a.sent()]))];case 12:return A=a.sent(),[3,20];case 13:return s.supportsBuffer?(M=(I=c).POSTFILE,N=[b,S],[4,e.toBuffer()]):[3,16];case 14:return[4,M.apply(I,N.concat([a.sent()]))];case 15:return A=a.sent(),[3,20];case 16:return s.supportsBlob?(L=(D=c).POSTFILE,U=[b,S],[4,e.toBlob()]):[3,19];case 17:return[4,L.apply(D,U.concat([a.sent()]))];case 18:return A=a.sent(),[3,20];case 19:throw new Error("Unsupported environment");case 20:return[3,22];case 21:throw(R=a.sent()).response&&"string"==typeof R.response.text?(B=R.response.text,j=/<Message>(.*)<\/Message>/gi.exec(B),new Q(j?"Upload to bucket failed: ".concat(j[1]):"Upload to bucket failed.",R)):new Q("Upload to bucket failed.",R);case 22:if(204!==A.status)throw new Q("Upload to bucket was unsuccessful",A);F=l.fileUploadPublishRetryLimit,H=!1,G={timetoken:"0"},a.label=23;case 23:return a.trys.push([23,25,,26]),[4,i({channel:r,message:p,fileId:C,fileName:x,meta:g,storeInHistory:y,ttl:m})];case 24:return G=a.sent(),H=!0,[3,26];case 25:return a.sent(),F-=1,[3,26];case 26:if(!H&&F>0)return[3,23];a.label=27;case 27:if(H)return[2,{timetoken:G.timetoken,id:C,name:x}];throw new Q("Publish failed. You may want to execute that operation manually using pubnub.publishFile",{channel:r,id:C,name:x})}})})}}(e);return function(e,n){var i=t(e);return"function"==typeof n?(i.then(function(e){return n(null,e)}).catch(function(e){return n(e,null)}),i):i}},we=function(e,t){var n=t.channel,i=t.id,r=t.name,o=e.config,a=e.networking,s=e.tokenManager;if(!n)throw new Q("Validation failed, check status for details",W("channel can't be empty"));if(!i)throw new Q("Validation failed, check status for details",W("file id can't be empty"));if(!r)throw new Q("Validation failed, check status for details",W("file name can't be empty"));var l="/v1/files/".concat(o.subscribeKey,"/channels/").concat(z.encodeString(n),"/files/").concat(i,"/").concat(r),u={};u.uuid=o.getUUID(),u.pnsdk=V(o);var d=s.getToken()||o.getAuthKey();d&&(u.auth=d),o.secretKey&&K(e,l,u,{},{getOperation:function(){return"PubNubGetFileUrlOperation"}});var c=Object.keys(u).map(function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(u[e]))}).join("&");return""!==c?"".concat(a.getStandardOrigin()).concat(l,"?").concat(c):"".concat(a.getStandardOrigin()).concat(l)},Ce={getOperation:function(){return M.PNDownloadFileOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.name)?(null==t?void 0:t.id)?void 0:"id can't be empty":"name can't be empty":"channel can't be empty"},useGetFile:function(){return!0},getFileURL:function(e,t){var n=e.config;return"/v1/files/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/files/").concat(t.id,"/").concat(t.name)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},ignoreBody:function(){return!0},forceBuffered:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t,n){var i=e.PubNubFile,r=e.config,s=e.cryptography,l=e.cryptoModule;return o(void 0,void 0,void 0,function(){var e,o,u,d;return a(this,function(a){switch(a.label){case 0:return e=t.response.body,i.supportsEncryptFile&&(n.cipherKey||l)?null!=n.cipherKey?[3,2]:[4,l.decryptFile(i.create({data:e,name:n.name}),i)]:[3,5];case 1:return o=a.sent().data,[3,4];case 2:return[4,s.decrypt(null!==(u=n.cipherKey)&&void 0!==u?u:r.cipherKey,e)];case 3:o=a.sent(),a.label=4;case 4:e=o,a.label=5;case 5:return[2,i.create({data:e,name:null!==(d=t.response.name)&&void 0!==d?d:n.name,mimeType:t.response.type})]}})})}},xe={getOperation:function(){return M.PNListFilesOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.id)?(null==t?void 0:t.name)?void 0:"file name can't be empty":"file id can't be empty":"channel can't be empty"},useDelete:function(){return!0},getURL:function(e,t){var n=e.config;return"/v1/files/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/files/").concat(t.id,"/").concat(t.name)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status}}},$e={getOperation:function(){return M.PNGetAllUUIDMetadataOperation},validateParams:function(){},getURL:function(e){var t=e.config;return"/v2/objects/".concat(t.subscribeKey,"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(n=t.include)||void 0===n?void 0:n.customFields)&&h.include.push("custom"),h.include=h.include.join(","),(null===(i=null==t?void 0:t.include)||void 0===i?void 0:i.totalCount)&&(h.count=null===(r=t.include)||void 0===r?void 0:r.totalCount),(null===(o=null==t?void 0:t.page)||void 0===o?void 0:o.next)&&(h.start=null===(a=t.page)||void 0===a?void 0:a.next),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.prev)&&(h.end=null===(u=t.page)||void 0===u?void 0:u.prev),(null==t?void 0:t.filter)&&(h.filter=t.filter),h.limit=null!==(d=null==t?void 0:t.limit)&&void 0!==d?d:100,(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,next:t.next,prev:t.prev}}},Se={getOperation:function(){return M.PNGetUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:i.getUUID()))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r=e.config,o={};return o.uuid=null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:r.getUUID(),o.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&o.include.pop(),o.include=o.include.join(","),o},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ae={getOperation:function(){return M.PNSetUUIDMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.data))return"Data cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=t.uuid)&&void 0!==n?n:i.getUUID()))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r=e.config,o={};return o.uuid=null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:r.getUUID(),o.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&o.include.pop(),o.include=o.include.join(","),o},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ee={getOperation:function(){return M.PNRemoveUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:i.getUUID()))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i=e.config;return{uuid:null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:i.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Te={getOperation:function(){return M.PNGetAllChannelMetadataOperation},validateParams:function(){},getURL:function(e){var t=e.config;return"/v2/objects/".concat(t.subscribeKey,"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(n=t.include)||void 0===n?void 0:n.customFields)&&h.include.push("custom"),h.include=h.include.join(","),(null===(i=null==t?void 0:t.include)||void 0===i?void 0:i.totalCount)&&(h.count=null===(r=t.include)||void 0===r?void 0:r.totalCount),(null===(o=null==t?void 0:t.page)||void 0===o?void 0:o.next)&&(h.start=null===(a=t.page)||void 0===a?void 0:a.next),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.prev)&&(h.end=null===(u=t.page)||void 0===u?void 0:u.prev),(null==t?void 0:t.filter)&&(h.filter=t.filter),h.limit=null!==(d=null==t?void 0:t.limit)&&void 0!==d?d:100,(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},ke={getOperation:function(){return M.PNGetChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&i.include.pop(),i.include=i.include.join(","),i},handleResponse:function(e,t){return{status:t.status,data:t.data}}},_e={getOperation:function(){return M.PNSetChannelMetadataOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.data)?void 0:"Data cannot be empty":"Channel cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&i.include.pop(),i.include=i.include.join(","),i},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Oe={getOperation:function(){return M.PNRemoveChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Pe={getOperation:function(){return M.PNGetMembersOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"channel cannot be empty"},getURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h,p,f,g,m,y={include:[]};return(null==t?void 0:t.include)&&((null===(n=t.include)||void 0===n?void 0:n.statusField)&&y.include.push("status"),(null===(i=t.include)||void 0===i?void 0:i.customFields)&&y.include.push("custom"),(null===(r=t.include)||void 0===r?void 0:r.UUIDFields)&&y.include.push("uuid"),(null===(o=t.include)||void 0===o?void 0:o.customUUIDFields)&&y.include.push("uuid.custom"),(null===(a=t.include)||void 0===a?void 0:a.UUIDStatusField)&&y.include.push("uuid.status"),(null===(s=t.include)||void 0===s?void 0:s.UUIDTypeField)&&y.include.push("uuid.type")),y.include=y.include.join(","),(null===(u=null==t?void 0:t.include)||void 0===u?void 0:u.totalCount)&&(y.count=null===(d=t.include)||void 0===d?void 0:d.totalCount),(null===(c=null==t?void 0:t.page)||void 0===c?void 0:c.next)&&(y.start=null===(h=t.page)||void 0===h?void 0:h.next),(null===(p=null==t?void 0:t.page)||void 0===p?void 0:p.prev)&&(y.end=null===(f=t.page)||void 0===f?void 0:f.prev),(null==t?void 0:t.filter)&&(y.filter=t.filter),y.limit=null!==(g=null==t?void 0:t.limit)&&void 0!==g?g:100,(null==t?void 0:t.sort)&&(y.sort=Object.entries(null!==(m=t.sort)&&void 0!==m?m:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),y},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ie={getOperation:function(){return M.PNSetMembersOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.uuids)&&0!==(null==t?void 0:t.uuids.length)?void 0:"UUIDs cannot be empty":"Channel cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/channels/").concat(z.encodeString(t.channel),"/uuids")},patchPayload:function(e,t){var n;return(n={set:[],delete:[]})[t.type]=t.uuids.map(function(e){return"string"==typeof e?{uuid:{id:e}}:{uuid:{id:e.id},custom:e.custom,status:e.status}}),n},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(n=t.include)||void 0===n?void 0:n.customFields)&&h.include.push("custom"),(null===(i=t.include)||void 0===i?void 0:i.customUUIDFields)&&h.include.push("uuid.custom"),(null===(r=t.include)||void 0===r?void 0:r.UUIDFields)&&h.include.push("uuid")),h.include=h.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(h.count=!0),(null===(a=null==t?void 0:t.page)||void 0===a?void 0:a.next)&&(h.start=null===(s=t.page)||void 0===s?void 0:s.next),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.prev)&&(h.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(h.filter=t.filter),null!=t.limit&&(h.limit=t.limit),(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Me={getOperation:function(){return M.PNGetMembershipsOperation},validateParams:function(){},getURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:i.getUUID()),"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h,p,f,g,m,y={include:[]};return(null==t?void 0:t.include)&&((null===(n=t.include)||void 0===n?void 0:n.statusField)&&y.include.push("status"),(null===(i=t.include)||void 0===i?void 0:i.customFields)&&y.include.push("custom"),(null===(r=t.include)||void 0===r?void 0:r.channelFields)&&y.include.push("channel"),(null===(o=t.include)||void 0===o?void 0:o.customChannelFields)&&y.include.push("channel.custom"),(null===(a=t.include)||void 0===a?void 0:a.channelStatusField)&&y.include.push("channel.status"),(null===(s=t.include)||void 0===s?void 0:s.channelTypeField)&&y.include.push("channel.type")),y.include=y.include.join(","),(null===(u=null==t?void 0:t.include)||void 0===u?void 0:u.totalCount)&&(y.count=null===(d=t.include)||void 0===d?void 0:d.totalCount),(null===(c=null==t?void 0:t.page)||void 0===c?void 0:c.next)&&(y.start=null===(h=t.page)||void 0===h?void 0:h.next),(null===(p=null==t?void 0:t.page)||void 0===p?void 0:p.prev)&&(y.end=null===(f=t.page)||void 0===f?void 0:f.prev),(null==t?void 0:t.filter)&&(y.filter=t.filter),y.limit=null!==(g=null==t?void 0:t.limit)&&void 0!==g?g:100,(null==t?void 0:t.sort)&&(y.sort=Object.entries(null!==(m=t.sort)&&void 0!==m?m:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),y},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ne={getOperation:function(){return M.PNSetMembershipsOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channels)||0===(null==t?void 0:t.channels.length))return"Channels cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var n,i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/uuids/").concat(z.encodeString(null!==(n=t.uuid)&&void 0!==n?n:i.getUUID()),"/channels")},patchPayload:function(e,t){var n;return(n={set:[],delete:[]})[t.type]=t.channels.map(function(e){return"string"==typeof e?{channel:{id:e}}:{channel:{id:e.id},custom:e.custom,status:e.status}}),n},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n,i,r,o,a,s,u,d,c,h={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(n=t.include)||void 0===n?void 0:n.customFields)&&h.include.push("custom"),(null===(i=t.include)||void 0===i?void 0:i.customChannelFields)&&h.include.push("channel.custom"),(null===(r=t.include)||void 0===r?void 0:r.channelFields)&&h.include.push("channel")),h.include=h.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(h.count=!0),(null===(a=null==t?void 0:t.page)||void 0===a?void 0:a.next)&&(h.start=null===(s=t.page)||void 0===s?void 0:s.next),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.prev)&&(h.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(h.filter=t.filter),null!=t.limit&&(h.limit=t.limit),(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"asc"===i||"desc"===i?"".concat(n,":").concat(i):n})),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},De=Object.freeze({__proto__:null,getOperation:function(){return M.PNAccessManagerAudit},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v2/auth/audit/sub-key/".concat(t.subscribeKey)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e,t){var n=t.channel,i=t.channelGroup,r=t.authKeys,o=void 0===r?[]:r,a={};return n&&(a.channel=n),i&&(a["channel-group"]=i),o.length>0&&(a.auth=o.join(",")),a},handleResponse:function(e,t){return t.payload}}),Le=Object.freeze({__proto__:null,getOperation:function(){return M.PNAccessManagerGrant},validateParams:function(e,t){var n=e.config;return n.subscribeKey?n.publishKey?n.secretKey?null==t.uuids||t.authKeys?null==t.uuids||null==t.channels&&null==t.channelGroups?void 0:"Both channel/channelgroup and uuid cannot be used in the same request":"authKeys are required for grant request on uuids":"Missing Secret Key":"Missing Publish Key":"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v2/auth/grant/sub-key/".concat(t.subscribeKey)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e,t){var n=t.channels,i=void 0===n?[]:n,r=t.channelGroups,o=void 0===r?[]:r,a=t.uuids,s=void 0===a?[]:a,l=t.ttl,u=t.read,d=void 0!==u&&u,c=t.write,h=void 0!==c&&c,p=t.manage,f=void 0!==p&&p,g=t.get,m=void 0!==g&&g,y=t.join,b=void 0!==y&&y,v=t.update,w=void 0!==v&&v,C=t.authKeys,x=void 0===C?[]:C,$=t.delete,S={};return S.r=d?"1":"0",S.w=h?"1":"0",S.m=f?"1":"0",S.d=$?"1":"0",S.g=m?"1":"0",S.j=b?"1":"0",S.u=w?"1":"0",i.length>0&&(S.channel=i.join(",")),o.length>0&&(S["channel-group"]=o.join(",")),x.length>0&&(S.auth=x.join(",")),s.length>0&&(S["target-uuid"]=s.join(",")),(l||0===l)&&(S.ttl=l),S},handleResponse:function(){return{}}});function Ue(e){var t,n,i,r,o=void 0!==(null==e?void 0:e.authorizedUserId),a=void 0!==(null===(t=null==e?void 0:e.resources)||void 0===t?void 0:t.users),s=void 0!==(null===(n=null==e?void 0:e.resources)||void 0===n?void 0:n.spaces),l=void 0!==(null===(i=null==e?void 0:e.patterns)||void 0===i?void 0:i.users),u=void 0!==(null===(r=null==e?void 0:e.patterns)||void 0===r?void 0:r.spaces);return l||a||u||s||o}function Re(e){var t=0;return e.join&&(t|=128),e.update&&(t|=64),e.get&&(t|=32),e.delete&&(t|=8),e.manage&&(t|=4),e.write&&(t|=2),e.read&&(t|=1),t}function Be(e,t){if(Ue(t))return function(e,t){var n=t.ttl,i=t.resources,r=t.patterns,o=t.meta,a=t.authorizedUserId,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(i){var l=i.users,u=i.spaces,d=i.groups;l&&Object.keys(l).forEach(function(e){s.permissions.resources.uuids[e]=Re(l[e])}),u&&Object.keys(u).forEach(function(e){s.permissions.resources.channels[e]=Re(u[e])}),d&&Object.keys(d).forEach(function(e){s.permissions.resources.groups[e]=Re(d[e])})}if(r){var c=r.users,h=r.spaces,p=r.groups;c&&Object.keys(c).forEach(function(e){s.permissions.patterns.uuids[e]=Re(c[e])}),h&&Object.keys(h).forEach(function(e){s.permissions.patterns.channels[e]=Re(h[e])}),p&&Object.keys(p).forEach(function(e){s.permissions.patterns.groups[e]=Re(p[e])})}return(n||0===n)&&(s.ttl=n),o&&(s.permissions.meta=o),a&&(s.permissions.uuid="".concat(a)),s}(0,t);var n=t.ttl,i=t.resources,r=t.patterns,o=t.meta,a=t.authorized_uuid,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(i){var l=i.uuids,u=i.channels,d=i.groups;l&&Object.keys(l).forEach(function(e){s.permissions.resources.uuids[e]=Re(l[e])}),u&&Object.keys(u).forEach(function(e){s.permissions.resources.channels[e]=Re(u[e])}),d&&Object.keys(d).forEach(function(e){s.permissions.resources.groups[e]=Re(d[e])})}if(r){var c=r.uuids,h=r.channels,p=r.groups;c&&Object.keys(c).forEach(function(e){s.permissions.patterns.uuids[e]=Re(c[e])}),h&&Object.keys(h).forEach(function(e){s.permissions.patterns.channels[e]=Re(h[e])}),p&&Object.keys(p).forEach(function(e){s.permissions.patterns.groups[e]=Re(p[e])})}return(n||0===n)&&(s.ttl=n),o&&(s.permissions.meta=o),a&&(s.permissions.uuid="".concat(a)),s}var je=Object.freeze({__proto__:null,getOperation:function(){return M.PNAccessManagerGrantToken},extractPermissions:Re,validateParams:function(e,t){var n,i,r,o,a,s,l=e.config;if(!l.subscribeKey)return"Missing Subscribe Key";if(!l.publishKey)return"Missing Publish Key";if(!l.secretKey)return"Missing Secret Key";if(!t.resources&&!t.patterns)return"Missing either Resources or Patterns.";var u=void 0!==(null==t?void 0:t.authorized_uuid),d=void 0!==(null===(n=null==t?void 0:t.resources)||void 0===n?void 0:n.uuids),c=void 0!==(null===(i=null==t?void 0:t.resources)||void 0===i?void 0:i.channels),h=void 0!==(null===(r=null==t?void 0:t.resources)||void 0===r?void 0:r.groups),p=void 0!==(null===(o=null==t?void 0:t.patterns)||void 0===o?void 0:o.uuids),f=void 0!==(null===(a=null==t?void 0:t.patterns)||void 0===a?void 0:a.channels),g=void 0!==(null===(s=null==t?void 0:t.patterns)||void 0===s?void 0:s.groups),m=u||d||p||c||f||h||g;return Ue(t)&&m?"Cannot mix `users`, `spaces` and `authorizedUserId` with `uuids`, `channels`, `groups` and `authorized_uuid`":(!t.resources||t.resources.uuids&&0!==Object.keys(t.resources.uuids).length||t.resources.channels&&0!==Object.keys(t.resources.channels).length||t.resources.groups&&0!==Object.keys(t.resources.groups).length||t.resources.users&&0!==Object.keys(t.resources.users).length||t.resources.spaces&&0!==Object.keys(t.resources.spaces).length)&&(!t.patterns||t.patterns.uuids&&0!==Object.keys(t.patterns.uuids).length||t.patterns.channels&&0!==Object.keys(t.patterns.channels).length||t.patterns.groups&&0!==Object.keys(t.patterns.groups).length||t.patterns.users&&0!==Object.keys(t.patterns.users).length||t.patterns.spaces&&0!==Object.keys(t.patterns.spaces).length)?void 0:"Missing values for either Resources or Patterns."},postURL:function(e){var t=e.config;return"/v3/pam/".concat(t.subscribeKey,"/grant")},usePost:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(){return{}},postPayload:function(e,t){return Be(0,t)},handleResponse:function(e,t){return t.data.token}}),Fe={getOperation:function(){return M.PNAccessManagerRevokeToken},validateParams:function(e,t){return e.config.secretKey?t?void 0:"token can't be empty":"Missing Secret Key"},getURL:function(e,t){var n=e.config;return"/v3/pam/".concat(n.subscribeKey,"/grant/").concat(z.encodeString(t))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e){return{uuid:e.config.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}};function He(e,t){var n=JSON.stringify(t);if(e.cryptoModule){var i=e.cryptoModule.encrypt(n);n="string"==typeof i?i:v(i),n=JSON.stringify(n)}return n||""}var Ge=Object.freeze({__proto__:null,getOperation:function(){return M.PNPublishOperation},validateParams:function(e,t){var n=e.config,i=t.message;return t.channel?i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},usePost:function(e,t){var n=t.sendByPost;return void 0!==n&&n},getURL:function(e,t){var n=e.config,i=t.channel,r=He(e,t.message);return"/publish/".concat(n.publishKey,"/").concat(n.subscribeKey,"/0/").concat(z.encodeString(i),"/0/").concat(z.encodeString(r))},postURL:function(e,t){var n=e.config,i=t.channel;return"/publish/".concat(n.publishKey,"/").concat(n.subscribeKey,"/0/").concat(z.encodeString(i),"/0")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},postPayload:function(e,t){return He(e,t.message)},prepareParams:function(e,t){var n=t.meta,i=t.replicate,r=void 0===i||i,o=t.storeInHistory,a=t.ttl,s={};return null!=o&&(s.store=o?"1":"0"),a&&(s.ttl=a),!1===r&&(s.norep="true"),n&&"object"==typeof n&&(s.meta=JSON.stringify(n)),s},handleResponse:function(e,t){return{timetoken:t[2]}}}),ze=Object.freeze({__proto__:null,getOperation:function(){return M.PNSignalOperation},validateParams:function(e,t){var n=e.config,i=t.message;return t.channel?i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},getURL:function(e,t){var n,i=e.config,r=t.channel,o=(n=t.message,JSON.stringify(n));return"/signal/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(z.encodeString(r),"/0/").concat(z.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{timetoken:t[2]}}}),Qe=Object.freeze({__proto__:null,getOperation:function(){return M.PNHistoryOperation},validateParams:function(e,t){var n=t.channel,i=e.config;return n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var n=t.channel,i=e.config;return"/v2/history/sub-key/".concat(i.subscribeKey,"/channel/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.start,i=t.end,r=t.reverse,o=t.count,a=void 0===o?100:o,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,d=void 0!==u&&u,c={include_token:"true"};return c.count=a,n&&(c.start=n),i&&(c.end=i),l&&(c.string_message_token="true"),null!=r&&(c.reverse=r.toString()),d&&(c.include_meta="true"),c},handleResponse:function(e,t){var n={messages:[],startTimeToken:t[1],endTimeToken:t[2]};return Array.isArray(t[0])&&t[0].forEach(function(t){var i=function(e,t){var n={};if(!e.cryptoModule)return n.payload=t,n;try{var i=e.cryptoModule.decrypt(t),r=i instanceof ArrayBuffer?JSON.parse((new TextDecoder).decode(i)):i;return n.payload=r,n}catch(i){e.config.logVerbosity&&console&&console.log,n.payload=t,n.error="Error while decrypting message content: ".concat(i.message)}return n}(e,t.message),r={timetoken:t.timetoken,entry:i.payload};t.meta&&(r.meta=t.meta),i.error&&(r.error=i.error),n.messages.push(r)}),n}}),We=Object.freeze({__proto__:null,getOperation:function(){return M.PNDeleteMessagesOperation},validateParams:function(e,t){var n=t.channel,i=e.config;return n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},useDelete:function(){return!0},getURL:function(e,t){var n=t.channel,i=e.config;return"/v3/history/sub-key/".concat(i.subscribeKey,"/channel/").concat(z.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.start,i=t.end,r={};return n&&(r.start=n),i&&(r.end=i),r},handleResponse:function(e,t){return t.payload}}),qe=Object.freeze({__proto__:null,getOperation:function(){return M.PNMessageCounts},validateParams:function(e,t){var n=t.channels,i=t.timetoken,r=t.channelTimetokens,o=e.config;return n?i&&r?"timetoken and channelTimetokens are incompatible together":r&&r.length>1&&n.length!==r.length?"Length of channelTimetokens and channels do not match":o.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var n=t.channels,i=e.config,r=n.join(",");return"/v3/history/sub-key/".concat(i.subscribeKey,"/message-counts/").concat(z.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.timetoken,i=t.channelTimetokens,r={};if(i&&1===i.length){var o=l(i,1)[0];r.timetoken=o}else i?r.channelsTimetoken=i.join(","):n&&(r.timetoken=n);return r},handleResponse:function(e,t){return{channels:t.channels}}}),Ve=Object.freeze({__proto__:null,getOperation:function(){return M.PNFetchMessagesOperation},validateParams:function(e,t){var n=t.channels,i=t.includeMessageActions,r=void 0!==i&&i,o=e.config;if(!n||0===n.length)return"Missing channels";if(!o.subscribeKey)return"Missing Subscribe Key";if(r&&n.length>1)throw new TypeError("History can return actions data for a single channel only. Either pass a single channel or disable the includeMessageActions flag.")},getURL:function(e,t){var n=t.channels,i=void 0===n?[]:n,r=t.includeMessageActions,o=void 0!==r&&r,a=e.config,s=o?"history-with-actions":"history",l=i.length>0?i.join(","):",";return"/v3/".concat(s,"/sub-key/").concat(a.subscribeKey,"/channel/").concat(z.encodeString(l))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=t.channels,i=t.start,r=t.end,o=t.includeMessageActions,a=t.count,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,d=void 0!==u&&u,c=t.includeUuid,h=t.includeUUID,p=void 0===h||h,f=t.includeMessageType,g=void 0===f||f,m={};return m.max=a||(n.length>1||!0===o?25:100),i&&(m.start=i),r&&(m.end=r),l&&(m.string_message_token="true"),d&&(m.include_meta="true"),p&&!1!==c&&(m.include_uuid="true"),g&&(m.include_message_type="true"),m},handleResponse:function(e,t){var n={channels:{}};return Object.keys(t.channels||{}).forEach(function(i){n.channels[i]=[],(t.channels[i]||[]).forEach(function(t){var r={},o=function(e,t){var n={};if(!e.cryptoModule)return n.payload=t,n;try{var i=e.cryptoModule.decrypt(t),r=i instanceof ArrayBuffer?JSON.parse((new TextDecoder).decode(i)):i;return n.payload=r,n}catch(i){e.config.logVerbosity&&console&&console.log,n.payload=t,n.error="Error while decrypting message content: ".concat(i.message)}return n}(e,t.message);r.channel=i,r.timetoken=t.timetoken,r.message=o.payload,r.messageType=t.message_type,r.uuid=t.uuid,t.actions&&(r.actions=t.actions,r.data=t.actions),t.meta&&(r.meta=t.meta),o.error&&(r.error=o.error),n.channels[i].push(r)})}),t.more&&(n.more=t.more),n}}),Ye=Object.freeze({__proto__:null,getOperation:function(){return M.PNTimeOperation},getURL:function(){return"/time/0"},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},isAuthSupported:function(){return!1},handleResponse:function(e,t){return{timetoken:t[0]}},validateParams:function(){}}),Ke=Object.freeze({__proto__:null,getOperation:function(){return M.PNSubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/subscribe/".concat(n.subscribeKey,"/").concat(z.encodeString(o),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n=e.config,i=t.state,r=t.channelGroups,o=void 0===r?[]:r,a=t.timetoken,s=t.filterExpression,l=t.region,u={heartbeat:n.getPresenceTimeout()};return o.length>0&&(u["channel-group"]=o.join(",")),s&&s.length>0&&(u["filter-expr"]=s),Object.keys(i).length&&(u.state=JSON.stringify(i)),a&&(u.tt=a),l&&(u.tr=l),u},handleResponse:function(e,t){var n=[];t.m.forEach(function(e){var t={timetoken:e.p.t,region:e.p.r},i={shard:parseInt(e.a,10),subscriptionMatch:e.b,channel:e.c,messageType:e.e,payload:e.d,flags:e.f,issuingClientId:e.i,subscribeKey:e.k,originationTimetoken:e.o,userMetadata:e.u,publishMetaData:t};n.push(i)});var i={timetoken:t.t.t,region:t.t.r};return{messages:n,metadata:i}}}),Xe={getOperation:function(){return M.PNHandshakeOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channels)&&!(null==t?void 0:t.channelGroups))return"channels and channleGroups both should not be empty"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/subscribe/".concat(n.subscribeKey,"/").concat(z.encodeString(o),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var n={};return t.channelGroups&&t.channelGroups.length>0&&(n["channel-group"]=t.channelGroups.join(",")),n.tt=0,t.state&&(n.state=JSON.stringify(t.state)),t.filterExpression&&t.filterExpression.length>0&&(n["filter-expr"]=t.filterExpression),n.ee="",n},handleResponse:function(e,t){return{region:t.t.r,timetoken:t.t.t}}},Ze={getOperation:function(){return M.PNReceiveMessagesOperation},validateParams:function(e,t){return(null==t?void 0:t.channels)||(null==t?void 0:t.channelGroups)?(null==t?void 0:t.timetoken)?(null==t?void 0:t.region)?void 0:"region can not be empty":"timetoken can not be empty":"channels and channleGroups both should not be empty"},getURL:function(e,t){var n=e.config,i=t.channels,r=void 0===i?[]:i,o=r.length>0?r.join(","):",";return"/v2/subscribe/".concat(n.subscribeKey,"/").concat(z.encodeString(o),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},getAbortSignal:function(e,t){return t.abortSignal},prepareParams:function(e,t){var n={};return t.channelGroups&&t.channelGroups.length>0&&(n["channel-group"]=t.channelGroups.join(",")),t.filterExpression&&t.filterExpression.length>0&&(n["filter-expr"]=t.filterExpression),n.tt=t.timetoken,n.tr=t.region,n.ee="",n},handleResponse:function(e,t){var n=[];return t.m.forEach(function(e){var t={shard:parseInt(e.a,10),subscriptionMatch:e.b,channel:e.c,messageType:e.e,payload:e.d,flags:e.f,issuingClientId:e.i,subscribeKey:e.k,originationTimetoken:e.o,userMetadata:e.u,publishMetaData:{timetoken:e.p.t,region:e.p.r}};n.push(t)}),{messages:n,metadata:{region:t.t.r,timetoken:t.t.t}}}},Je=function(){function e(e){void 0===e&&(e=!1),this.sync=e,this.listeners=new Set}return e.prototype.subscribe=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.notify=function(e){var t=this,n=function(){t.listeners.forEach(function(t){t(e)})};this.sync?n():setTimeout(n,0)},e}(),et=function(){function e(e){this.label=e,this.transitionMap=new Map,this.enterEffects=[],this.exitEffects=[]}return e.prototype.transition=function(e,t){var n;if(this.transitionMap.has(t.type))return null===(n=this.transitionMap.get(t.type))||void 0===n?void 0:n(e,t)},e.prototype.on=function(e,t){return this.transitionMap.set(e,t),this},e.prototype.with=function(e,t){return[this,e,null!=t?t:[]]},e.prototype.onEnter=function(e){return this.enterEffects.push(e),this},e.prototype.onExit=function(e){return this.exitEffects.push(e),this},e}(),tt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.describe=function(e){return new et(e)},n.prototype.start=function(e,t){this.currentState=e,this.currentContext=t,this.notify({type:"engineStarted",state:e,context:t})},n.prototype.transition=function(e){var t,n,i,r,o,a;if(!this.currentState)throw new Error("Start the engine first");this.notify({type:"eventReceived",event:e});var u=this.currentState.transition(this.currentContext,e);if(u){var d=l(u,3),c=d[0],h=d[1],p=d[2];try{for(var f=s(this.currentState.exitEffects),g=f.next();!g.done;g=f.next()){var m=g.value;this.notify({type:"invocationDispatched",invocation:m(this.currentContext)})}}catch(e){t={error:e}}finally{try{g&&!g.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}var y=this.currentState;this.currentState=c;var b=this.currentContext;this.currentContext=h,this.notify({type:"transitionDone",fromState:y,fromContext:b,toState:c,toContext:h,event:e});try{for(var v=s(p),w=v.next();!w.done;w=v.next())m=w.value,this.notify({type:"invocationDispatched",invocation:m})}catch(e){i={error:e}}finally{try{w&&!w.done&&(r=v.return)&&r.call(v)}finally{if(i)throw i.error}}try{for(var C=s(this.currentState.enterEffects),x=C.next();!x.done;x=C.next())m=x.value,this.notify({type:"invocationDispatched",invocation:m(this.currentContext)})}catch(e){o={error:e}}finally{try{x&&!x.done&&(a=C.return)&&a.call(C)}finally{if(o)throw o.error}}}},n}(Je),nt=function(){function e(e){this.dependencies=e,this.instances=new Map,this.handlers=new Map}return e.prototype.on=function(e,t){this.handlers.set(e,t)},e.prototype.dispatch=function(e){if("CANCEL"!==e.type){var t=this.handlers.get(e.type);if(!t)throw new Error("Unhandled invocation '".concat(e.type,"'"));var n=t(e.payload,this.dependencies);e.managed&&this.instances.set(e.type,n),n.start()}else if(this.instances.has(e.payload)){var i=this.instances.get(e.payload);null==i||i.cancel(),this.instances.delete(e.payload)}},e.prototype.dispose=function(){var e,t;try{for(var n=s(this.instances.entries()),i=n.next();!i.done;i=n.next()){var r=l(i.value,2),o=r[0];r[1].cancel(),this.instances.delete(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e}();function it(e,t){var n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return{type:e,payload:null==t?void 0:t.apply(void 0,u([],l(n),!1))}};return n.type=e,n}function rt(e,t){var n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return{type:e,payload:t.apply(void 0,u([],l(n),!1)),managed:!1}};return n.type=e,n}function ot(e,t){var n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return{type:e,payload:t.apply(void 0,u([],l(n),!1)),managed:!0}};return n.type=e,n.cancel={type:"CANCEL",payload:e,managed:!1},n}var at=function(e){function n(){var t=this.constructor,n=e.call(this,"The operation was aborted.")||this;return n.name="AbortError",Object.setPrototypeOf(n,t.prototype),n}return t(n,e),n}(Error),st=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._aborted=!1,t}return t(n,e),Object.defineProperty(n.prototype,"aborted",{get:function(){return this._aborted},enumerable:!1,configurable:!0}),n.prototype.throwIfAborted=function(){if(this._aborted)throw new at},n.prototype.abort=function(){this._aborted=!0,this.notify(new at)},n}(Je),lt=function(e){function n(t,n,i){var r=e.call(this,t,n)||this;return r.asyncFunction=i,r.abortSignal=new st,r}return t(n,e),n.prototype.start=function(){this.asyncFunction(this.payload,this.abortSignal,this.dependencies).catch(function(e){})},n.prototype.cancel=function(){this.abortSignal.abort()},n}(function(e,t){this.payload=e,this.dependencies=t}),ut=function(e){return function(t,n){return new lt(t,n,e)}},dt=ot("HANDSHAKE",function(e,t){return{channels:e,groups:t}}),ct=ot("RECEIVE_MESSAGES",function(e,t,n){return{channels:e,groups:t,cursor:n}}),ht=rt("EMIT_MESSAGES",function(e){return e}),pt=rt("EMIT_STATUS",function(e){return e}),ft=ot("RECEIVE_RECONNECT",function(e){return e}),gt=ot("HANDSHAKE_RECONNECT",function(e){return e}),mt=it("SUBSCRIPTION_CHANGED",function(e,t){return{channels:e,groups:t}}),yt=it("SUBSCRIPTION_RESTORED",function(e,t,n,i){return{channels:e,groups:t,cursor:{timetoken:n,region:null!=i?i:0}}}),bt=it("HANDSHAKE_SUCCESS",function(e){return e}),vt=it("HANDSHAKE_FAILURE",function(e){return e}),wt=it("HANDSHAKE_RECONNECT_SUCCESS",function(e){return{cursor:e}}),Ct=it("HANDSHAKE_RECONNECT_FAILURE",function(e){return e}),xt=it("HANDSHAKE_RECONNECT_GIVEUP",function(e){return e}),$t=it("RECEIVE_SUCCESS",function(e,t){return{cursor:e,events:t}}),St=it("RECEIVE_FAILURE",function(e){return e}),At=it("RECEIVE_RECONNECT_SUCCESS",function(e,t){return{cursor:e,events:t}}),Et=it("RECEIVE_RECONNECT_FAILURE",function(e){return e}),Tt=it("RECEIVING_RECONNECT_GIVEUP",function(e){return e}),kt=it("DISCONNECT",function(){return{}}),_t=it("RECONNECT",function(e,t){return{cursor:{timetoken:null!=e?e:"",region:null!=t?t:0}}}),Ot=it("UNSUBSCRIBE_ALL",function(){return{}}),Pt=function(e){function n(t,n){var r=e.call(this,n)||this;return r.on(dt.type,ut(function(e,n,s){var l=s.handshake,u=s.presenceState,d=s.config;return o(r,void 0,void 0,function(){var r,o;return a(this,function(a){switch(a.label){case 0:n.throwIfAborted(),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,l(i({abortSignal:n,channels:e.channels,channelGroups:e.groups,filterExpression:d.filterExpression},d.maintainPresenceState&&{state:u}))];case 2:return r=a.sent(),[2,t.transition(bt(r))];case 3:return(o=a.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof Q?[2,t.transition(vt(o))]:[3,4];case 4:return[2]}})})})),r.on(ct.type,ut(function(e,n,i){var s=i.receiveMessages,l=i.config;return o(r,void 0,void 0,function(){var i,r;return a(this,function(o){switch(o.label){case 0:n.throwIfAborted(),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,s({abortSignal:n,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region,filterExpression:l.filterExpression})];case 2:return i=o.sent(),t.transition($t(i.metadata,i.messages)),[3,4];case 3:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof Q&&!n.aborted?[2,t.transition(St(r))]:[3,4];case 4:return[2]}})})})),r.on(ht.type,ut(function(e,t,n){var i=n.emitMessages;return o(r,void 0,void 0,function(){return a(this,function(t){return e.length>0&&i(e),[2]})})})),r.on(pt.type,ut(function(e,t,n){var i=n.emitStatus;return o(r,void 0,void 0,function(){return a(this,function(t){return i(e),[2]})})})),r.on(ft.type,ut(function(e,n,i){var s=i.receiveMessages,l=i.delay,u=i.config;return o(r,void 0,void 0,function(){var i,r;return a(this,function(o){switch(o.label){case 0:return u.retryConfiguration&&u.retryConfiguration.shouldRetry(e.reason,e.attempts)?(n.throwIfAborted(),[4,l(u.retryConfiguration.getDelay(e.attempts,e.reason))]):[3,6];case 1:o.sent(),n.throwIfAborted(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,s({abortSignal:n,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region,filterExpression:u.filterExpression})];case 3:return i=o.sent(),[2,t.transition(At(i.metadata,i.messages))];case 4:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof Q?[2,t.transition(Et(r))]:[3,5];case 5:return[3,7];case 6:return[2,t.transition(Tt(new Q(u.retryConfiguration.getGiveupReason(e.reason,e.attempts))))];case 7:return[2]}})})})),r.on(gt.type,ut(function(e,n,s){var l=s.handshake,u=s.delay,d=s.presenceState,c=s.config;return o(r,void 0,void 0,function(){var r,o;return a(this,function(a){switch(a.label){case 0:return c.retryConfiguration&&c.retryConfiguration.shouldRetry(e.reason,e.attempts)?(n.throwIfAborted(),[4,u(c.retryConfiguration.getDelay(e.attempts,e.reason))]):[3,6];case 1:a.sent(),n.throwIfAborted(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l(i({abortSignal:n,channels:e.channels,channelGroups:e.groups,filterExpression:c.filterExpression},c.maintainPresenceState&&{state:d}))];case 3:return r=a.sent(),[2,t.transition(wt(r))];case 4:return(o=a.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof Q?[2,t.transition(Ct(o))]:[3,5];case 5:return[3,7];case 6:return[2,t.transition(xt(new Q(c.retryConfiguration.getGiveupReason(e.reason,e.attempts))))];case 7:return[2]}})})})),r}return t(n,e),n}(nt),It=new et("HANDSHAKE_FAILED");It.on(mt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),It.on(_t.type,function(e,t){return Bt.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor||e.cursor})}),It.on(yt.type,function(e,t){var n,i;return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region?t.payload.cursor.region:null!==(i=null===(n=null==e?void 0:e.cursor)||void 0===n?void 0:n.region)&&void 0!==i?i:0}})}),It.on(Ot.type,function(e){return jt.with()});var Mt=new et("HANDSHAKE_STOPPED");Mt.on(mt.type,function(e,t){return Mt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Mt.on(_t.type,function(e,t){return Bt.with(i(i({},e),{cursor:t.payload.cursor||e.cursor}))}),Mt.on(yt.type,function(e,t){var n;return Mt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||(null===(n=null==e?void 0:e.cursor)||void 0===n?void 0:n.region)||0}})}),Mt.on(Ot.type,function(e){return jt.with()});var Nt=new et("RECEIVE_FAILED");Nt.on(_t.type,function(e,t){var n;return Bt.with({channels:e.channels,groups:e.groups,cursor:{timetoken:t.payload.cursor.timetoken?null===(n=t.payload.cursor)||void 0===n?void 0:n.timetoken:e.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Nt.on(mt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Nt.on(yt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Nt.on(Ot.type,function(e){return jt.with(void 0)});var Dt=new et("RECEIVE_STOPPED");Dt.on(mt.type,function(e,t){return Dt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Dt.on(yt.type,function(e,t){return Dt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Dt.on(_t.type,function(e,t){var n;return Bt.with({channels:e.channels,groups:e.groups,cursor:{timetoken:t.payload.cursor.timetoken?null===(n=t.payload.cursor)||void 0===n?void 0:n.timetoken:e.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Dt.on(Ot.type,function(){return jt.with(void 0)});var Lt=new et("RECEIVE_RECONNECTING");Lt.onEnter(function(e){return ft(e)}),Lt.onExit(function(){return ft.cancel}),Lt.on(At.type,function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[ht(t.payload.events)])}),Lt.on(Et.type,function(e,t){return Lt.with(i(i({},e),{attempts:e.attempts+1,reason:t.payload}))}),Lt.on(Tt.type,function(e,t){var n;return Nt.with({groups:e.groups,channels:e.channels,cursor:e.cursor,reason:t.payload},[pt({category:P.PNDisconnectedUnexpectedlyCategory,error:null===(n=t.payload)||void 0===n?void 0:n.message})])}),Lt.on(kt.type,function(e){return Dt.with({channels:e.channels,groups:e.groups,cursor:e.cursor},[pt({category:P.PNDisconnectedCategory})])}),Lt.on(yt.type,function(e,t){return Ut.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Lt.on(mt.type,function(e,t){return Ut.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Lt.on(Ot.type,function(e){return jt.with(void 0,[pt({category:P.PNDisconnectedCategory})])});var Ut=new et("RECEIVING");Ut.onEnter(function(e){return ct(e.channels,e.groups,e.cursor)}),Ut.onExit(function(){return ct.cancel}),Ut.on($t.type,function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[ht(t.payload.events)])}),Ut.on(mt.type,function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?jt.with(void 0):Ut.with({cursor:e.cursor,channels:t.payload.channels,groups:t.payload.groups})}),Ut.on(yt.type,function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?jt.with(void 0):Ut.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||e.cursor.region}})}),Ut.on(St.type,function(e,t){return Lt.with(i(i({},e),{attempts:0,reason:t.payload}))}),Ut.on(kt.type,function(e){return Dt.with({channels:e.channels,groups:e.groups,cursor:e.cursor},[pt({category:P.PNDisconnectedCategory})])}),Ut.on(Ot.type,function(e){return jt.with(void 0,[pt({category:P.PNDisconnectedCategory})])});var Rt=new et("HANDSHAKE_RECONNECTING");Rt.onEnter(function(e){return gt(e)}),Rt.onExit(function(){return gt.cancel}),Rt.on(wt.type,function(e,t){var n,i,r={timetoken:(null===(n=e.cursor)||void 0===n?void 0:n.timetoken)?null===(i=e.cursor)||void 0===i?void 0:i.timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region};return Ut.with({channels:e.channels,groups:e.groups,cursor:r},[pt({category:P.PNConnectedCategory})])}),Rt.on(Ct.type,function(e,t){return Rt.with(i(i({},e),{attempts:e.attempts+1,reason:t.payload}))}),Rt.on(xt.type,function(e,t){var n;return It.with({groups:e.groups,channels:e.channels,cursor:e.cursor,reason:t.payload},[pt({category:P.PNConnectionErrorCategory,error:null===(n=t.payload)||void 0===n?void 0:n.message})])}),Rt.on(kt.type,function(e){return Mt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}),Rt.on(mt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Rt.on(yt.type,function(e,t){var n,i;return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:(null===(n=t.payload.cursor)||void 0===n?void 0:n.region)||(null===(i=null==e?void 0:e.cursor)||void 0===i?void 0:i.region)||0}})}),Rt.on(Ot.type,function(e){return jt.with(void 0)});var Bt=new et("HANDSHAKING");Bt.onEnter(function(e){return dt(e.channels,e.groups)}),Bt.onExit(function(){return dt.cancel}),Bt.on(mt.type,function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?jt.with(void 0):Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})}),Bt.on(bt.type,function(e,t){var n,i;return Ut.with({channels:e.channels,groups:e.groups,cursor:{timetoken:(null===(n=null==e?void 0:e.cursor)||void 0===n?void 0:n.timetoken)?null===(i=null==e?void 0:e.cursor)||void 0===i?void 0:i.timetoken:t.payload.timetoken,region:t.payload.region}},[pt({category:P.PNConnectedCategory})])}),Bt.on(vt.type,function(e,t){return Rt.with({channels:e.channels,groups:e.groups,cursor:e.cursor,attempts:0,reason:t.payload})}),Bt.on(kt.type,function(e){return Mt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}),Bt.on(yt.type,function(e,t){var n;return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:{timetoken:t.payload.cursor.timetoken,region:t.payload.cursor.region||(null===(n=null==e?void 0:e.cursor)||void 0===n?void 0:n.region)||0}})}),Bt.on(Ot.type,function(e){return jt.with()});var jt=new et("UNSUBSCRIBED");jt.on(mt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups})}),jt.on(yt.type,function(e,t){return Bt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:t.payload.cursor})});var Ft=function(){function e(e){var t=this;this.engine=new tt,this.channels=[],this.groups=[],this.dependencies=e,this.dispatcher=new Pt(this.engine,e),this._unsubscribeEngine=this.engine.subscribe(function(e){"invocationDispatched"===e.type&&t.dispatcher.dispatch(e.invocation)}),this.engine.start(jt,void 0)}return Object.defineProperty(e.prototype,"_engine",{get:function(){return this.engine},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e){var t=this,n=e.channels,i=e.channelGroups,r=e.timetoken,o=e.withPresence;this.channels=u(u([],l(this.channels),!1),l(null!=n?n:[]),!1),this.groups=u(u([],l(this.groups),!1),l(null!=i?i:[]),!1),o&&(this.channels.map(function(e){return t.channels.push("".concat(e,"-pnpres"))}),this.groups.map(function(e){return t.groups.push("".concat(e,"-pnpres"))})),r?this.engine.transition(yt(Array.from(new Set(u(u([],l(this.channels),!1),l(null!=n?n:[]),!1))),Array.from(new Set(u(u([],l(this.groups),!1),l(null!=i?i:[]),!1))),r)):this.engine.transition(mt(Array.from(new Set(u(u([],l(this.channels),!1),l(null!=n?n:[]),!1))),Array.from(new Set(u(u([],l(this.groups),!1),l(null!=i?i:[]),!1))))),this.dependencies.join&&this.dependencies.join({channels:Array.from(new Set(this.channels.filter(function(e){return!e.endsWith("-pnpres")}))),groups:Array.from(new Set(this.groups.filter(function(e){return!e.endsWith("-pnpres")})))})},e.prototype.unsubscribe=function(e){var t=this,n=e.channels,i=void 0===n?[]:n,r=e.channelGroups,o=void 0===r?[]:r,a=z.removeSingleOccurance(this.channels,u(u([],l(i),!1),l(i.map(function(e){return"".concat(e,"-pnpres")})),!1)),s=z.removeSingleOccurance(this.groups,u(u([],l(o),!1),l(o.map(function(e){return"".concat(e,"-pnpres")})),!1));if(new Set(this.channels).size!==new Set(a).size||new Set(this.groups).size!==new Set(s).size){var d=z.findUniqueCommonElements(this.channels,i),c=z.findUniqueCommonElements(this.groups,o);this.dependencies.presenceState&&(null==d||d.forEach(function(e){return delete t.dependencies.presenceState[e]}),null==c||c.forEach(function(e){return delete t.dependencies.presenceState[e]})),this.channels=a,this.groups=s,this.engine.transition(mt(Array.from(new Set(this.channels.slice(0))),Array.from(new Set(this.groups.slice(0))))),this.dependencies.leave&&this.dependencies.leave({channels:d.slice(0),groups:c.slice(0)})}},e.prototype.unsubscribeAll=function(){this.channels=[],this.groups=[],this.dependencies.presenceState&&(this.dependencies.presenceState={}),this.engine.transition(mt(this.channels.slice(0),this.groups.slice(0))),this.dependencies.leaveAll&&this.dependencies.leaveAll()},e.prototype.reconnect=function(e){var t=e.timetoken,n=e.region;this.engine.transition(_t(t,n))},e.prototype.disconnect=function(){this.engine.transition(kt()),this.dependencies.leaveAll&&this.dependencies.leaveAll()},e.prototype.getSubscribedChannels=function(){return Array.from(new Set(this.channels))},e.prototype.getSubscribedChannelGroups=function(){return Array.from(new Set(this.groups))},e.prototype.dispose=function(){this.disconnect(),this._unsubscribeEngine(),this.dispatcher.dispose()},e}(),Ht=it("RECONNECT",function(){return{}}),Gt=it("DISCONNECT",function(){return{}}),zt=it("JOINED",function(e,t){return{channels:e,groups:t}}),Qt=it("LEFT",function(e,t){return{channels:e,groups:t}}),Wt=it("LEFT_ALL",function(){return{}}),qt=it("HEARTBEAT_SUCCESS",function(e){return{statusCode:e}}),Vt=it("HEARTBEAT_FAILURE",function(e){return e}),Yt=it("HEARTBEAT_GIVEUP",function(){return{}}),Kt=it("TIMES_UP",function(){return{}}),Xt=rt("HEARTBEAT",function(e,t){return{channels:e,groups:t}}),Zt=rt("LEAVE",function(e,t){return{channels:e,groups:t}}),Jt=rt("EMIT_STATUS",function(e){return e}),en=ot("WAIT",function(){return{}}),tn=ot("DELAYED_HEARTBEAT",function(e){return e}),nn=function(e){function n(t,n){var r=e.call(this,n)||this;return r.on(Xt.type,ut(function(e,n,s){var l=s.heartbeat,u=s.presenceState,d=s.config;return o(r,void 0,void 0,function(){var n;return a(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,l(i({channels:e.channels,channelGroups:e.groups},d.maintainPresenceState&&{state:u}))];case 1:return r.sent(),t.transition(qt(200)),[3,3];case 2:return(n=r.sent())instanceof Q?[2,t.transition(Vt(n))]:[3,3];case 3:return[2]}})})})),r.on(Zt.type,ut(function(e,t,n){var i=n.leave,s=n.config;return o(r,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:if(s.suppressLeaveEvents)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,i({channels:e.channels,channelGroups:e.groups})];case 2:case 3:return t.sent(),[3,4];case 4:return[2]}})})})),r.on(en.type,ut(function(e,n,i){var s=i.heartbeatDelay;return o(r,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return n.throwIfAborted(),[4,s()];case 1:return e.sent(),n.throwIfAborted(),[2,t.transition(Kt())]}})})})),r.on(tn.type,ut(function(e,n,s){var l=s.heartbeat,u=s.retryDelay,d=s.presenceState,c=s.config;return o(r,void 0,void 0,function(){var r;return a(this,function(o){switch(o.label){case 0:return c.retryConfiguration&&c.retryConfiguration.shouldRetry(e.reason,e.attempts)?(n.throwIfAborted(),[4,u(c.retryConfiguration.getDelay(e.attempts,e.reason))]):[3,6];case 1:o.sent(),n.throwIfAborted(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,l(i({channels:e.channels,channelGroups:e.groups},c.maintainPresenceState&&{state:d}))];case 3:return o.sent(),[2,t.transition(qt(200))];case 4:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof Q?[2,t.transition(Vt(r))]:[3,5];case 5:return[3,7];case 6:return[2,t.transition(Yt())];case 7:return[2]}})})})),r.on(Jt.type,ut(function(e,t,n){var s=n.emitStatus,l=n.config;return o(r,void 0,void 0,function(){var t;return a(this,function(n){return l.announceFailedHeartbeats&&!0===(null===(t=null==e?void 0:e.status)||void 0===t?void 0:t.error)?s(e.status):l.announceSuccessfulHeartbeats&&200===e.statusCode&&s(i(i({},e),{operation:M.PNHeartbeatOperation,error:!1})),[2]})})})),r}return t(n,e),n}(nt),rn=new et("HEARTBEAT_STOPPED");rn.on(zt.type,function(e,t){return rn.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),rn.on(Qt.type,function(e,t){return rn.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})})}),rn.on(Ht.type,function(e,t){return ln.with({channels:e.channels,groups:e.groups})}),rn.on(Wt.type,function(e,t){return un.with(void 0)});var on=new et("HEARTBEAT_COOLDOWN");on.onEnter(function(){return en()}),on.onExit(function(){return en.cancel}),on.on(Kt.type,function(e,t){return ln.with({channels:e.channels,groups:e.groups})}),on.on(zt.type,function(e,t){return ln.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),on.on(Qt.type,function(e,t){return ln.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})},[Zt(t.payload.channels,t.payload.groups)])}),on.on(Gt.type,function(e){return rn.with({channels:e.channels,groups:e.groups},[Zt(e.channels,e.groups)])}),on.on(Wt.type,function(e,t){return un.with(void 0,[Zt(e.channels,e.groups)])});var an=new et("HEARTBEAT_FAILED");an.on(zt.type,function(e,t){return ln.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),an.on(Qt.type,function(e,t){return ln.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})},[Zt(t.payload.channels,t.payload.groups)])}),an.on(Ht.type,function(e,t){return ln.with({channels:e.channels,groups:e.groups})}),an.on(Gt.type,function(e,t){return rn.with({channels:e.channels,groups:e.groups},[Zt(e.channels,e.groups)])}),an.on(Wt.type,function(e,t){return un.with(void 0,[Zt(e.channels,e.groups)])});var sn=new et("HEARBEAT_RECONNECTING");sn.onEnter(function(e){return tn(e)}),sn.onExit(function(){return tn.cancel}),sn.on(zt.type,function(e,t){return ln.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),sn.on(Qt.type,function(e,t){return ln.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})},[Zt(t.payload.channels,t.payload.groups)])}),sn.on(Gt.type,function(e,t){rn.with({channels:e.channels,groups:e.groups},[Zt(e.channels,e.groups)])}),sn.on(qt.type,function(e,t){return on.with({channels:e.channels,groups:e.groups})}),sn.on(Vt.type,function(e,t){return sn.with(i(i({},e),{attempts:e.attempts+1,reason:t.payload}))}),sn.on(Yt.type,function(e,t){return an.with({channels:e.channels,groups:e.groups})}),sn.on(Wt.type,function(e,t){return un.with(void 0,[Zt(e.channels,e.groups)])});var ln=new et("HEARTBEATING");ln.onEnter(function(e){return Xt(e.channels,e.groups)}),ln.on(qt.type,function(e,t){return on.with({channels:e.channels,groups:e.groups})}),ln.on(zt.type,function(e,t){return ln.with({channels:u(u([],l(e.channels),!1),l(t.payload.channels),!1),groups:u(u([],l(e.groups),!1),l(t.payload.groups),!1)})}),ln.on(Qt.type,function(e,t){return ln.with({channels:e.channels.filter(function(e){return!t.payload.channels.includes(e)}),groups:e.groups.filter(function(e){return!t.payload.groups.includes(e)})},[Zt(t.payload.channels,t.payload.groups)])}),ln.on(Vt.type,function(e,t){return sn.with(i(i({},e),{attempts:0,reason:t.payload}))}),ln.on(Gt.type,function(e){return rn.with({channels:e.channels,groups:e.groups},[Zt(e.channels,e.groups)])}),ln.on(Wt.type,function(e,t){return un.with(void 0,[Zt(e.channels,e.groups)])});var un=new et("HEARTBEAT_INACTIVE");un.on(zt.type,function(e,t){return ln.with({channels:t.payload.channels,groups:t.payload.groups})});var dn=function(){function e(e){var t=this;this.engine=new tt,this.channels=[],this.groups=[],this.dispatcher=new nn(this.engine,e),this.dependencies=e,this._unsubscribeEngine=this.engine.subscribe(function(e){"invocationDispatched"===e.type&&t.dispatcher.dispatch(e.invocation)}),this.engine.start(un,void 0)}return Object.defineProperty(e.prototype,"_engine",{get:function(){return this.engine},enumerable:!1,configurable:!0}),e.prototype.join=function(e){var t=e.channels,n=e.groups;this.channels=u(u([],l(this.channels),!1),l(null!=t?t:[]),!1),this.groups=u(u([],l(this.groups),!1),l(null!=n?n:[]),!1),this.engine.transition(zt(this.channels.slice(0),this.groups.slice(0)))},e.prototype.leave=function(e){var t=this,n=e.channels,i=e.groups;this.dependencies.presenceState&&(null==n||n.forEach(function(e){return delete t.dependencies.presenceState[e]}),null==i||i.forEach(function(e){return delete t.dependencies.presenceState[e]})),this.engine.transition(Qt(null!=n?n:[],null!=i?i:[]))},e.prototype.leaveAll=function(){this.engine.transition(Wt())},e.prototype.dispose=function(){this._unsubscribeEngine(),this.dispatcher.dispose()},e}(),cn=function(){function e(){}return e.LinearRetryPolicy=function(e){return{delay:e.delay,maximumRetry:e.maximumRetry,shouldRetry:function(e,t){var n;return 403!==(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.statusCode)&&this.maximumRetry>t},getDelay:function(e,t){var n;return 1e3*((null!==(n=t.retryAfter)&&void 0!==n?n:this.delay)+Math.random())},getGiveupReason:function(e,t){var n;return this.maximumRetry<=t?"retry attempts exhaused.":403===(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.statusCode)?"forbidden operation.":"unknown error"}}},e.ExponentialRetryPolicy=function(e){return{minimumDelay:e.minimumDelay,maximumDelay:e.maximumDelay,maximumRetry:e.maximumRetry,shouldRetry:function(e,t){var n;return 403!==(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.statusCode)&&this.maximumRetry>t},getDelay:function(e,t){var n;return 1e3*((null!==(n=t.retryAfter)&&void 0!==n?n:Math.min(Math.pow(2,e),this.maximumDelay))+Math.random())},getGiveupReason:function(e,t){var n;return this.maximumRetry<=t?"retry attempts exhaused.":403===(null===(n=null==e?void 0:e.status)||void 0===n?void 0:n.statusCode)?"forbidden operation.":"unknown error"}}},e}(),hn=function(){function e(e){var t=e.modules,n=e.listenerManager,i=e.getFileUrl;this.modules=t,this.listenerManager=n,this.getFileUrl=i,this._channelListenerMap=new Map,this._groupListenerMap=new Map,t.cryptoModule&&(this._decoder=new TextDecoder)}return e.prototype.emitEvent=function(e){var t=e.channel,n=e.publishMetaData,o=e.subscriptionMatch;if(t===o&&(o=null),e.channel.endsWith("-pnpres")){var a={channel:null,subscription:null};t&&(a.channel=t.substring(0,t.lastIndexOf("-pnpres"))),o&&(a.subscription=o.substring(0,o.lastIndexOf("-pnpres"))),a.action=e.payload.action,a.state=e.payload.data,a.timetoken=n.timetoken,a.occupancy=e.payload.occupancy,a.uuid=e.payload.uuid,a.timestamp=e.payload.timestamp,e.payload.join&&(a.join=e.payload.join),e.payload.leave&&(a.leave=e.payload.leave),e.payload.timeout&&(a.timeout=e.payload.timeout),a.actualChannel=null!=o?t:null,a.subscribedChannel=null!=o?o:t,this.listenerManager.announcePresence(a),this._announce("presence",a,a.channel,a.subscription)}else if(1===e.messageType)(a={channel:null,subscription:null}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId,e.userMetadata&&(a.userMetadata=e.userMetadata),a.message=e.payload,this.listenerManager.announceSignal(a),this._announce("signal",a,a.channel,a.subscription);else if(2===e.messageType){if((a={channel:null,subscription:null}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId,e.userMetadata&&(a.userMetadata=e.userMetadata),a.message={event:e.payload.event,type:e.payload.type,data:e.payload.data},this.listenerManager.announceObjects(a),this._announce("objects",a,a.channel,a.subscription),"uuid"===e.payload.type){var s=this._renameChannelField(a),l=i(i({},s),{message:i(i({},s.message),{event:this._renameEvent(s.message.event),type:"user"})});this.listenerManager.announceUser(l),this._announce("user",l,a.channel,a.subscription)}else if("channel"===e.payload.type){s=this._renameChannelField(a);var u=i(i({},s),{message:i(i({},s.message),{event:this._renameEvent(s.message.event),type:"space"})});this.listenerManager.announceSpace(u),this._announce("space",u,a.channel,a.subscription)}else if("membership"===e.payload.type){var d=(s=this._renameChannelField(a)).message.data,c=d.uuid,h=d.channel,p=r(d,["uuid","channel"]);p.user=c,p.space=h;var f=i(i({},s),{message:i(i({},s.message),{event:this._renameEvent(s.message.event),data:p})});this.listenerManager.announceMembership(f),this._announce("membership",f,a.channel,a.subscription)}}else if(3===e.messageType)(a={}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId,a.data={messageTimetoken:e.payload.data.messageTimetoken,actionTimetoken:e.payload.data.actionTimetoken,type:e.payload.data.type,uuid:e.issuingClientId,value:e.payload.data.value},a.event=e.payload.event,this.listenerManager.announceMessageAction(a),this._announce("messageAction",a,a.channel,a.subscription);else if(4===e.messageType){(a={}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId;var g=e.payload;if(this.modules.cryptoModule){var m=void 0;try{m=(y=this.modules.cryptoModule.decrypt(e.payload))instanceof ArrayBuffer?JSON.parse(this._decoder.decode(y)):y}catch(e){m=null,a.error="Error while decrypting message content: ".concat(e.message)}null!==m&&(g=m)}e.userMetadata&&(a.userMetadata=e.userMetadata),a.message=g.message,a.file={id:g.file.id,name:g.file.name,url:this.getFileUrl({id:g.file.id,name:g.file.name,channel:t})},this.listenerManager.announceFile(a),this._announce("file",a,a.channel,a.subscription)}else{if((a={channel:null,subscription:null}).channel=t,a.subscription=o,a.timetoken=n.timetoken,a.publisher=e.issuingClientId,e.userMetadata&&(a.userMetadata=e.userMetadata),this.modules.cryptoModule){m=void 0;try{var y;m=(y=this.modules.cryptoModule.decrypt(e.payload))instanceof ArrayBuffer?JSON.parse(this._decoder.decode(y)):y}catch(e){m=null,a.error="Error while decrypting message content: ".concat(e.message)}a.message=null!=m?m:e.payload}else a.message=e.payload;a.actualChannel=null!=o?t:null,a.subscribedChannel=null!=o?o:t,this.listenerManager.announceMessage(a),this._announce("message",a,a.channel,a.subscription)}},e.prototype.addListener=function(e,t,n){var i=this;t&&n?(null==t||t.forEach(function(t){i._channelListenerMap[t]?i._channelListenerMap[t].includes(e)||i._channelListenerMap[t].push(e):i._channelListenerMap[t]=[e]}),null==n||n.forEach(function(t){i._groupListenerMap[t]?i._groupListenerMap[t].includes(e)||i._groupListenerMap[t].push(e):i._groupListenerMap[t]=[e]})):this.listenerManager.addListener(e)},e.prototype.removeListener=function(e,t,n){var i=this;t&&n?(null==t||t.forEach(function(t){var n;i._channelListenerMap[t]=null===(n=i._channelListenerMap[t])||void 0===n?void 0:n.filter(function(t){return t!==e})}),null==n||n.forEach(function(t){var n;i._groupListenerMap[t]=null===(n=i._groupListenerMap[t])||void 0===n?void 0:n.filter(function(t){return t!==e})})):this.listenerManager.removeListener(e)},e.prototype.removeAllListeners=function(){this.listenerManager.removeAllListeners()},e.prototype._renameEvent=function(e){return"set"===e?"updated":"removed"},e.prototype._renameChannelField=function(e){var t=e.channel,n=r(e,["channel"]);return n.spaceId=t,n},e.prototype._announce=function(e,t,n,i){var r,o;null===(r=this._channelListenerMap[n])||void 0===r||r.forEach(function(n){return n[e]&&n[e](t)}),null===(o=this._groupListenerMap[i])||void 0===o||o.forEach(function(n){return n[e]&&n[e](t)})},e}(),pn=function(){function e(){}return e.prototype.subscribe=function(){var e,t;this.pubnub.subscribe(i({channels:this.channelNames,channelGroups:this.groupNames},(null===(t=null===(e=this.options)||void 0===e?void 0:e.cursor)||void 0===t?void 0:t.timetoken)&&{timetoken:this.options.cursor.timetoken}))},e.prototype.unsubscribe=function(){this.pubnub.unsubscribe({channels:this.channelNames.filter(function(e){return!e.endsWith("-pnpres")}),channelGroups:this.groupNames.filter(function(e){return!e.endsWith("-pnpres")})})},Object.defineProperty(e.prototype,"onMessage",{set:function(e){this.listener.message=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onPresence",{set:function(e){this.listener.presence=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSignal",{set:function(e){this.listener.signal=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onObjects",{set:function(e){this.listener.objects=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMessageAction",{set:function(e){this.listener.messageAction=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onFile",{set:function(e){this.listener.file=e},enumerable:!1,configurable:!0}),e.prototype.addListener=function(e){this.eventEmitter.addListener(e,this.channelNames.filter(function(e){return!e.endsWith("-pnpres")}),this.groupNames.filter(function(e){return!e.endsWith("-pnpres")}))},e.prototype.removeListener=function(e){this.eventEmitter.removeListener(e,this.channelNames,this.groupNames)},Object.defineProperty(e.prototype,"channels",{get:function(){return this.channelNames.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"channelGroups",{get:function(){return this.groupNames.slice(0)},enumerable:!1,configurable:!0}),e}(),fn=function(e){function n(t){var n=t.channels,i=void 0===n?[]:n,r=t.channelGroups,o=void 0===r?[]:r,a=t.subscriptionOptions,s=t.eventEmitter,d=t.pubnub,c=e.call(this)||this;return c.channelNames=[],c.groupNames=[],c.subscriptionList=[],c.options=a,c.eventEmitter=s,c.pubnub=d,i.filter(function(e){return!e.endsWith("-pnpres")}).forEach(function(e){var t=c.pubnub.channel(e).subscription(c.options);c.channelNames=u(u([],l(c.channelNames),!1),l(t.channels),!1),c.subscriptionList.push(t)}),o.filter(function(e){return!e.endsWith("-pnpres")}).forEach(function(e){var t=c.pubnub.channelGroup(e).subscription(c.options);c.groupNames=u(u([],l(c.groupNames),!1),l(t.channelGroups),!1),c.subscriptionList.push(t)}),c.listener={},s.addListener(c.listener,c.channelNames.filter(function(e){return!e.endsWith("-pnpres")}),c.groupNames.filter(function(e){return!e.endsWith("-pnpres")})),c}return t(n,e),n.prototype.addSubscription=function(e){this.subscriptionList.push(e),this.channelNames=u(u([],l(this.channelNames),!1),l(e.channels),!1),this.groupNames=u(u([],l(this.groupNames),!1),l(e.channelGroups),!1),this.eventEmitter.addListener(this.listener,e.channels,e.channelGroups)},n.prototype.removeSubscription=function(e){var t=e.channels,n=e.channelGroups;this.channelNames=this.channelNames.filter(function(e){return!t.includes(e)}),this.groupNames=this.groupNames.filter(function(e){return!n.includes(e)}),this.subscriptionList=this.subscriptionList.filter(function(t){return t!==e}),this.eventEmitter.removeListener(this.listener,t,n)},n.prototype.addSubscriptionSet=function(e){this.subscriptionList=u(u([],l(this.subscriptionList),!1),l(e.subscriptions),!1),this.channelNames=u(u([],l(this.channelNames),!1),l(e.channels),!1),this.groupNames=u(u([],l(this.groupNames),!1),l(e.channelGroups),!1),this.eventEmitter.addListener(this.listener,e.channels,e.channelGroups)},n.prototype.removeSubscriptionSet=function(e){var t=e.channels,n=e.channelGroups;this.channelNames=this.channelNames.filter(function(e){return!t.includes(e)}),this.groupNames=this.groupNames.filter(function(e){return!n.includes(e)}),this.subscriptionList=this.subscriptionList.filter(function(t){return!e.subscriptions.includes(t)}),this.eventEmitter.removeListener(this.listener,t,n)},Object.defineProperty(n.prototype,"subscriptions",{get:function(){return this.subscriptionList.slice(0)},enumerable:!1,configurable:!0}),n}(pn),gn=function(e){function n(t){var n=t.channels,i=t.channelGroups,r=t.subscriptionOptions,o=t.eventEmitter,a=t.pubnub,s=e.call(this)||this;return s.channelNames=[],s.groupNames=[],s.channelNames=n,s.groupNames=i,s.options=r,s.pubnub=a,s.eventEmitter=o,s.listener={},o.addListener(s.listener,s.channelNames.filter(function(e){return!e.endsWith("-pnpres")}),s.groupNames.filter(function(e){return!e.endsWith("-pnpres")})),s}return t(n,e),n.prototype.addSubscription=function(e){return new fn({channels:u(u([],l(this.channelNames),!1),l(e.channels),!1),channelGroups:u(u([],l(this.groupNames),!1),l(e.channelGroups),!1),subscriptionOptions:i(i({},this.options),null==e?void 0:e.options),eventEmitter:this.eventEmitter,pubnub:this.pubnub})},n}(pn),mn=function(){function e(e,t,n){this.name=e,this.eventEmitter=t,this.pubnub=n}return e.prototype.subscription=function(e){return new gn({channels:(null==e?void 0:e.receivePresenceEvents)?[this.name,"".concat(this.name,"-pnpres")]:[this.name],channelGroups:[],subscriptionOptions:e,eventEmitter:this.eventEmitter,pubnub:this.pubnub})},e}(),yn=function(){function e(e,t,n){this.name=e,this.eventEmitter=t,this.pubnub=n}return e.prototype.subscription=function(e){return new gn({channels:[],channelGroups:(null==e?void 0:e.receivePresenceEvents)?[this.name,"".concat(this.name,"-pnpres")]:[this.name],subscriptionOptions:e,eventEmitter:this.eventEmitter,pubnub:this.pubnub})},e}(),bn=function(){function e(e,t,n){this.id=e,this.eventEmitter=t,this.pubnub=n}return e.prototype.subscription=function(e){return new gn({channels:[this.id],channelGroups:[],subscriptionOptions:e,eventEmitter:this.eventEmitter,pubnub:this.pubnub})},e}(),vn=function(){function e(e,t,n){this.id=e,this.eventEmitter=t,this.pubnub=n}return e.prototype.subscription=function(e){return new gn({channels:[this.id],channelGroups:[],subscriptionOptions:e,eventEmitter:this.eventEmitter,pubnub:this.pubnub})},e}(),wn=function(){function e(e){var t=this,n=e.networking,r=e.cbor,o=new y({setup:e});this._config=o;var a=new k({config:o}),d=e.cryptography;n.init(o);var c=new F(o,r);this._tokenManager=c;var h=new N({maximumSamplesCount:6e4});this._telemetryManager=h;var p=this._config.cryptoModule,f={config:o,networking:n,crypto:a,cryptography:d,tokenManager:c,telemetryManager:h,PubNubFile:e.PubNubFile,cryptoModule:p};this.File=e.PubNubFile,this.encryptFile=function(e,t){return 1==arguments.length&&"string"!=typeof e&&f.cryptoModule?(t=e,f.cryptoModule.encryptFile(t,this.File)):d.encryptFile(e,t,this.File)},this.decryptFile=function(e,t){return 1==arguments.length&&"string"!=typeof e&&f.cryptoModule?(t=e,f.cryptoModule.decryptFile(t,this.File)):d.decryptFile(e,t,this.File)};var g=X.bind(this,f,Ye),m=X.bind(this,f,se),b=X.bind(this,f,ue),w=X.bind(this,f,ce),C=X.bind(this,f,Ke),x=new j;if(this._listenerManager=x,this.iAmHere=X.bind(this,f,ue),this.iAmAway=X.bind(this,f,se),this.setPresenceState=X.bind(this,f,ce),this.handshake=X.bind(this,f,Xe),this.receiveMessages=X.bind(this,f,Ze),this._eventEmitter=new hn({modules:f,listenerManager:this._listenerManager,getFileUrl:function(e){return we(f,e)}}),!0===o.enableEventEngine){if(o.maintainPresenceState&&(this.presenceState={},this.setState=function(e){var n,i;return null===(n=e.channels)||void 0===n||n.forEach(function(n){return t.presenceState[n]=e.state}),null===(i=e.channelGroups)||void 0===i||i.forEach(function(n){return t.presenceState[n]=e.state}),t.setPresenceState({channels:e.channels,channelGroups:e.channelGroups,state:t.presenceState})}),o.getHeartbeatInterval()){var $=new dn({heartbeat:this.iAmHere,leave:this.iAmAway,heartbeatDelay:function(){return new Promise(function(e){return setTimeout(e,1e3*f.config.getHeartbeatInterval())})},retryDelay:function(e){return new Promise(function(t){return setTimeout(t,e)})},config:f.config,presenceState:this.presenceState,emitStatus:function(e){x.announceStatus(e)}});this.presenceEventEngine=$,this.join=this.presenceEventEngine.join.bind($),this.leave=this.presenceEventEngine.leave.bind($),this.leaveAll=this.presenceEventEngine.leaveAll.bind($)}var S=new Ft({handshake:this.handshake,receiveMessages:this.receiveMessages,delay:function(e){return new Promise(function(t){return setTimeout(t,e)})},join:this.join,leave:this.leave,leaveAll:this.leaveAll,presenceState:this.presenceState,config:f.config,emitMessages:function(e){var n,i;try{for(var r=s(e),o=r.next();!o.done;o=r.next()){var a=o.value;t._eventEmitter.emitEvent(a)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},emitStatus:function(e){x.announceStatus(e)}});this.subscribe=S.subscribe.bind(S),this.unsubscribe=S.unsubscribe.bind(S),this.unsubscribeAll=S.unsubscribeAll.bind(S),this.reconnect=S.reconnect.bind(S),this.disconnect=S.disconnect.bind(S),this.destroy=S.dispose.bind(S),this.getSubscribedChannels=S.getSubscribedChannels.bind(S),this.getSubscribedChannelGroups=S.getSubscribedChannelGroups.bind(S),this.eventEngine=S}else{var A=new I({timeEndpoint:g,leaveEndpoint:m,heartbeatEndpoint:b,setStateEndpoint:w,subscribeEndpoint:C,crypto:f.crypto,config:f.config,listenerManager:x,getFileUrl:function(e){return we(f,e)},cryptoModule:f.cryptoModule,eventEmitter:this._eventEmitter});this.subscribe=A.adaptSubscribeChange.bind(A),this.unsubscribe=A.adaptUnsubscribeChange.bind(A),this.disconnect=A.disconnect.bind(A),this.reconnect=A.reconnect.bind(A),this.unsubscribeAll=A.unsubscribeAll.bind(A),this.getSubscribedChannels=A.getSubscribedChannels.bind(A),this.getSubscribedChannelGroups=A.getSubscribedChannelGroups.bind(A),this.setState=A.adaptStateChange.bind(A),this.presence=A.adaptPresenceChange.bind(A),this.destroy=function(e){A.unsubscribeAll(e),A.disconnect()}}this.addListener=this._eventEmitter.addListener.bind(this._eventEmitter),this.removeListener=this._eventEmitter.removeListener.bind(this._eventEmitter),this.removeAllListeners=this._eventEmitter.removeAllListeners.bind(this._eventEmitter),this.parseToken=c.parseToken.bind(c),this.setToken=c.setToken.bind(c),this.getToken=c.getToken.bind(c),this.channelGroups={listGroups:X.bind(this,f,te),listChannels:X.bind(this,f,ne),addChannels:X.bind(this,f,Z),removeChannels:X.bind(this,f,J),deleteGroup:X.bind(this,f,ee)},this.push={addChannels:X.bind(this,f,ie),removeChannels:X.bind(this,f,re),deleteDevice:X.bind(this,f,ae),listChannels:X.bind(this,f,oe)},this.hereNow=X.bind(this,f,he),this.whereNow=X.bind(this,f,le),this.getState=X.bind(this,f,de),this.grant=X.bind(this,f,Le),this.grantToken=X.bind(this,f,je),this.audit=X.bind(this,f,De),this.revokeToken=X.bind(this,f,Fe),this.publish=X.bind(this,f,Ge),this.fire=function(e,n){return e.replicate=!1,e.storeInHistory=!1,t.publish(e,n)},this.signal=X.bind(this,f,ze),this.history=X.bind(this,f,Qe),this.deleteMessages=X.bind(this,f,We),this.messageCounts=X.bind(this,f,qe),this.fetchMessages=X.bind(this,f,Ve),this.addMessageAction=X.bind(this,f,pe),this.removeMessageAction=X.bind(this,f,fe),this.getMessageActions=X.bind(this,f,ge),this.listFiles=X.bind(this,f,me);var E=X.bind(this,f,ye);this.publishFile=X.bind(this,f,be),this.sendFile=ve({generateUploadUrl:E,publishFile:this.publishFile,modules:f}),this.getFileUrl=function(e){return we(f,e)},this.downloadFile=X.bind(this,f,Ce),this.deleteFile=X.bind(this,f,xe),this.channel=function(e){return new mn(e,t._eventEmitter,t)},this.channelGroup=function(e){return new yn(e,t._eventEmitter,t)},this.channelMetadata=function(e){return new bn(e,t._eventEmitter,t)},this.userMetadata=function(e){return new vn(e,t._eventEmitter,t)},this.subscriptionSet=function(e){return new fn({channels:e.channels,channelGroups:e.channelGroups,subscriptionOptions:e.subscriptionOptions,eventEmitter:t._eventEmitter,pubnub:t})},this.objects={getAllUUIDMetadata:X.bind(this,f,$e),getUUIDMetadata:X.bind(this,f,Se),setUUIDMetadata:X.bind(this,f,Ae),removeUUIDMetadata:X.bind(this,f,Ee),getAllChannelMetadata:X.bind(this,f,Te),getChannelMetadata:X.bind(this,f,ke),setChannelMetadata:X.bind(this,f,_e),removeChannelMetadata:X.bind(this,f,Oe),getChannelMembers:X.bind(this,f,Pe),setChannelMembers:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return X.call.apply(X,u([t,f,Ie,i({type:"set"},e)],l(n),!1))},removeChannelMembers:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return X.call.apply(X,u([t,f,Ie,i({type:"delete"},e)],l(n),!1))},getMemberships:X.bind(this,f,Me),setMemberships:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return X.call.apply(X,u([t,f,Ne,i({type:"set"},e)],l(n),!1))},removeMemberships:function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return X.call.apply(X,u([t,f,Ne,i({type:"delete"},e)],l(n),!1))}},this.createUser=function(e){return t.objects.setUUIDMetadata({uuid:e.userId,data:e.data,include:e.include})},this.updateUser=this.createUser,this.removeUser=function(e){return t.objects.removeUUIDMetadata({uuid:null==e?void 0:e.userId})},this.fetchUser=function(e){return t.objects.getUUIDMetadata({uuid:null==e?void 0:e.userId,include:null==e?void 0:e.include})},this.fetchUsers=this.objects.getAllUUIDMetadata,this.createSpace=function(e){return t.objects.setChannelMetadata({channel:e.spaceId,data:e.data,include:e.include})},this.updateSpace=this.createSpace,this.removeSpace=function(e){return t.objects.removeChannelMetadata({channel:e.spaceId})},this.fetchSpace=function(e){return t.objects.getChannelMetadata({channel:e.spaceId,include:e.include})},this.fetchSpaces=this.objects.getAllChannelMetadata,this.addMemberships=function(e){var n,i;return"string"==typeof e.spaceId?t.objects.setChannelMembers({channel:e.spaceId,uuids:null===(n=e.users)||void 0===n?void 0:n.map(function(e){return"string"==typeof e?e:{id:e.userId,custom:e.custom,status:e.status}}),limit:0}):t.objects.setMemberships({uuid:e.userId,channels:null===(i=e.spaces)||void 0===i?void 0:i.map(function(e){return"string"==typeof e?e:{id:e.spaceId,custom:e.custom,status:e.status}}),limit:0})},this.updateMemberships=this.addMemberships,this.removeMemberships=function(e){return"string"==typeof e.spaceId?t.objects.removeChannelMembers({channel:e.spaceId,uuids:e.userIds,limit:0}):t.objects.removeMemberships({uuid:e.userId,channels:e.spaceIds,limit:0})},this.fetchMemberships=function(e){return"string"==typeof e.spaceId?t.objects.getChannelMembers({channel:e.spaceId,filter:e.filter,limit:e.limit,page:e.page,include:{customFields:e.include.customFields,UUIDFields:e.include.userFields,customUUIDFields:e.include.customUserFields,statusField:e.include.statusField,UUIDStatusField:e.include.userStatusField,UUIDTypeField:e.include.userTypeField,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map(function(e){var t=l(e,2),n=t[0],i=t[1];return[n.replace("user","uuid"),i]})):null}).then(function(e){var t;return e.data=null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{user:e.uuid,custom:e.custom,updated:e.updated,eTag:e.eTag}}),e}):t.objects.getMemberships({uuid:e.userId,filter:e.filter,limit:e.limit,page:e.page,include:{customFields:e.include.customFields,channelFields:e.include.spaceFields,customChannelFields:e.include.customSpaceFields,statusField:e.include.statusField,channelStatusField:e.include.spaceStatusField,channelTypeField:e.include.spaceTypeField,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map(function(e){var t=l(e,2),n=t[0],i=t[1];return[n.replace("space","channel"),i]})):null}).then(function(e){var t;return e.data=null===(t=e.data)||void 0===t?void 0:t.map(function(e){return{space:e.channel,custom:e.custom,updated:e.updated,eTag:e.eTag}}),e})},this.time=g,this.stop=this.destroy,this.encrypt=function(e,t){if(void 0===t&&f.cryptoModule){var n=f.cryptoModule.encrypt(e);return"string"==typeof n?n:v(n)}return a.encrypt(e,t)},this.decrypt=function(e,t){if(void 0===t&&p){var n=f.cryptoModule.decrypt(e);return n instanceof ArrayBuffer?JSON.parse((new TextDecoder).decode(n)):n}return a.decrypt(e,t)},this.getAuthKey=f.config.getAuthKey.bind(f.config),this.setAuthKey=f.config.setAuthKey.bind(f.config),this.getUUID=f.config.getUUID.bind(f.config),this.setUUID=f.config.setUUID.bind(f.config),this.getUserId=f.config.getUserId.bind(f.config),this.setUserId=f.config.setUserId.bind(f.config),this.getFilterExpression=f.config.getFilterExpression.bind(f.config),this.setFilterExpression=f.config.setFilterExpression.bind(f.config),this.setCipherKey=function(t){return f.config.setCipherKey(t,e,f)},this.setHeartbeatInterval=f.config.setHeartbeatInterval.bind(f.config),n.hasModule("proxy")&&(this.setProxy=function(e){f.config.setProxy(e),t.reconnect()})}return e.prototype.getVersion=function(){return this._config.getVersion()},e.prototype._addPnsdkSuffix=function(e,t){this._config._addPnsdkSuffix(e,t)},e.prototype.networkDownDetected=function(){this._listenerManager.announceNetworkDown(),this._config.restore?this.disconnect():this.destroy(!0)},e.prototype.networkUpDetected=function(){this._listenerManager.announceNetworkUp(),this.reconnect()},e.notificationPayload=function(e,t){return new B(e,t)},e.generateUUID=function(){return m()},e.OPERATIONS=M,e.CATEGORIES=P,e.LinearRetryPolicy=cn.LinearRetryPolicy,e.ExponentialRetryPolicy=cn.ExponentialRetryPolicy,e}(),Cn=function(){function e(e){var t=this;this._modules={},Object.keys(e).forEach(function(n){t._modules[n]=e[n].bind(t)})}return e.prototype.init=function(e){this._config=e,Array.isArray(this._config.origin)?this._currentSubDomain=Math.floor(Math.random()*this._config.origin.length):this._currentSubDomain=0,this._coreParams={},this.shiftStandardOrigin()},e.prototype.nextOrigin=function(){var e=this._config.secure?"https://":"http://";if("string"==typeof this._config.origin)return"".concat(e).concat(this._config.origin);this._currentSubDomain+=1,this._currentSubDomain>=this._config.origin.length&&(this._currentSubDomain=0);var t=this._config.origin[this._currentSubDomain];return"".concat(e).concat(t)},e.prototype.hasModule=function(e){return e in this._modules},e.prototype.shiftStandardOrigin=function(){return this._standardOrigin=this.nextOrigin(),this._standardOrigin},e.prototype.getStandardOrigin=function(){return this._standardOrigin},e.prototype.POSTFILE=function(e,t,n){return this._modules.postfile(e,t,n)},e.prototype.GETFILE=function(e,t,n){return this._modules.getfile(e,t,n)},e.prototype.POST=function(e,t,n,i){return this._modules.post(e,t,n,i)},e.prototype.PATCH=function(e,t,n,i){return this._modules.patch(e,t,n,i)},e.prototype.GET=function(e,t,n){return this._modules.get(e,t,n)},e.prototype.DELETE=function(e,t,n){return this._modules.del(e,t,n)},e.prototype._detectErrorCategory=function(e){if("ENOTFOUND"===e.code)return P.PNNetworkIssuesCategory;if("ECONNREFUSED"===e.code)return P.PNNetworkIssuesCategory;if("ECONNRESET"===e.code)return P.PNNetworkIssuesCategory;if("EAI_AGAIN"===e.code)return P.PNNetworkIssuesCategory;if(0===e.status||e.hasOwnProperty("status")&&void 0===e.status)return P.PNNetworkIssuesCategory;if(e.timeout)return P.PNTimeoutCategory;if("ETIMEDOUT"===e.code)return P.PNNetworkIssuesCategory;if(e.response){if(e.response.badRequest)return P.PNBadRequestCategory;if(e.response.forbidden)return P.PNAccessDeniedCategory}return P.PNUnknownCategory},e}();function xn(e){var t=function(e){return e&&"object"==typeof e&&e.constructor===Object};if(!t(e))return e;var n={};return Object.keys(e).forEach(function(i){var r=function(e){return"string"==typeof e||e instanceof String}(i),o=i,a=e[i];Array.isArray(i)||r&&i.indexOf(",")>=0?o=(r?i.split(","):i).reduce(function(e,t){return e+String.fromCharCode(t)},""):(function(e){return"number"==typeof e&&isFinite(e)}(i)||r&&!isNaN(i))&&(o=String.fromCharCode(r?parseInt(i,10):10)),n[o]=t(a)?xn(a):a}),n}var $n=function(){function e(e,t){this._base64ToBinary=t,this._decode=e}return e.prototype.decodeToken=function(e){var t="";e.length%4==3?t="=":e.length%4==2&&(t="==");var n=e.replace(/-/gi,"+").replace(/_/gi,"/")+t,i=this._decode(this._base64ToBinary(n));if("object"==typeof i)return i},e}(),Sn={exports:{}},An={exports:{}};!function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<i.length;r++)if((n=i[r])===t||n.fn===t){i.splice(r,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){i=0;for(var r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}}(An);var En=In;In.default=In,In.stable=Ln,In.stableStringify=Ln;var Tn="[...]",kn="[Circular]",_n=[],On=[];function Pn(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function In(e,t,n,i){var r;void 0===i&&(i=Pn()),Nn(e,"",0,[],void 0,0,i);try{r=0===On.length?JSON.stringify(e,t,n):JSON.stringify(e,Rn(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==_n.length;){var o=_n.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return r}function Mn(e,t,n,i){var r=Object.getOwnPropertyDescriptor(i,n);void 0!==r.get?r.configurable?(Object.defineProperty(i,n,{value:e}),_n.push([i,n,t,r])):On.push([t,n,e]):(i[n]=e,_n.push([i,n,t]))}function Nn(e,t,n,i,r,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;s<i.length;s++)if(i[s]===e)return void Mn(kn,e,t,r);if(void 0!==a.depthLimit&&o>a.depthLimit)return void Mn(Tn,e,t,r);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void Mn(Tn,e,t,r);if(i.push(e),Array.isArray(e))for(s=0;s<e.length;s++)Nn(e[s],s,s,i,e,o,a);else{var l=Object.keys(e);for(s=0;s<l.length;s++){var u=l[s];Nn(e[u],u,s,i,e,o,a)}}i.pop()}}function Dn(e,t){return e<t?-1:e>t?1:0}function Ln(e,t,n,i){void 0===i&&(i=Pn());var r,o=Un(e,"",0,[],void 0,0,i)||e;try{r=0===On.length?JSON.stringify(o,t,n):JSON.stringify(o,Rn(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==_n.length;){var a=_n.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return r}function Un(e,t,n,i,r,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;s<i.length;s++)if(i[s]===e)return void Mn(kn,e,t,r);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==a.depthLimit&&o>a.depthLimit)return void Mn(Tn,e,t,r);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void Mn(Tn,e,t,r);if(i.push(e),Array.isArray(e))for(s=0;s<e.length;s++)Un(e[s],s,s,i,e,o,a);else{var l={},u=Object.keys(e).sort(Dn);for(s=0;s<u.length;s++){var d=u[s];Un(e[d],d,s,i,e,o,a),l[d]=e[d]}if(void 0===r)return l;_n.push([r,t,e]),r[t]=l}i.pop()}}function Rn(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(On.length>0)for(var i=0;i<On.length;i++){var r=On[i];if(r[1]===t&&r[0]===n){n=r[2],On.splice(i,1);break}}return e.call(this,t,n)}}var Bn,jn="undefined"!=typeof Symbol&&Symbol,Fn=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0},Hn="Function.prototype.bind called on incompatible ",Gn=Array.prototype.slice,zn=Object.prototype.toString,Qn="[object Function]",Wn=function(e){var t=this;if("function"!=typeof t||zn.call(t)!==Qn)throw new TypeError(Hn+t);for(var n,i=Gn.call(arguments,1),r=function(){if(this instanceof n){var r=t.apply(this,i.concat(Gn.call(arguments)));return Object(r)===r?r:this}return t.apply(e,i.concat(Gn.call(arguments)))},o=Math.max(0,t.length-i.length),a=[],s=0;s<o;s++)a.push("$"+s);if(n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(r),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n},qn=Function.prototype.bind||Wn,Vn=qn.call(Function.call,Object.prototype.hasOwnProperty),Yn=SyntaxError,Kn=Function,Xn=TypeError,Zn=function(e){try{return Kn('"use strict"; return ('+e+").constructor;")()}catch(e){}},Jn=Object.getOwnPropertyDescriptor;if(Jn)try{Jn({},"")}catch(e){Jn=null}var ei=function(){throw new Xn},ti=Jn?function(){try{return ei}catch(e){try{return Jn(arguments,"callee").get}catch(e){return ei}}}():ei,ni="function"==typeof jn&&"function"==typeof Symbol&&"symbol"==typeof jn("foo")&&"symbol"==typeof Symbol("bar")&&Fn(),ii=Object.getPrototypeOf||function(e){return e.__proto__},ri={},oi="undefined"==typeof Uint8Array?Bn:ii(Uint8Array),ai={"%AggregateError%":"undefined"==typeof AggregateError?Bn:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Bn:ArrayBuffer,"%ArrayIteratorPrototype%":ni?ii([][Symbol.iterator]()):Bn,"%AsyncFromSyncIteratorPrototype%":Bn,"%AsyncFunction%":ri,"%AsyncGenerator%":ri,"%AsyncGeneratorFunction%":ri,"%AsyncIteratorPrototype%":ri,"%Atomics%":"undefined"==typeof Atomics?Bn:Atomics,"%BigInt%":"undefined"==typeof BigInt?Bn:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Bn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Bn:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Bn:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Bn:FinalizationRegistry,"%Function%":Kn,"%GeneratorFunction%":ri,"%Int8Array%":"undefined"==typeof Int8Array?Bn:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Bn:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Bn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ni?ii(ii([][Symbol.iterator]())):Bn,"%JSON%":"object"==typeof JSON?JSON:Bn,"%Map%":"undefined"==typeof Map?Bn:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&ni?ii((new Map)[Symbol.iterator]()):Bn,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Bn:Promise,"%Proxy%":"undefined"==typeof Proxy?Bn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Bn:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Bn:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&ni?ii((new Set)[Symbol.iterator]()):Bn,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Bn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ni?ii(""[Symbol.iterator]()):Bn,"%Symbol%":ni?Symbol:Bn,"%SyntaxError%":Yn,"%ThrowTypeError%":ti,"%TypedArray%":oi,"%TypeError%":Xn,"%Uint8Array%":"undefined"==typeof Uint8Array?Bn:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Bn:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Bn:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Bn:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Bn:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Bn:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Bn:WeakSet},si=function e(t){var n;if("%AsyncFunction%"===t)n=Zn("async function () {}");else if("%GeneratorFunction%"===t)n=Zn("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Zn("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&(n=ii(r.prototype))}return ai[t]=n,n},li={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ui=qn,di=Vn,ci=ui.call(Function.call,Array.prototype.concat),hi=ui.call(Function.apply,Array.prototype.splice),pi=ui.call(Function.call,String.prototype.replace),fi=ui.call(Function.call,String.prototype.slice),gi=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mi=/\\(\\)?/g,yi=function(e){var t=fi(e,0,1),n=fi(e,-1);if("%"===t&&"%"!==n)throw new Yn("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Yn("invalid intrinsic syntax, expected opening `%`");var i=[];return pi(e,gi,function(e,t,n,r){i[i.length]=n?pi(r,mi,"$1"):t||e}),i},bi=function(e,t){var n,i=e;if(di(li,i)&&(i="%"+(n=li[i])[0]+"%"),di(ai,i)){var r=ai[i];if(r===ri&&(r=si(i)),void 0===r&&!t)throw new Xn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new Yn("intrinsic "+e+" does not exist!")},vi=function(e,t){if("string"!=typeof e||0===e.length)throw new Xn("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Xn('"allowMissing" argument must be a boolean');var n=yi(e),i=n.length>0?n[0]:"",r=bi("%"+i+"%",t),o=r.name,a=r.value,s=!1,l=r.alias;l&&(i=l[0],hi(n,ci([0,1],l)));for(var u=1,d=!0;u<n.length;u+=1){var c=n[u],h=fi(c,0,1),p=fi(c,-1);if(('"'===h||"'"===h||"`"===h||'"'===p||"'"===p||"`"===p)&&h!==p)throw new Yn("property names with quotes must have matching quotes");if("constructor"!==c&&d||(s=!0),di(ai,o="%"+(i+="."+c)+"%"))a=ai[o];else if(null!=a){if(!(c in a)){if(!t)throw new Xn("base intrinsic for "+e+" exists, but the property is not available.");return}if(Jn&&u+1>=n.length){var f=Jn(a,c);a=(d=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:a[c]}else d=di(a,c),a=a[c];d&&!s&&(ai[o]=a)}}return a},wi={exports:{}};!function(e){var t=qn,n=vi,i=n("%Function.prototype.apply%"),r=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(r,i),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var n=o(t,r,arguments);return a&&s&&a(n,"length").configurable&&s(n,"length",{value:1+l(0,e.length-(arguments.length-1))}),n};var u=function(){return o(t,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u}(wi);var Ci=vi,xi=wi.exports,$i=xi(Ci("String.prototype.indexOf")),Si=c(Object.freeze({__proto__:null,default:{}})),Ai="function"==typeof Map&&Map.prototype,Ei=Object.getOwnPropertyDescriptor&&Ai?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ti=Ai&&Ei&&"function"==typeof Ei.get?Ei.get:null,ki=Ai&&Map.prototype.forEach,_i="function"==typeof Set&&Set.prototype,Oi=Object.getOwnPropertyDescriptor&&_i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Pi=_i&&Oi&&"function"==typeof Oi.get?Oi.get:null,Ii=_i&&Set.prototype.forEach,Mi="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ni="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Di="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Li=Boolean.prototype.valueOf,Ui=Object.prototype.toString,Ri=Function.prototype.toString,Bi=String.prototype.match,ji=String.prototype.slice,Fi=String.prototype.replace,Hi=String.prototype.toUpperCase,Gi=String.prototype.toLowerCase,zi=RegExp.prototype.test,Qi=Array.prototype.concat,Wi=Array.prototype.join,qi=Array.prototype.slice,Vi=Math.floor,Yi="function"==typeof BigInt?BigInt.prototype.valueOf:null,Ki=Object.getOwnPropertySymbols,Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Zi="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Ji="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,er=Object.prototype.propertyIsEnumerable,tr=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function nr(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||zi.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-Vi(-e):Vi(e);if(i!==e){var r=String(i),o=ji.call(t,r.length+1);return Fi.call(r,n,"$&_")+"."+Fi.call(Fi.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Fi.call(t,n,"$&_")}var ir=Si,rr=ir.custom,or=dr(rr)?rr:null;function ar(e,t,n){var i="double"===(n.quoteStyle||t)?'"':"'";return i+e+i}function sr(e){return Fi.call(String(e),/"/g,""")}function lr(e){return!("[object Array]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}function ur(e){return!("[object RegExp]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}function dr(e){if(Zi)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Xi)return!1;try{return Xi.call(e),!0}catch(e){}return!1}var cr=Object.prototype.hasOwnProperty||function(e){return e in this};function hr(e,t){return cr.call(e,t)}function pr(e){return Ui.call(e)}function fr(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function gr(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return gr(ji.call(e,0,t.maxStringLength),t)+i}return ar(Fi.call(Fi.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,mr),"single",t)}function mr(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Hi.call(t.toString(16))}function yr(e){return"Object("+e+")"}function br(e){return e+" { ? }"}function vr(e,t,n,i){return e+" ("+t+") {"+(i?wr(n,i):Wi.call(n,", "))+"}"}function wr(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Wi.call(e,","+n)+"\n"+t.prev}function Cr(e,t){var n=lr(e),i=[];if(n){i.length=e.length;for(var r=0;r<e.length;r++)i[r]=hr(e,r)?t(e[r],e):""}var o,a="function"==typeof Ki?Ki(e):[];if(Zi){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)hr(e,l)&&(n&&String(Number(l))===l&&l<e.length||Zi&&o["$"+l]instanceof Symbol||(zi.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e))));if("function"==typeof Ki)for(var u=0;u<a.length;u++)er.call(e,a[u])&&i.push("["+t(a[u])+"]: "+t(e[a[u]],e));return i}var xr=vi,$r=function(e,t){var n=Ci(e,!!t);return"function"==typeof n&&$i(e,".prototype.")>-1?xi(n):n},Sr=function e(t,n,i,r){var o=n||{};if(hr(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(hr(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!hr(o,"customInspect")||o.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(hr(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(hr(o,"numericSeparator")&&"boolean"!=typeof o.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return gr(t,o);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var l=String(t);return s?nr(t,l):l}if("bigint"==typeof t){var u=String(t)+"n";return s?nr(t,u):u}var c=void 0===o.depth?5:o.depth;if(void 0===i&&(i=0),i>=c&&c>0&&"object"==typeof t)return lr(t)?"[Array]":"[Object]";var h=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Wi.call(Array(e.indent+1)," ")}return{base:n,prev:Wi.call(Array(t+1),n)}}(o,i);if(void 0===r)r=[];else if(fr(r,t)>=0)return"[Circular]";function p(t,n,a){if(n&&(r=qi.call(r)).push(n),a){var s={depth:o.depth};return hr(o,"quoteStyle")&&(s.quoteStyle=o.quoteStyle),e(t,s,i+1,r)}return e(t,o,i+1,r)}if("function"==typeof t&&!ur(t)){var f=function(e){if(e.name)return e.name;var t=Bi.call(Ri.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),g=Cr(t,p);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(g.length>0?" { "+Wi.call(g,", ")+" }":"")}if(dr(t)){var m=Zi?Fi.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Xi.call(t);return"object"!=typeof t||Zi?m:yr(m)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var y="<"+Gi.call(String(t.nodeName)),b=t.attributes||[],v=0;v<b.length;v++)y+=" "+b[v].name+"="+ar(sr(b[v].value),"double",o);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+"</"+Gi.call(String(t.nodeName))+">"}if(lr(t)){if(0===t.length)return"[]";var w=Cr(t,p);return h&&!function(e){for(var t=0;t<e.length;t++)if(fr(e[t],"\n")>=0)return!1;return!0}(w)?"["+wr(w,h)+"]":"[ "+Wi.call(w,", ")+" ]"}if(function(e){return!("[object Error]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t)){var C=Cr(t,p);return"cause"in Error.prototype||!("cause"in t)||er.call(t,"cause")?0===C.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Wi.call(C,", ")+" }":"{ ["+String(t)+"] "+Wi.call(Qi.call("[cause]: "+p(t.cause),C),", ")+" }"}if("object"==typeof t&&a){if(or&&"function"==typeof t[or]&&ir)return ir(t,{depth:c-i});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Ti||!e||"object"!=typeof e)return!1;try{Ti.call(e);try{Pi.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var x=[];return ki&&ki.call(t,function(e,n){x.push(p(n,t,!0)+" => "+p(e,t))}),vr("Map",Ti.call(t),x,h)}if(function(e){if(!Pi||!e||"object"!=typeof e)return!1;try{Pi.call(e);try{Ti.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var $=[];return Ii&&Ii.call(t,function(e){$.push(p(e,t))}),vr("Set",Pi.call(t),$,h)}if(function(e){if(!Mi||!e||"object"!=typeof e)return!1;try{Mi.call(e,Mi);try{Ni.call(e,Ni)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return br("WeakMap");if(function(e){if(!Ni||!e||"object"!=typeof e)return!1;try{Ni.call(e,Ni);try{Mi.call(e,Mi)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return br("WeakSet");if(function(e){if(!Di||!e||"object"!=typeof e)return!1;try{return Di.call(e),!0}catch(e){}return!1}(t))return br("WeakRef");if(function(e){return!("[object Number]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t))return yr(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Yi)return!1;try{return Yi.call(e),!0}catch(e){}return!1}(t))return yr(p(Yi.call(t)));if(function(e){return!("[object Boolean]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t))return yr(Li.call(t));if(function(e){return!("[object String]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t))return yr(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===d)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==pr(e)||Ji&&"object"==typeof e&&Ji in e)}(t)&&!ur(t)){var S=Cr(t,p),A=tr?tr(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",T=!A&&Ji&&Object(t)===t&&Ji in t?ji.call(pr(t),8,-1):E?"Object":"",k=(A||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(T||E?"["+Wi.call(Qi.call([],T||[],E||[]),": ")+"] ":"");return 0===S.length?k+"{}":h?k+"{"+wr(S,h)+"}":k+"{ "+Wi.call(S,", ")+" }"}return String(t)},Ar=xr("%TypeError%"),Er=xr("%WeakMap%",!0),Tr=xr("%Map%",!0),kr=$r("WeakMap.prototype.get",!0),_r=$r("WeakMap.prototype.set",!0),Or=$r("WeakMap.prototype.has",!0),Pr=$r("Map.prototype.get",!0),Ir=$r("Map.prototype.set",!0),Mr=$r("Map.prototype.has",!0),Nr=function(e,t){for(var n,i=e;null!==(n=i.next);i=n)if(n.key===t)return i.next=n.next,n.next=e.next,e.next=n,n},Dr=String.prototype.replace,Lr=/%20/g,Ur="RFC3986",Rr={default:Ur,formatters:{RFC1738:function(e){return Dr.call(e,Lr,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Ur},Br=Rr,jr=Object.prototype.hasOwnProperty,Fr=Array.isArray,Hr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Gr=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(n[i]=e[i]);return n},zr={arrayToObject:Gr,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var r=t[i],o=r.obj[r.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],u=o[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:o,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Fr(n)){for(var i=[],r=0;r<n.length;++r)void 0!==n[r]&&i.push(n[r]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var i=e.replace(/\+/g," ");if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(e,t,n,i,r){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var a="",s=0;s<o.length;++s){var l=o.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||r===Br.RFC1738&&(40===l||41===l)?a+=o.charAt(s):l<128?a+=Hr[l]:l<2048?a+=Hr[192|l>>6]+Hr[128|63&l]:l<55296||l>=57344?a+=Hr[224|l>>12]+Hr[128|l>>6&63]+Hr[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(s)),a+=Hr[240|l>>18]+Hr[128|l>>12&63]+Hr[128|l>>6&63]+Hr[128|63&l])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Fr(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(Fr(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!jr.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return Fr(t)&&!Fr(n)&&(r=Gr(t,i)),Fr(t)&&Fr(n)?(n.forEach(function(n,r){if(jr.call(t,r)){var o=t[r];o&&"object"==typeof o&&n&&"object"==typeof n?t[r]=e(o,n,i):t.push(n)}else t[r]=n}),t):Object.keys(n).reduce(function(t,r){var o=n[r];return jr.call(t,r)?t[r]=e(t[r],o,i):t[r]=o,t},r)}},Qr=function(){var e,t,n,i={assert:function(e){if(!i.has(e))throw new Ar("Side channel does not contain "+Sr(e))},get:function(i){if(Er&&i&&("object"==typeof i||"function"==typeof i)){if(e)return kr(e,i)}else if(Tr){if(t)return Pr(t,i)}else if(n)return function(e,t){var n=Nr(e,t);return n&&n.value}(n,i)},has:function(i){if(Er&&i&&("object"==typeof i||"function"==typeof i)){if(e)return Or(e,i)}else if(Tr){if(t)return Mr(t,i)}else if(n)return function(e,t){return!!Nr(e,t)}(n,i);return!1},set:function(i,r){Er&&i&&("object"==typeof i||"function"==typeof i)?(e||(e=new Er),_r(e,i,r)):Tr?(t||(t=new Tr),Ir(t,i,r)):(n||(n={key:{},next:null}),function(e,t,n){var i=Nr(e,t);i?i.value=n:e.next={key:t,next:e.next,value:n}}(n,i,r))}};return i},Wr=zr,qr=Rr,Vr=Object.prototype.hasOwnProperty,Yr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Kr=Array.isArray,Xr=Array.prototype.push,Zr=function(e,t){Xr.apply(e,Kr(t)?t:[t])},Jr=Date.prototype.toISOString,eo=qr.default,to={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Wr.encode,encodeValuesOnly:!1,format:eo,formatter:qr.formatters[eo],indices:!1,serializeDate:function(e){return Jr.call(e)},skipNulls:!1,strictNullHandling:!1},no={},io=function e(t,n,i,r,o,a,s,l,u,d,c,h,p,f,g,m){for(var y,b=t,v=m,w=0,C=!1;void 0!==(v=v.get(no))&&!C;){var x=v.get(t);if(w+=1,void 0!==x){if(x===w)throw new RangeError("Cyclic object value");C=!0}void 0===v.get(no)&&(w=0)}if("function"==typeof l?b=l(n,b):b instanceof Date?b=c(b):"comma"===i&&Kr(b)&&(b=Wr.maybeMap(b,function(e){return e instanceof Date?c(e):e})),null===b){if(o)return s&&!f?s(n,to.encoder,g,"key",h):n;b=""}if("string"==typeof(y=b)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||Wr.isBuffer(b))return s?[p(f?n:s(n,to.encoder,g,"key",h))+"="+p(s(b,to.encoder,g,"value",h))]:[p(n)+"="+p(String(b))];var $,S=[];if(void 0===b)return S;if("comma"===i&&Kr(b))f&&s&&(b=Wr.maybeMap(b,s)),$=[{value:b.length>0?b.join(",")||null:void 0}];else if(Kr(l))$=l;else{var A=Object.keys(b);$=u?A.sort(u):A}for(var E=r&&Kr(b)&&1===b.length?n+"[]":n,T=0;T<$.length;++T){var k=$[T],_="object"==typeof k&&void 0!==k.value?k.value:b[k];if(!a||null!==_){var O=Kr(b)?"function"==typeof i?i(E,k):E:E+(d?"."+k:"["+k+"]");m.set(t,w);var P=Qr();P.set(no,m),Zr(S,e(_,O,i,r,o,a,"comma"===i&&f&&Kr(b)?null:s,l,u,d,c,h,p,f,g,P))}}return S},ro=zr,oo=Object.prototype.hasOwnProperty,ao=Array.isArray,so={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ro.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},lo=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},uo=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},co=function(e,t,n,i){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,l=[];if(s){if(!n.plainObjects&&oo.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var u=0;n.depth>0&&null!==(a=o.exec(r))&&u<n.depth;){if(u+=1,!n.plainObjects&&oo.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+r.slice(a.index)+"]"),function(e,t,n,i){for(var r=i?t:uo(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=r:"__proto__"!==l&&(a[l]=r):a={0:r}}r=a}return r}(l,t,n,i)}},ho=function(e,t){var n,i=e,r=function(e){if(!e)return to;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||to.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=qr.default;if(void 0!==e.format){if(!Vr.call(qr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=qr.formatters[n],r=to.filter;return("function"==typeof e.filter||Kr(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:to.addQueryPrefix,allowDots:void 0===e.allowDots?to.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:to.charsetSentinel,delimiter:void 0===e.delimiter?to.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:to.encode,encoder:"function"==typeof e.encoder?e.encoder:to.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:to.encodeValuesOnly,filter:r,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:to.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:to.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:to.strictNullHandling}}(t);"function"==typeof r.filter?i=(0,r.filter)("",i):Kr(r.filter)&&(n=r.filter);var o,a=[];if("object"!=typeof i||null===i)return"";o=t&&t.arrayFormat in Yr?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=Yr[o];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l="comma"===s&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),r.sort&&n.sort(r.sort);for(var u=Qr(),d=0;d<n.length;++d){var c=n[d];r.skipNulls&&null===i[c]||Zr(a,io(i[c],c,s,l,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var h=a.join(r.delimiter),p=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),h.length>0?p+h:""},po={formats:Rr,parse:function(e,t){var n=function(e){if(!e)return so;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?so.charset:e.charset;return{allowDots:void 0===e.allowDots?so.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:so.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:so.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:so.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:so.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:so.comma,decoder:"function"==typeof e.decoder?e.decoder:so.decoder,delimiter:"string"==typeof e.delimiter||ro.isRegExp(e.delimiter)?e.delimiter:so.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:so.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:so.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:so.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:so.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:so.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var i="string"==typeof e?function(e,t){var n,i={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=r.split(t.delimiter,o),s=-1,l=t.charset;if(t.charsetSentinel)for(n=0;n<a.length;++n)0===a[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[n]?l="utf-8":"utf8=%26%2310003%3B"===a[n]&&(l="iso-8859-1"),s=n,n=a.length);for(n=0;n<a.length;++n)if(n!==s){var u,d,c=a[n],h=c.indexOf("]="),p=-1===h?c.indexOf("="):h+1;-1===p?(u=t.decoder(c,so.decoder,l,"key"),d=t.strictNullHandling?null:""):(u=t.decoder(c.slice(0,p),so.decoder,l,"key"),d=ro.maybeMap(uo(c.slice(p+1),t),function(e){return t.decoder(e,so.decoder,l,"value")})),d&&t.interpretNumericEntities&&"iso-8859-1"===l&&(d=lo(d)),c.indexOf("[]=")>-1&&(d=ao(d)?[d]:d),oo.call(i,u)?i[u]=ro.combine(i[u],d):i[u]=d}return i}(e,n):e,r=n.plainObjects?Object.create(null):{},o=Object.keys(i),a=0;a<o.length;++a){var s=o[a],l=co(s,i[s],n,"string"==typeof e);r=ro.merge(r,l,n)}return!0===n.allowSparse?r:ro.compact(r)},stringify:ho},fo={};!function(e){function t(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}e.type=e=>e.split(/ *; */).shift(),e.params=e=>{const n={};var i,r=t(e.split(/ *; */));try{for(r.s();!(i=r.n()).done;){const e=i.value.split(/ *= */),t=e.shift(),r=e.shift();t&&r&&(n[t]=r)}}catch(e){r.e(e)}finally{r.f()}return n},e.parseLinks=e=>{const n={};var i,r=t(e.split(/ *, */));try{for(r.s();!(i=r.n()).done;){const e=i.value.split(/ *; */),t=e[0].slice(1,-1);n[e[1].split(/ *= */)[1].slice(1,-1)]=t}}catch(e){r.e(e)}finally{r.f()}return n},e.cleanHeader=(e,t)=>(delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e),e.isObject=e=>null!==e&&"object"==typeof e,e.hasOwn=Object.hasOwn||function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(e),t)},e.mixin=(t,n)=>{for(const i in n)e.hasOwn(n,i)&&(t[i]=n[i])}}(fo);const go=Si,mo=fo.isObject,yo=fo.hasOwn;var bo=vo;function vo(){}vo.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},vo.prototype.parse=function(e){return this._parser=e,this},vo.prototype.responseType=function(e){return this._responseType=e,this},vo.prototype.serialize=function(e){return this._serializer=e,this},vo.prototype.timeout=function(e){if(!e||"object"!=typeof e)return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(const t in e)if(yo(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload}return this},vo.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};const wo=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),Co=new Set([408,413,429,500,502,503,504,521,522,524]);vo.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){}if(t&&t.status&&Co.has(t.status))return!0;if(e){if(e.code&&wo.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},vo.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},vo.prototype.then=function(e,t){if(!this._fullfilledPromise){const e=this;this._endCalled,this._fullfilledPromise=new Promise((t,n)=>{e.on("abort",()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void n(this.timedoutError);const e=new Error("Aborted");e.code="ABORTED",e.status=this.status,e.method=this.method,e.url=this.url,n(e)}),e.end((e,i)=>{e?n(e):t(i)})})}return this._fullfilledPromise.then(e,t)},vo.prototype.catch=function(e){return this.then(void 0,e)},vo.prototype.use=function(e){return e(this),this},vo.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},vo.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},vo.prototype.get=function(e){return this._header[e.toLowerCase()]},vo.prototype.getHeader=vo.prototype.get,vo.prototype.set=function(e,t){if(mo(e)){for(const t in e)yo(e,t)&&this.set(t,e[t]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},vo.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},vo.prototype.field=function(e,t,n){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(mo(e)){for(const t in e)yo(e,t)&&this.field(t,e[t]);return this}if(Array.isArray(t)){for(const n in t)yo(t,n)&&this.field(e,t[n]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),n?this._getFormData().append(e,t,n):this._getFormData().append(e,t),this},vo.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(go.gte(process.version,"v13.0.0")&&go.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},vo.prototype._auth=function(e,t,n,i){switch(n.type){case"basic":this.set("Authorization",`Basic ${i(`${e}:${t}`)}`);break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization",`Bearer ${e}`)}return this},vo.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},vo.prototype.redirects=function(e){return this._maxRedirects=e,this},vo.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},vo.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},vo.prototype.send=function(e){const t=mo(e);let n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&mo(this._data))for(const t in e){if("bigint"==typeof e[t]&&!e[t].toJSON)throw new Error("Cannot serialize BigInt value to json");yo(e,t)&&(this._data[t]=e[t])}else{if("bigint"==typeof e)throw new Error("Cannot send value of type BigInt");"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],n&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${e}`:e:(this._data||"")+e):this._data=e}return!t||this._isHost(e)||n||this.type("json"),this},vo.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},vo.prototype._finalizeQueryString=function(){const e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){const e=this.url.indexOf("?");if(e>=0){const t=this.url.slice(e+1).split("&");"function"==typeof this._sort?t.sort(this._sort):t.sort(),this.url=this.url.slice(0,e)+"?"+t.join("&")}}},vo.prototype._appendQueryString=()=>{},vo.prototype._timeoutError=function(e,t,n){if(this._aborted)return;const i=new Error(`${e+t}ms exceeded`);i.timeout=t,i.code="ECONNABORTED",i.errno=n,this.timedout=!0,this.timedoutError=i,this.abort(),this.callback(i)},vo.prototype._setTimeouts=function(){const e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(()=>{e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(()=>{e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};const xo=fo;var $o=So;function So(){}function Ao(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function To(){this._defaults=[]}So.prototype.get=function(e){return this.header[e.toLowerCase()]},So.prototype._setHeaderProperties=function(e){const t=e["content-type"]||"";this.type=xo.type(t);const n=xo.params(t);for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(this[e]=n[e]);this.links={};try{e.link&&(this.links=xo.parseLinks(e.link))}catch(e){}},So.prototype._setStatusProperties=function(e){const t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e};for(var ko=0,_o=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];ko<_o.length;ko++){const e=_o[ko];To.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this._defaults.push({fn:e,args:n}),this}}To.prototype._setDefaults=function(e){var t,n=Ao(this._defaults);try{for(n.s();!(t=n.n()).done;){const n=t.value;e[n.fn](...n.args)}}catch(e){n.e(e)}finally{n.f()}};var Oo=To;!function(e,t){function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}let r;r="undefined"!=typeof window?window:"undefined"==typeof self?void 0:self;const o=An.exports,a=En,s=po,l=bo,u=fo.isObject,d=fo.mixin,c=fo.hasOwn,h=$o,p=Oo;function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};const g=t=e.exports;t.Request=x,g.getXHR=()=>{if(r.XMLHttpRequest)return new r.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const m="".trim?e=>e.trim():e=>e.replace(/(^\s*|\s*$)/g,"");function y(e){if(!u(e))return e;const t=[];for(const n in e)c(e,n)&&b(t,n,e[n]);return t.join("&")}function b(e,t,i){if(void 0!==i)if(null!==i)if(Array.isArray(i)){var r,o=n(i);try{for(o.s();!(r=o.n()).done;)b(e,t,r.value)}catch(e){o.e(e)}finally{o.f()}}else if(u(i))for(const n in i)c(i,n)&&b(e,`${t}[${n}]`,i[n]);else e.push(encodeURI(t)+"="+encodeURIComponent(i));else e.push(encodeURI(t))}function v(e){const t={},n=e.split("&");let i,r;for(let e=0,o=n.length;e<o;++e)i=n[e],r=i.indexOf("="),-1===r?t[decodeURIComponent(i)]="":t[decodeURIComponent(i.slice(0,r))]=decodeURIComponent(i.slice(r+1));return t}function w(e){return/[/+]json($|[^-\w])/i.test(e)}function C(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){const t=e.split(/\r?\n/),n={};let i,r,o,a;for(let e=0,s=t.length;e<s;++e)r=t[e],i=r.indexOf(":"),-1!==i&&(o=r.slice(0,i).toLowerCase(),a=m(r.slice(i+1)),n[o]=a);return n}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function x(e,t){const n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",()=>{let e,t=null,i=null;try{i=new C(n)}catch(e){return t=new Error("Parser is unable to parse the response"),t.parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",i);try{n._isResponseOK(i)||(e=new Error(i.statusText||i.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=i,e.status=e.status||i.status,n.callback(e,i)):n.callback(null,i)})}g.serializeObject=y,g.parseString=v,g.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},g.serialize={"application/x-www-form-urlencoded":s.stringify,"application/json":a},g.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},d(C.prototype,h.prototype),C.prototype._parseBody=function(e){let t=g.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&w(this.type)&&(t=g.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},C.prototype.toError=function(){const e=this.req,t=e.method,n=e.url,i=`cannot ${t} ${n} (${this.status})`,r=new Error(i);return r.status=this.status,r.method=t,r.url=n,r},g.Response=C,o(x.prototype),d(x.prototype,l.prototype),x.prototype.type=function(e){return this.set("Content-Type",g.types[e]||e),this},x.prototype.accept=function(e){return this.set("Accept",g.types[e]||e),this},x.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"==typeof t&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});const i=n.encoder?n.encoder:e=>{if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,i)},x.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},x.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},x.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},x.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},x.prototype.crossDomainError=function(){const e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},x.prototype.agent=function(){return this},x.prototype.ca=x.prototype.agent,x.prototype.buffer=x.prototype.ca,x.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},x.prototype.pipe=x.prototype.write,x.prototype._isHost=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},x.prototype.end=function(e){this._endCalled,this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},x.prototype._setUploadTimeout=function(){const e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(()=>{e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},x.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const e=this;this.xhr=g.getXHR();const t=this.xhr;let n=this._formData||this._data;this._setTimeouts(),t.addEventListener("readystatechange",()=>{const n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4!==n)return;let i;try{i=t.status}catch(e){i=0}if(!i){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")});const i=(t,n)=>{n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",i.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",i.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){const e=this._header["content-type"];let t=this._serializer||g.serialize[e?e.split(";")[0]:""];!t&&w(e)&&(t=g.serialize["application/json"]),t&&(n=t(n))}for(const e in this.header)null!==this.header[e]&&c(this.header,e)&&t.setRequestHeader(e,this.header[e]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},g.agent=()=>new p;for(var $=0,S=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];$<S.length;$++){const e=S[$];p.prototype[e.toLowerCase()]=function(t,n){const i=new g.Request(e,t);return this._setDefaults(i),n&&i.end(n),i}}function A(e,t,n){const i=g("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}p.prototype.del=p.prototype.delete,g.get=(e,t,n)=>{const i=g("GET",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},g.head=(e,t,n)=>{const i=g("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},g.options=(e,t,n)=>{const i=g("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},g.del=A,g.delete=A,g.patch=(e,t,n)=>{const i=g("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},g.post=(e,t,n)=>{const i=g("POST",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},g.put=(e,t,n)=>{const i=g("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}}(Sn,Sn.exports);var Po=Sn.exports;function Io(e){var t=(new Date).getTime(),n=(new Date).toISOString(),i=console&&console.log?console:window&&window.console&&window.console.log?window.console:console;i.log("<<<<<"),i.log("[".concat(n,"]"),"\n",e.url,"\n",e.qs),i.log("-----"),e.on("response",function(n){var r=(new Date).getTime()-t,o=(new Date).toISOString();i.log(">>>>>>"),i.log("[".concat(o," / ").concat(r,"]"),"\n",e.url,"\n",e.qs,"\n",n.text),i.log("-----")})}function Mo(e,t,n){var i=this;this._config.logVerbosity&&(e=e.use(Io)),this._config.proxy&&this._modules.proxy&&(e=this._modules.proxy.call(this,e)),this._config.keepAlive&&this._modules.keepAlive&&(e=this._modules.keepAlive(e));var r=e;if(t.abortSignal)var o=t.abortSignal.subscribe(function(){r.abort(),o()});return!0===t.forceBuffered?r="undefined"==typeof Blob?r.buffer().responseType("arraybuffer"):r.responseType("arraybuffer"):!1===t.forceBuffered&&(r=r.buffer(!1)),(r=r.timeout(t.timeout)).on("abort",function(){return n({category:P.PNUnknownCategory,error:!0,operation:t.operation,errorData:new Error("Aborted")},null)}),r.end(function(e,r){var o,a={};if(a.error=null!==e,a.operation=t.operation,r&&r.status&&(a.statusCode=r.status),e){if(e.response&&e.response.text&&!i._config.logVerbosity)try{a.errorData=JSON.parse(e.response.text)}catch(t){a.errorData=e}else a.errorData=e;return a.category=i._detectErrorCategory(e),n(a,null)}if(t.ignoreBody)o={headers:r.headers,redirects:r.redirects,response:r};else try{o=JSON.parse(r.text)}catch(e){return a.errorData=r,a.error=!0,n(a,null)}return o.error&&1===o.error&&o.status&&o.message&&o.service?(a.errorData=o,a.statusCode=o.status,a.error=!0,a.category=i._detectErrorCategory(a),n(a,null)):(o.error&&o.error.message&&(a.errorData=o.error),n(a,o))}),r}function No(e,t,n){return o(this,void 0,void 0,function(){var i;return a(this,function(r){switch(r.label){case 0:return i=Po.post(e),t.forEach(function(e){var t=e.key,n=e.value;i=i.field(t,n)}),i.attach("file",n,{contentType:"application/octet-stream"}),[4,i];case 1:return[2,r.sent()]}})})}function Do(e,t,n){var i=Po.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return Mo.call(this,i,t,n)}function Lo(e,t,n){var i=Po.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return Mo.call(this,i,t,n)}function Uo(e,t,n,i){var r=Po.post(this.getStandardOrigin()+n.url).query(e).set(n.headers).send(t);return Mo.call(this,r,n,i)}function Ro(e,t,n,i){var r=Po.patch(this.getStandardOrigin()+n.url).query(e).set(n.headers).send(t);return Mo.call(this,r,n,i)}function Bo(e,t,n){var i=Po.delete(this.getStandardOrigin()+t.url).set(t.headers).query(e);return Mo.call(this,i,t,n)}function jo(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e),0),n.set(new Uint8Array(t),e.byteLength),n.buffer}var Fo,Ho=function(){function e(){}return Object.defineProperty(e.prototype,"algo",{get:function(){return"aes-256-cbc"},enumerable:!1,configurable:!0}),e.prototype.encrypt=function(e,t){return o(this,void 0,void 0,function(){var n;return a(this,function(i){switch(i.label){case 0:return[4,this.getKey(e)];case 1:if(n=i.sent(),t instanceof ArrayBuffer)return[2,this.encryptArrayBuffer(n,t)];if("string"==typeof t)return[2,this.encryptString(n,t)];throw new Error("Cannot encrypt this file. In browsers file encryption supports only string or ArrayBuffer")}})})},e.prototype.decrypt=function(e,t){return o(this,void 0,void 0,function(){var n;return a(this,function(i){switch(i.label){case 0:return[4,this.getKey(e)];case 1:if(n=i.sent(),t instanceof ArrayBuffer)return[2,this.decryptArrayBuffer(n,t)];if("string"==typeof t)return[2,this.decryptString(n,t)];throw new Error("Cannot decrypt this file. In browsers file decryption supports only string or ArrayBuffer")}})})},e.prototype.encryptFile=function(e,t,n){return o(this,void 0,void 0,function(){var i,r,o;return a(this,function(a){switch(a.label){case 0:if(t.data.byteLength<=0)throw new Error("encryption error. empty content");return[4,this.getKey(e)];case 1:return i=a.sent(),[4,t.data.arrayBuffer()];case 2:return r=a.sent(),[4,this.encryptArrayBuffer(i,r)];case 3:return o=a.sent(),[2,n.create({name:t.name,mimeType:"application/octet-stream",data:o})]}})})},e.prototype.decryptFile=function(e,t,n){return o(this,void 0,void 0,function(){var i,r,o;return a(this,function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return i=a.sent(),[4,t.data.arrayBuffer()];case 2:return r=a.sent(),[4,this.decryptArrayBuffer(i,r)];case 3:return o=a.sent(),[2,n.create({name:t.name,data:o})]}})})},e.prototype.getKey=function(t){return o(this,void 0,void 0,function(){var n,i,r;return a(this,function(o){switch(o.label){case 0:return[4,crypto.subtle.digest("SHA-256",e.encoder.encode(t))];case 1:return n=o.sent(),i=Array.from(new Uint8Array(n)).map(function(e){return e.toString(16).padStart(2,"0")}).join(""),r=e.encoder.encode(i.slice(0,32)).buffer,[2,crypto.subtle.importKey("raw",r,"AES-CBC",!0,["encrypt","decrypt"])]}})})},e.prototype.encryptArrayBuffer=function(e,t){return o(this,void 0,void 0,function(){var n,i,r;return a(this,function(o){switch(o.label){case 0:return n=crypto.getRandomValues(new Uint8Array(16)),i=jo,r=[n.buffer],[4,crypto.subtle.encrypt({name:"AES-CBC",iv:n},e,t)];case 1:return[2,i.apply(void 0,r.concat([o.sent()]))]}})})},e.prototype.decryptArrayBuffer=function(t,n){return o(this,void 0,void 0,function(){var i;return a(this,function(r){switch(r.label){case 0:if(i=n.slice(0,16),n.slice(e.IV_LENGTH).byteLength<=0)throw new Error("decryption error: empty content");return[4,crypto.subtle.decrypt({name:"AES-CBC",iv:i},t,n.slice(e.IV_LENGTH))];case 1:return[2,r.sent()]}})})},e.prototype.encryptString=function(t,n){return o(this,void 0,void 0,function(){var i,r,o,s;return a(this,function(a){switch(a.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),r=e.encoder.encode(n).buffer,[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},t,r)];case 1:return o=a.sent(),s=jo(i.buffer,o),[2,e.decoder.decode(s)]}})})},e.prototype.decryptString=function(t,n){return o(this,void 0,void 0,function(){var i,r,o,s;return a(this,function(a){switch(a.label){case 0:return i=e.encoder.encode(n).buffer,r=i.slice(0,16),o=i.slice(16),[4,crypto.subtle.decrypt({name:"AES-CBC",iv:r},t,o)];case 1:return s=a.sent(),[2,e.decoder.decode(s)]}})})},e.IV_LENGTH=16,e.encoder=new TextEncoder,e.decoder=new TextDecoder,e}(),Go=(Fo=function(){function e(e){if(e instanceof File)this.data=e,this.name=this.data.name,this.mimeType=this.data.type;else if(e.data){var t=e.data;this.data=new File([t],e.name,{type:e.mimeType}),this.name=e.name,e.mimeType&&(this.mimeType=e.mimeType)}if(void 0===this.data)throw new Error("Couldn't construct a file out of supplied options.");if(void 0===this.name)throw new Error("Couldn't guess filename out of the options. Please provide one.")}return e.create=function(e){return new this(e)},e.prototype.toBuffer=function(){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("This feature is only supported in Node.js environments.")})})},e.prototype.toStream=function(){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("This feature is only supported in Node.js environments.")})})},e.prototype.toFileUri=function(){return o(this,void 0,void 0,function(){return a(this,function(e){throw new Error("This feature is only supported in react native environments.")})})},e.prototype.toBlob=function(){return o(this,void 0,void 0,function(){return a(this,function(e){return[2,this.data]})})},e.prototype.toArrayBuffer=function(){return o(this,void 0,void 0,function(){var e=this;return a(this,function(t){return[2,new Promise(function(t,n){var i=new FileReader;i.addEventListener("load",function(){if(i.result instanceof ArrayBuffer)return t(i.result)}),i.addEventListener("error",function(){n(i.error)}),i.readAsArrayBuffer(e.data)})]})})},e.prototype.toString=function(){return o(this,void 0,void 0,function(){var e=this;return a(this,function(t){return[2,new Promise(function(t,n){var i=new FileReader;i.addEventListener("load",function(){if("string"==typeof i.result)return t(i.result)}),i.addEventListener("error",function(){n(i.error)}),i.readAsBinaryString(e.data)})]})})},e.prototype.toFile=function(){return o(this,void 0,void 0,function(){return a(this,function(e){return[2,this.data]})})},e}(),Fo.supportsFile="undefined"!=typeof File,Fo.supportsBlob="undefined"!=typeof Blob,Fo.supportsArrayBuffer="undefined"!=typeof ArrayBuffer,Fo.supportsBuffer=!1,Fo.supportsStream=!1,Fo.supportsString=!0,Fo.supportsEncryptFile=!0,Fo.supportsFileUri=!1,Fo),zo=function(){function e(e){this.config=e,this.cryptor=new k({config:e}),this.fileCryptor=new Ho}return Object.defineProperty(e.prototype,"identifier",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.encrypt=function(e){var t="string"==typeof e?e:(new TextDecoder).decode(e);return{data:this.cryptor.encrypt(t),metadata:null}},e.prototype.decrypt=function(e){var t="string"==typeof e.data?e.data:v(e.data);return this.cryptor.decrypt(t)},e.prototype.encryptFile=function(e,t){var n;return o(this,void 0,void 0,function(){return a(this,function(i){return[2,this.fileCryptor.encryptFile(null===(n=this.config)||void 0===n?void 0:n.cipherKey,e,t)]})})},e.prototype.decryptFile=function(e,t){return o(this,void 0,void 0,function(){return a(this,function(n){return[2,this.fileCryptor.decryptFile(this.config.cipherKey,e,t)]})})},e}(),Qo=function(){function e(e){this.cipherKey=e.cipherKey,this.CryptoJS=E,this.encryptedKey=this.CryptoJS.SHA256(this.cipherKey)}return Object.defineProperty(e.prototype,"algo",{get:function(){return"AES-CBC"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"identifier",{get:function(){return"ACRH"},enumerable:!1,configurable:!0}),e.prototype.getIv=function(){return crypto.getRandomValues(new Uint8Array(e.BLOCK_SIZE))},e.prototype.getKey=function(){return o(this,void 0,void 0,function(){var t,n;return a(this,function(i){switch(i.label){case 0:return t=e.encoder.encode(this.cipherKey),[4,crypto.subtle.digest("SHA-256",t.buffer)];case 1:return n=i.sent(),[2,crypto.subtle.importKey("raw",n,this.algo,!0,["encrypt","decrypt"])]}})})},e.prototype.encrypt=function(t){if(0===("string"==typeof t?t:e.decoder.decode(t)).length)throw new Error("encryption error. empty content");var n=this.getIv();return{metadata:n,data:b(this.CryptoJS.AES.encrypt(t,this.encryptedKey,{iv:this.bufferToWordArray(n),mode:this.CryptoJS.mode.CBC}).ciphertext.toString(this.CryptoJS.enc.Base64))}},e.prototype.decrypt=function(t){var n=this.bufferToWordArray(new Uint8ClampedArray(t.metadata)),i=this.bufferToWordArray(new Uint8ClampedArray(t.data));return e.encoder.encode(this.CryptoJS.AES.decrypt({ciphertext:i},this.encryptedKey,{iv:n,mode:this.CryptoJS.mode.CBC}).toString(this.CryptoJS.enc.Utf8)).buffer},e.prototype.encryptFileData=function(e){return o(this,void 0,void 0,function(){var t,n,i;return a(this,function(r){switch(r.label){case 0:return[4,this.getKey()];case 1:return t=r.sent(),n=this.getIv(),i={},[4,crypto.subtle.encrypt({name:this.algo,iv:n},t,e)];case 2:return[2,(i.data=r.sent(),i.metadata=n,i)]}})})},e.prototype.decryptFileData=function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(n){switch(n.label){case 0:return[4,this.getKey()];case 1:return t=n.sent(),[2,crypto.subtle.decrypt({name:this.algo,iv:e.metadata},t,e.data)]}})})},e.prototype.bufferToWordArray=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n[t/4|0]|=e[t]<<24-8*t;return this.CryptoJS.lib.WordArray.create(n,e.length)},e.BLOCK_SIZE=16,e.encoder=new TextEncoder,e.decoder=new TextDecoder,e}(),Wo=function(){function e(e){var t;this.defaultCryptor=e.default,this.cryptors=null!==(t=e.cryptors)&&void 0!==t?t:[]}return e.legacyCryptoModule=function(e){var t;return new this({default:new zo({cipherKey:e.cipherKey,useRandomIVs:null===(t=e.useRandomIVs)||void 0===t||t}),cryptors:[new Qo({cipherKey:e.cipherKey})]})},e.aesCbcCryptoModule=function(e){var t;return new this({default:new Qo({cipherKey:e.cipherKey}),cryptors:[new zo({cipherKey:e.cipherKey,useRandomIVs:null===(t=e.useRandomIVs)||void 0===t||t})]})},e.withDefaultCryptor=function(e){return new this({default:e})},e.prototype.getAllCryptors=function(){return u([this.defaultCryptor],l(this.cryptors),!1)},e.prototype.encrypt=function(e){var t=this.defaultCryptor.encrypt(e);if(!t.metadata)return t.data;var n=this.getHeaderData(t);return this.concatArrayBuffer(n,t.data)},e.prototype.decrypt=function(e){var t="string"==typeof e?b(e):e,n=qo.tryParse(t),i=this.getCryptor(n),r=n.length>0?t.slice(n.length-n.metadataLength,n.length):null;if(t.slice(n.length).byteLength<=0)throw new Error("decryption error. empty content");return i.decrypt({data:t.slice(n.length),metadata:r})},e.prototype.encryptFile=function(e,t){return o(this,void 0,void 0,function(){var n,i;return a(this,function(r){switch(r.label){case 0:return this.defaultCryptor.identifier===qo.LEGACY_IDENTIFIER?[2,this.defaultCryptor.encryptFile(e,t)]:[4,this.getFileData(e.data)];case 1:return n=r.sent(),[4,this.defaultCryptor.encryptFileData(n)];case 2:return i=r.sent(),[2,t.create({name:e.name,mimeType:"application/octet-stream",data:this.concatArrayBuffer(this.getHeaderData(i),i.data)})]}})})},e.prototype.decryptFile=function(t,n){return o(this,void 0,void 0,function(){var i,r,o,s,l,u,d,c;return a(this,function(a){switch(a.label){case 0:return[4,t.data.arrayBuffer()];case 1:return i=a.sent(),r=qo.tryParse(i),(null==(o=this.getCryptor(r))?void 0:o.identifier)===e.LEGACY_IDENTIFIER?[2,o.decryptFile(t,n)]:[4,this.getFileData(i)];case 2:return s=a.sent(),l=s.slice(r.length-r.metadataLength,r.length),d=(u=n).create,c={name:t.name},[4,this.defaultCryptor.decryptFileData({data:i.slice(r.length),metadata:l})];case 3:return[2,d.apply(u,[(c.data=a.sent(),c)])]}})})},e.prototype.getCryptor=function(e){if(""===e){var t=this.getAllCryptors().find(function(e){return""===e.identifier});if(t)return t;throw new Error("unknown cryptor error")}if(e instanceof Vo)return this.getCryptorFromId(e.identifier)},e.prototype.getCryptorFromId=function(e){var t=this.getAllCryptors().find(function(t){return e===t.identifier});if(t)return t;throw Error("unknown cryptor error")},e.prototype.concatArrayBuffer=function(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e),0),n.set(new Uint8Array(t),e.byteLength),n.buffer},e.prototype.getHeaderData=function(e){if(e.metadata){var t=qo.from(this.defaultCryptor.identifier,e.metadata),n=new Uint8Array(t.length),i=0;return n.set(t.data,i),i+=t.length-e.metadata.byteLength,n.set(new Uint8Array(e.metadata),i),n.buffer}},e.prototype.getFileData=function(t){return o(this,void 0,void 0,function(){return a(this,function(n){switch(n.label){case 0:return t instanceof Blob?[4,t.arrayBuffer()]:[3,2];case 1:return[2,n.sent()];case 2:if(t instanceof ArrayBuffer)return[2,t];if("string"==typeof t)return[2,e.encoder.encode(t)];throw new Error("Cannot decrypt/encrypt file. In browsers file encrypt/decrypt supported for string, ArrayBuffer or Blob")}})})},e.LEGACY_IDENTIFIER="",e.encoder=new TextEncoder,e.decoder=new TextDecoder,e}(),qo=function(){function e(){}return e.from=function(t,n){if(t!==e.LEGACY_IDENTIFIER)return new Vo(t,n.byteLength)},e.tryParse=function(t){var n=new Uint8Array(t),i="";if(n.byteLength>=4&&(i=n.slice(0,4),this.decoder.decode(i)!==e.SENTINEL))return"";if(!(n.byteLength>=5))throw new Error("decryption error. invalid header version");if(n[4]>e.MAX_VERSION)throw new Error("unknown cryptor error");var r="",o=5+e.IDENTIFIER_LENGTH;if(!(n.byteLength>=o))throw new Error("decryption error. invalid crypto identifier");r=n.slice(5,o);var a=null;if(!(n.byteLength>=o+1))throw new Error("decryption error. invalid metadata length");return a=n[o],o+=1,255===a&&n.byteLength>=o+2&&(a=new Uint16Array(n.slice(o,o+2)).reduce(function(e,t){return(e<<8)+t},0),o+=2),new Vo(this.decoder.decode(r),a)},e.SENTINEL="PNED",e.LEGACY_IDENTIFIER="",e.IDENTIFIER_LENGTH=4,e.VERSION=1,e.MAX_VERSION=1,e.decoder=new TextDecoder,e}(),Vo=function(){function e(e,t){this._identifier=e,this._metadataLength=t}return Object.defineProperty(e.prototype,"identifier",{get:function(){return this._identifier},set:function(e){this._identifier=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadataLength",{get:function(){return this._metadataLength},set:function(e){this._metadataLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return qo.VERSION},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return qo.SENTINEL.length+1+qo.IDENTIFIER_LENGTH+(this.metadataLength<255?1:3)+this.metadataLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=0,t=new Uint8Array(this.length),n=new TextEncoder;t.set(n.encode(qo.SENTINEL)),t[e+=qo.SENTINEL.length]=this.version,e++,this.identifier&&t.set(n.encode(this.identifier),e),e+=qo.IDENTIFIER_LENGTH;var i=this.metadataLength;return i<255?t[e]=i:t.set([255,i>>8,255&i],e),t},enumerable:!1,configurable:!0}),e.IDENTIFIER_LENGTH=4,e.SENTINEL="PNED",e}();function Yo(e){if(!navigator||!navigator.sendBeacon)return!1;navigator.sendBeacon(e)}var Ko=function(e){function n(t){var n=this,i=t.listenToBrowserNetworkEvents,r=void 0===i||i;return t.sdkFamily="Web",t.networking=new Cn({del:Bo,get:Lo,post:Uo,patch:Ro,sendBeacon:Yo,getfile:Do,postfile:No}),t.cbor=new $n(function(e){return xn(p.decode(e))},b),t.PubNubFile=Go,t.cryptography=new Ho,t.initCryptoModule=function(e){return new Wo({default:new zo({cipherKey:e.cipherKey,useRandomIVs:e.useRandomIVs}),cryptors:[new Qo({cipherKey:e.cipherKey})]})},n=e.call(this,t)||this,r&&(window.addEventListener("offline",function(){n.networkDownDetected()}),window.addEventListener("online",function(){n.networkUpDetected()})),n}return t(n,e),n.CryptoModule=Wo,n}(wn);return Ko}()},8859:(e,t,n)=>{var i=n(3661),r=n(1380),o=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=o,e.exports=a},8879:(e,t,n)=>{var i=n(4335)(Object.getPrototypeOf,Object);e.exports=i},8963:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e<0?"-":"",i=Math.abs(e).toString();for(;i.length<t;)i="0"+i;return n+i},e.exports=t.default},8984:(e,t,n)=>{var i=n(5527),r=n(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9012:e=>{e.exports=function(e,t){return function(){return e.apply(t,arguments)}}},9059:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}},e.exports=t.default},9106:(e,t,n)=>{var i=n(9516),r=n(170);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a));var s,l=n&&n.encode||o,u=n&&n.serialize;return(s=u?u(t,n):i.isURLSearchParams(t)?t.toString():new r(t,n).toString(l))&&(e+=(-1===e.indexOf("?")?"?":"&")+s),e}},9137:e=>{e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},9219:e=>{e.exports=function(e,t){return e.has(t)}},9325:(e,t,n)=>{var i=n(4840),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},9326:(e,t,n)=>{var i=n(1769),r=n(2428),o=n(6449),a=n(361),s=n(294),l=n(7797);e.exports=function(e,t,n){for(var u=-1,d=(t=i(t,e)).length,c=!1;++u<d;){var h=l(t[u]);if(!(c=null!=e&&n(e,h)))break;e=e[h]}return c||++u!=d?c:!!(d=null==e?0:e.length)&&s(d)&&a(h,d)&&(o(e)||r(e))}},9344:(e,t,n)=>{var i=n(3805),r=Object.create,o=function(){function e(){}return function(t){if(!i(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9417:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==n.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==i.indexOf(e)},t.throwProtectedError=function(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))};var n=["D","DD"],i=["YY","YYYY"]},9490:(e,t,n)=>{e.exports={isBrowser:!0,classes:{URLSearchParams:n(2002),FormData:n(243),Blob},protocols:["http","https","file","blob","url","data"]}},9516:(e,t,n)=>{var i,r=n(9012),o=Object.prototype.toString,a=(i=Object.create(null),function(e){var t=o.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var d=s("ArrayBuffer");function c(e){return"number"==typeof e}function h(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=s("Date"),g=s("File"),m=s("Blob"),y=s("FileList");function b(e){return"[object Function]"===o.call(e)}var v=s("URLSearchParams");function w(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var C,x=(C="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return C&&e instanceof C});var $,S=s("HTMLFormElement"),A=($=Object.prototype.hasOwnProperty,function(e,t){return $.call(e,t)});e.exports={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:c,isObject:h,isPlainObject:p,isEmptyObject:function(e){return e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype},isUndefined:u,isDate:f,isFile:g,isBlob:m,isFunction:b,isStream:function(e){return h(e)&&b(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:w,merge:function e(){var t={};function n(n,i){p(t[i])&&p(n)?t[i]=e(t[i],n):p(n)?t[i]=e({},n):l(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)w(arguments[i],n);return t},extend:function(e,t,n){return w(t,function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,i){var r,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a=r[o],i&&!i(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;if(l(e))return e;var t=e.length;if(!c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:x,isFileList:y,forEachEntry:function(e,t){for(var n,i=(e&&e[Symbol.iterator]).call(e);(n=i.next())&&!n.done;){var r=n.value;t.call(e,r[0],r[1])}},matchAll:function(e,t){for(var n,i=[];null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:S,hasOwnProperty:A}},9615:(e,t,n)=>{var i=n(9137),r=n(4680);e.exports=function(e,t,n){var o=!i(t);return e&&(o||!1===n)?r(e,t):t}},9638:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,i.default)(e),n=(0,r.default)(t).getTime()-(0,o.default)(t).getTime();return Math.round(n/l)+1};var i=s(n(5039)),r=s(n(3076)),o=s(n(7674)),a=s(n(427));function s(e){return e&&e.__esModule?e:{default:e}}var l=6048e5;e.exports=t.default},9641:e=>{e.exports={version:"0.30.1"}},9698:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9720:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},9752:(e,t,n)=>{var i=n(3729),r=n(9344),o=n(641),a=n(5389),s=n(8879),l=n(6449),u=n(3656),d=n(1882),c=n(3805),h=n(7167);e.exports=function(e,t,n){var p=l(e),f=p||u(e)||h(e);if(t=a(t,4),null==n){var g=e&&e.constructor;n=f?p?new g:[]:c(e)&&d(g)?r(s(e)):{}}return(f?i:o)(e,function(e,i,r){return t(n,e,i,r)}),n}},9770:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}},9784:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},9799:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(1,arguments);var n=t||{},s=n.locale,l=s&&s.options&&s.options.firstWeekContainsDate,u=null==l?1:(0,a.default)(l),d=null==n.firstWeekContainsDate?u:(0,a.default)(n.firstWeekContainsDate),c=(0,i.default)(e,t),h=new Date(0);return h.setUTCFullYear(c,0,d),h.setUTCHours(0,0,0,0),(0,o.default)(h,t)};var i=s(n(2036)),r=s(n(427)),o=s(n(930)),a=s(n(9784));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},9935:e=>{e.exports=function(){return!1}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0;var i=n(2505),r=n.n(i);const o=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),s=new Map;class l{constructor(e,t){if(this._$cssResult$=!0,t!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=s.get(this.cssText);return o&&void 0===e&&(s.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const u=(e,...t)=>{const n=1===e.length?e[0]:t.reduce((t,n,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[i+1],e[0]);return new l(n,a)},d=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new l("string"==typeof e?e:e+"",a))(t)})(e):e;var c;const h=window.trustedTypes,p=h?h.emptyScript:"",f=window.reactiveElementPolyfillSupport,g={toAttribute(e,t){switch(t){case Boolean:e=e?p:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},m=(e,t)=>t!==e&&(t==t||e==e),y={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:m};class b extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const i=this._$Eh(n,t);void 0!==i&&(this._$Eu.set(i,n),e.push(i))}),e}static createProperty(e,t=y){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(i){const r=this[e];this[t]=i,this.requestUpdate(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(d(e))}else void 0!==e&&t.push(d(e));return t}static _$Eh(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,n;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$Eg)||void 0===t||t.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{o?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{const n=document.createElement("style"),i=window.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=t.cssText,e.appendChild(n)})})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Eg)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$Eg)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ES(e,t,n=y){var i,r;const o=this.constructor._$Eh(e,n);if(void 0!==o&&!0===n.reflect){const a=(null!==(r=null===(i=n.converter)||void 0===i?void 0:i.toAttribute)&&void 0!==r?r:g.toAttribute)(t,n.type);this._$Ei=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}_$AK(e,t){var n,i,r;const o=this.constructor,a=o._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){const e=o.getPropertyOptions(a),s=e.converter,l=null!==(r=null!==(i=null===(n=s)||void 0===n?void 0:n.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==r?r:g.fromAttribute;this._$Ei=a,this[a]=l(t,e.type),this._$Ei=null}}requestUpdate(e,t,n){let i=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||m)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Ei!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((e,t)=>this[t]=e),this._$Et=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$Eg)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(n)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$Eg)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$ES(t,this[t],e)),this._$EC=void 0),this._$EU()}updated(e){}firstUpdated(e){}}var v;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(c=globalThis.reactiveElementVersions)&&void 0!==c?c:globalThis.reactiveElementVersions=[]).push("1.3.1");const w=globalThis.trustedTypes,C=w?w.createPolicy("lit-html",{createHTML:e=>e}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,$="?"+x,S=`<${$}>`,A=document,E=(e="")=>A.createComment(e),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,k=Array.isArray,_=e=>{var t;return k(e)||"function"==typeof(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,I=/>/g,M=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,N=/'/g,D=/"/g,L=/^(?:script|style|textarea|title)$/i,U=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),R=U(1),B=U(2),j=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),H=new WeakMap,G=A.createTreeWalker(A,129,null,!1),z=(e,t)=>{const n=e.length-1,i=[];let r,o=2===t?"<svg>":"",a=O;for(let t=0;t<n;t++){const n=e[t];let s,l,u=-1,d=0;for(;d<n.length&&(a.lastIndex=d,l=a.exec(n),null!==l);)d=a.lastIndex,a===O?"!--"===l[1]?a=P:void 0!==l[1]?a=I:void 0!==l[2]?(L.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=M):void 0!==l[3]&&(a=M):a===M?">"===l[0]?(a=null!=r?r:O,u=-1):void 0===l[1]?u=-2:(u=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?M:'"'===l[3]?D:N):a===D||a===N?a=M:a===P||a===I?a=O:(a=M,r=void 0);const c=a===M&&e[t+1].startsWith("/>")?" ":"";o+=a===O?n+S:u>=0?(i.push(s),n.slice(0,u)+"$lit$"+n.slice(u)+x+c):n+x+(-2===u?(i.push(void 0),t):c)}const s=o+(e[n]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(s):s,i]};class Q{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let r=0,o=0;const a=e.length-1,s=this.parts,[l,u]=z(e,t);if(this.el=Q.createElement(l,n),G.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(i=G.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes()){const e=[];for(const t of i.getAttributeNames())if(t.endsWith("$lit$")||t.startsWith(x)){const n=u[o++];if(e.push(t),void 0!==n){const e=i.getAttribute(n.toLowerCase()+"$lit$").split(x),t=/([.?@])?(.*)/.exec(n);s.push({type:1,index:r,name:t[2],strings:e,ctor:"."===t[1]?K:"?"===t[1]?Z:"@"===t[1]?J:Y})}else s.push({type:6,index:r})}for(const t of e)i.removeAttribute(t)}if(L.test(i.tagName)){const e=i.textContent.split(x),t=e.length-1;if(t>0){i.textContent=w?w.emptyScript:"";for(let n=0;n<t;n++)i.append(e[n],E()),G.nextNode(),s.push({type:2,index:++r});i.append(e[t],E())}}}else if(8===i.nodeType)if(i.data===$)s.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(x,e+1));)s.push({type:7,index:r}),e+=x.length-1}r++}}static createElement(e,t){const n=A.createElement("template");return n.innerHTML=e,n}}function W(e,t,n=e,i){var r,o,a,s;if(t===j)return t;let l=void 0!==i?null===(r=n._$Cl)||void 0===r?void 0:r[i]:n._$Cu;const u=T(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===u?l=void 0:(l=new u(e),l._$AT(e,n,i)),void 0!==i?(null!==(a=(s=n)._$Cl)&&void 0!==a?a:s._$Cl=[])[i]=l:n._$Cu=l),void 0!==l&&(t=W(e,l._$AS(e,t.values),l,i)),t}class q{constructor(e,t){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var t;const{el:{content:n},parts:i}=this._$AD,r=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:A).importNode(n,!0);G.currentNode=r;let o=G.nextNode(),a=0,s=0,l=i[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new V(o,o.nextSibling,this,e):1===l.type?t=new l.ctor(o,l.name,l.strings,this,e):6===l.type&&(t=new ee(o,this,e)),this.v.push(t),l=i[++s]}a!==(null==l?void 0:l.index)&&(o=G.nextNode(),a++)}return r}m(e){let t=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class V{constructor(e,t,n,i){var r;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cg=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=W(this,e,t),T(e)?e===F||null==e||""===e?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==j&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.k(e):_(e)?this.S(e):this.$(e)}M(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}k(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}$(e){this._$AH!==F&&T(this._$AH)?this._$AA.nextSibling.data=e:this.k(A.createTextNode(e)),this._$AH=e}T(e){var t;const{values:n,_$litType$:i}=e,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=Q.createElement(i.h,this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===r)this._$AH.m(n);else{const e=new q(r,this),t=e.p(this.options);e.m(n),this.k(t),this._$AH=e}}_$AC(e){let t=H.get(e.strings);return void 0===t&&H.set(e.strings,t=new Q(e)),t}S(e){k(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,i=0;for(const r of e)i===t.length?t.push(n=new V(this.M(E()),this.M(E()),this,this.options)):n=t[i],n._$AI(r),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cg=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Y{constructor(e,t,n,i,r){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,i){const r=this.strings;let o=!1;if(void 0===r)e=W(this,e,t,0),o=!T(e)||e!==this._$AH&&e!==j,o&&(this._$AH=e);else{const i=e;let a,s;for(e=r[0],a=0;a<r.length-1;a++)s=W(this,i[n+a],t,a),s===j&&(s=this._$AH[a]),o||(o=!T(s)||s!==this._$AH[a]),s===F?e=F:e!==F&&(e+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}o&&!i&&this.C(e)}C(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class K extends Y{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===F?void 0:e}}const X=w?w.emptyScript:"";class Z extends Y{constructor(){super(...arguments),this.type=4}C(e){e&&e!==F?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class J extends Y{constructor(e,t,n,i,r){super(e,t,n,i,r),this.type=5}_$AI(e,t=this){var n;if((e=null!==(n=W(this,e,t,0))&&void 0!==n?n:F)===j)return;const i=this._$AH,r=e===F&&i!==F||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==F&&(i===F||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}class ee{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){W(this,e)}}const te={L:"$lit$",P:x,V:$,I:1,N:z,R:q,j:_,D:W,H:V,F:Y,O:Z,W:J,B:K,Z:ee},ne=window.litHtmlPolyfillSupport;var ie,re;null==ne||ne(Q,V),(null!==(v=globalThis.litHtmlVersions)&&void 0!==v?v:globalThis.litHtmlVersions=[]).push("2.2.2");class oe extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=((e,t,n)=>{var i,r;const o=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:t;let a=o._$litPart$;if(void 0===a){const e=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;o._$litPart$=a=new V(t.insertBefore(E(),e),e,void 0,null!=n?n:{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}render(){return j}}oe.finalized=!0,oe._$litElement$=!0,null===(ie=globalThis.litElementHydrateSupport)||void 0===ie||ie.call(globalThis,{LitElement:oe});const ae=globalThis.litElementPolyfillSupport;null==ae||ae({LitElement:oe});(null!==(re=globalThis.litElementVersions)&&void 0!==re?re:globalThis.litElementVersions=[]).push("3.2.0");const se=e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:n,elements:i}=t;return{kind:n,elements:i,finisher(t){window.customElements.define(e,t)}}})(e,t),le=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};function ue(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):le(e,t)}function de(e){return ue({...e,state:!0})}function ce(e,t){return(({finisher:e,descriptor:t})=>(n,i)=>{var r;if(void 0===i){const i=null!==(r=n.originalKey)&&void 0!==r?r:n.key,o=null!=t?{kind:"method",placement:"prototype",key:i,descriptor:t(n.key)}:{...n,key:i};return null!=e&&(o.finisher=function(t){e(t,i)}),o}{const r=n.constructor;void 0!==t&&Object.defineProperty(n,i,t(i)),null==e||e(r,i)}})({descriptor:n=>{const i={get(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(t){const t="symbol"==typeof n?Symbol():"__"+n;i.get=function(){var n,i;return void 0===this[t]&&(this[t]=null!==(i=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(e))&&void 0!==i?i:null),this[t]}}return i}})}var he;null===(he=window.HTMLSlotElement)||void 0===he||he.prototype.assignedElements;const pe=1,fe=2,ge=e=>(...t)=>({_$litDirective$:e,values:t});class me{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const ye=ge(class extends me{constructor(e){var t;if(super(e),e.type!==pe||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var n,i;if(void 0===this.et){this.et=new Set,void 0!==e.strings&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in t)t[e]&&!(null===(n=this.st)||void 0===n?void 0:n.has(e))&&this.et.add(e);return this.render(t)}const r=e.element.classList;this.et.forEach(e=>{e in t||(r.remove(e),this.et.delete(e))});for(const e in t){const n=!!t[e];n===this.et.has(e)||(null===(i=this.st)||void 0===i?void 0:i.has(e))||(n?(r.add(e),this.et.add(e)):(r.remove(e),this.et.delete(e)))}return j}}),{H:be}=te,ve=(e,t)=>{var n,i;const r=e._$AN;if(void 0===r)return!1;for(const e of r)null===(i=(n=e)._$AO)||void 0===i||i.call(n,t,!1),ve(e,t);return!0},we=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},Ce=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Se(t)}};function xe(e){void 0!==this._$AN?(we(this),this._$AM=e,Ce(this)):this._$AM=e}function $e(e,t=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(i))for(let e=n;e<i.length;e++)ve(i[e],!1),we(i[e]);else null!=i&&(ve(i,!1),we(i));else ve(this,e)}const Se=e=>{var t,n,i,r;e.type==fe&&(null!==(t=(i=e)._$AP)&&void 0!==t||(i._$AP=$e),null!==(n=(r=e)._$AQ)&&void 0!==n||(r._$AQ=xe))};class Ae extends me{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Ce(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,i;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),t&&(ve(this,e),we(this))}setValue(e){if((e=>void 0===e.strings)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const Ee=()=>new Te;class Te{}const ke=new WeakMap,_e=ge(class extends Ae{render(e){return F}update(e,[t]){var n;const i=t!==this.U;return i&&void 0!==this.U&&this.ot(void 0),(i||this.rt!==this.lt)&&(this.U=t,this.ht=null===(n=e.options)||void 0===n?void 0:n.host,this.ot(this.lt=e.element)),F}ot(e){var t;if("function"==typeof this.U){const n=null!==(t=this.ht)&&void 0!==t?t:globalThis;let i=ke.get(n);void 0===i&&(i=new WeakMap,ke.set(n,i)),void 0!==i.get(this.U)&&this.U.call(this.ht,void 0),i.set(this.U,e),void 0!==e&&this.U.call(this.ht,e)}else this.U.value=e}get rt(){var e,t,n;return"function"==typeof this.U?null===(t=ke.get(null!==(e=this.ht)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.U):null===(n=this.U)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),Oe=u`
|
|
2
2
|
.webchat-input {
|
|
3
3
|
outline: none;
|
|
4
4
|
|
|
@@ -52,7 +52,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
52
52
|
font-family: "Helvetica Neue", Arial;
|
|
53
53
|
font-size: 14px;
|
|
54
54
|
}
|
|
55
|
-
`,Pe={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[0-79]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Ie(e,t){var n=Array.prototype.slice.call(t);return n.push(Pe),e.apply(this,n)}function Ne(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),i=t[0].split("."),r=0;r<3;r++){var o=Number(n[r]),a=Number(i[r]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Me={}.constructor;function De(e){return null!=e&&e.constructor===Me}var Le=/^\d+$/;function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}function Re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Be(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Fe(i.key),i)}}function je(e,t,n){return t&&Be(e.prototype,t),n&&Be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fe(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ue(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}var He=" ext. ",Ge=function(){return je(function e(t){Re(this,e),Ye(t),this.metadata=t,Ze.call(this,t)},[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){var n,i,r;if(e&&(r=e,Le.test(r)?i=e:n=e),t&&(i=t),n&&"001"!==n){var o=this.getCountryMetadata(n);if(!o)throw new Error("Unknown country: ".concat(n));this.numberingPlan=new ze(o,this)}else if(i){if(!this.hasCallingCode(i))throw new Error("Unknown calling code: ".concat(i));this.numberingPlan=new ze(this.getNumberingPlanMetadata(i),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var i=this.countryCallingCodes()[e];if(i&&1===i.length&&"001"===i[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),ze=function(){return je(function e(t,n){Re(this,e),this.globalMetadataObject=n,this.metadata=t,Ze.call(this,n.metadata)},[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return t.map(function(t){return new Qe(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&Ve(this.types(),e))return new qe(Ve(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?He:this.metadata[13]||He}}])}(),Qe=function(){return je(function e(t,n){Re(this,e),this._format=t,this.metadata=n},[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||We.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),We=/^\(?\$1\)?$/,qe=function(){return je(function e(t,n){Re(this,e),this.type=t,this.metadata=n},[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function Ve(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Ye(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!De(e)||!De(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(De(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Ke(e)+": "+e,"."))}var Ke=function(e){return Ue(e)};function Xe(e,t){var n=new Ge(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Ze(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Ne(t,"1.2.0")?this.v2=!0:-1===Ne(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function Je(e){return new Ge(e).getCountries()}function et(){return Ie(Je,arguments)}function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function it(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=tt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(e,t)||function(){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 ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function at(e){var t,n,i,r=rt(Array.prototype.slice.call(e),4),o=r[0],a=r[1],s=r[2],l=r[3];if("string"!=typeof o)throw new TypeError("A text for parsing must be a string.");if(t=o,a&&"string"!=typeof a){if(!De(a))throw new Error("Invalid second argument: ".concat(a));s?(n=a,i=s):i=a}else l?(n=s,i=l):(n=void 0,i=s),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach(function(t){it(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({defaultCountry:a},n));return{text:t,options:n,metadata:i}}var st="0-90-9٠-٩۰-۹",lt="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~");function ut(e){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ut(e)}function dt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ct(i.key),i)}}function ct(e){var t=function(e,t){if("object"!=ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=ut(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ut(t)?t:t+""}function ht(e,t,n){return t=mt(t),function(e,t){if(t&&("object"==ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ft()?Reflect.construct(t,n||[],mt(e).constructor):t.apply(e,n))}function pt(e){var t="function"==typeof Map?new Map:void 0;return pt=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ft())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&>(r,n.prototype),r}(e,arguments,mt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gt(n,e)},pt(e)}function ft(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ft=function(){return!!e})()}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gt(e,t)}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(e)}var yt=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=ht(this,e,[t]),Object.setPrototypeOf(n,e.prototype),n.name=n.constructor.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&>(e,t)}(e,pt(Error)),function(e,t,n){return t&&dt(e.prototype,t),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),bt=function(e){return"([".concat(st,"]{1,").concat(e,"})")};function vt(e){var t="[ \\t,]*",n="[:\\..]?[ \\t,-]*",i="#?",r="[ \\t]*";return";ext="+bt("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+bt("20")+i)+"|"+(t+"(?:[xx##~~]|int|int)"+n+bt("9")+i)+"|"+("[- ]+"+bt("6")+"#")+"|"+(r+"(?:,{2}|;)"+n+bt("15")+i)+"|"+(r+"(?:,)+"+n+bt("9")+i)}var wt="["+st+"]{2}",Ct="[++]{0,1}(?:["+lt+"]*["+st+"]){3,}["+lt+st+"]*",xt=new RegExp("^[++]{0,1}(?:["+lt+"]*["+st+"]){1,2}$","i"),$t=Ct+"(?:"+vt()+")?",St=new RegExp("^"+wt+"$|^"+$t+"$","i");var At=new RegExp("(?:"+vt()+")$","i");var Et={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Tt(e){return Et[e]}function kt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _t(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[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.")}function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Ot(e){for(var t,n="",i=kt(e.split(""));!(t=i()).done;){n+=Pt(t.value,n)||""}return n}function Pt(e,t,n){return"+"===e?t?void("function"==typeof n&&n("end")):"+":Tt(e)}function It(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[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.")}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Mt(e,t,n){return Dt(e,void 0,t,n)}function Dt(e,t,n,i){n&&(i=new Ge(i.metadata)).selectNumberingPlan(n);var r=i.type(t),o=r&&r.possibleLengths()||i.possibleLengths();if(!o)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!i.type("FIXED_LINE"))return Dt(e,"MOBILE",n,i);var a=i.type("MOBILE");a&&(o=function(e,t){for(var n,i=e.slice(),r=It(t);!(n=r()).done;){var o=n.value;e.indexOf(o)<0&&i.push(o)}return i.sort(function(e,t){return e-t})}(o,a.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var s=e.length,l=o[0];return l===s?"IS_POSSIBLE":l>s?"TOO_SHORT":o[o.length-1]<s?"TOO_LONG":o.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Lt(e,t){return"IS_POSSIBLE"===Mt(e,void 0,t)}function Ut(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Rt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[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.")}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var jt=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Ft(e,t,n){if(t=t||{},e.country||e.countryCallingCode){var i=new Ge(n);i.selectNumberingPlan(e.country||e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Ut(r,i.nationalNumberPattern())){if(Ht(r,"FIXED_LINE",i))return i.type("MOBILE")&&""===i.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":i.type("MOBILE")?Ht(r,"MOBILE",i)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var o,a=Rt(jt);!(o=a()).done;){var s=o.value;if(Ht(r,s,i))return s}}}}function Ht(e,t,n){var i=n.type(t);return!(!i||!i.pattern())&&(!(i.possibleLengths()&&i.possibleLengths().indexOf(e.length)<0)&&Ut(e,i.pattern()))}var Gt=/^[A-Z]{2}$/;function zt(e,t){var n,i,r,o=new Ge(t);return r=e,Gt.test(r)?(n=e,o.selectNumberingPlan(n),i=o.countryCallingCode()):i=e,{country:n,callingCode:i}}function Qt(e,t,n){var i=new Ge(n).getCountryCodesForCallingCode(e);return i?i.filter(function(e){return function(e,t,n){var i=new Ge(n);return i.selectNumberingPlan(t),i.numberingPlan.possibleLengths().indexOf(e.length)>=0}(t,e,n)}):[]}var Wt=new RegExp("(["+st+"])");function qt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[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.")}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Yt(e,t){var n=t.nationalNumber,i=t.metadata;var r=i.getCountryCodesForCallingCode(e);if(r)return 1===r.length?r[0]:function(e,t,n){for(var i,r=new Ge(n),o=qt(t);!(i=o()).done;){var a=i.value;if(r.selectNumberingPlan(a),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return a}else if(Ft({phone:e,country:a},void 0,r.metadata))return a}}(n,r,i.metadata)}function Kt(e,t,n){var i=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),i=n.exec(e);if(i){var r,o,a,s=i.length-1,l=s>0&&i[s];if(t.nationalPrefixTransformRule()&&l)r=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(o=i[1]);else{var u=i[0];r=e.slice(u.length),l&&(o=i[1])}if(l){var d=e.indexOf(i[1]);e.slice(0,d)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=i[0];return{nationalNumber:r,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}(e,n),r=i.carrierCode,o=i.nationalNumber;if(o!==e){if(!function(e,t,n){if(Ut(e,n.nationalNumberPattern())&&!Ut(t,n.nationalNumberPattern()))return!1;return!0}(e,o,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=Yt(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!function(e,t,n){switch(Mt(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,n)))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:r}}function Xt(e,t,n,i,r){if(!e)return{};var o;if("+"!==e[0]){var a=function(e,t,n,i){if(t){var r=new Ge(i);r.selectNumberingPlan(t||n);var o=new RegExp(r.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(Wt);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}(e,t||n,i,r);if(!a||a===e){if(t||n||i){var s=function(e,t,n,i,r){if(!(t||n||i))return{number:e};var o=t||n?Xe(t||n,r):i;if(0===e.indexOf(o)){var a=new Ge(r);a.selectNumberingPlan(t||n||i);var s=e.slice(o.length),l=Kt(s,void 0,a).nationalNumber,u=Kt(e,void 0,a).nationalNumber;if(!Ut(u,a.nationalNumberPattern())&&Ut(l,a.nationalNumberPattern())||"TOO_LONG"===Mt(u,void 0,a))return{countryCallingCode:o,number:s}}return{number:e}}(e,t,n,i,r),l=s.countryCallingCode,u=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};for(var d=new Ge(r),c=2;c-1<=3&&c<=e.length;){var h=e.slice(1,c);if(d.hasCallingCode(h))return d.selectNumberingPlan(h),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:h,number:e.slice(c)};c++}return{}}var Zt=/(\$\d)/;function Jt(e,t,n){var i=n.useInternationalFormat,r=n.withNationalPrefix,o=(n.carrierCode,n.metadata,e.replace(new RegExp(t.pattern()),i?t.internationalFormat():r&&t.nationalPrefixFormattingRule()?t.format().replace(Zt,t.nationalPrefixFormattingRule()):t.format()));return i?function(e){return e.replace(new RegExp("[".concat(lt,"]+"),"g")," ").trim()}(o):o}var en=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var tn={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function nn(e,t,n,i){n=n?function(){for(var e=1,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(;e<n.length;){if(n[e])for(var r in n[e])n[0][r]=n[e][r];e++}return n[0]}({},tn,n):tn;var r=new Ge(i);if(e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var o,a=r.countryCallingCode(),s=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return s?on(o=rn(s,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return s?(o=rn(s,null,"INTERNATIONAL",r,n),on(o="+".concat(a," ").concat(o),e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(s);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(a).concat(s),ext:e.ext});case"IDD":if(!n.fromCountry)return;var l=function(e,t,n,i,r){var o=Xe(i,r.metadata);if(o===n){var a=rn(e,t,"NATIONAL",r);return"1"===n?n+" "+a:a}var s=function(e,t,n){var i=new Ge(n);return i.selectNumberingPlan(e||t),i.defaultIDDPrefix()?i.defaultIDDPrefix():en.test(i.IDDPrefix())?i.IDDPrefix():void 0}(i,void 0,r.metadata);if(s)return"".concat(s," ").concat(n," ").concat(rn(e,null,"INTERNATIONAL",r))}(s,e.carrierCode,a,n.fromCountry,r);if(!l)return;return on(l,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function rn(e,t,n,i,r){var o,a,s=(o=i.formats(),a=e,function(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}(o,function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==a.search(t))return!1}return Ut(a,e.pattern())}));return s?Jt(e,s,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!s.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r||!1!==r.nationalPrefix,carrierCode:t,metadata:i}):e}function on(e,t,n,i){return t?i(e,t,n):e}function an(e){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(e)}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach(function(t){un(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function un(e,t,n){return(t=cn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,cn(i.key),i)}}function cn(e){var t=function(e,t){if("object"!=an(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=an(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==an(t)?t:t+""}var hn=function(){return function(e,t,n){return t&&dn(e.prototype,t),n&&dn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,i){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("First argument is required");if("string"!=typeof t)throw new TypeError("First argument must be a string");if("+"===t[0]&&!n)throw new TypeError("`metadata` argument not passed");if(De(n)&&De(n.countries)){i=n;var r=t;if(!pn.test(r))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=Xt(r,void 0,void 0,void 0,i);if(t=o.countryCallingCode,!(n=o.number))throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw new TypeError("`nationalNumber` argument must be a string");Ye(i);var a=zt(t,i),s=a.country,l=a.callingCode;this.country=s,this.countryCallingCode=l,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return i}},[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:Qt(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){void 0===t&&(t={});var i=new Ge(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(e.countryCallingCode)}}if(i.possibleLengths())return Lt(e.phone||e.nationalNumber,i);if(e.countryCallingCode&&i.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(e,t,n){t=t||{};var i=new Ge(n);return i.selectNumberingPlan(e.country||e.countryCallingCode),i.hasTypes()?void 0!==Ft(e,t,i.metadata):Ut(t.v2?e.nationalNumber:e.phone,i.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new Ge(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Ft(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return nn(this,e,t?ln(ln({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])}(),pn=/^\+\d+$/,fn="(["+st+"]|[\\-\\.\\(\\)]?)",gn=new RegExp("^\\+"+fn+"*["+st+"]"+fn+"*$","g"),mn=new RegExp("^("+("["+st+"]+((\\-)*["+st+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+st+"])*")+"\\.?$","g"),yn="tel:",bn=";phone-context=";function vn(e,t){var n,i=t.extractFormattedPhoneNumber,r=function(e){var t=e.indexOf(bn);if(t<0)return null;var n=t+15;if(n>=e.length)return"";var i=e.indexOf(";",n);return i>=0?e.substring(n,i):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(gn.test(e)||mn.test(e))}(r))throw new yt("NOT_A_NUMBER");if(null===r)n=i(e)||"";else{n="","+"===r.charAt(0)&&(n+=r);var o,a=e.indexOf(yn);o=a>=0?a+4:0;var s=e.indexOf(bn);n+=e.substring(o,s)}var l=n.indexOf(";isub=");if(l>0&&(n=n.substring(0,l)),""!==n)return n}var wn=new RegExp("[++"+st+"]"),Cn=new RegExp("[^"+st+"#]+$");function xn(e,t,n){t=t||{};var i=new Ge(n);if(t.defaultCountry&&!i.hasCountry(t.defaultCountry)){if(t.v2)throw new yt("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){var i=vn(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>250){if(n)throw new yt("TOO_LONG");return}if(!1===t)return e;var i=e.search(wn);if(i<0)return;return e.slice(i).replace(Cn,"")}(e,n,t)}});if(!i)return{};if(!function(e){return e.length>=2&&St.test(e)}(i))return function(e){return xt.test(e)}(i)?{error:"TOO_SHORT"}:{};var r=function(e){var t=e.search(At);if(t<0)return{};for(var n=e.slice(0,t),i=e.match(At),r=1;r<i.length;){if(i[r])return{number:n,ext:i[r]};r++}}(i);if(r.ext)return r;return{number:i}}(e,t.v2,t.extract),o=r.number,a=r.ext,s=r.error;if(!o){if(t.v2){if("TOO_SHORT"===s)throw new yt("TOO_SHORT");throw new yt("NOT_A_NUMBER")}return{}}var l=function(e,t,n,i){var r,o=Xt(Ot(e),void 0,t,n,i.metadata),a=o.countryCallingCodeSource,s=o.countryCallingCode,l=o.number;if(s)i.selectNumberingPlan(s);else{if(!l||!t&&!n)return{};t?(r=t,i.selectNumberingPlan(t),s=i.numberingPlan.callingCode()):(i.selectNumberingPlan(n),s=n)}if(!l)return{countryCallingCodeSource:a,countryCallingCode:s};var u=Kt(Ot(l),void 0,i),d=u.nationalNumber,c=u.carrierCode,h=Yt(s,{nationalNumber:d,metadata:i});h&&(r=h,"001"===h||i.selectNumberingPlan(r));return{country:r,countryCallingCode:s,countryCallingCodeSource:a,nationalNumber:d,carrierCode:c}}(o,t.defaultCountry,t.defaultCallingCode,i),u=l.country,d=l.nationalNumber,c=l.countryCallingCode,h=l.countryCallingCodeSource,p=l.carrierCode;if(!i.hasSelectedNumberingPlan()){if(t.v2)throw new yt("INVALID_COUNTRY");return{}}if(!d||d.length<2){if(t.v2)throw new yt("TOO_SHORT");return{}}if(d.length>17){if(t.v2)throw new yt("TOO_LONG");return{}}if(t.v2){var f=new hn(c,d,i.metadata);return u&&(f.country=u),p&&(f.carrierCode=p),a&&(f.ext=a),f.__countryCallingCodeSource=h,f}var g=!!(t.extended?i.hasSelectedNumberingPlan():u)&&Ut(d,i.nationalNumberPattern());return t.extended?{country:u,countryCallingCode:c,carrierCode:p,valid:g,possible:!!g||!(!0!==t.extended||!i.possibleLengths()||!Lt(d,i)),phone:d,ext:a}:g?function(e,t,n){var i={country:e,phone:t};n&&(i.ext=n);return i}(u,d,a):{}}function $n(e){return $n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$n(e)}function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach(function(t){En(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function En(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=$n(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=$n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(e){return Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tn(e)}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach(function(t){On(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function On(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Tn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e,t,n){var i;t&&t.defaultCountry&&(i=t.defaultCountry,!n.countries.hasOwnProperty(i))&&(t=_n(_n({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return xn(e,An(An({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof yt))throw e}}function In(){var e=at(arguments);return Pn(e.text,e.options,e.metadata)}function Nn(){return Ie(In,arguments)}const Mn="US",Dn=new Set(et()),Ln=e=>{const t=null==e?void 0:e.toUpperCase();return t&&Dn.has(t)?t:Mn},Un=["US","CA","MX","GB"],Rn=(()=>{const e=(()=>{try{return"function"==typeof Intl.DisplayNames?new Intl.DisplayNames(["en"],{type:"region"}):null}catch{return null}})();return et().map(t=>{var n;const i=null!==(n=null==e?void 0:e.of(t))&&void 0!==n?n:t,r=(e=>String.fromCodePoint(...[...e].map(e=>e.charCodeAt(0)+127397)))(t),o=function(){return Ie(Xe,arguments)}(t);return{value:t,label:`${r} +${o} – ${i}`,compactLabel:`${r} +${o}`,countryName:i}}).sort((e,t)=>{const n=Un.indexOf(e.value),i=Un.indexOf(t.value);return-1!==n||-1!==i?-1===n?1:-1===i?-1:n-i:e.countryName.localeCompare(t.countryName,"en")})})(),Bn=(e,t=Mn)=>{const n=Ln(t),i=Nn(e,n);if(null==i?void 0:i.isValid())return e.trim().startsWith("+")?i.formatInternational():i.formatNational();if(!e.trim().startsWith("+")&&("US"===n||"CA"===n))return Hn(e);const r=e.replace(/\D/g,"").substring(0,15);return e.trim().startsWith("+")?`+${r}`:r},jn=(e,t=Mn)=>{var n;const i=Ln(t);if(!e.trim().startsWith("+"))return i;const r=Nn(e,i);return null!==(n=null==r?void 0:r.country)&&void 0!==n?n:i},Fn=(e,t=Mn)=>{const n=Nn(e,Ln(t));return(null==n?void 0:n.isValid())?n.number:null},Hn=e=>{const t=e.replace(/\D/g,"").substring(0,10),n=t.substring(0,3),i=t.substring(3,6),r=t.substring(6,10);return t.length>5?`(${n}) ${i}-${r}`:t.length>2?`(${n}) ${i}`:t.length>0?`(${n}`:""},Gn=e=>{const t=(""+e).replace(/\D/g,"").match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);if(t){return[t[1]?"+1 ":"","(",t[2],") ",t[3],"-",t[4]].join("")}return e},zn=e=>{const t=e.keyCode;return e.shiftKey||35===t||36===t||8===t||9===t||13===t||46===t||t>36&&t<41||(e.ctrlKey||e.metaKey)&&(65===t||67===t||76===t||86===t||88===t||90===t)};var Qn=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Wn=class extends oe{constructor(){super(...arguments),this.country=null,this.value="",this.invalid=!1,this.selectedCountry="US"}willUpdate(e){e.has("country")&&(this.selectedCountry=Ln(this.country))}get e164(){return Fn(this.value,this.selectedCountry)}get isValid(){return null!==this.e164}dispatchPhoneChange(){this.dispatchEvent(new CustomEvent("phone-change",{bubbles:!0,composed:!0,detail:{country:this.selectedCountry,e164:this.e164,formattedValue:this.value,isValid:this.isValid}}))}setFormattedInputValue(e,t,n){const i=e.selectionStart,r=null===i?0:t.slice(i).replace(/\D/g,"").length;this.value=Bn(t,n),e.value=this.value;let o=0===i?0:this.value.length,a=r;for(;a>0&&o>0;)o-=1,/\d/.test(this.value[o])&&(a-=1);e.setSelectionRange(o,o)}handleInput(e){const t=e.target,n=jn(t.value,this.selectedCountry);this.selectedCountry=n,this.setFormattedInputValue(t,t.value,n),this.dispatchPhoneChange()}handleCountryChange(e){const t=this.selectedCountry;this.selectedCountry=e.target.value;const n=((e,t=Mn)=>{var n;const i=Nn(e,Ln(t));return null!==(n=null==i?void 0:i.nationalNumber)&&void 0!==n?n:e.replace(/\D/g,"")})(this.value,t);this.value=Bn(n,this.selectedCountry),this.dispatchPhoneChange()}handleKeydown(e){const t=e.target;if("Backspace"!==e.key||null===t.selectionStart||t.selectionEnd!==t.selectionStart||0===t.selectionStart||1===t.selectionStart&&t.value.startsWith("+")||/\d/.test(t.value[t.selectionStart-1]))return;const n=t.value.slice(0,t.selectionStart).replace(/\D/g,""),i=t.value.slice(t.selectionStart).replace(/\D/g,""),r=t.value.trimStart().startsWith("+")?"+":"",o=n.slice(0,-1),a=`${r}${o}${i}`,s=r.length+o.length,l=jn(a,this.selectedCountry);e.preventDefault(),t.setSelectionRange(s,s),this.selectedCountry=l,this.setFormattedInputValue(t,a,l),this.dispatchPhoneChange()}handleBlur(){this.dispatchEvent(new Event("phone-blur",{bubbles:!0,composed:!0}))}get selectedCountryLabel(){var e,t;return null!==(t=null===(e=Rn.find(e=>e.value===this.selectedCountry))||void 0===e?void 0:e.compactLabel)&&void 0!==t?t:this.selectedCountry}render(){return R`
|
|
55
|
+
`,Pe={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[0-79]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Ie(e,t){var n=Array.prototype.slice.call(t);return n.push(Pe),e.apply(this,n)}function Me(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),i=t[0].split("."),r=0;r<3;r++){var o=Number(n[r]),a=Number(i[r]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Ne={}.constructor;function De(e){return null!=e&&e.constructor===Ne}var Le=/^\d+$/;function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}function Re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Be(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Fe(i.key),i)}}function je(e,t,n){return t&&Be(e.prototype,t),n&&Be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fe(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ue(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}var He=" ext. ",Ge=function(){return je(function e(t){Re(this,e),Ye(t),this.metadata=t,Ze.call(this,t)},[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){var n,i,r;if(e&&(r=e,Le.test(r)?i=e:n=e),t&&(i=t),n&&"001"!==n){var o=this.getCountryMetadata(n);if(!o)throw new Error("Unknown country: ".concat(n));this.numberingPlan=new ze(o,this)}else if(i){if(!this.hasCallingCode(i))throw new Error("Unknown calling code: ".concat(i));this.numberingPlan=new ze(this.getNumberingPlanMetadata(i),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var i=this.countryCallingCodes()[e];if(i&&1===i.length&&"001"===i[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),ze=function(){return je(function e(t,n){Re(this,e),this.globalMetadataObject=n,this.metadata=t,Ze.call(this,n.metadata)},[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return t.map(function(t){return new Qe(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&Ve(this.types(),e))return new qe(Ve(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?He:this.metadata[13]||He}}])}(),Qe=function(){return je(function e(t,n){Re(this,e),this._format=t,this.metadata=n},[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||We.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),We=/^\(?\$1\)?$/,qe=function(){return je(function e(t,n){Re(this,e),this.type=t,this.metadata=n},[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function Ve(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Ye(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!De(e)||!De(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(De(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Ke(e)+": "+e,"."))}var Ke=function(e){return Ue(e)};function Xe(e,t){var n=new Ge(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Ze(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Me(t,"1.2.0")?this.v2=!0:-1===Me(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function Je(e){return new Ge(e).getCountries()}function et(){return Ie(Je,arguments)}function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function it(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=tt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(e,t)||function(){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 ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function at(e){var t,n,i,r=rt(Array.prototype.slice.call(e),4),o=r[0],a=r[1],s=r[2],l=r[3];if("string"!=typeof o)throw new TypeError("A text for parsing must be a string.");if(t=o,a&&"string"!=typeof a){if(!De(a))throw new Error("Invalid second argument: ".concat(a));s?(n=a,i=s):i=a}else l?(n=s,i=l):(n=void 0,i=s),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach(function(t){it(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({defaultCountry:a},n));return{text:t,options:n,metadata:i}}var st="0-90-9٠-٩۰-۹",lt="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~");function ut(e){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ut(e)}function dt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ct(i.key),i)}}function ct(e){var t=function(e,t){if("object"!=ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=ut(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ut(t)?t:t+""}function ht(e,t,n){return t=mt(t),function(e,t){if(t&&("object"==ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ft()?Reflect.construct(t,n||[],mt(e).constructor):t.apply(e,n))}function pt(e){var t="function"==typeof Map?new Map:void 0;return pt=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ft())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&>(r,n.prototype),r}(e,arguments,mt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gt(n,e)},pt(e)}function ft(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ft=function(){return!!e})()}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gt(e,t)}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(e)}var yt=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=ht(this,e,[t]),Object.setPrototypeOf(n,e.prototype),n.name=n.constructor.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&>(e,t)}(e,pt(Error)),function(e,t,n){return t&&dt(e.prototype,t),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),bt=function(e){return"([".concat(st,"]{1,").concat(e,"})")};function vt(e){var t="[ \\t,]*",n="[:\\..]?[ \\t,-]*",i="#?",r="[ \\t]*";return";ext="+bt("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+bt("20")+i)+"|"+(t+"(?:[xx##~~]|int|int)"+n+bt("9")+i)+"|"+("[- ]+"+bt("6")+"#")+"|"+(r+"(?:,{2}|;)"+n+bt("15")+i)+"|"+(r+"(?:,)+"+n+bt("9")+i)}var wt="["+st+"]{2}",Ct="[++]{0,1}(?:["+lt+"]*["+st+"]){3,}["+lt+st+"]*",xt=new RegExp("^[++]{0,1}(?:["+lt+"]*["+st+"]){1,2}$","i"),$t=Ct+"(?:"+vt()+")?",St=new RegExp("^"+wt+"$|^"+$t+"$","i");var At=new RegExp("(?:"+vt()+")$","i");var Et={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Tt(e){return Et[e]}function kt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _t(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[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.")}function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Ot(e){for(var t,n="",i=kt(e.split(""));!(t=i()).done;){n+=Pt(t.value,n)||""}return n}function Pt(e,t,n){return"+"===e?t?void("function"==typeof n&&n("end")):"+":Tt(e)}function It(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Mt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[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.")}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Nt(e,t,n){return Dt(e,void 0,t,n)}function Dt(e,t,n,i){n&&(i=new Ge(i.metadata)).selectNumberingPlan(n);var r=i.type(t),o=r&&r.possibleLengths()||i.possibleLengths();if(!o)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!i.type("FIXED_LINE"))return Dt(e,"MOBILE",n,i);var a=i.type("MOBILE");a&&(o=function(e,t){for(var n,i=e.slice(),r=It(t);!(n=r()).done;){var o=n.value;e.indexOf(o)<0&&i.push(o)}return i.sort(function(e,t){return e-t})}(o,a.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var s=e.length,l=o[0];return l===s?"IS_POSSIBLE":l>s?"TOO_SHORT":o[o.length-1]<s?"TOO_LONG":o.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Lt(e,t){return"IS_POSSIBLE"===Nt(e,void 0,t)}function Ut(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Rt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[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.")}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var jt=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Ft(e,t,n){if(t=t||{},e.country||e.countryCallingCode){var i=new Ge(n);i.selectNumberingPlan(e.country||e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Ut(r,i.nationalNumberPattern())){if(Ht(r,"FIXED_LINE",i))return i.type("MOBILE")&&""===i.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":i.type("MOBILE")?Ht(r,"MOBILE",i)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var o,a=Rt(jt);!(o=a()).done;){var s=o.value;if(Ht(r,s,i))return s}}}}function Ht(e,t,n){var i=n.type(t);return!(!i||!i.pattern())&&(!(i.possibleLengths()&&i.possibleLengths().indexOf(e.length)<0)&&Ut(e,i.pattern()))}var Gt=/^[A-Z]{2}$/;function zt(e,t){var n,i,r,o=new Ge(t);return r=e,Gt.test(r)?(n=e,o.selectNumberingPlan(n),i=o.countryCallingCode()):i=e,{country:n,callingCode:i}}function Qt(e,t,n){var i=new Ge(n).getCountryCodesForCallingCode(e);return i?i.filter(function(e){return function(e,t,n){var i=new Ge(n);return i.selectNumberingPlan(t),i.numberingPlan.possibleLengths().indexOf(e.length)>=0}(t,e,n)}):[]}var Wt=new RegExp("(["+st+"])");function qt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[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.")}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Yt(e,t){var n=t.nationalNumber,i=t.metadata;var r=i.getCountryCodesForCallingCode(e);if(r)return 1===r.length?r[0]:function(e,t,n){for(var i,r=new Ge(n),o=qt(t);!(i=o()).done;){var a=i.value;if(r.selectNumberingPlan(a),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return a}else if(Ft({phone:e,country:a},void 0,r.metadata))return a}}(n,r,i.metadata)}function Kt(e,t,n){var i=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),i=n.exec(e);if(i){var r,o,a,s=i.length-1,l=s>0&&i[s];if(t.nationalPrefixTransformRule()&&l)r=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(o=i[1]);else{var u=i[0];r=e.slice(u.length),l&&(o=i[1])}if(l){var d=e.indexOf(i[1]);e.slice(0,d)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=i[0];return{nationalNumber:r,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}(e,n),r=i.carrierCode,o=i.nationalNumber;if(o!==e){if(!function(e,t,n){if(Ut(e,n.nationalNumberPattern())&&!Ut(t,n.nationalNumberPattern()))return!1;return!0}(e,o,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=Yt(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n})),!function(e,t,n){switch(Nt(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,n)))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:r}}function Xt(e,t,n,i,r){if(!e)return{};var o;if("+"!==e[0]){var a=function(e,t,n,i){if(t){var r=new Ge(i);r.selectNumberingPlan(t||n);var o=new RegExp(r.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(Wt);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}(e,t||n,i,r);if(!a||a===e){if(t||n||i){var s=function(e,t,n,i,r){if(!(t||n||i))return{number:e};var o=t||n?Xe(t||n,r):i;if(0===e.indexOf(o)){var a=new Ge(r);a.selectNumberingPlan(t||n||i);var s=e.slice(o.length),l=Kt(s,void 0,a).nationalNumber,u=Kt(e,void 0,a).nationalNumber;if(!Ut(u,a.nationalNumberPattern())&&Ut(l,a.nationalNumberPattern())||"TOO_LONG"===Nt(u,void 0,a))return{countryCallingCode:o,number:s}}return{number:e}}(e,t,n,i,r),l=s.countryCallingCode,u=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};for(var d=new Ge(r),c=2;c-1<=3&&c<=e.length;){var h=e.slice(1,c);if(d.hasCallingCode(h))return d.selectNumberingPlan(h),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:h,number:e.slice(c)};c++}return{}}var Zt=/(\$\d)/;function Jt(e,t,n){var i=n.useInternationalFormat,r=n.withNationalPrefix,o=(n.carrierCode,n.metadata,e.replace(new RegExp(t.pattern()),i?t.internationalFormat():r&&t.nationalPrefixFormattingRule()?t.format().replace(Zt,t.nationalPrefixFormattingRule()):t.format()));return i?function(e){return e.replace(new RegExp("[".concat(lt,"]+"),"g")," ").trim()}(o):o}var en=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var tn={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function nn(e,t,n,i){n=n?function(){for(var e=1,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(;e<n.length;){if(n[e])for(var r in n[e])n[0][r]=n[e][r];e++}return n[0]}({},tn,n):tn;var r=new Ge(i);if(e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var o,a=r.countryCallingCode(),s=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return s?on(o=rn(s,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return s?(o=rn(s,null,"INTERNATIONAL",r,n),on(o="+".concat(a," ").concat(o),e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(s);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(a).concat(s),ext:e.ext});case"IDD":if(!n.fromCountry)return;var l=function(e,t,n,i,r){var o=Xe(i,r.metadata);if(o===n){var a=rn(e,t,"NATIONAL",r);return"1"===n?n+" "+a:a}var s=function(e,t,n){var i=new Ge(n);return i.selectNumberingPlan(e||t),i.defaultIDDPrefix()?i.defaultIDDPrefix():en.test(i.IDDPrefix())?i.IDDPrefix():void 0}(i,void 0,r.metadata);if(s)return"".concat(s," ").concat(n," ").concat(rn(e,null,"INTERNATIONAL",r))}(s,e.carrierCode,a,n.fromCountry,r);if(!l)return;return on(l,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function rn(e,t,n,i,r){var o,a,s=(o=i.formats(),a=e,function(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}(o,function(e){if(e.leadingDigitsPatterns().length>0){var t=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==a.search(t))return!1}return Ut(a,e.pattern())}));return s?Jt(e,s,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!s.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r||!1!==r.nationalPrefix,carrierCode:t,metadata:i}):e}function on(e,t,n,i){return t?i(e,t,n):e}function an(e){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(e)}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach(function(t){un(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function un(e,t,n){return(t=cn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,cn(i.key),i)}}function cn(e){var t=function(e,t){if("object"!=an(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=an(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==an(t)?t:t+""}var hn=function(){return function(e,t,n){return t&&dn(e.prototype,t),n&&dn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,i){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("First argument is required");if("string"!=typeof t)throw new TypeError("First argument must be a string");if("+"===t[0]&&!n)throw new TypeError("`metadata` argument not passed");if(De(n)&&De(n.countries)){i=n;var r=t;if(!pn.test(r))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=Xt(r,void 0,void 0,void 0,i);if(t=o.countryCallingCode,!(n=o.number))throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw new TypeError("`nationalNumber` argument must be a string");Ye(i);var a=zt(t,i),s=a.country,l=a.callingCode;this.country=s,this.countryCallingCode=l,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return i}},[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:Qt(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){void 0===t&&(t={});var i=new Ge(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");i.selectNumberingPlan(e.countryCallingCode)}}if(i.possibleLengths())return Lt(e.phone||e.nationalNumber,i);if(e.countryCallingCode&&i.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(e,t,n){t=t||{};var i=new Ge(n);return i.selectNumberingPlan(e.country||e.countryCallingCode),i.hasTypes()?void 0!==Ft(e,t,i.metadata):Ut(t.v2?e.nationalNumber:e.phone,i.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new Ge(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Ft(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return nn(this,e,t?ln(ln({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])}(),pn=/^\+\d+$/,fn="(["+st+"]|[\\-\\.\\(\\)]?)",gn=new RegExp("^\\+"+fn+"*["+st+"]"+fn+"*$","g"),mn=new RegExp("^("+("["+st+"]+((\\-)*["+st+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+st+"])*")+"\\.?$","g"),yn="tel:",bn=";phone-context=";function vn(e,t){var n,i=t.extractFormattedPhoneNumber,r=function(e){var t=e.indexOf(bn);if(t<0)return null;var n=t+15;if(n>=e.length)return"";var i=e.indexOf(";",n);return i>=0?e.substring(n,i):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(gn.test(e)||mn.test(e))}(r))throw new yt("NOT_A_NUMBER");if(null===r)n=i(e)||"";else{n="","+"===r.charAt(0)&&(n+=r);var o,a=e.indexOf(yn);o=a>=0?a+4:0;var s=e.indexOf(bn);n+=e.substring(o,s)}var l=n.indexOf(";isub=");if(l>0&&(n=n.substring(0,l)),""!==n)return n}var wn=new RegExp("[++"+st+"]"),Cn=new RegExp("[^"+st+"#]+$");function xn(e,t,n){t=t||{};var i=new Ge(n);if(t.defaultCountry&&!i.hasCountry(t.defaultCountry)){if(t.v2)throw new yt("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){var i=vn(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>250){if(n)throw new yt("TOO_LONG");return}if(!1===t)return e;var i=e.search(wn);if(i<0)return;return e.slice(i).replace(Cn,"")}(e,n,t)}});if(!i)return{};if(!function(e){return e.length>=2&&St.test(e)}(i))return function(e){return xt.test(e)}(i)?{error:"TOO_SHORT"}:{};var r=function(e){var t=e.search(At);if(t<0)return{};for(var n=e.slice(0,t),i=e.match(At),r=1;r<i.length;){if(i[r])return{number:n,ext:i[r]};r++}}(i);if(r.ext)return r;return{number:i}}(e,t.v2,t.extract),o=r.number,a=r.ext,s=r.error;if(!o){if(t.v2){if("TOO_SHORT"===s)throw new yt("TOO_SHORT");throw new yt("NOT_A_NUMBER")}return{}}var l=function(e,t,n,i){var r,o=Xt(Ot(e),void 0,t,n,i.metadata),a=o.countryCallingCodeSource,s=o.countryCallingCode,l=o.number;if(s)i.selectNumberingPlan(s);else{if(!l||!t&&!n)return{};t?(r=t,i.selectNumberingPlan(t),s=i.numberingPlan.callingCode()):(i.selectNumberingPlan(n),s=n)}if(!l)return{countryCallingCodeSource:a,countryCallingCode:s};var u=Kt(Ot(l),void 0,i),d=u.nationalNumber,c=u.carrierCode,h=Yt(s,{nationalNumber:d,metadata:i});h&&(r=h,"001"===h||i.selectNumberingPlan(r));return{country:r,countryCallingCode:s,countryCallingCodeSource:a,nationalNumber:d,carrierCode:c}}(o,t.defaultCountry,t.defaultCallingCode,i),u=l.country,d=l.nationalNumber,c=l.countryCallingCode,h=l.countryCallingCodeSource,p=l.carrierCode;if(!i.hasSelectedNumberingPlan()){if(t.v2)throw new yt("INVALID_COUNTRY");return{}}if(!d||d.length<2){if(t.v2)throw new yt("TOO_SHORT");return{}}if(d.length>17){if(t.v2)throw new yt("TOO_LONG");return{}}if(t.v2){var f=new hn(c,d,i.metadata);return u&&(f.country=u),p&&(f.carrierCode=p),a&&(f.ext=a),f.__countryCallingCodeSource=h,f}var g=!!(t.extended?i.hasSelectedNumberingPlan():u)&&Ut(d,i.nationalNumberPattern());return t.extended?{country:u,countryCallingCode:c,carrierCode:p,valid:g,possible:!!g||!(!0!==t.extended||!i.possibleLengths()||!Lt(d,i)),phone:d,ext:a}:g?function(e,t,n){var i={country:e,phone:t};n&&(i.ext=n);return i}(u,d,a):{}}function $n(e){return $n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$n(e)}function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach(function(t){En(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function En(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=$n(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=$n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(e){return Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tn(e)}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach(function(t){On(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function On(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Tn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e,t,n){var i;t&&t.defaultCountry&&(i=t.defaultCountry,!n.countries.hasOwnProperty(i))&&(t=_n(_n({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return xn(e,An(An({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof yt))throw e}}function In(){var e=at(arguments);return Pn(e.text,e.options,e.metadata)}function Mn(){return Ie(In,arguments)}const Nn="US",Dn=new Set(et()),Ln=e=>{const t=null==e?void 0:e.toUpperCase();return t&&Dn.has(t)?t:Nn},Un=["US","CA","MX","GB"],Rn=(()=>{const e=(()=>{try{return"function"==typeof Intl.DisplayNames?new Intl.DisplayNames(["en"],{type:"region"}):null}catch{return null}})();return et().map(t=>{var n;const i=null!==(n=null==e?void 0:e.of(t))&&void 0!==n?n:t,r=(e=>String.fromCodePoint(...[...e].map(e=>e.charCodeAt(0)+127397)))(t),o=function(){return Ie(Xe,arguments)}(t);return{value:t,label:`${r} +${o} – ${i}`,compactLabel:`${r} +${o}`,countryName:i}}).sort((e,t)=>{const n=Un.indexOf(e.value),i=Un.indexOf(t.value);return-1!==n||-1!==i?-1===n?1:-1===i?-1:n-i:e.countryName.localeCompare(t.countryName,"en")})})(),Bn=(e,t=Nn)=>{const n=Ln(t),i=Mn(e,n);if(null==i?void 0:i.isValid())return e.trim().startsWith("+")?i.formatInternational():i.formatNational();if(!e.trim().startsWith("+")&&("US"===n||"CA"===n))return Hn(e);const r=e.replace(/\D/g,"").substring(0,15);return e.trim().startsWith("+")?`+${r}`:r},jn=(e,t=Nn)=>{var n;const i=Ln(t);if(!e.trim().startsWith("+"))return i;const r=Mn(e,i);return null!==(n=null==r?void 0:r.country)&&void 0!==n?n:i},Fn=(e,t=Nn)=>{const n=Mn(e,Ln(t));return(null==n?void 0:n.isValid())?n.number:null},Hn=e=>{const t=e.replace(/\D/g,"").substring(0,10),n=t.substring(0,3),i=t.substring(3,6),r=t.substring(6,10);return t.length>5?`(${n}) ${i}-${r}`:t.length>2?`(${n}) ${i}`:t.length>0?`(${n}`:""},Gn=e=>{const t=(""+e).replace(/\D/g,"").match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);if(t){return[t[1]?"+1 ":"","(",t[2],") ",t[3],"-",t[4]].join("")}return e},zn=e=>{const t=e.keyCode;return e.shiftKey||35===t||36===t||8===t||9===t||13===t||46===t||t>36&&t<41||(e.ctrlKey||e.metaKey)&&(65===t||67===t||76===t||86===t||88===t||90===t)};var Qn=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Wn=class extends oe{constructor(){super(...arguments),this.country=null,this.value="",this.invalid=!1,this.selectedCountry="US"}willUpdate(e){e.has("country")&&(this.selectedCountry=Ln(this.country))}get e164(){return Fn(this.value,this.selectedCountry)}get isValid(){return null!==this.e164}dispatchPhoneChange(){this.dispatchEvent(new CustomEvent("phone-change",{bubbles:!0,composed:!0,detail:{country:this.selectedCountry,e164:this.e164,formattedValue:this.value,isValid:this.isValid}}))}setFormattedInputValue(e,t,n){const i=e.selectionStart,r=null===i?0:t.slice(i).replace(/\D/g,"").length;this.value=Bn(t,n),e.value=this.value;let o=0===i?0:this.value.length,a=r;for(;a>0&&o>0;)o-=1,/\d/.test(this.value[o])&&(a-=1);e.setSelectionRange(o,o)}handleInput(e){const t=e.target,n=jn(t.value,this.selectedCountry);this.selectedCountry=n,this.setFormattedInputValue(t,t.value,n),this.dispatchPhoneChange()}handleCountryChange(e){const t=this.selectedCountry;this.selectedCountry=e.target.value;const n=((e,t=Nn)=>{var n;const i=Mn(e,Ln(t));return null!==(n=null==i?void 0:i.nationalNumber)&&void 0!==n?n:e.replace(/\D/g,"")})(this.value,t);this.value=Bn(n,this.selectedCountry),this.dispatchPhoneChange()}handleKeydown(e){const t=e.target;if("Backspace"!==e.key||null===t.selectionStart||t.selectionEnd!==t.selectionStart||0===t.selectionStart||1===t.selectionStart&&t.value.startsWith("+")||/\d/.test(t.value[t.selectionStart-1]))return;const n=t.value.slice(0,t.selectionStart).replace(/\D/g,""),i=t.value.slice(t.selectionStart).replace(/\D/g,""),r=t.value.trimStart().startsWith("+")?"+":"",o=n.slice(0,-1),a=`${r}${o}${i}`,s=r.length+o.length,l=jn(a,this.selectedCountry);e.preventDefault(),t.setSelectionRange(s,s),this.selectedCountry=l,this.setFormattedInputValue(t,a,l),this.dispatchPhoneChange()}handleBlur(){this.dispatchEvent(new Event("phone-blur",{bubbles:!0,composed:!0}))}get selectedCountryLabel(){var e,t;return null!==(t=null===(e=Rn.find(e=>e.value===this.selectedCountry))||void 0===e?void 0:e.compactLabel)&&void 0!==t?t:this.selectedCountry}render(){return R`
|
|
56
56
|
<div
|
|
57
57
|
class=${ye({"phone-input-container":!0,"phone-input-container--invalid":this.invalid})}
|
|
58
58
|
>
|
|
@@ -258,7 +258,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
258
258
|
.subtitle {
|
|
259
259
|
font-weight: 400;
|
|
260
260
|
}
|
|
261
|
-
`],ei([ue({type:String})],ni.prototype,"heading",void 0),ei([ue({type:String})],ni.prototype,"subtitle",void 0),ei([ue({type:Boolean})],ni.prototype,"selected",void 0),ei([ue({attribute:!1})],ni.prototype,"onClick",void 0),ei([ue({attribute:!0})],ni.prototype,"primaryColor",void 0),ei([ue({attribute:!0})],ni.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),ni=ei([se("tour-type-option")],ni);var si={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const li=function(e,t,n){var i,r=si[e];return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function ui(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const di={date:ui({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ui({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ui({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var ci={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const hi=function(e,t,n,i){return ci[e]};function pi(e){return function(t,n){var i,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[s]}return i[e.argumentCallback?e.argumentCallback(t):t]}}const fi={ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:pi({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:pi({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:pi({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:pi({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:pi({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function gi(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var a,s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var mi,yi={ordinalNumber:(mi={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(mi.matchPattern);if(!n)return null;var i=n[0],r=e.match(mi.parsePattern);if(!r)return null;var o=mi.valueCallback?mi.valueCallback(r[0]):r[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(i.length)}}),era:gi({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:gi({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:gi({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:gi({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:gi({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const bi={code:"en-US",formatDistance:li,formatLong:di,formatRelative:hi,localize:fi,match:yi,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vi(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function wi(e,t){ii(2,arguments);var n=ri(e).getTime(),i=vi(t);return new Date(n+i)}function Ci(e){ii(1,arguments);var t=ri(e),n=t.getUTCDay(),i=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function xi(e){ii(1,arguments);var t=ri(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var r=Ci(i),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Ci(o);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function $i(e){ii(1,arguments);var t=ri(e),n=Ci(t).getTime()-function(e){ii(1,arguments);var t=xi(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Ci(n)}(t).getTime();return Math.round(n/6048e5)+1}function Si(e,t){ii(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.weekStartsOn,o=null==r?0:vi(r),a=null==n.weekStartsOn?o:vi(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=ri(e),l=s.getUTCDay(),u=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function Ai(e,t){ii(1,arguments);var n=ri(e),i=n.getUTCFullYear(),r=t||{},o=r.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:vi(a),l=null==r.firstWeekContainsDate?s:vi(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(i+1,0,l),u.setUTCHours(0,0,0,0);var d=Si(u,t),c=new Date(0);c.setUTCFullYear(i,0,l),c.setUTCHours(0,0,0,0);var h=Si(c,t);return n.getTime()>=d.getTime()?i+1:n.getTime()>=h.getTime()?i:i-1}function Ei(e,t){ii(1,arguments);var n=ri(e),i=Si(n,t).getTime()-function(e,t){ii(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.firstWeekContainsDate,o=null==r?1:vi(r),a=null==n.firstWeekContainsDate?o:vi(n.firstWeekContainsDate),s=Ai(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),Si(l,t)}(n,t).getTime();return Math.round(i/6048e5)+1}function Ti(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}const ki={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Ti("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Ti(n+1,2)},d:function(e,t){return Ti(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Ti(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ti(e.getUTCHours(),t.length)},m:function(e,t){return Ti(e.getUTCMinutes(),t.length)},s:function(e,t){return Ti(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return Ti(Math.floor(i*Math.pow(10,n-3)),t.length)}};var _i="midnight",Oi="noon",Pi="morning",Ii="afternoon",Ni="evening",Mi="night",Di={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return ki.y(e,t)},Y:function(e,t,n,i){var r=Ai(e,i),o=r>0?r:1-r;return"YY"===t?Ti(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Ti(o,t.length)},R:function(e,t){return Ti(xi(e),t.length)},u:function(e,t){return Ti(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Ti(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Ti(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return ki.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return Ti(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var r=Ei(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):Ti(r,t.length)},I:function(e,t,n){var i=$i(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):Ti(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ki.d(e,t)},D:function(e,t,n){var i=function(e){ii(1,arguments);var t=ri(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=n-t.getTime();return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):Ti(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ti(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ti(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return Ti(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,r=e.getUTCHours();switch(i=12===r?Oi:0===r?_i:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,r=e.getUTCHours();switch(i=r>=17?Ni:r>=12?Ii:r>=4?Pi:Mi,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return ki.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ki.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):Ti(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):Ti(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ki.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ki.s(e,t)},S:function(e,t){return ki.S(e,t)},X:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ui(r);case"XXXX":case"XX":return Ri(r);default:return Ri(r,":")}},x:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ui(r);case"xxxx":case"xx":return Ri(r);default:return Ri(r,":")}},O:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Li(r,":");default:return"GMT"+Ri(r,":")}},z:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Li(r,":");default:return"GMT"+Ri(r,":")}},t:function(e,t,n,i){var r=i._originalDate||e;return Ti(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,i){return Ti((i._originalDate||e).getTime(),t.length)}};function Li(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+Ti(o,2)}function Ui(e,t){return e%60==0?(e>0?"-":"+")+Ti(Math.abs(e)/60,2):Ri(e,t)}function Ri(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+Ti(Math.floor(r/60),2)+n+Ti(r%60,2)}const Bi=Di;function ji(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Fi(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Hi={p:Fi,P:function(e,t){var n,i=e.match(/(P+)(p+)?/)||[],r=i[1],o=i[2];if(!o)return ji(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",ji(r,t)).replace("{{time}}",Fi(o,t))}};const Gi=Hi;function zi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Qi=["D","DD"],Wi=["YY","YYYY"];function qi(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var Vi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Yi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ki=/^'([^]*?)'?$/,Xi=/''/g,Zi=/[a-zA-Z]/;function Ji(e,t,n){ii(2,arguments);var i=String(t),r=n||{},o=r.locale||bi,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:vi(a),l=null==r.firstWeekContainsDate?s:vi(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,d=null==u?0:vi(u),c=null==r.weekStartsOn?d:vi(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=ri(e);if(!ai(h))throw new RangeError("Invalid time value");var p=function(e,t){return ii(2,arguments),wi(e,-vi(t))}(h,zi(h)),f={firstWeekContainsDate:l,weekStartsOn:c,locale:o,_originalDate:h};return i.match(Yi).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,Gi[t])(e,o.formatLong,f):e}).join("").match(Vi).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return n.match(Ki)[1].replace(Xi,"'");var a,s=Bi[i];if(s)return r.useAdditionalWeekYearTokens||(a=n,-1===Wi.indexOf(a))||qi(n,t,e),!r.useAdditionalDayOfYearTokens&&function(e){return-1!==Qi.indexOf(e)}(n)&&qi(n,t,e),s(p,n,o.localize,f);if(i.match(Zi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}const er=(e,t)=>new Date(e,t+1,0).getDate(),tr=(e,t)=>new Date(e,t,1).getDay(),nr=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ir=["January","February","March","April","May","June","July","August","September","October","November","December"];function rr(e){ii(1,arguments);var t=ri(e);return t.setHours(0,0,0,0),t}function or(e,t){ii(2,arguments);var n=rr(e),i=rr(t);return n.getTime()===i.getTime()}var ar=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let sr=class extends oe{constructor(){var e;super(...arguments),this._selectedDate=this.defaultDate,this.now=new Date,this._monthShown=this.defaultMonth&&-1!==ir.indexOf(this.defaultMonth)?ir.indexOf(this.defaultMonth):this.now.getMonth(),this.yearShown=null!==(e=this.defaultYear)&&void 0!==e?e:this.now.getFullYear()}set selectedDate(e){const t=this._selectedDate;this._selectedDate=e,this.requestUpdate("selectedDate",t),this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}get selectedDate(){return this._selectedDate}updated(e){if(e.has("defaultDate")){const t=e.get("defaultDate");if(!this.defaultDate)return void(this.selectedDate=void 0);t&&or(this.defaultDate,t)||(this.selectedDate=this.defaultDate)}}set monthShown(e){const t=this._monthShown;12===e?(this._monthShown=0,this.yearShown++):-1===e?(this._monthShown=11,this.yearShown--):this._monthShown=e,this.requestUpdate("monthShown",t)}get monthShown(){return this._monthShown}render(){const e=er(this.yearShown,this.monthShown),t=nr[tr(this.yearShown,this.monthShown)],n=(i=this.yearShown,r=this.monthShown,er(r>0?i:i-1,(e=>e>0?e-1:11)(r)));var i,r;const o=nr[((e,t)=>(tr(e,t)+er(e,t)%7-1)%7)(this.yearShown,this.monthShown)],a=[];if("Sunday"!==t){for(let e=nr.indexOf(t);e>0;e--)a.push(n+1-e)}const s=new Array(e).fill(null).map((e,t)=>t+1),l=[];if("Saturday"!==o){const e=[...nr].reverse().indexOf(o);for(let t=1;t<=e;t++)l.push(t)}const u=[...a,...s,...l].map((e,t)=>{var n,i,r;const o=this.yearShown<this.now.getFullYear()||this.yearShown===this.now.getFullYear()&&this.monthShown<this.now.getMonth()||this.yearShown===this.now.getFullYear()&&this.monthShown===this.now.getMonth()&&e<this.now.getDate(),l=t<a.length||t>=a.length+s.length,u=!l&&this.now.getMonth()===this.monthShown&&this.now.getDate()===e,d=!!this.selectedDate&&!l&&this.monthShown===function(e){return ii(1,arguments),ri(e).getMonth()}(this.selectedDate)&&this.yearShown===function(e){return ii(1,arguments),ri(e).getFullYear()}(this.selectedDate)&&e===function(e){return ii(1,arguments),ri(e).getDate()}(this.selectedDate),c=Ji(new Date(this.yearShown,this.monthShown,e),"y-MM-dd"),h=!(null===(n=this.availabilities)||void 0===n?void 0:n[c])||0===(null===(r=null===(i=this.availabilities)||void 0===i?void 0:i[c])||void 0===r?void 0:r.length),p=t<a.length,f=t>=a.length+s.length,g=Ji(new Date(this.yearShown,this.monthShown+(p?-1:f?1:0),e),"MMMM d, y");return R`<button
|
|
261
|
+
`],ei([ue({type:String})],ni.prototype,"heading",void 0),ei([ue({type:String})],ni.prototype,"subtitle",void 0),ei([ue({type:Boolean})],ni.prototype,"selected",void 0),ei([ue({attribute:!1})],ni.prototype,"onClick",void 0),ei([ue({attribute:!0})],ni.prototype,"primaryColor",void 0),ei([ue({attribute:!0})],ni.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),ni=ei([se("tour-type-option")],ni);var si={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const li=function(e,t,n){var i,r=si[e];return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function ui(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const di={date:ui({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ui({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ui({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var ci={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const hi=function(e,t,n,i){return ci[e]};function pi(e){return function(t,n){var i,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[s]}return i[e.argumentCallback?e.argumentCallback(t):t]}}const fi={ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:pi({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:pi({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:pi({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:pi({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:pi({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function gi(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var a,s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var mi,yi={ordinalNumber:(mi={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(mi.matchPattern);if(!n)return null;var i=n[0],r=e.match(mi.parsePattern);if(!r)return null;var o=mi.valueCallback?mi.valueCallback(r[0]):r[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(i.length)}}),era:gi({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:gi({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:gi({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:gi({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:gi({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const bi={code:"en-US",formatDistance:li,formatLong:di,formatRelative:hi,localize:fi,match:yi,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vi(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function wi(e,t){ii(2,arguments);var n=ri(e).getTime(),i=vi(t);return new Date(n+i)}function Ci(e){ii(1,arguments);var t=ri(e),n=t.getUTCDay(),i=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function xi(e){ii(1,arguments);var t=ri(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var r=Ci(i),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Ci(o);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function $i(e){ii(1,arguments);var t=ri(e),n=Ci(t).getTime()-function(e){ii(1,arguments);var t=xi(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Ci(n)}(t).getTime();return Math.round(n/6048e5)+1}function Si(e,t){ii(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.weekStartsOn,o=null==r?0:vi(r),a=null==n.weekStartsOn?o:vi(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=ri(e),l=s.getUTCDay(),u=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function Ai(e,t){ii(1,arguments);var n=ri(e),i=n.getUTCFullYear(),r=t||{},o=r.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:vi(a),l=null==r.firstWeekContainsDate?s:vi(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(i+1,0,l),u.setUTCHours(0,0,0,0);var d=Si(u,t),c=new Date(0);c.setUTCFullYear(i,0,l),c.setUTCHours(0,0,0,0);var h=Si(c,t);return n.getTime()>=d.getTime()?i+1:n.getTime()>=h.getTime()?i:i-1}function Ei(e,t){ii(1,arguments);var n=ri(e),i=Si(n,t).getTime()-function(e,t){ii(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.firstWeekContainsDate,o=null==r?1:vi(r),a=null==n.firstWeekContainsDate?o:vi(n.firstWeekContainsDate),s=Ai(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),Si(l,t)}(n,t).getTime();return Math.round(i/6048e5)+1}function Ti(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}const ki={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Ti("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Ti(n+1,2)},d:function(e,t){return Ti(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Ti(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ti(e.getUTCHours(),t.length)},m:function(e,t){return Ti(e.getUTCMinutes(),t.length)},s:function(e,t){return Ti(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return Ti(Math.floor(i*Math.pow(10,n-3)),t.length)}};var _i="midnight",Oi="noon",Pi="morning",Ii="afternoon",Mi="evening",Ni="night",Di={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return ki.y(e,t)},Y:function(e,t,n,i){var r=Ai(e,i),o=r>0?r:1-r;return"YY"===t?Ti(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Ti(o,t.length)},R:function(e,t){return Ti(xi(e),t.length)},u:function(e,t){return Ti(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Ti(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Ti(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return ki.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return Ti(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var r=Ei(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):Ti(r,t.length)},I:function(e,t,n){var i=$i(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):Ti(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ki.d(e,t)},D:function(e,t,n){var i=function(e){ii(1,arguments);var t=ri(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=n-t.getTime();return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):Ti(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ti(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ti(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return Ti(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,r=e.getUTCHours();switch(i=12===r?Oi:0===r?_i:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,r=e.getUTCHours();switch(i=r>=17?Mi:r>=12?Ii:r>=4?Pi:Ni,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return ki.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ki.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):Ti(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):Ti(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ki.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ki.s(e,t)},S:function(e,t){return ki.S(e,t)},X:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ui(r);case"XXXX":case"XX":return Ri(r);default:return Ri(r,":")}},x:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ui(r);case"xxxx":case"xx":return Ri(r);default:return Ri(r,":")}},O:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Li(r,":");default:return"GMT"+Ri(r,":")}},z:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Li(r,":");default:return"GMT"+Ri(r,":")}},t:function(e,t,n,i){var r=i._originalDate||e;return Ti(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,i){return Ti((i._originalDate||e).getTime(),t.length)}};function Li(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+Ti(o,2)}function Ui(e,t){return e%60==0?(e>0?"-":"+")+Ti(Math.abs(e)/60,2):Ri(e,t)}function Ri(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+Ti(Math.floor(r/60),2)+n+Ti(r%60,2)}const Bi=Di;function ji(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Fi(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Hi={p:Fi,P:function(e,t){var n,i=e.match(/(P+)(p+)?/)||[],r=i[1],o=i[2];if(!o)return ji(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",ji(r,t)).replace("{{time}}",Fi(o,t))}};const Gi=Hi;function zi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Qi=["D","DD"],Wi=["YY","YYYY"];function qi(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var Vi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Yi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ki=/^'([^]*?)'?$/,Xi=/''/g,Zi=/[a-zA-Z]/;function Ji(e,t,n){ii(2,arguments);var i=String(t),r=n||{},o=r.locale||bi,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:vi(a),l=null==r.firstWeekContainsDate?s:vi(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,d=null==u?0:vi(u),c=null==r.weekStartsOn?d:vi(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=ri(e);if(!ai(h))throw new RangeError("Invalid time value");var p=function(e,t){return ii(2,arguments),wi(e,-vi(t))}(h,zi(h)),f={firstWeekContainsDate:l,weekStartsOn:c,locale:o,_originalDate:h};return i.match(Yi).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,Gi[t])(e,o.formatLong,f):e}).join("").match(Vi).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return n.match(Ki)[1].replace(Xi,"'");var a,s=Bi[i];if(s)return r.useAdditionalWeekYearTokens||(a=n,-1===Wi.indexOf(a))||qi(n,t,e),!r.useAdditionalDayOfYearTokens&&function(e){return-1!==Qi.indexOf(e)}(n)&&qi(n,t,e),s(p,n,o.localize,f);if(i.match(Zi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}const er=(e,t)=>new Date(e,t+1,0).getDate(),tr=(e,t)=>new Date(e,t,1).getDay(),nr=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ir=["January","February","March","April","May","June","July","August","September","October","November","December"];function rr(e){ii(1,arguments);var t=ri(e);return t.setHours(0,0,0,0),t}function or(e,t){ii(2,arguments);var n=rr(e),i=rr(t);return n.getTime()===i.getTime()}var ar=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let sr=class extends oe{constructor(){var e;super(...arguments),this._selectedDate=this.defaultDate,this.now=new Date,this._monthShown=this.defaultMonth&&-1!==ir.indexOf(this.defaultMonth)?ir.indexOf(this.defaultMonth):this.now.getMonth(),this.yearShown=null!==(e=this.defaultYear)&&void 0!==e?e:this.now.getFullYear()}set selectedDate(e){const t=this._selectedDate;this._selectedDate=e,this.requestUpdate("selectedDate",t),this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}get selectedDate(){return this._selectedDate}updated(e){if(e.has("defaultDate")){const t=e.get("defaultDate");if(!this.defaultDate)return void(this.selectedDate=void 0);t&&or(this.defaultDate,t)||(this.selectedDate=this.defaultDate)}}set monthShown(e){const t=this._monthShown;12===e?(this._monthShown=0,this.yearShown++):-1===e?(this._monthShown=11,this.yearShown--):this._monthShown=e,this.requestUpdate("monthShown",t)}get monthShown(){return this._monthShown}render(){const e=er(this.yearShown,this.monthShown),t=nr[tr(this.yearShown,this.monthShown)],n=(i=this.yearShown,r=this.monthShown,er(r>0?i:i-1,(e=>e>0?e-1:11)(r)));var i,r;const o=nr[((e,t)=>(tr(e,t)+er(e,t)%7-1)%7)(this.yearShown,this.monthShown)],a=[];if("Sunday"!==t){for(let e=nr.indexOf(t);e>0;e--)a.push(n+1-e)}const s=new Array(e).fill(null).map((e,t)=>t+1),l=[];if("Saturday"!==o){const e=[...nr].reverse().indexOf(o);for(let t=1;t<=e;t++)l.push(t)}const u=[...a,...s,...l].map((e,t)=>{var n,i,r;const o=this.yearShown<this.now.getFullYear()||this.yearShown===this.now.getFullYear()&&this.monthShown<this.now.getMonth()||this.yearShown===this.now.getFullYear()&&this.monthShown===this.now.getMonth()&&e<this.now.getDate(),l=t<a.length||t>=a.length+s.length,u=!l&&this.now.getMonth()===this.monthShown&&this.now.getDate()===e,d=!!this.selectedDate&&!l&&this.monthShown===function(e){return ii(1,arguments),ri(e).getMonth()}(this.selectedDate)&&this.yearShown===function(e){return ii(1,arguments),ri(e).getFullYear()}(this.selectedDate)&&e===function(e){return ii(1,arguments),ri(e).getDate()}(this.selectedDate),c=Ji(new Date(this.yearShown,this.monthShown,e),"y-MM-dd"),h=!(null===(n=this.availabilities)||void 0===n?void 0:n[c])||0===(null===(r=null===(i=this.availabilities)||void 0===i?void 0:i[c])||void 0===r?void 0:r.length),p=t<a.length,f=t>=a.length+s.length,g=Ji(new Date(this.yearShown,this.monthShown+(p?-1:f?1:0),e),"MMMM d, y");return R`<button
|
|
262
262
|
?disabled=${o||h||l}
|
|
263
263
|
aria-label=${g}
|
|
264
264
|
aria-pressed=${d?"true":"false"}
|
|
@@ -604,7 +604,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
604
604
|
min-width: 80px;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
`,dr([ue({attribute:!1})],hr.prototype,"options",void 0),dr([ue({type:Boolean})],hr.prototype,"selectedDateExists",void 0),dr([ue({attribute:!0})],hr.prototype,"timezone",void 0),dr([ue({attribute:!0})],hr.prototype,"defaultSelectedTime",void 0),dr([de()],hr.prototype,"selected",void 0),dr([ue({attribute:!1})],hr.prototype,"selectedTime",null),hr=dr([se("time-picker")],hr);var pr=n(4058),fr=n.n(pr),gr=n(4124),mr=n.n(gr),yr=n(6449),br=n.n(yr),vr=n(3805),wr=n.n(vr),Cr=n(9752),xr=n.n(Cr);function $r(e,t){ii(2,arguments);var n=ri(e),i=ri(t);return n.getTime()<i.getTime()}const Sr="https://app.meetelise.com",Ar=rr(new Date),Er=(e,t)=>xr()(e,(e,n,i,r)=>{e[(null==t?void 0:t.includes(i))||br()(r)?i:fr()(String(i))]=wr()(n)?Er(n,t):n}),Tr=(e,t)=>xr()(e,(e,n,i,r)=>{e[(null==t?void 0:t.includes(i))||br()(r)?i:mr()(String(i))]=wr()(n)?Tr(n,t):n}),kr="(max-width: 767px)",_r="(max-height: 400px)",Or=()=>window.matchMedia(kr).matches||window.matchMedia(_r).matches,Pr=e=>{const t=window.matchMedia(kr),n=window.matchMedia(_r),i=()=>e(t.matches||n.matches);return t.addEventListener("change",i),n.addEventListener("change",i),()=>{t.removeEventListener("change",i),n.removeEventListener("change",i)}},Ir=(e,t)=>$r(function(e,t){return ii(2,arguments),wi(e,36e5*vi(t))}(e,t),Date.now()),
|
|
607
|
+
`,dr([ue({attribute:!1})],hr.prototype,"options",void 0),dr([ue({type:Boolean})],hr.prototype,"selectedDateExists",void 0),dr([ue({attribute:!0})],hr.prototype,"timezone",void 0),dr([ue({attribute:!0})],hr.prototype,"defaultSelectedTime",void 0),dr([de()],hr.prototype,"selected",void 0),dr([ue({attribute:!1})],hr.prototype,"selectedTime",null),hr=dr([se("time-picker")],hr);var pr=n(4058),fr=n.n(pr),gr=n(4124),mr=n.n(gr),yr=n(6449),br=n.n(yr),vr=n(3805),wr=n.n(vr),Cr=n(9752),xr=n.n(Cr);function $r(e,t){ii(2,arguments);var n=ri(e),i=ri(t);return n.getTime()<i.getTime()}const Sr="https://app.meetelise.com",Ar=rr(new Date),Er=(e,t)=>xr()(e,(e,n,i,r)=>{e[(null==t?void 0:t.includes(i))||br()(r)?i:fr()(String(i))]=wr()(n)?Er(n,t):n}),Tr=(e,t)=>xr()(e,(e,n,i,r)=>{e[(null==t?void 0:t.includes(i))||br()(r)?i:mr()(String(i))]=wr()(n)?Tr(n,t):n}),kr="(max-width: 767px)",_r="(max-height: 400px)",Or=()=>window.matchMedia(kr).matches||window.matchMedia(_r).matches,Pr=e=>{const t=window.matchMedia(kr),n=window.matchMedia(_r),i=()=>e(t.matches||n.matches);return t.addEventListener("change",i),n.addEventListener("change",i),()=>{t.removeEventListener("change",i),n.removeEventListener("change",i)}},Ir=(e,t)=>$r(function(e,t){return ii(2,arguments),wi(e,36e5*vi(t))}(e,t),Date.now()),Mr=e=>{try{const t=document.cookie.split("; ").map(e=>e.split("=")).find(([t])=>t===e);return t?decodeURIComponent(t[1]):null}catch(e){return null}},Nr=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),Dr=e=>{if(!e)return"";return(e.includes(" ")?e:e.replace(/([A-Z])/g," $1").trim()).split(" ").map(e=>e.length>1&&e===e.toUpperCase()?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")},Lr=(e,t=0)=>Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:t,maximumFractionDigits:t}).format(null!=e?e:0);var Ur=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Rr=class extends oe{constructor(){super(),this.options=[],this.placeholder="Select",this.activeOption=null,this.isOpen=!1,this.activeOptionIndex=null,this.searchTerm="",this.focus=()=>{this.selectInput.focus()},this.closeSelect=()=>{this.isOpen=!1,this.searchTerm="",this.activeOption=null,this.activeOptionIndex=null},this.openSelect=()=>{this.isOpen=!0},this.toggleSelect=()=>{this.isOpen?this.closeSelect():(this.openSelect(),this.selectInput.focus())},this.setSelectedOption=(e,t=!0)=>{this.value!==e.value?this.value=e.value:this.value=void 0,t&&this.closeSelect(),this.value?this.meSelect.style.color="rgba(32, 32, 32, 1)":this.meSelect.style.color="rgba(32, 32, 32, 0.5)",this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},this.handleKeydown=(e,t)=>n=>{("string"==typeof e&&n.key===e||"object"==typeof e&&e.includes(n.key))&&t()},this.handleSearchInput=e=>{this.searchTerm=e.target.value,this.activeOption=null,this.activeOptionIndex=null},this.firstUpdated=()=>{this.value&&this.meSelect&&(this.meSelect.style.color="rgba(32, 32, 32, 1)")},this.listboxId=`me-select-listbox-${Math.random().toString(36).slice(2,9)}`,this.optionId=e=>`${this.listboxId}-opt-${e}`,document.addEventListener("click",e=>{e.composedPath().includes(this)||this.closeSelect()})}get visibleOptions(){const e=this.searchTerm.trim().toLowerCase();return e?this.options.filter(t=>t.label.toLowerCase().includes(e)):this.options}adjustScrollToActiveOption(){if(null!=this.activeOptionIndex){const e=this.renderRoot.querySelectorAll(".option")[this.activeOptionIndex];e&&e.scrollIntoView({block:"nearest"})}}render(){var e,t;const n=this.activeOptionIndex,i=null!==(e=this.placeholder)&&void 0!==e?e:"Select",r=this.visibleOptions,o=null===(t=this.options.find(e=>e.value===this.value))||void 0===t?void 0:t.label,a=this.isOpen?this.searchTerm:o||this.value||"";return R`
|
|
608
608
|
<div id="outer-select-container">
|
|
609
609
|
<div
|
|
610
610
|
id="select"
|
|
@@ -771,14 +771,14 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
771
771
|
</pattern>
|
|
772
772
|
<image id="image0_999_1441" width="256" height="256" xlink:href="data:image/png;base64,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"/>
|
|
773
773
|
</defs>
|
|
774
|
-
</svg>`),ko={fontSize:"10px",paddingTop:"4px"},_o={color:"#4287f5"},Oo={margin:"0 0 4px"},Po=["UT","ME"],Io="https://eliseai.com/canada-policy",
|
|
774
|
+
</svg>`),ko={fontSize:"10px",paddingTop:"4px"},_o={color:"#4287f5"},Oo={margin:"0 0 4px"},Po=["UT","ME"],Io="https://eliseai.com/canada-policy",Mo=e=>"CA"===e,No="https://eliseai.com/fr/canada-policy",Do="https://eliseai.com/fr/msgterms",Lo=e=>"QC"===(null==e?void 0:e.trim().toUpperCase()),Uo=(e,t)=>R`<a
|
|
775
775
|
style=${qn(_o)}
|
|
776
776
|
href=${e}
|
|
777
777
|
target="_blank"
|
|
778
778
|
rel="noopener noreferrer"
|
|
779
779
|
>${t}</a
|
|
780
|
-
>`,Ro=(e,t,n=!1)=>{const[i,r]=((e,t)=>{const n=R`${Uo(
|
|
781
|
-
ainsi qu’à ces ${Uo(Do,"Conditions générales")}`,i=R`${Uo(
|
|
780
|
+
>`,Ro=(e,t,n=!1)=>{const[i,r]=((e,t)=>{const n=R`${Uo(No,"Politique relative à la protection des renseignements personnels")}
|
|
781
|
+
ainsi qu’à ces ${Uo(Do,"Conditions générales")}`,i=R`${Uo(No,"privacy policy")}
|
|
782
782
|
and these ${Uo(Do,"terms and conditions")}`;return"textUs"===e?[R`Lorsque vous fournissez votre numéro de téléphone et que vous cliquez
|
|
783
783
|
sur Envoyer (send), vous consentez à recevoir des messages électroniques
|
|
784
784
|
et des appels récurrents de nature commerciale de la part de
|
|
@@ -838,7 +838,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
838
838
|
${"textUs"===e||n?R`<p style=${o}>
|
|
839
839
|
Msg freq varies. Text STOP to opt-out of messages. Text HELP for
|
|
840
840
|
assistance.
|
|
841
|
-
</p>`:""}`},Bo="currentConsentId",jo=(e,t,n,i,r)=>{const o=
|
|
841
|
+
</p>`:""}`},Bo="currentConsentId",jo=(e,t,n,i,r)=>{const o=Mo(r)?Io:t;return"avb"!==e||localStorage.getItem(null!=n?n:"")?"mill-creek"===e?R`<div class="legal-confirmation-inner-container">
|
|
842
842
|
<div>${To()}</div>
|
|
843
843
|
<div>
|
|
844
844
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
@@ -934,7 +934,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
934
934
|
I agree
|
|
935
935
|
</button>
|
|
936
936
|
</div>
|
|
937
|
-
`},Fo=({orgSlug:e,buildingState:t,buildingCountry:n,type:i,customAdditionalDisclaimer:r})=>{const o=
|
|
937
|
+
`},Fo=({orgSlug:e,buildingState:t,buildingCountry:n,type:i,customAdditionalDisclaimer:r})=>{const o=Mo(n)?Io:Ho(e),a=r?R`<br />${Ao(r)}`:R``;return"utilities"===i?R` <p class="utilities-disclaimer-inner">
|
|
938
938
|
By interacting with this system, you consent to
|
|
939
939
|
<a href=${o} target="_blank" rel="noopener noreferrer">
|
|
940
940
|
this privacy policy</a
|
|
@@ -972,7 +972,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
972
972
|
${a}
|
|
973
973
|
</p>
|
|
974
974
|
</li>
|
|
975
|
-
`:
|
|
975
|
+
`:Mo(n)?R`
|
|
976
976
|
<li class="disclaimer-container disclaimer-message">
|
|
977
977
|
<p class="disclaimer-inner">
|
|
978
978
|
By interacting with this system, you consent to
|
|
@@ -1002,7 +1002,7 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
|
|
|
1002
1002
|
</li>
|
|
1003
1003
|
`:R``},Ho=e=>"amli"===e?"https://www.amli.com/privacy-policy":"http://bit.ly/me_privacy_policy",Go=({phoneNumberInput:e,emailInput:t,orgLegalName:n,orgSlug:i,country:r,buildingState:o,clickingButtonText:a="send"})=>{if(Lo(o))return R`<div style=${qn(ko)}>
|
|
1004
1004
|
${Ro("schedule tour"===a?"scheduleTour":"emailUs",n,!!e)}
|
|
1005
|
-
</div>`;const s=
|
|
1005
|
+
</div>`;const s=Mo(r)?Io:"http://bit.ly/me_privacy_policy";return(t||e)&&Mo(r)?"schedule tour"===a?R` <div style=${qn(ko)}>
|
|
1006
1006
|
By providing your number and/or email address and clicking schedule
|
|
1007
1007
|
tour, you consent to receive recurring commercial electronic messages
|
|
1008
1008
|
and calls from or on behalf of ${n} at the provided number
|
|
@@ -1553,7 +1553,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
1553
1553
|
gap: 12px;
|
|
1554
1554
|
align-items: center;
|
|
1555
1555
|
}
|
|
1556
|
-
`;class Qo{constructor(e,t,n,i){this.org=e,this.building=t,this.chatId=n,this.incomingProcessedLeadSource=i,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}ping(e){var t;fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:Wo(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const Wo=()=>{var e,t,n,i,r,o;try{const i=new URL(window.location.href).searchParams,r=null!==(n=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==n?n:null,o=i.get("switch_cls[id]"),a=i.get("ilm"),s=i.get("utm_source");return{entrataCampaignSource:o,realpageCampaignSource:a,utmCampaignSource:s,yardiCampaignSource:r,bozzutoAdSource:Nr("bozzuto_ad_source")}}catch(e){const t=document.createElement("iframe");if(t.style.display="none",document.body.appendChild(t),!t.contentWindow)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const n=t.contentWindow.URL;if(!n)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const a=new n(window.location.href).searchParams,s=null!==(o=null===(r=null===(i=window.RCTPCampaign)||void 0===i?void 0:i.CampaignDetails)||void 0===r?void 0:r.Source)&&void 0!==o?o:null;return{entrataCampaignSource:a.get("switch_cls[id]"),realpageCampaignSource:a.get("ilm"),utmCampaignSource:a.get("utm_source"),yardiCampaignSource:s,bozzutoAdSource:Nr("bozzuto_ad_source")}}};var qo;!function(e){e.error="error",e.info="info",e.warn="warn"}(qo||(qo={}));const Vo=async({logType:e,buildingSlug:t,orgSlug:n,logTitle:o,logData:a,error:s})=>{var l;if(s instanceof i.AxiosError&&403===(null===(l=s.response)||void 0===l?void 0:l.status))return;await r().post("https://app.meetelise.com/platformApi/webchat/logging",{...a},{headers:{"Content-Type":"application/json","building-slug":null!=t?t:"","org-slug":null!=n?n:"","log-type":null!=e?e:qo.error,"log-title":o.toUpperCase().replace(/\s/g,"_")}})},Yo=async({params:e,sampleRate:t})=>{try{if(Math.random()>=t)return;await r().post("https://app.meetelise.com/platformApi/webchat/log/signal",{...e,website_origin:window.location.origin,website_search:window.location.search})}catch(e){}};var Ko=n(2193),Xo=n.n(Ko);function Zo(e){return"avb"===e?"AVB Company Website":"windsor"===e?"Windsorcommunities.com":"property-website"}const Jo=class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.leadSourceParams=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,n,i,r)=>{const o=bo();if(this.leadSourceInput={websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:o,referrer:document.referrer,parsedUtmSource:o?o.utm_source:null,campaignSources:Object.values(Wo()).filter(e=>e)},i)return;if(!r){const t=this.getLeadSourceBodyIfValid(e);if(t){if(!Ir(t.timestamp,24*this.localStorageTTLDays))return{...t,timestamp:qr(t.timestamp)}}}const a={leadSource:t,leadSourceParams:this.leadSourceParams,leadId:n,buildingSlug:e,timestamp:Br(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(a)),{...a,timestamp:qr(a.timestamp)}},this.getLeadSourceBodyIfValid=e=>{const t=localStorage.getItem("com.elise.webchat.leadsource.slug="+e);if(t)try{const n=JSON.parse(t);if(n.buildingSlug===e&&n.leadSource&&n.leadId&&n.timestamp&&!Ir(qr(n.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=n.leadSourceInput}catch(e){}return n}}catch(e){return null}return null},this.resetLeadSource=()=>{if(!this.buildingSlug)return!1;const e="com.elise.webchat.leadsource.slug="+this.buildingSlug;return localStorage.removeItem(e),!0}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:t,referrer:n,campaignSources:i}){const o={query_params:t,building_slug:e,referrer:n,campaign_sources:i};try{return(await r().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,o)).data}catch(e){return null}}async checkAndHandleForLogLeadSource({webchatAction:e,stateId:t}){var n,i,o,a,s,l,u;try{if(!this.chatId)return null;if(!this.orgSlug)return null;let d=null,c=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(d=e),c=null===(n=window.dataLayer.find(e=>{var t;return"gtagApiGet"==(null===(t=e.value)||void 0===t?void 0:t.event)}))||void 0===n?void 0:n.value}}catch(e){}return await r().post(`${this.apiHost}/platformApi/webchat/log/lead-source`,{chat_id:this.chatId,webchat_action:e,state_id:t,building_id:this.buildingId,org_slug:this.orgSlug,building_slug:this.buildingSlug,website_origin:null===(i=this.leadSourceInput)||void 0===i?void 0:i.websiteOrigin,website_search:null===(o=this.leadSourceInput)||void 0===o?void 0:o.websiteSearch,query_parameters:null===(a=this.leadSourceInput)||void 0===a?void 0:a.queryParameters,referrer:null===(s=this.leadSourceInput)||void 0===s?void 0:s.referrer,parsed_utm_source:null===(l=this.leadSourceInput)||void 0===l?void 0:l.parsedUtmSource,campaign_sources:null===(u=this.leadSourceInput)||void 0===u?void 0:u.campaignSources,lead_source_output:this.leadSource,google_analytics_client_id:Xo()(d)?null:d,extras:null!=c?c:null}),null}catch(e){return null}}async getCookieValue(e){try{const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.startsWith(e+"=")){return i.substring((e+"=").length,-1===i.indexOf(";")?void 0:i.indexOf(";"))}}return null}catch(e){}return null}async generateUserLeadSource({leadId:e,orgSlug:t,buildingSlug:n}){var i,r,o;try{const a={queryParams:bo(),buildingSlug:n,referrer:document.referrer,campaignSources:Wo()};let s=!1;const l=n?this.getLeadSourceBodyIfValid(n):null;if(l){if(!["test-company","daf00bd2-1ecb-482c-b6f4-e1c5511a01be"].includes(t))return this.leadSource=l.leadSource,this.leadSourceParams=null!==(r=l.leadSourceParams)&&void 0!==r?r:null,this.leadSource;{const e=await this.fetchCurrentParsedLeadSource(a);if(!e)return this.leadSource=l.leadSource,this.leadSourceParams=null!==(i=l.leadSourceParams)&&void 0!==i?i:null,this.leadSource;this.leadSource=e,s=!0}}const u=await this.fetchCurrentParsedLeadSource(a);if(this.leadSource=u,this.buildingId=null,this.orgSlug=t,this.buildingSlug=n,n&&!u){const e=this.getLeadSourceBodyIfValid(n);if(e)return this.leadSource=e.leadSource,this.leadSourceParams=null!==(o=e.leadSourceParams)&&void 0!==o?o:null,this.leadSource}if(n){const t=!!u&&u.length>0;this.updateLeadSourceLocalStorage(n,u,e,!t&&!s,s)}return u}catch(e){}return null}},ea=async(e,t=!1)=>{const n=`https://app.meetelise.com/eliseCrmApi/building/${e}/scheduling_status?observe_dynamic_scheduling=${t}`;try{return(await r().get(n)).data.is_enabled}catch(e){return!1}};var ta,na,ia;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(ta||(ta={})),function(e){e.UNKNOWN="UNKNOWN",e.SELF_GUIDED="SELF_GUIDED",e.VIRTUAL_SHOWING="VIRTUAL_SHOWING",e.WITH_AGENT="WITH_AGENT",e.MEDIA_TOUR="MEDIA_TOUR",e.OPEN_HOUSE_STUDIO="OPEN_HOUSE_STUDIO",e.OPEN_HOUSE_1BR="OPEN_HOUSE_1BR",e.OPEN_HOUSE_2BR="OPEN_HOUSE_2BR",e.OPEN_HOUSE_3BR="OPEN_HOUSE_3BR",e.OPEN_HOUSE_4BR="OPEN_HOUSE_4BR",e.OPEN_HOUSE_5BR="OPEN_HOUSE_5BR"}(na||(na={})),function(e){e.LINK="link",e.CLIENT_SCHEDULED="client_scheduled",e.SCHEDULED_BY_ME_MANAGED_BY_ME="scheduled_by_ME_managed_by_ME",e.SCHEDULED_BY_ME_MANAGED_BY_CLIENT="scheduled_by_ME_managed_by_client",e.SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE="scheduled_by_ME_managed_by_concierge"}(ia||(ia={}));const ra=(e,t)=>"link"===(null==t?void 0:t.toLowerCase());async function oa(e,t){const n=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${t}/v2`,i=await r().get(n);return aa(i.data)}const aa=e=>{var t;try{e.welcomeMessage=sa(null!==(t=e.welcomeMessage)&&void 0!==t?t:"",e.userFirstName)}catch(e){}return e},sa=(e,t)=>e.replace(/elise/gi,t);var la=n(7035),ua=n(6353);function da(e,t,n){var i=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return i.formatToParts?function(e,t){for(var n=e.formatToParts(t),i=n.length-1;i>=0;--i)if("timeZoneName"===n[i].type)return n[i].value}(i,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(n);return i?i[0].substr(1):""}(i,t)}function ca(e,t){var n=function(e){if(!pa[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;pa[e]=n?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return pa[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),i=[],r=0;r<n.length;r++){var o=ha[n[r].type];o>=0&&(i[o]=parseInt(n[r].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[i[3],i[1],i[2],i[4],i[5],i[6]]}(n,e)}var ha={year:0,month:1,day:2,hour:3,minute:4,second:5};var pa={};function fa(e,t,n,i,r,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(i,r,o,a),s}var ga=36e5,ma={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ya(e,t,n){var i,r,o;if(!e)return 0;if(i=ma.timezoneZ.exec(e))return 0;if(i=ma.timezoneHH.exec(e))return va(o=parseInt(i[1],10))?-o*ga:NaN;if(i=ma.timezoneHHMM.exec(e)){o=parseInt(i[2],10);var a=parseInt(i[3],10);return va(o,a)?(r=Math.abs(o)*ga+6e4*a,"+"===i[1]?-r:r):NaN}if(function(e){if(wa[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),wa[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return fa(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=ba(s,e),u=n?l:function(e,t,n){var i=e.getTime(),r=i-t,o=ba(new Date(r),n);if(t===o)return t;r-=o-t;var a=ba(new Date(r),n);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-u}return NaN}function ba(e,t){var n=ca(e,t),i=fa(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),r=e.getTime(),o=r%1e3;return i-(r-=o>=0?o:1e3+o)}function va(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var wa={};var Ca={X:function(e,t,n,i){var r=xa(i.timeZone,e);if(0===r)return"Z";switch(t){case"X":return Aa(r);case"XXXX":case"XX":return Sa(r);default:return Sa(r,":")}},x:function(e,t,n,i){var r=xa(i.timeZone,e);switch(t){case"x":return Aa(r);case"xxxx":case"xx":return Sa(r);default:return Sa(r,":")}},O:function(e,t,n,i){var r=xa(i.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+$a(o,2)}(r,":");default:return"GMT"+Sa(r,":")}},z:function(e,t,n,i){switch(t){case"z":case"zz":case"zzz":return da("short",e,i);default:return da("long",e,i)}}};function xa(e,t){var n=e?ya(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function $a(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}function Sa(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+$a(Math.floor(r/60),2)+n+$a(Math.floor(r%60),2)}function Aa(e,t){return e%60==0?(e>0?"-":"+")+$a(Math.abs(e)/60,2):Sa(e,t)}const Ea=Ca;var Ta=n(9784),ka=n(9720);var _a=36e5,Oa=6e4,Pa={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Ia(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},i=null==n.additionalDigits?2:Ta(n.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,n={},i=Pa.dateTimePattern.exec(e);i?(n.date=i[1],t=i[3]):(i=Pa.datePattern.exec(e))?(n.date=i[1],t=i[2]):(n.date=null,t=e);if(t){var r=Pa.timeZone.exec(t);r?(n.time=t.replace(r[1],""),n.timeZone=r[1].trim()):n.time=t}return n}(e),o=function(e,t){var n,i=Pa.YYY[t],r=Pa.YYYYY[t];if(n=Pa.YYYY.exec(e)||r.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=Pa.YY.exec(e)||i.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(r.date,i),a=o.year,s=function(e,t){if(null===t)return null;var n,i,r,o;if(0===e.length)return(i=new Date(0)).setUTCFullYear(t),i;if(n=Pa.MM.exec(e))return i=new Date(0),Ua(t,r=parseInt(n[1],10)-1)?(i.setUTCFullYear(t,r),i):new Date(NaN);if(n=Pa.DDD.exec(e)){i=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=La(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(i.setUTCFullYear(t,0,a),i):new Date(NaN)}if(n=Pa.MMDD.exec(e)){i=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return Ua(t,r,s)?(i.setUTCFullYear(t,r,s),i):new Date(NaN)}if(n=Pa.Www.exec(e))return Ra(t,o=parseInt(n[1],10)-1)?Na(t,o):new Date(NaN);if(n=Pa.WwwD.exec(e)){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return Ra(t,o,l)?Na(t,o,l):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,u=s.getTime(),d=0;if(r.time&&(d=function(e){var t,n,i;if(t=Pa.HH.exec(e))return Ba(n=parseFloat(t[1].replace(",",".")))?n%24*_a:NaN;if(t=Pa.HHMM.exec(e))return Ba(n=parseInt(t[1],10),i=parseFloat(t[2].replace(",",".")))?n%24*_a+i*Oa:NaN;if(t=Pa.HHMMSS.exec(e)){n=parseInt(t[1],10),i=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return Ba(n,i,r)?n%24*_a+i*Oa+1e3*r:NaN}return null}(r.time),isNaN(d)))return new Date(NaN);if(r.timeZone||n.timeZone){if(l=ya(r.timeZone||n.timeZone,new Date(u+d)),isNaN(l))return new Date(NaN)}else l=ka(new Date(u+d)),l=ka(new Date(u+d+l));return new Date(u+d+l)}return new Date(NaN)}function Na(e,t,n){t=t||0,n=n||0;var i=new Date(0);i.setUTCFullYear(e,0,4);var r=7*t+n+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+r),i}var Ma=[31,28,31,30,31,30,31,31,30,31,30,31],Da=[31,29,31,30,31,30,31,31,30,31,30,31];function La(e){return e%400==0||e%4==0&&e%100!=0}function Ua(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var i=La(e);if(i&&n>Da[t])return!1;if(!i&&n>Ma[t])return!1}return!0}function Ra(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function Ba(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var ja=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Fa(e,t,n,i){var r=la(i);return r.timeZone=t,r.originalDate=e,function(e,t,n){var i=String(t),r=n||{},o=i.match(ja);if(o){var a=Ia(r.originalDate||e,r);i=o.reduce(function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),i="'"===e[n-1],o=e.replace(t,"'"+Ea[t[0]](a,t,null,r)+"'");return i?o.substring(0,n-1)+o.substring(n+1):o},i)}return ua(e,i,r)}(function(e,t,n){var i=Ia(e,n),r=ya(t,i,!0),o=new Date(i.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}(e,t),n,r)}const Ha="com.eliseai.webchat.googlereserve.referral",Ga=async({buildingSlug:e})=>{try{const t=await r().get(`${Sr}/platformApi/webchat/${e}/units/summary`);if(t.data)return Er(t.data)}catch(t){Vo({logType:qo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS_SUMMARY]",logData:{error:t},error:t})}return[]};var za=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Qa=class extends oe{constructor(){super(...arguments),this.tourTypeOptions=[],this.layoutOptions=[],this.chatId="",this.buildingId=0,this.orgId=0,this.leadSourceParams=null,this.buildingSlug="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.selfGuidedTourEnabled=!1,this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.orgSlug="",this.hasDynamicSchedulingEnabled=!1,this.bedroomPreferenceRequired=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingName="",this.tourType=null,this.shouldShowTourType={[Wa.Guided]:!0,[Wa.Self]:!0,[Wa.Virtual]:!0},this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneCountry=null,this.phoneNumberIsValid=!1,this.phoneNumberHasBlurred=!1,this.availabilitiesGroupedByDay={},this.calendarTimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.waitingForAvailabilities=!0,this.mobilePageIndex=0,this.isSubmitting=!1,this.tourIsBooked=!1,this.shouldAllowScheduling=!1,this.shouldAllowScheduleLoading=!0,this.promptForReschedule=!1,this.canceledReschedule=!1,this.leadSources=[],this.orgLegalName="",this.country=null,this.buildingState=null,this.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=Vn,this.foregroundColorOnPrimaryBackgroundColor="white",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.selectedLayoutValue="",this.selectedUnitValue="",this.units=[],this.allowOccupiedUnitTours=!1,this.errorGettingAvailabilities=!1,this.centralConvoBuildings=[],this.isGeneralBuilding=!1,this.statusMessage="",this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([ea(this.buildingId,this.hasDynamicSchedulingEnabled),ao()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await ro(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),Vo({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:qo.info,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});const n=Object.values(t).every(e=>!1===e),i=!this.sgtUrl&&!this.escortedToursLink&&!this.virtualToursLink;if(n&&i)return this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,void Vo({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[Wa.Guided]:this.tourTypeOptions.map(e=>e.value).includes("WITH_AGENT")&&(t[Wa.Guided]||!!this.escortedToursLink),[Wa.Self]:this.tourTypeOptions.map(e=>e.value).includes("SELF_GUIDED")&&(t[Wa.Self]||!!this.sgtUrl),[Wa.Virtual]:this.tourTypeOptions.map(e=>e.value).includes("VIRTUAL_SHOWING")&&(t[Wa.Virtual]||!!this.virtualToursLink)};const r=1===Object.values(this.shouldShowTourType).reduce((e,t)=>!0===t?e+1:e,0);if(this._setDefaultSelectedDateAndTimes(),r&&(this.tourType=Object.keys(this.shouldShowTourType).find(e=>this.shouldShowTourType[e])),null===this.tourType)return void(this.waitingForAvailabilities=!1);this.availabilitiesGroupedByDay=await so(qa[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,Vo({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var n,i,r;const o=await ro(this.buildingId),a=null!=e?e:this._getHighestRankedTourType(o),s=a?null===(r=null===(i=null===(n=o.availability)||void 0===n?void 0:n[a])||void 0===i?void 0:i.availableTourStartTimes)||void 0===r?void 0:r.filter(e=>{if(!t)return!0;return or("string"==typeof e?qr(e):e,t)}):[],l=null==s?void 0:s[0];a&&l&&a!==Fr.Unknown&&a!==Fr.MediaTour&&(this.selectedDate=rr("string"==typeof l?qr(l):l),this.tourType=Va[a],this.selectedTime="string"==typeof l?lo(l):(e=>({datetime:Ji(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:Ji(e,"xxx")}))(l))},this._getHighestRankedTourType=e=>{var t;const n=(null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]).map(t=>{var n,i;return{tourType:t,availabilities:null===(i=null===(n=e.availability)||void 0===n?void 0:n[t])||void 0===i?void 0:i.availableTourStartTimes}}).filter(e=>{if(e.tourType===Fr.Unknown||e.tourType===Fr.MediaTour)return!1;const t=Va[e.tourType],n=this._getTourTypeOffered(t);return!!n&&(!ra(0,n)&&e.availabilities&&e.availabilities.length>0)}),i=n[0];return i?i.tourType:null},this._getTourTypeOffered=e=>e===Wa.Guided?this.escortedToursTypeOffered:e===Wa.Self?this.selfGuidedToursTypeOffered:e===Wa.Virtual?this.virtualToursTypeOffered:null,this._getUnitOptions=()=>{const e=this.selectedLayoutValue?this.units.filter(e=>Ka(10*e.numberOfBedrooms)===this.selectedLayoutValue):this.units,t=e.map(e=>({label:e.unitNumber,value:e.unitNumber}));return t},this._fetchUnits=async()=>{if(this.buildingSlug)try{this.units=await Ga({buildingSlug:this.buildingSlug})}catch(e){this.units=[],Vo({logTitle:"ERROR_LOADING_UNITS_FOR_TOUR_SCHEDULER",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this.firstUpdated=async()=>{if(await this._fetchCentralConvoBuildings(),this.isGeneralBuilding)return this.waitingForAvailabilities=!1,this.shouldAllowScheduleLoading=!1,void(this.statusMessage="Please select a building to see tour availabilities.");await this._loadForCurrentBuilding()},this._loadForCurrentBuilding=async()=>{try{await ro(this.buildingId)}catch(e){}await Promise.all([this._setAvailabilities().then(async()=>{try{const e=await ro(this.buildingId);this.allowOccupiedUnitTours=!!e.allowOccupiedUnitTours}catch(e){this.allowOccupiedUnitTours=!1}}),this._fetchUnits()])},this._fetchCentralConvoBuildings=async()=>{if(this.orgSlug&&this.buildingSlug)try{const e=await async function(e,t){var n,i;const o=(await r().get("https://app.meetelise.com/platformApi/webchat/central-convo-buildings-v2",{headers:{"building-slug":t,"org-slug":e}})).data;return{is_general_building:null!==(n=null==o?void 0:o.is_general_building)&&void 0!==n&&n,buildings:null!==(i=null==o?void 0:o.buildings)&&void 0!==i?i:[]}}(this.orgSlug,this.buildingSlug);this.centralConvoBuildings=e.buildings,this.isGeneralBuilding=e.is_general_building}catch(e){this.centralConvoBuildings=[],this.isGeneralBuilding=!1}},this._onBuildingChange=async()=>{var e;const t=null===(e=this.selectedBuildingEl)||void 0===e?void 0:e.value;if(!t||t===this.buildingSlug)return;const n=this.centralConvoBuildings.find(e=>e.slug===t);if(n){this.isGeneralBuilding=!1,this.waitingForAvailabilities=!0,this.errorGettingAvailabilities=!1,this.tourType=null,this.selectedDate=void 0,this.selectedTime=void 0,this.availabilitiesGroupedByDay={},this.mobilePageIndex=0,this.units=[],this.selectedLayoutValue="",this.selectedUnitValue="",this.buildingId=n.building_id,this.buildingSlug=n.slug,this.buildingName=n.name,this.statusMessage=`Loading tours for ${n.name}…`,$o("tourBuildingSelected",{buildingId:n.building_id});try{const e=await oa(this.orgSlug,n.slug);this.sgtUrl=e.sgtUrl,this.selfGuidedToursTypeOffered=e.selfGuidedToursTypeOffered,this.selfGuidedTourEnabled=e.isSelfGuidedTourEnabled,this.escortedToursLink=e.escortedToursLink,this.escortedToursTypeOffered=e.escortedToursTypeOffered,this.virtualToursLink=e.virtualToursLink,this.virtualToursTypeOffered=e.virtualToursTypeOffered,this.tourTypeOptions=e.tourTypeOptions.map(e=>({label:e.label,value:e.value})),this.hasDynamicSchedulingEnabled=e.usesDynamicScheduling}catch(e){}if(await this._loadForCurrentBuilding(),!this.shouldAllowScheduling||this.errorGettingAvailabilities)this.statusMessage=`No tour availabilities for ${n.name}.`;else{const e=Object.values(this.shouldShowTourType).filter(Boolean).length;this.statusMessage=`Showing tours for ${n.name}. ${e} tour type${1===e?"":"s"} available.`}}},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await so(qa[this.tourType]))},this.onChangePhoneNumber=e=>{this.phoneNumber=e.detail.formattedValue,this.phoneNumberE164=e.detail.e164,this.phoneCountry=e.detail.country,this.phoneNumberIsValid=e.detail.isValid},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,n,i;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&Mr(null!==(i=null===(n=this.emailInput)||void 0===n?void 0:n.value)&&void 0!==i?i:"")&&!!this.phoneNumber&&!!this.phoneNumberE164},layout:()=>!this.bedroomPreferenceRequired||!!this.selectedLayoutValue},this.formIsValidForSubmission=()=>this.validators.tourType()&&this.validators.dateAndTime()&&this.validators.leadInfo()&&this.validators.layout(),this.timeStringToHoursAndMinutes=e=>{const[t,n]=e.split(/\D/g);return[parseInt(t)+(e.toLowerCase().includes("pm")?12:0),parseInt(n)]},this.submit=async()=>{var e,t,n,i,o,a,s,l,u,d,c,h,p,f,g,m,y,b,v,w,C,x,$;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const S=this.phoneNumberE164;if(!S)return void(this.phoneNumberIsValid=!1);const A=new URLSearchParams(window.location.search);let E=null;E=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const T=[...new Set(E?[E,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=E;const k=(null===(e=this.selectedLayoutEl)||void 0===e?void 0:e.value)||this.selectedLayoutValue||null,_=(null===(t=this.selectedUnitEl)||void 0===t?void 0:t.value)||this.selectedUnitValue||null;$o("scheduleTourSubmitted",{email:this.email,phone:S,firstName:null!==(i=null===(n=this.firstNameInput)||void 0===n?void 0:n.value)&&void 0!==i?i:this.firstNameInputValue,lastName:null!==(a=null===(o=this.lastNameInput)||void 0===o?void 0:o.value)&&void 0!==a?a:this.lastNameInputValue,tourType:Ya[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:T.find(e=>"property-website"!==e)||null,layout:k,unit:_,conversationTrackingId:null!==(l=null===(s=this.leadSourceClient)||void 0===s?void 0:s.chatId)&&void 0!==l?l:null});const O=(()=>{var e;try{const t=JSON.parse(null!==(e=localStorage.getItem(Ha))&&void 0!==e?e:"null");return(null==t?void 0:t.rwgToken)&&Date.now()<t.expiresAt?t:null}catch{return null}})(),P={referrer:document.referrer,email_address:this.email,phone_number:S,building_id:this.buildingId,first_name:null!==(d=null===(u=this.firstNameInput)||void 0===u?void 0:u.value)&&void 0!==d?d:this.firstNameInputValue,last_name:null!==(h=null===(c=this.lastNameInput)||void 0===c?void 0:c.value)&&void 0!==h?h:this.lastNameInputValue,tour_type:Ya[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(E?[E,Zo(this.orgSlug)]:[Zo(this.orgSlug)])],query_params:Object.fromEntries(A.entries()),conversation_tracking_id:null===(p=this.leadSourceClient)||void 0===p?void 0:p.chatId,layouts:k?[k]:void 0,unit_numbers:_?[_]:void 0,lead_sources_with_timestamps:(null!==(m=null===(f=this.leadSourceMultitouchClient)||void 0===f?void 0:f.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(g=this.selectedLeadSource)||void 0===g?void 0:g.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==m?m:[]).map(e=>Tr({...e})),google_rwg_token:null==O?void 0:O.rwgToken,google_referral_building_id:null==O?void 0:O.buildingId};this.isSubmitting=!0;try{await r().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",P,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE","org-slug":this.orgSlug}}),null===(y=this.leadSourceClient)||void 0===y||y.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(b=this.leadSourceClient)||void 0===b||b.resetLeadSource(),null===(v=this.leadSourceMultitouchClient)||void 0===v||v.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,n=(null===(C=null===(w=t.response)||void 0===w?void 0:w.data)||void 0===C?void 0:C.detail)||"Failed to book tour";if(t.response&&t.response.headers&&t.response.headers["funnel-prospect-conflicting-appointment-error"]){if(this.selectedDate&&this.selectedTime){const e=this.availabilitiesGroupedByDay[Ji(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[Ji(this.selectedDate,"yyyy-MM-dd")]=e.filter(e=>e!==this.selectedTime))}}else{if(409===(null===(x=t.response)||void 0===x?void 0:x.status)&&!this.promptForReschedule&&"User already has a tour scheduled for this building"===n)return this.promptForReschedule=!0,this.isSubmitting=!1,void(this.tourIsBooked=!1);if(409===(null===($=t.response)||void 0===$?void 0:$.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,io(),this.availabilitiesGroupedByDay=await so(qa[this.tourType],this.buildingId),void alert("This timeslot is no longer available. Please select a different time.")}alert(n),this.isSubmitting=!1,this.tourIsBooked=!1}},this.mobilePages=[{validate:this.validators.tourType,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>R`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>R`${this.dateAndTimeMenu()}`},{validate:()=>this.validators.leadInfo(),nextButtonText:null,renderNextButton:()=>R` <action-confirm-button
|
|
1556
|
+
`;class Qo{constructor(e,t,n,i){this.org=e,this.building=t,this.chatId=n,this.incomingProcessedLeadSource=i,this.featureFlags={}}setFeatureFlags(e){this.featureFlags={...this.featureFlags,...e}}ping(e){var t;fetch("https://app.meetelise.com/platformApi/connectors/talk_js/analytics",{method:"POST",credentials:"omit",keepalive:!0,headers:{"content-type":"application/json; charset=UTF-8"},body:JSON.stringify({eventType:e,chatId:this.chatId,url:location.href,org:this.org,building:this.building,referrer:document.referrer,featureFlags:this.featureFlags,campaignSources:Wo(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const Wo=()=>{var e,t,n,i,r,o;try{const i=new URL(window.location.href).searchParams,r=null!==(n=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==n?n:null,o=i.get("switch_cls[id]"),a=i.get("ilm"),s=i.get("utm_source");return{entrataCampaignSource:o,realpageCampaignSource:a,utmCampaignSource:s,yardiCampaignSource:r,bozzutoAdSource:Mr("bozzuto_ad_source")}}catch(e){const t=document.createElement("iframe");if(t.style.display="none",document.body.appendChild(t),!t.contentWindow)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const n=t.contentWindow.URL;if(!n)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const a=new n(window.location.href).searchParams,s=null!==(o=null===(r=null===(i=window.RCTPCampaign)||void 0===i?void 0:i.CampaignDetails)||void 0===r?void 0:r.Source)&&void 0!==o?o:null;return{entrataCampaignSource:a.get("switch_cls[id]"),realpageCampaignSource:a.get("ilm"),utmCampaignSource:a.get("utm_source"),yardiCampaignSource:s,bozzutoAdSource:Mr("bozzuto_ad_source")}}};var qo;!function(e){e.error="error",e.info="info",e.warn="warn"}(qo||(qo={}));const Vo=async({logType:e,buildingSlug:t,orgSlug:n,logTitle:o,logData:a,error:s})=>{var l;if(s instanceof i.AxiosError&&403===(null===(l=s.response)||void 0===l?void 0:l.status))return;await r().post("https://app.meetelise.com/platformApi/webchat/logging",{...a},{headers:{"Content-Type":"application/json","building-slug":null!=t?t:"","org-slug":null!=n?n:"","log-type":null!=e?e:qo.error,"log-title":o.toUpperCase().replace(/\s/g,"_")}})},Yo=async({params:e,sampleRate:t})=>{try{if(Math.random()>=t)return;await r().post("https://app.meetelise.com/platformApi/webchat/log/signal",{...e,website_origin:window.location.origin,website_search:window.location.search})}catch(e){}};var Ko=n(2193),Xo=n.n(Ko);function Zo(e){return"avb"===e?"AVB Company Website":"windsor"===e?"Windsorcommunities.com":"property-website"}const Jo=class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.leadSourceParams=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,n,i,r)=>{const o=bo();if(this.leadSourceInput={websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:o,referrer:document.referrer,parsedUtmSource:o?o.utm_source:null,campaignSources:Object.values(Wo()).filter(e=>e)},i)return;if(!r){const t=this.getLeadSourceBodyIfValid(e);if(t){if(!Ir(t.timestamp,24*this.localStorageTTLDays))return{...t,timestamp:qr(t.timestamp)}}}const a={leadSource:t,leadSourceParams:this.leadSourceParams,leadId:n,buildingSlug:e,timestamp:Br(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(a)),{...a,timestamp:qr(a.timestamp)}},this.getLeadSourceBodyIfValid=e=>{const t=localStorage.getItem("com.elise.webchat.leadsource.slug="+e);if(t)try{const n=JSON.parse(t);if(n.buildingSlug===e&&n.leadSource&&n.leadId&&n.timestamp&&!Ir(qr(n.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=n.leadSourceInput}catch(e){}return n}}catch(e){return null}return null},this.resetLeadSource=()=>{if(!this.buildingSlug)return!1;const e="com.elise.webchat.leadsource.slug="+this.buildingSlug;return localStorage.removeItem(e),!0}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:t,referrer:n,campaignSources:i}){const o={query_params:t,building_slug:e,referrer:n,campaign_sources:i};try{return(await r().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,o)).data}catch(e){return null}}async checkAndHandleForLogLeadSource({webchatAction:e,stateId:t}){var n,i,o,a,s,l,u;try{if(!this.chatId)return null;if(!this.orgSlug)return null;let d=null,c=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(d=e),c=null===(n=window.dataLayer.find(e=>{var t;return"gtagApiGet"==(null===(t=e.value)||void 0===t?void 0:t.event)}))||void 0===n?void 0:n.value}}catch(e){}return await r().post(`${this.apiHost}/platformApi/webchat/log/lead-source`,{chat_id:this.chatId,webchat_action:e,state_id:t,building_id:this.buildingId,org_slug:this.orgSlug,building_slug:this.buildingSlug,website_origin:null===(i=this.leadSourceInput)||void 0===i?void 0:i.websiteOrigin,website_search:null===(o=this.leadSourceInput)||void 0===o?void 0:o.websiteSearch,query_parameters:null===(a=this.leadSourceInput)||void 0===a?void 0:a.queryParameters,referrer:null===(s=this.leadSourceInput)||void 0===s?void 0:s.referrer,parsed_utm_source:null===(l=this.leadSourceInput)||void 0===l?void 0:l.parsedUtmSource,campaign_sources:null===(u=this.leadSourceInput)||void 0===u?void 0:u.campaignSources,lead_source_output:this.leadSource,google_analytics_client_id:Xo()(d)?null:d,extras:null!=c?c:null}),null}catch(e){return null}}async getCookieValue(e){try{const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.startsWith(e+"=")){return i.substring((e+"=").length,-1===i.indexOf(";")?void 0:i.indexOf(";"))}}return null}catch(e){}return null}async generateUserLeadSource({leadId:e,orgSlug:t,buildingSlug:n}){var i,r,o;try{const a={queryParams:bo(),buildingSlug:n,referrer:document.referrer,campaignSources:Wo()};let s=!1;const l=n?this.getLeadSourceBodyIfValid(n):null;if(l){if(!["test-company","daf00bd2-1ecb-482c-b6f4-e1c5511a01be"].includes(t))return this.leadSource=l.leadSource,this.leadSourceParams=null!==(r=l.leadSourceParams)&&void 0!==r?r:null,this.leadSource;{const e=await this.fetchCurrentParsedLeadSource(a);if(!e)return this.leadSource=l.leadSource,this.leadSourceParams=null!==(i=l.leadSourceParams)&&void 0!==i?i:null,this.leadSource;this.leadSource=e,s=!0}}const u=await this.fetchCurrentParsedLeadSource(a);if(this.leadSource=u,this.buildingId=null,this.orgSlug=t,this.buildingSlug=n,n&&!u){const e=this.getLeadSourceBodyIfValid(n);if(e)return this.leadSource=e.leadSource,this.leadSourceParams=null!==(o=e.leadSourceParams)&&void 0!==o?o:null,this.leadSource}if(n){const t=!!u&&u.length>0;this.updateLeadSourceLocalStorage(n,u,e,!t&&!s,s)}return u}catch(e){}return null}},ea=async(e,t=!1)=>{const n=`https://app.meetelise.com/eliseCrmApi/building/${e}/scheduling_status?observe_dynamic_scheduling=${t}`;try{return(await r().get(n)).data.is_enabled}catch(e){return!1}};var ta,na,ia;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(ta||(ta={})),function(e){e.UNKNOWN="UNKNOWN",e.SELF_GUIDED="SELF_GUIDED",e.VIRTUAL_SHOWING="VIRTUAL_SHOWING",e.WITH_AGENT="WITH_AGENT",e.MEDIA_TOUR="MEDIA_TOUR",e.OPEN_HOUSE_STUDIO="OPEN_HOUSE_STUDIO",e.OPEN_HOUSE_1BR="OPEN_HOUSE_1BR",e.OPEN_HOUSE_2BR="OPEN_HOUSE_2BR",e.OPEN_HOUSE_3BR="OPEN_HOUSE_3BR",e.OPEN_HOUSE_4BR="OPEN_HOUSE_4BR",e.OPEN_HOUSE_5BR="OPEN_HOUSE_5BR"}(na||(na={})),function(e){e.LINK="link",e.CLIENT_SCHEDULED="client_scheduled",e.SCHEDULED_BY_ME_MANAGED_BY_ME="scheduled_by_ME_managed_by_ME",e.SCHEDULED_BY_ME_MANAGED_BY_CLIENT="scheduled_by_ME_managed_by_client",e.SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE="scheduled_by_ME_managed_by_concierge"}(ia||(ia={}));const ra=(e,t)=>"link"===(null==t?void 0:t.toLowerCase());async function oa(e,t){const n=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${t}/v2`,i=await r().get(n);return aa(i.data)}const aa=e=>{var t;try{e.welcomeMessage=sa(null!==(t=e.welcomeMessage)&&void 0!==t?t:"",e.userFirstName)}catch(e){}return e},sa=(e,t)=>e.replace(/elise/gi,t);var la=n(7035),ua=n(6353);function da(e,t,n){var i=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return i.formatToParts?function(e,t){for(var n=e.formatToParts(t),i=n.length-1;i>=0;--i)if("timeZoneName"===n[i].type)return n[i].value}(i,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(n);return i?i[0].substr(1):""}(i,t)}function ca(e,t){var n=function(e){if(!pa[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;pa[e]=n?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return pa[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),i=[],r=0;r<n.length;r++){var o=ha[n[r].type];o>=0&&(i[o]=parseInt(n[r].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[i[3],i[1],i[2],i[4],i[5],i[6]]}(n,e)}var ha={year:0,month:1,day:2,hour:3,minute:4,second:5};var pa={};function fa(e,t,n,i,r,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(i,r,o,a),s}var ga=36e5,ma={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ya(e,t,n){var i,r,o;if(!e)return 0;if(i=ma.timezoneZ.exec(e))return 0;if(i=ma.timezoneHH.exec(e))return va(o=parseInt(i[1],10))?-o*ga:NaN;if(i=ma.timezoneHHMM.exec(e)){o=parseInt(i[2],10);var a=parseInt(i[3],10);return va(o,a)?(r=Math.abs(o)*ga+6e4*a,"+"===i[1]?-r:r):NaN}if(function(e){if(wa[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),wa[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return fa(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=ba(s,e),u=n?l:function(e,t,n){var i=e.getTime(),r=i-t,o=ba(new Date(r),n);if(t===o)return t;r-=o-t;var a=ba(new Date(r),n);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-u}return NaN}function ba(e,t){var n=ca(e,t),i=fa(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),r=e.getTime(),o=r%1e3;return i-(r-=o>=0?o:1e3+o)}function va(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var wa={};var Ca={X:function(e,t,n,i){var r=xa(i.timeZone,e);if(0===r)return"Z";switch(t){case"X":return Aa(r);case"XXXX":case"XX":return Sa(r);default:return Sa(r,":")}},x:function(e,t,n,i){var r=xa(i.timeZone,e);switch(t){case"x":return Aa(r);case"xxxx":case"xx":return Sa(r);default:return Sa(r,":")}},O:function(e,t,n,i){var r=xa(i.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+$a(o,2)}(r,":");default:return"GMT"+Sa(r,":")}},z:function(e,t,n,i){switch(t){case"z":case"zz":case"zzz":return da("short",e,i);default:return da("long",e,i)}}};function xa(e,t){var n=e?ya(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function $a(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}function Sa(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+$a(Math.floor(r/60),2)+n+$a(Math.floor(r%60),2)}function Aa(e,t){return e%60==0?(e>0?"-":"+")+$a(Math.abs(e)/60,2):Sa(e,t)}const Ea=Ca;var Ta=n(9784),ka=n(9720);var _a=36e5,Oa=6e4,Pa={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Ia(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},i=null==n.additionalDigits?2:Ta(n.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r=function(e){var t,n={},i=Pa.dateTimePattern.exec(e);i?(n.date=i[1],t=i[3]):(i=Pa.datePattern.exec(e))?(n.date=i[1],t=i[2]):(n.date=null,t=e);if(t){var r=Pa.timeZone.exec(t);r?(n.time=t.replace(r[1],""),n.timeZone=r[1].trim()):n.time=t}return n}(e),o=function(e,t){var n,i=Pa.YYY[t],r=Pa.YYYYY[t];if(n=Pa.YYYY.exec(e)||r.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=Pa.YY.exec(e)||i.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(r.date,i),a=o.year,s=function(e,t){if(null===t)return null;var n,i,r,o;if(0===e.length)return(i=new Date(0)).setUTCFullYear(t),i;if(n=Pa.MM.exec(e))return i=new Date(0),Ua(t,r=parseInt(n[1],10)-1)?(i.setUTCFullYear(t,r),i):new Date(NaN);if(n=Pa.DDD.exec(e)){i=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=La(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(i.setUTCFullYear(t,0,a),i):new Date(NaN)}if(n=Pa.MMDD.exec(e)){i=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return Ua(t,r,s)?(i.setUTCFullYear(t,r,s),i):new Date(NaN)}if(n=Pa.Www.exec(e))return Ra(t,o=parseInt(n[1],10)-1)?Ma(t,o):new Date(NaN);if(n=Pa.WwwD.exec(e)){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return Ra(t,o,l)?Ma(t,o,l):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,u=s.getTime(),d=0;if(r.time&&(d=function(e){var t,n,i;if(t=Pa.HH.exec(e))return Ba(n=parseFloat(t[1].replace(",",".")))?n%24*_a:NaN;if(t=Pa.HHMM.exec(e))return Ba(n=parseInt(t[1],10),i=parseFloat(t[2].replace(",",".")))?n%24*_a+i*Oa:NaN;if(t=Pa.HHMMSS.exec(e)){n=parseInt(t[1],10),i=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return Ba(n,i,r)?n%24*_a+i*Oa+1e3*r:NaN}return null}(r.time),isNaN(d)))return new Date(NaN);if(r.timeZone||n.timeZone){if(l=ya(r.timeZone||n.timeZone,new Date(u+d)),isNaN(l))return new Date(NaN)}else l=ka(new Date(u+d)),l=ka(new Date(u+d+l));return new Date(u+d+l)}return new Date(NaN)}function Ma(e,t,n){t=t||0,n=n||0;var i=new Date(0);i.setUTCFullYear(e,0,4);var r=7*t+n+1-(i.getUTCDay()||7);return i.setUTCDate(i.getUTCDate()+r),i}var Na=[31,28,31,30,31,30,31,31,30,31,30,31],Da=[31,29,31,30,31,30,31,31,30,31,30,31];function La(e){return e%400==0||e%4==0&&e%100!=0}function Ua(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var i=La(e);if(i&&n>Da[t])return!1;if(!i&&n>Na[t])return!1}return!0}function Ra(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function Ba(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var ja=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Fa(e,t,n,i){var r=la(i);return r.timeZone=t,r.originalDate=e,function(e,t,n){var i=String(t),r=n||{},o=i.match(ja);if(o){var a=Ia(r.originalDate||e,r);i=o.reduce(function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),i="'"===e[n-1],o=e.replace(t,"'"+Ea[t[0]](a,t,null,r)+"'");return i?o.substring(0,n-1)+o.substring(n+1):o},i)}return ua(e,i,r)}(function(e,t,n){var i=Ia(e,n),r=ya(t,i,!0),o=new Date(i.getTime()-r),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}(e,t),n,r)}const Ha="com.eliseai.webchat.googlereserve.referral",Ga=async({buildingSlug:e})=>{try{const t=await r().get(`${Sr}/platformApi/webchat/${e}/units/summary`);if(t.data)return Er(t.data)}catch(t){Vo({logType:qo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS_SUMMARY]",logData:{error:t},error:t})}return[]};var za=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Qa=class extends oe{constructor(){super(...arguments),this.tourTypeOptions=[],this.layoutOptions=[],this.chatId="",this.buildingId=0,this.orgId=0,this.leadSourceParams=null,this.buildingSlug="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.selfGuidedTourEnabled=!1,this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.orgSlug="",this.hasDynamicSchedulingEnabled=!1,this.bedroomPreferenceRequired=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingName="",this.tourType=null,this.shouldShowTourType={[Wa.Guided]:!0,[Wa.Self]:!0,[Wa.Virtual]:!0},this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneCountry=null,this.phoneNumberIsValid=!1,this.phoneNumberHasBlurred=!1,this.availabilitiesGroupedByDay={},this.calendarTimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.waitingForAvailabilities=!0,this.mobilePageIndex=0,this.isSubmitting=!1,this.tourIsBooked=!1,this.shouldAllowScheduling=!1,this.shouldAllowScheduleLoading=!0,this.promptForReschedule=!1,this.canceledReschedule=!1,this.leadSources=[],this.orgLegalName="",this.country=null,this.buildingState=null,this.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=Vn,this.foregroundColorOnPrimaryBackgroundColor="white",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.selectedLayoutValue="",this.selectedUnitValue="",this.units=[],this.allowOccupiedUnitTours=!1,this.errorGettingAvailabilities=!1,this.centralConvoBuildings=[],this.isGeneralBuilding=!1,this.statusMessage="",this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([ea(this.buildingId,this.hasDynamicSchedulingEnabled),ao()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await ro(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),Vo({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:qo.info,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});const n=Object.values(t).every(e=>!1===e),i=!this.sgtUrl&&!this.escortedToursLink&&!this.virtualToursLink;if(n&&i)return this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,void Vo({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[Wa.Guided]:this.tourTypeOptions.map(e=>e.value).includes("WITH_AGENT")&&(t[Wa.Guided]||!!this.escortedToursLink),[Wa.Self]:this.tourTypeOptions.map(e=>e.value).includes("SELF_GUIDED")&&(t[Wa.Self]||!!this.sgtUrl),[Wa.Virtual]:this.tourTypeOptions.map(e=>e.value).includes("VIRTUAL_SHOWING")&&(t[Wa.Virtual]||!!this.virtualToursLink)};const r=1===Object.values(this.shouldShowTourType).reduce((e,t)=>!0===t?e+1:e,0);if(this._setDefaultSelectedDateAndTimes(),r&&(this.tourType=Object.keys(this.shouldShowTourType).find(e=>this.shouldShowTourType[e])),null===this.tourType)return void(this.waitingForAvailabilities=!1);this.availabilitiesGroupedByDay=await so(qa[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,Vo({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var n,i,r;const o=await ro(this.buildingId),a=null!=e?e:this._getHighestRankedTourType(o),s=a?null===(r=null===(i=null===(n=o.availability)||void 0===n?void 0:n[a])||void 0===i?void 0:i.availableTourStartTimes)||void 0===r?void 0:r.filter(e=>{if(!t)return!0;return or("string"==typeof e?qr(e):e,t)}):[],l=null==s?void 0:s[0];a&&l&&a!==Fr.Unknown&&a!==Fr.MediaTour&&(this.selectedDate=rr("string"==typeof l?qr(l):l),this.tourType=Va[a],this.selectedTime="string"==typeof l?lo(l):(e=>({datetime:Ji(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:Ji(e,"xxx")}))(l))},this._getHighestRankedTourType=e=>{var t;const n=(null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]).map(t=>{var n,i;return{tourType:t,availabilities:null===(i=null===(n=e.availability)||void 0===n?void 0:n[t])||void 0===i?void 0:i.availableTourStartTimes}}).filter(e=>{if(e.tourType===Fr.Unknown||e.tourType===Fr.MediaTour)return!1;const t=Va[e.tourType],n=this._getTourTypeOffered(t);return!!n&&(!ra(0,n)&&e.availabilities&&e.availabilities.length>0)}),i=n[0];return i?i.tourType:null},this._getTourTypeOffered=e=>e===Wa.Guided?this.escortedToursTypeOffered:e===Wa.Self?this.selfGuidedToursTypeOffered:e===Wa.Virtual?this.virtualToursTypeOffered:null,this._getUnitOptions=()=>{const e=this.selectedLayoutValue?this.units.filter(e=>Ka(10*e.numberOfBedrooms)===this.selectedLayoutValue):this.units,t=e.map(e=>({label:e.unitNumber,value:e.unitNumber}));return t},this._fetchUnits=async()=>{if(this.buildingSlug)try{this.units=await Ga({buildingSlug:this.buildingSlug})}catch(e){this.units=[],Vo({logTitle:"ERROR_LOADING_UNITS_FOR_TOUR_SCHEDULER",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this.firstUpdated=async()=>{if(await this._fetchCentralConvoBuildings(),this.isGeneralBuilding)return this.waitingForAvailabilities=!1,this.shouldAllowScheduleLoading=!1,void(this.statusMessage="Please select a building to see tour availabilities.");await this._loadForCurrentBuilding()},this._loadForCurrentBuilding=async()=>{try{await ro(this.buildingId)}catch(e){}await Promise.all([this._setAvailabilities().then(async()=>{try{const e=await ro(this.buildingId);this.allowOccupiedUnitTours=!!e.allowOccupiedUnitTours}catch(e){this.allowOccupiedUnitTours=!1}}),this._fetchUnits()])},this._fetchCentralConvoBuildings=async()=>{if(this.orgSlug&&this.buildingSlug)try{const e=await async function(e,t){var n,i;const o=(await r().get("https://app.meetelise.com/platformApi/webchat/central-convo-buildings-v2",{headers:{"building-slug":t,"org-slug":e}})).data;return{is_general_building:null!==(n=null==o?void 0:o.is_general_building)&&void 0!==n&&n,buildings:null!==(i=null==o?void 0:o.buildings)&&void 0!==i?i:[]}}(this.orgSlug,this.buildingSlug);this.centralConvoBuildings=e.buildings,this.isGeneralBuilding=e.is_general_building}catch(e){this.centralConvoBuildings=[],this.isGeneralBuilding=!1}},this._onBuildingChange=async()=>{var e;const t=null===(e=this.selectedBuildingEl)||void 0===e?void 0:e.value;if(!t||t===this.buildingSlug)return;const n=this.centralConvoBuildings.find(e=>e.slug===t);if(n){this.isGeneralBuilding=!1,this.waitingForAvailabilities=!0,this.errorGettingAvailabilities=!1,this.tourType=null,this.selectedDate=void 0,this.selectedTime=void 0,this.availabilitiesGroupedByDay={},this.mobilePageIndex=0,this.units=[],this.selectedLayoutValue="",this.selectedUnitValue="",this.buildingId=n.building_id,this.buildingSlug=n.slug,this.buildingName=n.name,this.statusMessage=`Loading tours for ${n.name}…`,$o("tourBuildingSelected",{buildingId:n.building_id});try{const e=await oa(this.orgSlug,n.slug);this.sgtUrl=e.sgtUrl,this.selfGuidedToursTypeOffered=e.selfGuidedToursTypeOffered,this.selfGuidedTourEnabled=e.isSelfGuidedTourEnabled,this.escortedToursLink=e.escortedToursLink,this.escortedToursTypeOffered=e.escortedToursTypeOffered,this.virtualToursLink=e.virtualToursLink,this.virtualToursTypeOffered=e.virtualToursTypeOffered,this.tourTypeOptions=e.tourTypeOptions.map(e=>({label:e.label,value:e.value})),this.hasDynamicSchedulingEnabled=e.usesDynamicScheduling}catch(e){}if(await this._loadForCurrentBuilding(),!this.shouldAllowScheduling||this.errorGettingAvailabilities)this.statusMessage=`No tour availabilities for ${n.name}.`;else{const e=Object.values(this.shouldShowTourType).filter(Boolean).length;this.statusMessage=`Showing tours for ${n.name}. ${e} tour type${1===e?"":"s"} available.`}}},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await so(qa[this.tourType]))},this.onChangePhoneNumber=e=>{this.phoneNumber=e.detail.formattedValue,this.phoneNumberE164=e.detail.e164,this.phoneCountry=e.detail.country,this.phoneNumberIsValid=e.detail.isValid},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.validators={tourType:()=>null!==this.tourType,dateAndTime:()=>!!this.selectedDate&&!!this.selectedTime,leadInfo:()=>{var e,t,n,i;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&Nr(null!==(i=null===(n=this.emailInput)||void 0===n?void 0:n.value)&&void 0!==i?i:"")&&!!this.phoneNumber&&!!this.phoneNumberE164},layout:()=>!this.bedroomPreferenceRequired||!!this.selectedLayoutValue},this.formIsValidForSubmission=()=>this.validators.tourType()&&this.validators.dateAndTime()&&this.validators.leadInfo()&&this.validators.layout(),this.timeStringToHoursAndMinutes=e=>{const[t,n]=e.split(/\D/g);return[parseInt(t)+(e.toLowerCase().includes("pm")?12:0),parseInt(n)]},this.submit=async()=>{var e,t,n,i,o,a,s,l,u,d,c,h,p,f,g,m,y,b,v,w,C,x,$;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const S=this.phoneNumberE164;if(!S)return void(this.phoneNumberIsValid=!1);const A=new URLSearchParams(window.location.search);let E=null;E=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const T=[...new Set(E?[E,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=E;const k=(null===(e=this.selectedLayoutEl)||void 0===e?void 0:e.value)||this.selectedLayoutValue||null,_=(null===(t=this.selectedUnitEl)||void 0===t?void 0:t.value)||this.selectedUnitValue||null;$o("scheduleTourSubmitted",{email:this.email,phone:S,firstName:null!==(i=null===(n=this.firstNameInput)||void 0===n?void 0:n.value)&&void 0!==i?i:this.firstNameInputValue,lastName:null!==(a=null===(o=this.lastNameInput)||void 0===o?void 0:o.value)&&void 0!==a?a:this.lastNameInputValue,tourType:Ya[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:T.find(e=>"property-website"!==e)||null,layout:k,unit:_,conversationTrackingId:null!==(l=null===(s=this.leadSourceClient)||void 0===s?void 0:s.chatId)&&void 0!==l?l:null});const O=(()=>{var e;try{const t=JSON.parse(null!==(e=localStorage.getItem(Ha))&&void 0!==e?e:"null");return(null==t?void 0:t.rwgToken)&&Date.now()<t.expiresAt?t:null}catch{return null}})(),P={referrer:document.referrer,email_address:this.email,phone_number:S,building_id:this.buildingId,first_name:null!==(d=null===(u=this.firstNameInput)||void 0===u?void 0:u.value)&&void 0!==d?d:this.firstNameInputValue,last_name:null!==(h=null===(c=this.lastNameInput)||void 0===c?void 0:c.value)&&void 0!==h?h:this.lastNameInputValue,tour_type:Ya[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(E?[E,Zo(this.orgSlug)]:[Zo(this.orgSlug)])],query_params:Object.fromEntries(A.entries()),conversation_tracking_id:null===(p=this.leadSourceClient)||void 0===p?void 0:p.chatId,layouts:k?[k]:void 0,unit_numbers:_?[_]:void 0,lead_sources_with_timestamps:(null!==(m=null===(f=this.leadSourceMultitouchClient)||void 0===f?void 0:f.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(g=this.selectedLeadSource)||void 0===g?void 0:g.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==m?m:[]).map(e=>Tr({...e})),google_rwg_token:null==O?void 0:O.rwgToken,google_referral_building_id:null==O?void 0:O.buildingId};this.isSubmitting=!0;try{await r().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",P,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"webchatkey-wkjcWAKZjqhLStvP8L6SN8y4FbYmPhdE","org-slug":this.orgSlug}}),null===(y=this.leadSourceClient)||void 0===y||y.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(b=this.leadSourceClient)||void 0===b||b.resetLeadSource(),null===(v=this.leadSourceMultitouchClient)||void 0===v||v.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,n=(null===(C=null===(w=t.response)||void 0===w?void 0:w.data)||void 0===C?void 0:C.detail)||"Failed to book tour";if(t.response&&t.response.headers&&t.response.headers["funnel-prospect-conflicting-appointment-error"]){if(this.selectedDate&&this.selectedTime){const e=this.availabilitiesGroupedByDay[Ji(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[Ji(this.selectedDate,"yyyy-MM-dd")]=e.filter(e=>e!==this.selectedTime))}}else{if(409===(null===(x=t.response)||void 0===x?void 0:x.status)&&!this.promptForReschedule&&"User already has a tour scheduled for this building"===n)return this.promptForReschedule=!0,this.isSubmitting=!1,void(this.tourIsBooked=!1);if(409===(null===($=t.response)||void 0===$?void 0:$.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,io(),this.availabilitiesGroupedByDay=await so(qa[this.tourType],this.buildingId),void alert("This timeslot is no longer available. Please select a different time.")}alert(n),this.isSubmitting=!1,this.tourIsBooked=!1}},this.mobilePages=[{validate:this.validators.tourType,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>R`${this.tourTypeMenu()}`},{validate:this.validators.dateAndTime,nextButtonText:"Next",nextButtonAction:()=>{this.mobilePageIndex++},render:()=>R`${this.dateAndTimeMenu()}`},{validate:()=>this.validators.leadInfo(),nextButtonText:null,renderNextButton:()=>R` <action-confirm-button
|
|
1557
1557
|
id="schedule-bttn"
|
|
1558
1558
|
.onClick=${this.submit}
|
|
1559
1559
|
.isLoading=${this.isSubmitting}
|
|
@@ -1732,7 +1732,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1732
1732
|
|
|
1733
1733
|
<div class="inputContainer" id="email">
|
|
1734
1734
|
<input
|
|
1735
|
-
class=${ye({"webchat-input":!0,"webchat-font__desktop":!Or(),"webchat-font__mobile":Or(),"webchat-input__error":!!this.email&&!
|
|
1735
|
+
class=${ye({"webchat-input":!0,"webchat-font__desktop":!Or(),"webchat-font__mobile":Or(),"webchat-input__error":!!this.email&&!Nr(this.email)})}
|
|
1736
1736
|
type="email"
|
|
1737
1737
|
inputmode="email"
|
|
1738
1738
|
placeholder="Email"
|
|
@@ -1741,7 +1741,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1741
1741
|
.value=${this.email}
|
|
1742
1742
|
@input=${this.onChangeEmail}
|
|
1743
1743
|
/>
|
|
1744
|
-
${this.email&&!
|
|
1744
|
+
${this.email&&!Nr(this.email)?R`<p class="error-message">Invalid email address</p>`:""}
|
|
1745
1745
|
</div>
|
|
1746
1746
|
<div class="inputContainer" id="phone">
|
|
1747
1747
|
<international-phone-input
|
|
@@ -2995,7 +2995,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2995
2995
|
border-radius: 0px 0px 0px 0px;
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
|
-
`,rs([ue({type:String})],os.prototype,"height",void 0),rs([ue({type:String})],os.prototype,"width",void 0),rs([ue({type:Boolean})],os.prototype,"useRoundedBorders",void 0),rs([ue({type:String})],os.prototype,"headerText",void 0),rs([ue({attribute:!1})],os.prototype,"onCloseClick",void 0),rs([de()],os.prototype,"isMobileSized",void 0),rs([ue({attribute:!0})],os.prototype,"useGradientDesign",void 0),os=rs([se("details-window")],os);var as=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ss=class extends oe{constructor(){super(...arguments),this.leadSources=[],this.chatId="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.buildingName="",this.orgLegalName="",this.country=null,this.buildingState=null,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.featureFlagShowDropdown="",this.privatePolicyUrl="https://www.meetelise.com/privacy",this.termsOfServiceUrl="_blank",this.firstName="",this.lastName="",this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneCountry=null,this.message="",this.currentLeadSource="",this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmittedForm=!1,this.windowHeight=525,this.hasSubmissionError=!1,this.isSubmitting=!1,this.onChangeFirstName=e=>{e.target&&(this.firstName=e.target.value)},this.onChangeLastName=e=>{e.target&&(this.lastName=e.target.value)},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.onChangePhoneNumber=e=>{this.phoneNumber=e.detail.formattedValue,this.phoneNumberE164=e.detail.e164,this.phoneCountry=e.detail.country},this.onChangeMessage=e=>{e.target&&(this.message=e.target.value)},this.validateFormFields=()=>{this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmissionError=!1,this.firstName&&this.lastName||(this.hasNameError=!0),this.email&&
|
|
2998
|
+
`,rs([ue({type:String})],os.prototype,"height",void 0),rs([ue({type:String})],os.prototype,"width",void 0),rs([ue({type:Boolean})],os.prototype,"useRoundedBorders",void 0),rs([ue({type:String})],os.prototype,"headerText",void 0),rs([ue({attribute:!1})],os.prototype,"onCloseClick",void 0),rs([de()],os.prototype,"isMobileSized",void 0),rs([ue({attribute:!0})],os.prototype,"useGradientDesign",void 0),os=rs([se("details-window")],os);var as=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ss=class extends oe{constructor(){super(...arguments),this.leadSources=[],this.chatId="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.buildingName="",this.orgLegalName="",this.country=null,this.buildingState=null,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.featureFlagShowDropdown="",this.privatePolicyUrl="https://www.meetelise.com/privacy",this.termsOfServiceUrl="_blank",this.firstName="",this.lastName="",this.email="",this.phoneNumber="",this.phoneNumberE164=null,this.phoneCountry=null,this.message="",this.currentLeadSource="",this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmittedForm=!1,this.windowHeight=525,this.hasSubmissionError=!1,this.isSubmitting=!1,this.onChangeFirstName=e=>{e.target&&(this.firstName=e.target.value)},this.onChangeLastName=e=>{e.target&&(this.lastName=e.target.value)},this.onChangeEmail=e=>{e.target&&(this.email=e.target.value)},this.onChangePhoneNumber=e=>{this.phoneNumber=e.detail.formattedValue,this.phoneNumberE164=e.detail.e164,this.phoneCountry=e.detail.country},this.onChangeMessage=e=>{e.target&&(this.message=e.target.value)},this.validateFormFields=()=>{this.hasNameError=!1,this.hasEmailError=!1,this.hasPhoneNumberError=!1,this.hasMessageError=!1,this.hasSubmissionError=!1,this.firstName&&this.lastName||(this.hasNameError=!0),this.email&&Nr(this.email)||(this.hasEmailError=!0),this.phoneNumberE164||(this.hasPhoneNumberError=!0),this.windowHeight=525+30*this.getNumErrors()},this.onClick=async()=>{var e,t,n,i,r,o;if(this.isSubmitting)return;if(this.validateFormFields(),this.hasNameError||this.hasEmailError||this.hasPhoneNumberError||this.hasMessageError)return;const a=this.phoneNumberE164;if(a)try{this.isSubmitting=!0,this.windowHeight=585;const s=this.selectedLeadSource&&this.selectedLeadSource.value?this.selectedLeadSource.value:this.currentLeadSource;await ls(this.firstName,this.lastName,this.email,a,this.message,this.buildingId,this.orgSlug,this.buildingSlug,[...new Set(s?[s,Zo(this.orgSlug)]:[Zo(this.orgSlug)])],null===(e=this.leadSourceClient)||void 0===e?void 0:e.chatId,null===(t=this.leadSourceMultitouchClient)||void 0===t?void 0:t.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(n=this.selectedLeadSource)||void 0===n?void 0:n.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null})),null===(i=this.leadSourceClient)||void 0===i||i.checkAndHandleForLogLeadSource({webchatAction:"email-us",stateId:null}),null===(r=this.leadSourceClient)||void 0===r||r.resetLeadSource(),null===(o=this.leadSourceMultitouchClient)||void 0===o||o.resetLeadSourceTouchpoints(),this.hasSubmittedForm=!0,this.isSubmitting=!1,this.windowHeight=525}catch(e){this.hasSubmissionError=!0,this.isSubmitting=!1,this.windowHeight=525}else this.hasPhoneNumberError=!0},this.getNumErrors=()=>[this.hasNameError,this.hasEmailError,this.hasPhoneNumberError,this.hasMessageError,this.hasSubmissionError].filter(e=>e).length,this.render=()=>{var e;return window.customElements.get("details-window")||window.customElements.define("details-window",os),window.customElements.get("action-confirm-button")||window.customElements.define("action-confirm-button",is),this.hasSubmittedForm?R`
|
|
2999
2999
|
<details-window
|
|
3000
3000
|
id="details-window"
|
|
3001
3001
|
headerText=""
|
|
@@ -3221,7 +3221,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3221
3221
|
</div>
|
|
3222
3222
|
|
|
3223
3223
|
<div class="text-us-window__description">
|
|
3224
|
-
${Lo(this.buildingState)?Ro("textUs",this.orgLegalName):
|
|
3224
|
+
${Lo(this.buildingState)?Ro("textUs",this.orgLegalName):Mo(this.country)?R`By providing your number and clicking send, you consent to
|
|
3225
3225
|
receive recurring commercial electronic messages from or on behalf
|
|
3226
3226
|
of ${this.orgLegalName} at this number. Messages may be AI or
|
|
3227
3227
|
human generated. Msg freq varies. Msg & Data rates may apply. You
|
|
@@ -3765,7 +3765,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3765
3765
|
`;class ys{constructor(e={}){var t,n,i,r,o,a;this.id=null!==(t=e.id)&&void 0!==t?t:"",this.description=null!==(n=e.description)&&void 0!==n?n:"",this.type=null!==(i=e.type)&&void 0!==i?i:"",this.rent=null!==(r=e.rent)&&void 0!==r?r:0,this.rentFrequency=null!==(o=e.rentFrequency)&&void 0!==o?o:"monthly",this.available=null!==(a=e.available)&&void 0!==a&&a,this.reservedUntil=e.reservedUntil?new Date(e.reservedUntil):void 0}}class bs{constructor(e={}){var t,n,i,r,o;this.description=null!==(t=e.description)&&void 0!==t?t:"",this.type=null!==(n=e.type)&&void 0!==n?n:"",this.minAvailableItem=e.minAvailableItem?new ys(e.minAvailableItem):void 0,this.maxAvailableItem=e.maxAvailableItem?new ys(e.maxAvailableItem):void 0,this.allItems=(null!==(i=e.allItems)&&void 0!==i?i:[]).map(e=>new ys(e)),this.rent=null!==(r=e.rent)&&void 0!==r?r:0,this.priceDescription=null!==(o=e.priceDescription)&&void 0!==o?o:""}get displayName(){return this.description}get itemDescription(){return this.description}}var vs,ws;!function(e){e.NEVER="NEVER",e.AS_NEEDED="AS_NEEDED",e.ONE_TIME="ONE_TIME",e.MONTHLY="MONTHLY",e.WEEKLY="WEEKLY",e.BI_WEEKLY="BI_WEEKLY",e.ANNUALLY="ANNUALLY",e.DAILY="DAILY"}(vs||(vs={})),function(e){e.Rent="Rent",e.Utility="Utility",e.ApplicationFee="ApplicationFee",e.Parking="Parking",e.Insurance="Insurance",e.Storage="Storage",e.PetFee="PetFee",e.PetRent="PetRent",e.PetDeposit="PetDeposit",e.SecurityDeposit="SecurityDeposit",e.MoveInFee="MoveInFee",e.Other="Other"}(ws||(ws={}));class Cs{constructor(e={}){var t,n,i,r,o,a,s,l,u;this.id=null!==(t=e.id)&&void 0!==t?t:"",this.building_id=e.building_id,this.fee_name=null!==(n=e.fee_name)&&void 0!==n?n:"",this.amount=e.amount,this.amount_display=null!==(i=e.amount_display)&&void 0!==i?i:"",this.min_estimate=e.min_estimate,this.max_estimate=e.max_estimate,this.percent_rent=e.percent_rent,this.percent_rent_min=e.percent_rent_min,this.percent_rent_max=e.percent_rent_max,this.frequency=null!==(r=e.frequency)&&void 0!==r?r:vs.ONE_TIME,this.category=null!==(o=e.category)&&void 0!==o?o:ws.Other,this.description=e.description,this.additional_info=e.additional_info,this.refundable=null!==(a=e.refundable)&&void 0!==a&&a,this.hidden_reason=e.hidden_reason,this.unit_ids=e.unit_ids,this.layout_ids=e.layout_ids,this.public_facing=null===(s=e.public_facing)||void 0===s||s,this.per_applicant=null!==(l=e.per_applicant)&&void 0!==l&&l,this.required_for_quotes=null!==(u=e.required_for_quotes)&&void 0!==u&&u,this.charge_code=e.charge_code,this.bundle_key=e.bundle_key,this.external_key=e.external_key}get displayFrequency(){return this.frequency.replace(/_/g," ").toLowerCase().replace(/\b\w/g,e=>e.toUpperCase())}get isOptional(){return!this.required_for_quotes}}const xs=class{constructor(){this.params=new URLSearchParams}addSingle(e,t){return t?(this.params.append(e,t),this):this}addArray(e,t){return t?(t.forEach(t=>{t&&this.params.append(`${e}[]`,t)}),this):this}build(){return this.params.toString()?`?${this.params.toString()}`:""}},$s=Sr,Ss=e=>new Cs(e),As=e=>new bs(e),Es=async(e,t)=>{try{const n=(new xs).addArray("layout_ids",null==t?void 0:t.map(e=>e.toString())),i=await r().get(`${$s}/platformApi/webchat/${e}/marketable-fees?${n.build()}`);if(i.data){const e=Er(i.data);return{fees:e.fees.map(Ss),rentableItems:e.rentableItems.map(As),buildingIncentives:e.buildingIncentives}}}catch(t){Vo({logType:qo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_FEES]",logData:{error:t},error:t})}return{fees:[],rentableItems:[],buildingIncentives:[]}},Ts=-1,ks=Sr,_s=async({buildingSlug:e,unitId:t,chargeInputs:n,rentableItems:i,leaseTerm:o,moveInDate:a},s)=>{try{const l=await r().post(`${ks}/platformApi/webchat/${e}/quote/calculate`,Tr({unitId:t,chargeInputs:n,rentableItems:i,leaseTerm:o,moveInDate:a}),{signal:s});if(l.data){return Er(l.data)}}catch(t){"ERR_CANCELED"!==t.code&&Vo({logType:qo.error,buildingSlug:e,logTitle:"[ERROR_CALCULATING_QUOTE]",logData:{error:t},error:t})}return{quote:{}}},Os=(e="black")=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
|
|
3766
3766
|
<line x1="1.70782" y1="13.2254" x2="13.2376" y2="1.69554" stroke="${e}" stroke-width="2.13401"/>
|
|
3767
3767
|
<path d="M2.00929 1.99996L13.3328 13.3421" stroke="${e}" stroke-width="2.13401"/>
|
|
3768
|
-
</svg>`,Ps=Sr,Is=async({buildingSlug:e,numBedrooms:t,moveInDateString:n,leaseTerm:i})=>{try{const a=(({numBedrooms:e,moveInDateString:t,leaseTerm:n})=>{const i=new xs;return i.addArray("num_bedrooms",null==e?void 0:e.map(e=>e.toString())).addSingle("move_in_date_earliest",t).addSingle("move_in_date_latest",t).addSingle("lease_term_min",null==n?void 0:n.toString()),i.build()})({numBedrooms:t,moveInDateString:n,leaseTerm:i}),s=await r().get(`${Ps}/platformApi/webchat/${e}/units${a}`);if(s.data){const e=Er(s.data);return o=e.map(e=>({...e,id:parseInt(e.id.toString().substring(1))})),[...o].sort((e,t)=>e.startingPrice-t.startingPrice||e.id-t.id)}}catch(r){Vo({logType:qo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS]",logData:{error:r,params:{numBedrooms:t,moveInDateString:n,leaseTerm:i}},error:r})}var o;return[]},
|
|
3768
|
+
</svg>`,Ps=Sr,Is=async({buildingSlug:e,numBedrooms:t,moveInDateString:n,leaseTerm:i})=>{try{const a=(({numBedrooms:e,moveInDateString:t,leaseTerm:n})=>{const i=new xs;return i.addArray("num_bedrooms",null==e?void 0:e.map(e=>e.toString())).addSingle("move_in_date_earliest",t).addSingle("move_in_date_latest",t).addSingle("lease_term_min",null==n?void 0:n.toString()),i.build()})({numBedrooms:t,moveInDateString:n,leaseTerm:i}),s=await r().get(`${Ps}/platformApi/webchat/${e}/units${a}`);if(s.data){const e=Er(s.data);return o=e.map(e=>({...e,id:parseInt(e.id.toString().substring(1))})),[...o].sort((e,t)=>e.startingPrice-t.startingPrice||e.id-t.id)}}catch(r){Vo({logType:qo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS]",logData:{error:r,params:{numBedrooms:t,moveInDateString:n,leaseTerm:i}},error:r})}var o;return[]},Ms=({color:e="#347FF7",size:t=24}={})=>B`
|
|
3769
3769
|
<svg aria-hidden="true" focusable="false" width="${t}" height="${t}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3770
3770
|
<g id="Frame" clip-path="url(#clip0_18718_332018)">
|
|
3771
3771
|
<path id="Vector" d="M3 12.5C3 13.6819 3.23279 14.8522 3.68508 15.9442C4.13738 17.0361 4.80031 18.0282 5.63604 18.864C6.47177 19.6997 7.46392 20.3626 8.55585 20.8149C9.64778 21.2672 10.8181 21.5 12 21.5C13.1819 21.5 14.3522 21.2672 15.4442 20.8149C16.5361 20.3626 17.5282 19.6997 18.364 18.864C19.1997 18.0282 19.8626 17.0361 20.3149 15.9442C20.7672 14.8522 21 13.6819 21 12.5C21 11.3181 20.7672 10.1478 20.3149 9.05585C19.8626 7.96392 19.1997 6.97177 18.364 6.13604C17.5282 5.30031 16.5361 4.63738 15.4442 4.18508C14.3522 3.73279 13.1819 3.5 12 3.5C10.8181 3.5 9.64778 3.73279 8.55585 4.18508C7.46392 4.63738 6.47177 5.30031 5.63604 6.13604C4.80031 6.97177 4.13738 7.96392 3.68508 9.05585C3.23279 10.1478 3 11.3181 3 12.5Z" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -3778,7 +3778,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3778
3778
|
</clipPath>
|
|
3779
3779
|
</defs>
|
|
3780
3780
|
</svg>
|
|
3781
|
-
`,
|
|
3781
|
+
`,Ns=u`
|
|
3782
3782
|
:host {
|
|
3783
3783
|
display: block;
|
|
3784
3784
|
margin-bottom: 20px;
|
|
@@ -3814,7 +3814,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3814
3814
|
}
|
|
3815
3815
|
`;var Ds=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ls=class extends oe{constructor(){super(...arguments),this.promoAmount="0",this.promoDescription="",this.promoValidity=""}render(){return R`
|
|
3816
3816
|
<div class="promo-card">
|
|
3817
|
-
<div class="icon-container">${
|
|
3817
|
+
<div class="icon-container">${Ms()}</div>
|
|
3818
3818
|
<div class="content-container">
|
|
3819
3819
|
<h2 class="promo-heading">
|
|
3820
3820
|
${this.promoAmount} ${this.promoDescription}
|
|
@@ -3822,7 +3822,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3822
3822
|
<div class="promo-subtitle">${this.promoValidity}</div>
|
|
3823
3823
|
</div>
|
|
3824
3824
|
</div>
|
|
3825
|
-
`}};Ls.styles=
|
|
3825
|
+
`}};Ls.styles=Ns,Ds([ue({type:String})],Ls.prototype,"promoAmount",void 0),Ds([ue({type:String})],Ls.prototype,"promoDescription",void 0),Ds([ue({type:String})],Ls.prototype,"promoValidity",void 0),Ls=Ds([se("promo-card")],Ls);const Us=u`
|
|
3826
3826
|
:host {
|
|
3827
3827
|
display: block;
|
|
3828
3828
|
}
|
|
@@ -5266,7 +5266,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5266
5266
|
}
|
|
5267
5267
|
`;var kl=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let _l=class extends oe{getFormattedEndDate(e){return new Date(e.endDate).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}render(){return this.incentive?R`
|
|
5268
5268
|
<div class="incentive-banner">
|
|
5269
|
-
<div class="incentive-icon">${
|
|
5269
|
+
<div class="incentive-icon">${Ms({size:32})}</div>
|
|
5270
5270
|
<div class="incentive-content">
|
|
5271
5271
|
<h2 class="incentive-title">
|
|
5272
5272
|
${this.incentive.originalIncentiveString}
|
|
@@ -5406,9 +5406,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5406
5406
|
justify-content: center;
|
|
5407
5407
|
align-items: center;
|
|
5408
5408
|
}
|
|
5409
|
-
`,
|
|
5409
|
+
`,Ml=(e="white")=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
|
|
5410
5410
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.46964 0.488343H9.53036C10.898 0.488331 11.9813 0.488321 12.829 0.602304C13.7015 0.719609 14.4077 0.966767 14.9647 1.52369C15.5216 2.08061 15.7687 2.78681 15.886 3.65932C16 4.50711 16 5.59038 16 6.95802V7.04198C16 8.40962 16 9.49289 15.886 10.3407C15.7687 11.2132 15.5216 11.9194 14.9647 12.4763C14.4077 13.0332 13.7015 13.2804 12.829 13.3977C11.9813 13.5117 10.898 13.5117 9.53035 13.5117H6.46965C5.10201 13.5117 4.01875 13.5117 3.17096 13.3977C2.29846 13.2804 1.59227 13.0332 1.03534 12.4763C0.478423 11.9194 0.231266 11.2132 0.113961 10.3407C-2.09587e-05 9.49289 -1.15596e-05 8.40962 2.39342e-07 7.04198V6.95801C-1.15596e-05 5.59037 -2.09587e-05 4.50711 0.113961 3.65932C0.231266 2.78681 0.478423 2.08061 1.03534 1.52369C1.59227 0.966767 2.29846 0.719609 3.17096 0.602304C4.01875 0.488321 5.10201 0.488331 6.46964 0.488343ZM3.3197 1.70863C2.57098 1.8093 2.13962 1.99807 1.82467 2.31302C1.50973 2.62797 1.32095 3.05934 1.22029 3.80806C1.11746 4.57283 1.11628 5.58096 1.11628 7C1.11628 8.41903 1.11746 9.42716 1.22029 10.1919C1.32095 10.9407 1.50973 11.372 1.82467 11.687C2.13962 12.0019 2.57098 12.1907 3.3197 12.2914C4.08447 12.3942 5.0926 12.3954 6.51163 12.3954H9.48837C10.9074 12.3954 11.9155 12.3942 12.6803 12.2914C13.429 12.1907 13.8604 12.0019 14.1753 11.687C14.4903 11.372 14.6791 10.9407 14.7797 10.1919C14.8825 9.42716 14.8837 8.41903 14.8837 7C14.8837 5.58096 14.8825 4.57283 14.7797 3.80806C14.6791 3.05934 14.4903 2.62797 14.1753 2.31302C13.8604 1.99807 13.429 1.8093 12.6803 1.70863C11.9155 1.60581 10.9074 1.60463 9.48837 1.60463H6.51163C5.0926 1.60463 4.08448 1.60581 3.3197 1.70863ZM3.10611 3.66593C3.30345 3.42912 3.65539 3.39713 3.8922 3.59446L5.49882 4.93332C6.19311 5.5119 6.67515 5.9123 7.08211 6.17404C7.47605 6.42741 7.7432 6.51246 8 6.51246C8.2568 6.51246 8.52395 6.42741 8.91789 6.17404C9.32485 5.9123 9.80689 5.5119 10.5012 4.93332L12.1078 3.59446C12.3446 3.39713 12.6966 3.42912 12.8939 3.66593C13.0912 3.90273 13.0592 4.25468 12.8224 4.45202L11.1878 5.81419C10.5282 6.36389 9.99359 6.80943 9.52173 7.11291C9.0302 7.42904 8.5515 7.62875 8 7.62875C7.4485 7.62875 6.9698 7.42904 6.47827 7.11291C6.00641 6.80943 5.47179 6.36389 4.81218 5.81419L3.17757 4.45202C2.94077 4.25468 2.90877 3.90273 3.10611 3.66593Z" fill="${e}"/>
|
|
5411
|
-
</svg>`,
|
|
5411
|
+
</svg>`,Nl=(e="black")=>B`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
|
|
5412
5412
|
<path d="M15.6825 6.11855H0.00653076C0.0588276 4.00052 1.79117 2.30087 3.92226 2.30087H4.41255V3.6083C4.41255 3.88285 4.63481 4.09858 4.90283 4.09858C5.17085 4.09858 5.39311 3.88285 5.39311 3.6083V2.30087H10.2959V3.6083C10.2959 3.88285 10.5182 4.09858 10.7862 4.09858C11.0542 4.09858 11.2765 3.88285 11.2765 3.6083V2.30087H11.7668C13.8979 2.30087 15.6302 4.00052 15.6825 6.11855Z" fill="${e}"/>
|
|
5413
5413
|
<path d="M15.0641 7.39731V14.0677C15.0641 15.8922 13.5861 17.365 11.7668 17.365H3.92227C2.10298 17.365 0.625 15.8922 0.625 14.0677V7.39731H15.0641Z" fill="transparent" stroke="${e}" stroke-width="1.25"/>
|
|
5414
5414
|
<path d="M4.90283 1V2.30742" stroke="${e}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -5533,9 +5533,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5533
5533
|
<ul>
|
|
5534
5534
|
${this.renderListElement(!(!this.hasApplyNowEnabled||!this.applicationLink),this.onClickApplyNowOption,Ll(this.foregroundColorOnSecondaryBackgroundColor),"Apply now")}
|
|
5535
5535
|
${this.renderListElement(this.hasPricingCalculatorEnabled,this.onClickPriceCalculatorOption,Ul(this.foregroundColorOnSecondaryBackgroundColor),"Price calculator")}
|
|
5536
|
-
${this.renderListElement(this.hasEmailEnabled,this.onClickEmailOption,
|
|
5536
|
+
${this.renderListElement(this.hasEmailEnabled,this.onClickEmailOption,Ml(this.foregroundColorOnSecondaryBackgroundColor),"Email us")}
|
|
5537
5537
|
${this.renderListElement(this.hasCallUsEnabled||this.hasTextUsEnabled,this.onClickPhoneOption,us(this.foregroundColorOnSecondaryBackgroundColor),"Call or text us")}
|
|
5538
|
-
${this.renderListElement(this.hasSSTEnabled,this.onClickSSTOption,
|
|
5538
|
+
${this.renderListElement(this.hasSSTEnabled,this.onClickSSTOption,Nl(this.foregroundColorOnSecondaryBackgroundColor),"Book a tour")}
|
|
5539
5539
|
${this.renderListElement(this.hasChatEnabled&&!this.hideChat,this.onChatTapped,Dl(this.foregroundColorOnSecondaryBackgroundColor),"Chat with us")}
|
|
5540
5540
|
${this.isMobileDesign||this.hideChat?"":R`
|
|
5541
5541
|
<li>
|
|
@@ -5624,7 +5624,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5624
5624
|
>
|
|
5625
5625
|
<div class="type-hey__pill-left">
|
|
5626
5626
|
<div class="type-hey__icon">
|
|
5627
|
-
${
|
|
5627
|
+
${Ml(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5628
5628
|
</div>
|
|
5629
5629
|
<div
|
|
5630
5630
|
style=${qn({color:this.foregroundColorOnSecondaryBackgroundColor})}
|
|
@@ -5644,7 +5644,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5644
5644
|
>
|
|
5645
5645
|
<div class="type-hey__pill-left">
|
|
5646
5646
|
<div class="type-hey__icon">
|
|
5647
|
-
${
|
|
5647
|
+
${Nl(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5648
5648
|
</div>
|
|
5649
5649
|
<div
|
|
5650
5650
|
style=${qn({color:this.foregroundColorOnSecondaryBackgroundColor})}
|
|
@@ -5868,7 +5868,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5868
5868
|
>
|
|
5869
5869
|
<div class="vertical-pill-left">
|
|
5870
5870
|
<div class="vertical-pill-icon">
|
|
5871
|
-
${
|
|
5871
|
+
${Nl(e?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5872
5872
|
</div>
|
|
5873
5873
|
<div
|
|
5874
5874
|
class="vertical-pill-title"
|
|
@@ -5891,7 +5891,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5891
5891
|
>
|
|
5892
5892
|
<div class="vertical-pill-left">
|
|
5893
5893
|
<div class="vertical-pill-icon">
|
|
5894
|
-
${
|
|
5894
|
+
${Ml(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5895
5895
|
</div>
|
|
5896
5896
|
<div
|
|
5897
5897
|
class="vertical-pill-title"
|
|
@@ -6125,7 +6125,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6125
6125
|
${Ja}
|
|
6126
6126
|
${es}
|
|
6127
6127
|
${ts}
|
|
6128
|
-
`,Yl([ue({attribute:!0})],Kl.prototype,"isMinimized",void 0),Yl([ue()],Kl.prototype,"mobileStyles",void 0),Yl([ue({type:Boolean})],Kl.prototype,"isFirstMount",void 0),Yl([ue({attribute:!1})],Kl.prototype,"openSSTWindowOnLoad",void 0),Yl([ue({attribute:!1})],Kl.prototype,"autoOpenChatWidget",void 0),Yl([ue()],Kl.prototype,"phoneNumber",void 0),Yl([ue({attribute:!0})],Kl.prototype,"buildingName",void 0),Yl([ue({attribute:!0})],Kl.prototype,"chatId",void 0),Yl([ue({attribute:!0})],Kl.prototype,"orgLegalName",void 0),Yl([ue({attribute:!1})],Kl.prototype,"country",void 0),Yl([ue({attribute:!1})],Kl.prototype,"buildingState",void 0),Yl([ue({attribute:!0})],Kl.prototype,"chatCallUsHeader",void 0),Yl([ue({attribute:!1})],Kl.prototype,"buildingId",void 0),Yl([ue({type:Number})],Kl.prototype,"orgId",void 0),Yl([ue({attribute:!1})],Kl.prototype,"leadSourceParams",void 0),Yl([ue({attribute:!0})],Kl.prototype,"buildingSlug",void 0),Yl([ue({attribute:!0})],Kl.prototype,"orgSlug",void 0),Yl([ue({attribute:!0})],Kl.prototype,"sgtUrl",void 0),Yl([ue({attribute:!0})],Kl.prototype,"selfGuidedTourEnabled",void 0),Yl([ue({attribute:!0})],Kl.prototype,"selfGuidedToursTypeOffered",void 0),Yl([ue({attribute:!0})],Kl.prototype,"designConcept",void 0),Yl([ue({attribute:!0})],Kl.prototype,"featureFlagShowDropdown",void 0),Yl([ue({attribute:!1})],Kl.prototype,"leadSources",void 0),Yl([ue({attribute:!0})],Kl.prototype,"currentLeadSource",void 0),Yl([ue({attribute:!0})],Kl.prototype,"escortedToursLink",void 0),Yl([ue({attribute:!0})],Kl.prototype,"escortedToursTypeOffered",void 0),Yl([ue({attribute:!0})],Kl.prototype,"virtualToursLink",void 0),Yl([ue({attribute:!0})],Kl.prototype,"virtualToursTypeOffered",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasChatEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasChatEnabledMobile",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasEmailEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasEmailEnabledMobile",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasApplyNowEnabledDesktop",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasApplyNowEnabledMobile",void 0),Yl([ue({attribute:!0})],Kl.prototype,"applicationLink",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasCallUsEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasCallUsEnabledMobile",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasTextUsEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasTextUsEnabledMobile",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasSSTEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasSSTEnabledMobile",void 0),Yl([ue({attribute:!1})],Kl.prototype,"tourTypeOptions",void 0),Yl([ue({attribute:!1})],Kl.prototype,"layoutOptions",void 0),Yl([ue({attribute:!0})],Kl.prototype,"bedroomPreferenceRequired",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasDynamicSchedulingEnabled",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasPricingCalculatorEnabledDesktop",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasPricingCalculatorEnabledMobile",void 0),Yl([ue({attribute:!1})],Kl.prototype,"hasHideMobileFeatures",void 0),Yl([ue({type:Number})],Kl.prototype,"right",void 0),Yl([ue({type:Number})],Kl.prototype,"bottom",void 0),Yl([ue({type:Number})],Kl.prototype,"top",void 0),Yl([ue({type:Number})],Kl.prototype,"left",void 0),Yl([ue({attribute:!0})],Kl.prototype,"showTourNextToChat",void 0),Yl([ue({attribute:!1})],Kl.prototype,"onChatTapped",void 0),Yl([ue({attribute:!0})],Kl.prototype,"onClickMinimize",void 0),Yl([ue({attribute:!0})],Kl.prototype,"onSstClose",void 0),Yl([ue({attribute:!0})],Kl.prototype,"overrideRentgrata",void 0),Yl([ue({attribute:!1})],Kl.prototype,"launcherStyles",void 0),Yl([ue({attribute:!0})],Kl.prototype,"primaryColor",void 0),Yl([ue({attribute:!0})],Kl.prototype,"backgroundColor",void 0),Yl([ue({attribute:!0})],Kl.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Yl([ue({attribute:!0})],Kl.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Yl([ue({attribute:!0})],Kl.prototype,"leadSourceClient",void 0),Yl([de()],Kl.prototype,"leadSourceMultitouchClient",void 0),Yl([de()],Kl.prototype,"_isMobile",void 0),Yl([de()],Kl.prototype,"isEmailWindowOpen",void 0),Yl([de()],Kl.prototype,"isCallUsWindowOpen",void 0),Yl([de()],Kl.prototype,"isSSTWindowOpen",void 0),Yl([de()],Kl.prototype,"isTextUsWindowOpen",void 0),Yl([de()],Kl.prototype,"isCalculatorWindowOpen",void 0),Yl([de()],Kl.prototype,"isMobileFeaturesExpanded",void 0),Kl=Yl([se("meetelise-launcher")],Kl);const Xl=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",Kl)},Zl=["app.meetelise.com","staging.eliseai.com","localhost"],Jl={calculator:{desktop:"calcDesktop",mobile:"calcMobile"},email:{desktop:"emailDesktop",mobile:"emailMobile"},call:{desktop:"callDesktop",mobile:"callMobile"},text:{desktop:"textDesktop",mobile:"textMobile"},sst:{desktop:"sstDesktop",mobile:"sstMobile"}},eu=e=>{const t=window.location.hostname;if(!Zl.includes(t))return e;const n=(e=>{if(!e)return{};try{return e.split(",").reduce((e,t)=>{const[n,i]=t.split(":");return n&&i&&n in Jl&&(e[n]="true"===i.toLowerCase()),e},{})}catch(e){return{}}})(new URLSearchParams(window.location.search).get("widgets"));if(0===Object.keys(n).length)return e;const i={...e};return Object.entries(n).forEach(([e,t])=>{const n=Jl[e];n&&(i[n.desktop]=t,i[n.mobile]=t)}),i};var tu=n(5072),nu=n.n(tu),iu=n(7825),ru=n.n(iu),ou=n(7659),au=n.n(ou),su=n(5056),lu=n.n(su),uu=n(540),du=n.n(uu),cu=n(1113),hu=n.n(cu),pu=n(5541),fu={};fu.styleTagTransform=hu(),fu.setAttributes=lu(),fu.insert=au().bind(null,"head"),fu.domAPI=ru(),fu.insertStyleElement=du();nu()(pu.A,fu);pu.A&&pu.A.locals&&pu.A.locals;async function gu(e,t){try{const n=await r().get(`https://app.meetelise.com/platformApi/webchat/${t}/lead-sources`);if(n.data){if("7e352741-1120-4ccf-9929-5dc99193a908"===e){const e=["Zillow","Apartments.com","Google PPC","Google Maps","Apple Maps","Social Media","Print Marketing"];return n.data.filter(t=>e.includes(t))}return mu(n.data,t)}return[]}catch(e){return[]}}const mu=(e,t)=>{let n=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":n=["Forthea - PPC","HotPads","Forthea","Locator","Website-apartmentguide.com","Forthea - organic search","Tdc employee","University newspaper","Nashville apartment locators","Forthea - paid social","Apartment list","Off campus partners","Waze ads","Athletic event","Website-apartment guide"];break;case"d4160560-0f79-11ee-8438-fba837bf3a46":n=["Forthea - PPC","Rentgrata","Website-ApartmentFinder.com","Word of Mouth","Texas A&M A-Frame on Campus","Rent.com","Website-craigslist","Apartment List","Website-apartments.com","Forthea - paid social","Forthea - organic search","Website-apartmentguide.com","Forthea","Uhomes","Phone book","Property - website"];break;default:n=[]}return e.sort(),e.filter(e=>{const t=e.toLowerCase();return!n.map(e=>e.toLowerCase()).includes(t)})};async function yu(e){var t,n;if(!e)return!1;try{return null!==(n=null===(t=(await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/aip`)).data)||void 0===t?void 0:t.is_aip)&&void 0!==n&&n}catch(e){return!1}}var bu,vu=n(8805),wu=n.n(vu),Cu=new Uint8Array(16);function xu(){if(!bu&&!(bu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bu(Cu)}const $u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const Su=function(e){return"string"==typeof e&&$u.test(e)};for(var Au=[],Eu=0;Eu<256;++Eu)Au.push((Eu+256).toString(16).substr(1));const Tu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Au[e[t+0]]+Au[e[t+1]]+Au[e[t+2]]+Au[e[t+3]]+"-"+Au[e[t+4]]+Au[e[t+5]]+"-"+Au[e[t+6]]+Au[e[t+7]]+"-"+Au[e[t+8]]+Au[e[t+9]]+"-"+Au[e[t+10]]+Au[e[t+11]]+Au[e[t+12]]+Au[e[t+13]]+Au[e[t+14]]+Au[e[t+15]]).toLowerCase();if(!Su(n))throw TypeError("Stringified UUID is invalid");return n};const ku=function(e,t,n){var i=(e=e||{}).random||(e.rng||xu)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return Tu(i)},_u=e=>localStorage.removeItem("com.elise.webchat.slug="+e),Ou=(e,t,n)=>{const i=Br(new Date),r=n||`lead_${ku()}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:r,timestamp:i,initiatedChat:t})),{leadId:r,timestamp:qr(i),buildingSlug:e,initiatedChat:t}},Pu=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const n=JSON.parse(t),i={leadId:n.leadId,timestamp:new Date(n.timestamp),buildingSlug:n.buildingSlug,initiatedChat:n.initiatedChat};if(Iu(e,i))return i}catch(e){}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},Iu=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if($r(t.timestamp,e))return!1}}catch(e){}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp)&&!Ir(t.timestamp,24)};var Nu;!function(e){e.noReply="no-reply",e.text="text",e.media="media"}(Nu||(Nu={}));const Mu=e=>e.type===Lu.text,Du=e=>e.type===Lu.media;var Lu;!function(e){e.text="text",e.media="media"}(Lu||(Lu={}));const Uu=class{constructor(e,t,n,i=null,r,o,a=null,s=jc.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingWebchatView=null,this.eliseResponseTimeout=null,this.isWaitingForStreamingMessages=!1,this.firedScheduledTourConfirmationIds=new Set,this.widgetType=jc.Default,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.sessionToken=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t;const n={channel:e.channel,message:e.message,publisher:e.publisher,subscription:e.subscription,timetoken:+e.timetoken};this.rawPubnubMessages=[...this.rawPubnubMessages,n],this.markEveryPreviousNoReplyMessageDone(this.rawPubnubMessages),this.rawPubnubMessages=this.rawPubnubMessages.filter(e=>e.message.messageType!==Nu.noReply),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),this.checkAndHandleDelayStreamingMessages();const i="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;if(null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:i}),!i&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=i,"ai_message"===e.message.customType){const t=e.message.stream_id,n=null!=t?t:String(+e.timetoken);(t?this.reconstructStreamText(t):e.message.text).includes("confirmed for your")&&this.fireScheduledTourEventOnce(n,e.message)}this.checkAndHandleGTMForLeadEmail(e)}},this.isLoadingMessages=!1,this.isFirstChatMessageSent=!1,this.streamingMessageTimeout=null,this.checkAndHandleDelayStreamingMessages=({delayToFetchHistoryInMs:e=1e4}={})=>{this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null);const t=new Map;this.rawPubnubMessages.forEach(e=>{var n;const i=e.message.stream_id;i&&t.set(i,[...null!==(n=t.get(i))&&void 0!==n?n:[],e])});const n=[...t.entries()].filter(([,e])=>!this.isStreamComplete(e)).map(([e])=>e);n.length>0&&(this.streamingMessageTimeout=setTimeout(()=>{Vo({logTitle:"PUBNUB_WARN_DELAYED_STREAMING_MESSAGES",logData:{channel:this.channel},logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),this.getChannelHistory().then(()=>n.forEach(e=>this.checkAndFireTourConfirmationForStream(e)))},e))},this.isStreamComplete=e=>{var t;const n=e.find(e=>e.message.is_done);if(!n)return!1;const i=new Set(e.map(e=>{var t;return null!==(t=e.message.order)&&void 0!==t?t:0}));for(let e=0;e<=(null!==(t=n.message.order)&&void 0!==t?t:0);e++)if(!i.has(e))return!1;return!0},this.getStreamChunks=e=>this.removeDuplicatedRawPubnubMessages(this.rawPubnubMessages).filter(t=>t.message.stream_id===e).sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)}),this.reconstructStreamText=e=>this.getStreamChunks(e).map(e=>e.message.text).join(""),this.fireScheduledTourEventOnce=(e,t)=>{var n;this.firedScheduledTourConfirmationIds.has(e)||(this.firedScheduledTourConfirmationIds.add(e),$o("scheduledTourEvent",{tourDetails:t,buildingId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))},this.checkAndFireTourConfirmationForStream=e=>{var t;if(this.reconstructStreamText(e).includes("confirmed for your")){const n=this.getStreamChunks(e);this.fireScheduledTourEventOnce(e,null===(t=n[n.length-1])||void 0===t?void 0:t.message)}},this.checkAndHandleGTMForLeadEmail=e=>{var t;try{if("lead_message"!==e.message.customType)return;if(!(e=>{try{return/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/.test(e)}catch(e){return!1}})(e.message.text))return;$o("leadProvidedEmail",{buildingId:null===(t=this.buildingWebchatView)||void 0===t?void 0:t.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}catch(e){return}},this.markEveryPreviousNoReplyMessageDone=e=>{var t,n;for(let i=e.length-1;i>=0;i--){const r=null===(t=e[i])||void 0===t?void 0:t.message,o=i>0&&(null===(n=e[i-1])||void 0===n?void 0:n.message);(null==r?void 0:r.messageType)===Nu.noReply&&o&&(o.is_done=!0)}},this.checkMessageChunkValid=e=>{try{return!!e.message&&!!e.message.text&&e.message.text.length>0&&!!e.message.customType}catch(e){return!1}},this.handleChatListeners=()=>{if(this.pubnub&&this.channel)try{this.pubnub.subscribe({channels:[this.channel]}),this.pubnub.addListener(this.listenerParams)}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this.handleDisconnect=()=>{this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null),this.removeChatListeners()},this.removeChatListeners=()=>{this.pubnub&&this.channel&&(this.pubnub.unsubscribe({channels:[this.channel]}),this.pubnub.removeListener(this.listenerParams))},this.sendMessage=async e=>{if(e){if(!this.pubnub){const e=Ou(this.buildingSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken(async()=>{var t,n,i,r,o,a,s,l,u;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout(()=>{this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})},9e4),0===this.simpleChatMessages.length&&(null===(t=this.leadSourceClient)||void 0===t||t.checkAndHandleForLogLeadSource({webchatAction:"chat",stateId:null})),this.widgetType===jc.Utilities?await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),orgSlug:this.orgSlug}}):(await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",buildingId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.id,buildingSlug:this.buildingSlug,userId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.userId,leadSource:this.leadSource,widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),lead_sources_with_timestamps:(null!==(o=null===(r=this.leadSourceMultitouchClient)||void 0===r?void 0:r.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null}))&&void 0!==o?o:[]).map(e=>Tr({...e}))}}),null===(a=this.leadSourceClient)||void 0===a||a.resetLeadSource(),null===(s=this.leadSourceMultitouchClient)||void 0===s||s.resetLeadSourceTouchpoints()),this.isFirstChatMessageSent||($o("firstChatMessageSent",{message:e,buildingId:null===(l=this.buildingWebchatView)||void 0===l?void 0:l.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),$o("chatMessageSent",{message:e,buildingId:null===(u=this.buildingWebchatView)||void 0===u?void 0:u.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))}),!1===this.isLoadingMessages&&(this.isLoadingMessages=!0)}},this.isLeadMessage=e=>e.publisher.includes("lead_")&&"lead_message"===e.message.customType,this.removeDuplicatedRawPubnubMessages=e=>{const t=new Set;return e.filter(e=>{if("lead_message"===e.message.customType||!e.message.stream_id||!e.message.order)return!0;const n=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(n)?(Vo({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(n),!0)})},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],n={};return this.removeDuplicatedRawPubnubMessages(e).forEach(e=>{var i;"media"===e.message.messageType?t.push({timestamp:e.timetoken,media:null!==(i=e.message.media)&&void 0!==i?i:[],isLeadMessage:this.isLeadMessage(e),type:Lu.media}):!e.message.stream_id||e.message.is_done&&0===e.message.order?t.push({timestamp:e.timetoken,message:e.message.text,isLeadMessage:this.isLeadMessage(e),chunks:[{text:e.message.text,order:0,isDone:!0}],type:Lu.text}):n[e.message.stream_id]?n[e.message.stream_id].push(e):n[e.message.stream_id]=[e]}),Object.keys(n).forEach(e=>{const i=n[e],r=this.getConsecutiveChunks(i.sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)})),o=r.map(e=>e.message.text).join(""),a=r[0],s={timestamp:a.timetoken,message:o,isLeadMessage:this.isLeadMessage(a),chunks:r.map(e=>{var t,n;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(n=e.message.is_done)&&void 0!==n&&n}}),type:Lu.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(r),t.push(s)}),t.sort((e,t)=>e.timestamp-t.timestamp),t},this.getConsecutiveChunks=e=>{var t,n;const i=e.sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)}),r=[];let o=null!==(t=i[0].message.order)&&void 0!==t?t:0;for(const e of i){if((null!==(n=e.message.order)&&void 0!==n?n:-1)!==o)break;r.push(e),o++}return r},this.isMessageStillStreamingChunks=e=>{const t=e.find(e=>e.message.is_done);return!t||e.length===t.message.order},this.buildingSlug=e,this.buildingWebchatView=t,this.orgSlug=n,this.leadSource=i,this.leadUserId=r,this.channel=`webchat_${r}`,this.leadSourceClient=a,this.leadSourceMultitouchClient=o,this.widgetType=s}async initSession(e,t,n){try{const i={building_slug:e,org_slug:t};n&&(i.lead_id=n);const o=await r().post(`${this.apiHost}/platformApi/webchat/init`,i);return this.sessionToken=o.data.session_token,this.leadUserId=o.data.lead_id,this.channel=o.data.channel,o.data}catch(e){return this.buildingWebchatView&&Vo({logTitle:"WEBCHAT_INIT_SESSION_ERROR",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e}),null}}addChatListener(e){this.chatListener=e}async initializePubnub(e){if(!e.leadId)return;this.leadUserId=e.leadId;const t=await this.fetchToken(this.leadUserId,this.channel);return t?(this.pubnub=new(wu())({publishKey:t.keys.publish_key,subscribeKey:t.keys.subscribe_key,userId:this.leadUserId,authKey:t.auth.result.token,origin:"meetelise.pubnubapi.com"}),this.withAuthToken(()=>new Promise(()=>this.handleChatListeners())),await this.withAuthToken(()=>this.getChannelHistory()),this.pubnub):void 0}async fetchToken(e,t){try{if(this.sessionToken){const e="healthcare"===this.widgetType?"?industry=health_care":"";return(await r().get(`${this.apiHost}/platformApi/webchat/pn/v2/request-token${e}`,{headers:{"X-Session-Token":this.sessionToken}})).data}return(await r().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${t}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}return null}async fetchChannelExists(e){try{return(await r().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}return!1}async withAuthToken(e){try{await e()}catch(t){if(t instanceof i.AxiosError&&t&&t.response&&403===t.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const t=await this.fetchToken(this.leadUserId,this.channel);if(!t)return;this.pubnub.setAuthKey(t.auth.result.token),await e()}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}}}async getChannelHistory(e=1500){var t;try{let n=[],i=null;const r=100;for(let t=0;t<e;t+=r){const o=await new Promise((n,o)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(r,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=i?i:void 0},(e,t)=>{e.error?o(e):n(t)})}),a=o.channels[this.channel];if(!a)break;if(a.sort((e,t)=>+e.timetoken-+t.timetoken),!a||0===a.length)break;if(this.channel&&0!==Object.keys(o.channels).length){const e=o.channels[this.channel],t=[];e.forEach(e=>{e.uuid&&t.push({channel:e.channel,message:e.message,publisher:e.uuid,subscription:e.channel,timetoken:+e.timetoken})}),this.markEveryPreviousNoReplyMessageDone(t),n=n.concat(t.filter(e=>e.message.messageType!==Nu.noReply))}if(i=a[0].timetoken,n.length>=e||a.length<r)break}this.rawPubnubMessages=n.slice(0,e),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:!1})}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}}shouldCreateAsDevState(){return location.href.startsWith("https://app.meetelise.com/settings/widgets")||location.href.includes("demo/utilities")}},Ru=new Set(["8009855990","8338526262","8002221222","8006624357","8002738255","8007997233","8007874889","8006564673","8004224453","8883737888","8006213362","8009506264","8558272736","8008435678","8007862929","8008523836","8007849433","8007729100","8006699777","8006858470","8004322209","8003473735","8008778339","8009552232","8002255342","8009272891","8003049320","8007937724","8002382333","8003353863","8776858878","8003329227","8776554371","8772944357","8772944356","6092925760","6092926735","8007928339","8008329173","8882853036","6092921210","8007929773","8003561561","8003826717","8005727233","8009291040","8888958179","8006879512","8004262537","8773475463","8774149251","8005103102","8889372835","8007010710","8007010720","8774288844","8007929745","8003283838","6092927060","6092928319","8008527899","8662401347","8009923678","8776522873","8776527624","8003313937","8008435437","8776536783","8778392339","8003676274","8006896411"]),Bu=e=>{const t=e.replace(/\D/g,"").replace(/^1(\d{10})$/,"$1");return Ru.has(t)},ju=(e,t,n)=>{try{const i=e.replace(/\D/g,"").replace(/^1(\d{10})$/,"$1"),r=`tel:${i}`,o=`sms:${i}`,a=`whatsapp://send?phone=${i}`,s=`facetime:${i}`,l=`facetime-audio:${i}`,u=/(?:\+1[\s.-]?)?(?:\([2-9]\d{2}\)[\s.-]?|[2-9]\d{2}[\s.-])[2-9]\d{2}[\s.-]?\d{4}/g,d=/(tel|sms):(?:\+1\s)?(?:(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}|\d{10,11})/g,c=/whatsapp:\/\/send\?phone=\d+/g,h=/(facetime|facetime-audio):\d+/g,p=/emergency|emergencia/i,f=300,g=e=>!(!e||e.length>f)&&p.test(e),m=e=>{var t,n,i,r;if(g(e.textContent))return!0;if(g(null===(t=e.previousElementSibling)||void 0===t?void 0:t.textContent)||g(null===(n=e.nextElementSibling)||void 0===n?void 0:n.textContent))return!0;const o=e.parentElement;return!(!o||!g(null===(i=o.previousElementSibling)||void 0===i?void 0:i.textContent)&&!g(null===(r=o.nextElementSibling)||void 0===r?void 0:r.textContent))},y=document.body.getElementsByTagName("*");let b=!1;const v=i.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let w=!1,C=!1,x=0;for(let e=0;e<y.length;e++)if(y[e].nodeType===Node.ELEMENT_NODE&&!m(y[e])){if(1===y[e].childNodes.length&&y[e].childNodes[0].nodeType==Node.TEXT_NODE){const t=y[e].textContent;if(!t)continue;const n=t.replace(u,e=>{if(Bu(e))return e;return e.startsWith("+1 ")?`+1 ${v}`:v});t!==n&&(x++,y[e].textContent=n),b=!0,w||(w=!0)}if(y[e].hasAttribute("href")){const t=y[e].getAttribute("href");if(!t)continue;let n="",i=d;if(t.startsWith("sms:")?n=o:t.startsWith("whatsapp:")?(n=a,i=c):t.startsWith("facetime:")?(n=s,i=h):t.startsWith("facetime-audio:")?(n=l,i=h):n=r,Bu(t))continue;const u=t.replace(i,n);if(y[e].setAttribute("href",u),(t.startsWith("tel:")||t.startsWith("sms:"))&&u===t&&u!==n){t.replace(/\D/g,"").length>=7&&y[e].setAttribute("href",t.startsWith("tel:")?r:o)}C||(C=!0)}}return w&&Vo({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:v,website:window.location.href},logType:qo.info,buildingSlug:n,orgSlug:t}),C&&Vo({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:v,website:window.location.href},logType:qo.info,buildingSlug:n,orgSlug:t}),b||Vo({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:qo.warn,buildingSlug:n,orgSlug:t}),x}catch(e){return Vo({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"insertion-error",error:e instanceof Error?e.message:String(e),website:window.location.href},logType:qo.error,buildingSlug:n,orgSlug:t,error:e}),0}},Fu=(e,t,n,i)=>{document.querySelectorAll("a").forEach(function(r){const o=r.getAttribute("href");o&&o.startsWith("https://app.meetelise.com/")&&((e,t,n)=>{const[i,r,o,...a]=new URL(e).pathname.split("/").filter(Boolean).map(e=>e.toLowerCase());return 0===a.length&&"tour"===o&&i===t.toLowerCase()&&r===n.toLowerCase()})(o,t,n)&&r.addEventListener("click",t=>{i()&&(t.preventDefault(),e(t))})})};var Hu=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Gu=class extends oe{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Vn,this.foregroundColorOnPrimaryBackgroundColor="white",this.toExpand=!1}render(){return R`
|
|
6128
|
+
`,Yl([ue({attribute:!0})],Kl.prototype,"isMinimized",void 0),Yl([ue()],Kl.prototype,"mobileStyles",void 0),Yl([ue({type:Boolean})],Kl.prototype,"isFirstMount",void 0),Yl([ue({attribute:!1})],Kl.prototype,"openSSTWindowOnLoad",void 0),Yl([ue({attribute:!1})],Kl.prototype,"autoOpenChatWidget",void 0),Yl([ue()],Kl.prototype,"phoneNumber",void 0),Yl([ue({attribute:!0})],Kl.prototype,"buildingName",void 0),Yl([ue({attribute:!0})],Kl.prototype,"chatId",void 0),Yl([ue({attribute:!0})],Kl.prototype,"orgLegalName",void 0),Yl([ue({attribute:!1})],Kl.prototype,"country",void 0),Yl([ue({attribute:!1})],Kl.prototype,"buildingState",void 0),Yl([ue({attribute:!0})],Kl.prototype,"chatCallUsHeader",void 0),Yl([ue({attribute:!1})],Kl.prototype,"buildingId",void 0),Yl([ue({type:Number})],Kl.prototype,"orgId",void 0),Yl([ue({attribute:!1})],Kl.prototype,"leadSourceParams",void 0),Yl([ue({attribute:!0})],Kl.prototype,"buildingSlug",void 0),Yl([ue({attribute:!0})],Kl.prototype,"orgSlug",void 0),Yl([ue({attribute:!0})],Kl.prototype,"sgtUrl",void 0),Yl([ue({attribute:!0})],Kl.prototype,"selfGuidedTourEnabled",void 0),Yl([ue({attribute:!0})],Kl.prototype,"selfGuidedToursTypeOffered",void 0),Yl([ue({attribute:!0})],Kl.prototype,"designConcept",void 0),Yl([ue({attribute:!0})],Kl.prototype,"featureFlagShowDropdown",void 0),Yl([ue({attribute:!1})],Kl.prototype,"leadSources",void 0),Yl([ue({attribute:!0})],Kl.prototype,"currentLeadSource",void 0),Yl([ue({attribute:!0})],Kl.prototype,"escortedToursLink",void 0),Yl([ue({attribute:!0})],Kl.prototype,"escortedToursTypeOffered",void 0),Yl([ue({attribute:!0})],Kl.prototype,"virtualToursLink",void 0),Yl([ue({attribute:!0})],Kl.prototype,"virtualToursTypeOffered",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasChatEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasChatEnabledMobile",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasEmailEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasEmailEnabledMobile",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasApplyNowEnabledDesktop",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasApplyNowEnabledMobile",void 0),Yl([ue({attribute:!0})],Kl.prototype,"applicationLink",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasCallUsEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasCallUsEnabledMobile",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasTextUsEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasTextUsEnabledMobile",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasSSTEnabledDesktop",void 0),Yl([ue({type:Boolean})],Kl.prototype,"hasSSTEnabledMobile",void 0),Yl([ue({attribute:!1})],Kl.prototype,"tourTypeOptions",void 0),Yl([ue({attribute:!1})],Kl.prototype,"layoutOptions",void 0),Yl([ue({attribute:!0})],Kl.prototype,"bedroomPreferenceRequired",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasDynamicSchedulingEnabled",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasPricingCalculatorEnabledDesktop",void 0),Yl([ue({attribute:!0})],Kl.prototype,"hasPricingCalculatorEnabledMobile",void 0),Yl([ue({attribute:!1})],Kl.prototype,"hasHideMobileFeatures",void 0),Yl([ue({type:Number})],Kl.prototype,"right",void 0),Yl([ue({type:Number})],Kl.prototype,"bottom",void 0),Yl([ue({type:Number})],Kl.prototype,"top",void 0),Yl([ue({type:Number})],Kl.prototype,"left",void 0),Yl([ue({attribute:!0})],Kl.prototype,"showTourNextToChat",void 0),Yl([ue({attribute:!1})],Kl.prototype,"onChatTapped",void 0),Yl([ue({attribute:!0})],Kl.prototype,"onClickMinimize",void 0),Yl([ue({attribute:!0})],Kl.prototype,"onSstClose",void 0),Yl([ue({attribute:!0})],Kl.prototype,"overrideRentgrata",void 0),Yl([ue({attribute:!1})],Kl.prototype,"launcherStyles",void 0),Yl([ue({attribute:!0})],Kl.prototype,"primaryColor",void 0),Yl([ue({attribute:!0})],Kl.prototype,"backgroundColor",void 0),Yl([ue({attribute:!0})],Kl.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Yl([ue({attribute:!0})],Kl.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Yl([ue({attribute:!0})],Kl.prototype,"leadSourceClient",void 0),Yl([de()],Kl.prototype,"leadSourceMultitouchClient",void 0),Yl([de()],Kl.prototype,"_isMobile",void 0),Yl([de()],Kl.prototype,"isEmailWindowOpen",void 0),Yl([de()],Kl.prototype,"isCallUsWindowOpen",void 0),Yl([de()],Kl.prototype,"isSSTWindowOpen",void 0),Yl([de()],Kl.prototype,"isTextUsWindowOpen",void 0),Yl([de()],Kl.prototype,"isCalculatorWindowOpen",void 0),Yl([de()],Kl.prototype,"isMobileFeaturesExpanded",void 0),Kl=Yl([se("meetelise-launcher")],Kl);const Xl=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",Kl)},Zl=["app.meetelise.com","staging.eliseai.com","localhost"],Jl={calculator:{desktop:"calcDesktop",mobile:"calcMobile"},email:{desktop:"emailDesktop",mobile:"emailMobile"},call:{desktop:"callDesktop",mobile:"callMobile"},text:{desktop:"textDesktop",mobile:"textMobile"},sst:{desktop:"sstDesktop",mobile:"sstMobile"}},eu=e=>{const t=window.location.hostname;if(!Zl.includes(t))return e;const n=(e=>{if(!e)return{};try{return e.split(",").reduce((e,t)=>{const[n,i]=t.split(":");return n&&i&&n in Jl&&(e[n]="true"===i.toLowerCase()),e},{})}catch(e){return{}}})(new URLSearchParams(window.location.search).get("widgets"));if(0===Object.keys(n).length)return e;const i={...e};return Object.entries(n).forEach(([e,t])=>{const n=Jl[e];n&&(i[n.desktop]=t,i[n.mobile]=t)}),i};var tu=n(5072),nu=n.n(tu),iu=n(7825),ru=n.n(iu),ou=n(7659),au=n.n(ou),su=n(5056),lu=n.n(su),uu=n(540),du=n.n(uu),cu=n(1113),hu=n.n(cu),pu=n(5541),fu={};fu.styleTagTransform=hu(),fu.setAttributes=lu(),fu.insert=au().bind(null,"head"),fu.domAPI=ru(),fu.insertStyleElement=du();nu()(pu.A,fu);pu.A&&pu.A.locals&&pu.A.locals;async function gu(e,t){try{const n=await r().get(`https://app.meetelise.com/platformApi/webchat/${t}/lead-sources`);if(n.data){if("7e352741-1120-4ccf-9929-5dc99193a908"===e){const e=["Zillow","Apartments.com","Google PPC","Google Maps","Apple Maps","Social Media","Print Marketing"];return n.data.filter(t=>e.includes(t))}return mu(n.data,t)}return[]}catch(e){return[]}}const mu=(e,t)=>{let n=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":n=["Forthea - PPC","HotPads","Forthea","Locator","Website-apartmentguide.com","Forthea - organic search","Tdc employee","University newspaper","Nashville apartment locators","Forthea - paid social","Apartment list","Off campus partners","Waze ads","Athletic event","Website-apartment guide"];break;case"d4160560-0f79-11ee-8438-fba837bf3a46":n=["Forthea - PPC","Rentgrata","Website-ApartmentFinder.com","Word of Mouth","Texas A&M A-Frame on Campus","Rent.com","Website-craigslist","Apartment List","Website-apartments.com","Forthea - paid social","Forthea - organic search","Website-apartmentguide.com","Forthea","Uhomes","Phone book","Property - website"];break;default:n=[]}return e.sort(),e.filter(e=>{const t=e.toLowerCase();return!n.map(e=>e.toLowerCase()).includes(t)})};async function yu(e){var t,n;if(!e)return!1;try{return null!==(n=null===(t=(await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/aip`)).data)||void 0===t?void 0:t.is_aip)&&void 0!==n&&n}catch(e){return!1}}var bu,vu=n(8805),wu=n.n(vu),Cu=new Uint8Array(16);function xu(){if(!bu&&!(bu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bu(Cu)}const $u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const Su=function(e){return"string"==typeof e&&$u.test(e)};for(var Au=[],Eu=0;Eu<256;++Eu)Au.push((Eu+256).toString(16).substr(1));const Tu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Au[e[t+0]]+Au[e[t+1]]+Au[e[t+2]]+Au[e[t+3]]+"-"+Au[e[t+4]]+Au[e[t+5]]+"-"+Au[e[t+6]]+Au[e[t+7]]+"-"+Au[e[t+8]]+Au[e[t+9]]+"-"+Au[e[t+10]]+Au[e[t+11]]+Au[e[t+12]]+Au[e[t+13]]+Au[e[t+14]]+Au[e[t+15]]).toLowerCase();if(!Su(n))throw TypeError("Stringified UUID is invalid");return n};const ku=function(e,t,n){var i=(e=e||{}).random||(e.rng||xu)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return Tu(i)},_u=e=>localStorage.removeItem("com.elise.webchat.slug="+e),Ou=(e,t,n)=>{const i=Br(new Date),r=n||`lead_${ku()}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:r,timestamp:i,initiatedChat:t})),{leadId:r,timestamp:qr(i),buildingSlug:e,initiatedChat:t}},Pu=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const n=JSON.parse(t),i={leadId:n.leadId,timestamp:new Date(n.timestamp),buildingSlug:n.buildingSlug,initiatedChat:n.initiatedChat};if(Iu(e,i))return i}catch(e){}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},Iu=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if($r(t.timestamp,e))return!1}}catch(e){}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp)&&!Ir(t.timestamp,24)};var Mu;!function(e){e.noReply="no-reply",e.text="text",e.media="media"}(Mu||(Mu={}));const Nu=e=>e.type===Lu.text,Du=e=>e.type===Lu.media;var Lu;!function(e){e.text="text",e.media="media"}(Lu||(Lu={}));const Uu=class{constructor(e,t,n,i=null,r,o,a=null,s=jc.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingWebchatView=null,this.eliseResponseTimeout=null,this.isWaitingForStreamingMessages=!1,this.firedScheduledTourConfirmationIds=new Set,this.widgetType=jc.Default,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.sessionToken=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t;const n={channel:e.channel,message:e.message,publisher:e.publisher,subscription:e.subscription,timetoken:+e.timetoken};this.rawPubnubMessages=[...this.rawPubnubMessages,n],this.markEveryPreviousNoReplyMessageDone(this.rawPubnubMessages),this.rawPubnubMessages=this.rawPubnubMessages.filter(e=>e.message.messageType!==Mu.noReply),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),this.checkAndHandleDelayStreamingMessages();const i="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;if(null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:i}),!i&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=i,"ai_message"===e.message.customType){const t=e.message.stream_id,n=null!=t?t:String(+e.timetoken);(t?this.reconstructStreamText(t):e.message.text).includes("confirmed for your")&&this.fireScheduledTourEventOnce(n,e.message)}this.checkAndHandleGTMForLeadEmail(e)}},this.isLoadingMessages=!1,this.isFirstChatMessageSent=!1,this.streamingMessageTimeout=null,this.checkAndHandleDelayStreamingMessages=({delayToFetchHistoryInMs:e=1e4}={})=>{this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null);const t=new Map;this.rawPubnubMessages.forEach(e=>{var n;const i=e.message.stream_id;i&&t.set(i,[...null!==(n=t.get(i))&&void 0!==n?n:[],e])});const n=[...t.entries()].filter(([,e])=>!this.isStreamComplete(e)).map(([e])=>e);n.length>0&&(this.streamingMessageTimeout=setTimeout(()=>{Vo({logTitle:"PUBNUB_WARN_DELAYED_STREAMING_MESSAGES",logData:{channel:this.channel},logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),this.getChannelHistory().then(()=>n.forEach(e=>this.checkAndFireTourConfirmationForStream(e)))},e))},this.isStreamComplete=e=>{var t;const n=e.find(e=>e.message.is_done);if(!n)return!1;const i=new Set(e.map(e=>{var t;return null!==(t=e.message.order)&&void 0!==t?t:0}));for(let e=0;e<=(null!==(t=n.message.order)&&void 0!==t?t:0);e++)if(!i.has(e))return!1;return!0},this.getStreamChunks=e=>this.removeDuplicatedRawPubnubMessages(this.rawPubnubMessages).filter(t=>t.message.stream_id===e).sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)}),this.reconstructStreamText=e=>this.getStreamChunks(e).map(e=>e.message.text).join(""),this.fireScheduledTourEventOnce=(e,t)=>{var n;this.firedScheduledTourConfirmationIds.has(e)||(this.firedScheduledTourConfirmationIds.add(e),$o("scheduledTourEvent",{tourDetails:t,buildingId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))},this.checkAndFireTourConfirmationForStream=e=>{var t;if(this.reconstructStreamText(e).includes("confirmed for your")){const n=this.getStreamChunks(e);this.fireScheduledTourEventOnce(e,null===(t=n[n.length-1])||void 0===t?void 0:t.message)}},this.checkAndHandleGTMForLeadEmail=e=>{var t;try{if("lead_message"!==e.message.customType)return;if(!(e=>{try{return/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/.test(e)}catch(e){return!1}})(e.message.text))return;$o("leadProvidedEmail",{buildingId:null===(t=this.buildingWebchatView)||void 0===t?void 0:t.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}catch(e){return}},this.markEveryPreviousNoReplyMessageDone=e=>{var t,n;for(let i=e.length-1;i>=0;i--){const r=null===(t=e[i])||void 0===t?void 0:t.message,o=i>0&&(null===(n=e[i-1])||void 0===n?void 0:n.message);(null==r?void 0:r.messageType)===Mu.noReply&&o&&(o.is_done=!0)}},this.checkMessageChunkValid=e=>{try{return!!e.message&&!!e.message.text&&e.message.text.length>0&&!!e.message.customType}catch(e){return!1}},this.handleChatListeners=()=>{if(this.pubnub&&this.channel)try{this.pubnub.subscribe({channels:[this.channel]}),this.pubnub.addListener(this.listenerParams)}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}},this.handleDisconnect=()=>{this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null),this.removeChatListeners()},this.removeChatListeners=()=>{this.pubnub&&this.channel&&(this.pubnub.unsubscribe({channels:[this.channel]}),this.pubnub.removeListener(this.listenerParams))},this.sendMessage=async e=>{if(e){if(!this.pubnub){const e=Ou(this.buildingSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken(async()=>{var t,n,i,r,o,a,s,l,u;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout(()=>{this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})},9e4),0===this.simpleChatMessages.length&&(null===(t=this.leadSourceClient)||void 0===t||t.checkAndHandleForLogLeadSource({webchatAction:"chat",stateId:null})),this.widgetType===jc.Utilities?await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),orgSlug:this.orgSlug}}):(await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",buildingId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.id,buildingSlug:this.buildingSlug,userId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.userId,leadSource:this.leadSource,widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),lead_sources_with_timestamps:(null!==(o=null===(r=this.leadSourceMultitouchClient)||void 0===r?void 0:r.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null}))&&void 0!==o?o:[]).map(e=>Tr({...e}))}}),null===(a=this.leadSourceClient)||void 0===a||a.resetLeadSource(),null===(s=this.leadSourceMultitouchClient)||void 0===s||s.resetLeadSourceTouchpoints()),this.isFirstChatMessageSent||($o("firstChatMessageSent",{message:e,buildingId:null===(l=this.buildingWebchatView)||void 0===l?void 0:l.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),$o("chatMessageSent",{message:e,buildingId:null===(u=this.buildingWebchatView)||void 0===u?void 0:u.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))}),!1===this.isLoadingMessages&&(this.isLoadingMessages=!0)}},this.isLeadMessage=e=>e.publisher.includes("lead_")&&"lead_message"===e.message.customType,this.removeDuplicatedRawPubnubMessages=e=>{const t=new Set;return e.filter(e=>{if("lead_message"===e.message.customType||!e.message.stream_id||!e.message.order)return!0;const n=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(n)?(Vo({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(n),!0)})},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],n={};return this.removeDuplicatedRawPubnubMessages(e).forEach(e=>{var i;"media"===e.message.messageType?t.push({timestamp:e.timetoken,media:null!==(i=e.message.media)&&void 0!==i?i:[],isLeadMessage:this.isLeadMessage(e),type:Lu.media}):!e.message.stream_id||e.message.is_done&&0===e.message.order?t.push({timestamp:e.timetoken,message:e.message.text,isLeadMessage:this.isLeadMessage(e),chunks:[{text:e.message.text,order:0,isDone:!0}],type:Lu.text}):n[e.message.stream_id]?n[e.message.stream_id].push(e):n[e.message.stream_id]=[e]}),Object.keys(n).forEach(e=>{const i=n[e],r=this.getConsecutiveChunks(i.sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)})),o=r.map(e=>e.message.text).join(""),a=r[0],s={timestamp:a.timetoken,message:o,isLeadMessage:this.isLeadMessage(a),chunks:r.map(e=>{var t,n;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(n=e.message.is_done)&&void 0!==n&&n}}),type:Lu.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(r),t.push(s)}),t.sort((e,t)=>e.timestamp-t.timestamp),t},this.getConsecutiveChunks=e=>{var t,n;const i=e.sort((e,t)=>{var n,i;return(null!==(n=e.message.order)&&void 0!==n?n:0)-(null!==(i=t.message.order)&&void 0!==i?i:0)}),r=[];let o=null!==(t=i[0].message.order)&&void 0!==t?t:0;for(const e of i){if((null!==(n=e.message.order)&&void 0!==n?n:-1)!==o)break;r.push(e),o++}return r},this.isMessageStillStreamingChunks=e=>{const t=e.find(e=>e.message.is_done);return!t||e.length===t.message.order},this.buildingSlug=e,this.buildingWebchatView=t,this.orgSlug=n,this.leadSource=i,this.leadUserId=r,this.channel=`webchat_${r}`,this.leadSourceClient=a,this.leadSourceMultitouchClient=o,this.widgetType=s}async initSession(e,t,n){try{const i={building_slug:e,org_slug:t};n&&(i.lead_id=n);const o=await r().post(`${this.apiHost}/platformApi/webchat/init`,i);return this.sessionToken=o.data.session_token,this.leadUserId=o.data.lead_id,this.channel=o.data.channel,o.data}catch(e){return this.buildingWebchatView&&Vo({logTitle:"WEBCHAT_INIT_SESSION_ERROR",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e}),null}}addChatListener(e){this.chatListener=e}async initializePubnub(e){if(!e.leadId)return;this.leadUserId=e.leadId;const t=await this.fetchToken(this.leadUserId,this.channel);return t?(this.pubnub=new(wu())({publishKey:t.keys.publish_key,subscribeKey:t.keys.subscribe_key,userId:this.leadUserId,authKey:t.auth.result.token,origin:"meetelise.pubnubapi.com"}),this.withAuthToken(()=>new Promise(()=>this.handleChatListeners())),await this.withAuthToken(()=>this.getChannelHistory()),this.pubnub):void 0}async fetchToken(e,t){try{if(this.sessionToken){const e="healthcare"===this.widgetType?"?industry=health_care":"";return(await r().get(`${this.apiHost}/platformApi/webchat/pn/v2/request-token${e}`,{headers:{"X-Session-Token":this.sessionToken}})).data}return(await r().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${t}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}return null}async fetchChannelExists(e){try{return(await r().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}return!1}async withAuthToken(e){try{await e()}catch(t){if(t instanceof i.AxiosError&&t&&t.response&&403===t.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const t=await this.fetchToken(this.leadUserId,this.channel);if(!t)return;this.pubnub.setAuthKey(t.auth.result.token),await e()}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:qo.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}}}async getChannelHistory(e=1500){var t;try{let n=[],i=null;const r=100;for(let t=0;t<e;t+=r){const o=await new Promise((n,o)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(r,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=i?i:void 0},(e,t)=>{e.error?o(e):n(t)})}),a=o.channels[this.channel];if(!a)break;if(a.sort((e,t)=>+e.timetoken-+t.timetoken),!a||0===a.length)break;if(this.channel&&0!==Object.keys(o.channels).length){const e=o.channels[this.channel],t=[];e.forEach(e=>{e.uuid&&t.push({channel:e.channel,message:e.message,publisher:e.uuid,subscription:e.channel,timetoken:+e.timetoken})}),this.markEveryPreviousNoReplyMessageDone(t),n=n.concat(t.filter(e=>e.message.messageType!==Mu.noReply))}if(i=a[0].timetoken,n.length>=e||a.length<r)break}this.rawPubnubMessages=n.slice(0,e),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:!1})}catch(e){this.buildingWebchatView&&Vo({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,error:e})}}shouldCreateAsDevState(){return location.href.startsWith("https://app.meetelise.com/settings/widgets")||location.href.includes("demo/utilities")}},Ru=new Set(["8009855990","8338526262","8002221222","8006624357","8002738255","8007997233","8007874889","8006564673","8004224453","8883737888","8006213362","8009506264","8558272736","8008435678","8007862929","8008523836","8007849433","8007729100","8006699777","8006858470","8004322209","8003473735","8008778339","8009552232","8002255342","8009272891","8003049320","8007937724","8002382333","8003353863","8776858878","8003329227","8776554371","8772944357","8772944356","6092925760","6092926735","8007928339","8008329173","8882853036","6092921210","8007929773","8003561561","8003826717","8005727233","8009291040","8888958179","8006879512","8004262537","8773475463","8774149251","8005103102","8889372835","8007010710","8007010720","8774288844","8007929745","8003283838","6092927060","6092928319","8008527899","8662401347","8009923678","8776522873","8776527624","8003313937","8008435437","8776536783","8778392339","8003676274","8006896411"]),Bu=e=>{const t=e.replace(/\D/g,"").replace(/^1(\d{10})$/,"$1");return Ru.has(t)},ju=(e,t,n)=>{try{const i=e.replace(/\D/g,"").replace(/^1(\d{10})$/,"$1"),r=`tel:${i}`,o=`sms:${i}`,a=`whatsapp://send?phone=${i}`,s=`facetime:${i}`,l=`facetime-audio:${i}`,u=/(?:\+1[\s.-]?)?(?:\([2-9]\d{2}\)[\s.-]?|[2-9]\d{2}[\s.-])[2-9]\d{2}[\s.-]?\d{4}/g,d=/(tel|sms):(?:\+1\s)?(?:(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}|\d{10,11})/g,c=/whatsapp:\/\/send\?phone=\d+/g,h=/(facetime|facetime-audio):\d+/g,p=/emergency|emergencia/i,f=300,g=e=>!(!e||e.length>f)&&p.test(e),m=e=>{var t,n,i,r;if(g(e.textContent))return!0;if(g(null===(t=e.previousElementSibling)||void 0===t?void 0:t.textContent)||g(null===(n=e.nextElementSibling)||void 0===n?void 0:n.textContent))return!0;const o=e.parentElement;return!(!o||!g(null===(i=o.previousElementSibling)||void 0===i?void 0:i.textContent)&&!g(null===(r=o.nextElementSibling)||void 0===r?void 0:r.textContent))},y=document.body.getElementsByTagName("*");let b=!1;const v=i.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let w=!1,C=!1,x=0;for(let e=0;e<y.length;e++)if(y[e].nodeType===Node.ELEMENT_NODE&&!m(y[e])){if(1===y[e].childNodes.length&&y[e].childNodes[0].nodeType==Node.TEXT_NODE){const t=y[e].textContent;if(!t)continue;const n=t.replace(u,e=>{if(Bu(e))return e;return e.startsWith("+1 ")?`+1 ${v}`:v});t!==n&&(x++,y[e].textContent=n),b=!0,w||(w=!0)}if(y[e].hasAttribute("href")){const t=y[e].getAttribute("href");if(!t)continue;let n="",i=d;if(t.startsWith("sms:")?n=o:t.startsWith("whatsapp:")?(n=a,i=c):t.startsWith("facetime:")?(n=s,i=h):t.startsWith("facetime-audio:")?(n=l,i=h):n=r,Bu(t))continue;const u=t.replace(i,n);if(y[e].setAttribute("href",u),(t.startsWith("tel:")||t.startsWith("sms:"))&&u===t&&u!==n){t.replace(/\D/g,"").length>=7&&y[e].setAttribute("href",t.startsWith("tel:")?r:o)}C||(C=!0)}}return w&&Vo({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:v,website:window.location.href},logType:qo.info,buildingSlug:n,orgSlug:t}),C&&Vo({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:v,website:window.location.href},logType:qo.info,buildingSlug:n,orgSlug:t}),b||Vo({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:qo.warn,buildingSlug:n,orgSlug:t}),x}catch(e){return Vo({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"insertion-error",error:e instanceof Error?e.message:String(e),website:window.location.href},logType:qo.error,buildingSlug:n,orgSlug:t,error:e}),0}},Fu=(e,t,n,i)=>{document.querySelectorAll("a").forEach(function(r){const o=r.getAttribute("href");o&&o.startsWith("https://app.meetelise.com/")&&((e,t,n)=>{const[i,r,o,...a]=new URL(e).pathname.split("/").filter(Boolean).map(e=>e.toLowerCase());return 0===a.length&&"tour"===o&&i===t.toLowerCase()&&r===n.toLowerCase()})(o,t,n)&&r.addEventListener("click",t=>{i()&&(t.preventDefault(),e(t))})})};var Hu=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Gu=class extends oe{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Vn,this.foregroundColorOnPrimaryBackgroundColor="white",this.toExpand=!1}render(){return R`
|
|
6129
6129
|
<button
|
|
6130
6130
|
class=${this.toExpand?"button-container mini":"button-container"}
|
|
6131
6131
|
@click=${this.onClick}
|
|
@@ -6631,7 +6631,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6631
6631
|
.checkbox:hover {
|
|
6632
6632
|
opacity: 0.5;
|
|
6633
6633
|
}
|
|
6634
|
-
`,{entries:qu,setPrototypeOf:Vu,isFrozen:Yu,getPrototypeOf:Ku,getOwnPropertyDescriptor:Xu}=Object;let{freeze:Zu,seal:Ju,create:ed}=Object,{apply:td,construct:nd}="undefined"!=typeof Reflect&&Reflect;Zu||(Zu=function(e){return e}),Ju||(Ju=function(e){return e}),td||(td=function(e,t,n){return e.apply(t,n)}),nd||(nd=function(e,t){return new e(...t)});const id=bd(Array.prototype.forEach),rd=bd(Array.prototype.lastIndexOf),od=bd(Array.prototype.pop),ad=bd(Array.prototype.push),sd=bd(Array.prototype.splice),ld=bd(String.prototype.toLowerCase),ud=bd(String.prototype.toString),dd=bd(String.prototype.match),cd=bd(String.prototype.replace),hd=bd(String.prototype.indexOf),pd=bd(String.prototype.trim),fd=bd(Object.prototype.hasOwnProperty),gd=bd(RegExp.prototype.test),md=(yd=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nd(yd,t)});var yd;function bd(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return td(e,t,i)}}function vd(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ld;Vu&&Vu(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(Yu(t)||(t[i]=e),r=e)}e[r]=!0}return e}function wd(e){for(let t=0;t<e.length;t++){fd(e,t)||(e[t]=null)}return e}function Cd(e){const t=ed(null);for(const[n,i]of qu(e)){fd(e,n)&&(Array.isArray(i)?t[n]=wd(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=Cd(i):t[n]=i)}return t}function xd(e,t){for(;null!==e;){const n=Xu(e,t);if(n){if(n.get)return bd(n.get);if("function"==typeof n.value)return bd(n.value)}e=Ku(e)}return function(){return null}}const $d=Zu(["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"]),Sd=Zu(["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"]),Ad=Zu(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ed=Zu(["animate","color-profile","cursor","discard","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"]),Td=Zu(["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"]),kd=Zu(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_d=Zu(["#text"]),Od=Zu(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),Pd=Zu(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Id=Zu(["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"]),Nd=Zu(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Md=Ju(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Dd=Ju(/<%[\w\W]*|[\w\W]*%>/gm),Ld=Ju(/\$\{[\w\W]*/gm),Ud=Ju(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rd=Ju(/^aria-[\-\w]+$/),Bd=Ju(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jd=Ju(/^(?:\w+script|data):/i),Fd=Ju(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hd=Ju(/^html$/i),Gd=Ju(/^[a-z][.\w]*(-[.\w]+)+$/i);var zd=Object.freeze({__proto__:null,ARIA_ATTR:Rd,ATTR_WHITESPACE:Fd,CUSTOM_ELEMENT:Gd,DATA_ATTR:Ud,DOCTYPE_NAME:Hd,ERB_EXPR:Dd,IS_ALLOWED_URI:Bd,IS_SCRIPT_OR_DATA:jd,MUSTACHE_EXPR:Md,TMPLIT_EXPR:Ld});const Qd=1,Wd=3,qd=7,Vd=8,Yd=9,Kd=function(){return"undefined"==typeof window?null:window};var Xd=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kd();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==Yd||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:d,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,g=u.prototype,m=xd(g,"cloneNode"),y=xd(g,"remove"),b=xd(g,"nextSibling"),v=xd(g,"childNodes"),w=xd(g,"parentNode");if("function"==typeof s){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let C,x="";const{implementation:$,createNodeIterator:S,createDocumentFragment:A,getElementsByTagName:E}=i,{importNode:T}=r;let k={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof qu&&"function"==typeof w&&$&&void 0!==$.createHTMLDocument;const{MUSTACHE_EXPR:_,ERB_EXPR:O,TMPLIT_EXPR:P,DATA_ATTR:I,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:L}=zd;let{IS_ALLOWED_URI:U}=zd,R=null;const B=vd({},[...$d,...Sd,...Ad,...Td,..._d]);let j=null;const F=vd({},[...Od,...Pd,...Id,...Nd]);let H=Object.seal(ed(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}})),G=null,z=null,Q=!0,W=!0,q=!1,V=!0,Y=!1,K=!0,X=!1,Z=!1,J=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe=!0,ae=!1,se={},le=null;const ue=vd({},["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"]);let de=null;const ce=vd({},["audio","video","img","source","image","track"]);let he=null;const pe=vd({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ye=me,be=!1,ve=null;const we=vd({},[fe,ge,me],ud);let Ce=vd({},["mi","mo","mn","ms","mtext"]),xe=vd({},["annotation-xml"]);const $e=vd({},["title","style","font","a","script"]);let Se=null;const Ae=["application/xhtml+xml","text/html"];let Ee=null,Te=null;const ke=i.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=Cd(e),Se=-1===Ae.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===Se?ud:ld,R=fd(e,"ALLOWED_TAGS")?vd({},e.ALLOWED_TAGS,Ee):B,j=fd(e,"ALLOWED_ATTR")?vd({},e.ALLOWED_ATTR,Ee):F,ve=fd(e,"ALLOWED_NAMESPACES")?vd({},e.ALLOWED_NAMESPACES,ud):we,he=fd(e,"ADD_URI_SAFE_ATTR")?vd(Cd(pe),e.ADD_URI_SAFE_ATTR,Ee):pe,de=fd(e,"ADD_DATA_URI_TAGS")?vd(Cd(ce),e.ADD_DATA_URI_TAGS,Ee):ce,le=fd(e,"FORBID_CONTENTS")?vd({},e.FORBID_CONTENTS,Ee):ue,G=fd(e,"FORBID_TAGS")?vd({},e.FORBID_TAGS,Ee):Cd({}),z=fd(e,"FORBID_ATTR")?vd({},e.FORBID_ATTR,Ee):Cd({}),se=!!fd(e,"USE_PROFILES")&&e.USE_PROFILES,Q=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,V=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||Bd,ye=e.NAMESPACE||me,Ce=e.MATHML_TEXT_INTEGRATION_POINTS||Ce,xe=e.HTML_INTEGRATION_POINTS||xe,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(W=!1),te&&(ee=!0),se&&(R=vd({},_d),j=[],!0===se.html&&(vd(R,$d),vd(j,Od)),!0===se.svg&&(vd(R,Sd),vd(j,Pd),vd(j,Nd)),!0===se.svgFilters&&(vd(R,Ad),vd(j,Pd),vd(j,Nd)),!0===se.mathMl&&(vd(R,Td),vd(j,Id),vd(j,Nd))),e.ADD_TAGS&&(R===B&&(R=Cd(R)),vd(R,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(j===F&&(j=Cd(j)),vd(j,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&vd(he,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(le===ue&&(le=Cd(le)),vd(le,e.FORBID_CONTENTS,Ee)),oe&&(R["#text"]=!0),X&&vd(R,["html","head","body"]),R.table&&(vd(R,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw md('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw md('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=e.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else void 0===C&&(C=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(f,o)),null!==C&&"string"==typeof x&&(x=C.createHTML(""));Zu&&Zu(e),Te=e}},Pe=vd({},[...Sd,...Ad,...Ed]),Ie=vd({},[...Td,...kd]),Ne=function(e){ad(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Me=function(e,t){try{ad(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ad(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},De=function(e){let t=null,n=null;if(J)e="<remove></remove>"+e;else{const t=dd(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Se&&ye===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=C?C.createHTML(e):e;if(ye===me)try{t=(new p).parseFromString(r,Se)}catch(e){}if(!t||!t.documentElement){t=$.createDocument(ye,"template",null);try{t.documentElement.innerHTML=be?x:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ye===me?E.call(t,X?"html":"body")[0]:X?t.documentElement:o},Le=function(e){return S.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ue=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof c)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Re=function(e){return"function"==typeof l&&e instanceof l};function Be(e,t,i){id(e,e=>{e.call(n,t,i,Te)})}const je=function(e){let t=null;if(Be(k.beforeSanitizeElements,e,null),Ue(e))return Ne(e),!0;const i=Ee(e.nodeName);if(Be(k.uponSanitizeElement,e,{tagName:i,allowedTags:R}),K&&e.hasChildNodes()&&!Re(e.firstElementChild)&&gd(/<[/\w!]/g,e.innerHTML)&&gd(/<[/\w!]/g,e.textContent))return Ne(e),!0;if(e.nodeType===qd)return Ne(e),!0;if(K&&e.nodeType===Vd&&gd(/<[/\w]/g,e.data))return Ne(e),!0;if(!R[i]||G[i]){if(!G[i]&&He(i)){if(H.tagNameCheck instanceof RegExp&&gd(H.tagNameCheck,i))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(i))return!1}if(oe&&!le[i]){const t=w(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let i=n.length-1;i>=0;--i){const r=m(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,b(e))}}}return Ne(e),!0}return e instanceof u&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=ld(e.tagName),i=ld(t.tagName);return!!ve[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===i||Ce[i]):Boolean(Pe[n]):e.namespaceURI===fe?t.namespaceURI===me?"math"===n:t.namespaceURI===ge?"math"===n&&xe[i]:Boolean(Ie[n]):e.namespaceURI===me?!(t.namespaceURI===ge&&!xe[i])&&!(t.namespaceURI===fe&&!Ce[i])&&!Ie[n]&&($e[n]||!Pe[n]):!("application/xhtml+xml"!==Se||!ve[e.namespaceURI]))}(e)?(Ne(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!gd(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===Wd&&(t=e.textContent,id([_,O,P],e=>{t=cd(t,e," ")}),e.textContent!==t&&(ad(n.removed,{element:e.cloneNode()}),e.textContent=t)),Be(k.afterSanitizeElements,e,null),!1):(Ne(e),!0)},Fe=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in i||n in ke))return!1;if(W&&!z[t]&&gd(I,t));else if(Q&&gd(N,t));else if(!j[t]||z[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&gd(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&gd(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&gd(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(he[t]);else if(gd(U,cd(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==hd(n,"data:")||!de[e]){if(q&&!gd(M,cd(n,D,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&dd(e,L)},Ge=function(e){Be(k.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ue(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:l}=o,u=Ee(a),d=l;let c="value"===a?d:pd(d);if(i.attrName=u,i.attrValue=c,i.keepAttr=!0,i.forceKeepAttr=void 0,Be(k.uponSanitizeAttribute,e,i),c=i.attrValue,!re||"id"!==u&&"name"!==u||(Me(a,e),c="user-content-"+c),K&&gd(/((--!?|])>)|<\/(style|title)/i,c)){Me(a,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Me(a,e);continue}if(!V&&gd(/\/>/i,c)){Me(a,e);continue}Y&&id([_,O,P],e=>{c=cd(c,e," ")});const h=Ee(e.nodeName);if(Fe(h,u,c)){if(C&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(s);else switch(f.getAttributeType(h,u)){case"TrustedHTML":c=C.createHTML(c);break;case"TrustedScriptURL":c=C.createScriptURL(c)}if(c!==d)try{s?e.setAttributeNS(s,a,c):e.setAttribute(a,c),Ue(e)?Ne(e):od(n.removed)}catch(t){Me(a,e)}}else Me(a,e)}Be(k.afterSanitizeAttributes,e,null)},ze=function e(t){let n=null;const i=Le(t);for(Be(k.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)Be(k.uponSanitizeShadowNode,n,null),je(n),Ge(n),n.content instanceof a&&e(n.content);Be(k.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,u=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Re(e)){if("function"!=typeof e.toString)throw md("toString is not a function");if("string"!=typeof(e=e.toString()))throw md("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Oe(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ee(e.nodeName);if(!R[t]||G[t])throw md("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=De("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),o.nodeType===Qd&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!ee&&!Y&&!X&&-1===e.indexOf("<"))return C&&ne?C.createHTML(e):e;if(i=De(e),!i)return ee?null:ne?x:""}i&&J&&Ne(i.firstChild);const d=Le(ae?e:i);for(;s=d.nextNode();)je(s),Ge(s),s.content instanceof a&&ze(s.content);if(ae)return e;if(ee){if(te)for(u=A.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return(j.shadowroot||j.shadowrootmode)&&(u=T.call(r,u,!0)),u}let c=X?i.outerHTML:i.innerHTML;return X&&R["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&gd(Hd,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),Y&&id([_,O,P],e=>{c=cd(c,e," ")}),C&&ne?C.createHTML(c):c},n.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Te=null,Z=!1},n.isValidAttribute=function(e,t,n){Te||Oe({});const i=Ee(e),r=Ee(t);return Fe(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&ad(k[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=rd(k[e],t);return-1===n?void 0:sd(k[e],n,1)[0]}return od(k[e])},n.removeHooks=function(e){k[e]=[]},n.removeAllHooks=function(){k={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Zd=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Jd=class extends oe{constructor(){super(...arguments),this.spinSpeed=.4}updated(){this.style.setProperty("--spin-duration",`${this.spinSpeed}s`)}render(){return R`<div class="spinner"></div>`}};Jd.styles=u`
|
|
6634
|
+
`,{entries:qu,setPrototypeOf:Vu,isFrozen:Yu,getPrototypeOf:Ku,getOwnPropertyDescriptor:Xu}=Object;let{freeze:Zu,seal:Ju,create:ed}=Object,{apply:td,construct:nd}="undefined"!=typeof Reflect&&Reflect;Zu||(Zu=function(e){return e}),Ju||(Ju=function(e){return e}),td||(td=function(e,t,n){return e.apply(t,n)}),nd||(nd=function(e,t){return new e(...t)});const id=bd(Array.prototype.forEach),rd=bd(Array.prototype.lastIndexOf),od=bd(Array.prototype.pop),ad=bd(Array.prototype.push),sd=bd(Array.prototype.splice),ld=bd(String.prototype.toLowerCase),ud=bd(String.prototype.toString),dd=bd(String.prototype.match),cd=bd(String.prototype.replace),hd=bd(String.prototype.indexOf),pd=bd(String.prototype.trim),fd=bd(Object.prototype.hasOwnProperty),gd=bd(RegExp.prototype.test),md=(yd=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nd(yd,t)});var yd;function bd(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return td(e,t,i)}}function vd(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ld;Vu&&Vu(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(Yu(t)||(t[i]=e),r=e)}e[r]=!0}return e}function wd(e){for(let t=0;t<e.length;t++){fd(e,t)||(e[t]=null)}return e}function Cd(e){const t=ed(null);for(const[n,i]of qu(e)){fd(e,n)&&(Array.isArray(i)?t[n]=wd(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=Cd(i):t[n]=i)}return t}function xd(e,t){for(;null!==e;){const n=Xu(e,t);if(n){if(n.get)return bd(n.get);if("function"==typeof n.value)return bd(n.value)}e=Ku(e)}return function(){return null}}const $d=Zu(["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"]),Sd=Zu(["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"]),Ad=Zu(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ed=Zu(["animate","color-profile","cursor","discard","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"]),Td=Zu(["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"]),kd=Zu(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_d=Zu(["#text"]),Od=Zu(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),Pd=Zu(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Id=Zu(["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"]),Md=Zu(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Nd=Ju(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Dd=Ju(/<%[\w\W]*|[\w\W]*%>/gm),Ld=Ju(/\$\{[\w\W]*/gm),Ud=Ju(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rd=Ju(/^aria-[\-\w]+$/),Bd=Ju(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jd=Ju(/^(?:\w+script|data):/i),Fd=Ju(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hd=Ju(/^html$/i),Gd=Ju(/^[a-z][.\w]*(-[.\w]+)+$/i);var zd=Object.freeze({__proto__:null,ARIA_ATTR:Rd,ATTR_WHITESPACE:Fd,CUSTOM_ELEMENT:Gd,DATA_ATTR:Ud,DOCTYPE_NAME:Hd,ERB_EXPR:Dd,IS_ALLOWED_URI:Bd,IS_SCRIPT_OR_DATA:jd,MUSTACHE_EXPR:Nd,TMPLIT_EXPR:Ld});const Qd=1,Wd=3,qd=7,Vd=8,Yd=9,Kd=function(){return"undefined"==typeof window?null:window};var Xd=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kd();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==Yd||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:d,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,g=u.prototype,m=xd(g,"cloneNode"),y=xd(g,"remove"),b=xd(g,"nextSibling"),v=xd(g,"childNodes"),w=xd(g,"parentNode");if("function"==typeof s){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let C,x="";const{implementation:$,createNodeIterator:S,createDocumentFragment:A,getElementsByTagName:E}=i,{importNode:T}=r;let k={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof qu&&"function"==typeof w&&$&&void 0!==$.createHTMLDocument;const{MUSTACHE_EXPR:_,ERB_EXPR:O,TMPLIT_EXPR:P,DATA_ATTR:I,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:L}=zd;let{IS_ALLOWED_URI:U}=zd,R=null;const B=vd({},[...$d,...Sd,...Ad,...Td,..._d]);let j=null;const F=vd({},[...Od,...Pd,...Id,...Md]);let H=Object.seal(ed(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}})),G=null,z=null,Q=!0,W=!0,q=!1,V=!0,Y=!1,K=!0,X=!1,Z=!1,J=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe=!0,ae=!1,se={},le=null;const ue=vd({},["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"]);let de=null;const ce=vd({},["audio","video","img","source","image","track"]);let he=null;const pe=vd({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ye=me,be=!1,ve=null;const we=vd({},[fe,ge,me],ud);let Ce=vd({},["mi","mo","mn","ms","mtext"]),xe=vd({},["annotation-xml"]);const $e=vd({},["title","style","font","a","script"]);let Se=null;const Ae=["application/xhtml+xml","text/html"];let Ee=null,Te=null;const ke=i.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=Cd(e),Se=-1===Ae.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===Se?ud:ld,R=fd(e,"ALLOWED_TAGS")?vd({},e.ALLOWED_TAGS,Ee):B,j=fd(e,"ALLOWED_ATTR")?vd({},e.ALLOWED_ATTR,Ee):F,ve=fd(e,"ALLOWED_NAMESPACES")?vd({},e.ALLOWED_NAMESPACES,ud):we,he=fd(e,"ADD_URI_SAFE_ATTR")?vd(Cd(pe),e.ADD_URI_SAFE_ATTR,Ee):pe,de=fd(e,"ADD_DATA_URI_TAGS")?vd(Cd(ce),e.ADD_DATA_URI_TAGS,Ee):ce,le=fd(e,"FORBID_CONTENTS")?vd({},e.FORBID_CONTENTS,Ee):ue,G=fd(e,"FORBID_TAGS")?vd({},e.FORBID_TAGS,Ee):Cd({}),z=fd(e,"FORBID_ATTR")?vd({},e.FORBID_ATTR,Ee):Cd({}),se=!!fd(e,"USE_PROFILES")&&e.USE_PROFILES,Q=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,V=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||Bd,ye=e.NAMESPACE||me,Ce=e.MATHML_TEXT_INTEGRATION_POINTS||Ce,xe=e.HTML_INTEGRATION_POINTS||xe,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(W=!1),te&&(ee=!0),se&&(R=vd({},_d),j=[],!0===se.html&&(vd(R,$d),vd(j,Od)),!0===se.svg&&(vd(R,Sd),vd(j,Pd),vd(j,Md)),!0===se.svgFilters&&(vd(R,Ad),vd(j,Pd),vd(j,Md)),!0===se.mathMl&&(vd(R,Td),vd(j,Id),vd(j,Md))),e.ADD_TAGS&&(R===B&&(R=Cd(R)),vd(R,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(j===F&&(j=Cd(j)),vd(j,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&vd(he,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(le===ue&&(le=Cd(le)),vd(le,e.FORBID_CONTENTS,Ee)),oe&&(R["#text"]=!0),X&&vd(R,["html","head","body"]),R.table&&(vd(R,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw md('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw md('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=e.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else void 0===C&&(C=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(f,o)),null!==C&&"string"==typeof x&&(x=C.createHTML(""));Zu&&Zu(e),Te=e}},Pe=vd({},[...Sd,...Ad,...Ed]),Ie=vd({},[...Td,...kd]),Me=function(e){ad(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Ne=function(e,t){try{ad(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ad(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Me(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},De=function(e){let t=null,n=null;if(J)e="<remove></remove>"+e;else{const t=dd(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Se&&ye===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=C?C.createHTML(e):e;if(ye===me)try{t=(new p).parseFromString(r,Se)}catch(e){}if(!t||!t.documentElement){t=$.createDocument(ye,"template",null);try{t.documentElement.innerHTML=be?x:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ye===me?E.call(t,X?"html":"body")[0]:X?t.documentElement:o},Le=function(e){return S.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ue=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof c)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Re=function(e){return"function"==typeof l&&e instanceof l};function Be(e,t,i){id(e,e=>{e.call(n,t,i,Te)})}const je=function(e){let t=null;if(Be(k.beforeSanitizeElements,e,null),Ue(e))return Me(e),!0;const i=Ee(e.nodeName);if(Be(k.uponSanitizeElement,e,{tagName:i,allowedTags:R}),K&&e.hasChildNodes()&&!Re(e.firstElementChild)&&gd(/<[/\w!]/g,e.innerHTML)&&gd(/<[/\w!]/g,e.textContent))return Me(e),!0;if(e.nodeType===qd)return Me(e),!0;if(K&&e.nodeType===Vd&&gd(/<[/\w]/g,e.data))return Me(e),!0;if(!R[i]||G[i]){if(!G[i]&&He(i)){if(H.tagNameCheck instanceof RegExp&&gd(H.tagNameCheck,i))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(i))return!1}if(oe&&!le[i]){const t=w(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let i=n.length-1;i>=0;--i){const r=m(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,b(e))}}}return Me(e),!0}return e instanceof u&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=ld(e.tagName),i=ld(t.tagName);return!!ve[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===i||Ce[i]):Boolean(Pe[n]):e.namespaceURI===fe?t.namespaceURI===me?"math"===n:t.namespaceURI===ge?"math"===n&&xe[i]:Boolean(Ie[n]):e.namespaceURI===me?!(t.namespaceURI===ge&&!xe[i])&&!(t.namespaceURI===fe&&!Ce[i])&&!Ie[n]&&($e[n]||!Pe[n]):!("application/xhtml+xml"!==Se||!ve[e.namespaceURI]))}(e)?(Me(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!gd(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===Wd&&(t=e.textContent,id([_,O,P],e=>{t=cd(t,e," ")}),e.textContent!==t&&(ad(n.removed,{element:e.cloneNode()}),e.textContent=t)),Be(k.afterSanitizeElements,e,null),!1):(Me(e),!0)},Fe=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in i||n in ke))return!1;if(W&&!z[t]&&gd(I,t));else if(Q&&gd(M,t));else if(!j[t]||z[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&gd(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&gd(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&gd(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(he[t]);else if(gd(U,cd(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==hd(n,"data:")||!de[e]){if(q&&!gd(N,cd(n,D,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&dd(e,L)},Ge=function(e){Be(k.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ue(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:l}=o,u=Ee(a),d=l;let c="value"===a?d:pd(d);if(i.attrName=u,i.attrValue=c,i.keepAttr=!0,i.forceKeepAttr=void 0,Be(k.uponSanitizeAttribute,e,i),c=i.attrValue,!re||"id"!==u&&"name"!==u||(Ne(a,e),c="user-content-"+c),K&&gd(/((--!?|])>)|<\/(style|title)/i,c)){Ne(a,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Ne(a,e);continue}if(!V&&gd(/\/>/i,c)){Ne(a,e);continue}Y&&id([_,O,P],e=>{c=cd(c,e," ")});const h=Ee(e.nodeName);if(Fe(h,u,c)){if(C&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(s);else switch(f.getAttributeType(h,u)){case"TrustedHTML":c=C.createHTML(c);break;case"TrustedScriptURL":c=C.createScriptURL(c)}if(c!==d)try{s?e.setAttributeNS(s,a,c):e.setAttribute(a,c),Ue(e)?Me(e):od(n.removed)}catch(t){Ne(a,e)}}else Ne(a,e)}Be(k.afterSanitizeAttributes,e,null)},ze=function e(t){let n=null;const i=Le(t);for(Be(k.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)Be(k.uponSanitizeShadowNode,n,null),je(n),Ge(n),n.content instanceof a&&e(n.content);Be(k.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,u=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Re(e)){if("function"!=typeof e.toString)throw md("toString is not a function");if("string"!=typeof(e=e.toString()))throw md("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Oe(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ee(e.nodeName);if(!R[t]||G[t])throw md("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=De("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),o.nodeType===Qd&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!ee&&!Y&&!X&&-1===e.indexOf("<"))return C&&ne?C.createHTML(e):e;if(i=De(e),!i)return ee?null:ne?x:""}i&&J&&Me(i.firstChild);const d=Le(ae?e:i);for(;s=d.nextNode();)je(s),Ge(s),s.content instanceof a&&ze(s.content);if(ae)return e;if(ee){if(te)for(u=A.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return(j.shadowroot||j.shadowrootmode)&&(u=T.call(r,u,!0)),u}let c=X?i.outerHTML:i.innerHTML;return X&&R["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&gd(Hd,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),Y&&id([_,O,P],e=>{c=cd(c,e," ")}),C&&ne?C.createHTML(c):c},n.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Te=null,Z=!1},n.isValidAttribute=function(e,t,n){Te||Oe({});const i=Ee(e),r=Ee(t);return Fe(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&ad(k[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=rd(k[e],t);return-1===n?void 0:sd(k[e],n,1)[0]}return od(k[e])},n.removeHooks=function(e){k[e]=[]},n.removeAllHooks=function(){k={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Zd=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Jd=class extends oe{constructor(){super(...arguments),this.spinSpeed=.4}updated(){this.style.setProperty("--spin-duration",`${this.spinSpeed}s`)}render(){return R`<div class="spinner"></div>`}};Jd.styles=u`
|
|
6635
6635
|
.spinner {
|
|
6636
6636
|
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
6637
6637
|
border-top: 2px solid #c057ff;
|
|
@@ -6649,19 +6649,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6649
6649
|
transform: rotate(360deg);
|
|
6650
6650
|
}
|
|
6651
6651
|
}
|
|
6652
|
-
`,Zd([ue({type:Number})],Jd.prototype,"spinSpeed",void 0),Jd=Zd([se("mini-loader")],Jd);var ec=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let tc=class extends oe{constructor(){super(...arguments),this.onMount=()=>({}),this.loadingPreviews=!0,this.websitePreviewInfo=[],this.imagesToDisplay=[],this.imageUrlError=[],this.isLeadMessage=!1,this.widgetType=jc.Default}isMessageStillStreamingChunks(){if(!this.message)return!1;const e=this.message.chunks.find(e=>e.isDone);return!e||this.message.chunks.length===e.order}updated(e){if(this.onMount(),!e.has("message"))return;if(!this.message)return;const{hyperlinks:t,markedText:n}=this.mapAndMarkHyperLinks(this.message.message),i=/(https?:\/\/[^\s]+)/g,r=[],o=[];this.parsedMessage=R`${n.trim().split("\n").map(e=>{const n=this.sanitizeMarkdownText(e),a=this.preserveHTMLTags(n);return a?R`${a.map(e=>{
|
|
6653
|
-
class="redirect-link"
|
|
6654
|
-
href="${null==n?void 0:n.link}"
|
|
6655
|
-
target="_blank"
|
|
6656
|
-
rel="noopener noreferrer"
|
|
6657
|
-
>${null==n?void 0:n.hyperlink}
|
|
6658
|
-
</a>`}if(i.test(e)){const t=this.removeTrailingPunctuation(e);return r.push(this.getLinkData(t)),R`<a
|
|
6652
|
+
`,Zd([ue({type:Number})],Jd.prototype,"spinSpeed",void 0),Jd=Zd([se("mini-loader")],Jd);var ec=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let tc=class extends oe{constructor(){super(...arguments),this.onMount=()=>({}),this.loadingPreviews=!0,this.websitePreviewInfo=[],this.imagesToDisplay=[],this.imageUrlError=[],this.isLeadMessage=!1,this.widgetType=jc.Default}isMessageStillStreamingChunks(){if(!this.message)return!1;const e=this.message.chunks.find(e=>e.isDone);return!e||this.message.chunks.length===e.order}updated(e){if(this.onMount(),!e.has("message"))return;if(!this.message)return;const{hyperlinks:t,markedText:n}=this.mapAndMarkHyperLinks(this.message.message),i=/(https?:\/\/[^\s]+)/g,r=[],o=[];this.parsedMessage=R`${n.trim().split("\n").map(e=>{const n=this.sanitizeMarkdownText(e),a=this.preserveHTMLTags(n);return a?R`${a.map(e=>{const n=t.filter(t=>e.includes(t.id));if(n.length){let t=e;return n.forEach(e=>{o.push({redirectTo:e.link,source:e.link}),t=t.replace(e.id,this.hyperlinkHTML(e.link,e.hyperlink))}),R`${Ao(Xd.sanitize(t,{ADD_ATTR:["target"]}))} `}if(i.test(e)){const t=this.removeTrailingPunctuation(e);return r.push(this.getLinkData(t)),R`<a
|
|
6659
6653
|
class="redirect-link"
|
|
6660
6654
|
href="${t}"
|
|
6661
6655
|
target="_blank"
|
|
6662
6656
|
rel="noopener noreferrer"
|
|
6663
6657
|
>${t}
|
|
6664
|
-
</a>`}return R`${Ao(Xd.sanitize(e))} `})}<br />`:R``})}`,this.imagesToDisplay=o,Promise.all(r).then(e=>{this.websitePreviewInfo=e})}preserveHTMLTags(e){var t;const n=e.match(/(<\/?[a-z][^>]*>[^<]*<\/?[a-z]*>|[^\s]+[.,?!]?|\S)/gi);return null!==(t=null==n?void 0:n.filter(e=>""!==e.trim()))&&void 0!==t?t:[]}sanitizeMarkdownText(e){return e.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*?)\*\*/gim,"<b>$1</b>").replace(/\*(.*?)\*/gim,"<i>$1</i>").trim()}removeTrailingPunctuation(e){return[".",",","!","?",":",";"].includes(e[e.length-1])?this.removeTrailingPunctuation(e.slice(0,-1)):e}mapAndMarkHyperLinks(e){const t=Array.from(e.matchAll(/<https?:\/\/[^|]+\|[^>]+>|<a href="[^"]+"(?: target="[^"]*")?>[^<]+<\/a>|\[.*?\]\([^)]*\.[^)]*\)/g)),n=[],i=t.map(t=>{const n=t[0];if(void 0===t.index)return;const i=e[t.index-1],r=e[t.index+n.length];if(n.startsWith("<https")||n.startsWith("<http"))return{matchedLink:n,link:n.split("|")[0].replace("<",""),hyperlink:n.split("|")[1].replace(">",""),addSpaceBefore:!(!i||" "===i),addSpaceAfter:!(!r||" "===r)};if(n.startsWith("<a href=")){const e=n.match(/href="([^"]+)"/),t=n.match(/>[^<]+</);return{matchedLink:n,link:e?e[1]:"",hyperlink:t?t[0].slice(1,-1):"",addSpaceBefore:!(!i||" "===i),addSpaceAfter:!(!r||" "===r)}}{const[e,t]=n.split("](");return{matchedLink:n,link:t?t.slice(0,-1):"",hyperlink:e?e.slice(1):"",addSpaceBefore:!(!i||" "===i),addSpaceAfter:!(!r||" "===r)}}});return i.forEach(t=>{if(t&&t.link&&t.hyperlink){const i=ku().replace(/-/g,"");n.push({link:this.removeTrailingPunctuation(t.link),hyperlink:this.removeTrailingPunctuation(t.hyperlink),mark:t.matchedLink,id:i}),e=e.replace(t.matchedLink,`${t.addSpaceBefore?" ":""}${i}${t.addSpaceAfter?" ":""}`)}}),{hyperlinks:n,markedText:e}}async getLinkData(e){var t,n,i,o;try{const a=(await r().get(e)).data,s=(new DOMParser).parseFromString(a,"text/html");return s?{title:null!==(n=null===(t=s.querySelector("title"))||void 0===t?void 0:t.textContent)&&void 0!==n?n:null,description:(null===(i=s.querySelector('meta[name="description"]'))||void 0===i?void 0:i.getAttribute("content"))||null,image:(null===(o=s.querySelector('meta[property="og:image"]'))||void 0===o?void 0:o.getAttribute("content"))||null,favicon:null,link:e}:{title:null,description:null,image:null,favicon:null,link:e}}catch(t){return{title:null,description:null,image:null,favicon:null,link:e}}}render(){return this.message?R`<div class="message-inner-body">
|
|
6658
|
+
</a>`}return R`${Ao(Xd.sanitize(e))} `})}<br />`:R``})}`,this.imagesToDisplay=o,Promise.all(r).then(e=>{this.websitePreviewInfo=e})}hyperlinkHTML(e,t){const n=document.createElement("a");return n.className="redirect-link",n.href=e,n.target="_blank",n.rel="noopener noreferrer",n.textContent=t,n.outerHTML}preserveHTMLTags(e){var t;const n=e.match(/(<\/?[a-z][^>]*>[^<]*<\/?[a-z]*>|[^\s]+[.,?!]?|\S)/gi);return null!==(t=null==n?void 0:n.filter(e=>""!==e.trim()))&&void 0!==t?t:[]}sanitizeMarkdownText(e){return e.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*?)\*\*/gim,"<b>$1</b>").replace(/\*(.*?)\*/gim,"<i>$1</i>").trim()}removeTrailingPunctuation(e){return[".",",","!","?",":",";"].includes(e[e.length-1])?this.removeTrailingPunctuation(e.slice(0,-1)):e}mapAndMarkHyperLinks(e){const t=Array.from(e.matchAll(/<https?:\/\/[^|]+\|[^>]+>|<a href="[^"]+"(?: target="[^"]*")?>[^<]+<\/a>|\[.*?\]\([^)]*\.[^)]*\)/g)),n=[],i=t.map(t=>{const n=t[0];if(void 0===t.index)return;const i=e[t.index-1],r=e[t.index+n.length];if(n.startsWith("<https")||n.startsWith("<http"))return{matchedLink:n,link:n.split("|")[0].replace("<",""),hyperlink:n.split("|")[1].replace(">",""),addSpaceBefore:!(!i||" "===i),addSpaceAfter:!(!r||" "===r)};if(n.startsWith("<a href=")){const e=n.match(/href="([^"]+)"/),t=n.match(/>[^<]+</);return{matchedLink:n,link:e?e[1]:"",hyperlink:t?t[0].slice(1,-1):"",addSpaceBefore:!(!i||" "===i),addSpaceAfter:!(!r||" "===r)}}{const[e,t]=n.split("](");return{matchedLink:n,link:t?t.slice(0,-1):"",hyperlink:e?e.slice(1):"",addSpaceBefore:!(!i||" "===i),addSpaceAfter:!(!r||" "===r)}}});return i.forEach(t=>{if(t&&t.link&&t.hyperlink){const i=ku().replace(/-/g,"");n.push({link:this.removeTrailingPunctuation(t.link),hyperlink:this.removeTrailingPunctuation(t.hyperlink),mark:t.matchedLink,id:i}),e=e.replace(t.matchedLink,`${t.addSpaceBefore?" ":""}${i}${t.addSpaceAfter?" ":""}`)}}),{hyperlinks:n,markedText:e}}async getLinkData(e){var t,n,i,o;try{const a=(await r().get(e)).data,s=(new DOMParser).parseFromString(a,"text/html");return s?{title:null!==(n=null===(t=s.querySelector("title"))||void 0===t?void 0:t.textContent)&&void 0!==n?n:null,description:(null===(i=s.querySelector('meta[name="description"]'))||void 0===i?void 0:i.getAttribute("content"))||null,image:(null===(o=s.querySelector('meta[property="og:image"]'))||void 0===o?void 0:o.getAttribute("content"))||null,favicon:null,link:e}:{title:null,description:null,image:null,favicon:null,link:e}}catch(t){return{title:null,description:null,image:null,favicon:null,link:e}}}render(){return this.message?R`<div class="message-inner-body">
|
|
6665
6659
|
${this.isMessageStillStreamingChunks()?R`<div class="message-loader"><mini-loader></mini-loader></div>`:""}
|
|
6666
6660
|
<p
|
|
6667
6661
|
class=${ye({"message-text":this.widgetType!==jc.Utilities,"message-text-large":this.widgetType===jc.Utilities,"webchat-font__desktop":!Or(),"webchat-font__mobile":Or()})}
|
|
@@ -7020,7 +7014,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7020
7014
|
key=${e.timestamp}
|
|
7021
7015
|
tabindex="0"
|
|
7022
7016
|
role="article"
|
|
7023
|
-
aria-label="${e.isLeadMessage?"You":"Elise"}: ${
|
|
7017
|
+
aria-label="${e.isLeadMessage?"You":"Elise"}: ${Nu(e)?e.message:"Media message"}"
|
|
7024
7018
|
>
|
|
7025
7019
|
${Du(e)?R` <pubnub-media
|
|
7026
7020
|
.message=${e}
|
|
@@ -7028,7 +7022,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7028
7022
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
7029
7023
|
>
|
|
7030
7024
|
</pubnub-media>`:""}
|
|
7031
|
-
${
|
|
7025
|
+
${Nu(e)?R` <pubnub-message
|
|
7032
7026
|
.message=${e}
|
|
7033
7027
|
.myPubnub=${this.myPubnub}
|
|
7034
7028
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -7136,7 +7130,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7136
7130
|
key=${e.timestamp}
|
|
7137
7131
|
tabindex="0"
|
|
7138
7132
|
role="article"
|
|
7139
|
-
aria-label="${e.isLeadMessage?"You":"Elise"}: ${
|
|
7133
|
+
aria-label="${e.isLeadMessage?"You":"Elise"}: ${Nu(e)?e.message:"Media message"}"
|
|
7140
7134
|
>
|
|
7141
7135
|
${Du(e)?R` <pubnub-media
|
|
7142
7136
|
.message=${e}
|
|
@@ -7144,7 +7138,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7144
7138
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
7145
7139
|
>
|
|
7146
7140
|
</pubnub-media>`:""}
|
|
7147
|
-
${
|
|
7141
|
+
${Nu(e)?R` <pubnub-message
|
|
7148
7142
|
.message=${e}
|
|
7149
7143
|
.myPubnub=${this.myPubnub}
|
|
7150
7144
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -7249,7 +7243,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7249
7243
|
key=${e.timestamp}
|
|
7250
7244
|
tabindex="0"
|
|
7251
7245
|
role="article"
|
|
7252
|
-
aria-label="${e.isLeadMessage?"You":"Elise"}: ${
|
|
7246
|
+
aria-label="${e.isLeadMessage?"You":"Elise"}: ${Nu(e)?e.message:"Media message"}"
|
|
7253
7247
|
>
|
|
7254
7248
|
${Du(e)?R` <pubnub-media
|
|
7255
7249
|
.message=${e}
|
|
@@ -7257,7 +7251,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7257
7251
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
7258
7252
|
>
|
|
7259
7253
|
</pubnub-media>`:""}
|
|
7260
|
-
${
|
|
7254
|
+
${Nu(e)?R` <pubnub-message
|
|
7261
7255
|
.message=${e}
|
|
7262
7256
|
.myPubnub=${this.myPubnub}
|
|
7263
7257
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -7304,7 +7298,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7304
7298
|
</button>
|
|
7305
7299
|
</div>
|
|
7306
7300
|
</div>
|
|
7307
|
-
`}};cc.AUTO_SCROLL_THRESHOLD_PX=32,cc.styles=[Oe,Wu,Qu,zu,ac],dc([ue({type:Number})],cc.prototype,"right",void 0),dc([ue({type:Number})],cc.prototype,"bottom",void 0),dc([ue({type:Number})],cc.prototype,"top",void 0),dc([ue({type:Number})],cc.prototype,"left",void 0),dc([ue({attribute:!0})],cc.prototype,"onMount",void 0),dc([ue({attribute:!0})],cc.prototype,"channel",void 0),dc([ue({attribute:!0})],cc.prototype,"isHealthChat",void 0),dc([ue({attribute:!0})],cc.prototype,"myPubnub",void 0),dc([ue({attribute:!0})],cc.prototype,"orgSlug",void 0),dc([ue({attribute:!0})],cc.prototype,"buildingSlug",void 0),dc([ue({attribute:!0})],cc.prototype,"widgetType",void 0),dc([ue({attribute:!0})],cc.prototype,"building",void 0),dc([ue({attribute:!0})],cc.prototype,"primaryColor",void 0),dc([ue({attribute:!0})],cc.prototype,"backgroundColor",void 0),dc([ue({attribute:!0})],cc.prototype,"onClickExit",void 0),dc([ue({attribute:!0})],cc.prototype,"requiresConsent",void 0),dc([ce("#message-input",!0)],cc.prototype,"messageInput",void 0),dc([ce("#conversation-body",!0)],cc.prototype,"messageBody",void 0),dc([de()],cc.prototype,"_isMobile",void 0),dc([de()],cc.prototype,"messages",void 0),dc([de()],cc.prototype,"isLoadingMessages",void 0),dc([de()],cc.prototype,"hasReceivedConsent",void 0),dc([de()],cc.prototype,"privacyPolicyUrl",void 0),dc([de()],cc.prototype,"websitePreviewMapping",void 0),cc=uc=dc([se("pubnub-chat")],cc);const hc="cdn.skypack.dev/@meetelise/chat",pc="cdn.eliseai.com/@meetelise/chat",fc=async(e,t)=>{try{if(Math.random()>=.15)return;const n=(()=>{try{const e=document.getElementsByTagName("script");for(const t of e){const e=t.src||"",n=t.textContent||"";if(e.includes(hc)||n.includes(hc))return"skypack";if(e.includes(pc)||n.includes(pc))return"eliseai"}return"unknown"}catch(e){return"unknown"}})();await r().post("https://app.meetelise.com/platformApi/webchat/cdn-version",{cdn_version:n},{params:{cdn_version:n},headers:{"Content-Type":"application/json","building-slug":t,"org-slug":e}})}catch(e){}},gc=(e,t)=>["floor plan","floorplan","floor plans","floorplans","apply here"].some(t=>e.toLowerCase().includes(t))?t.endsWith("/units")?t:`${t}/units`:t,mc={"95ae958e-95db-11ed-9862-6f4db5533d3f":"8008db60-45b7-11f1-88ac-635f686365da","95ae96b0-95db-11ed-9863-a7aa664fd985":"72ed27c4-45b7-11f1-82d9-37b7db547687"},yc="https://applications.eliseai.com",bc=["Check Availability","Apply Now"],vc=(e,t,n,i)=>{if(!(e=>{var t;if(!e.classList.contains("floorplan-button"))return!1;const n=e.getElementsByTagName("span");if(1!==n.length)return!1;const i=null===(t=n[0].textContent)||void 0===t?void 0:t.trim();return null!=i&&bc.includes(i)})(e))return!1;if(e.getAttribute("href")===t)return!1;const r=e.getAttribute("href");return e.setAttribute("href",t),e.setAttribute("target","_blank"),Vo({logTitle:"CHECK_AVAIL_OVERWRITE",logData:{oldHref:r,newHref:t,website:window.location.href},logType:qo.info,buildingSlug:i,orgSlug:n}),!0},wc=(e,t,n,i)=>{for(let r=0;r<e.length;r++){const o=e[r];if(o.nodeType!==Node.ELEMENT_NODE)continue;const a=o;"A"===a.tagName&&vc(a,t,n,i);const s=a.getElementsByTagName("a");for(let e=0;e<s.length;e++)vc(s[e],t,n,i)}},Cc=(e,t,n)=>{((e,t,n)=>{const i=document.body.getElementsByTagName("a");for(let r=0;r<i.length;r++)vc(i[r],e,t,n)})(n,e,t);new MutationObserver(i=>{for(const r of i)wc(r.addedNodes,n,e,t)}).observe(document.body,{childList:!0,subtree:!0})};class xc{constructor(e,t){this.persistLeadSourceTTLDays=30,this.maxSourcesNonPropertyWebsiteCount=3,this._generateLeadSourceLocalStorageKey=()=>`com.eliseai.webchat.leadsources.v2.buildingslug=${this.buildingSlug}`,this._generateNewExpirationTimestamp=()=>Br(jr(new Date,this.persistLeadSourceTTLDays)),this._generateLeadSourceParameters=()=>{const e=bo();return{websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:e,referrer:document.referrer,parsedUtmSource:e?e.utm_source:null,campaignSources:Object.values(Wo()).filter(e=>e)}},this.addSafeLeadSourceTouchpoint=e=>{const t=this.getLocalStorageMultitouchValue(),n=this._generateLeadSourceLocalStorageKey();if(!t||this.isExpiredTimestamp(t.timestampExpires)){const t={timestampExpires:this._generateNewExpirationTimestamp(),leadSources:[{parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:Br(new Date),type:"touchpoint"}]};localStorage.setItem(n,JSON.stringify(t))}else{if(t.leadSources.find(t=>t.leadSourceValue===e))return;if(t.leadSources.length<this.maxSourcesNonPropertyWebsiteCount)return t.leadSources.push({parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:Br(new Date),type:"touchpoint"}),t.timestampExpires=this._generateNewExpirationTimestamp(),void localStorage.setItem(n,JSON.stringify(t));Vo({logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,logTitle:"TOO_MANY_LEAD_SOURCES",logData:{buildingSlug:this.buildingSlug}})}},this.getSafeLeadSourceTouchpointsWithDefault=({includedUserSelectedLeadSource:e})=>{const t=this.getLocalStorageMultitouchValue(),n=Zo(this.orgSlug);if(!t){const t=[{leadSourceValue:n,timestampInitiallyLogged:Br(new Date),type:"default"}];return e&&t.push({leadSourceValue:e,timestampInitiallyLogged:Br(new Date),type:"user-selected"}),t}const i=t.leadSources.length>0?t.leadSources.sort((e,t)=>qr(e.timestampInitiallyLogged).getTime()-qr(t.timestampInitiallyLogged).getTime())[0].timestampInitiallyLogged:Br(new Date),r=[{timestampInitiallyLogged:i,leadSourceValue:n,type:"default"},...t.leadSources.map(e=>({timestampInitiallyLogged:e.timestampInitiallyLogged,leadSourceValue:e.leadSourceValue,type:e.type}))];return e&&r.push({leadSourceValue:e,timestampInitiallyLogged:Br(new Date),type:"user-selected"}),r},this.getLocalStorageMultitouchValue=()=>{const e=this._generateLeadSourceLocalStorageKey(),t=localStorage.getItem(e);if(!t)return null;return JSON.parse(t)},this.isExpiredTimestamp=e=>qr(e)<new Date,this.resetLeadSourceTouchpoints=()=>{const e=this._generateLeadSourceLocalStorageKey();return localStorage.removeItem(e),!0},this.orgSlug=e,this.buildingSlug=t}}var $c,Sc=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ac=$c=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.centralConvo=!1,this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.primaryColor=null,this.backgroundColor=null,this.foregroundColorOnPrimaryBackgroundColor=null,this.foregroundColorOnSecondaryBackgroundColor=null,this._isMobile=Or(),this.chatId="",this.analytics=null,this.launcher=null,this.buildingWebchatView=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=go.always,this.bedroomPreferenceRequired=!1,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!1,this.openTourSchedulerOnLoad=!1,this.displayPubnubChat=!1,this.myPubnub=null,this.LeadSourceClient=null,this.LeadSourceMultitouchClient=null,this.sampleRateToUse=.05,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.overrideRentgrata=!1,this.widgetType=jc.Default,this.onWidgetLoaded=ql(),this.onSstClose=ql(),this.enabledChatWidgets={callDesktop:!1,callMobile:!1,chatMobile:!1,chatDesktop:!1,emailDesktop:!1,emailMobile:!1,textDesktop:!1,textMobile:!1,sstDesktop:!1,sstMobile:!1,calcDesktop:!1,calcMobile:!1},this.webchatConfigHasAutoOpenChat=!1,this.requiresConsent=!1,this.hideMobileFeatures=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.launcherRef=Ee(),this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{var e,t;if(!this.orgSlug)return;if(!this.centralConvo&&!this.buildingSlug)return;const n=this.centralConvo?await async function(e){const t=`https://app.meetelise.com/api/pub/v1/organization/${e}/webchat/v2`,n=await r().get(t);return aa(n.data)}(this.orgSlug):await oa(this.orgSlug,this.buildingSlug);if(Math.random()<.2)try{(async(e,t)=>{const n=window.rentgrata;if(!n)return;const i=n.Widget;if(!i)return;const o=i.config;if(!o)return;const a=o.widgetKey;a&&await r().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=t?t:""}})})(this.buildingSlug,this.orgSlug)}catch(e){}try{fc(this.orgSlug,this.buildingSlug)}catch(e){}await Za(n,this.buildingSlug,this.orgSlug)&&(Yo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_pixel_on_site:!0,is_any_webchat_showing:!0},sampleRate:(null==n?void 0:n.launchedDateTime)?.01:.05}),this.buildingWebchatView=n,await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),(e=>{const t=new URLSearchParams(window.location.search).get("rwg_token");if(!t||!e)return;const n={rwgToken:t,buildingId:e,expiresAt:Date.now()+2592e6};localStorage.setItem(Ha,JSON.stringify(n))})(null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.id)&&void 0!==t?t:0),"tour"===new URLSearchParams(window.location.search).get("elise_open")&&(this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile)?this.openTourSchedulerOnLoad=!0:this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)?(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.updateAlreadyAutoOpenedTimestamp()):"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0),this.isLoading=!1)},this.setBuildingDerivedInfo=async()=>{var e,t,n,i,o,a,s,l,u,d,c,h,p,f,g,m,y,b,v,w,C,x,$,S,A,E,T,k,_,O,P,I,N,M,D,L,U,R,B,j,F,H,G,z,Q,W,q,V,Y;const K=this.buildingWebchatView;if(!K)return;K&&this.orgSlug&&Tc(this.orgSlug,null!==(t=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.chatId)&&void 0!==t?t:null,this.sampleRateToUse,this.buildingSlug,null!==(i=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==i?i:null);const X=K.featureFlagWebchatMarketingSourceDropdownConfiguration,Z=K.featureFlagWebchatUseDniPhoneNumberBySource,J=K.featureFlagInsertDniIntoWebsite,ee=K.featureFlagWebchatReplaceAnyScheduleTourCtaWebsite;var te;te=wo.includes(K.orgId),xo=te;const[ne,ie,re,oe]=await Promise.all([gu(this.orgSlug,this.buildingSlug),mo(this.buildingSlug),yu(this.buildingSlug),yo(this.buildingSlug)]);this.buildingWebchatView&&(this.buildingWebchatView.phoneNumber=Gn(K.phoneNumber),this.buildingWebchatView.isAip=re),this.leadSources=ne,this.featureFlagShowDropdown=X,this.bedroomPreferenceRequired=oe;const ae=K.textWithUsPhoneNumber?K.textWithUsPhoneNumber:await(async e=>{try{const t="https://app.meetelise.com",n=await r().get(`${t}/platformApi/webchat/${e}/phone-number`);if(n.data)return n.data}catch(t){return Vo({logType:qo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t},error:t}),null}return null})(this.buildingSlug),se=null!==(a=null===(o=this.buildingWebchatView)||void 0===o?void 0:o.shouldShowPricingCalculatorDesktop)&&void 0!==a&&a,le=null!==(l=null===(s=this.buildingWebchatView)||void 0===s?void 0:s.shouldShowPricingCalculatorMobile)&&void 0!==l&&l,ue={callDesktop:null!==(d=null===(u=this.buildingWebchatView)||void 0===u?void 0:u.shouldShowPhoneDesktop)&&void 0!==d&&d,callMobile:null!==(h=null===(c=this.buildingWebchatView)||void 0===c?void 0:c.shouldShowPhoneMobile)&&void 0!==h&&h,chatDesktop:null!==(f=null===(p=this.buildingWebchatView)||void 0===p?void 0:p.shouldShowChatDesktop)&&void 0!==f&&f,chatMobile:null!==(m=null===(g=this.buildingWebchatView)||void 0===g?void 0:g.shouldShowChatMobile)&&void 0!==m&&m,emailDesktop:null!==(b=null===(y=this.buildingWebchatView)||void 0===y?void 0:y.shouldShowEmailDesktop)&&void 0!==b&&b,emailMobile:null!==(w=null===(v=this.buildingWebchatView)||void 0===v?void 0:v.shouldShowEmailMobile)&&void 0!==w&&w,textDesktop:null!==(x=(null===(C=this.buildingWebchatView)||void 0===C?void 0:C.shouldShowTextDesktop)&&!!ae)&&void 0!==x&&x,textMobile:null!==(S=(null===($=this.buildingWebchatView)||void 0===$?void 0:$.shouldShowTextMobile)&&!!ae)&&void 0!==S&&S,sstDesktop:null!==(E=null===(A=this.buildingWebchatView)||void 0===A?void 0:A.shouldShowSstDesktop)&&void 0!==E&&E,sstMobile:null!==(k=null===(T=this.buildingWebchatView)||void 0===T?void 0:T.shouldShowSstMobile)&&void 0!==k&&k,calcDesktop:se,calcMobile:le};var de,ce;this.enabledChatWidgets=eu(ue),this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile||"radco"===this.orgSlug?(Fu(this.handleTourClicked,this.orgSlug,this.buildingSlug,()=>this.isConnected),ee&&(ce=this.handleTourClicked,document.querySelectorAll('a[href$="schedule-a-tour"]').forEach(e=>{e&&e.addEventListener("click",e=>{e.preventDefault(),ce(e)})})),"radco"===this.orgSlug&&(e=>{document.querySelectorAll('a[href^="#leaseleads-tour-open"]').forEach(t=>{var n;if(!t)return;const i=document.createElement("a");i.textContent=t.textContent,i.style.cursor="pointer",i.addEventListener("click",t=>{t.preventDefault(),e(t)}),null===(n=t.parentNode)||void 0===n||n.replaceChild(i,t)})})(this.handleTourClicked)):(null===(_=this.LeadSourceClient)||void 0===_?void 0:_.leadSource)&&(de=null!==(P=null===(O=this.LeadSourceClient)||void 0===O?void 0:O.leadSource)&&void 0!==P?P:null,document.querySelectorAll("a").forEach(function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const n=t.includes("?")?"&":"?";e.setAttribute("href",t+n+`eliseParsedLeadSource=${encodeURIComponent(de)}`)}})),this.buildingWebchatView&&(this.primaryColor=null!==(I=this.buildingWebchatView.primaryColor)&&void 0!==I?I:null,this.backgroundColor=null!==(N=this.buildingWebchatView.secondaryColor)&&void 0!==N?N:null,this.foregroundColorOnPrimaryBackgroundColor=null!==(M=this.buildingWebchatView.foregroundColorOnPrimaryBackgroundColor)&&void 0!==M?M:null,this.foregroundColorOnSecondaryBackgroundColor=null!==(D=this.buildingWebchatView.foregroundColorOnSecondaryBackgroundColor)&&void 0!==D?D:null,this.webchatConfigHasAutoOpenChat=null!==(L=this.buildingWebchatView.autoOpenChat)&&void 0!==L&&L,this.requiresConsent=null!==(U=this.buildingWebchatView.requiresConsentForChat)&&void 0!==U&&U,this.hideMobileFeatures=null!==(R=this.buildingWebchatView.collapseMobileFeatures)&&void 0!==R&&R,this.privacyPolicyUrl=null!==(B=this.buildingWebchatView.privacyPolicyUrlForChat)&&void 0!==B?B:this.privacyPolicyUrl,this.buildingWebchatView.displayStyle===ta.MINIMIZED&&(this.isMinimized=!0),this.buildingWebchatView.displayStyle===ta.PILLS&&(this.designConcept=null),this.buildingWebchatView.displayStyle===ta.EMOJI&&(this.designConcept=ta.EMOJI),this.onWidgetLoaded()),null===this.primaryColor&&(this.primaryColor=Vn),null===this.backgroundColor&&(this.backgroundColor=Yn);const he=null!==(F=null===(j=this.buildingWebchatView)||void 0===j?void 0:j.phoneNumber)&&void 0!==F?F:"";let pe=null;if(Z&&(pe=await async function(e,t){try{const n=await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source`,{params:{source:t}});return n.data?{number:Gn(n.data.number),isMatch:n.data.match,isPropertyWebsiteCatchall:n.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(G=null===(H=this.LeadSourceClient)||void 0===H?void 0:H.leadSource)&&void 0!==G?G:null),pe&&!pe.isMatch&&(pe.number=he)),J&&(null==pe?void 0:pe.number)){const e=ju(pe.number,this.orgSlug,this.buildingSlug);e>0&&Yo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_dni_insert_override_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}const fe=localStorage.getItem("eliseai_phone_number_devtest");fe&&ju(fe,this.orgSlug,this.buildingSlug),this.phoneNumberForSource=pe||{number:he,isMatch:!1,isPropertyWebsiteCatchall:!0};const ge=null!==(Q=null===(z=this.LeadSourceClient)||void 0===z?void 0:z.leadSource)&&void 0!==Q?Q:null;ge&&(this.leadSources.includes(ge)||this.leadSources.push(ge)),ro(K.id);if((ie||(null===(W=this.buildingWebchatView)||void 0===W?void 0:W.isAip))&&(null===(q=this.buildingWebchatView)||void 0===q?void 0:q.isLiveOnApplications)&&this.buildingSlug){const e=((e,t,n)=>{var i;const r=[/thehavenatgreenhill\.securecafe\.com\/onlineleasing\/the-haven-at-greenhill\/oleapplication\.aspx(\?.*)?$/,/securecafe\.com\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/content\/apply/,/\/apply-now/,/\/apply/,/vsc\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/New\/.*(\?.*)?$/,/busboomgroup\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/],o=document.body.getElementsByTagName("a");let a=0;for(let s=0;s<o.length;s++){const l=o[s];if(l.nodeType===Node.ELEMENT_NODE&&r.some(e=>e.test(l.href))){const r=l.getAttribute("href"),o=(null===(i=l.textContent)||void 0===i?void 0:i.toLowerCase())||"",s=gc(o,e);l.setAttribute("href",s),a++,Vo({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"link-replacement",oldHref:r,newHref:s,website:window.location.href},logType:qo.info,buildingSlug:n,orgSlug:t})}}return 0===a&&Vo({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"no-select-buttons-found",website:window.location.href},logType:qo.warn,buildingSlug:n,orgSlug:t}),a})(`https://applications.eliseai.com/building/${this.buildingSlug}/units`,this.orgSlug,this.buildingSlug);e>0&&Yo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_application_link_replacement_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}if(this.buildingSlug&&this.orgSlug)try{(e=>{const t=mc[e];if(!t)return 0;const n=`${yc}/building/${t}/units`,i=`${yc}/building/${e}/units`,r=new RegExp(`https://applications\\.eliseai\\.com/building/${t}/units`,"g");let o=0;const a=document.body.getElementsByTagName("a");for(let e=0;e<a.length;e++){const t=a[e],s=t.getAttribute("href");if(!s||!s.includes(n))continue;const l=s.replace(r,i);l!==s&&(t.setAttribute("href",l),o++)}document.body.querySelectorAll("[onclick]").forEach(e=>{const t=e.getAttribute("onclick");if(!t||!t.includes(n))return;const a=t.replace(r,i);a!==t&&(e.setAttribute("onclick",a),o++)})})(this.buildingSlug)}catch{}this.buildingSlug&&(null===(V=this.buildingWebchatView)||void 0===V?void 0:V.isLiveOnApplications)&&(null===(Y=this.buildingWebchatView)||void 0===Y?void 0:Y.applicationLink)&&"c954426c-12ab-4f8e-8384-8218e79eaf72"===this.orgSlug&&Cc(this.orgSlug,this.buildingSlug,this.buildingWebchatView.applicationLink)},this.initializeChatVariables=async()=>{var e,t,n,i,r,o,a,s,l,u;if(!this.buildingWebchatView)return;const d=Pu(this.buildingSlug),c=Iu(this.buildingSlug,d),h=c?d:Ou(this.buildingSlug,!1);if(!h.leadId)throw new Error("Lead ID is null");this.LeadSourceClient=new Jo,this.LeadSourceClient.orgId=null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.orgId)&&void 0!==t?t:0,this.LeadSourceMultitouchClient=new xc(this.orgSlug,this.buildingSlug),this.myPubnub=new Uu(this.buildingSlug,this.buildingWebchatView,this.orgSlug,null,h.leadId,this.LeadSourceMultitouchClient,this.LeadSourceClient,this.widgetType);const p=await this.myPubnub.initSession(this.buildingSlug,this.orgSlug,c&&null!==(n=h.leadId)&&void 0!==n?n:void 0);p&&Ou(this.buildingSlug,h.initiatedChat,p.lead_id),this.LeadSourceClient.chatId=this.myPubnub.channel;const f=await(null===(i=this.LeadSourceClient)||void 0===i?void 0:i.generateUserLeadSource({leadId:null!==(o=null===(r=this.myPubnub)||void 0===r?void 0:r.leadUserId)&&void 0!==o?o:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug}));f&&this.LeadSourceMultitouchClient.addSafeLeadSourceTouchpoint(f),"property-website"!==Zo(this.orgSlug)?this.myPubnub.leadSource=null!==(s=null===(a=this.LeadSourceClient)||void 0===a?void 0:a.leadSource)&&void 0!==s?s:Zo(this.orgSlug):this.myPubnub.leadSource=null!==(u=null===(l=this.LeadSourceClient)||void 0===l?void 0:l.leadSource)&&void 0!==u?u:null;const g=Pu(this.buildingSlug);g.initiatedChat&&await this.myPubnub.initializePubnub(g)},this.shouldAutoOpenChat=e=>{const t=sessionStorage.getItem("alreadyAutoOpenedTimestamp"),n=!t||!(t&&!zr(qr(t)));return!!e&&!!n&&!Or()},this.updateAlreadyAutoOpenedTimestamp=()=>{sessionStorage.setItem("alreadyAutoOpenedTimestamp",Br(function(e,t){return ii(2,arguments),wi(e,6e4*vi(t))}(new Date,15)))},this.handleContactClicked=e=>{var t;this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,n;this.showTourNextToChat?null===(t=this.launcherRef.value)||void 0===t||t.onClickSSTOption(e):(this.hideLauncher?this.showTourNextToChat=!0:this.displayPubnubChat=!1,this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickSSTOption(e))},this.handleContactTabClicked=e=>{var t;this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickPhoneOption(e)},this.adjustPositionChatAdditionalActions=()=>{var e,t,n,i;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!r)return;const o=null===(i=null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===n?void 0:n.shadowRoot)||void 0===i?void 0:i.getElementById("pubnub-chat-container"),a=null==o?void 0:o.getBoundingClientRect();a&&(r.style.left=`${a.left}px`,r.style.top=`${a.bottom}px`)},this.handleKeydownTab=e=>{var t,n,i,r,o,a,s,l;if("Tab"!==e.key)return;const u=null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("meetelise-launcher"))||void 0===n?void 0:n.shadowRoot;let d=[];if(this.displayPubnubChat){const e=null===(o=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.getElementById("pubnub-chat"))||void 0===r?void 0:r.shadowRoot)||void 0===o?void 0:o.getElementById("pubnub-chat-container"),t=null===(a=this.shadowRoot)||void 0===a?void 0:a.getElementById("chatAdditionalActionsPubnub");e&&d.push(...this.collectFocusableElements(e)),t&&d.push(...this.collectFocusableElements(t))}else{const e=null!==(l=null!==(s=null==u?void 0:u.getElementById("email-us-window"))&&void 0!==s?s:null==u?void 0:u.getElementById("tour-scheduler-window"))&&void 0!==l?l:null==u?void 0:u.getElementById("call-us-window");e&&(d=this.collectFocusableElements(e))}if(0===d.length)return;e.preventDefault();const c=this.getDeepActiveElement(),h=d.findIndex(e=>e===c);d[e.shiftKey?(h-1+d.length)%d.length:(h+1)%d.length].focus()},this.onClickMinimize=e=>{e.preventDefault(),e.stopPropagation(),this.isMinimized=!this.isMinimized,this.showTourNextToChat=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,localStorage.setItem("isChatOpen","true")},e.onExitChat=this.onExitChat)},this.onExitChat=()=>{this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,localStorage.setItem("isChatOpen","false")}}async handleChatInitializeAnalytics(){var e,t,n,i;this.analytics=new Qo(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(i=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==i?i:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),_u(this.buildingSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),window.addEventListener("keydown",this.handleKeydownTab),this._cleanupMobileListener=Pr(e=>{this._isMobile=e})}static isFocusable(e){return!("disabled"in e)||!e.disabled}collectFocusableElements(e){const t=[];e instanceof Element&&e.shadowRoot&&t.push(...this.collectFocusableElements(e.shadowRoot));const n=e.querySelectorAll("*");for(const e of Array.from(n))e.matches($c.FOCUSABLE_SELECTOR)&&$c.isFocusable(e)&&t.push(e),e.shadowRoot&&t.push(...this.collectFocusableElements(e.shadowRoot));return t}getDeepActiveElement(){let e=document.activeElement,t=0;for(;(null==e?void 0:e.shadowRoot)&&(null==e?void 0:e.shadowRoot.activeElement);)if(t+=1,e=null==e?void 0:e.shadowRoot.activeElement,t>100){Vo({logType:qo.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_GETTING_DEEP_ELEMENT]",logData:{message:"error getting deep active element"}});break}return e}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e,t;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),null===(t=this._cleanupMobileListener)||void 0===t||t.call(this),super.disconnectedCallback()}render(){var e,t,n,i,r,o,a,s,l,u,d,c,h,p,f,g,m,y,b,v,w,C,x,$,S,A,E,T,k,_,O,P,I,N,M,D,L,U,B,j,F,H,G,z,Q,W,q;Xl();const V=this.hideLauncher&&!this.isLoading&&!this._isMobile;return R`
|
|
7301
|
+
`}};cc.AUTO_SCROLL_THRESHOLD_PX=32,cc.styles=[Oe,Wu,Qu,zu,ac],dc([ue({type:Number})],cc.prototype,"right",void 0),dc([ue({type:Number})],cc.prototype,"bottom",void 0),dc([ue({type:Number})],cc.prototype,"top",void 0),dc([ue({type:Number})],cc.prototype,"left",void 0),dc([ue({attribute:!0})],cc.prototype,"onMount",void 0),dc([ue({attribute:!0})],cc.prototype,"channel",void 0),dc([ue({attribute:!0})],cc.prototype,"isHealthChat",void 0),dc([ue({attribute:!0})],cc.prototype,"myPubnub",void 0),dc([ue({attribute:!0})],cc.prototype,"orgSlug",void 0),dc([ue({attribute:!0})],cc.prototype,"buildingSlug",void 0),dc([ue({attribute:!0})],cc.prototype,"widgetType",void 0),dc([ue({attribute:!0})],cc.prototype,"building",void 0),dc([ue({attribute:!0})],cc.prototype,"primaryColor",void 0),dc([ue({attribute:!0})],cc.prototype,"backgroundColor",void 0),dc([ue({attribute:!0})],cc.prototype,"onClickExit",void 0),dc([ue({attribute:!0})],cc.prototype,"requiresConsent",void 0),dc([ce("#message-input",!0)],cc.prototype,"messageInput",void 0),dc([ce("#conversation-body",!0)],cc.prototype,"messageBody",void 0),dc([de()],cc.prototype,"_isMobile",void 0),dc([de()],cc.prototype,"messages",void 0),dc([de()],cc.prototype,"isLoadingMessages",void 0),dc([de()],cc.prototype,"hasReceivedConsent",void 0),dc([de()],cc.prototype,"privacyPolicyUrl",void 0),dc([de()],cc.prototype,"websitePreviewMapping",void 0),cc=uc=dc([se("pubnub-chat")],cc);const hc="cdn.skypack.dev/@meetelise/chat",pc="cdn.eliseai.com/@meetelise/chat",fc=async(e,t)=>{try{if(Math.random()>=.15)return;const n=(()=>{try{const e=document.getElementsByTagName("script");for(const t of e){const e=t.src||"",n=t.textContent||"";if(e.includes(hc)||n.includes(hc))return"skypack";if(e.includes(pc)||n.includes(pc))return"eliseai"}return"unknown"}catch(e){return"unknown"}})();await r().post("https://app.meetelise.com/platformApi/webchat/cdn-version",{cdn_version:n},{params:{cdn_version:n},headers:{"Content-Type":"application/json","building-slug":t,"org-slug":e}})}catch(e){}},gc=(e,t)=>["floor plan","floorplan","floor plans","floorplans","apply here"].some(t=>e.toLowerCase().includes(t))?t.endsWith("/units")?t:`${t}/units`:t,mc={"95ae958e-95db-11ed-9862-6f4db5533d3f":"8008db60-45b7-11f1-88ac-635f686365da","95ae96b0-95db-11ed-9863-a7aa664fd985":"72ed27c4-45b7-11f1-82d9-37b7db547687"},yc="https://applications.eliseai.com",bc=["Check Availability","Apply Now"],vc=(e,t,n,i)=>{if(!(e=>{var t;if(!e.classList.contains("floorplan-button"))return!1;const n=e.getElementsByTagName("span");if(1!==n.length)return!1;const i=null===(t=n[0].textContent)||void 0===t?void 0:t.trim();return null!=i&&bc.includes(i)})(e))return!1;if(e.getAttribute("href")===t)return!1;const r=e.getAttribute("href");return e.setAttribute("href",t),e.setAttribute("target","_blank"),Vo({logTitle:"CHECK_AVAIL_OVERWRITE",logData:{oldHref:r,newHref:t,website:window.location.href},logType:qo.info,buildingSlug:i,orgSlug:n}),!0},wc=(e,t,n,i)=>{for(let r=0;r<e.length;r++){const o=e[r];if(o.nodeType!==Node.ELEMENT_NODE)continue;const a=o;"A"===a.tagName&&vc(a,t,n,i);const s=a.getElementsByTagName("a");for(let e=0;e<s.length;e++)vc(s[e],t,n,i)}},Cc=(e,t,n)=>{((e,t,n)=>{const i=document.body.getElementsByTagName("a");for(let r=0;r<i.length;r++)vc(i[r],e,t,n)})(n,e,t);new MutationObserver(i=>{for(const r of i)wc(r.addedNodes,n,e,t)}).observe(document.body,{childList:!0,subtree:!0})};class xc{constructor(e,t){this.persistLeadSourceTTLDays=30,this.maxSourcesNonPropertyWebsiteCount=3,this._generateLeadSourceLocalStorageKey=()=>`com.eliseai.webchat.leadsources.v2.buildingslug=${this.buildingSlug}`,this._generateNewExpirationTimestamp=()=>Br(jr(new Date,this.persistLeadSourceTTLDays)),this._generateLeadSourceParameters=()=>{const e=bo();return{websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:e,referrer:document.referrer,parsedUtmSource:e?e.utm_source:null,campaignSources:Object.values(Wo()).filter(e=>e)}},this.addSafeLeadSourceTouchpoint=e=>{const t=this.getLocalStorageMultitouchValue(),n=this._generateLeadSourceLocalStorageKey();if(!t||this.isExpiredTimestamp(t.timestampExpires)){const t={timestampExpires:this._generateNewExpirationTimestamp(),leadSources:[{parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:Br(new Date),type:"touchpoint"}]};localStorage.setItem(n,JSON.stringify(t))}else{if(t.leadSources.find(t=>t.leadSourceValue===e))return;if(t.leadSources.length<this.maxSourcesNonPropertyWebsiteCount)return t.leadSources.push({parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:Br(new Date),type:"touchpoint"}),t.timestampExpires=this._generateNewExpirationTimestamp(),void localStorage.setItem(n,JSON.stringify(t));Vo({logType:qo.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,logTitle:"TOO_MANY_LEAD_SOURCES",logData:{buildingSlug:this.buildingSlug}})}},this.getSafeLeadSourceTouchpointsWithDefault=({includedUserSelectedLeadSource:e})=>{const t=this.getLocalStorageMultitouchValue(),n=Zo(this.orgSlug);if(!t){const t=[{leadSourceValue:n,timestampInitiallyLogged:Br(new Date),type:"default"}];return e&&t.push({leadSourceValue:e,timestampInitiallyLogged:Br(new Date),type:"user-selected"}),t}const i=t.leadSources.length>0?t.leadSources.sort((e,t)=>qr(e.timestampInitiallyLogged).getTime()-qr(t.timestampInitiallyLogged).getTime())[0].timestampInitiallyLogged:Br(new Date),r=[{timestampInitiallyLogged:i,leadSourceValue:n,type:"default"},...t.leadSources.map(e=>({timestampInitiallyLogged:e.timestampInitiallyLogged,leadSourceValue:e.leadSourceValue,type:e.type}))];return e&&r.push({leadSourceValue:e,timestampInitiallyLogged:Br(new Date),type:"user-selected"}),r},this.getLocalStorageMultitouchValue=()=>{const e=this._generateLeadSourceLocalStorageKey(),t=localStorage.getItem(e);if(!t)return null;return JSON.parse(t)},this.isExpiredTimestamp=e=>qr(e)<new Date,this.resetLeadSourceTouchpoints=()=>{const e=this._generateLeadSourceLocalStorageKey();return localStorage.removeItem(e),!0},this.orgSlug=e,this.buildingSlug=t}}var $c,Sc=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ac=$c=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.centralConvo=!1,this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.primaryColor=null,this.backgroundColor=null,this.foregroundColorOnPrimaryBackgroundColor=null,this.foregroundColorOnSecondaryBackgroundColor=null,this._isMobile=Or(),this.chatId="",this.analytics=null,this.launcher=null,this.buildingWebchatView=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=go.always,this.bedroomPreferenceRequired=!1,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!1,this.openTourSchedulerOnLoad=!1,this.displayPubnubChat=!1,this.myPubnub=null,this.LeadSourceClient=null,this.LeadSourceMultitouchClient=null,this.sampleRateToUse=.05,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.overrideRentgrata=!1,this.widgetType=jc.Default,this.onWidgetLoaded=ql(),this.onSstClose=ql(),this.enabledChatWidgets={callDesktop:!1,callMobile:!1,chatMobile:!1,chatDesktop:!1,emailDesktop:!1,emailMobile:!1,textDesktop:!1,textMobile:!1,sstDesktop:!1,sstMobile:!1,calcDesktop:!1,calcMobile:!1},this.webchatConfigHasAutoOpenChat=!1,this.requiresConsent=!1,this.hideMobileFeatures=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.launcherRef=Ee(),this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{var e,t;if(!this.orgSlug)return;if(!this.centralConvo&&!this.buildingSlug)return;const n=this.centralConvo?await async function(e){const t=`https://app.meetelise.com/api/pub/v1/organization/${e}/webchat/v2`,n=await r().get(t);return aa(n.data)}(this.orgSlug):await oa(this.orgSlug,this.buildingSlug);if(Math.random()<.2)try{(async(e,t)=>{const n=window.rentgrata;if(!n)return;const i=n.Widget;if(!i)return;const o=i.config;if(!o)return;const a=o.widgetKey;a&&await r().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=t?t:""}})})(this.buildingSlug,this.orgSlug)}catch(e){}try{fc(this.orgSlug,this.buildingSlug)}catch(e){}await Za(n,this.buildingSlug,this.orgSlug)&&(Yo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_pixel_on_site:!0,is_any_webchat_showing:!0},sampleRate:(null==n?void 0:n.launchedDateTime)?.01:.05}),this.buildingWebchatView=n,await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),(e=>{const t=new URLSearchParams(window.location.search).get("rwg_token");if(!t||!e)return;const n={rwgToken:t,buildingId:e,expiresAt:Date.now()+2592e6};localStorage.setItem(Ha,JSON.stringify(n))})(null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.id)&&void 0!==t?t:0),"tour"===new URLSearchParams(window.location.search).get("elise_open")&&(this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile)?this.openTourSchedulerOnLoad=!0:this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)?(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.updateAlreadyAutoOpenedTimestamp()):"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0),this.isLoading=!1)},this.setBuildingDerivedInfo=async()=>{var e,t,n,i,o,a,s,l,u,d,c,h,p,f,g,m,y,b,v,w,C,x,$,S,A,E,T,k,_,O,P,I,M,N,D,L,U,R,B,j,F,H,G,z,Q,W,q,V,Y;const K=this.buildingWebchatView;if(!K)return;K&&this.orgSlug&&Tc(this.orgSlug,null!==(t=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.chatId)&&void 0!==t?t:null,this.sampleRateToUse,this.buildingSlug,null!==(i=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==i?i:null);const X=K.featureFlagWebchatMarketingSourceDropdownConfiguration,Z=K.featureFlagWebchatUseDniPhoneNumberBySource,J=K.featureFlagInsertDniIntoWebsite,ee=K.featureFlagWebchatReplaceAnyScheduleTourCtaWebsite;var te;te=wo.includes(K.orgId),xo=te;const[ne,ie,re,oe]=await Promise.all([gu(this.orgSlug,this.buildingSlug),mo(this.buildingSlug),yu(this.buildingSlug),yo(this.buildingSlug)]);this.buildingWebchatView&&(this.buildingWebchatView.phoneNumber=Gn(K.phoneNumber),this.buildingWebchatView.isAip=re),this.leadSources=ne,this.featureFlagShowDropdown=X,this.bedroomPreferenceRequired=oe;const ae=K.textWithUsPhoneNumber?K.textWithUsPhoneNumber:await(async e=>{try{const t="https://app.meetelise.com",n=await r().get(`${t}/platformApi/webchat/${e}/phone-number`);if(n.data)return n.data}catch(t){return Vo({logType:qo.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t},error:t}),null}return null})(this.buildingSlug),se=null!==(a=null===(o=this.buildingWebchatView)||void 0===o?void 0:o.shouldShowPricingCalculatorDesktop)&&void 0!==a&&a,le=null!==(l=null===(s=this.buildingWebchatView)||void 0===s?void 0:s.shouldShowPricingCalculatorMobile)&&void 0!==l&&l,ue={callDesktop:null!==(d=null===(u=this.buildingWebchatView)||void 0===u?void 0:u.shouldShowPhoneDesktop)&&void 0!==d&&d,callMobile:null!==(h=null===(c=this.buildingWebchatView)||void 0===c?void 0:c.shouldShowPhoneMobile)&&void 0!==h&&h,chatDesktop:null!==(f=null===(p=this.buildingWebchatView)||void 0===p?void 0:p.shouldShowChatDesktop)&&void 0!==f&&f,chatMobile:null!==(m=null===(g=this.buildingWebchatView)||void 0===g?void 0:g.shouldShowChatMobile)&&void 0!==m&&m,emailDesktop:null!==(b=null===(y=this.buildingWebchatView)||void 0===y?void 0:y.shouldShowEmailDesktop)&&void 0!==b&&b,emailMobile:null!==(w=null===(v=this.buildingWebchatView)||void 0===v?void 0:v.shouldShowEmailMobile)&&void 0!==w&&w,textDesktop:null!==(x=(null===(C=this.buildingWebchatView)||void 0===C?void 0:C.shouldShowTextDesktop)&&!!ae)&&void 0!==x&&x,textMobile:null!==(S=(null===($=this.buildingWebchatView)||void 0===$?void 0:$.shouldShowTextMobile)&&!!ae)&&void 0!==S&&S,sstDesktop:null!==(E=null===(A=this.buildingWebchatView)||void 0===A?void 0:A.shouldShowSstDesktop)&&void 0!==E&&E,sstMobile:null!==(k=null===(T=this.buildingWebchatView)||void 0===T?void 0:T.shouldShowSstMobile)&&void 0!==k&&k,calcDesktop:se,calcMobile:le};var de,ce;this.enabledChatWidgets=eu(ue),this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile||"radco"===this.orgSlug?(Fu(this.handleTourClicked,this.orgSlug,this.buildingSlug,()=>this.isConnected),ee&&(ce=this.handleTourClicked,document.querySelectorAll('a[href$="schedule-a-tour"]').forEach(e=>{e&&e.addEventListener("click",e=>{e.preventDefault(),ce(e)})})),"radco"===this.orgSlug&&(e=>{document.querySelectorAll('a[href^="#leaseleads-tour-open"]').forEach(t=>{var n;if(!t)return;const i=document.createElement("a");i.textContent=t.textContent,i.style.cursor="pointer",i.addEventListener("click",t=>{t.preventDefault(),e(t)}),null===(n=t.parentNode)||void 0===n||n.replaceChild(i,t)})})(this.handleTourClicked)):(null===(_=this.LeadSourceClient)||void 0===_?void 0:_.leadSource)&&(de=null!==(P=null===(O=this.LeadSourceClient)||void 0===O?void 0:O.leadSource)&&void 0!==P?P:null,document.querySelectorAll("a").forEach(function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const n=t.includes("?")?"&":"?";e.setAttribute("href",t+n+`eliseParsedLeadSource=${encodeURIComponent(de)}`)}})),this.buildingWebchatView&&(this.primaryColor=null!==(I=this.buildingWebchatView.primaryColor)&&void 0!==I?I:null,this.backgroundColor=null!==(M=this.buildingWebchatView.secondaryColor)&&void 0!==M?M:null,this.foregroundColorOnPrimaryBackgroundColor=null!==(N=this.buildingWebchatView.foregroundColorOnPrimaryBackgroundColor)&&void 0!==N?N:null,this.foregroundColorOnSecondaryBackgroundColor=null!==(D=this.buildingWebchatView.foregroundColorOnSecondaryBackgroundColor)&&void 0!==D?D:null,this.webchatConfigHasAutoOpenChat=null!==(L=this.buildingWebchatView.autoOpenChat)&&void 0!==L&&L,this.requiresConsent=null!==(U=this.buildingWebchatView.requiresConsentForChat)&&void 0!==U&&U,this.hideMobileFeatures=null!==(R=this.buildingWebchatView.collapseMobileFeatures)&&void 0!==R&&R,this.privacyPolicyUrl=null!==(B=this.buildingWebchatView.privacyPolicyUrlForChat)&&void 0!==B?B:this.privacyPolicyUrl,this.buildingWebchatView.displayStyle===ta.MINIMIZED&&(this.isMinimized=!0),this.buildingWebchatView.displayStyle===ta.PILLS&&(this.designConcept=null),this.buildingWebchatView.displayStyle===ta.EMOJI&&(this.designConcept=ta.EMOJI),this.onWidgetLoaded()),null===this.primaryColor&&(this.primaryColor=Vn),null===this.backgroundColor&&(this.backgroundColor=Yn);const he=null!==(F=null===(j=this.buildingWebchatView)||void 0===j?void 0:j.phoneNumber)&&void 0!==F?F:"";let pe=null;if(Z&&(pe=await async function(e,t){try{const n=await r().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source`,{params:{source:t}});return n.data?{number:Gn(n.data.number),isMatch:n.data.match,isPropertyWebsiteCatchall:n.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(G=null===(H=this.LeadSourceClient)||void 0===H?void 0:H.leadSource)&&void 0!==G?G:null),pe&&!pe.isMatch&&(pe.number=he)),J&&(null==pe?void 0:pe.number)){const e=ju(pe.number,this.orgSlug,this.buildingSlug);e>0&&Yo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_dni_insert_override_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}const fe=localStorage.getItem("eliseai_phone_number_devtest");fe&&ju(fe,this.orgSlug,this.buildingSlug),this.phoneNumberForSource=pe||{number:he,isMatch:!1,isPropertyWebsiteCatchall:!0};const ge=null!==(Q=null===(z=this.LeadSourceClient)||void 0===z?void 0:z.leadSource)&&void 0!==Q?Q:null;ge&&(this.leadSources.includes(ge)||this.leadSources.push(ge)),ro(K.id);if((ie||(null===(W=this.buildingWebchatView)||void 0===W?void 0:W.isAip))&&(null===(q=this.buildingWebchatView)||void 0===q?void 0:q.isLiveOnApplications)&&this.buildingSlug){const e=((e,t,n)=>{var i;const r=[/thehavenatgreenhill\.securecafe\.com\/onlineleasing\/the-haven-at-greenhill\/oleapplication\.aspx(\?.*)?$/,/securecafe\.com\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/content\/apply/,/\/apply-now/,/\/apply/,/vsc\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/New\/.*(\?.*)?$/,/busboomgroup\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/],o=document.body.getElementsByTagName("a");let a=0;for(let s=0;s<o.length;s++){const l=o[s];if(l.nodeType===Node.ELEMENT_NODE&&r.some(e=>e.test(l.href))){const r=l.getAttribute("href"),o=(null===(i=l.textContent)||void 0===i?void 0:i.toLowerCase())||"",s=gc(o,e);l.setAttribute("href",s),a++,Vo({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"link-replacement",oldHref:r,newHref:s,website:window.location.href},logType:qo.info,buildingSlug:n,orgSlug:t})}}return 0===a&&Vo({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"no-select-buttons-found",website:window.location.href},logType:qo.warn,buildingSlug:n,orgSlug:t}),a})(`https://applications.eliseai.com/building/${this.buildingSlug}/units`,this.orgSlug,this.buildingSlug);e>0&&Yo({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_application_link_replacement_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}if(this.buildingSlug&&this.orgSlug)try{(e=>{const t=mc[e];if(!t)return 0;const n=`${yc}/building/${t}/units`,i=`${yc}/building/${e}/units`,r=new RegExp(`https://applications\\.eliseai\\.com/building/${t}/units`,"g");let o=0;const a=document.body.getElementsByTagName("a");for(let e=0;e<a.length;e++){const t=a[e],s=t.getAttribute("href");if(!s||!s.includes(n))continue;const l=s.replace(r,i);l!==s&&(t.setAttribute("href",l),o++)}document.body.querySelectorAll("[onclick]").forEach(e=>{const t=e.getAttribute("onclick");if(!t||!t.includes(n))return;const a=t.replace(r,i);a!==t&&(e.setAttribute("onclick",a),o++)})})(this.buildingSlug)}catch{}this.buildingSlug&&(null===(V=this.buildingWebchatView)||void 0===V?void 0:V.isLiveOnApplications)&&(null===(Y=this.buildingWebchatView)||void 0===Y?void 0:Y.applicationLink)&&"c954426c-12ab-4f8e-8384-8218e79eaf72"===this.orgSlug&&Cc(this.orgSlug,this.buildingSlug,this.buildingWebchatView.applicationLink)},this.initializeChatVariables=async()=>{var e,t,n,i,r,o,a,s,l,u;if(!this.buildingWebchatView)return;const d=Pu(this.buildingSlug),c=Iu(this.buildingSlug,d),h=c?d:Ou(this.buildingSlug,!1);if(!h.leadId)throw new Error("Lead ID is null");this.LeadSourceClient=new Jo,this.LeadSourceClient.orgId=null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.orgId)&&void 0!==t?t:0,this.LeadSourceMultitouchClient=new xc(this.orgSlug,this.buildingSlug),this.myPubnub=new Uu(this.buildingSlug,this.buildingWebchatView,this.orgSlug,null,h.leadId,this.LeadSourceMultitouchClient,this.LeadSourceClient,this.widgetType);const p=await this.myPubnub.initSession(this.buildingSlug,this.orgSlug,c&&null!==(n=h.leadId)&&void 0!==n?n:void 0);p&&Ou(this.buildingSlug,h.initiatedChat,p.lead_id),this.LeadSourceClient.chatId=this.myPubnub.channel;const f=await(null===(i=this.LeadSourceClient)||void 0===i?void 0:i.generateUserLeadSource({leadId:null!==(o=null===(r=this.myPubnub)||void 0===r?void 0:r.leadUserId)&&void 0!==o?o:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug}));f&&this.LeadSourceMultitouchClient.addSafeLeadSourceTouchpoint(f),"property-website"!==Zo(this.orgSlug)?this.myPubnub.leadSource=null!==(s=null===(a=this.LeadSourceClient)||void 0===a?void 0:a.leadSource)&&void 0!==s?s:Zo(this.orgSlug):this.myPubnub.leadSource=null!==(u=null===(l=this.LeadSourceClient)||void 0===l?void 0:l.leadSource)&&void 0!==u?u:null;const g=Pu(this.buildingSlug);g.initiatedChat&&await this.myPubnub.initializePubnub(g)},this.shouldAutoOpenChat=e=>{const t=sessionStorage.getItem("alreadyAutoOpenedTimestamp"),n=!t||!(t&&!zr(qr(t)));return!!e&&!!n&&!Or()},this.updateAlreadyAutoOpenedTimestamp=()=>{sessionStorage.setItem("alreadyAutoOpenedTimestamp",Br(function(e,t){return ii(2,arguments),wi(e,6e4*vi(t))}(new Date,15)))},this.handleContactClicked=e=>{var t;this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,n;this.showTourNextToChat?null===(t=this.launcherRef.value)||void 0===t||t.onClickSSTOption(e):(this.hideLauncher?this.showTourNextToChat=!0:this.displayPubnubChat=!1,this.hideLauncher=!1,null===(n=this.launcherRef.value)||void 0===n||n.onClickSSTOption(e))},this.handleContactTabClicked=e=>{var t;this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickPhoneOption(e)},this.adjustPositionChatAdditionalActions=()=>{var e,t,n,i;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!r)return;const o=null===(i=null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===n?void 0:n.shadowRoot)||void 0===i?void 0:i.getElementById("pubnub-chat-container"),a=null==o?void 0:o.getBoundingClientRect();a&&(r.style.left=`${a.left}px`,r.style.top=`${a.bottom}px`)},this.handleKeydownTab=e=>{var t,n,i,r,o,a,s,l;if("Tab"!==e.key)return;const u=null===(n=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("meetelise-launcher"))||void 0===n?void 0:n.shadowRoot;let d=[];if(this.displayPubnubChat){const e=null===(o=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.getElementById("pubnub-chat"))||void 0===r?void 0:r.shadowRoot)||void 0===o?void 0:o.getElementById("pubnub-chat-container"),t=null===(a=this.shadowRoot)||void 0===a?void 0:a.getElementById("chatAdditionalActionsPubnub");e&&d.push(...this.collectFocusableElements(e)),t&&d.push(...this.collectFocusableElements(t))}else{const e=null!==(l=null!==(s=null==u?void 0:u.getElementById("email-us-window"))&&void 0!==s?s:null==u?void 0:u.getElementById("tour-scheduler-window"))&&void 0!==l?l:null==u?void 0:u.getElementById("call-us-window");e&&(d=this.collectFocusableElements(e))}if(0===d.length)return;e.preventDefault();const c=this.getDeepActiveElement(),h=d.findIndex(e=>e===c);d[e.shiftKey?(h-1+d.length)%d.length:(h+1)%d.length].focus()},this.onClickMinimize=e=>{e.preventDefault(),e.stopPropagation(),this.isMinimized=!this.isMinimized,this.showTourNextToChat=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,localStorage.setItem("isChatOpen","true")},e.onExitChat=this.onExitChat)},this.onExitChat=()=>{this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,localStorage.setItem("isChatOpen","false")}}async handleChatInitializeAnalytics(){var e,t,n,i;this.analytics=new Qo(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(i=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==i?i:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),_u(this.buildingSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),window.addEventListener("keydown",this.handleKeydownTab),this._cleanupMobileListener=Pr(e=>{this._isMobile=e})}static isFocusable(e){return!("disabled"in e)||!e.disabled}collectFocusableElements(e){const t=[];e instanceof Element&&e.shadowRoot&&t.push(...this.collectFocusableElements(e.shadowRoot));const n=e.querySelectorAll("*");for(const e of Array.from(n))e.matches($c.FOCUSABLE_SELECTOR)&&$c.isFocusable(e)&&t.push(e),e.shadowRoot&&t.push(...this.collectFocusableElements(e.shadowRoot));return t}getDeepActiveElement(){let e=document.activeElement,t=0;for(;(null==e?void 0:e.shadowRoot)&&(null==e?void 0:e.shadowRoot.activeElement);)if(t+=1,e=null==e?void 0:e.shadowRoot.activeElement,t>100){Vo({logType:qo.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_GETTING_DEEP_ELEMENT]",logData:{message:"error getting deep active element"}});break}return e}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e,t;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),null===(t=this._cleanupMobileListener)||void 0===t||t.call(this),super.disconnectedCallback()}render(){var e,t,n,i,r,o,a,s,l,u,d,c,h,p,f,g,m,y,b,v,w,C,x,$,S,A,E,T,k,_,O,P,I,M,N,D,L,U,B,j,F,H,G,z,Q,W,q;Xl();const V=this.hideLauncher&&!this.isLoading&&!this._isMobile;return R`
|
|
7308
7302
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7309
7303
|
${this.displayPubnubChat?R`
|
|
7310
7304
|
<pubnub-chat
|
|
@@ -7379,7 +7373,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7379
7373
|
buildingName=${null!==(I=null===(P=this.buildingWebchatView)||void 0===P?void 0:P.name)&&void 0!==I?I:""}
|
|
7380
7374
|
orgSlug="${this.orgSlug}"
|
|
7381
7375
|
buildingSlug="${this.buildingSlug}"
|
|
7382
|
-
sgtUrl="${null!==(
|
|
7376
|
+
sgtUrl="${null!==(N=null===(M=this.buildingWebchatView)||void 0===M?void 0:M.sgtUrl)&&void 0!==N?N:""}"
|
|
7383
7377
|
selfGuidedToursTypeOffered="${null===(D=this.buildingWebchatView)||void 0===D?void 0:D.selfGuidedToursTypeOffered}"
|
|
7384
7378
|
selfGuidedTourEnabled="${null===(L=this.buildingWebchatView)||void 0===L?void 0:L.isSelfGuidedTourEnabled}"
|
|
7385
7379
|
designConcept="${null!==(U=this.designConcept)&&void 0!==U?U:""}"
|
|
@@ -7554,7 +7548,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7554
7548
|
/>
|
|
7555
7549
|
</svg>
|
|
7556
7550
|
</button>
|
|
7557
|
-
</div>`}};Pc.styles=[_c],Oc([ue({type:Number})],Pc.prototype,"right",void 0),Oc([ue({type:Number})],Pc.prototype,"bottom",void 0),Oc([ue({type:Number})],Pc.prototype,"top",void 0),Oc([ue({type:Number})],Pc.prototype,"left",void 0),Oc([ue({attribute:!0})],Pc.prototype,"isChatOpen",void 0),Oc([ue({attribute:!0})],Pc.prototype,"onClickCloseChat",void 0),Oc([ue({attribute:!0})],Pc.prototype,"onClickOpenChat",void 0),Pc=Oc([se("simple-launcher")],Pc);var Ic=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let
|
|
7551
|
+
</div>`}};Pc.styles=[_c],Oc([ue({type:Number})],Pc.prototype,"right",void 0),Oc([ue({type:Number})],Pc.prototype,"bottom",void 0),Oc([ue({type:Number})],Pc.prototype,"top",void 0),Oc([ue({type:Number})],Pc.prototype,"left",void 0),Oc([ue({attribute:!0})],Pc.prototype,"isChatOpen",void 0),Oc([ue({attribute:!0})],Pc.prototype,"onClickCloseChat",void 0),Oc([ue({attribute:!0})],Pc.prototype,"onClickOpenChat",void 0),Pc=Oc([se("simple-launcher")],Pc);var Ic=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Mc=class extends oe{constructor(){super(...arguments),this.healthcareId="",this.right=0,this.bottom=0,this.top=0,this.left=0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=Ee(),this.firstUpdated=async()=>{await this.initializeChatVariables()},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=Pu(this.healthcareId),t=Iu(this.healthcareId,e)?e:Ou(this.healthcareId,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new Uu(this.healthcareId,null,"",this.currentLeadSource,t.leadId,null,null,jc.Healthcare),t.initiatedChat&&await this.myPubnub.initializePubnub(e),Or()||(this.displayPubnubChat=!0),this.attachOnClickToLauncher(),this.isLoading=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0})}}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),_u(this.healthcareId),this.myPubnub=null,this.displayPubnubChat=!1,await this.initializeChatVariables()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),super.disconnectedCallback()}render(){var e;return Xl(),this.isLoading?R``:R`
|
|
7558
7552
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
7559
7553
|
${this.displayPubnubChat?R`
|
|
7560
7554
|
<pubnub-chat
|
|
@@ -7585,7 +7579,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7585
7579
|
></simple-launcher>
|
|
7586
7580
|
|
|
7587
7581
|
</meta>
|
|
7588
|
-
`}};
|
|
7582
|
+
`}};Mc.styles=u`
|
|
7589
7583
|
:host {
|
|
7590
7584
|
all: initial;
|
|
7591
7585
|
}
|
|
@@ -7638,7 +7632,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7638
7632
|
line-height: 150%;
|
|
7639
7633
|
font-size: 16px;
|
|
7640
7634
|
}
|
|
7641
|
-
`,Ic([ue({type:String})],
|
|
7635
|
+
`,Ic([ue({type:String})],Mc.prototype,"healthcareId",void 0),Ic([ue({type:Number})],Mc.prototype,"right",void 0),Ic([ue({type:Number})],Mc.prototype,"bottom",void 0),Ic([ue({type:Number})],Mc.prototype,"top",void 0),Ic([ue({type:Number})],Mc.prototype,"left",void 0),Ic([de()],Mc.prototype,"launcher",void 0),Ic([de()],Mc.prototype,"currentLeadSource",void 0),Ic([de()],Mc.prototype,"displayPubnubChat",void 0),Ic([de()],Mc.prototype,"myPubnub",void 0),Ic([de()],Mc.prototype,"requiresConsent",void 0),Ic([de()],Mc.prototype,"privacyPolicyUrl",void 0),Ic([de()],Mc.prototype,"isLoading",void 0),Mc=Ic([se("health-chat")],Mc);var Nc=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Dc=class extends oe{constructor(){super(...arguments),this.orgSlug="",this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.launcher=null,this.currentLeadSource=null,this.displayPubnubChat=!1,this.myPubnub=null,this.requiresConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.isLoading=!0,this.launcherRef=Ee(),this.firstUpdated=async()=>{(await async function(e){if(!e)return!1;const t="e2e-test-yardi-building";try{return(await r().get(fo(t),{params:{building_slug:t,flag_type:"bool",feature_flag:"enable-show-utilities-webchat",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(this.orgSlug)||location.href.includes("demo/utilities"))&&await this.initializeChatVariables()},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=Pu(this.orgSlug),t=Iu(this.orgSlug,e)?e:Ou(this.orgSlug,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new Uu(this.orgSlug,null,this.orgSlug,this.currentLeadSource,t.leadId,null,null,jc.Utilities),t.initiatedChat&&await this.myPubnub.initializePubnub(e),Or()||(this.displayPubnubChat=!0),this.attachOnClickToLauncher(),this.isLoading=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0})}}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),_u(this.orgSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.initializeChatVariables()}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),super.disconnectedCallback()}render(){var e;return Xl(),this.isLoading?R``:R`
|
|
7642
7636
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
7643
7637
|
${this.displayPubnubChat?R`
|
|
7644
7638
|
<pubnub-chat
|
|
@@ -7721,4 +7715,4 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7721
7715
|
line-height: 150%;
|
|
7722
7716
|
font-size: 16px;
|
|
7723
7717
|
}
|
|
7724
|
-
`,
|
|
7718
|
+
`,Nc([ue({type:String})],Dc.prototype,"orgSlug",void 0),Nc([ue({type:Number})],Dc.prototype,"right",void 0),Nc([ue({type:Number})],Dc.prototype,"bottom",void 0),Nc([ue({type:Number})],Dc.prototype,"top",void 0),Nc([ue({type:Number})],Dc.prototype,"left",void 0),Nc([de()],Dc.prototype,"launcher",void 0),Nc([de()],Dc.prototype,"currentLeadSource",void 0),Nc([de()],Dc.prototype,"displayPubnubChat",void 0),Nc([de()],Dc.prototype,"myPubnub",void 0),Nc([de()],Dc.prototype,"requiresConsent",void 0),Nc([de()],Dc.prototype,"privacyPolicyUrl",void 0),Nc([de()],Dc.prototype,"isLoading",void 0),Dc=Nc([se("utilities-chat")],Dc);const Lc=async e=>{const t=window.location.href,n=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(t)}`,i=await r().get(n,{headers:{"org-slug":e}});return Math.random()<.2&&Vo({logType:i&&i.data?qo.info:qo.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${i?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:i.data,url:t,orgSlug:e,givenBuildingSlug:null,reason:i&&i.data?null:"No match found"}}),i.data},Uc=async(e,t=5e3)=>new Promise((n,i)=>{const r=new MutationObserver((t,i)=>{const r=document.getElementById(e);r&&(i.disconnect(),n(r))});r.observe(document.body,{childList:!0,subtree:!0});const o=setTimeout(()=>{r.disconnect(),i(new Error(`Element ${e} did not appear within ${t}ms`))},t),a=document.querySelector(e);a&&(clearTimeout(o),r.disconnect(),n(a))});class Rc{static healthcareStart(e,t=!0){var n,i,r,o;t&&(this.healthcareId=e.id,this.overridePlacement={right:e.right,bottom:e.bottom,top:e.top,left:e.left}),Fc();const a=document.createElement("health-chat");a.setAttribute("class","health-chat"),a.setAttribute("role","region"),a.setAttribute("aria-label","EliseAI Healthcare Widget"),a.setAttribute("healthcareId",e.id),a.setAttribute("right",(null===(n=e.right)||void 0===n?void 0:n.toString())||"unset"),a.setAttribute("bottom",(null===(i=e.bottom)||void 0===i?void 0:i.toString())||"unset"),a.setAttribute("top",(null===(r=e.top)||void 0===r?void 0:r.toString())||"unset"),a.setAttribute("left",(null===(o=e.left)||void 0===o?void 0:o.toString())||"unset"),document.body.appendChild(a),Rc.healthChat=a}static start(e,t=!0){var n,i,r,o,a,s,l,u;if(window.location.pathname.includes("residentservices")||window.location.pathname.includes("onlineleasing"))return;if(t&&(this.orgSlug="Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization||"",this.hasBuildingSlug=!!e.building,this.overridePlacement={right:null===(n=null==e?void 0:e.position)||void 0===n?void 0:n.right,bottom:null===(i=null==e?void 0:e.position)||void 0===i?void 0:i.bottom,top:null===(r=null==e?void 0:e.position)||void 0===r?void 0:r.top,left:null===(o=null==e?void 0:e.position)||void 0===o?void 0:o.left}),Fc(),e.studio&&!e.building)return void this.handleStudioContext(e);let d=null;switch(e.widgetType){case jc.Healthcare:throw new Error("Healthcare widget is not supported yet, please use the healthcareStart method instead.");case jc.Default:d=document.createElement("me-chat");break;case jc.Utilities:d=document.createElement("utilities-chat");break;default:d=document.createElement("me-chat")}if(!d)throw new Error("Invalid widget type");d.setAttribute("orgSlug","Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization||""),d.setAttribute("widgetType",e.widgetType||jc.Default),d.setAttribute("class","meetelise-chat"),d.setAttribute("role","region"),d.setAttribute("aria-label","EliseAI Widget"),e.brandColor&&(this.brandColor=e.brandColor,d.setAttribute("primaryColor",((e,t)=>{const n=Kn(e),i=0,r=0,o=0,a={r:n.r+Math.round((i-n.r)*t),g:n.g+Math.round((r-n.g)*t),b:n.b+Math.round((o-n.b)*t)};return Xn(a.r,a.g,a.b)})(e.brandColor,.3))),e.backgroundColor&&(this.backgroundColor=e.backgroundColor),d instanceof Ac&&(e.centralConvo?d.setAttribute("centralConvo","true"):this.handleBuildingslug(d,e.organization,e.building,e),e.launcherStyles&&(d.launcherStyles=e.launcherStyles),e.mobileStyles&&(d.mobileStyles=e.mobileStyles),e.onWidgetLoaded&&(d.onWidgetLoaded=e.onWidgetLoaded),e.overrideRentgrata&&((async()=>{const e=await Uc("rg-widget-compact");e&&e.setAttribute("style","display: none")})(),d.overrideRentgrata=!0),e.onSstClose&&(d.onSstClose=e.onSstClose)),e.position&&(d.setAttribute("right",(null===(a=e.position.right)||void 0===a?void 0:a.toString())||"unset"),d.setAttribute("bottom",(null===(s=e.position.bottom)||void 0===s?void 0:s.toString())||"unset"),d.setAttribute("top",(null===(l=e.position.top)||void 0===l?void 0:l.toString())||"unset"),d.setAttribute("left",(null===(u=e.position.left)||void 0===u?void 0:u.toString())||"unset")),window.eliseAi={},document.body.appendChild(d),d instanceof Ac&&(Rc.meChat=d),d instanceof Dc&&(Rc.utilitiesChat=d)}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.studioUpdateToken+=1,await this.removeWidget(),this.activeStudioOrgSlug="",this.activeStudioBuildingSlug="",this.activeStudioSessionScopeKey="",this.activeStudioOptions=null}static async removeWidget(){var e;if(!this.meChat)return;const t=this.meChat;await t.remove(),null===(e=t.parentNode)||void 0===e||e.removeChild(t),Rc.meChat=null}static handleStudioContext(e){e.studio&&(this.activeStudioOptions=e)}static updateStudioContext(e){const t=this.activeStudioOptions;if(!(null==t?void 0:t.studio))return;const n=++this.studioUpdateToken;if(e.siteId&&e.siteId!==t.studio.siteId)return void Vo({logType:qo.warn,logTitle:"[STUDIO_WEBCHAT_CONTEXT_SITE_MISMATCH]",logData:{activeSiteId:t.studio.siteId,contextSiteId:e.siteId,url:window.location.href}});const i=Bc(e.organization),r=Bc(e.building);if(!i||!r)return void this.clearStudioContext({source:"elise_studio",reason:"missing_context",preserveCache:!0});const o=function(e,t){if(!(null==e?void 0:e.key))return`building:${t}`;return e.key}(e.sessionScope,r),a=function(e){return"Pacific Urban Residential"===e?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e}(i);this.activeStudioOrgSlug===a&&this.activeStudioBuildingSlug===r&&this.activeStudioSessionScopeKey===o||this.removeWidget().then(()=>{n===this.studioUpdateToken&&(this.activeStudioOrgSlug=a,this.activeStudioBuildingSlug=r,this.activeStudioSessionScopeKey=o,this.orgSlug=a,this.start({...t,organization:i,building:r},!1))})}static clearStudioContext(e){this.studioUpdateToken+=1,this.activeStudioOrgSlug="",this.activeStudioBuildingSlug="",this.activeStudioSessionScopeKey="",this.removeWidget()}static async handleBuildingslug(e,t,n,i){if(n)return void e.setAttribute("buildingSlug",n);if(this.mutationObserver)return;if(!t)return;const r=await Lc(t);if(r){const e={...i,organization:t,building:r};this.start(e,!1)}this.previousUrl=window.location.href,document.body.addEventListener("click",()=>{requestAnimationFrame(()=>{this.previousUrl===window.location.href||this.hasBuildingSlug||(this.previousUrl=window.location.href,Lc(t).then(e=>{if(!e)return;const n={...i,organization:t,building:e};this.start(n,!1)}))})},!0)}static async handleSingleFamilyUrl(){if(this.hasBuildingSlug)return;this.remove();const e=window.location.href,t=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(e)}`,n=await r().get(t,{headers:{"org-slug":this.orgSlug}});if(Math.random()<.2&&Vo({logType:n&&n.data?qo.info:qo.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${n?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:n.data,url:e,orgSlug:this.orgSlug,givenBuildingSlug:null,reason:n&&n.data?null:"No match found"}}),!n||!n.data)return;const i={organization:this.orgSlug,building:n.data,brandColor:this.brandColor,backgroundColor:this.backgroundColor};this.start(i,!1)}static async calculateBuildingSlugForLogging(e){const t=window.location.href,n=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(t)}`,i=await r().get(n,{headers:{"org-slug":this.orgSlug}});Math.random()<.2&&Vo({logType:i&&i.data===e?qo.info:qo.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${i&&i.data===e?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:i.data,url:t,orgSlug:this.orgSlug,givenBuildingSlug:e,reason:i&&i.data===e?null:i&&!i.data?"No match found":i&&i.data!==e?"Mismatch":"No match found"}}),i&&i.data}}function Bc(e){return"string"!=typeof e?"":e.trim()}var jc;Rc.meChat=null,Rc.healthChat=null,Rc.utilitiesChat=null,Rc.orgSlug="",Rc.mutationObserver=null,Rc.previousUrl="",Rc.hasBuildingSlug=null,Rc.brandColor="",Rc.backgroundColor="",Rc.healthcareId="",Rc.activeStudioOrgSlug="",Rc.activeStudioBuildingSlug="",Rc.activeStudioSessionScopeKey="",Rc.activeStudioOptions=null,Rc.studioUpdateToken=0,Rc.overridePlacement={},function(e){e.Default="default",e.Healthcare="healthcare",e.Utilities="utilities"}(jc||(jc={}));const Fc=()=>{const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),document.head.appendChild(e)};export{jc as WidgetType,Rc as default};
|