@meetelise/chat 1.42.4 → 1.43.0
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/dist/src/WebComponent/FeeCalculator/components/addons/addon-table/addon-table.d.ts +6 -1
- package/dist/src/WebComponent/FeeCalculator/components/addons/addon-table/table-qty-selectors.d.ts +1 -0
- package/dist/src/WebComponent/FeeCalculator/components/addons/index.d.ts +0 -1
- package/dist/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.d.ts +2 -1
- package/dist/src/WebComponent/FeeCalculator/components/fee-card/fee-card.d.ts +3 -2
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item.d.ts +1 -1
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/grouped-rentable-item.d.ts +23 -0
- package/dist/src/WebComponent/FeeCalculator/fee-calculator.d.ts +2 -1
- package/dist/src/WebComponent/FeeCalculator/model/rentable-item.d.ts +1 -0
- package/dist/src/WebComponent/FeeCalculator/utils/rentable-item-utils.d.ts +19 -0
- package/package.json +1 -1
- package/public/dist/index.js +244 -236
- package/src/WebComponent/FeeCalculator/components/addons/addon-table/addon-table.ts +132 -36
- package/src/WebComponent/FeeCalculator/components/addons/addon-table/table-qty-selectors.ts +18 -17
- package/src/WebComponent/FeeCalculator/components/addons/index.ts +0 -1
- package/src/WebComponent/FeeCalculator/components/fee-calculator-layout/fee-calculator-layout.ts +8 -3
- package/src/WebComponent/FeeCalculator/components/fee-card/fee-card.ts +32 -18
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item.ts +14 -8
- package/src/WebComponent/FeeCalculator/components/fee-item/grouped-rentable-item.ts +105 -0
- package/src/WebComponent/FeeCalculator/fee-calculator.ts +10 -7
- package/src/WebComponent/FeeCalculator/model/rentable-item-summary.ts +1 -2
- package/src/WebComponent/FeeCalculator/model/rentable-item.ts +2 -0
- package/src/WebComponent/FeeCalculator/utils/rentable-item-utils.ts +61 -0
- package/dist/src/WebComponent/FeeCalculator/components/addons/rentable-item-qty-selector/rentable-item-qty-selector-styles.d.ts +0 -2
- package/dist/src/WebComponent/FeeCalculator/components/addons/rentable-item-qty-selector/rentable-item-qty-selector.d.ts +0 -25
- package/src/WebComponent/FeeCalculator/components/addons/rentable-item-qty-selector/rentable-item-qty-selector-styles.ts +0 -9
- package/src/WebComponent/FeeCalculator/components/addons/rentable-item-qty-selector/rentable-item-qty-selector.ts +0 -156
package/public/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),r=i(4372),a=i(5327),s=i(4097),l=i(4109),u=i(7985),c=i(7874),d=i(2648),h=i(644),p=i(205);e.exports=function(e){return new Promise((function(t,i){var f,g=e.data,m=e.headers,b=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}n.isFormData(g)&&n.isStandardBrowserEnv()&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",C=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+C)}var x=s(e.baseURL,e.url);function A(){if(y){var n="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,r={data:b&&"text"!==b&&"json"!==b?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};o((function(e){t(e),v()}),(function(e){i(e),v()}),r),y=null}}if(y.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=A:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(A)},y.onabort=function(){y&&(i(new d("Request aborted",d.ECONNABORTED,e,y)),y=null)},y.onerror=function(){i(new d("Network Error",d.ERR_NETWORK,e,y,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(new d(t,n.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,y)),y=null},n.isStandardBrowserEnv()){var S=(e.withCredentials||u(x))&&e.xsrfCookieName?r.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in y&&n.forEach(m,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),b&&"json"!==b&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){y&&(i(!e||e&&e.type?new h:e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var k=p(x);k&&-1===["http","https","file"].indexOf(k)?i(new d("Unsupported protocol "+k+":",d.ERR_BAD_REQUEST,e)):y.send(g)}))}},1609:(e,t,i)=>{var n=i(4867),o=i(1849),r=i(321),a=i(7185),s=function e(t){var i=new r(t),s=o(r.prototype.request,i);return n.extend(s,r.prototype,i),n.extend(s,i),s.create=function(i){return e(a(t,i))},s}(i(5546));s.Axios=r,s.CanceledError=i(644),s.CancelToken=i(4972),s.isCancel=i(6502),s.VERSION=i(7288).version,s.toFormData=i(7675),s.AxiosError=i(2648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=i(8713),s.isAxiosError=i(6268),e.exports=s,e.exports.default=s},4972:(e,t,i)=>{var n=i(644);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;this.promise.then((function(e){if(i._listeners){var t,n=i._listeners.length;for(t=0;t<n;t++)i._listeners[t](e);i._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},e((function(e){i.reason||(i.reason=new n(e),t(i.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},644:(e,t,i)=>{var n=i(2648);function o(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}i(4867).inherits(o,n,{__CANCEL__:!0}),e.exports=o},6502:e=>{e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,i)=>{var n=i(4867),o=i(5327),r=i(782),a=i(3572),s=i(7185),l=i(4097),u=i(4875),c=u.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.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 i=t.transitional;void 0!==i&&u.assertOptions(i,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var r,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(l),r=Promise.resolve(t);d.length;)r=r.then(d.shift(),d.shift());return r}for(var h=t;n.length;){var p=n.shift(),f=n.shift();try{h=p(h)}catch(e){f(e);break}}try{r=a(h)}catch(e){return Promise.reject(e)}for(;l.length;)r=r.then(l.shift(),l.shift());return r},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,i){return this.request(s(i||{},{method:e,url:t,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(i,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},2648:(e,t,i)=>{var n=i(4867);function o(e,t,i,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,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 r=o.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"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(r,"isAxiosError",{value:!0}),o.from=function(e,t,i,a,s,l){var u=Object.create(r);return n.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,i,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=o},782:(e,t,i)=>{var n=i(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,i)=>{var n=i(1793),o=i(7303);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},3572:(e,t,i)=>{var n=i(4867),o=i(8527),r=i(6502),a=i(5546),s=i(644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){t=t||{};var i={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function r(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:o(void 0,e[i]):o(e[i],t[i])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:o(void 0,e[i]):o(void 0,t[i])}function l(i){return i in t?o(e[i],t[i]):i in e?o(void 0,e[i]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials: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 n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||r,o=t(e);n.isUndefined(o)&&t!==l||(i[e]=o)})),i}},6026:(e,t,i)=>{var n=i(2648);e.exports=function(e,t,i){var o=i.config.validateStatus;i.status&&o&&!o(i.status)?t(new n("Request failed with status code "+i.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}},8527:(e,t,i)=>{var n=i(4867),o=i(5546);e.exports=function(e,t,i){var r=this||o;return n.forEach(i,(function(i){e=i.call(r,e,t)})),e}},5546:(e,t,i)=>{var n=i(4867),o=i(6016),r=i(2648),a=i(7874),s=i(7675),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,d={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=i(5448)),c),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var i,r=n.isObject(e),a=t&&t["Content-Type"];if((i=n.isFileList(e))||r&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(i?{"files[]":e}:e,l&&new l)}return r||"application/json"===a?(u(t,"application/json"),function(e,t,i){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,i=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!i&&"json"===this.responseType;if(a||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw r.from(e,r.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:i(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){d.headers[e]=n.merge(l)})),e.exports=d},7874:e=>{e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},5327:(e,t,i)=>{var n=i(4867);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,i){if(!t)return e;var r;if(i)r=i(t);else if(n.isURLSearchParams(t))r=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),r=a.join("&")}if(r){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}},7303:e=>{e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,i)=>{var n=i(4867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,i,o,r,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(r)&&s.push("domain="+r),!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(){}}},1793:e=>{e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,i)=>{var n=i(4867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,i)=>{var n=i(4867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function o(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=o(window.location.href),function(t){var i=n.isString(t)?o(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},6016:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){n.forEach(e,(function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])}))}},1623:e=>{e.exports=null},4109:(e,t,i)=>{var n=i(4867),o=["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,i,r,a={};return e?(n.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=n.trim(e.substr(0,r)).toLowerCase(),i=n.trim(e.substr(r+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([i]):a[t]?a[t]+", "+i:i}})),a):a}},205:e=>{e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){t=t||new FormData;var i=[];function o(e){return null===e?"":n.isDate(e)?e.toISOString():n.isArrayBuffer(e)||n.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(r,a){if(n.isPlainObject(r)||n.isArray(r)){if(-1!==i.indexOf(r))throw Error("Circular reference detected in "+a);i.push(r),n.forEach(r,(function(i,r){if(!n.isUndefined(i)){var s,l=a?a+"."+r:r;if(i&&!a&&"object"==typeof i)if(n.endsWith(r,"{}"))i=JSON.stringify(i);else if(n.endsWith(r,"[]")&&(s=n.toArray(i)))return void s.forEach((function(e){!n.isUndefined(e)&&t.append(l,o(e))}));e(i,l)}})),i.pop()}else t.append(a,o(r))}(e),t}},4875:(e,t,i)=>{var n=i(7288).version,o=i(2648),r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var a={};r.transitional=function(e,t,i){function r(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,n,s){if(!1===e)throw new o(r(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(r(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,s)}},e.exports={assertOptions:function(e,t,i){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),r=n.length;r-- >0;){var a=n[r],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:r}},4867:(e,t,i)=>{var n,o=i(1849),r=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=r.call(e);return n[t]||(n[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 c=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),f=s("File"),g=s("Blob"),m=s("FileList");function b(e){return"[object Function]"===r.call(e)}var v=s("URLSearchParams");function y(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,C=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:c,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||r.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:h,isUndefined:u,isDate:p,isFile:f,isBlob:g,isFunction:b,isStream:function(e){return d(e)&&b(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:y,merge:function e(){var t={};function i(i,n){h(t[n])&&h(i)?t[n]=e(t[n],i):h(i)?t[n]=e({},i):l(i)?t[n]=i.slice():t[n]=i}for(var n=0,o=arguments.length;n<o;n++)y(arguments[n],i);return t},extend:function(e,t,i){return y(t,(function(t,n){e[n]=i&&"function"==typeof t?o(t,i):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,i,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,i&&Object.assign(e.prototype,i)},toFlatObject:function(e,t,i){var n,o,r,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[r=n[o]]||(t[r]=e[r],a[r]=!0);e=Object.getPrototypeOf(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,i){e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;var n=e.indexOf(t,i);return-1!==n&&n===i},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var i=new Array(t);t-- >0;)i[t]=e[t];return i},isTypedArray:C,isFileList:m}},4184:(e,t)=>{var i;!function(){var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var r=typeof i;if("string"===r||"number"===r)e.push(i);else if(Array.isArray(i)){if(i.length){var a=o.apply(null,i);a&&e.push(a)}}else if("object"===r)if(i.toString===Object.prototype.toString)for(var s in i)n.call(i,s)&&i[s]&&e.push(s);else e.push(i.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(i=function(){return o}.apply(t,[]))||(e.exports=i)}()},3631:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(8081),o=i.n(n),r=i(3645),a=i.n(r)()(o());a.push([e.id,"@media screen and (min-width: 767px) {\n .meetelise-chat.pane.launcher__desktop {\n right: -32px;\n }\n}\n",""]);const s=a},3645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)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 c=[].concat(e[u]);n&&a[c[0]]||(void 0!==r&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=r),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8081:e=>{e.exports=function(e){return e[1]}},7394:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var i=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return i+n},e.exports=t.default},8609:(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 i in t=t||{})Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},e.exports=t.default},6420:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)({},e)};var n,o=(n=i(8609))&&n.__esModule?n:{default:n};e.exports=t.default},7100:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(i(1603)),o=c(i(1354)),r=c(i(1370)),a=c(i(623)),s=c(i(6226)),l=c(i(7394)),u=c(i(2699));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var i=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),r=n%60;if(0===r)return i+String(o);var a=t||"";return i+String(o)+a+(0,l.default)(r,2)}function h(e,t){return e%60==0?(e>0?"-":"+")+(0,l.default)(Math.abs(e)/60,2):p(e,t)}function p(e,t){var i=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+(0,l.default)(Math.floor(o/60),2)+i+(0,l.default)(o%60,2)}var f={G:function(e,t,i){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});default:return i.era(n,{width:"wide"})}},y:function(e,t,i){if("yo"===t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return i.ordinalNumber(o,{unit:"year"})}return u.default.y(e,t)},Y:function(e,t,i,n){var o=(0,s.default)(e,n),r=o>0?o:1-o;if("YY"===t){var a=r%100;return(0,l.default)(a,2)}return"Yo"===t?i.ordinalNumber(r,{unit:"year"}):(0,l.default)(r,t.length)},R:function(e,t){var i=(0,r.default)(e);return(0,l.default)(i,t.length)},u:function(e,t){var i=e.getUTCFullYear();return(0,l.default)(i,t.length)},Q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,l.default)(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,l.default)(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,i){var n=e.getUTCMonth();switch(t){case"M":case"MM":return u.default.M(e,t);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,i){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return(0,l.default)(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,i,n){var o=(0,a.default)(e,n);return"wo"===t?i.ordinalNumber(o,{unit:"week"}):(0,l.default)(o,t.length)},I:function(e,t,i){var n=(0,o.default)(e);return"Io"===t?i.ordinalNumber(n,{unit:"week"}):(0,l.default)(n,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.default.d(e,t)},D:function(e,t,i){var o=(0,n.default)(e);return"Do"===t?i.ordinalNumber(o,{unit:"dayOfYear"}):(0,l.default)(o,t.length)},E:function(e,t,i){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,i,n){var o=e.getUTCDay(),r=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return(0,l.default)(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,i,n){var o=e.getUTCDay(),r=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return(0,l.default)(r,t.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,i){var n=e.getUTCDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return(0,l.default)(o,t.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,i){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,i){var n,o=e.getUTCHours();switch(n=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,i){var n,o=e.getUTCHours();switch(n=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,i){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),i.ordinalNumber(n,{unit:"hour"})}return u.default.h(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.default.H(e,t)},K:function(e,t,i){var n=e.getUTCHours()%12;return"Ko"===t?i.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,t.length)},k:function(e,t,i){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?i.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.default.m(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.default.s(e,t)},S:function(e,t){return u.default.S(e,t)},X:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return h(o);case"XXXX":case"XX":return p(o);default:return p(o,":")}},x:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return h(o);case"xxxx":case"xx":return p(o);default:return p(o,":")}},O:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+d(o,":");default:return"GMT"+p(o,":")}},z:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+d(o,":");default:return"GMT"+p(o,":")}},t:function(e,t,i,n){var o=n._originalDate||e,r=Math.floor(o.getTime()/1e3);return(0,l.default)(r,t.length)},T:function(e,t,i,n){var o=(n._originalDate||e).getTime();return(0,l.default)(o,t.length)}};t.default=f,e.exports=t.default},2699:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=i(7394))&&n.__esModule?n:{default:n},r={y:function(e,t){var i=e.getUTCFullYear(),n=i>0?i:1-i;return(0,o.default)("yy"===t?n%100:n,t.length)},M:function(e,t){var i=e.getUTCMonth();return"M"===t?String(i+1):(0,o.default)(i+1,2)},d:function(e,t){return(0,o.default)(e.getUTCDate(),t.length)},a:function(e,t){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:function(e,t){return(0,o.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,o.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,o.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,o.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var i=t.length,n=e.getUTCMilliseconds(),r=Math.floor(n*Math.pow(10,i-3));return(0,o.default)(r,t.length)}};t.default=r,e.exports=t.default},5209:(e,t)=>{function i(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 n(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 o={p:n,P:function(e,t){var o,r=e.match(/(P+)(p+)?/)||[],a=r[1],s=r[2];if(!s)return i(e,t);switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",i(a,t)).replace("{{time}}",n(s,t))}};t.default=o,e.exports=t.default},3561:(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},1603:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,n.default)(e),i=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),s=i-r;return Math.floor(s/a)+1};var n=r(i(1171)),o=r(i(8734));function r(e){return e&&e.__esModule?e:{default:e}}var a=864e5;e.exports=t.default},1354:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,n.default)(e),i=(0,o.default)(t).getTime()-(0,r.default)(t).getTime();return Math.round(i/l)+1};var n=s(i(1171)),o=s(i(79)),r=s(i(4275)),a=s(i(8734));function s(e){return e&&e.__esModule?e:{default:e}}var l=6048e5;e.exports=t.default},1370:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,n.default)(e),i=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(i+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,r.default)(a),l=new Date(0);l.setUTCFullYear(i,0,4),l.setUTCHours(0,0,0,0);var u=(0,r.default)(l);return t.getTime()>=s.getTime()?i+1:t.getTime()>=u.getTime()?i:i-1};var n=a(i(1171)),o=a(i(8734)),r=a(i(79));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},623:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(1,arguments);var i=(0,n.default)(e),s=(0,o.default)(i,t).getTime()-(0,r.default)(i,t).getTime();return Math.round(s/l)+1};var n=s(i(1171)),o=s(i(9209)),r=s(i(4118)),a=s(i(8734));function s(e){return e&&e.__esModule?e:{default:e}}var l=6048e5;e.exports=t.default},6226:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var i=(0,n.default)(e),s=i.getUTCFullYear(),l=t||{},u=l.locale,c=u&&u.options&&u.options.firstWeekContainsDate,d=null==c?1:(0,a.default)(c),h=null==l.firstWeekContainsDate?d:(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,r.default)(p,t),g=new Date(0);g.setUTCFullYear(s,0,h),g.setUTCHours(0,0,0,0);var m=(0,r.default)(g,t);return i.getTime()>=f.getTime()?s+1:i.getTime()>=m.getTime()?s:s-1};var n=s(i(1171)),o=s(i(8734)),r=s(i(9209)),a=s(i(2084));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6736:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==i.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==n.indexOf(e)},t.throwProtectedError=function(e,t,i){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; 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(i,"`; 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(i,"`; 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(i,"`; see: https://git.io/fxCyr"))};var i=["D","DD"],n=["YY","YYYY"]},8734:(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},79:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=1,i=(0,n.default)(e),r=i.getUTCDay(),a=(r<t?7:0)+r-t;return i.setUTCDate(i.getUTCDate()-a),i.setUTCHours(0,0,0,0),i};var n=r(i(1171)),o=r(i(8734));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4275:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=(0,n.default)(e),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var a=(0,o.default)(i);return a};var n=a(i(1370)),o=a(i(79)),r=a(i(8734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9209:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var i=t||{},a=i.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,r.default)(s),u=null==i.weekStartsOn?l:(0,r.default)(i.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,n.default)(e),d=c.getUTCDay(),h=(d<u?7:0)+d-u;return c.setUTCDate(c.getUTCDate()-h),c.setUTCHours(0,0,0,0),c};var n=a(i(1171)),o=a(i(8734)),r=a(i(2084));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4118:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var i=t||{},s=i.locale,l=s&&s.options&&s.options.firstWeekContainsDate,u=null==l?1:(0,a.default)(l),c=null==i.firstWeekContainsDate?u:(0,a.default)(i.firstWeekContainsDate),d=(0,n.default)(e,t),h=new Date(0);h.setUTCFullYear(d,0,c),h.setUTCHours(0,0,0,0);var p=(0,r.default)(h,t);return p};var n=s(i(6226)),o=s(i(8734)),r=s(i(9209)),a=s(i(2084));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2084:(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);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},5065:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(2,arguments);var i=(0,o.default)(e).getTime(),a=(0,n.default)(t);return new Date(i+a)};var n=a(i(2084)),o=a(i(1171)),r=a(i(8734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5616:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){(0,h.default)(2,arguments);var p=String(t),m=i||{},b=m.locale||o.default,w=b.options&&b.options.firstWeekContainsDate,C=null==w?1:(0,d.default)(w),x=null==m.firstWeekContainsDate?C:(0,d.default)(m.firstWeekContainsDate);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=b.options&&b.options.weekStartsOn,S=null==A?0:(0,d.default)(A),k=null==m.weekStartsOn?S:(0,d.default)(m.weekStartsOn);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!b.localize)throw new RangeError("locale must contain localize property");if(!b.formatLong)throw new RangeError("locale must contain formatLong property");var T=(0,a.default)(e);if(!(0,n.default)(T))throw new RangeError("Invalid time value");var _=(0,u.default)(T),E=(0,r.default)(T,_),O={firstWeekContainsDate:x,weekStartsOn:k,locale:b,_originalDate:T},P=p.match(g).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,l.default[t])(e,b.formatLong,O):e})).join("").match(f).map((function(i){if("''"===i)return"'";var n=i[0];if("'"===n)return y(i);var o=s.default[n];if(o)return!m.useAdditionalWeekYearTokens&&(0,c.isProtectedWeekYearToken)(i)&&(0,c.throwProtectedError)(i,t,e),!m.useAdditionalDayOfYearTokens&&(0,c.isProtectedDayOfYearToken)(i)&&(0,c.throwProtectedError)(i,t,e),o(E,i,b.localize,O);if(n.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return i})).join("");return P};var n=p(i(9989)),o=p(i(2512)),r=p(i(3239)),a=p(i(1171)),s=p(i(7100)),l=p(i(5209)),u=p(i(3561)),c=i(6736),d=p(i(2084)),h=p(i(8734));function p(e){return e&&e.__esModule?e:{default:e}}var f=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,b=/''/g,v=/[a-zA-Z]/;function y(e){return e.match(m)[1].replace(b,"'")}e.exports=t.default},2382:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)};var n,o=(n=i(8734))&&n.__esModule?n:{default:n};e.exports=t.default},9989:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(1,arguments),!(0,n.default)(e)&&"number"!=typeof e)return!1;var t=(0,o.default)(e);return!isNaN(Number(t))};var n=a(i(2382)),o=a(i(1171)),r=a(i(8734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},289:(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]:{},i=t.width?String(t.width):e.defaultWidth,n=e.formats[i]||e.formats[e.defaultWidth];return n}},e.exports=t.default},6245:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,i){var n,o=i||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):r;n=e.formattingValues[a]||e.formattingValues[r]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},3421:(e,t)=>{function i(e,t){for(var i in e)if(e.hasOwnProperty(i)&&t(e[i]))return i}function n(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;var l,u=s[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?n(c,(function(e){return e.test(u)})):i(c,(function(e){return e.test(u)}));l=e.valueCallback?e.valueCallback(d):d,l=o.valueCallback?o.valueCallback(l):l;var h=t.slice(u.length);return{value:l,rest:h}}},e.exports=t.default},8926:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],r=t.match(e.parsePattern);if(!r)return null;var a=e.valueCallback?e.valueCallback(r[0]):r[0];a=i.valueCallback?i.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}},e.exports=t.default},1924:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={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"}};t.default=function(e,t,n){var o,r=i[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},e.exports=t.default},6469:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=i(289))&&n.__esModule?n:{default:n},r={date:(0,o.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.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,o.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=r,e.exports=t.default},5102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.default=function(e,t,n,o){return i[e]},e.exports=t.default},7839:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=i(6245))&&n.__esModule?n:{default:n},r={ordinalNumber:function(e,t){var i=Number(e),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:(0,o.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,o.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,o.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,o.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,o.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=r,e.exports=t.default},9796:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(i(3421));function o(e){return e&&e.__esModule?e:{default:e}}var r={ordinalNumber:(0,o(i(8926)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,n.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,n.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,n.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,n.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,n.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=r,e.exports=t.default},2512:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(i(1924)),o=l(i(6469)),r=l(i(5102)),a=l(i(7839)),s=l(i(9796));function l(e){return e&&e.__esModule?e:{default:e}}var u={code:"en-US",formatDistance:n.default,formatLong:o.default,formatRelative:r.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=u,e.exports=t.default},3239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(2,arguments);var i=(0,n.default)(t);return(0,o.default)(e,-i)};var n=a(i(2084)),o=a(i(5065)),r=a(i(8734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},1171:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.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):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))};var n,o=(n=i(8734))&&n.__esModule?n:{default:n};e.exports=t.default},7856:function(e){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:i,getPrototypeOf:n,getOwnPropertyDescriptor:o}=Object;let{freeze:r,seal:a,create:s}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;r||(r=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const c=A(Array.prototype.forEach),d=A(Array.prototype.pop),h=A(Array.prototype.push),p=A(String.prototype.toLowerCase),f=A(String.prototype.toString),g=A(String.prototype.match),m=A(String.prototype.replace),b=A(String.prototype.indexOf),v=A(String.prototype.trim),y=A(Object.prototype.hasOwnProperty),w=A(RegExp.prototype.test),C=(x=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(x,t)});var x;function A(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return l(e,t,n)}}function S(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let r=n.length;for(;r--;){let t=n[r];if("string"==typeof t){const e=o(t);e!==t&&(i(n)||(n[r]=e),t=e)}e[t]=!0}return e}function k(e){for(let t=0;t<e.length;t++)y(e,t)||(e[t]=null);return e}function T(t){const i=s(null);for(const[n,o]of e(t))y(t,n)&&(Array.isArray(o)?i[n]=k(o):o&&"object"==typeof o&&o.constructor===Object?i[n]=T(o):i[n]=o);return i}function _(e,t){for(;null!==e;){const i=o(e,t);if(i){if(i.get)return A(i.get);if("function"==typeof i.value)return A(i.value)}e=n(e)}return function(){return null}}const E=r(["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"]),O=r(["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"]),P=r(["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"]),M=r(["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"]),N=r(["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"]),I=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=r(["#text"]),U=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),L=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),R=r(["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"]),B=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=a(/<%[\w\W]*|[\w\W]*%>/gm),F=a(/\${[\w\W]*}/gm),$=a(/^data-[\-\w.\u00B7-\uFFFF]/),z=a(/^aria-[\-\w]+$/),Q=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:H,TMPLIT_EXPR:F,DATA_ATTR:$,ARIA_ATTR:z,IS_ALLOWED_URI:Q,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:q,DOCTYPE_NAME:W,CUSTOM_ELEMENT:V});const K=function(){return"undefined"==typeof window?null:window},X=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K();const n=e=>t(e);if(n.version="3.1.2",n.removed=[],!i||!i.document||9!==i.document.nodeType)return n.isSupported=!1,n;let{document:o}=i;const a=o,l=a.currentScript,{DocumentFragment:u,HTMLTemplateElement:x,Node:A,Element:k,NodeFilter:j,NamedNodeMap:H=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:F,DOMParser:$,trustedTypes:z}=i,G=k.prototype,q=_(G,"cloneNode"),V=_(G,"nextSibling"),Z=_(G,"childNodes"),J=_(G,"parentNode");if("function"==typeof x){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ee,te="";const{implementation:ie,createNodeIterator:ne,createDocumentFragment:oe,getElementsByTagName:re}=o,{importNode:ae}=a;let se={};n.isSupported="function"==typeof e&&"function"==typeof J&&ie&&void 0!==ie.createHTMLDocument;const{MUSTACHE_EXPR:le,ERB_EXPR:ue,TMPLIT_EXPR:ce,DATA_ATTR:de,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:pe,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:ge}=Y;let{IS_ALLOWED_URI:me}=Y,be=null;const ve=S({},[...E,...O,...P,...N,...D]);let ye=null;const we=S({},[...U,...L,...R,...B]);let Ce=Object.seal(s(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}})),xe=null,Ae=null,Se=!0,ke=!0,Te=!1,_e=!0,Ee=!1,Oe=!0,Pe=!1,Me=!1,Ne=!1,Ie=!1,De=!1,Ue=!1,Le=!0,Re=!1;const Be="user-content-";let je=!0,He=!1,Fe={},$e=null;const ze=S({},["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 Qe=null;const Ge=S({},["audio","video","img","source","image","track"]);let qe=null;const We=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Xe=Ke,Ze=!1,Je=null;const et=S({},[Ve,Ye,Ke],f);let tt=null;const it=["application/xhtml+xml","text/html"],nt="text/html";let ot=null,rt=null;const at=255,st=o.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!rt||rt!==e){if(e&&"object"==typeof e||(e={}),e=T(e),tt=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?nt:e.PARSER_MEDIA_TYPE,ot="application/xhtml+xml"===tt?f:p,be=y(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,ot):ve,ye=y(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,ot):we,Je=y(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,f):et,qe=y(e,"ADD_URI_SAFE_ATTR")?S(T(We),e.ADD_URI_SAFE_ATTR,ot):We,Qe=y(e,"ADD_DATA_URI_TAGS")?S(T(Ge),e.ADD_DATA_URI_TAGS,ot):Ge,$e=y(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,ot):ze,xe=y(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,ot):{},Ae=y(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,ot):{},Fe=!!y(e,"USE_PROFILES")&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ee=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,Pe=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Re=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,me=e.ALLOWED_URI_REGEXP||Q,Xe=e.NAMESPACE||Ke,Ce=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(ke=!1),De&&(Ie=!0),Fe&&(be=S({},D),ye=[],!0===Fe.html&&(S(be,E),S(ye,U)),!0===Fe.svg&&(S(be,O),S(ye,L),S(ye,B)),!0===Fe.svgFilters&&(S(be,P),S(ye,L),S(ye,B)),!0===Fe.mathMl&&(S(be,N),S(ye,R),S(ye,B))),e.ADD_TAGS&&(be===ve&&(be=T(be)),S(be,e.ADD_TAGS,ot)),e.ADD_ATTR&&(ye===we&&(ye=T(ye)),S(ye,e.ADD_ATTR,ot)),e.ADD_URI_SAFE_ATTR&&S(qe,e.ADD_URI_SAFE_ATTR,ot),e.FORBID_CONTENTS&&($e===ze&&($e=T($e)),S($e,e.FORBID_CONTENTS,ot)),je&&(be["#text"]=!0),Pe&&S(be,["html","head","body"]),be.table&&(S(be,["tbody"]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=e.TRUSTED_TYPES_POLICY,te=ee.createHTML("")}else void 0===ee&&(ee=X(z,l)),null!==ee&&"string"==typeof te&&(te=ee.createHTML(""));r&&r(e),rt=e}},ct=S({},["mi","mo","mn","ms","mtext"]),dt=S({},["foreignobject","annotation-xml"]),ht=S({},["title","style","font","a","script"]),pt=S({},[...O,...P,...M]),ft=S({},[...N,...I]),gt=function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const i=p(e.tagName),n=p(t.tagName);return!!Je[e.namespaceURI]&&(e.namespaceURI===Ye?t.namespaceURI===Ke?"svg"===i:t.namespaceURI===Ve?"svg"===i&&("annotation-xml"===n||ct[n]):Boolean(pt[i]):e.namespaceURI===Ve?t.namespaceURI===Ke?"math"===i:t.namespaceURI===Ye?"math"===i&&dt[n]:Boolean(ft[i]):e.namespaceURI===Ke?!(t.namespaceURI===Ye&&!dt[n])&&!(t.namespaceURI===Ve&&!ct[n])&&!ft[i]&&(ht[i]||!pt[i]):!("application/xhtml+xml"!==tt||!Je[e.namespaceURI]))},mt=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},bt=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ye[e])if(Ie||De)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){let t=null,i=null;if(Ne)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===tt&&Xe===Ke&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=ee?ee.createHTML(e):e;if(Xe===Ke)try{t=(new $).parseFromString(n,tt)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Ze?te:n}catch(e){}}const r=t.body||t.documentElement;return e&&i&&r.insertBefore(o.createTextNode(i),r.childNodes[0]||null),Xe===Ke?re.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:r},yt=function(e){return ne.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof F&&(void 0!==e.__depth&&"number"!=typeof e.__depth||void 0!==e.__removalCount&&"number"!=typeof e.__removalCount||"string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof H)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(e){return"function"==typeof A&&e instanceof A},xt=function(e,t,i){se[e]&&c(se[e],(e=>{e.call(n,t,i,rt)}))},At=function(e){let t=null;if(xt("beforeSanitizeElements",e,null),wt(e))return mt(e),!0;const i=ot(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:i,allowedTags:be}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return mt(e),!0;if(7===e.nodeType)return mt(e),!0;if(Oe&&8===e.nodeType&&w(/<[/\w]/g,e.data))return mt(e),!0;if(!be[i]||xe[i]){if(!xe[i]&&kt(i)){if(Ce.tagNameCheck instanceof RegExp&&w(Ce.tagNameCheck,i))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(i))return!1}if(je&&!$e[i]){const t=J(e)||e.parentNode,i=Z(e)||e.childNodes;if(i&&t)for(let n=i.length-1;n>=0;--n){const o=q(i[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,V(e))}}return mt(e),!0}return e instanceof k&&!gt(e)?(mt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ee&&3===e.nodeType&&(t=e.textContent,c([le,ue,ce],(e=>{t=m(t,e," ")})),e.textContent!==t&&(h(n.removed,{element:e.cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(mt(e),!0)},St=function(e,t,i){if(Le&&("id"===t||"name"===t)&&(i in o||i in st))return!1;if(ke&&!Ae[t]&&w(de,t));else if(Se&&w(he,t));else if(!ye[t]||Ae[t]){if(!(kt(e)&&(Ce.tagNameCheck instanceof RegExp&&w(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&w(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&w(Ce.tagNameCheck,i)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(i))))return!1}else if(qe[t]);else if(w(me,m(i,fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(i,"data:")||!Qe[e])if(Te&&!w(pe,m(i,fe,"")));else if(i)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&g(e,ge)},Tt=function(e){xt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ye};let o=t.length;for(;o--;){const r=t[o],{name:a,namespaceURI:s,value:l}=r,u=ot(a);let h="value"===a?l:v(l);if(i.attrName=u,i.attrValue=h,i.keepAttr=!0,i.forceKeepAttr=void 0,xt("uponSanitizeAttribute",e,i),h=i.attrValue,i.forceKeepAttr)continue;if(bt(a,e),!i.keepAttr)continue;if(!_e&&w(/\/>/i,h)){bt(a,e);continue}Ee&&c([le,ue,ce],(e=>{h=m(h,e," ")}));const p=ot(e.nodeName);if(St(p,u,h)){if(!Re||"id"!==u&&"name"!==u||(bt(a,e),h=Be+h),ee&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(s);else switch(z.getAttributeType(p,u)){case"TrustedHTML":h=ee.createHTML(h);break;case"TrustedScriptURL":h=ee.createScriptURL(h)}try{s?e.setAttributeNS(s,a,h):e.setAttribute(a,h),d(n.removed)}catch(e){}}}xt("afterSanitizeAttributes",e,null)},_t=function e(t){let i=null;const n=yt(t);for(xt("beforeSanitizeShadowDOM",t,null);i=n.nextNode();){if(xt("uponSanitizeShadowNode",i,null),At(i))continue;const t=J(i);1===i.nodeType&&(t&&t.__depth?i.__depth=(i.__removalCount||0)+t.__depth+1:i.__depth=1),i.__depth>=at&&mt(i),i.content instanceof u&&(i.content.__depth=i.__depth,e(i.content)),Tt(i)}xt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,r=null,s=null;if(Ze=!e,Ze&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ct(e)){if("function"!=typeof e.toString)throw C("toString is not a function");if("string"!=typeof(e=e.toString()))throw C("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||ut(t),n.removed=[],"string"==typeof e&&(He=!1),He){if(e.nodeName){const t=ot(e.nodeName);if(!be[t]||xe[t])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof A)i=vt("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!Ie&&!Ee&&!Pe&&-1===e.indexOf("<"))return ee&&Ue?ee.createHTML(e):e;if(i=vt(e),!i)return Ie?null:Ue?te:""}i&&Ne&&mt(i.firstChild);const l=yt(He?e:i);for(;r=l.nextNode();){if(At(r))continue;const e=J(r);1===r.nodeType&&(e&&e.__depth?r.__depth=(r.__removalCount||0)+e.__depth+1:r.__depth=1),r.__depth>=at&&mt(r),r.content instanceof u&&(r.content.__depth=r.__depth,_t(r.content)),Tt(r)}if(He)return e;if(Ie){if(De)for(s=oe.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ye.shadowroot||ye.shadowrootmode)&&(s=ae.call(a,s,!0)),s}let d=Pe?i.outerHTML:i.innerHTML;return Pe&&be["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&w(W,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Ee&&c([le,ue,ce],(e=>{d=m(d,e," ")})),ee&&Ue?ee.createHTML(d):d},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},n.clearConfig=function(){rt=null,Me=!1},n.isValidAttribute=function(e,t,i){rt||ut({});const n=ot(e),o=ot(t);return St(n,o,i)},n.addHook=function(e,t){"function"==typeof t&&(se[e]=se[e]||[],h(se[e],t))},n.removeHook=function(e){if(se[e])return d(se[e])},n.removeHooks=function(e){se[e]&&(se[e]=[])},n.removeAllHooks=function(){se={}},n}()}()},8552:(e,t,i)=>{var n=i(852)(i(5639),"DataView");e.exports=n},1989:(e,t,i)=>{var n=i(1789),o=i(401),r=i(7667),a=i(1327),s=i(1866);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,e.exports=l},8407:(e,t,i)=>{var n=i(7040),o=i(4125),r=i(2117),a=i(7529),s=i(4705);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,e.exports=l},7071:(e,t,i)=>{var n=i(852)(i(5639),"Map");e.exports=n},3369:(e,t,i)=>{var n=i(4785),o=i(1285),r=i(6e3),a=i(9916),s=i(5265);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,e.exports=l},3818:(e,t,i)=>{var n=i(852)(i(5639),"Promise");e.exports=n},8525:(e,t,i)=>{var n=i(852)(i(5639),"Set");e.exports=n},8668:(e,t,i)=>{var n=i(3369),o=i(619),r=i(2385);function a(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=r,e.exports=a},6384:(e,t,i)=>{var n=i(8407),o=i(7465),r=i(3779),a=i(7599),s=i(4758),l=i(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=r,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,i)=>{var n=i(5639).Symbol;e.exports=n},1149:(e,t,i)=>{var n=i(5639).Uint8Array;e.exports=n},577:(e,t,i)=>{var n=i(852)(i(5639),"WeakMap");e.exports=n},4174:e=>{e.exports=function(e,t,i,n){for(var o=-1,r=null==e?0:e.length;++o<r;){var a=e[o];t(n,a,i(a),e)}return n}},7412:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}},4963:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,o=0,r=[];++i<n;){var a=e[i];t(a,i,e)&&(r[o++]=a)}return r}},4636:(e,t,i)=>{var n=i(2545),o=i(5694),r=i(1469),a=i(4144),s=i(5776),l=i(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=r(e),c=!i&&o(e),d=!i&&!c&&a(e),h=!i&&!c&&!d&&l(e),p=i||c||d||h,f=p?n(e.length,String):[],g=f.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},9932:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,o=Array(n);++i<n;)o[i]=t(e[i],i,e);return o}},2488:e=>{e.exports=function(e,t){for(var i=-1,n=t.length,o=e.length;++i<n;)e[o+i]=t[i];return e}},2663:e=>{e.exports=function(e,t,i,n){var o=-1,r=null==e?0:e.length;for(n&&r&&(i=e[++o]);++o<r;)i=t(i,e[o],o,e);return i}},2908:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},4286:e=>{e.exports=function(e){return e.split("")}},9029:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},8470:(e,t,i)=>{var n=i(7813);e.exports=function(e,t){for(var i=e.length;i--;)if(n(e[i][0],t))return i;return-1}},1119:(e,t,i)=>{var n=i(9881);e.exports=function(e,t,i,o){return n(e,(function(e,n,r){t(o,e,i(e),r)})),o}},9465:(e,t,i)=>{var n=i(8777);e.exports=function(e,t,i){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},3118:(e,t,i)=>{var n=i(3218),o=Object.create,r=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();e.exports=r},9881:(e,t,i)=>{var n=i(7816),o=i(9291)(n);e.exports=o},8483:(e,t,i)=>{var n=i(5063)();e.exports=n},7816:(e,t,i)=>{var n=i(8483),o=i(3674);e.exports=function(e,t){return e&&n(e,t,o)}},7786:(e,t,i)=>{var n=i(1811),o=i(327);e.exports=function(e,t){for(var i=0,r=(t=n(t,e)).length;null!=e&&i<r;)e=e[o(t[i++])];return i&&i==r?e:void 0}},8866:(e,t,i)=>{var n=i(2488),o=i(1469);e.exports=function(e,t,i){var r=t(e);return o(e)?r:n(r,i(e))}},4239:(e,t,i)=>{var n=i(2705),o=i(9607),r=i(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):r(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,i)=>{var n=i(4239),o=i(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},939:(e,t,i)=>{var n=i(2492),o=i(7005);e.exports=function e(t,i,r,a,s){return t===i||(null==t||null==i||!o(t)&&!o(i)?t!=t&&i!=i:n(t,i,r,a,e,s))}},2492:(e,t,i)=>{var n=i(6384),o=i(7114),r=i(8351),a=i(6096),s=i(4160),l=i(1469),u=i(4144),c=i(6719),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,g,m,b){var v=l(e),y=l(t),w=v?h:s(e),C=y?h:s(t),x=(w=w==d?p:w)==p,A=(C=C==d?p:C)==p,S=w==C;if(S&&u(e)){if(!u(t))return!1;v=!0,x=!1}if(S&&!x)return b||(b=new n),v||c(e)?o(e,t,i,g,m,b):r(e,t,w,i,g,m,b);if(!(1&i)){var k=x&&f.call(e,"__wrapped__"),T=A&&f.call(t,"__wrapped__");if(k||T){var _=k?e.value():e,E=T?t.value():t;return b||(b=new n),m(_,E,i,g,b)}}return!!S&&(b||(b=new n),a(e,t,i,g,m,b))}},2958:(e,t,i)=>{var n=i(6384),o=i(939);e.exports=function(e,t,i,r){var a=i.length,s=a,l=!r;if(null==e)return!s;for(e=Object(e);a--;){var u=i[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=i[a])[0],d=e[c],h=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var p=new n;if(r)var f=r(d,h,c,e,t,p);if(!(void 0===f?o(h,d,3,r,p):f))return!1}}return!0}},8458:(e,t,i)=>{var n=i(3560),o=i(5346),r=i(3218),a=i(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||o(e))&&(n(e)?h:s).test(a(e))}},8749:(e,t,i)=>{var n=i(4239),o=i(1780),r=i(7005),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 r(e)&&o(e.length)&&!!a[n(e)]}},7206:(e,t,i)=>{var n=i(1573),o=i(6432),r=i(6557),a=i(1469),s=i(9601);e.exports=function(e){return"function"==typeof e?e:null==e?r:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},280:(e,t,i)=>{var n=i(5726),o=i(6916),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var i in Object(e))r.call(e,i)&&"constructor"!=i&&t.push(i);return t}},1573:(e,t,i)=>{var n=i(2958),o=i(1499),r=i(2634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?r(t[0][0],t[0][1]):function(i){return i===e||n(i,e,t)}}},6432:(e,t,i)=>{var n=i(939),o=i(7361),r=i(9095),a=i(5403),s=i(9162),l=i(2634),u=i(327);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(i){var a=o(i,e);return void 0===a&&a===t?r(i,e):n(t,a,3)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,i)=>{var n=i(7786);e.exports=function(e){return function(t){return n(t,e)}}},8674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},4259:e=>{e.exports=function(e,t,i){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(i=i>o?o:i)<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(o);++n<o;)r[n]=e[n+t];return r}},2545:e=>{e.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},531:(e,t,i)=>{var n=i(2705),o=i(9932),r=i(1469),a=i(3448),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,i)=>{var n=i(1469),o=i(5403),r=i(5514),a=i(9833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:r(a(e))}},180:(e,t,i)=>{var n=i(4259);e.exports=function(e,t,i){var o=e.length;return i=void 0===i?o:i,!t&&i>=o?e:n(e,t,i)}},4429:(e,t,i)=>{var n=i(5639)["__core-js_shared__"];e.exports=n},5189:(e,t,i)=>{var n=i(4174),o=i(1119),r=i(7206),a=i(1469);e.exports=function(e,t){return function(i,s){var l=a(i)?n:o,u=t?t():{};return l(i,e,r(s,2),u)}}},9291:(e,t,i)=>{var n=i(8612);e.exports=function(e,t){return function(i,o){if(null==i)return i;if(!n(i))return e(i,o);for(var r=i.length,a=t?r:-1,s=Object(i);(t?a--:++a<r)&&!1!==o(s[a],a,s););return i}}},5063:e=>{e.exports=function(e){return function(t,i,n){for(var o=-1,r=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===i(r[l],l,r))break}return t}}},8805:(e,t,i)=>{var n=i(180),o=i(2689),r=i(3140),a=i(9833);e.exports=function(e){return function(t){t=a(t);var i=o(t)?r(t):void 0,s=i?i[0]:t.charAt(0),l=i?n(i,1).join(""):t.slice(1);return s[e]()+l}}},5393:(e,t,i)=>{var n=i(2663),o=i(3816),r=i(8748),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(r(o(t).replace(a,"")),e,"")}}},9389:(e,t,i)=>{var n=i(8674)({À:"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=n},8777:(e,t,i)=>{var n=i(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},7114:(e,t,i)=>{var n=i(8668),o=i(2908),r=i(4757);e.exports=function(e,t,i,a,s,l){var u=1&i,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))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&i?new n:void 0;for(l.set(e,t),l.set(t,e);++f<c;){var b=e[f],v=t[f];if(a)var y=u?a(v,b,f,t,e,l):a(b,v,f,e,t,l);if(void 0!==y){if(y)continue;g=!1;break}if(m){if(!o(t,(function(e,t){if(!r(m,t)&&(b===e||s(b,e,i,a,l)))return m.push(t)}))){g=!1;break}}else if(b!==v&&!s(b,v,i,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},8351:(e,t,i)=>{var n=i(2705),o=i(1149),r=i(7813),a=i(7114),s=i(8776),l=i(1814),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,i,n,u,d,h){switch(i){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||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+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&n;if(p||(p=l),e.size!=t.size&&!f)return!1;var g=h.get(e);if(g)return g==t;n|=2,h.set(e,t);var m=a(p(e),p(t),n,u,d,h);return h.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,i)=>{var n=i(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,r,a,s){var l=1&i,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:o.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;++d<c;){var b=e[h=u[d]],v=t[h];if(r)var y=l?r(v,b,h,t,e,s):r(b,v,h,e,t,s);if(!(void 0===y?b===v||a(b,v,i,r,s):y)){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}},1957:(e,t,i)=>{var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=n},8234:(e,t,i)=>{var n=i(8866),o=i(9551),r=i(3674);e.exports=function(e){return n(e,r,o)}},5050:(e,t,i)=>{var n=i(7019);e.exports=function(e,t){var i=e.__data__;return n(t)?i["string"==typeof t?"string":"hash"]:i.map}},1499:(e,t,i)=>{var n=i(9162),o=i(3674);e.exports=function(e){for(var t=o(e),i=t.length;i--;){var r=t[i],a=e[r];t[i]=[r,a,n(a)]}return t}},852:(e,t,i)=>{var n=i(8458),o=i(7801);e.exports=function(e,t){var i=o(e,t);return n(i)?i:void 0}},5924:(e,t,i)=>{var n=i(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,i)=>{var n=i(2705),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),i=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=i:delete e[s]),o}},9551:(e,t,i)=>{var n=i(4963),o=i(479),r=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return r.call(e,t)})))}:o;e.exports=s},4160:(e,t,i)=>{var n=i(8552),o=i(7071),r=i(3818),a=i(8525),s=i(577),l=i(4239),u=i(346),c="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",g=u(n),m=u(o),b=u(r),v=u(a),y=u(s),w=l;(n&&w(new n(new ArrayBuffer(1)))!=f||o&&w(new o)!=c||r&&w(r.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=l(e),i="[object Object]"==t?e.constructor:void 0,n=i?u(i):"";if(n)switch(n){case g:return f;case m:return c;case b:return d;case v:return h;case y:return p}return t}),e.exports=w},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,i)=>{var n=i(1811),o=i(5694),r=i(1469),a=i(5776),s=i(1780),l=i(327);e.exports=function(e,t,i){for(var u=-1,c=(t=n(t,e)).length,d=!1;++u<c;){var h=l(t[u]);if(!(d=null!=e&&i(e,h)))break;e=e[h]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(h,c)&&(r(e)||o(e))}},2689:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},3157: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)}},1789:(e,t,i)=>{var n=i(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,i)=>{var n=i(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return o.call(t,e)?t[e]:void 0}},1327:(e,t,i)=>{var n=i(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,i)=>{var n=i(4536);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var n=typeof e;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<i}},5403:(e,t,i)=>{var n=i(1469),o=i(3448),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!o(e))||a.test(e)||!r.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,i)=>{var n,o=i(4429),r=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!r&&r in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},9162:(e,t,i)=>{var n=i(3218);e.exports=function(e){return e==e&&!n(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,i)=>{var n=i(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0||(i==t.length-1?t.pop():o.call(t,i,1),--this.size,0))}},2117:(e,t,i)=>{var n=i(8470);e.exports=function(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}},7529:(e,t,i)=>{var n=i(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,i)=>{var n=i(8470);e.exports=function(e,t){var i=this.__data__,o=n(i,e);return o<0?(++this.size,i.push([e,t])):i[o][1]=t,this}},4785:(e,t,i)=>{var n=i(1989),o=i(8407),r=i(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(r||o),string:new n}}},1285:(e,t,i)=>{var n=i(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,i)=>{var n=i(5050);e.exports=function(e,t){var i=n(this,e),o=i.size;return i.set(e,t),this.size+=i.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}},2634:e=>{e.exports=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}}},4523:(e,t,i)=>{var n=i(8306);e.exports=function(e){var t=n(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}},4536:(e,t,i)=>{var n=i(852)(Object,"create");e.exports=n},6916:(e,t,i)=>{var n=i(5569)(Object.keys,Object);e.exports=n},1167:(e,t,i)=>{e=i.nmd(e);var n=i(1957),o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,a=r&&r.exports===o&&n.process,s=function(){try{return r&&r.require&&r.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(i){return e(t(i))}}},5639:(e,t,i)=>{var n=i(1957),o="object"==typeof self&&self&&self.Object===Object&&self,r=n||o||Function("return this")();e.exports=r},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}},7465:(e,t,i)=>{var n=i(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,i)=>{var n=i(8407),o=i(7071),r=i(3369);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var a=i.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(e,t),this.size=i.size,this}},3140:(e,t,i)=>{var n=i(4286),o=i(2689),r=i(676);e.exports=function(e){return o(e)?r(e):n(e)}},5514:(e,t,i)=>{var n=i(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,i,n,o){t.push(n?o.replace(r,"$1"):i||e)})),t}));e.exports=a},327:(e,t,i)=>{var n=i(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346: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""}},676:e=>{var t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",n="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",r="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+t+"|"+i+")?",s="[\\ufe0e\\ufe0f]?",l=s+a+"(?:\\u200d(?:"+[n,o,r].join("|")+")"+s+a+")*",u="(?:"+[n+t+"?",t,o,r,"[\\ud800-\\udfff]"].join("|")+")",c=RegExp(i+"(?="+i+")|"+u+l,"g");e.exports=function(e){return e.match(c)||[]}},2757:e=>{var t="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",n="\\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",o="["+n+"]",r="\\d+",a="["+t+"]",s="[^\\ud800-\\udfff"+n+r+"\\u2700-\\u27bf"+t+i+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="["+i+"]",d="(?:"+a+"|"+s+")",h="(?:"+c+"|"+s+")",p="(?:['’](?:d|ll|m|re|s|t|ve))?",f="(?:['’](?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",m="[\\ufe0e\\ufe0f]?",b=m+g+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,u].join("|")+")"+m+g+")*",v="(?:"+["[\\u2700-\\u27bf]",l,u].join("|")+")"+b,y=RegExp([c+"?"+a+"+"+p+"(?="+[o,c,"$"].join("|")+")",h+"+"+f+"(?="+[o,c+d,"$"].join("|")+")",c+"?"+d+"+"+p,c+"+"+f,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",r,v].join("|"),"g");e.exports=function(e){return e.match(y)||[]}},8929:(e,t,i)=>{var n=i(8403),o=i(5393)((function(e,t,i){return t=t.toLowerCase(),e+(i?n(t):t)}));e.exports=o},8403:(e,t,i)=>{var n=i(9833),o=i(1700);e.exports=function(e){return o(n(e).toLowerCase())}},3816:(e,t,i)=>{var n=i(9389),o=i(9833),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(r,n).replace(a,"")}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,i)=>{var n=i(7786);e.exports=function(e,t,i){var o=null==e?void 0:n(e,t);return void 0===o?i:o}},7739:(e,t,i)=>{var n=i(9465),o=i(5189),r=Object.prototype.hasOwnProperty,a=o((function(e,t,i){r.call(e,i)?e[i].push(t):n(e,i,[t])}));e.exports=a},9095:(e,t,i)=>{var n=i(13),o=i(222);e.exports=function(e,t){return null!=e&&o(e,t,n)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,i)=>{var n=i(9454),o=i(7005),r=Object.prototype,a=r.hasOwnProperty,s=r.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,i)=>{var n=i(3560),o=i(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4144:(e,t,i)=>{e=i.nmd(e);var n=i(5639),o=i(5062),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,s=a&&a.exports===r?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},8367:(e,t,i)=>{var n=i(280),o=i(4160),r=i(5694),a=i(1469),s=i(8612),l=i(4144),u=i(5726),c=i(6719),d=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)||c(e)||r(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var i in e)if(d.call(e,i))return!1;return!0}},3560:(e,t,i)=>{var n=i(4239),o=i(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,i)=>{var n=i(4239),o=i(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6719:(e,t,i)=>{var n=i(8749),o=i(7518),r=i(1167),a=r&&r.isTypedArray,s=a?o(a):n;e.exports=s},3674:(e,t,i)=>{var n=i(4636),o=i(280),r=i(8612);e.exports=function(e){return r(e)?n(e):o(e)}},6604:(e,t,i)=>{var n=i(9465),o=i(7816),r=i(7206);e.exports=function(e,t){var i={};return t=r(t,3),o(e,(function(e,o,r){n(i,o,t(e,o,r))})),i}},8306:(e,t,i)=>{var n=i(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var a=e.apply(this,n);return i.cache=r.set(o,a)||r,a};return i.cache=new(o.Cache||n),i}o.Cache=n,e.exports=o},308:e=>{e.exports=function(){}},9601:(e,t,i)=>{var n=i(371),o=i(9152),r=i(5403),a=i(327);e.exports=function(e){return r(e)?n(a(e)):o(e)}},1865:(e,t,i)=>{var n=i(5393)((function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}));e.exports=n},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,i)=>{var n=i(531);e.exports=function(e){return null==e?"":n(e)}},8718:(e,t,i)=>{var n=i(7412),o=i(3118),r=i(7816),a=i(7206),s=i(5924),l=i(1469),u=i(4144),c=i(3560),d=i(3218),h=i(6719);e.exports=function(e,t,i){var p=l(e),f=p||u(e)||h(e);if(t=a(t,4),null==i){var g=e&&e.constructor;i=f?p?new g:[]:d(e)&&c(g)?o(s(e)):{}}return(f?n:r)(e,(function(e,n,o){return t(i,e,n,o)})),i}},1700:(e,t,i)=>{var n=i(8805)("toUpperCase");e.exports=n},8748:(e,t,i)=>{var n=i(9029),o=i(3157),r=i(9833),a=i(2757);e.exports=function(e,t,i){return e=r(e),void 0===(t=i?void 0:t)?o(e)?a(e):n(e):e.match(t)||[]}},9594:function(e,t,i){e.exports=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};function t(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function o(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i}function r(e,t,i,n){return new(i||(i=Promise))((function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function a(e,t){var i,n,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return a}function u(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},d={exports:{}};!function(e){!function(t,i){var n=Math.pow(2,-24),o=Math.pow(2,32),r=Math.pow(2,53),a={encode:function(e){var t,n=new ArrayBuffer(256),a=new DataView(n),s=0;function l(e){for(var i=n.byteLength,o=s+e;i<o;)i*=2;if(i!==n.byteLength){var r=a;n=new ArrayBuffer(i),a=new DataView(n);for(var l=s+3>>2,u=0;u<l;++u)a.setUint32(4*u,r.getUint32(4*u))}return t=e,a}function u(){s+=t}function c(e){u(l(1).setUint8(s,e))}function d(e){for(var t=l(e.length),i=0;i<e.length;++i)t.setUint8(s+i,e[i]);u()}function h(e,t){t<24?c(e<<5|t):t<256?(c(e<<5|24),c(t)):t<65536?(c(e<<5|25),function(e){u(l(2).setUint16(s,e))}(t)):t<4294967296?(c(e<<5|26),function(e){u(l(4).setUint32(s,e))}(t)):(c(e<<5|27),function(e){var t=e%o,i=(e-t)/o,n=l(8);n.setUint32(s,i),n.setUint32(s+4,t),u()}(t))}if(function e(t){var n;if(!1===t)return c(244);if(!0===t)return c(245);if(null===t)return c(246);if(t===i)return c(247);switch(typeof t){case"number":if(Math.floor(t)===t){if(0<=t&&t<=r)return h(0,t);if(-r<=t&&t<0)return h(1,-(t+1))}return c(251),function(e){u(l(8).setFloat64(s,e))}(t);case"string":var o=[];for(n=0;n<t.length;++n){var a=t.charCodeAt(n);a<128?o.push(a):a<2048?(o.push(192|a>>6),o.push(128|63&a)):a<55296?(o.push(224|a>>12),o.push(128|a>>6&63),o.push(128|63&a)):(a=(1023&a)<<10,a|=1023&t.charCodeAt(++n),a+=65536,o.push(240|a>>18),o.push(128|a>>12&63),o.push(128|a>>6&63),o.push(128|63&a))}return h(3,o.length),d(o);default:var p;if(Array.isArray(t))for(h(4,p=t.length),n=0;n<p;++n)e(t[n]);else if(t instanceof Uint8Array)h(2,t.length),d(t);else{var f=Object.keys(t);for(h(5,p=f.length),n=0;n<p;++n){var g=f[n];e(g),e(t[g])}}}}(e),"slice"in n)return n.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,r){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 c(){return l(a.getUint8(s),1)}function d(){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 c();if(25===e)return d();if(26===e)return h();if(27===e)return h()*o+h();if(31===e)return-1;throw"Invalid length encoding"}function g(e){var t=c();if(255===t)return-1;var i=f(31&t);if(i<0||t>>5!==e)throw"Invalid indefinite length element";return i}function m(e,t){for(var i=0;i<t;++i){var n=c();128&n&&(n<224?(n=(31&n)<<6|63&c(),t-=1):n<240?(n=(15&n)<<12|(63&c())<<6|63&c(),t-=2):(n=(15&n)<<18|(63&c())<<12|(63&c())<<6|63&c(),t-=3)),n<65536?e.push(n):(n-=65536,e.push(55296|n>>10),e.push(56320|1023&n))}}"function"!=typeof t&&(t=function(e){return e}),"function"!=typeof r&&(r=function(){return i});var b=function e(){var o,h,b=c(),v=b>>5,y=31&b;if(7===v)switch(y){case 25:return function(){var e=new ArrayBuffer(4),t=new DataView(e),i=d(),o=32768&i,r=31744&i,a=1023&i;if(31744===r)r=261120;else if(0!==r)r+=114688;else if(0!==a)return a*n;return t.setUint32(0,o<<16|r<<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(y))<0&&(v<2||6<v))throw"Invalid length";switch(v){case 0:return h;case 1:return-1-h;case 2:if(h<0){for(var w=[],C=0;(h=g(v))>=0;)C+=h,w.push(u(h));var x=new Uint8Array(C),A=0;for(o=0;o<w.length;++o)x.set(w[o],A),A+=w[o].length;return x}return u(h);case 3:var S=[];if(h<0)for(;(h=g(v))>=0;)m(S,h);else m(S,h);return String.fromCharCode.apply(null,S);case 4:var k;if(h<0)for(k=[];!p();)k.push(e());else for(k=new Array(h),o=0;o<h;++o)k[o]=e();return k;case 5:var T={};for(o=0;o<h||h<0&&!p();++o)T[e()]=e();return T;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 i;default:return r(h)}}}();if(s!==e.byteLength)throw"Remaining bytes";return b}};e.exports?e.exports=a:t.CBOR||(t.CBOR=a)}(c)}(d);var h=d.exports,p={exports:{}};!function(e,t){!function(e){var t={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,i="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(i+="-"),i+=(12===e?4:16===e?3&t|8:t).toString(16);return i}function n(e,i){var n=t[i||"all"];return n&&n.test(e)||!1}i.isUUID=n,i.VERSION="0.1.0",e.uuid=i,e.isUUID=n}(t),null!==e&&(e.exports=t.uuid)}(p,p.exports);var f=p.exports,g=function(){return f.uuid?f.uuid():f()},m=function(){function e(e){var t,i,n,o=e.setup;if(this._PNSDKSuffix={},this.instanceId="pn-".concat(g()),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.setCipherKey(o.cipherKey),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===(i=o.useRandomIVs)||void 0===i||i,this.enableSubscribeBeta=null!==(n=o.enableSubscribeBeta)&&void 0!==n&&n,"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,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)}}return e.prototype.getAuthKey=function(){return this.authKey},e.prototype.setAuthKey=function(e){return this.authKey=e,this},e.prototype.setCipherKey=function(e){return this.cipherKey=e,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 e>=20?this._presenceTimeout=e:(this._presenceTimeout=20,console.log("WARNING: Presence timeout is less than the minimum. Using minimum value: ",this._presenceTimeout)),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.2.2"},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(i,n){return i+e+t._PNSDKSuffix[n]}),"")},e}();function b(e){var t=e.replace(/==?$/,""),i=Math.floor(t.length/4*3),n=new ArrayBuffer(i),o=new Uint8Array(n),r=0;function a(){var e=t.charAt(r++),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);if(-1===i)throw new Error("Illegal character at ".concat(r,": ").concat(t.charAt(r-1)));return i}for(var s=0;s<i;s+=3){var l=a(),u=a(),c=a(),d=a(),h=(63&l)<<2|u>>4,p=(15&u)<<4|c>>2,f=(3&c)<<6|d>>0;o[s]=h,64!=c&&(o[s+1]=p),64!=d&&(o[s+2]=f)}return n}var v,y,w,C,x,A=A||function(e,t){var i={},n=i.lib={},o=function(){},r=n.Base={extend:function(e){o.prototype=this;var t=new o;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)}},a=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||l).stringify(this)},concat:function(e){var t=this.words,i=e.words,n=this.sigBytes;if(e=e.sigBytes,this.clamp(),n%4)for(var o=0;o<e;o++)t[n+o>>>2]|=(i[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else if(65535<i.length)for(o=0;o<e;o+=4)t[n+o>>>2]=i[o>>>2];else t.push.apply(t,i);return this.sigBytes+=e,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=e.ceil(i/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var i=[],n=0;n<t;n+=4)i.push(4294967296*e.random()|0);return new a.init(i,t)}}),s=i.enc={},l=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],n=0;n<e;n++){var o=t[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n<t;n+=2)i[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(i,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],n=0;n<e;n++)i.push(String.fromCharCode(t[n>>>2]>>>24-n%4*8&255));return i.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n<t;n++)i[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(i,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=n.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var i=this._data,n=i.words,o=i.sigBytes,r=this.blockSize,s=o/(4*r);if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,o=e.min(4*t,o),t){for(var l=0;l<t;l+=r)this._doProcessBlock(n,l);l=n.splice(0,t),i.sigBytes-=o}return new a.init(l,o)},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,i){return new e.init(i).finalize(t)}},_createHmacHelper:function(e){return function(t,i){return new h.HMAC.init(e,i).finalize(t)}}});var h=i.algo={};return i}(Math);!function(e){for(var t=A,i=(o=t.lib).WordArray,n=o.Hasher,o=t.algo,r=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},l=2,u=0;64>u;){var c;e:{c=l;for(var d=e.sqrt(c),h=2;h<=d;h++)if(!(c%h)){c=!1;break e}c=!0}c&&(8>u&&(r[u]=s(e.pow(l,.5))),a[u]=s(e.pow(l,1/3)),u++),l++}var p=[];o=o.SHA256=n.extend({_doReset:function(){this._hash=new i.init(r.slice(0))},_doProcessBlock:function(e,t){for(var i=this._hash.words,n=i[0],o=i[1],r=i[2],s=i[3],l=i[4],u=i[5],c=i[6],d=i[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=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&c)+a[h]+p[h],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&o^n&r^o&r),d=c,c=u,u=l,l=s+f|0,s=r,r=o,o=n,n=f+g|0}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+r|0,i[3]=i[3]+s|0,i[4]=i[4]+l|0,i[5]=i[5]+u|0,i[6]=i[6]+c|0,i[7]=i[7]+d|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return i[o>>>5]|=128<<24-o%32,i[14+(o+64>>>9<<4)]=e.floor(n/4294967296),i[15+(o+64>>>9<<4)]=n,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=n._createHelper(o),t.HmacSHA256=n._createHmacHelper(o)}(Math),y=(v=A).enc.Utf8,v.algo.HMAC=v.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=y.parse(t));var i=e.blockSize,n=4*i;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),r=this._iKey=t.clone(),a=o.words,s=r.words,l=0;l<i;l++)a[l]^=1549556828,s[l]^=909522486;o.sigBytes=r.sigBytes=n,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))}}),C=(w=A).lib.WordArray,w.enc.Base64={stringify:function(e){var t=e.words,i=e.sigBytes,n=this._map;e.clamp(),e=[];for(var o=0;o<i;o+=3)for(var r=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;4>a&&o+.75*a<i;a++)e.push(n.charAt(r>>>6*(3-a)&63));if(t=n.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,i=this._map;(n=i.charAt(64))&&-1!=(n=e.indexOf(n))&&(t=n);for(var n=[],o=0,r=0;r<t;r++)if(r%4){var a=i.indexOf(e.charAt(r-1))<<r%4*2,s=i.indexOf(e.charAt(r))>>>6-r%4*2;n[o>>>2]|=(a|s)<<24-o%4*8,o++}return C.create(n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){function t(e,t,i,n,o,r,a){return((e=e+(t&i|~t&n)+o+a)<<r|e>>>32-r)+t}function i(e,t,i,n,o,r,a){return((e=e+(t&n|i&~n)+o+a)<<r|e>>>32-r)+t}function n(e,t,i,n,o,r,a){return((e=e+(t^i^n)+o+a)<<r|e>>>32-r)+t}function o(e,t,i,n,o,r,a){return((e=e+(i^(t|~n))+o+a)<<r|e>>>32-r)+t}for(var r=A,a=(l=r.lib).WordArray,s=l.Hasher,l=r.algo,u=[],c=0;64>c;c++)u[c]=4294967296*e.abs(e.sin(c+1))|0;l=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,r){for(var a=0;16>a;a++){var s=e[l=r+a];e[l]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}a=this._hash.words;var l=e[r+0],c=(s=e[r+1],e[r+2]),d=e[r+3],h=e[r+4],p=e[r+5],f=e[r+6],g=e[r+7],m=e[r+8],b=e[r+9],v=e[r+10],y=e[r+11],w=e[r+12],C=e[r+13],x=e[r+14],A=e[r+15],S=t(S=a[0],_=a[1],T=a[2],k=a[3],l,7,u[0]),k=t(k,S,_,T,s,12,u[1]),T=t(T,k,S,_,c,17,u[2]),_=t(_,T,k,S,d,22,u[3]);S=t(S,_,T,k,h,7,u[4]),k=t(k,S,_,T,p,12,u[5]),T=t(T,k,S,_,f,17,u[6]),_=t(_,T,k,S,g,22,u[7]),S=t(S,_,T,k,m,7,u[8]),k=t(k,S,_,T,b,12,u[9]),T=t(T,k,S,_,v,17,u[10]),_=t(_,T,k,S,y,22,u[11]),S=t(S,_,T,k,w,7,u[12]),k=t(k,S,_,T,C,12,u[13]),T=t(T,k,S,_,x,17,u[14]),S=i(S,_=t(_,T,k,S,A,22,u[15]),T,k,s,5,u[16]),k=i(k,S,_,T,f,9,u[17]),T=i(T,k,S,_,y,14,u[18]),_=i(_,T,k,S,l,20,u[19]),S=i(S,_,T,k,p,5,u[20]),k=i(k,S,_,T,v,9,u[21]),T=i(T,k,S,_,A,14,u[22]),_=i(_,T,k,S,h,20,u[23]),S=i(S,_,T,k,b,5,u[24]),k=i(k,S,_,T,x,9,u[25]),T=i(T,k,S,_,d,14,u[26]),_=i(_,T,k,S,m,20,u[27]),S=i(S,_,T,k,C,5,u[28]),k=i(k,S,_,T,c,9,u[29]),T=i(T,k,S,_,g,14,u[30]),S=n(S,_=i(_,T,k,S,w,20,u[31]),T,k,p,4,u[32]),k=n(k,S,_,T,m,11,u[33]),T=n(T,k,S,_,y,16,u[34]),_=n(_,T,k,S,x,23,u[35]),S=n(S,_,T,k,s,4,u[36]),k=n(k,S,_,T,h,11,u[37]),T=n(T,k,S,_,g,16,u[38]),_=n(_,T,k,S,v,23,u[39]),S=n(S,_,T,k,C,4,u[40]),k=n(k,S,_,T,l,11,u[41]),T=n(T,k,S,_,d,16,u[42]),_=n(_,T,k,S,f,23,u[43]),S=n(S,_,T,k,b,4,u[44]),k=n(k,S,_,T,w,11,u[45]),T=n(T,k,S,_,A,16,u[46]),S=o(S,_=n(_,T,k,S,c,23,u[47]),T,k,l,6,u[48]),k=o(k,S,_,T,g,10,u[49]),T=o(T,k,S,_,x,15,u[50]),_=o(_,T,k,S,p,21,u[51]),S=o(S,_,T,k,w,6,u[52]),k=o(k,S,_,T,d,10,u[53]),T=o(T,k,S,_,v,15,u[54]),_=o(_,T,k,S,s,21,u[55]),S=o(S,_,T,k,m,6,u[56]),k=o(k,S,_,T,A,10,u[57]),T=o(T,k,S,_,f,15,u[58]),_=o(_,T,k,S,C,21,u[59]),S=o(S,_,T,k,h,6,u[60]),k=o(k,S,_,T,y,10,u[61]),T=o(T,k,S,_,c,15,u[62]),_=o(_,T,k,S,b,21,u[63]),a[0]=a[0]+S|0,a[1]=a[1]+_|0,a[2]=a[2]+T|0,a[3]=a[3]+k|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;i[o>>>5]|=128<<24-o%32;var r=e.floor(n/4294967296);for(i[15+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),i[14+(o+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(i.length+1),this._process(),i=(t=this._hash).words,n=0;4>n;n++)o=i[n],i[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);return t},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),r.MD5=s._createHelper(l),r.HmacMD5=s._createHmacHelper(l)}(Math),function(){var e,t=A,i=(e=t.lib).Base,n=e.WordArray,o=(e=t.algo).EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var i=(s=this.cfg).hasher.create(),o=n.create(),r=o.words,a=s.keySize,s=s.iterations;r.length<a;){l&&i.update(l);var l=i.update(e).finalize(t);i.reset();for(var u=1;u<s;u++)l=i.finalize(l),i.reset();o.concat(l)}return o.sigBytes=4*a,o}});t.EvpKDF=function(e,t,i){return o.create(i).compute(e,t)}}(),A.lib.Cipher||function(e){var t=(p=A).lib,i=t.Base,n=t.WordArray,o=t.BufferedBlockAlgorithm,r=p.enc.Base64,a=p.algo.EvpKDF,s=t.Cipher=o.extend({cfg:i.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,i){this.cfg=this.cfg.extend(i),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.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,i,n){return("string"==typeof i?f:h).encrypt(e,t,i,n)},decrypt:function(t,i,n){return("string"==typeof i?f:h).decrypt(e,t,i,n)}}}});t.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=p.mode={},u=function(e,t,i){var n=this._iv;n?this._iv=void 0:n=this._prevBlock;for(var o=0;o<i;o++)e[t+o]^=n[o]},c=(t.BlockCipherMode=i.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();c.Encryptor=c.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize;u.call(this,e,t,n),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+n)}}),c.Decryptor=c.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize,o=e.slice(t,t+n);i.decryptBlock(e,t),u.call(this,e,t,n),this._prevBlock=o}}),l=l.CBC=c,c=(p.pad={}).Pkcs7={pad:function(e,t){for(var i,o=(i=(i=4*t)-e.sigBytes%i)<<24|i<<16|i<<8|i,r=[],a=0;a<i;a+=4)r.push(o);i=n.create(r,i),e.concat(i)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=s.extend({cfg:s.cfg.extend({mode:l,padding:c}),reset:function(){s.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=t.createEncryptor;else i=t.createDecryptor,this._minBufferSize=1;this._mode=i.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=t.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),h=(l=(p.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})}},t.SerializableCipher=i.extend({cfg:i.extend({format:l}),encrypt:function(e,t,i,n){n=this.cfg.extend(n);var o=e.createEncryptor(i,n);return t=o.finalize(t),o=o.cfg,d.create({ciphertext:t,key:i,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,i,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(i,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),p=(p.kdf={}).OpenSSL={execute:function(e,t,i,o){return o||(o=n.random(8)),e=a.create({keySize:t+i}).compute(e,o),i=n.create(e.words.slice(t),4*i),e.sigBytes=4*t,d.create({key:e,iv:i,salt:o})}},f=t.PasswordBasedCipher=h.extend({cfg:h.cfg.extend({kdf:p}),encrypt:function(e,t,i,n){return i=(n=this.cfg.extend(n)).kdf.execute(i,e.keySize,e.ivSize),n.iv=i.iv,(e=h.encrypt.call(this,e,t,i.key,n)).mixIn(i),e},decrypt:function(e,t,i,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),i=n.kdf.execute(i,e.keySize,e.ivSize,t.salt),n.iv=i.iv,h.decrypt.call(this,e,t,i.key,n)}})}(),function(){for(var e=A,t=e.lib.BlockCipher,i=e.algo,n=[],o=[],r=[],a=[],s=[],l=[],u=[],c=[],d=[],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 b=(b=m^m<<1^m<<2^m<<3^m<<4)>>>8^255&b^99;n[g]=b,o[b]=g;var v=p[g],y=p[v],w=p[y],C=257*p[b]^16843008*b;r[g]=C<<24|C>>>8,a[g]=C<<16|C>>>16,s[g]=C<<8|C>>>24,l[g]=C,C=16843009*w^65537*y^257*v^16843008*g,u[b]=C<<24|C>>>8,c[b]=C<<16|C>>>16,d[b]=C<<8|C>>>24,h[b]=C,g?(g=v^p[p[p[w^v]]],m^=p[p[m]]):g=m=1}var x=[0,1,2,4,8,16,32,64,128,27,54];i=i.AES=t.extend({_doReset:function(){for(var e=(i=this._key).words,t=i.sigBytes/4,i=4*((this._nRounds=t+6)+1),o=this._keySchedule=[],r=0;r<i;r++)if(r<t)o[r]=e[r];else{var a=o[r-1];r%t?6<t&&4==r%t&&(a=n[a>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a]):(a=n[(a=a<<8|a>>>24)>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a],a^=x[r/t|0]<<24),o[r]=o[r-t]^a}for(e=this._invKeySchedule=[],t=0;t<i;t++)r=i-t,a=t%4?o[r]:o[r-4],e[t]=4>t||4>=r?a:u[n[a>>>24]]^c[n[a>>>16&255]]^d[n[a>>>8&255]]^h[n[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,a,s,l,n)},decryptBlock:function(e,t){var i=e[t+1];e[t+1]=e[t+3],e[t+3]=i,this._doCryptBlock(e,t,this._invKeySchedule,u,c,d,h,o),i=e[t+1],e[t+1]=e[t+3],e[t+3]=i},_doCryptBlock:function(e,t,i,n,o,r,a,s){for(var l=this._nRounds,u=e[t]^i[0],c=e[t+1]^i[1],d=e[t+2]^i[2],h=e[t+3]^i[3],p=4,f=1;f<l;f++){var g=n[u>>>24]^o[c>>>16&255]^r[d>>>8&255]^a[255&h]^i[p++],m=n[c>>>24]^o[d>>>16&255]^r[h>>>8&255]^a[255&u]^i[p++],b=n[d>>>24]^o[h>>>16&255]^r[u>>>8&255]^a[255&c]^i[p++];h=n[h>>>24]^o[u>>>16&255]^r[c>>>8&255]^a[255&d]^i[p++],u=g,c=m,d=b}g=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^i[p++],m=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^i[p++],b=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^i[p++],h=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^i[p++],e[t]=g,e[t+1]=m,e[t+2]=b,e[t+3]=h},keySize:8}),e.AES=t._createHelper(i)}(),A.mode.ECB=((x=A.lib.BlockCipherMode.extend()).Encryptor=x.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),x.Decryptor=x.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),x);var S=A;function k(e){var t,i=[];for(t=0;t<e.length;t+=1)i[t/4|0]|=e[t]<<24-8*t;return S.lib.WordArray.create(i,e.length)}var T=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 S.HmacSHA256(e,this._config.secretKey).toString(S.enc.Base64)},e.prototype.SHA256=function(e){return S.SHA256(e).toString(S.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?S.enc.Base64.parse(e):"hex"===t.keyEncoding?S.enc.Hex.parse(e):e},e.prototype._getPaddedKey=function(e,t){return e=this._decodeKey(e,t),t.encryptKey?S.enc.Utf8.parse(this.SHA256(e).slice(0,32)):e},e.prototype._getMode=function(e){return"ecb"===e.mode?S.mode.ECB:S.mode.CBC},e.prototype._getIV=function(e){return"cbc"===e.mode?S.enc.Utf8.parse(this._iv):null},e.prototype._getRandomIV=function(){return S.lib.WordArray.random(16)},e.prototype.encrypt=function(e,t,i){return this._config.customEncrypt?this._config.customEncrypt(e):this.pnEncrypt(e,t,i)},e.prototype.decrypt=function(e,t,i){return this._config.customDecrypt?this._config.customDecrypt(e):this.pnDecrypt(e,t,i)},e.prototype.pnEncrypt=function(e,t,i){if(!t&&!this._config.cipherKey)return e;i=this._parseOptions(i);var n=this._getMode(i),o=this._getPaddedKey(t||this._config.cipherKey,i);if(this._config.useRandomIVs){var r=this._getRandomIV(),a=S.AES.encrypt(e,o,{iv:r,mode:n}).ciphertext;return r.clone().concat(a.clone()).toString(S.enc.Base64)}var s=this._getIV(i);return S.AES.encrypt(e,o,{iv:s,mode:n}).ciphertext.toString(S.enc.Base64)||e},e.prototype.pnDecrypt=function(e,t,i){if(!t&&!this._config.cipherKey)return e;i=this._parseOptions(i);var n=this._getMode(i),o=this._getPaddedKey(t||this._config.cipherKey,i);if(this._config.useRandomIVs){var r=k((l=new Uint8ClampedArray(b(e))).slice(0,16)),a=k(l.slice(16));try{var s=S.AES.decrypt({ciphertext:a},o,{iv:r,mode:n}).toString(S.enc.Utf8);return JSON.parse(s)}catch(e){return null}}else{r=this._getIV(i);try{var l=S.enc.Base64.parse(e);return s=S.AES.decrypt({ciphertext:l},o,{iv:r,mode:n}).toString(S.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}(),E=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 i=0;i<e.length;i+=1)t=(t<<5)-t+e.charCodeAt(i),t&=t;return t}(JSON.stringify(e.payload)).toString(),i=e.publishMetaData.publishTimetoken;return"".concat(i,"-").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}();function O(e){return encodeURIComponent(e).replace(/[!~*'()]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}var P={signPamFromParams:function(e){return function(e){return function(e){var t=[];return Object.keys(e).forEach((function(e){return t.push(e)})),t}(e).sort()}(e).map((function(t){return"".concat(t,"=").concat(O(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(i,n){e=i,t=n})),reject:t,fulfill:e}},encodeString:O},M={PNNetworkUpCategory:"PNNetworkUpCategory",PNNetworkDownCategory:"PNNetworkDownCategory",PNNetworkIssuesCategory:"PNNetworkIssuesCategory",PNTimeoutCategory:"PNTimeoutCategory",PNBadRequestCategory:"PNBadRequestCategory",PNAccessDeniedCategory:"PNAccessDeniedCategory",PNUnknownCategory:"PNUnknownCategory",PNReconnectedCategory:"PNReconnectedCategory",PNConnectedCategory:"PNConnectedCategory",PNRequestMessageCountExceededCategory:"PNRequestMessageCountExceededCategory"},N=function(){function e(e){var t=e.subscribeEndpoint,i=e.leaveEndpoint,n=e.heartbeatEndpoint,o=e.setStateEndpoint,r=e.timeEndpoint,a=e.getFileUrl,s=e.config,l=e.crypto,u=e.listenerManager;this._listenerManager=u,this._config=s,this._leaveEndpoint=i,this._heartbeatEndpoint=n,this._setStateEndpoint=o,this._subscribeEndpoint=t,this._getFileUrl=a,this._crypto=l,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:r}),this._dedupingManager=new E({config:s})}return e.prototype.adaptStateChange=function(e,t){var i=this,n=e.state,o=e.channels,r=void 0===o?[]:o,a=e.channelGroups,s=void 0===a?[]:a;return r.forEach((function(e){e in i._channels&&(i._channels[e].state=n)})),s.forEach((function(e){e in i._channelGroups&&(i._channelGroups[e].state=n)})),this._setStateEndpoint({state:n,channels:r,channelGroups:s},t)},e.prototype.adaptPresenceChange=function(e){var t=this,i=e.connected,n=e.channels,o=void 0===n?[]:n,r=e.channelGroups,a=void 0===r?[]:r;i?(o.forEach((function(e){t._heartbeatChannels[e]={state:{}}})),a.forEach((function(e){t._heartbeatChannelGroups[e]={state:{}}}))):(o.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:o,channelGroups:a},(function(e){t._listenerManager.announceStatus(e)}))),this.reconnect()},e.prototype.adaptSubscribeChange=function(e){var t=this,i=e.timetoken,n=e.channels,o=void 0===n?[]:n,r=e.channelGroups,a=void 0===r?[]:r,s=e.withPresence,l=void 0!==s&&s,u=e.withHeartbeats,c=void 0!==u&&u;this._config.subscribeKey&&""!==this._config.subscribeKey?(i&&(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=i),"0"!==this._currentTimetoken&&0!==this._currentTimetoken&&(this._storedTimetoken=this._currentTimetoken,this._currentTimetoken=0),o.forEach((function(e){t._channels[e]={state:{}},l&&(t._presenceChannels[e]={}),(c||t._config.getHeartbeatInterval())&&(t._heartbeatChannels[e]={}),t._pendingChannelSubscriptions.push(e)})),a.forEach((function(e){t._channelGroups[e]={state:{}},l&&(t._presenceChannelGroups[e]={}),(c||t._config.getHeartbeatInterval())&&(t._heartbeatChannelGroups[e]={}),t._pendingChannelGroupSubscriptions.push(e)})),this._subscriptionStatusAnnounced=!1,this.reconnect()):console&&console.log&&console.log("subscribe key missing; aborting subscribe")},e.prototype.adaptUnsubscribeChange=function(e,t){var i=this,n=e.channels,o=void 0===n?[]:n,r=e.channelGroups,a=void 0===r?[]:r,s=[],l=[];o.forEach((function(e){e in i._channels&&(delete i._channels[e],s.push(e),e in i._heartbeatChannels&&delete i._heartbeatChannels[e]),e in i._presenceChannels&&(delete i._presenceChannels[e],s.push(e))})),a.forEach((function(e){e in i._channelGroups&&(delete i._channelGroups[e],l.push(e),e in i._heartbeatChannelGroups&&delete i._heartbeatChannelGroups[e]),e in i._presenceChannelGroups&&(delete i._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=i._currentTimetoken,e.lastTimetoken=i._lastTimetoken,i._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(),i=this.getHeartbeatChannelGroups(),n={};0===t.length&&0===i.length||(this.getSubscribedChannels().forEach((function(t){var i=e._channels[t].state;Object.keys(i).length&&(n[t]=i)})),this.getSubscribedChannelGroups().forEach((function(t){var i=e._channelGroups[t].state;Object.keys(i).length&&(n[t]=i)})),this._heartbeatEndpoint({channels:t,channelGroups:i,state:n},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={},i=[],n=[];if(Object.keys(this._channels).forEach((function(n){var o=e._channels[n].state;Object.keys(o).length&&(t[n]=o),i.push(n)})),Object.keys(this._presenceChannels).forEach((function(e){i.push("".concat(e,"-pnpres"))})),Object.keys(this._channelGroups).forEach((function(i){var o=e._channelGroups[i].state;Object.keys(o).length&&(t[i]=o),n.push(i)})),Object.keys(this._presenceChannelGroups).forEach((function(e){n.push("".concat(e,"-pnpres"))})),0!==i.length||0!==n.length){var o={channels:i,channelGroups:n,state:t,timetoken:this._currentTimetoken,filterExpression:this._config.filterExpression,region:this._region};this._subscribeCall=this._subscribeEndpoint(o,this._processSubscribeResponse.bind(this))}},e.prototype._processSubscribeResponse=function(e,t){var i=this;if(e.error){if(e.errorData&&"Aborted"===e.errorData.message)return;e.category===M.PNTimeoutCategory?this._startSubscribeLoop():e.category===M.PNNetworkIssuesCategory?(this.disconnect(),e.error&&this._config.autoNetworkDetection&&this._isOnline&&(this._isOnline=!1,this._listenerManager.announceNetworkDown()),this._reconnectionManager.onReconnection((function(){i._config.autoNetworkDetection&&!i._isOnline&&(i._isOnline=!0,i._listenerManager.announceNetworkUp()),i.reconnect(),i._subscriptionStatusAnnounced=!0;var t={category:M.PNReconnectedCategory,operation:e.operation,lastTimetoken:i._lastTimetoken,currentTimetoken:i._currentTimetoken};i._listenerManager.announceStatus(t)})),this._reconnectionManager.startPolling(),this._listenerManager.announceStatus(e)):e.category===M.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 r={};r.category=M.PNConnectedCategory,r.operation=e.operation,r.affectedChannels=this._pendingChannelSubscriptions,r.subscribedChannels=this.getSubscribedChannels(),r.affectedChannelGroups=this._pendingChannelGroupSubscriptions,r.lastTimetoken=this._lastTimetoken,r.currentTimetoken=this._currentTimetoken,this._subscriptionStatusAnnounced=!0,this._listenerManager.announceStatus(r),this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[]}var a=t.messages||[],s=this._config,l=s.requestMessageCountThreshold,u=s.dedupeOnSubscribe;if(l&&a.length>=l){var c={};c.category=M.PNRequestMessageCountExceededCategory,c.operation=e.operation,this._listenerManager.announceStatus(c)}a.forEach((function(e){var t=e.channel,r=e.subscriptionMatch,a=e.publishMetaData;if(t===r&&(r=null),u){if(i._dedupingManager.isDuplicate(e))return;i._dedupingManager.addEntry(e)}if(P.endsWith(e.channel,"-pnpres"))(g={channel:null,subscription:null}).actualChannel=null!=r?t:null,g.subscribedChannel=null!=r?r:t,t&&(g.channel=t.substring(0,t.lastIndexOf("-pnpres"))),r&&(g.subscription=r.substring(0,r.lastIndexOf("-pnpres"))),g.action=e.payload.action,g.state=e.payload.data,g.timetoken=a.publishTimetoken,g.occupancy=e.payload.occupancy,g.uuid=e.payload.uuid,g.timestamp=e.payload.timestamp,e.payload.join&&(g.join=e.payload.join),e.payload.leave&&(g.leave=e.payload.leave),e.payload.timeout&&(g.timeout=e.payload.timeout),i._listenerManager.announcePresence(g);else if(1===e.messageType)(g={channel:null,subscription:null}).channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId,e.userMetadata&&(g.userMetadata=e.userMetadata),g.message=e.payload,i._listenerManager.announceSignal(g);else if(2===e.messageType){if((g={channel:null,subscription:null}).channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId,e.userMetadata&&(g.userMetadata=e.userMetadata),g.message={event:e.payload.event,type:e.payload.type,data:e.payload.data},i._listenerManager.announceObjects(g),"uuid"===e.payload.type){var s=i._renameChannelField(g);i._listenerManager.announceUser(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),type:"user"})}))}else if("channel"===e.payload.type)s=i._renameChannelField(g),i._listenerManager.announceSpace(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),type:"space"})}));else if("membership"===e.payload.type){var l=(s=i._renameChannelField(g)).message.data,c=l.uuid,d=l.channel,h=o(l,["uuid","channel"]);h.user=c,h.space=d,i._listenerManager.announceMembership(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),data:h})}))}}else if(3===e.messageType)(g={}).channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId,g.data={messageTimetoken:e.payload.data.messageTimetoken,actionTimetoken:e.payload.data.actionTimetoken,type:e.payload.data.type,uuid:e.issuingClientId,value:e.payload.data.value},g.event=e.payload.event,i._listenerManager.announceMessageAction(g);else if(4===e.messageType){(g={}).channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId;var p=e.payload;if(i._config.cipherKey){var f=i._crypto.decrypt(e.payload);"object"==typeof f&&null!==f&&(p=f)}e.userMetadata&&(g.userMetadata=e.userMetadata),g.message=p.message,g.file={id:p.file.id,name:p.file.name,url:i._getFileUrl({id:p.file.id,name:p.file.name,channel:t})},i._listenerManager.announceFile(g)}else{var g;(g={channel:null,subscription:null}).actualChannel=null!=r?t:null,g.subscribedChannel=null!=r?r:t,g.channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId,e.userMetadata&&(g.userMetadata=e.userMetadata),i._config.cipherKey?g.message=i._crypto.decrypt(e.payload):g.message=e.payload,i._listenerManager.announceMessage(g)}})),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,i=o(e,["channel"]);return i.spaceId=t,i},e}(),I={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"},D=function(){function e(e){this._maximumSamplesCount=100,this._trackedLatencies={},this._latencies={},this._maximumSamplesCount=e.maximumSamplesCount||this._maximumSamplesCount}return e.prototype.operationsLatencyForRequest=function(){var e=this,t={};return Object.keys(this._latencies).forEach((function(i){var n=e._latencies[i],o=e._averageLatency(n);o>0&&(t["l_".concat(i)]=o)})),t},e.prototype.startLatencyMeasure=function(e,t){e!==I.PNSubscribeOperation&&t&&(this._trackedLatencies[t]=Date.now())},e.prototype.stopLatencyMeasure=function(e,t){if(e!==I.PNSubscribeOperation&&t){var i=this._endpointName(e),n=this._latencies[i],o=this._trackedLatencies[t];n||(this._latencies[i]=[],n=this._latencies[i]),n.push(Date.now()-o),n.length>this._maximumSamplesCount&&n.splice(0,n.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 I.PNPublishOperation:t="pub";break;case I.PNSignalOperation:t="sig";break;case I.PNHistoryOperation:case I.PNFetchMessagesOperation:case I.PNDeleteMessagesOperation:case I.PNMessageCounts:t="hist";break;case I.PNUnsubscribeOperation:case I.PNWhereNowOperation:case I.PNHereNowOperation:case I.PNHeartbeatOperation:case I.PNSetStateOperation:case I.PNGetStateOperation:t="pres";break;case I.PNAddChannelsToGroupOperation:case I.PNRemoveChannelsFromGroupOperation:case I.PNChannelGroupsOperation:case I.PNRemoveGroupOperation:case I.PNChannelsForGroupOperation:t="cg";break;case I.PNPushNotificationEnabledChannelsOperation:case I.PNRemoveAllPushNotificationsOperation:t="push";break;case I.PNCreateUserOperation:case I.PNUpdateUserOperation:case I.PNDeleteUserOperation:case I.PNGetUserOperation:case I.PNGetUsersOperation:case I.PNCreateSpaceOperation:case I.PNUpdateSpaceOperation:case I.PNDeleteSpaceOperation:case I.PNGetSpaceOperation:case I.PNGetSpacesOperation:case I.PNGetMembersOperation:case I.PNUpdateMembersOperation:case I.PNGetMembershipsOperation:case I.PNUpdateMembershipsOperation:t="obj";break;case I.PNAddMessageActionOperation:case I.PNRemoveMessageActionOperation:case I.PNGetMessageActionsOperation:t="msga";break;case I.PNAccessManagerGrant:case I.PNAccessManagerAudit:t="pam";break;case I.PNAccessManagerGrantToken:case I.PNAccessManagerRevokeToken:t="pamv3";break;default:t="time"}return t},e}(),U=function(){function e(e,t,i){this._payload=e,this._setDefaultPayloadStructure(),this.title=t,this.body=i}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 i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"configurations",{set:function(e){e&&e.length&&(this._configurations=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notification",{get:function(){return this._payload.aps},enumerable:!1,configurable:!0}),Object.defineProperty(i.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(i.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(i.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(i.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(i.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(i.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),i.prototype._setDefaultPayloadStructure=function(){this._payload.aps={alert:{}}},i.prototype.toObject=function(){var e=this,t=n({},this._payload),i=t.aps,o=i.alert;if(this._isSilent&&(i["content-available"]=1),"apns2"===this._apnsPushType){if(!this._configurations||!this._configurations.length)throw new ReferenceError("APNS2 configuration is missing");var r=[];this._configurations.forEach((function(t){r.push(e._objectFromAPNS2Configuration(t))})),r.length&&(t.pn_push=r)}return o&&Object.keys(o).length||delete i.alert,this._isSilent&&(delete i.alert,delete i.badge,delete i.sound,o={}),this._isSilent||Object.keys(o).length?t:null},i.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 i=[];e.targets.forEach((function(e){i.push(t._objectFromAPNSTarget(e))}));var n=e.collapseId,o=e.expirationDate,r={auth_method:"token",targets:i,version:"v2"};return n&&n.length&&(r.collapse_id=n),o&&(r.expiration=o.toISOString()),r},i.prototype._objectFromAPNSTarget=function(e){if(!e.topic||!e.topic.length)throw new TypeError("Target 'topic' undefined.");var t=e.topic,i=e.environment,n=void 0===i?"development":i,o=e.excludedDevices,r=void 0===o?[]:o,a={topic:t,environment:n};return r.length&&(a.excluded_devices=r),a},i}(U),R=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.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(i.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(i.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(i.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(i.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(i.prototype,"subtitle",{get:function(){return this.backTitle},set:function(e){this.backTitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"body",{get:function(){return this.backContent},set:function(e){this.backContent=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"badge",{get:function(){return this.count},set:function(e){this.count=e},enumerable:!1,configurable:!0}),i.prototype.toObject=function(){return Object.keys(this._payload).length?n({},this._payload):null},i}(U),B=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"notification",{get:function(){return this._payload.notification},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this._payload.data},enumerable:!1,configurable:!0}),Object.defineProperty(i.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(i.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(i.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(i.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(i.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(i.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),i.prototype._setDefaultPayloadStructure=function(){this._payload.notification={},this._payload.data={}},i.prototype.toObject=function(){var e=n({},this._payload.data),t=null,i={};if(Object.keys(this._payload).length>2){var r=this._payload;r.notification,r.data;var a=o(r,["notification","data"]);e=n(n({},e),a)}return this._isSilent?e.notification=this._payload.notification:t=this._payload.notification,Object.keys(e).length&&(i.data=e),t&&Object.keys(t).length&&(i.notification=t),Object.keys(i).length?i:null},i}(U),j=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 R(this._payload.mpns,e,t),this.fcm=new B(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 i=this.apns.toObject();i&&Object.keys(i).length&&(t.pn_apns=i)}if(e.includes("mpns")){var n=this.mpns.toObject();n&&Object.keys(n).length&&(t.pn_mpns=n)}if(e.includes("fcm")){var o=this.fcm.toObject();o&&Object.keys(o).length&&(t.pn_gcm=o)}return Object.keys(t).length&&this._debugging&&(t.pn_debug=!0),t},e}(),H=function(){function e(){this._listeners=[]}return e.prototype.addListener=function(e){this._listeners.push(e)},e.prototype.removeListener=function(e){var t=[];this._listeners.forEach((function(i){i!==e&&t.push(i)})),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=M.PNNetworkUpCategory,this.announceStatus(e)},e.prototype.announceNetworkDown=function(){var e={};e.category=M.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==(128&e)&&(t.join=!0),64==(64&e)&&(t.update=!0),32==(32&e)&&(t.get=!0),8==(8&e)&&(t.delete=!0),4==(4&e)&&(t.manage=!0),2==(2&e)&&(t.write=!0),1==(1&e)&&(t.read=!0),t},e.prototype.parseToken=function(e){var t=this,i=this._cbor.decodeToken(e);if(void 0!==i){var n=i.res.uuid?Object.keys(i.res.uuid):[],o=Object.keys(i.res.chan),r=Object.keys(i.res.grp),a=i.pat.uuid?Object.keys(i.pat.uuid):[],s=Object.keys(i.pat.chan),l=Object.keys(i.pat.grp),u={version:i.v,timestamp:i.t,ttl:i.ttl,authorized_uuid:i.uuid},c=n.length>0,d=o.length>0,h=r.length>0;(c||d||h)&&(u.resources={},c&&(u.resources.uuids={},n.forEach((function(e){u.resources.uuids[e]=t.extractPermissions(i.res.uuid[e])}))),d&&(u.resources.channels={},o.forEach((function(e){u.resources.channels[e]=t.extractPermissions(i.res.chan[e])}))),h&&(u.resources.groups={},r.forEach((function(e){u.resources.groups[e]=t.extractPermissions(i.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(i.pat.uuid[e])}))),f&&(u.patterns.channels={},s.forEach((function(e){u.patterns.channels[e]=t.extractPermissions(i.pat.chan[e])}))),g&&(u.patterns.groups={},l.forEach((function(e){u.patterns.groups[e]=t.extractPermissions(i.pat.grp[e])})))),Object.keys(i.meta).length>0&&(u.meta=i.meta),u.signature=i.sig,u}},e}(),$=function(e){function i(t,i){var n=this.constructor,o=e.call(this,t)||this;return o.name=o.constructor.name,o.status=i,o.message=t,Object.setPrototypeOf(o,n.prototype),o}return t(i,e),i}(Error);function z(e){return(t={message:e}).type="validationError",t.error=!0,t;var t}function Q(e,t,i){return e.usePost&&e.usePost(t,i)?e.postURL(t,i):e.usePatch&&e.usePatch(t,i)?e.patchURL(t,i):e.useGetFile&&e.useGetFile(t,i)?e.getFileURL(t,i):e.getURL(t,i)}function G(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 i=e._getPnsdkSuffix(" ");return i.length>0&&(t+=i),t}function q(e,t,i){return t.usePost&&t.usePost(e,i)?"POST":t.usePatch&&t.usePatch(e,i)?"PATCH":t.useDelete&&t.useDelete(e,i)?"DELETE":t.useGetFile&&t.useGetFile(e,i)?"GETFILE":"GET"}function W(e,t,i,n,o){var r=e.config,a=e.crypto,s=q(e,o,n);i.timestamp=Math.floor((new Date).getTime()/1e3),"PNPublishOperation"===o.getOperation()&&o.usePost&&o.usePost(e,n)&&(s="GET"),"GETFILE"===s&&(s="GET");var l="".concat(s,"\n").concat(r.publishKey,"\n").concat(t,"\n").concat(P.signPamFromParams(i),"\n");if("POST"===s)l+="string"==typeof(u=o.postPayload(e,n))?u:JSON.stringify(u);else if("PATCH"===s){var u;l+="string"==typeof(u=o.patchPayload(e,n))?u:JSON.stringify(u)}var c="v2.".concat(a.HMACSHA256(l));c=(c=(c=c.replace(/\+/g,"-")).replace(/\//g,"_")).replace(/=+$/,""),i.signature=c}function V(e,t){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var r=e.networking,a=e.config,s=e.telemetryManager,l=e.tokenManager,u=g(),c=null,d=null,h={};t.getOperation()===I.PNTimeOperation||t.getOperation()===I.PNChannelGroupsOperation?c=i[0]:(h=i[0],c=i[1]),"undefined"==typeof Promise||c||(d=P.createPromise());var p=t.validateParams(e,h);if(p)return c?c(z(p)):d?(d.reject(new $("Validation failed, check status for details",z(p))),d.promise):void 0;var f,m=t.prepareParams(e,h),b=Q(t,e,h),v={url:b,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};m.uuid=a.UUID,m.pnsdk=G(a);var y=s.operationsLatencyForRequest();if(Object.keys(y).length&&(m=n(n({},m),y)),a.useInstanceId&&(m.instanceid=a.instanceId),a.useRequestId&&(m.requestid=u),t.isAuthSupported()){var w=l.getToken()||a.getAuthKey();w&&(m.auth=w)}a.secretKey&&W(e,b,m,h,t);var C=function(i,n){if(i.error)return t.handleError&&t.handleError(e,h,i),void(c?c(i):d&&d.reject(new $("PubNub call failed, check status for details",i)));s.stopLatencyMeasure(t.getOperation(),u);var o=t.handleResponse(e,n,h);"function"!=typeof(null==o?void 0:o.then)&&(o=Promise.resolve(o)),o.then((function(e){c?c(i,e):d&&d.fulfill(e)})).catch((function(e){if(c){var i=e;t.getOperation()===I.PNSubscribeOperation&&(i={statusCode:400,error:!0,operation:t.getOperation(),errorData:e,category:M.PNUnknownCategory}),c(i,null)}else d&&d.reject(new $("PubNub call failed, check status for details",e))}))};if(s.startLatencyMeasure(t.getOperation(),u),"POST"===q(e,t,h)){var x=t.postPayload(e,h);f=r.POST(m,x,v,C)}else"PATCH"===q(e,t,h)?(x=t.patchPayload(e,h),f=r.PATCH(m,x,v,C)):f="DELETE"===q(e,t,h)?r.DELETE(m,v,C):"GETFILE"===q(e,t,h)?r.GETFILE(m,v,C):r.GET(m,v,C);return t.getOperation()===I.PNSubscribeOperation?f:d?d.promise:void 0}var Y=Object.freeze({__proto__:null,getOperation:function(){return I.PNAddChannelsToGroupOperation},validateParams:function(e,t){var i=t.channels,n=t.channelGroup,o=e.config;return n?i&&0!==i.length?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels;return{add:(void 0===i?[]:i).join(",")}},handleResponse:function(){return{}}}),K=Object.freeze({__proto__:null,getOperation:function(){return I.PNRemoveChannelsFromGroupOperation},validateParams:function(e,t){var i=t.channels,n=t.channelGroup,o=e.config;return n?i&&0!==i.length?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels;return{remove:(void 0===i?[]:i).join(",")}},handleResponse:function(){return{}}}),X=Object.freeze({__proto__:null,getOperation:function(){return I.PNRemoveGroupOperation},validateParams:function(e,t){var i=t.channelGroup,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(P.encodeString(i),"/remove")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},handleResponse:function(){return{}}}),Z=Object.freeze({__proto__:null,getOperation:function(){return I.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}}}),J=Object.freeze({__proto__:null,getOperation:function(){return I.PNChannelsForGroupOperation},validateParams:function(e,t){var i=t.channelGroup,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{channels:t.payload.channels}}}),ee=Object.freeze({__proto__:null,getOperation:function(){return I.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,o=t.channels,r=t.topic,a=e.config;return i?n?"apns2"!==n||r?o&&0!==o.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 i=t.device,n=t.pushGateway,o=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(o.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(o.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,o=t.channels,r=void 0===o?[]:o,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:i,add:r.join(",")};return"apns2"===i&&delete(u=n(n({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),te=Object.freeze({__proto__:null,getOperation:function(){return I.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,o=t.channels,r=t.topic,a=e.config;return i?n?"apns2"!==n||r?o&&0!==o.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 i=t.device,n=t.pushGateway,o=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(o.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(o.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,o=t.channels,r=void 0===o?[]:o,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:i,remove:r.join(",")};return"apns2"===i&&delete(u=n(n({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),ie=Object.freeze({__proto__:null,getOperation:function(){return I.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,o=t.topic,r=e.config;return i?n?"apns2"!==n||o?r.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 i=t.device,n=t.pushGateway,o=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(o.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(o.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,o=t.environment,r=void 0===o?"development":o,a=t.topic,s={type:i};return"apns2"===i&&delete(s=n(n({},s),{environment:r,topic:a})).type,s},handleResponse:function(e,t){return{channels:t}}}),ne=Object.freeze({__proto__:null,getOperation:function(){return I.PNRemoveAllPushNotificationsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,o=t.topic,r=e.config;return i?n?"apns2"!==n||o?r.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 i=t.device,n=t.pushGateway,o=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(o.subscribeKey,"/devices-apns2/").concat(i,"/remove"):"/v1/push/sub-key/".concat(o.subscribeKey,"/devices/").concat(i,"/remove")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,o=t.environment,r=void 0===o?"development":o,a=t.topic,s={type:i};return"apns2"===i&&delete(s=n(n({},s),{environment:r,topic:a})).type,s},handleResponse:function(){return{}}}),oe=Object.freeze({__proto__:null,getOperation:function(){return I.PNUnsubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,o=void 0===n?[]:n,r=o.length>0?o.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(r),"/leave")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,o={};return n.length>0&&(o["channel-group"]=n.join(",")),o},handleResponse:function(){return{}}}),re=Object.freeze({__proto__:null,getOperation:function(){return I.PNWhereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.uuid,o=void 0===n?i.UUID:n;return"/v2/presence/sub-key/".concat(i.subscribeKey,"/uuid/").concat(P.encodeString(o))},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:[]}}}),ae=Object.freeze({__proto__:null,getOperation:function(){return I.PNHeartbeatOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,o=void 0===n?[]:n,r=o.length>0?o.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(r),"/heartbeat")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,o=t.state,r=void 0===o?{}:o,a=e.config,s={};return n.length>0&&(s["channel-group"]=n.join(",")),s.state=JSON.stringify(r),s.heartbeat=a.getPresenceTimeout(),s},handleResponse:function(){return{}}}),se=Object.freeze({__proto__:null,getOperation:function(){return I.PNGetStateOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.uuid,o=void 0===n?i.UUID:n,r=t.channels,a=void 0===r?[]:r,s=a.length>0?a.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(s),"/uuid/").concat(o)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,o={};return n.length>0&&(o["channel-group"]=n.join(",")),o},handleResponse:function(e,t,i){var n=i.channels,o=void 0===n?[]:n,r=i.channelGroups,a=void 0===r?[]:r,s={};return 1===o.length&&0===a.length?s[o[0]]=t.payload:s=t.payload,{channels:s}}}),le=Object.freeze({__proto__:null,getOperation:function(){return I.PNSetStateOperation},validateParams:function(e,t){var i=e.config,n=t.state,o=t.channels,r=void 0===o?[]:o,a=t.channelGroups,s=void 0===a?[]:a;return n?i.subscribeKey?0===r.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 i=e.config,n=t.channels,o=void 0===n?[]:n,r=o.length>0?o.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(r),"/uuid/").concat(P.encodeString(i.UUID),"/data")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.state,n=t.channelGroups,o=void 0===n?[]:n,r={};return r.state=JSON.stringify(i),o.length>0&&(r["channel-group"]=o.join(",")),r},handleResponse:function(e,t){return{state:t.payload}}}),ue=Object.freeze({__proto__:null,getOperation:function(){return I.PNHereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,o=void 0===n?[]:n,r=t.channelGroups,a=void 0===r?[]:r,s="/v2/presence/sub-key/".concat(i.subscribeKey);if(o.length>0||a.length>0){var l=o.length>0?o.join(","):",";s+="/channel/".concat(P.encodeString(l))}return s},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,o=void 0===i?[]:i,r=t.includeUUIDs,a=void 0===r||r,s=t.includeState,l=void 0!==s&&s,u=t.queryParameters,c=void 0===u?{}:u,d={};return a||(d.disable_uuids=1),l&&(d.state=1),o.length>0&&(d["channel-group"]=o.join(",")),n(n({},d),c)},handleResponse:function(e,t,i){var n=i.channels,o=void 0===n?[]:n,r=i.channelGroups,a=void 0===r?[]:r,s=i.includeUUIDs,l=void 0===s||s,u=i.includeState,c=void 0!==u&&u;return o.length>1||a.length>0||0===a.length&&0===o.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(i){var n=t.payload.channels[i],o=[];return e.channels[i]={occupants:o,name:i,occupancy:n.occupancy},l&&n.uuids.forEach((function(e){c?o.push({state:e.state,uuid:e.uuid}):o.push({state:null,uuid:e})})),e})),e}():function(){var e={},i=[];return e.totalChannels=1,e.totalOccupancy=t.occupancy,e.channels={},e.channels[o[0]]={occupants:i,name:o[0],occupancy:t.occupancy},l&&t.uuids&&t.uuids.forEach((function(e){c?i.push({state:e.state,uuid:e.uuid}):i.push({state:null,uuid:e})})),e}()},handleError:function(e,t,i){402!==i.statusCode||this.getURL(e,t).includes("channel")||(i.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.")}}),ce=Object.freeze({__proto__:null,getOperation:function(){return I.PNAddMessageActionOperation},validateParams:function(e,t){var i=e.config,n=t.action,o=t.channel;return t.messageTimetoken?i.subscribeKey?o?n?n.value?n.type?n.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 i=e.config,n=t.channel,o=t.messageTimetoken;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(n),"/message/").concat(o)},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}}}),de=Object.freeze({__proto__:null,getOperation:function(){return I.PNRemoveMessageActionOperation},validateParams:function(e,t){var i=e.config,n=t.channel,o=t.actionTimetoken;return t.messageTimetoken?o?i.subscribeKey?n?void 0:"Missing message channel":"Missing Subscribe Key":"Missing action timetoken":"Missing message timetoken"},useDelete:function(){return!0},getURL:function(e,t){var i=e.config,n=t.channel,o=t.actionTimetoken,r=t.messageTimetoken;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(n),"/message/").concat(r,"/action/").concat(o)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{data:t.data}}}),he=Object.freeze({__proto__:null,getOperation:function(){return I.PNGetMessageActionsOperation},validateParams:function(e,t){var i=e.config,n=t.channel;return i.subscribeKey?n?void 0:"Missing message channel":"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channel;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.limit,n=t.start,o=t.end,r={};return i&&(r.limit=i),n&&(r.start=n),o&&(r.end=o),r},handleResponse:function(e,t){var i={data:t.data,start:null,end:null};return i.data.length&&(i.end=i.data[i.data.length-1].actionTimetoken,i.start=i.data[0].actionTimetoken),i}}),pe={getOperation:function(){return I.PNListFilesOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"channel can't be empty"},getURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(P.encodeString(t.channel),"/files")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.limit&&(i.limit=t.limit),t.next&&(i.next=t.next),i},handleResponse:function(e,t){return{status:t.status,data:t.data,next:t.next,count:t.count}}},fe={getOperation:function(){return I.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 i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(P.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}}},ge={getOperation:function(){return I.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 i=e.config,n=i.publishKey,o=i.subscribeKey,r=function(e,t){var i=e.crypto,n=e.config,o=JSON.stringify(t);return n.cipherKey&&(o=i.encrypt(o),o=JSON.stringify(o)),o||""}(e,{message:t.message,file:{name:t.fileName,id:t.fileId}});return"/v1/files/publish-file/".concat(n,"/").concat(o,"/0/").concat(P.encodeString(t.channel),"/0/").concat(P.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.ttl&&(i.ttl=t.ttl),void 0!==t.storeInHistory&&(i.store=t.storeInHistory?"1":"0"),t.meta&&"object"==typeof t.meta&&(i.meta=JSON.stringify(t.meta)),i},handleResponse:function(e,t){return{timetoken:t[2]}}},me=function(e){var t=function(e){var t=this,i=e.generateUploadUrl,n=e.publishFile,o=e.modules,s=o.PubNubFile,l=o.config,u=o.cryptography,c=o.networking;return function(e){var o=e.channel,d=e.file,h=e.message,p=e.cipherKey,f=e.meta,g=e.ttl,m=e.storeInHistory;return r(t,void 0,void 0,(function(){var e,t,r,b,v,y,w,C,x,A,S,k,T,_,E,O,P,M,N,I,D,U,L,R,B,j,H,F;return a(this,(function(a){switch(a.label){case 0:if(!o)throw new $("Validation failed, check status for details",z("channel can't be empty"));if(!d)throw new $("Validation failed, check status for details",z("file can't be empty"));return e=s.create(d),[4,i({channel:o,name:e.name})];case 1:return t=a.sent(),r=t.file_upload_request,b=r.url,v=r.form_fields,y=t.data,w=y.id,C=y.name,s.supportsEncryptFile&&(null!=p?p:l.cipherKey)?[4,u.encryptFile(null!=p?p:l.cipherKey,e,s)]:[3,3];case 2:e=a.sent(),a.label=3;case 3:x=v,e.mimeType&&(x=v.map((function(t){return"Content-Type"===t.key?{key:t.key,value:e.mimeType}:t}))),a.label=4;case 4:return a.trys.push([4,18,,22]),s.supportsFileUri&&d.uri?(k=(S=c).POSTFILE,T=[b,x],[4,e.toFileUri()]):[3,7];case 5:return[4,k.apply(S,T.concat([a.sent()]))];case 6:return A=a.sent(),[3,17];case 7:return s.supportsFile?(E=(_=c).POSTFILE,O=[b,x],[4,e.toFile()]):[3,10];case 8:return[4,E.apply(_,O.concat([a.sent()]))];case 9:return A=a.sent(),[3,17];case 10:return s.supportsBuffer?(M=(P=c).POSTFILE,N=[b,x],[4,e.toBuffer()]):[3,13];case 11:return[4,M.apply(P,N.concat([a.sent()]))];case 12:return A=a.sent(),[3,17];case 13:return s.supportsBlob?(D=(I=c).POSTFILE,U=[b,x],[4,e.toBlob()]):[3,16];case 14:return[4,D.apply(I,U.concat([a.sent()]))];case 15:return A=a.sent(),[3,17];case 16:throw new Error("Unsupported environment");case 17:return[3,22];case 18:return(L=a.sent()).response?[4,(Q=L.response,new Promise((function(e){var t="";Q.on("data",(function(e){t+=e.toString("utf8")})),Q.on("end",(function(){e(t)}))})))]:[3,20];case 19:throw R=a.sent(),B=/<Message>(.*)<\/Message>/gi.exec(R),new $(B?"Upload to bucket failed: ".concat(B[1]):"Upload to bucket failed.",L);case 20:throw new $("Upload to bucket failed.",L);case 21:return[3,22];case 22:if(204!==A.status)throw new $("Upload to bucket was unsuccessful",A);j=l.fileUploadPublishRetryLimit,H=!1,F={timetoken:"0"},a.label=23;case 23:return a.trys.push([23,25,,26]),[4,n({channel:o,message:h,fileId:w,fileName:C,meta:f,storeInHistory:m,ttl:g})];case 24:return F=a.sent(),H=!0,[3,26];case 25:return a.sent(),j-=1,[3,26];case 26:if(!H&&j>0)return[3,23];a.label=27;case 27:if(H)return[2,{timetoken:F.timetoken,id:w,name:C}];throw new $("Publish failed. You may want to execute that operation manually using pubnub.publishFile",{channel:o,id:w,name:C})}var Q}))}))}}(e);return function(e,i){var n=t(e);return"function"==typeof i?(n.then((function(e){return i(null,e)})).catch((function(e){return i(e,null)})),n):n}},be=function(e,t){var i=t.channel,n=t.id,o=t.name,r=e.config,a=e.networking,s=e.tokenManager;if(!i)throw new $("Validation failed, check status for details",z("channel can't be empty"));if(!n)throw new $("Validation failed, check status for details",z("file id can't be empty"));if(!o)throw new $("Validation failed, check status for details",z("file name can't be empty"));var l="/v1/files/".concat(r.subscribeKey,"/channels/").concat(P.encodeString(i),"/files/").concat(n,"/").concat(o),u={};u.uuid=r.getUUID(),u.pnsdk=G(r);var c=s.getToken()||r.getAuthKey();c&&(u.auth=c),r.secretKey&&W(e,l,u,{},{getOperation:function(){return"PubNubGetFileUrlOperation"}});var d=Object.keys(u).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(u[e]))})).join("&");return""!==d?"".concat(a.getStandardOrigin()).concat(l,"?").concat(d):"".concat(a.getStandardOrigin()).concat(l)},ve={getOperation:function(){return I.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 i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(P.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,i){var n=e.PubNubFile,o=e.config,s=e.cryptography;return r(void 0,void 0,void 0,(function(){var e,r,l,u;return a(this,(function(a){switch(a.label){case 0:return e=t.response.body,n.supportsEncryptFile&&(null!==(r=i.cipherKey)&&void 0!==r?r:o.cipherKey)?[4,s.decrypt(null!==(l=i.cipherKey)&&void 0!==l?l:o.cipherKey,e)]:[3,2];case 1:e=a.sent(),a.label=2;case 2:return[2,n.create({data:e,name:null!==(u=t.response.name)&&void 0!==u?u:i.name,mimeType:t.response.type})]}}))}))}},ye={getOperation:function(){return I.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 i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(P.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}}},we={getOperation:function(){return I.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 i,n,o,r,a,s,u,c,d,h={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(i=t.include)||void 0===i?void 0:i.customFields)&&h.include.push("custom"),h.include=h.include.join(","),(null===(n=null==t?void 0:t.include)||void 0===n?void 0:n.totalCount)&&(h.count=null===(o=t.include)||void 0===o?void 0:o.totalCount),(null===(r=null==t?void 0:t.page)||void 0===r?void 0:r.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!==(c=null==t?void 0:t.limit)&&void 0!==c?c:100,(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(d=t.sort)&&void 0!==d?d:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,next:t.next,prev:t.prev}}},Ce={getOperation:function(){return I.PNGetUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o=e.config,r={};return r.uuid=null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:o.getUUID(),r.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&r.include.pop(),r.include=r.include.join(","),r},handleResponse:function(e,t){return{status:t.status,data:t.data}}},xe={getOperation:function(){return I.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 i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=t.uuid)&&void 0!==i?i:n.getUUID()))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o=e.config,r={};return r.uuid=null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:o.getUUID(),r.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&r.include.pop(),r.include=r.include.join(","),r},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ae={getOperation:function(){return I.PNRemoveUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n=e.config;return{uuid:null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Se={getOperation:function(){return I.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 i,n,o,r,a,s,u,c,d,h={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(i=t.include)||void 0===i?void 0:i.customFields)&&h.include.push("custom"),h.include=h.include.join(","),(null===(n=null==t?void 0:t.include)||void 0===n?void 0:n.totalCount)&&(h.count=null===(o=t.include)||void 0===o?void 0:o.totalCount),(null===(r=null==t?void 0:t.page)||void 0===r?void 0:r.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!==(c=null==t?void 0:t.limit)&&void 0!==c?c:100,(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(d=t.sort)&&void 0!==d?d:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),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 I.PNGetChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.encodeString(t.channel))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&n.include.pop(),n.include=n.include.join(","),n},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Te={getOperation:function(){return I.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 i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.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 i,n={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&n.include.pop(),n.include=n.include.join(","),n},handleResponse:function(e,t){return{status:t.status,data:t.data}}},_e={getOperation:function(){return I.PNRemoveChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.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}}},Ee={getOperation:function(){return I.PNGetMembersOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"UUID cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.encodeString(t.channel),"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o,r,a,s,u,c,d,h,p,f,g={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&g.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customUUIDFields)&&g.include.push("uuid.custom"),(null===(r=null===(o=t.include)||void 0===o?void 0:o.UUIDFields)||void 0===r||r)&&g.include.push("uuid")),g.include=g.include.join(","),(null===(a=null==t?void 0:t.include)||void 0===a?void 0:a.totalCount)&&(g.count=null===(s=t.include)||void 0===s?void 0:s.totalCount),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.next)&&(g.start=null===(c=t.page)||void 0===c?void 0:c.next),(null===(d=null==t?void 0:t.page)||void 0===d?void 0:d.prev)&&(g.end=null===(h=t.page)||void 0===h?void 0:h.prev),(null==t?void 0:t.filter)&&(g.filter=t.filter),g.limit=null!==(p=null==t?void 0:t.limit)&&void 0!==p?p:100,(null==t?void 0:t.sort)&&(g.sort=Object.entries(null!==(f=t.sort)&&void 0!==f?f:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),g},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Oe={getOperation:function(){return I.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 i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.encodeString(t.channel),"/uuids")},patchPayload:function(e,t){var i;return(i={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}})),i},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o,r,a,s,u,c,d,h={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&h.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customUUIDFields)&&h.include.push("uuid.custom"),(null===(o=t.include)||void 0===o?void 0:o.UUIDFields)&&h.include.push("uuid")),h.include=h.include.join(","),(null===(r=null==t?void 0:t.include)||void 0===r?void 0:r.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===(c=t.page)||void 0===c?void 0:c.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!==(d=t.sort)&&void 0!==d?d:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Pe={getOperation:function(){return I.PNGetMembershipsOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()),"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o,r,a,s,u,c,d,h,p,f={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&f.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customChannelFields)&&f.include.push("channel.custom"),(null===(o=t.include)||void 0===o?void 0:o.channelFields)&&f.include.push("channel")),f.include=f.include.join(","),(null===(r=null==t?void 0:t.include)||void 0===r?void 0:r.totalCount)&&(f.count=null===(a=t.include)||void 0===a?void 0:a.totalCount),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.next)&&(f.start=null===(u=t.page)||void 0===u?void 0:u.next),(null===(c=null==t?void 0:t.page)||void 0===c?void 0:c.prev)&&(f.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(f.filter=t.filter),f.limit=null!==(h=null==t?void 0:t.limit)&&void 0!==h?h:100,(null==t?void 0:t.sort)&&(f.sort=Object.entries(null!==(p=t.sort)&&void 0!==p?p:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),f},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Me={getOperation:function(){return I.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 i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=t.uuid)&&void 0!==i?i:n.getUUID()),"/channels")},patchPayload:function(e,t){var i;return(i={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}})),i},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o,r,a,s,u,c,d,h={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&h.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customChannelFields)&&h.include.push("channel.custom"),(null===(o=t.include)||void 0===o?void 0:o.channelFields)&&h.include.push("channel")),h.include=h.include.join(","),(null===(r=null==t?void 0:t.include)||void 0===r?void 0:r.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===(c=t.page)||void 0===c?void 0:c.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!==(d=t.sort)&&void 0!==d?d:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ne=Object.freeze({__proto__:null,getOperation:function(){return I.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 i=t.channel,n=t.channelGroup,o=t.authKeys,r=void 0===o?[]:o,a={};return i&&(a.channel=i),n&&(a["channel-group"]=n),r.length>0&&(a.auth=r.join(",")),a},handleResponse:function(e,t){return t.payload}}),Ie=Object.freeze({__proto__:null,getOperation:function(){return I.PNAccessManagerGrant},validateParams:function(e,t){var i=e.config;return i.subscribeKey?i.publishKey?i.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 i=t.channels,n=void 0===i?[]:i,o=t.channelGroups,r=void 0===o?[]:o,a=t.uuids,s=void 0===a?[]:a,l=t.ttl,u=t.read,c=void 0!==u&&u,d=t.write,h=void 0!==d&&d,p=t.manage,f=void 0!==p&&p,g=t.get,m=void 0!==g&&g,b=t.join,v=void 0!==b&&b,y=t.update,w=void 0!==y&&y,C=t.authKeys,x=void 0===C?[]:C,A=t.delete,S={};return S.r=c?"1":"0",S.w=h?"1":"0",S.m=f?"1":"0",S.d=A?"1":"0",S.g=m?"1":"0",S.j=v?"1":"0",S.u=w?"1":"0",n.length>0&&(S.channel=n.join(",")),r.length>0&&(S["channel-group"]=r.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 De(e){var t,i,n,o,r=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===(i=null==e?void 0:e.resources)||void 0===i?void 0:i.spaces),l=void 0!==(null===(n=null==e?void 0:e.patterns)||void 0===n?void 0:n.users),u=void 0!==(null===(o=null==e?void 0:e.patterns)||void 0===o?void 0:o.spaces);return l||a||u||s||r}function Ue(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}var Le=Object.freeze({__proto__:null,getOperation:function(){return I.PNAccessManagerGrantToken},extractPermissions:Ue,validateParams:function(e,t){var i,n,o,r,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),c=void 0!==(null===(i=null==t?void 0:t.resources)||void 0===i?void 0:i.uuids),d=void 0!==(null===(n=null==t?void 0:t.resources)||void 0===n?void 0:n.channels),h=void 0!==(null===(o=null==t?void 0:t.resources)||void 0===o?void 0:o.groups),p=void 0!==(null===(r=null==t?void 0:t.patterns)||void 0===r?void 0:r.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||c||p||d||f||h||g;return De(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 function(e,t){if(De(t))return function(e,t){var i=t.ttl,n=t.resources,o=t.patterns,r=t.meta,a=t.authorizedUserId,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(n){var l=n.users,u=n.spaces,c=n.groups;l&&Object.keys(l).forEach((function(e){s.permissions.resources.uuids[e]=Ue(l[e])})),u&&Object.keys(u).forEach((function(e){s.permissions.resources.channels[e]=Ue(u[e])})),c&&Object.keys(c).forEach((function(e){s.permissions.resources.groups[e]=Ue(c[e])}))}if(o){var d=o.users,h=o.spaces,p=o.groups;d&&Object.keys(d).forEach((function(e){s.permissions.patterns.uuids[e]=Ue(d[e])})),h&&Object.keys(h).forEach((function(e){s.permissions.patterns.channels[e]=Ue(h[e])})),p&&Object.keys(p).forEach((function(e){s.permissions.patterns.groups[e]=Ue(p[e])}))}return(i||0===i)&&(s.ttl=i),r&&(s.permissions.meta=r),a&&(s.permissions.uuid="".concat(a)),s}(0,t);var i=t.ttl,n=t.resources,o=t.patterns,r=t.meta,a=t.authorized_uuid,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(n){var l=n.uuids,u=n.channels,c=n.groups;l&&Object.keys(l).forEach((function(e){s.permissions.resources.uuids[e]=Ue(l[e])})),u&&Object.keys(u).forEach((function(e){s.permissions.resources.channels[e]=Ue(u[e])})),c&&Object.keys(c).forEach((function(e){s.permissions.resources.groups[e]=Ue(c[e])}))}if(o){var d=o.uuids,h=o.channels,p=o.groups;d&&Object.keys(d).forEach((function(e){s.permissions.patterns.uuids[e]=Ue(d[e])})),h&&Object.keys(h).forEach((function(e){s.permissions.patterns.channels[e]=Ue(h[e])})),p&&Object.keys(p).forEach((function(e){s.permissions.patterns.groups[e]=Ue(p[e])}))}return(i||0===i)&&(s.ttl=i),r&&(s.permissions.meta=r),a&&(s.permissions.uuid="".concat(a)),s}(0,t)},handleResponse:function(e,t){return t.data.token}}),Re={getOperation:function(){return I.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 i=e.config;return"/v3/pam/".concat(i.subscribeKey,"/grant/").concat(P.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 Be(e,t){var i=e.crypto,n=e.config,o=JSON.stringify(t);return n.cipherKey&&(o=i.encrypt(o),o=JSON.stringify(o)),o}var je=Object.freeze({__proto__:null,getOperation:function(){return I.PNPublishOperation},validateParams:function(e,t){var i=e.config,n=t.message;return t.channel?n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},usePost:function(e,t){var i=t.sendByPost;return void 0!==i&&i},getURL:function(e,t){var i=e.config,n=t.channel,o=Be(e,t.message);return"/publish/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(P.encodeString(n),"/0/").concat(P.encodeString(o))},postURL:function(e,t){var i=e.config,n=t.channel;return"/publish/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(P.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},postPayload:function(e,t){return Be(e,t.message)},prepareParams:function(e,t){var i=t.meta,n=t.replicate,o=void 0===n||n,r=t.storeInHistory,a=t.ttl,s={};return null!=r&&(s.store=r?"1":"0"),a&&(s.ttl=a),!1===o&&(s.norep="true"),i&&"object"==typeof i&&(s.meta=JSON.stringify(i)),s},handleResponse:function(e,t){return{timetoken:t[2]}}}),He=Object.freeze({__proto__:null,getOperation:function(){return I.PNSignalOperation},validateParams:function(e,t){var i=e.config,n=t.message;return t.channel?n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},getURL:function(e,t){var i,n=e.config,o=t.channel,r=(i=t.message,JSON.stringify(i));return"/signal/".concat(n.publishKey,"/").concat(n.subscribeKey,"/0/").concat(P.encodeString(o),"/0/").concat(P.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{timetoken:t[2]}}});function Fe(e,t){var i=e.config,n=e.crypto;if(!i.cipherKey)return t;try{return n.decrypt(t)}catch(e){return t}}var $e=Object.freeze({__proto__:null,getOperation:function(){return I.PNHistoryOperation},validateParams:function(e,t){var i=t.channel,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var i=t.channel,n=e.config;return"/v2/history/sub-key/".concat(n.subscribeKey,"/channel/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.start,n=t.end,o=t.reverse,r=t.count,a=void 0===r?100:r,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,c=void 0!==u&&u,d={include_token:"true"};return d.count=a,i&&(d.start=i),n&&(d.end=n),l&&(d.string_message_token="true"),null!=o&&(d.reverse=o.toString()),c&&(d.include_meta="true"),d},handleResponse:function(e,t){var i={messages:[],startTimeToken:t[1],endTimeToken:t[2]};return Array.isArray(t[0])&&t[0].forEach((function(t){var n={timetoken:t.timetoken,entry:Fe(e,t.message)};t.meta&&(n.meta=t.meta),i.messages.push(n)})),i}}),ze=Object.freeze({__proto__:null,getOperation:function(){return I.PNDeleteMessagesOperation},validateParams:function(e,t){var i=t.channel,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},useDelete:function(){return!0},getURL:function(e,t){var i=t.channel,n=e.config;return"/v3/history/sub-key/".concat(n.subscribeKey,"/channel/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.start,n=t.end,o={};return i&&(o.start=i),n&&(o.end=n),o},handleResponse:function(e,t){return t.payload}}),Qe=Object.freeze({__proto__:null,getOperation:function(){return I.PNMessageCounts},validateParams:function(e,t){var i=t.channels,n=t.timetoken,o=t.channelTimetokens,r=e.config;return i?n&&o?"timetoken and channelTimetokens are incompatible together":n&&o&&o.length>1&&i.length!==o.length?"Length of channelTimetokens and channels do not match":r.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var i=t.channels,n=e.config,o=i.join(",");return"/v3/history/sub-key/".concat(n.subscribeKey,"/message-counts/").concat(P.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.timetoken,n=t.channelTimetokens,o={};if(n&&1===n.length){var r=l(n,1)[0];o.timetoken=r}else n?o.channelsTimetoken=n.join(","):i&&(o.timetoken=i);return o},handleResponse:function(e,t){return{channels:t.channels}}}),Ge=Object.freeze({__proto__:null,getOperation:function(){return I.PNFetchMessagesOperation},validateParams:function(e,t){var i=t.channels,n=t.includeMessageActions,o=void 0!==n&&n,r=e.config;if(!i||0===i.length)return"Missing channels";if(!r.subscribeKey)return"Missing Subscribe Key";if(o&&i.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 i=t.channels,n=void 0===i?[]:i,o=t.includeMessageActions,r=void 0!==o&&o,a=e.config,s=r?"history-with-actions":"history",l=n.length>0?n.join(","):",";return"/v3/".concat(s,"/sub-key/").concat(a.subscribeKey,"/channel/").concat(P.encodeString(l))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels,n=t.start,o=t.end,r=t.includeMessageActions,a=t.count,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,c=void 0!==u&&u,d=t.includeUuid,h=t.includeUUID,p=void 0===h||h,f=t.includeMessageType,g=void 0===f||f,m={};return m.max=a||(i.length>1||!0===r?25:100),n&&(m.start=n),o&&(m.end=o),l&&(m.string_message_token="true"),c&&(m.include_meta="true"),p&&!1!==d&&(m.include_uuid="true"),g&&(m.include_message_type="true"),m},handleResponse:function(e,t){var i={channels:{}};return Object.keys(t.channels||{}).forEach((function(n){i.channels[n]=[],(t.channels[n]||[]).forEach((function(t){var o={};o.channel=n,o.timetoken=t.timetoken,o.message=function(e,t){var i=e.config,n=e.crypto;if(!i.cipherKey)return t;try{return n.decrypt(t)}catch(e){return t}}(e,t.message),o.messageType=t.message_type,o.uuid=t.uuid,t.actions&&(o.actions=t.actions,o.data=t.actions),t.meta&&(o.meta=t.meta),i.channels[n].push(o)}))})),t.more&&(i.more=t.more),i}}),qe=Object.freeze({__proto__:null,getOperation:function(){return I.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(){}}),We=Object.freeze({__proto__:null,getOperation:function(){return I.PNSubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,o=void 0===n?[]:n,r=o.length>0?o.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(P.encodeString(r),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=e.config,n=t.state,o=t.channelGroups,r=void 0===o?[]:o,a=t.timetoken,s=t.filterExpression,l=t.region,u={heartbeat:i.getPresenceTimeout()};return r.length>0&&(u["channel-group"]=r.join(",")),s&&s.length>0&&(u["filter-expr"]=s),Object.keys(n).length&&(u.state=JSON.stringify(n)),a&&(u.tt=a),l&&(u.tr=l),u},handleResponse:function(e,t){var i=[];t.m.forEach((function(e){var t={publishTimetoken:e.p.t,region:e.p.r},n={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};i.push(n)}));var n={timetoken:t.t.t,region:t.t.r};return{messages:i,metadata:n}}}),Ve={getOperation:function(){return I.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 i=e.config,n=t.channels?t.channels.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(P.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.channelGroups&&t.channelGroups.length>0&&(i["channel-group"]=t.channelGroups.join(",")),i.tt=0,i},handleResponse:function(e,t){return{region:t.t.r,timetoken:t.t.t}}},Ye={getOperation:function(){return I.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 i=e.config,n=t.channels?t.channels.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(P.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},getAbortSignal:function(e,t){return t.abortSignal},prepareParams:function(e,t){var i={};return t.channelGroups&&t.channelGroups.length>0&&(i["channel-group"]=t.channelGroups.join(",")),i.tt=t.timetoken,i.tr=t.region,i},handleResponse:function(e,t){var i=[];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,publishMetaData:{timetoken:e.p.t,region:e.p.r}};i.push(t)})),{messages:i,metadata:{region:t.t.r,timetoken:t.t.t}}}},Ke=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,i=function(){t.listeners.forEach((function(t){t(e)}))};this.sync?i():setTimeout(i,0)},e}(),Xe=function(){function e(e){this.label=e,this.transitionMap=new Map,this.enterEffects=[],this.exitEffects=[]}return e.prototype.transition=function(e,t){var i;if(this.transitionMap.has(t.type))return null===(i=this.transitionMap.get(t.type))||void 0===i?void 0:i(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}(),Ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),i.prototype.describe=function(e){return new Xe(e)},i.prototype.start=function(e,t){this.currentState=e,this.currentContext=t,this.notify({type:"engineStarted",state:e,context:t})},i.prototype.transition=function(e){var t,i,n,o,r,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 c=l(u,3),d=c[0],h=c[1],p=c[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&&(i=f.return)&&i.call(f)}finally{if(t)throw t.error}}var b=this.currentState;this.currentState=d;var v=this.currentContext;this.currentContext=h,this.notify({type:"transitionDone",fromState:b,fromContext:v,toState:d,toContext:h,event:e});try{for(var y=s(p),w=y.next();!w.done;w=y.next())m=w.value,this.notify({type:"invocationDispatched",invocation:m})}catch(e){n={error:e}}finally{try{w&&!w.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.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){r={error:e}}finally{try{x&&!x.done&&(a=C.return)&&a.call(C)}finally{if(r)throw r.error}}}},i}(Ke),Je=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 i=t(e.payload,this.dependencies);e.managed&&this.instances.set(e.type,i),i.start()}else if(this.instances.has(e.payload)){var n=this.instances.get(e.payload);null==n||n.cancel(),this.instances.delete(e.payload)}},e}();function et(e,t){var i=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return{type:e,payload:null==t?void 0:t.apply(void 0,u([],l(i),!1))}};return i.type=e,i}function tt(e,t){var i=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return{type:e,payload:t.apply(void 0,u([],l(i),!1)),managed:!0}};return i.type=e,i.cancel={type:"CANCEL",payload:e,managed:!1},i}var it,nt,ot,rt=function(e){function i(){var t=this.constructor,i=e.call(this,"The operation was aborted.")||this;return i.name="AbortError",Object.setPrototypeOf(i,t.prototype),i}return t(i,e),i}(Error),at=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t._aborted=!1,t}return t(i,e),Object.defineProperty(i.prototype,"aborted",{get:function(){return this._aborted},enumerable:!1,configurable:!0}),i.prototype.throwIfAborted=function(){if(this._aborted)throw new rt},i.prototype.abort=function(){this._aborted=!0,this.notify(new rt)},i}(Ke),st=function(e){function i(t,i,n){var o=e.call(this,t,i)||this;return o.asyncFunction=n,o.abortSignal=new at,o}return t(i,e),i.prototype.start=function(){this.asyncFunction(this.payload,this.abortSignal,this.dependencies)},i.prototype.cancel=function(){this.abortSignal.abort()},i}((function(e,t){this.payload=e,this.dependencies=t})),lt=function(e){return function(t,i){return new st(t,i,e)}},ut=tt("HANDSHAKE",(function(e,t){return{channels:e,groups:t}})),ct=tt("RECEIVE_EVENTS",(function(e,t,i){return{channels:e,groups:t,cursor:i}})),dt=(nt=function(e){return e},ot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{type:it,payload:nt.apply(void 0,u([],l(e),!1)),managed:!1}},ot.type=it="EMIT_EVENTS",ot),ht=tt("RECONNECT",(function(e){return e})),pt=tt("HANDSHAKE_RECONNECT",(function(e){return e})),ft=et("SUBSCRIPTION_CHANGE",(function(e,t){return{channels:e,groups:t}})),gt=et("DISCONNECT",(function(){return{}})),mt=et("RECONNECT",(function(){return{}}));et("RESTORE",(function(e,t,i,n){return{channels:e,groups:t,timetoken:i,region:n}}));var bt=et("HANDSHAKING_SUCCESS",(function(e){return e})),vt=et("HANDSHAKING_FAILURE",(function(e){return e})),yt=et("HANDSHAKING_RECONNECTING_SUCCESS",(function(e){return{cursor:e}})),wt=et("HANDSHAKING_RECONNECTING_FAILURE",(function(e){return e})),Ct=et("HANDSHAKING_RECONNECTING_GIVEUP",(function(){return{}})),xt=et("HANDSHAKING_RECONNECTING_RETRY",(function(){return{}})),At=et("RECEIVING_SUCCESS",(function(e,t){return{cursor:e,events:t}})),St=et("RECEIVING_FAILURE",(function(e){return e})),kt=et("RECONNECTING_SUCCESS",(function(e,t){return{cursor:e,events:t}})),Tt=et("RECONNECTING_FAILURE",(function(e){return e})),_t=et("RECONNECTING_GIVEUP",(function(){return{}})),Et=et("RECONNECTING_RETRY",(function(){return{}})),Ot=function(e){function i(t,i){var n=e.call(this,i)||this;return n.on(ut.type,lt((function(e,i,o){var s=o.handshake;return r(n,void 0,void 0,(function(){var n,o;return a(this,(function(r){switch(r.label){case 0:i.throwIfAborted(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups})];case 2:return n=r.sent(),t.transition(bt(n)),[3,4];case 3:return(o=r.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof $?[2,t.transition(vt(o))]:[3,4];case 4:return[2]}}))}))}))),n.on(ct.type,lt((function(e,i,o){var s=o.receiveEvents;return r(n,void 0,void 0,(function(){var n,o;return a(this,(function(r){switch(r.label){case 0:i.throwIfAborted(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region})];case 2:return n=r.sent(),t.transition(At(n.metadata,n.messages)),[3,4];case 3:return(o=r.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof $?[2,t.transition(St(o))]:[3,4];case 4:return[2]}}))}))}))),n.on(dt.type,lt((function(e,t,i){return i.receiveEvents,r(n,void 0,void 0,(function(){return a(this,(function(t){return e.length>0&&console.log(e),[2]}))}))}))),n.on(ht.type,lt((function(e,i,o){var s=o.receiveEvents,l=o.shouldRetry,u=o.getRetryDelay,c=o.delay;return r(n,void 0,void 0,(function(){var n,o;return a(this,(function(r){switch(r.label){case 0:return l(e.reason,e.attempts)?(i.throwIfAborted(),[4,c(u(e.attempts))]):[2,t.transition(_t())];case 1:r.sent(),i.throwIfAborted(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region})];case 3:return n=r.sent(),[2,t.transition(kt(n.metadata,n.messages))];case 4:return(o=r.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof $?[2,t.transition(Tt(o))]:[3,5];case 5:return[2]}}))}))}))),n.on(pt.type,lt((function(e,i,o){var s=o.handshake,l=o.shouldRetry,u=o.getRetryDelay,c=o.delay;return r(n,void 0,void 0,(function(){var n,o;return a(this,(function(r){switch(r.label){case 0:return l(e.reason,e.attempts)?(i.throwIfAborted(),[4,c(u(e.attempts))]):[2,t.transition(Ct())];case 1:r.sent(),i.throwIfAborted(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups})];case 3:return n=r.sent(),[2,t.transition(yt(n.metadata))];case 4:return(o=r.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof $?[2,t.transition(wt(o))]:[3,5];case 5:return[2]}}))}))}))),n}return t(i,e),i}(Je),Pt=new Xe("STOPPED");Pt.on(ft.type,(function(e,t){return Pt.with({channels:t.payload.channels,groups:t.payload.groups})})),Pt.on(mt.type,(function(e){return Rt.with(n({},e))}));var Mt=new Xe("HANDSHAKE_FAILURE");Mt.on(xt.type,(function(e){return Lt.with(n(n({},e),{attempts:0}))})),Mt.on(gt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups})}));var Nt=new Xe("STOPPED");Nt.on(ft.type,(function(e,t){return Nt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})})),Nt.on(mt.type,(function(e){return Ut.with(n({},e))}));var It=new Xe("RECEIVE_FAILURE");It.on(Et.type,(function(e){return Dt.with(n(n({},e),{attempts:0}))})),It.on(gt.type,(function(e){return Nt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Dt=new Xe("RECEIVE_RECONNECTING");Dt.onEnter((function(e){return ht(e)})),Dt.onExit((function(){return ht.cancel})),Dt.on(kt.type,(function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[dt(t.payload.events)])})),Dt.on(Tt.type,(function(e,t){return Dt.with(n(n({},e),{attempts:e.attempts+1,reason:t.payload}))})),Dt.on(_t.type,(function(e){return It.with({groups:e.groups,channels:e.channels,cursor:e.cursor,reason:e.reason})})),Dt.on(gt.type,(function(e){return Nt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Ut=new Xe("RECEIVING");Ut.onEnter((function(e){return ct(e.channels,e.groups,e.cursor)})),Ut.onExit((function(){return ct.cancel})),Ut.on(At.type,(function(e,t){return Ut.with(n(n({},e),{cursor:t.payload.cursor}),[dt(t.payload.events)])})),Ut.on(ft.type,(function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?Bt.with(void 0):Ut.with(n(n({},e),{channels:t.payload.channels,groups:t.payload.groups}))})),Ut.on(St.type,(function(e,t){return Dt.with(n(n({},e),{attempts:0,reason:t.payload}))})),Ut.on(gt.type,(function(e){return Nt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Lt=new Xe("HANDSHAKE_RECONNECTING");Lt.onEnter((function(e){return pt(e)})),Lt.onExit((function(){return ht.cancel})),Lt.on(kt.type,(function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[dt(t.payload.events)])})),Lt.on(Tt.type,(function(e,t){return Lt.with(n(n({},e),{attempts:e.attempts+1,reason:t.payload}))})),Lt.on(_t.type,(function(e){return Mt.with({groups:e.groups,channels:e.channels,reason:e.reason})})),Lt.on(gt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups})}));var Rt=new Xe("HANDSHAKING");Rt.onEnter((function(e){return ut(e.channels,e.groups)})),Rt.onExit((function(){return ut.cancel})),Rt.on(ft.type,(function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?Bt.with(void 0):Rt.with({channels:t.payload.channels,groups:t.payload.groups})})),Rt.on(bt.type,(function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload})})),Rt.on(vt.type,(function(e,t){return Lt.with(n(n({},e),{attempts:0,reason:t.payload}))})),Rt.on(gt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups})}));var Bt=new Xe("UNSUBSCRIBED");Bt.on(ft.type,(function(e,t){return Rt.with({channels:t.payload.channels,groups:t.payload.groups})}));var jt=function(){function e(e){var t=this;this.engine=new Ze,this.channels=[],this.groups=[],this.dispatcher=new Ot(this.engine,e),this.engine.subscribe((function(e){"invocationDispatched"===e.type&&t.dispatcher.dispatch(e.invocation)})),this.engine.start(Bt,void 0)}return Object.defineProperty(e.prototype,"_engine",{get:function(){return this.engine},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e){var t=e.channels,i=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!=i?i:[]),!1),this.engine.transition(ft(this.channels,this.groups))},e.prototype.unsubscribe=function(e){var t=e.channels,i=e.groups;this.channels=this.channels.filter((function(e){var i;return null===(i=!(null==t?void 0:t.includes(e)))||void 0===i||i})),this.groups=this.groups.filter((function(e){var t;return null===(t=!(null==i?void 0:i.includes(e)))||void 0===t||t})),this.engine.transition(ft(this.channels.slice(0),this.groups.slice(0)))},e.prototype.unsubscribeAll=function(){this.channels=[],this.groups=[],this.engine.transition(ft(this.channels.slice(0),this.groups.slice(0)))},e.prototype.reconnect=function(){this.engine.transition(mt())},e.prototype.disconnect=function(){this.engine.transition(gt())},e}(),Ht=function(){function e(e){var t=this,i=e.networking,o=e.cbor,r=new m({setup:e});this._config=r;var a=new T({config:r}),s=e.cryptography;i.init(r);var c=new F(r,o);this._tokenManager=c;var d=new D({maximumSamplesCount:6e4});this._telemetryManager=d;var h={config:r,networking:i,crypto:a,cryptography:s,tokenManager:c,telemetryManager:d,PubNubFile:e.PubNubFile};this.File=e.PubNubFile,this.encryptFile=function(e,i){return s.encryptFile(e,i,t.File)},this.decryptFile=function(e,i){return s.decryptFile(e,i,t.File)};var p=V.bind(this,h,qe),f=V.bind(this,h,oe),g=V.bind(this,h,ae),b=V.bind(this,h,le),v=V.bind(this,h,We),y=new H;if(this._listenerManager=y,this.iAmHere=V.bind(this,h,ae),this.iAmAway=V.bind(this,h,oe),this.setPresenceState=V.bind(this,h,le),this.handshake=V.bind(this,h,Ve),this.receiveMessages=V.bind(this,h,Ye),!0===r.enableSubscribeBeta){var w=new jt({handshake:this.handshake,receiveEvents:this.receiveMessages});this.subscribe=w.subscribe.bind(w),this.unsubscribe=w.unsubscribe.bind(w),this.eventEngine=w}else{var C=new N({timeEndpoint:p,leaveEndpoint:f,heartbeatEndpoint:g,setStateEndpoint:b,subscribeEndpoint:v,crypto:h.crypto,config:h.config,listenerManager:y,getFileUrl:function(e){return be(h,e)}});this.subscribe=C.adaptSubscribeChange.bind(C),this.unsubscribe=C.adaptUnsubscribeChange.bind(C),this.disconnect=C.disconnect.bind(C),this.reconnect=C.reconnect.bind(C),this.unsubscribeAll=C.unsubscribeAll.bind(C),this.getSubscribedChannels=C.getSubscribedChannels.bind(C),this.getSubscribedChannelGroups=C.getSubscribedChannelGroups.bind(C),this.setState=C.adaptStateChange.bind(C),this.presence=C.adaptPresenceChange.bind(C),this.destroy=function(e){C.unsubscribeAll(e),C.disconnect()}}this.addListener=y.addListener.bind(y),this.removeListener=y.removeListener.bind(y),this.removeAllListeners=y.removeAllListeners.bind(y),this.parseToken=c.parseToken.bind(c),this.setToken=c.setToken.bind(c),this.getToken=c.getToken.bind(c),this.channelGroups={listGroups:V.bind(this,h,Z),listChannels:V.bind(this,h,J),addChannels:V.bind(this,h,Y),removeChannels:V.bind(this,h,K),deleteGroup:V.bind(this,h,X)},this.push={addChannels:V.bind(this,h,ee),removeChannels:V.bind(this,h,te),deleteDevice:V.bind(this,h,ne),listChannels:V.bind(this,h,ie)},this.hereNow=V.bind(this,h,ue),this.whereNow=V.bind(this,h,re),this.getState=V.bind(this,h,se),this.grant=V.bind(this,h,Ie),this.grantToken=V.bind(this,h,Le),this.audit=V.bind(this,h,Ne),this.revokeToken=V.bind(this,h,Re),this.publish=V.bind(this,h,je),this.fire=function(e,i){return e.replicate=!1,e.storeInHistory=!1,t.publish(e,i)},this.signal=V.bind(this,h,He),this.history=V.bind(this,h,$e),this.deleteMessages=V.bind(this,h,ze),this.messageCounts=V.bind(this,h,Qe),this.fetchMessages=V.bind(this,h,Ge),this.addMessageAction=V.bind(this,h,ce),this.removeMessageAction=V.bind(this,h,de),this.getMessageActions=V.bind(this,h,he),this.listFiles=V.bind(this,h,pe);var x=V.bind(this,h,fe);this.publishFile=V.bind(this,h,ge),this.sendFile=me({generateUploadUrl:x,publishFile:this.publishFile,modules:h}),this.getFileUrl=function(e){return be(h,e)},this.downloadFile=V.bind(this,h,ve),this.deleteFile=V.bind(this,h,ye),this.objects={getAllUUIDMetadata:V.bind(this,h,we),getUUIDMetadata:V.bind(this,h,Ce),setUUIDMetadata:V.bind(this,h,xe),removeUUIDMetadata:V.bind(this,h,Ae),getAllChannelMetadata:V.bind(this,h,Se),getChannelMetadata:V.bind(this,h,ke),setChannelMetadata:V.bind(this,h,Te),removeChannelMetadata:V.bind(this,h,_e),getChannelMembers:V.bind(this,h,Ee),setChannelMembers:function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return V.call.apply(V,u([t,h,Oe,n({type:"set"},e)],l(i),!1))},removeChannelMembers:function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return V.call.apply(V,u([t,h,Oe,n({type:"delete"},e)],l(i),!1))},getMemberships:V.bind(this,h,Pe),setMemberships:function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return V.call.apply(V,u([t,h,Me,n({type:"set"},e)],l(i),!1))},removeMemberships:function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return V.call.apply(V,u([t,h,Me,n({type:"delete"},e)],l(i),!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 i,n;return"string"==typeof e.spaceId?t.objects.setChannelMembers({channel:e.spaceId,uuids:null===(i=e.users)||void 0===i?void 0:i.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===(n=e.spaces)||void 0===n?void 0:n.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,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map((function(e){var t=l(e,2),i=t[0],n=t[1];return[i.replace("user","uuid"),n]}))):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,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map((function(e){var t=l(e,2),i=t[0],n=t[1];return[i.replace("space","channel"),n]}))):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=p,this.stop=this.destroy,this.encrypt=a.encrypt.bind(a),this.decrypt=a.decrypt.bind(a),this.getAuthKey=h.config.getAuthKey.bind(h.config),this.setAuthKey=h.config.setAuthKey.bind(h.config),this.setCipherKey=h.config.setCipherKey.bind(h.config),this.getUUID=h.config.getUUID.bind(h.config),this.setUUID=h.config.setUUID.bind(h.config),this.getFilterExpression=h.config.getFilterExpression.bind(h.config),this.setFilterExpression=h.config.setFilterExpression.bind(h.config),this.setHeartbeatInterval=h.config.setHeartbeatInterval.bind(h.config),i.hasModule("proxy")&&(this.setProxy=function(e){h.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 j(e,t)},e.generateUUID=function(){return g()},e.OPERATIONS=I,e.CATEGORIES=M,e}(),Ft=function(){function e(e){var t=this;this._modules={},Object.keys(e).forEach((function(i){t._modules[i]=e[i].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,i){return this._modules.postfile(e,t,i)},e.prototype.GETFILE=function(e,t,i){return this._modules.getfile(e,t,i)},e.prototype.POST=function(e,t,i,n){return this._modules.post(e,t,i,n)},e.prototype.PATCH=function(e,t,i,n){return this._modules.patch(e,t,i,n)},e.prototype.GET=function(e,t,i){return this._modules.get(e,t,i)},e.prototype.DELETE=function(e,t,i){return this._modules.del(e,t,i)},e.prototype._detectErrorCategory=function(e){if("ENOTFOUND"===e.code)return M.PNNetworkIssuesCategory;if("ECONNREFUSED"===e.code)return M.PNNetworkIssuesCategory;if("ECONNRESET"===e.code)return M.PNNetworkIssuesCategory;if("EAI_AGAIN"===e.code)return M.PNNetworkIssuesCategory;if(0===e.status||e.hasOwnProperty("status")&&void 0===e.status)return M.PNNetworkIssuesCategory;if(e.timeout)return M.PNTimeoutCategory;if("ETIMEDOUT"===e.code)return M.PNNetworkIssuesCategory;if(e.response){if(e.response.badRequest)return M.PNBadRequestCategory;if(e.response.forbidden)return M.PNAccessDeniedCategory}return M.PNUnknownCategory},e}();function $t(e){var t=function(e){return e&&"object"==typeof e&&e.constructor===Object};if(!t(e))return e;var i={};return Object.keys(e).forEach((function(n){var o=function(e){return"string"==typeof e||e instanceof String}(n),r=n,a=e[n];Array.isArray(n)||o&&n.indexOf(",")>=0?r=(o?n.split(","):n).reduce((function(e,t){return e+String.fromCharCode(t)}),""):(function(e){return"number"==typeof e&&isFinite(e)}(n)||o&&!isNaN(n))&&(r=String.fromCharCode(o?parseInt(n,10):10)),i[r]=t(a)?$t(a):a})),i}var zt=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 i=e.replace(/-/gi,"+").replace(/_/gi,"/")+t,n=this._decode(this._base64ToBinary(i));if("object"==typeof n)return n},e}(),Qt={exports:{}},Gt={exports:{}};!function(e){function t(e){if(e)return function(e){for(var i in t.prototype)e[i]=t.prototype[i];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 i(){this.off(e,i),t.apply(this,arguments)}return i.fn=t,this.on(e,i),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 i,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<n.length;o++)if((i=n[o])===t||i.fn===t){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),i=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].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}}(Gt);var qt=Zt;Zt.default=Zt,Zt.stable=ii,Zt.stableStringify=ii;var Wt="[...]",Vt="[Circular]",Yt=[],Kt=[];function Xt(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Zt(e,t,i,n){var o;void 0===n&&(n=Xt()),ei(e,"",0,[],void 0,0,n);try{o=0===Kt.length?JSON.stringify(e,t,i):JSON.stringify(e,oi(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==Yt.length;){var r=Yt.pop();4===r.length?Object.defineProperty(r[0],r[1],r[3]):r[0][r[1]]=r[2]}}return o}function Jt(e,t,i,n){var o=Object.getOwnPropertyDescriptor(n,i);void 0!==o.get?o.configurable?(Object.defineProperty(n,i,{value:e}),Yt.push([n,i,t,o])):Kt.push([t,i,e]):(n[i]=e,Yt.push([n,i,t]))}function ei(e,t,i,n,o,r,a){var s;if(r+=1,"object"==typeof e&&null!==e){for(s=0;s<n.length;s++)if(n[s]===e)return void Jt(Vt,e,t,o);if(void 0!==a.depthLimit&&r>a.depthLimit)return void Jt(Wt,e,t,o);if(void 0!==a.edgesLimit&&i+1>a.edgesLimit)return void Jt(Wt,e,t,o);if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ei(e[s],s,s,n,e,r,a);else{var l=Object.keys(e);for(s=0;s<l.length;s++){var u=l[s];ei(e[u],u,s,n,e,r,a)}}n.pop()}}function ti(e,t){return e<t?-1:e>t?1:0}function ii(e,t,i,n){void 0===n&&(n=Xt());var o,r=ni(e,"",0,[],void 0,0,n)||e;try{o=0===Kt.length?JSON.stringify(r,t,i):JSON.stringify(r,oi(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==Yt.length;){var a=Yt.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return o}function ni(e,t,i,n,o,r,a){var s;if(r+=1,"object"==typeof e&&null!==e){for(s=0;s<n.length;s++)if(n[s]===e)return void Jt(Vt,e,t,o);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==a.depthLimit&&r>a.depthLimit)return void Jt(Wt,e,t,o);if(void 0!==a.edgesLimit&&i+1>a.edgesLimit)return void Jt(Wt,e,t,o);if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ni(e[s],s,s,n,e,r,a);else{var l={},u=Object.keys(e).sort(ti);for(s=0;s<u.length;s++){var c=u[s];ni(e[c],c,s,n,e,r,a),l[c]=e[c]}if(void 0===o)return l;Yt.push([o,t,e]),o[t]=l}n.pop()}}function oi(e){return e=void 0!==e?e:function(e,t){return t},function(t,i){if(Kt.length>0)for(var n=0;n<Kt.length;n++){var o=Kt[n];if(o[1]===t&&o[0]===i){i=o[2],Kt.splice(n,1);break}}return e.call(this,t,i)}}var ri=String.prototype.replace,ai=/%20/g,si="RFC3986",li={default:si,formatters:{RFC1738:function(e){return ri.call(e,ai,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:si},ui=li,ci=Object.prototype.hasOwnProperty,di=Array.isArray,hi=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),pi=function(e,t){for(var i=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(i[n]=e[n]);return i},fi={arrayToObject:pi,assign:function(e,t){return Object.keys(t).reduce((function(e,i){return e[i]=t[i],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n<t.length;++n)for(var o=t[n],r=o.obj[o.prop],a=Object.keys(r),s=0;s<a.length;++s){var l=a[s],u=r[l];"object"==typeof u&&null!==u&&-1===i.indexOf(u)&&(t.push({obj:r,prop:l}),i.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(di(i)){for(var n=[],o=0;o<i.length;++o)void 0!==i[o]&&n.push(i[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,i){var n=e.replace(/\+/g," ");if("iso-8859-1"===i)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,i,n,o){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===i)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<r.length;++s){var l=r.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===ui.RFC1738&&(40===l||41===l)?a+=r.charAt(s):l<128?a+=hi[l]:l<2048?a+=hi[192|l>>6]+hi[128|63&l]:l<55296||l>=57344?a+=hi[224|l>>12]+hi[128|l>>6&63]+hi[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&r.charCodeAt(s)),a+=hi[240|l>>18]+hi[128|l>>12&63]+hi[128|l>>6&63]+hi[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(di(e)){for(var i=[],n=0;n<e.length;n+=1)i.push(t(e[n]));return i}return t(e)},merge:function e(t,i,n){if(!i)return t;if("object"!=typeof i){if(di(t))t.push(i);else{if(!t||"object"!=typeof t)return[t,i];(n&&(n.plainObjects||n.allowPrototypes)||!ci.call(Object.prototype,i))&&(t[i]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(i);var o=t;return di(t)&&!di(i)&&(o=pi(t,n)),di(t)&&di(i)?(i.forEach((function(i,o){if(ci.call(t,o)){var r=t[o];r&&"object"==typeof r&&i&&"object"==typeof i?t[o]=e(r,i,n):t.push(i)}else t[o]=i})),t):Object.keys(i).reduce((function(t,o){var r=i[o];return ci.call(t,o)?t[o]=e(t[o],r,n):t[o]=r,t}),o)}},gi=fi,mi=li,bi=Object.prototype.hasOwnProperty,vi={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},yi=Array.isArray,wi=String.prototype.split,Ci=Array.prototype.push,xi=function(e,t){Ci.apply(e,yi(t)?t:[t])},Ai=Date.prototype.toISOString,Si=mi.default,ki={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:gi.encode,encodeValuesOnly:!1,format:Si,formatter:mi.formatters[Si],indices:!1,serializeDate:function(e){return Ai.call(e)},skipNulls:!1,strictNullHandling:!1},Ti=function e(t,i,n,o,r,a,s,l,u,c,d,h,p,f){var g,m=t;if("function"==typeof s?m=s(i,m):m instanceof Date?m=c(m):"comma"===n&&yi(m)&&(m=gi.maybeMap(m,(function(e){return e instanceof Date?c(e):e}))),null===m){if(o)return a&&!p?a(i,ki.encoder,f,"key",d):i;m=""}if("string"==typeof(g=m)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||gi.isBuffer(m)){if(a){var b=p?i:a(i,ki.encoder,f,"key",d);if("comma"===n&&p){for(var v=wi.call(String(m),","),y="",w=0;w<v.length;++w)y+=(0===w?"":",")+h(a(v[w],ki.encoder,f,"value",d));return[h(b)+"="+y]}return[h(b)+"="+h(a(m,ki.encoder,f,"value",d))]}return[h(i)+"="+h(String(m))]}var C,x=[];if(void 0===m)return x;if("comma"===n&&yi(m))C=[{value:m.length>0?m.join(",")||null:void 0}];else if(yi(s))C=s;else{var A=Object.keys(m);C=l?A.sort(l):A}for(var S=0;S<C.length;++S){var k=C[S],T="object"==typeof k&&void 0!==k.value?k.value:m[k];if(!r||null!==T){var _=yi(m)?"function"==typeof n?n(i,k):i:i+(u?"."+k:"["+k+"]");xi(x,e(T,_,n,o,r,a,s,l,u,c,d,h,p,f))}}return x},_i=fi,Ei=Object.prototype.hasOwnProperty,Oi=Array.isArray,Pi={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:_i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Mi=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Ni=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ii=function(e,t,i,n){if(e){var o=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,a=i.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,l=[];if(s){if(!i.plainObjects&&Ei.call(Object.prototype,s)&&!i.allowPrototypes)return;l.push(s)}for(var u=0;i.depth>0&&null!==(a=r.exec(o))&&u<i.depth;){if(u+=1,!i.plainObjects&&Ei.call(Object.prototype,a[1].slice(1,-1))&&!i.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+o.slice(a.index)+"]"),function(e,t,i,n){for(var o=n?t:Ni(t,i),r=e.length-1;r>=0;--r){var a,s=e[r];if("[]"===s&&i.parseArrays)a=[].concat(o);else{a=i.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);i.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&i.parseArrays&&u<=i.arrayLimit?(a=[])[u]=o:"__proto__"!==l&&(a[l]=o):a={0:o}}o=a}return o}(l,t,i,n)}},Di={formats:li,parse:function(e,t){var i=function(e){if(!e)return Pi;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?Pi.charset:e.charset;return{allowDots:void 0===e.allowDots?Pi.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Pi.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Pi.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Pi.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Pi.comma,decoder:"function"==typeof e.decoder?e.decoder:Pi.decoder,delimiter:"string"==typeof e.delimiter||_i.isRegExp(e.delimiter)?e.delimiter:Pi.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Pi.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Pi.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Pi.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Pi.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Pi.strictNullHandling}}(t);if(""===e||null==e)return i.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var i,n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,r=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,r),s=-1,l=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?l="utf-8":"utf8=%26%2310003%3B"===a[i]&&(l="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var u,c,d=a[i],h=d.indexOf("]="),p=-1===h?d.indexOf("="):h+1;-1===p?(u=t.decoder(d,Pi.decoder,l,"key"),c=t.strictNullHandling?null:""):(u=t.decoder(d.slice(0,p),Pi.decoder,l,"key"),c=_i.maybeMap(Ni(d.slice(p+1),t),(function(e){return t.decoder(e,Pi.decoder,l,"value")}))),c&&t.interpretNumericEntities&&"iso-8859-1"===l&&(c=Mi(c)),d.indexOf("[]=")>-1&&(c=Oi(c)?[c]:c),Ei.call(n,u)?n[u]=_i.combine(n[u],c):n[u]=c}return n}(e,i):e,o=i.plainObjects?Object.create(null):{},r=Object.keys(n),a=0;a<r.length;++a){var s=r[a],l=Ii(s,n[s],i,"string"==typeof e);o=_i.merge(o,l,i)}return _i.compact(o)},stringify:function(e,t){var i,n=e,o=function(e){if(!e)return ki;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||ki.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 i=mi.default;if(void 0!==e.format){if(!bi.call(mi.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var n=mi.formatters[i],o=ki.filter;return("function"==typeof e.filter||yi(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:ki.addQueryPrefix,allowDots:void 0===e.allowDots?ki.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ki.charsetSentinel,delimiter:void 0===e.delimiter?ki.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:ki.encode,encoder:"function"==typeof e.encoder?e.encoder:ki.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:ki.encodeValuesOnly,filter:o,format:i,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:ki.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:ki.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ki.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):yi(o.filter)&&(i=o.filter);var r,a=[];if("object"!=typeof n||null===n)return"";r=t&&t.arrayFormat in vi?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=vi[r];i||(i=Object.keys(n)),o.sort&&i.sort(o.sort);for(var l=0;l<i.length;++l){var u=i[l];o.skipNulls&&null===n[u]||xi(a,Ti(n[u],u,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset))}var c=a.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),c.length>0?d+c:""}};function Ui(e){return Ui="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},Ui(e)}var Li=function(e){return null!==e&&"object"===Ui(e)};function Ri(e){return Ri="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},Ri(e)}var Bi=Li,ji=Hi;function Hi(e){if(e)return function(e){for(var t in Hi.prototype)Object.prototype.hasOwnProperty.call(Hi.prototype,t)&&(e[t]=Hi.prototype[t]);return e}(e)}Hi.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},Hi.prototype.parse=function(e){return this._parser=e,this},Hi.prototype.responseType=function(e){return this._responseType=e,this},Hi.prototype.serialize=function(e){return this._serializer=e,this},Hi.prototype.timeout=function(e){if(!e||"object"!==Ri(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},Hi.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};var Fi=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),$i=new Set([408,413,429,500,502,503,504,521,522,524]);Hi.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var i=this._retryCallback(e,t);if(!0===i)return!0;if(!1===i)return!1}catch(e){console.error(e)}if(t&&t.status&&$i.has(t.status))return!0;if(e){if(e.code&&Fi.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},Hi.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()},Hi.prototype.then=function(e,t){var i=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){n.on("abort",(function(){if(!(i._maxRetries&&i._maxRetries>i._retries))if(i.timedout&&i.timedoutError)t(i.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=i.status,e.method=i.method,e.url=i.url,t(e)}})),n.end((function(i,n){i?t(i):e(n)}))}))}return this._fullfilledPromise.then(e,t)},Hi.prototype.catch=function(e){return this.then(void 0,e)},Hi.prototype.use=function(e){return e(this),this},Hi.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},Hi.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},Hi.prototype.get=function(e){return this._header[e.toLowerCase()]},Hi.prototype.getHeader=Hi.prototype.get,Hi.prototype.set=function(e,t){if(Bi(e)){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},Hi.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},Hi.prototype.field=function(e,t){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(Bi(e)){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.field(i,e[i]);return this}if(Array.isArray(t)){for(var n in t)Object.prototype.hasOwnProperty.call(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)),this._getFormData().append(e,t),this},Hi.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},Hi.prototype._auth=function(e,t,i,n){switch(i.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},Hi.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},Hi.prototype.redirects=function(e){return this._maxRedirects=e,this},Hi.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},Hi.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},Hi.prototype.send=function(e){var t=Bi(e),i=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&&Bi(this._data))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this._data[n]=e[n]);else"string"==typeof e?(i||this.type("form"),(i=this._header["content-type"])&&(i=i.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===i?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||i||this.type("json"),this},Hi.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},Hi.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var i=this.url.slice(t+1).split("&");"function"==typeof this._sort?i.sort(this._sort):i.sort(),this.url=this.url.slice(0,t)+"?"+i.join("&")}}},Hi.prototype._appendQueryString=function(){console.warn("Unsupported")},Hi.prototype._timeoutError=function(e,t,i){if(!this._aborted){var n=new Error("".concat(e+t,"ms exceeded"));n.timeout=t,n.code="ECONNABORTED",n.errno=i,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},Hi.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var zi={};function Qi(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Gi(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)?Gi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 r,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw r}}}}function Gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}zi.type=function(e){return e.split(/ *; */).shift()},zi.params=function(e){var t,i={},n=Qi(e.split(/ *; */));try{for(n.s();!(t=n.n()).done;){var o=t.value.split(/ *= */),r=o.shift(),a=o.shift();r&&a&&(i[r]=a)}}catch(e){n.e(e)}finally{n.f()}return i},zi.parseLinks=function(e){var t,i={},n=Qi(e.split(/ *, */));try{for(n.s();!(t=n.n()).done;){var o=t.value.split(/ *; */),r=o[0].slice(1,-1);i[o[1].split(/ *= */)[1].slice(1,-1)]=r}}catch(e){n.e(e)}finally{n.f()}return i},zi.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e};var qi=zi,Wi=Vi;function Vi(e){if(e)return function(e){for(var t in Vi.prototype)Object.prototype.hasOwnProperty.call(Vi.prototype,t)&&(e[t]=Vi.prototype[t]);return e}(e)}function Yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Ki(){this._defaults=[]}Vi.prototype.get=function(e){return this.header[e.toLowerCase()]},Vi.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=qi.type(t);var i=qi.params(t);for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(this[n]=i[n]);this.links={};try{e.link&&(this.links=qi.parseLinks(e.link))}catch(e){}},Vi.prototype._setStatusProperties=function(e){var t=e/100|0;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},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){Ki.prototype[e]=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return this._defaults.push({fn:e,args:i}),this}})),Ki.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,function(e){return function(e){if(Array.isArray(e))return Yi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Yi(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)?Yi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.args))}))};var Xi=Ki;!function(e,t){function i(e){return i="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},i(e)}var n;"undefined"!=typeof window?n=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self;var o=Gt.exports,r=qt,a=Di,s=ji,l=Li,u=Wi,c=Xi;function d(){}e.exports=function(e,i){return"function"==typeof i?new t.Request("GET",e).end(i):1===arguments.length?new t.Request("GET",e):new t.Request(e,i)};var h=t=e.exports;t.Request=y,h.getXHR=function(){if(n.XMLHttpRequest&&(!n.location||"file:"!==n.location.protocol||!n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function f(e){if(!l(e))return e;var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&g(t,i,e[i]);return t.join("&")}function g(e,t,i){if(void 0!==i)if(null!==i)if(Array.isArray(i))i.forEach((function(i){g(e,t,i)}));else if(l(i))for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&g(e,"".concat(t,"[").concat(n,"]"),i[n]);else e.push(encodeURI(t)+"="+encodeURIComponent(i));else e.push(encodeURI(t))}function m(e){for(var t,i,n={},o=e.split("&"),r=0,a=o.length;r<a;++r)-1===(i=(t=o[r]).indexOf("="))?n[decodeURIComponent(t)]="":n[decodeURIComponent(t.slice(0,i))]=decodeURIComponent(t.slice(i+1));return n}function b(e){return/[/+]json($|[^-\w])/i.test(e)}function v(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;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,i,n,o,r=e.split(/\r?\n/),a={},s=0,l=r.length;s<l;++s)-1!==(t=(i=r[s]).indexOf(":"))&&(n=i.slice(0,t).toLowerCase(),o=p(i.slice(t+1)),a[n]=o);return a}(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 y(e,t){var i=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,n=null;try{n=new v(i)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,i.xhr?(t.rawResponse=void 0===i.xhr.responseType?i.xhr.responseText:i.xhr.response,t.status=i.xhr.status?i.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),i.callback(t)}i.emit("response",n);try{i._isResponseOK(n)||(e=new Error(n.statusText||n.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=n,e.status=n.status,i.callback(e,n)):i.callback(null,n)}))}function w(e,t,i){var n=h("DELETE",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n}h.serializeObject=f,h.parseString=m,h.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"},h.serialize={"application/x-www-form-urlencoded":a.stringify,"application/json":r},h.parse={"application/x-www-form-urlencoded":m,"application/json":JSON.parse},u(v.prototype),v.prototype._parseBody=function(e){var t=h.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=h.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},v.prototype.toError=function(){var e=this.req,t=e.method,i=e.url,n="cannot ".concat(t," ").concat(i," (").concat(this.status,")"),o=new Error(n);return o.status=this.status,o.method=t,o.url=i,o},h.Response=v,o(y.prototype),s(y.prototype),y.prototype.type=function(e){return this.set("Content-Type",h.types[e]||e),this},y.prototype.accept=function(e){return this.set("Accept",h.types[e]||e),this},y.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===i(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var o=function(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,o)},y.prototype.query=function(e){return"string"!=typeof e&&(e=f(e)),e&&this._query.push(e),this},y.prototype.attach=function(e,t,i){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,i||t.name)}return this},y.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},y.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var i=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),i(e,t)},y.prototype.crossDomainError=function(){var 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)},y.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},y.prototype.ca=y.prototype.agent,y.prototype.buffer=y.prototype.ca,y.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},y.prototype.pipe=y.prototype.write,y.prototype._isHost=function(e){return e&&"object"===i(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},y.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||d,this._finalizeQueryString(),this._end()},y.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},y.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=h.getXHR();var t=this.xhr,i=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var i=t.readyState;if(i>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===i){var n;try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,i){i.total>0&&(i.percent=i.loaded/i.total*100,100===i.percent&&clearTimeout(e._uploadTimeoutTimer)),i.direction=t,e.emit("progress",i)};if(this.hasListeners("progress"))try{t.addEventListener("progress",n.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",n.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 i&&!this._isHost(i)){var o=this._header["content-type"],r=this._serializer||h.serialize[o?o.split(";")[0]:""];!r&&b(o)&&(r=h.serialize["application/json"]),r&&(i=r(i))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===i?null:i)},h.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,i){var n=new h.Request(e,t);return this._setDefaults(n),i&&n.end(i),n}})),c.prototype.del=c.prototype.delete,h.get=function(e,t,i){var n=h("GET",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},h.head=function(e,t,i){var n=h("HEAD",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},h.options=function(e,t,i){var n=h("OPTIONS",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},h.del=w,h.delete=w,h.patch=function(e,t,i){var n=h("PATCH",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},h.post=function(e,t,i){var n=h("POST",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},h.put=function(e,t,i){var n=h("PUT",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n}}(Qt,Qt.exports);var Zi=Qt.exports;function Ji(e){var t=(new Date).getTime(),i=(new Date).toISOString(),n=console&&console.log?console:window&&window.console&&window.console.log?window.console:console;n.log("<<<<<"),n.log("[".concat(i,"]"),"\n",e.url,"\n",e.qs),n.log("-----"),e.on("response",(function(i){var o=(new Date).getTime()-t,r=(new Date).toISOString();n.log(">>>>>>"),n.log("[".concat(r," / ").concat(o,"]"),"\n",e.url,"\n",e.qs,"\n",i.text),n.log("-----")}))}function en(e,t,i){var n=this;this._config.logVerbosity&&(e=e.use(Ji)),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 o=e;if(t.abortSignal)var r=t.abortSignal.subscribe((function(){o.abort(),r()}));return!0===t.forceBuffered?o="undefined"==typeof Blob?o.buffer().responseType("arraybuffer"):o.responseType("arraybuffer"):!1===t.forceBuffered&&(o=o.buffer(!1)),(o=o.timeout(t.timeout)).on("abort",(function(){return i({category:M.PNUnknownCategory,error:!0,operation:t.operation,errorData:new Error("Aborted")},null)})),o.end((function(e,o){var r,a={};if(a.error=null!==e,a.operation=t.operation,o&&o.status&&(a.statusCode=o.status),e){if(e.response&&e.response.text&&!n._config.logVerbosity)try{a.errorData=JSON.parse(e.response.text)}catch(t){a.errorData=e}else a.errorData=e;return a.category=n._detectErrorCategory(e),i(a,null)}if(t.ignoreBody)r={headers:o.headers,redirects:o.redirects,response:o};else try{r=JSON.parse(o.text)}catch(e){return a.errorData=o,a.error=!0,i(a,null)}return r.error&&1===r.error&&r.status&&r.message&&r.service?(a.errorData=r,a.statusCode=r.status,a.error=!0,a.category=n._detectErrorCategory(a),i(a,null)):(r.error&&r.error.message&&(a.errorData=r.error),i(a,r))})),o}function tn(e,t,i){return r(this,void 0,void 0,(function(){var n;return a(this,(function(o){switch(o.label){case 0:return n=Zi.post(e),t.forEach((function(e){var t=e.key,i=e.value;n=n.field(t,i)})),n.attach("file",i,{contentType:"application/octet-stream"}),[4,n];case 1:return[2,o.sent()]}}))}))}function nn(e,t,i){var n=Zi.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function on(e,t,i){var n=Zi.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function rn(e,t,i,n){var o=Zi.post(this.getStandardOrigin()+i.url).query(e).set(i.headers).send(t);return en.call(this,o,i,n)}function an(e,t,i,n){var o=Zi.patch(this.getStandardOrigin()+i.url).query(e).set(i.headers).send(t);return en.call(this,o,i,n)}function sn(e,t,i){var n=Zi.delete(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function ln(e,t){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),e.byteLength),i.buffer}var un,cn=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 r(this,void 0,void 0,(function(){var i;return a(this,(function(n){switch(n.label){case 0:return[4,this.getKey(e)];case 1:if(i=n.sent(),t instanceof ArrayBuffer)return[2,this.encryptArrayBuffer(i,t)];if("string"==typeof t)return[2,this.encryptString(i,t)];throw new Error("Cannot encrypt this file. In browsers file encryption supports only string or ArrayBuffer")}}))}))},e.prototype.decrypt=function(e,t){return r(this,void 0,void 0,(function(){var i;return a(this,(function(n){switch(n.label){case 0:return[4,this.getKey(e)];case 1:if(i=n.sent(),t instanceof ArrayBuffer)return[2,this.decryptArrayBuffer(i,t)];if("string"==typeof t)return[2,this.decryptString(i,t)];throw new Error("Cannot decrypt this file. In browsers file decryption supports only string or ArrayBuffer")}}))}))},e.prototype.encryptFile=function(e,t,i){return r(this,void 0,void 0,(function(){var n,o,r;return a(this,(function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return n=a.sent(),[4,t.toArrayBuffer()];case 2:return o=a.sent(),[4,this.encryptArrayBuffer(n,o)];case 3:return r=a.sent(),[2,i.create({name:t.name,mimeType:"application/octet-stream",data:r})]}}))}))},e.prototype.decryptFile=function(e,t,i){return r(this,void 0,void 0,(function(){var n,o,r;return a(this,(function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return n=a.sent(),[4,t.toArrayBuffer()];case 2:return o=a.sent(),[4,this.decryptArrayBuffer(n,o)];case 3:return r=a.sent(),[2,i.create({name:t.name,data:r})]}}))}))},e.prototype.getKey=function(e){return r(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(o){switch(o.label){case 0:return t=Buffer.from(e),[4,crypto.subtle.digest("SHA-256",t.buffer)];case 1:return i=o.sent(),n=Buffer.from(Buffer.from(i).toString("hex").slice(0,32),"utf8").buffer,[2,crypto.subtle.importKey("raw",n,"AES-CBC",!0,["encrypt","decrypt"])]}}))}))},e.prototype.encryptArrayBuffer=function(e,t){return r(this,void 0,void 0,(function(){var i,n,o;return a(this,(function(r){switch(r.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),n=ln,o=[i.buffer],[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},e,t)];case 1:return[2,n.apply(void 0,o.concat([r.sent()]))]}}))}))},e.prototype.decryptArrayBuffer=function(e,t){return r(this,void 0,void 0,(function(){var i;return a(this,(function(n){return i=t.slice(0,16),[2,crypto.subtle.decrypt({name:"AES-CBC",iv:i},e,t.slice(16))]}))}))},e.prototype.encryptString=function(e,t){return r(this,void 0,void 0,(function(){var i,n,o,r;return a(this,(function(a){switch(a.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),n=Buffer.from(t).buffer,[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},e,n)];case 1:return o=a.sent(),r=ln(i.buffer,o),[2,Buffer.from(r).toString("utf8")]}}))}))},e.prototype.decryptString=function(e,t){return r(this,void 0,void 0,(function(){var i,n,o,r;return a(this,(function(a){switch(a.label){case 0:return i=Buffer.from(t),n=i.slice(0,16),o=i.slice(16),[4,crypto.subtle.decrypt({name:"AES-CBC",iv:n},e,o)];case 1:return r=a.sent(),[2,Buffer.from(r).toString("utf8")]}}))}))},e.IV_LENGTH=16,e}(),dn=(un=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 r(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 r(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 r(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 r(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this.data]}))}))},e.prototype.toArrayBuffer=function(){return r(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){return[2,new Promise((function(t,i){var n=new FileReader;n.addEventListener("load",(function(){if(n.result instanceof ArrayBuffer)return t(n.result)})),n.addEventListener("error",(function(){i(n.error)})),n.readAsArrayBuffer(e.data)}))]}))}))},e.prototype.toString=function(){return r(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){return[2,new Promise((function(t,i){var n=new FileReader;n.addEventListener("load",(function(){if("string"==typeof n.result)return t(n.result)})),n.addEventListener("error",(function(){i(n.error)})),n.readAsBinaryString(e.data)}))]}))}))},e.prototype.toFile=function(){return r(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this.data]}))}))},e}(),un.supportsFile="undefined"!=typeof File,un.supportsBlob="undefined"!=typeof Blob,un.supportsArrayBuffer="undefined"!=typeof ArrayBuffer,un.supportsBuffer=!1,un.supportsStream=!1,un.supportsString=!0,un.supportsEncryptFile=!0,un.supportsFileUri=!1,un);function hn(e){if(!navigator||!navigator.sendBeacon)return!1;navigator.sendBeacon(e)}var pn=function(e){function i(t){var i=this,n=t.listenToBrowserNetworkEvents,o=void 0===n||n;return t.sdkFamily="Web",t.networking=new Ft({del:sn,get:on,post:rn,patch:an,sendBeacon:hn,getfile:nn,postfile:tn}),t.cbor=new zt((function(e){return $t(h.decode(e))}),b),t.PubNubFile=dn,t.cryptography=new cn,i=e.call(this,t)||this,o&&(window.addEventListener("offline",(function(){i.networkDownDetected()})),window.addEventListener("online",(function(){i.networkUpDetected()}))),i}return t(i,e),i}(Ht);return pn}()},3379:e=>{var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var r={},a=[],s=0;s<e.length;s++){var l=e[s],u=n.base?l[0]+n.base:l[0],c=r[u]||0,d="".concat(u," ").concat(c);r[u]=c+1;var h=i(d),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=o(p,n);n.byIndex=s,t.splice(s,0,{identifier:d,updater:f,references:1})}a.push(d)}return a}function o(e,t){var i=t.domAPI(t);return i.update(e),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;i.update(e=t)}else i.remove()}}e.exports=function(e,o){var r=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<r.length;a++){var s=i(r[a]);t[s].references--}for(var l=n(e,o),u=0;u<r.length;u++){var c=i(r[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}r=l}}},569:e=>{var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},9216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,i)=>{e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var o=void 0!==i.layer;o&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,o&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var r=i.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589: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))}}}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{i.d(n,{l:()=>Ws,Z:()=>qs});var e=i(9669),t=i.n(e);const o=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),a=new Map;class s{constructor(e,t){if(this._$cssResult$=!0,t!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=a.get(this.cssText);return o&&void 0===e&&(a.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const l=(e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,n)=>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.")})(i)+e[n+1]),e[0]);return new s(i,r)},u=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new s("string"==typeof e?e:e+"",r))(t)})(e):e;var c;const d=window.trustedTypes,h=d?d.emptyScript:"",p=window.reactiveElementPolyfillSupport,f={toAttribute(e,t){switch(t){case Boolean:e=e?h:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},g=(e,t)=>t!==e&&(t==t||e==e),m={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:g};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,i)=>{const n=this._$Eh(i,t);void 0!==n&&(this._$Eu.set(n,i),e.push(n))})),e}static createProperty(e,t=m){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(n){const o=this[e];this[t]=n,this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||m}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 i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(u(e))}else void 0!==e&&t.push(u(e));return t}static _$Eh(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"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,i;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.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 i=document.createElement("style"),n=window.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=t.cssText,e.appendChild(i)}))})(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,i){this._$AK(e,i)}_$ES(e,t,i=m){var n,o;const r=this.constructor._$Eh(e,i);if(void 0!==r&&!0===i.reflect){const a=(null!==(o=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==o?o:f.toAttribute)(t,i.type);this._$Ei=e,null==a?this.removeAttribute(r):this.setAttribute(r,a),this._$Ei=null}}_$AK(e,t){var i,n,o;const r=this.constructor,a=r._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){const e=r.getPropertyOptions(a),s=e.converter,l=null!==(o=null!==(n=null===(i=s)||void 0===i?void 0:i.fromAttribute)&&void 0!==n?n:"function"==typeof s?s:null)&&void 0!==o?o:f.fromAttribute;this._$Ei=a,this[a]=l(t,e.type),this._$Ei=null}}requestUpdate(e,t,i){let n=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||g)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Ei!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(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 i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),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(i)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(i)}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==p||p({ReactiveElement:b}),(null!==(c=globalThis.reactiveElementVersions)&&void 0!==c?c:globalThis.reactiveElementVersions=[]).push("1.3.1");const y=globalThis.trustedTypes,w=y?y.createPolicy("lit-html",{createHTML:e=>e}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,x="?"+C,A=`<${x}>`,S=document,k=(e="")=>S.createComment(e),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,_=Array.isArray,E=e=>{var t;return _(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,M=/>/g,N=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,I=/'/g,D=/"/g,U=/^(?:script|style|textarea|title)$/i,L=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),R=L(1),B=L(2),j=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),F=new WeakMap,$=S.createTreeWalker(S,129,null,!1),z=(e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",a=O;for(let t=0;t<i;t++){const i=e[t];let s,l,u=-1,c=0;for(;c<i.length&&(a.lastIndex=c,l=a.exec(i),null!==l);)c=a.lastIndex,a===O?"!--"===l[1]?a=P:void 0!==l[1]?a=M:void 0!==l[2]?(U.test(l[2])&&(o=RegExp("</"+l[2],"g")),a=N):void 0!==l[3]&&(a=N):a===N?">"===l[0]?(a=null!=o?o: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:I):a===D||a===I?a=N:a===P||a===M?a=O:(a=N,o=void 0);const d=a===N&&e[t+1].startsWith("/>")?" ":"";r+=a===O?i+A:u>=0?(n.push(s),i.slice(0,u)+"$lit$"+i.slice(u)+C+d):i+C+(-2===u?(n.push(void 0),t):d)}const s=r+(e[i]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(s):s,n]};class Q{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const a=e.length-1,s=this.parts,[l,u]=z(e,t);if(this.el=Q.createElement(l,i),$.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=$.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith("$lit$")||t.startsWith(C)){const i=u[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+"$lit$").split(C),t=/([.?@])?(.*)/.exec(i);s.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?Y:"?"===t[1]?X:"@"===t[1]?Z:V})}else s.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(U.test(n.tagName)){const e=n.textContent.split(C),t=e.length-1;if(t>0){n.textContent=y?y.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],k()),$.nextNode(),s.push({type:2,index:++o});n.append(e[t],k())}}}else if(8===n.nodeType)if(n.data===x)s.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(C,e+1));)s.push({type:7,index:o}),e+=C.length-1}o++}}static createElement(e,t){const i=S.createElement("template");return i.innerHTML=e,i}}function G(e,t,i=e,n){var o,r,a,s;if(t===j)return t;let l=void 0!==n?null===(o=i._$Cl)||void 0===o?void 0:o[n]:i._$Cu;const u=T(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===u?l=void 0:(l=new u(e),l._$AT(e,i,n)),void 0!==n?(null!==(a=(s=i)._$Cl)&&void 0!==a?a:s._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(t=G(e,l._$AS(e,t.values),l,n)),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:i},parts:n}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:S).importNode(i,!0);$.currentNode=o;let r=$.nextNode(),a=0,s=0,l=n[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new W(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new J(r,this,e)),this.v.push(t),l=n[++s]}a!==(null==l?void 0:l.index)&&(r=$.nextNode(),a++)}return o}m(e){let t=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class W{constructor(e,t,i,n){var o;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cg=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}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=G(this,e,t),T(e)?e===H||null==e||""===e?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==j&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.k(e):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!==H&&T(this._$AH)?this._$AA.nextSibling.data=e:this.k(S.createTextNode(e)),this._$AH=e}T(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Q.createElement(n.h,this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.m(i);else{const e=new q(o,this),t=e.p(this.options);e.m(i),this.k(t),this._$AH=e}}_$AC(e){let t=F.get(e.strings);return void 0===t&&F.set(e.strings,t=new Q(e)),t}S(e){_(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new W(this.M(k()),this.M(k()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.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 V{constructor(e,t,i,n,o){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=G(this,e,t,0),r=!T(e)||e!==this._$AH&&e!==j,r&&(this._$AH=e);else{const n=e;let a,s;for(e=o[0],a=0;a<o.length-1;a++)s=G(this,n[i+a],t,a),s===j&&(s=this._$AH[a]),r||(r=!T(s)||s!==this._$AH[a]),s===H?e=H:e!==H&&(e+=(null!=s?s:"")+o[a+1]),this._$AH[a]=s}r&&!n&&this.C(e)}C(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Y extends V{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===H?void 0:e}}const K=y?y.emptyScript:"";class X extends V{constructor(){super(...arguments),this.type=4}C(e){e&&e!==H?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class Z extends V{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=G(this,e,t,0))&&void 0!==i?i:H)===j)return;const n=this._$AH,o=e===H&&n!==H||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==H&&(n===H||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class J{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){G(this,e)}}const ee={L:"$lit$",P:C,V:x,I:1,N:z,R:q,j:E,D:G,H:W,F:V,O:X,W:Z,B:Y,Z:J},te=window.litHtmlPolyfillSupport;var ie,ne;null==te||te(Q,W),(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 i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=((e,t,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let a=r._$litPart$;if(void 0===a){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=a=new W(t.insertBefore(k(),e),e,void 0,null!=i?i:{})}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 re=globalThis.litElementPolyfillSupport;null==re||re({LitElement:oe}),(null!==(ne=globalThis.litElementVersions)&&void 0!==ne?ne:globalThis.litElementVersions=[]).push("3.2.0");const ae=e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:n}=t;return{kind:i,elements:n,finisher(t){window.customElements.define(e,t)}}})(e,t),se=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.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(i){i.createProperty(t.key,e)}};function le(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):se(e,t)}function ue(e){return le({...e,state:!0})}function ce(e,t){return(({finisher:e,descriptor:t})=>(i,n)=>{var o;if(void 0===n){const n=null!==(o=i.originalKey)&&void 0!==o?o:i.key,r=null!=t?{kind:"method",placement:"prototype",key:n,descriptor:t(i.key)}:{...i,key:n};return null!=e&&(r.finisher=function(t){e(t,n)}),r}{const o=i.constructor;void 0!==t&&Object.defineProperty(i,n,t(n)),null==e||e(o,n)}})({descriptor:i=>{const n={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(t){const t="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[t]&&(this[t]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(e))&&void 0!==n?n:null),this[t]}}return n}})}var de;null===(de=window.HTMLSlotElement)||void 0===de||de.prototype.assignedElements;const he=e=>(...t)=>({_$litDirective$:e,values:t});class pe{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const fe=he(class extends pe{constructor(e){var t;if(super(e),1!==e.type||"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 i,n;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===(i=this.st)||void 0===i?void 0:i.has(e))&&this.et.add(e);return this.render(t)}const o=e.element.classList;this.et.forEach((e=>{e in t||(o.remove(e),this.et.delete(e))}));for(const e in t){const i=!!t[e];i===this.et.has(e)||(null===(n=this.st)||void 0===n?void 0:n.has(e))||(i?(o.add(e),this.et.add(e)):(o.remove(e),this.et.delete(e)))}return j}}),{H:ge}=ee,me=(e,t)=>{var i,n;const o=e._$AN;if(void 0===o)return!1;for(const e of o)null===(n=(i=e)._$AO)||void 0===n||n.call(i,t,!1),me(e,t);return!0},be=e=>{let t,i;do{if(void 0===(t=e._$AM))break;i=t._$AN,i.delete(e),e=t}while(0===(null==i?void 0:i.size))},ve=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),Ce(t)}};function ye(e){void 0!==this._$AN?(be(this),this._$AM=e,ve(this)):this._$AM=e}function we(e,t=!1,i=0){const n=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(n))for(let e=i;e<n.length;e++)me(n[e],!1),be(n[e]);else null!=n&&(me(n,!1),be(n));else me(this,e)}const Ce=e=>{var t,i,n,o;2==e.type&&(null!==(t=(n=e)._$AP)&&void 0!==t||(n._$AP=we),null!==(i=(o=e)._$AQ)&&void 0!==i||(o._$AQ=ye))};class xe extends pe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),ve(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,n;e!==this.isConnected&&(this.isConnected=e,e?null===(i=this.reconnected)||void 0===i||i.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),t&&(me(this,e),be(this))}setValue(e){if((e=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const Ae=()=>new Se;class Se{}const ke=new WeakMap,Te=he(class extends xe{render(e){return H}update(e,[t]){var i;const n=t!==this.U;return n&&void 0!==this.U&&this.ot(void 0),(n||this.rt!==this.lt)&&(this.U=t,this.ht=null===(i=e.options)||void 0===i?void 0:i.host,this.ot(this.lt=e.element)),H}ot(e){var t;if("function"==typeof this.U){const i=null!==(t=this.ht)&&void 0!==t?t:globalThis;let n=ke.get(i);void 0===n&&(n=new WeakMap,ke.set(i,n)),void 0!==n.get(this.U)&&this.U.call(this.ht,void 0),n.set(this.U,e),void 0!==e&&this.U.call(this.ht,e)}else this.U.value=e}get rt(){var e,t,i;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===(i=this.U)||void 0===i?void 0:i.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),_e=e=>{const t=e.replace(/\D/g,"").substring(0,10),i=t.substring(0,3),n=t.substring(3,6),o=t.substring(6,10);return t.length>5?`(${i}) ${n}-${o}`:t.length>2?`(${i}) ${n}`:t.length>0?`(${i}`:""},Ee=e=>{const t=(""+e).replace(/\D/g,"").match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);return t?[t[1]?"+1 ":"","(",t[2],") ",t[3],"-",t[4]].join(""):e},Oe=e=>{const t=e.keyCode;return t>=48&&t<=57||t>=96&&t<=105},Pe=e=>e.altKey||e.ctrlKey||e.metaKey,Me=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)},Ne=he(class extends pe{constructor(e){var t;if(super(e),1!==e.type||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const n=e[i];return null==n?t:t+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ct){this.ct=new Set;for(const e in t)this.ct.add(e);return this.render(t)}this.ct.forEach((e=>{null==t[e]&&(this.ct.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const n=t[e];null!=n&&(this.ct.add(e),e.includes("-")?i.setProperty(e,n):i[e]=n)}return j}}),Ie="#646987",De="#ffffff",Ue=(e,t)=>{let i=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),o=parseInt(e.substr(5,2),16);return i=Math.round(i*(1-t)+255*t),n=Math.round(n*(1-t)+255*t),o=Math.round(o*(1-t)+255*t),"#"+i.toString(16).padStart(2,"0")+n.toString(16).padStart(2,"0")+o.toString(16).padStart(2,"0")},Le=(e,t)=>2===e||70392===t;var Re=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Be=class extends oe{constructor(){super(...arguments),this.heading="",this.subtitle="",this.selected=!1,this.primaryColor=Ie,this.backgroundColor=De,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black"}render(){return R`
|
|
2
|
+
var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),r=i(4372),a=i(5327),s=i(4097),l=i(4109),u=i(7985),c=i(7874),d=i(2648),h=i(644),p=i(205);e.exports=function(e){return new Promise((function(t,i){var f,g=e.data,m=e.headers,b=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}n.isFormData(g)&&n.isStandardBrowserEnv()&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",C=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+C)}var x=s(e.baseURL,e.url);function A(){if(y){var n="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,r={data:b&&"text"!==b&&"json"!==b?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};o((function(e){t(e),v()}),(function(e){i(e),v()}),r),y=null}}if(y.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=A:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(A)},y.onabort=function(){y&&(i(new d("Request aborted",d.ECONNABORTED,e,y)),y=null)},y.onerror=function(){i(new d("Network Error",d.ERR_NETWORK,e,y,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(new d(t,n.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,y)),y=null},n.isStandardBrowserEnv()){var S=(e.withCredentials||u(x))&&e.xsrfCookieName?r.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in y&&n.forEach(m,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),b&&"json"!==b&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){y&&(i(!e||e&&e.type?new h:e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var k=p(x);k&&-1===["http","https","file"].indexOf(k)?i(new d("Unsupported protocol "+k+":",d.ERR_BAD_REQUEST,e)):y.send(g)}))}},1609:(e,t,i)=>{var n=i(4867),o=i(1849),r=i(321),a=i(7185),s=function e(t){var i=new r(t),s=o(r.prototype.request,i);return n.extend(s,r.prototype,i),n.extend(s,i),s.create=function(i){return e(a(t,i))},s}(i(5546));s.Axios=r,s.CanceledError=i(644),s.CancelToken=i(4972),s.isCancel=i(6502),s.VERSION=i(7288).version,s.toFormData=i(7675),s.AxiosError=i(2648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=i(8713),s.isAxiosError=i(6268),e.exports=s,e.exports.default=s},4972:(e,t,i)=>{var n=i(644);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;this.promise.then((function(e){if(i._listeners){var t,n=i._listeners.length;for(t=0;t<n;t++)i._listeners[t](e);i._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},e((function(e){i.reason||(i.reason=new n(e),t(i.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},644:(e,t,i)=>{var n=i(2648);function o(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}i(4867).inherits(o,n,{__CANCEL__:!0}),e.exports=o},6502:e=>{e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,i)=>{var n=i(4867),o=i(5327),r=i(782),a=i(3572),s=i(7185),l=i(4097),u=i(4875),c=u.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.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 i=t.transitional;void 0!==i&&u.assertOptions(i,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var r,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(l),r=Promise.resolve(t);d.length;)r=r.then(d.shift(),d.shift());return r}for(var h=t;n.length;){var p=n.shift(),f=n.shift();try{h=p(h)}catch(e){f(e);break}}try{r=a(h)}catch(e){return Promise.reject(e)}for(;l.length;)r=r.then(l.shift(),l.shift());return r},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,i){return this.request(s(i||{},{method:e,url:t,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(i,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},2648:(e,t,i)=>{var n=i(4867);function o(e,t,i,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,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 r=o.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"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(r,"isAxiosError",{value:!0}),o.from=function(e,t,i,a,s,l){var u=Object.create(r);return n.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,i,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=o},782:(e,t,i)=>{var n=i(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,i)=>{var n=i(1793),o=i(7303);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},3572:(e,t,i)=>{var n=i(4867),o=i(8527),r=i(6502),a=i(5546),s=i(644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){t=t||{};var i={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function r(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:o(void 0,e[i]):o(e[i],t[i])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:o(void 0,e[i]):o(void 0,t[i])}function l(i){return i in t?o(e[i],t[i]):i in e?o(void 0,e[i]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials: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 n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||r,o=t(e);n.isUndefined(o)&&t!==l||(i[e]=o)})),i}},6026:(e,t,i)=>{var n=i(2648);e.exports=function(e,t,i){var o=i.config.validateStatus;i.status&&o&&!o(i.status)?t(new n("Request failed with status code "+i.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}},8527:(e,t,i)=>{var n=i(4867),o=i(5546);e.exports=function(e,t,i){var r=this||o;return n.forEach(i,(function(i){e=i.call(r,e,t)})),e}},5546:(e,t,i)=>{var n=i(4867),o=i(6016),r=i(2648),a=i(7874),s=i(7675),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,d={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=i(5448)),c),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var i,r=n.isObject(e),a=t&&t["Content-Type"];if((i=n.isFileList(e))||r&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(i?{"files[]":e}:e,l&&new l)}return r||"application/json"===a?(u(t,"application/json"),function(e,t,i){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,i=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!i&&"json"===this.responseType;if(a||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw r.from(e,r.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:i(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){d.headers[e]=n.merge(l)})),e.exports=d},7874:e=>{e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},5327:(e,t,i)=>{var n=i(4867);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,i){if(!t)return e;var r;if(i)r=i(t);else if(n.isURLSearchParams(t))r=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),r=a.join("&")}if(r){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}},7303:e=>{e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,i)=>{var n=i(4867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,i,o,r,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(r)&&s.push("domain="+r),!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(){}}},1793:e=>{e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,i)=>{var n=i(4867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,i)=>{var n=i(4867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function o(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=o(window.location.href),function(t){var i=n.isString(t)?o(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},6016:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){n.forEach(e,(function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])}))}},1623:e=>{e.exports=null},4109:(e,t,i)=>{var n=i(4867),o=["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,i,r,a={};return e?(n.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=n.trim(e.substr(0,r)).toLowerCase(),i=n.trim(e.substr(r+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([i]):a[t]?a[t]+", "+i:i}})),a):a}},205:e=>{e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){t=t||new FormData;var i=[];function o(e){return null===e?"":n.isDate(e)?e.toISOString():n.isArrayBuffer(e)||n.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(r,a){if(n.isPlainObject(r)||n.isArray(r)){if(-1!==i.indexOf(r))throw Error("Circular reference detected in "+a);i.push(r),n.forEach(r,(function(i,r){if(!n.isUndefined(i)){var s,l=a?a+"."+r:r;if(i&&!a&&"object"==typeof i)if(n.endsWith(r,"{}"))i=JSON.stringify(i);else if(n.endsWith(r,"[]")&&(s=n.toArray(i)))return void s.forEach((function(e){!n.isUndefined(e)&&t.append(l,o(e))}));e(i,l)}})),i.pop()}else t.append(a,o(r))}(e),t}},4875:(e,t,i)=>{var n=i(7288).version,o=i(2648),r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var a={};r.transitional=function(e,t,i){function r(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,n,s){if(!1===e)throw new o(r(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(r(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,s)}},e.exports={assertOptions:function(e,t,i){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),r=n.length;r-- >0;){var a=n[r],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:r}},4867:(e,t,i)=>{var n,o=i(1849),r=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=r.call(e);return n[t]||(n[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 c=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),f=s("File"),g=s("Blob"),m=s("FileList");function b(e){return"[object Function]"===r.call(e)}var v=s("URLSearchParams");function y(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,C=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:c,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||r.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:h,isUndefined:u,isDate:p,isFile:f,isBlob:g,isFunction:b,isStream:function(e){return d(e)&&b(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:y,merge:function e(){var t={};function i(i,n){h(t[n])&&h(i)?t[n]=e(t[n],i):h(i)?t[n]=e({},i):l(i)?t[n]=i.slice():t[n]=i}for(var n=0,o=arguments.length;n<o;n++)y(arguments[n],i);return t},extend:function(e,t,i){return y(t,(function(t,n){e[n]=i&&"function"==typeof t?o(t,i):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,i,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,i&&Object.assign(e.prototype,i)},toFlatObject:function(e,t,i){var n,o,r,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[r=n[o]]||(t[r]=e[r],a[r]=!0);e=Object.getPrototypeOf(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,i){e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;var n=e.indexOf(t,i);return-1!==n&&n===i},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var i=new Array(t);t-- >0;)i[t]=e[t];return i},isTypedArray:C,isFileList:m}},4184:(e,t)=>{var i;!function(){var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var r=typeof i;if("string"===r||"number"===r)e.push(i);else if(Array.isArray(i)){if(i.length){var a=o.apply(null,i);a&&e.push(a)}}else if("object"===r)if(i.toString===Object.prototype.toString)for(var s in i)n.call(i,s)&&i[s]&&e.push(s);else e.push(i.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(i=function(){return o}.apply(t,[]))||(e.exports=i)}()},3631:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(8081),o=i.n(n),r=i(3645),a=i.n(r)()(o());a.push([e.id,"@media screen and (min-width: 767px) {\n .meetelise-chat.pane.launcher__desktop {\n right: -32px;\n }\n}\n",""]);const s=a},3645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)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 c=[].concat(e[u]);n&&a[c[0]]||(void 0!==r&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=r),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8081:e=>{e.exports=function(e){return e[1]}},7394:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var i=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return i+n},e.exports=t.default},8609:(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 i in t=t||{})Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},e.exports=t.default},6420:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)({},e)};var n,o=(n=i(8609))&&n.__esModule?n:{default:n};e.exports=t.default},7100:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(i(1603)),o=c(i(1354)),r=c(i(1370)),a=c(i(623)),s=c(i(6226)),l=c(i(7394)),u=c(i(2699));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var i=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),r=n%60;if(0===r)return i+String(o);var a=t||"";return i+String(o)+a+(0,l.default)(r,2)}function h(e,t){return e%60==0?(e>0?"-":"+")+(0,l.default)(Math.abs(e)/60,2):p(e,t)}function p(e,t){var i=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+(0,l.default)(Math.floor(o/60),2)+i+(0,l.default)(o%60,2)}var f={G:function(e,t,i){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});default:return i.era(n,{width:"wide"})}},y:function(e,t,i){if("yo"===t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return i.ordinalNumber(o,{unit:"year"})}return u.default.y(e,t)},Y:function(e,t,i,n){var o=(0,s.default)(e,n),r=o>0?o:1-o;if("YY"===t){var a=r%100;return(0,l.default)(a,2)}return"Yo"===t?i.ordinalNumber(r,{unit:"year"}):(0,l.default)(r,t.length)},R:function(e,t){var i=(0,r.default)(e);return(0,l.default)(i,t.length)},u:function(e,t){var i=e.getUTCFullYear();return(0,l.default)(i,t.length)},Q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,l.default)(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,l.default)(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,i){var n=e.getUTCMonth();switch(t){case"M":case"MM":return u.default.M(e,t);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,i){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return(0,l.default)(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,i,n){var o=(0,a.default)(e,n);return"wo"===t?i.ordinalNumber(o,{unit:"week"}):(0,l.default)(o,t.length)},I:function(e,t,i){var n=(0,o.default)(e);return"Io"===t?i.ordinalNumber(n,{unit:"week"}):(0,l.default)(n,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.default.d(e,t)},D:function(e,t,i){var o=(0,n.default)(e);return"Do"===t?i.ordinalNumber(o,{unit:"dayOfYear"}):(0,l.default)(o,t.length)},E:function(e,t,i){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,i,n){var o=e.getUTCDay(),r=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return(0,l.default)(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,i,n){var o=e.getUTCDay(),r=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return(0,l.default)(r,t.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,i){var n=e.getUTCDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return(0,l.default)(o,t.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,i){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,i){var n,o=e.getUTCHours();switch(n=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,i){var n,o=e.getUTCHours();switch(n=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,i){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),i.ordinalNumber(n,{unit:"hour"})}return u.default.h(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.default.H(e,t)},K:function(e,t,i){var n=e.getUTCHours()%12;return"Ko"===t?i.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,t.length)},k:function(e,t,i){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?i.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.default.m(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.default.s(e,t)},S:function(e,t){return u.default.S(e,t)},X:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return h(o);case"XXXX":case"XX":return p(o);default:return p(o,":")}},x:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return h(o);case"xxxx":case"xx":return p(o);default:return p(o,":")}},O:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+d(o,":");default:return"GMT"+p(o,":")}},z:function(e,t,i,n){var o=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+d(o,":");default:return"GMT"+p(o,":")}},t:function(e,t,i,n){var o=n._originalDate||e,r=Math.floor(o.getTime()/1e3);return(0,l.default)(r,t.length)},T:function(e,t,i,n){var o=(n._originalDate||e).getTime();return(0,l.default)(o,t.length)}};t.default=f,e.exports=t.default},2699:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=i(7394))&&n.__esModule?n:{default:n},r={y:function(e,t){var i=e.getUTCFullYear(),n=i>0?i:1-i;return(0,o.default)("yy"===t?n%100:n,t.length)},M:function(e,t){var i=e.getUTCMonth();return"M"===t?String(i+1):(0,o.default)(i+1,2)},d:function(e,t){return(0,o.default)(e.getUTCDate(),t.length)},a:function(e,t){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:function(e,t){return(0,o.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,o.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,o.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,o.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var i=t.length,n=e.getUTCMilliseconds(),r=Math.floor(n*Math.pow(10,i-3));return(0,o.default)(r,t.length)}};t.default=r,e.exports=t.default},5209:(e,t)=>{function i(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 n(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 o={p:n,P:function(e,t){var o,r=e.match(/(P+)(p+)?/)||[],a=r[1],s=r[2];if(!s)return i(e,t);switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",i(a,t)).replace("{{time}}",n(s,t))}};t.default=o,e.exports=t.default},3561:(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},1603:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,n.default)(e),i=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),s=i-r;return Math.floor(s/a)+1};var n=r(i(1171)),o=r(i(8734));function r(e){return e&&e.__esModule?e:{default:e}}var a=864e5;e.exports=t.default},1354:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,n.default)(e),i=(0,o.default)(t).getTime()-(0,r.default)(t).getTime();return Math.round(i/l)+1};var n=s(i(1171)),o=s(i(79)),r=s(i(4275)),a=s(i(8734));function s(e){return e&&e.__esModule?e:{default:e}}var l=6048e5;e.exports=t.default},1370:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,n.default)(e),i=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(i+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,r.default)(a),l=new Date(0);l.setUTCFullYear(i,0,4),l.setUTCHours(0,0,0,0);var u=(0,r.default)(l);return t.getTime()>=s.getTime()?i+1:t.getTime()>=u.getTime()?i:i-1};var n=a(i(1171)),o=a(i(8734)),r=a(i(79));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},623:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(1,arguments);var i=(0,n.default)(e),s=(0,o.default)(i,t).getTime()-(0,r.default)(i,t).getTime();return Math.round(s/l)+1};var n=s(i(1171)),o=s(i(9209)),r=s(i(4118)),a=s(i(8734));function s(e){return e&&e.__esModule?e:{default:e}}var l=6048e5;e.exports=t.default},6226:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var i=(0,n.default)(e),s=i.getUTCFullYear(),l=t||{},u=l.locale,c=u&&u.options&&u.options.firstWeekContainsDate,d=null==c?1:(0,a.default)(c),h=null==l.firstWeekContainsDate?d:(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,r.default)(p,t),g=new Date(0);g.setUTCFullYear(s,0,h),g.setUTCHours(0,0,0,0);var m=(0,r.default)(g,t);return i.getTime()>=f.getTime()?s+1:i.getTime()>=m.getTime()?s:s-1};var n=s(i(1171)),o=s(i(8734)),r=s(i(9209)),a=s(i(2084));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6736:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==i.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==n.indexOf(e)},t.throwProtectedError=function(e,t,i){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; 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(i,"`; 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(i,"`; 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(i,"`; see: https://git.io/fxCyr"))};var i=["D","DD"],n=["YY","YYYY"]},8734:(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},79:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=1,i=(0,n.default)(e),r=i.getUTCDay(),a=(r<t?7:0)+r-t;return i.setUTCDate(i.getUTCDate()-a),i.setUTCHours(0,0,0,0),i};var n=r(i(1171)),o=r(i(8734));function r(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4275:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(1,arguments);var t=(0,n.default)(e),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var a=(0,o.default)(i);return a};var n=a(i(1370)),o=a(i(79)),r=a(i(8734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9209:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var i=t||{},a=i.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,r.default)(s),u=null==i.weekStartsOn?l:(0,r.default)(i.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,n.default)(e),d=c.getUTCDay(),h=(d<u?7:0)+d-u;return c.setUTCDate(c.getUTCDate()-h),c.setUTCHours(0,0,0,0),c};var n=a(i(1171)),o=a(i(8734)),r=a(i(2084));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},4118:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var i=t||{},s=i.locale,l=s&&s.options&&s.options.firstWeekContainsDate,u=null==l?1:(0,a.default)(l),c=null==i.firstWeekContainsDate?u:(0,a.default)(i.firstWeekContainsDate),d=(0,n.default)(e,t),h=new Date(0);h.setUTCFullYear(d,0,c),h.setUTCHours(0,0,0,0);var p=(0,r.default)(h,t);return p};var n=s(i(6226)),o=s(i(8734)),r=s(i(9209)),a=s(i(2084));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},2084:(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);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},5065:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(2,arguments);var i=(0,o.default)(e).getTime(),a=(0,n.default)(t);return new Date(i+a)};var n=a(i(2084)),o=a(i(1171)),r=a(i(8734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5616:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){(0,h.default)(2,arguments);var p=String(t),m=i||{},b=m.locale||o.default,w=b.options&&b.options.firstWeekContainsDate,C=null==w?1:(0,d.default)(w),x=null==m.firstWeekContainsDate?C:(0,d.default)(m.firstWeekContainsDate);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=b.options&&b.options.weekStartsOn,S=null==A?0:(0,d.default)(A),k=null==m.weekStartsOn?S:(0,d.default)(m.weekStartsOn);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!b.localize)throw new RangeError("locale must contain localize property");if(!b.formatLong)throw new RangeError("locale must contain formatLong property");var T=(0,a.default)(e);if(!(0,n.default)(T))throw new RangeError("Invalid time value");var _=(0,u.default)(T),E=(0,r.default)(T,_),O={firstWeekContainsDate:x,weekStartsOn:k,locale:b,_originalDate:T},P=p.match(g).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,l.default[t])(e,b.formatLong,O):e})).join("").match(f).map((function(i){if("''"===i)return"'";var n=i[0];if("'"===n)return y(i);var o=s.default[n];if(o)return!m.useAdditionalWeekYearTokens&&(0,c.isProtectedWeekYearToken)(i)&&(0,c.throwProtectedError)(i,t,e),!m.useAdditionalDayOfYearTokens&&(0,c.isProtectedDayOfYearToken)(i)&&(0,c.throwProtectedError)(i,t,e),o(E,i,b.localize,O);if(n.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return i})).join("");return P};var n=p(i(9989)),o=p(i(2512)),r=p(i(3239)),a=p(i(1171)),s=p(i(7100)),l=p(i(5209)),u=p(i(3561)),c=i(6736),d=p(i(2084)),h=p(i(8734));function p(e){return e&&e.__esModule?e:{default:e}}var f=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,b=/''/g,v=/[a-zA-Z]/;function y(e){return e.match(m)[1].replace(b,"'")}e.exports=t.default},2382:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)};var n,o=(n=i(8734))&&n.__esModule?n:{default:n};e.exports=t.default},9989:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(1,arguments),!(0,n.default)(e)&&"number"!=typeof e)return!1;var t=(0,o.default)(e);return!isNaN(Number(t))};var n=a(i(2382)),o=a(i(1171)),r=a(i(8734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},289:(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]:{},i=t.width?String(t.width):e.defaultWidth,n=e.formats[i]||e.formats[e.defaultWidth];return n}},e.exports=t.default},6245:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,i){var n,o=i||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):r;n=e.formattingValues[a]||e.formattingValues[r]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},3421:(e,t)=>{function i(e,t){for(var i in e)if(e.hasOwnProperty(i)&&t(e[i]))return i}function n(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;var l,u=s[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?n(c,(function(e){return e.test(u)})):i(c,(function(e){return e.test(u)}));l=e.valueCallback?e.valueCallback(d):d,l=o.valueCallback?o.valueCallback(l):l;var h=t.slice(u.length);return{value:l,rest:h}}},e.exports=t.default},8926:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],r=t.match(e.parsePattern);if(!r)return null;var a=e.valueCallback?e.valueCallback(r[0]):r[0];a=i.valueCallback?i.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}},e.exports=t.default},1924:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={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"}};t.default=function(e,t,n){var o,r=i[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},e.exports=t.default},6469:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=i(289))&&n.__esModule?n:{default:n},r={date:(0,o.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.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,o.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=r,e.exports=t.default},5102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.default=function(e,t,n,o){return i[e]},e.exports=t.default},7839:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=i(6245))&&n.__esModule?n:{default:n},r={ordinalNumber:function(e,t){var i=Number(e),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:(0,o.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,o.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,o.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,o.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,o.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=r,e.exports=t.default},9796:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(i(3421));function o(e){return e&&e.__esModule?e:{default:e}}var r={ordinalNumber:(0,o(i(8926)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,n.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,n.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,n.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,n.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,n.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=r,e.exports=t.default},2512:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(i(1924)),o=l(i(6469)),r=l(i(5102)),a=l(i(7839)),s=l(i(9796));function l(e){return e&&e.__esModule?e:{default:e}}var u={code:"en-US",formatDistance:n.default,formatLong:o.default,formatRelative:r.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=u,e.exports=t.default},3239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(2,arguments);var i=(0,n.default)(t);return(0,o.default)(e,-i)};var n=a(i(2084)),o=a(i(5065)),r=a(i(8734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},1171:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.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):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))};var n,o=(n=i(8734))&&n.__esModule?n:{default:n};e.exports=t.default},7856:function(e){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:i,getPrototypeOf:n,getOwnPropertyDescriptor:o}=Object;let{freeze:r,seal:a,create:s}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;r||(r=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const c=A(Array.prototype.forEach),d=A(Array.prototype.pop),h=A(Array.prototype.push),p=A(String.prototype.toLowerCase),f=A(String.prototype.toString),g=A(String.prototype.match),m=A(String.prototype.replace),b=A(String.prototype.indexOf),v=A(String.prototype.trim),y=A(Object.prototype.hasOwnProperty),w=A(RegExp.prototype.test),C=(x=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(x,t)});var x;function A(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return l(e,t,n)}}function S(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let r=n.length;for(;r--;){let t=n[r];if("string"==typeof t){const e=o(t);e!==t&&(i(n)||(n[r]=e),t=e)}e[t]=!0}return e}function k(e){for(let t=0;t<e.length;t++)y(e,t)||(e[t]=null);return e}function T(t){const i=s(null);for(const[n,o]of e(t))y(t,n)&&(Array.isArray(o)?i[n]=k(o):o&&"object"==typeof o&&o.constructor===Object?i[n]=T(o):i[n]=o);return i}function _(e,t){for(;null!==e;){const i=o(e,t);if(i){if(i.get)return A(i.get);if("function"==typeof i.value)return A(i.value)}e=n(e)}return function(){return null}}const E=r(["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"]),O=r(["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"]),P=r(["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"]),M=r(["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"]),N=r(["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"]),I=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=r(["#text"]),U=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),L=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),R=r(["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"]),B=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=a(/<%[\w\W]*|[\w\W]*%>/gm),F=a(/\${[\w\W]*}/gm),$=a(/^data-[\-\w.\u00B7-\uFFFF]/),z=a(/^aria-[\-\w]+$/),Q=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:H,TMPLIT_EXPR:F,DATA_ATTR:$,ARIA_ATTR:z,IS_ALLOWED_URI:Q,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:q,DOCTYPE_NAME:W,CUSTOM_ELEMENT:V});const K=function(){return"undefined"==typeof window?null:window},X=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K();const n=e=>t(e);if(n.version="3.1.2",n.removed=[],!i||!i.document||9!==i.document.nodeType)return n.isSupported=!1,n;let{document:o}=i;const a=o,l=a.currentScript,{DocumentFragment:u,HTMLTemplateElement:x,Node:A,Element:k,NodeFilter:j,NamedNodeMap:H=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:F,DOMParser:$,trustedTypes:z}=i,G=k.prototype,q=_(G,"cloneNode"),V=_(G,"nextSibling"),Z=_(G,"childNodes"),J=_(G,"parentNode");if("function"==typeof x){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ee,te="";const{implementation:ie,createNodeIterator:ne,createDocumentFragment:oe,getElementsByTagName:re}=o,{importNode:ae}=a;let se={};n.isSupported="function"==typeof e&&"function"==typeof J&&ie&&void 0!==ie.createHTMLDocument;const{MUSTACHE_EXPR:le,ERB_EXPR:ue,TMPLIT_EXPR:ce,DATA_ATTR:de,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:pe,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:ge}=Y;let{IS_ALLOWED_URI:me}=Y,be=null;const ve=S({},[...E,...O,...P,...N,...D]);let ye=null;const we=S({},[...U,...L,...R,...B]);let Ce=Object.seal(s(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}})),xe=null,Ae=null,Se=!0,ke=!0,Te=!1,_e=!0,Ee=!1,Oe=!0,Pe=!1,Me=!1,Ne=!1,Ie=!1,De=!1,Ue=!1,Le=!0,Re=!1;const Be="user-content-";let je=!0,He=!1,Fe={},$e=null;const ze=S({},["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 Qe=null;const Ge=S({},["audio","video","img","source","image","track"]);let qe=null;const We=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Xe=Ke,Ze=!1,Je=null;const et=S({},[Ve,Ye,Ke],f);let tt=null;const it=["application/xhtml+xml","text/html"],nt="text/html";let ot=null,rt=null;const at=255,st=o.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!rt||rt!==e){if(e&&"object"==typeof e||(e={}),e=T(e),tt=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?nt:e.PARSER_MEDIA_TYPE,ot="application/xhtml+xml"===tt?f:p,be=y(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,ot):ve,ye=y(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,ot):we,Je=y(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,f):et,qe=y(e,"ADD_URI_SAFE_ATTR")?S(T(We),e.ADD_URI_SAFE_ATTR,ot):We,Qe=y(e,"ADD_DATA_URI_TAGS")?S(T(Ge),e.ADD_DATA_URI_TAGS,ot):Ge,$e=y(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,ot):ze,xe=y(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,ot):{},Ae=y(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,ot):{},Fe=!!y(e,"USE_PROFILES")&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ee=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,Pe=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Re=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,me=e.ALLOWED_URI_REGEXP||Q,Xe=e.NAMESPACE||Ke,Ce=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(ke=!1),De&&(Ie=!0),Fe&&(be=S({},D),ye=[],!0===Fe.html&&(S(be,E),S(ye,U)),!0===Fe.svg&&(S(be,O),S(ye,L),S(ye,B)),!0===Fe.svgFilters&&(S(be,P),S(ye,L),S(ye,B)),!0===Fe.mathMl&&(S(be,N),S(ye,R),S(ye,B))),e.ADD_TAGS&&(be===ve&&(be=T(be)),S(be,e.ADD_TAGS,ot)),e.ADD_ATTR&&(ye===we&&(ye=T(ye)),S(ye,e.ADD_ATTR,ot)),e.ADD_URI_SAFE_ATTR&&S(qe,e.ADD_URI_SAFE_ATTR,ot),e.FORBID_CONTENTS&&($e===ze&&($e=T($e)),S($e,e.FORBID_CONTENTS,ot)),je&&(be["#text"]=!0),Pe&&S(be,["html","head","body"]),be.table&&(S(be,["tbody"]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=e.TRUSTED_TYPES_POLICY,te=ee.createHTML("")}else void 0===ee&&(ee=X(z,l)),null!==ee&&"string"==typeof te&&(te=ee.createHTML(""));r&&r(e),rt=e}},ct=S({},["mi","mo","mn","ms","mtext"]),dt=S({},["foreignobject","annotation-xml"]),ht=S({},["title","style","font","a","script"]),pt=S({},[...O,...P,...M]),ft=S({},[...N,...I]),gt=function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const i=p(e.tagName),n=p(t.tagName);return!!Je[e.namespaceURI]&&(e.namespaceURI===Ye?t.namespaceURI===Ke?"svg"===i:t.namespaceURI===Ve?"svg"===i&&("annotation-xml"===n||ct[n]):Boolean(pt[i]):e.namespaceURI===Ve?t.namespaceURI===Ke?"math"===i:t.namespaceURI===Ye?"math"===i&&dt[n]:Boolean(ft[i]):e.namespaceURI===Ke?!(t.namespaceURI===Ye&&!dt[n])&&!(t.namespaceURI===Ve&&!ct[n])&&!ft[i]&&(ht[i]||!pt[i]):!("application/xhtml+xml"!==tt||!Je[e.namespaceURI]))},mt=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},bt=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ye[e])if(Ie||De)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){let t=null,i=null;if(Ne)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===tt&&Xe===Ke&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=ee?ee.createHTML(e):e;if(Xe===Ke)try{t=(new $).parseFromString(n,tt)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Ze?te:n}catch(e){}}const r=t.body||t.documentElement;return e&&i&&r.insertBefore(o.createTextNode(i),r.childNodes[0]||null),Xe===Ke?re.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:r},yt=function(e){return ne.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof F&&(void 0!==e.__depth&&"number"!=typeof e.__depth||void 0!==e.__removalCount&&"number"!=typeof e.__removalCount||"string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof H)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(e){return"function"==typeof A&&e instanceof A},xt=function(e,t,i){se[e]&&c(se[e],(e=>{e.call(n,t,i,rt)}))},At=function(e){let t=null;if(xt("beforeSanitizeElements",e,null),wt(e))return mt(e),!0;const i=ot(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:i,allowedTags:be}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return mt(e),!0;if(7===e.nodeType)return mt(e),!0;if(Oe&&8===e.nodeType&&w(/<[/\w]/g,e.data))return mt(e),!0;if(!be[i]||xe[i]){if(!xe[i]&&kt(i)){if(Ce.tagNameCheck instanceof RegExp&&w(Ce.tagNameCheck,i))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(i))return!1}if(je&&!$e[i]){const t=J(e)||e.parentNode,i=Z(e)||e.childNodes;if(i&&t)for(let n=i.length-1;n>=0;--n){const o=q(i[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,V(e))}}return mt(e),!0}return e instanceof k&&!gt(e)?(mt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ee&&3===e.nodeType&&(t=e.textContent,c([le,ue,ce],(e=>{t=m(t,e," ")})),e.textContent!==t&&(h(n.removed,{element:e.cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(mt(e),!0)},St=function(e,t,i){if(Le&&("id"===t||"name"===t)&&(i in o||i in st))return!1;if(ke&&!Ae[t]&&w(de,t));else if(Se&&w(he,t));else if(!ye[t]||Ae[t]){if(!(kt(e)&&(Ce.tagNameCheck instanceof RegExp&&w(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&w(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&w(Ce.tagNameCheck,i)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(i))))return!1}else if(qe[t]);else if(w(me,m(i,fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(i,"data:")||!Qe[e])if(Te&&!w(pe,m(i,fe,"")));else if(i)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&g(e,ge)},Tt=function(e){xt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ye};let o=t.length;for(;o--;){const r=t[o],{name:a,namespaceURI:s,value:l}=r,u=ot(a);let h="value"===a?l:v(l);if(i.attrName=u,i.attrValue=h,i.keepAttr=!0,i.forceKeepAttr=void 0,xt("uponSanitizeAttribute",e,i),h=i.attrValue,i.forceKeepAttr)continue;if(bt(a,e),!i.keepAttr)continue;if(!_e&&w(/\/>/i,h)){bt(a,e);continue}Ee&&c([le,ue,ce],(e=>{h=m(h,e," ")}));const p=ot(e.nodeName);if(St(p,u,h)){if(!Re||"id"!==u&&"name"!==u||(bt(a,e),h=Be+h),ee&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(s);else switch(z.getAttributeType(p,u)){case"TrustedHTML":h=ee.createHTML(h);break;case"TrustedScriptURL":h=ee.createScriptURL(h)}try{s?e.setAttributeNS(s,a,h):e.setAttribute(a,h),d(n.removed)}catch(e){}}}xt("afterSanitizeAttributes",e,null)},_t=function e(t){let i=null;const n=yt(t);for(xt("beforeSanitizeShadowDOM",t,null);i=n.nextNode();){if(xt("uponSanitizeShadowNode",i,null),At(i))continue;const t=J(i);1===i.nodeType&&(t&&t.__depth?i.__depth=(i.__removalCount||0)+t.__depth+1:i.__depth=1),i.__depth>=at&&mt(i),i.content instanceof u&&(i.content.__depth=i.__depth,e(i.content)),Tt(i)}xt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,r=null,s=null;if(Ze=!e,Ze&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ct(e)){if("function"!=typeof e.toString)throw C("toString is not a function");if("string"!=typeof(e=e.toString()))throw C("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||ut(t),n.removed=[],"string"==typeof e&&(He=!1),He){if(e.nodeName){const t=ot(e.nodeName);if(!be[t]||xe[t])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof A)i=vt("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!Ie&&!Ee&&!Pe&&-1===e.indexOf("<"))return ee&&Ue?ee.createHTML(e):e;if(i=vt(e),!i)return Ie?null:Ue?te:""}i&&Ne&&mt(i.firstChild);const l=yt(He?e:i);for(;r=l.nextNode();){if(At(r))continue;const e=J(r);1===r.nodeType&&(e&&e.__depth?r.__depth=(r.__removalCount||0)+e.__depth+1:r.__depth=1),r.__depth>=at&&mt(r),r.content instanceof u&&(r.content.__depth=r.__depth,_t(r.content)),Tt(r)}if(He)return e;if(Ie){if(De)for(s=oe.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ye.shadowroot||ye.shadowrootmode)&&(s=ae.call(a,s,!0)),s}let d=Pe?i.outerHTML:i.innerHTML;return Pe&&be["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&w(W,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Ee&&c([le,ue,ce],(e=>{d=m(d,e," ")})),ee&&Ue?ee.createHTML(d):d},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},n.clearConfig=function(){rt=null,Me=!1},n.isValidAttribute=function(e,t,i){rt||ut({});const n=ot(e),o=ot(t);return St(n,o,i)},n.addHook=function(e,t){"function"==typeof t&&(se[e]=se[e]||[],h(se[e],t))},n.removeHook=function(e){if(se[e])return d(se[e])},n.removeHooks=function(e){se[e]&&(se[e]=[])},n.removeAllHooks=function(){se={}},n}()}()},8552:(e,t,i)=>{var n=i(852)(i(5639),"DataView");e.exports=n},1989:(e,t,i)=>{var n=i(1789),o=i(401),r=i(7667),a=i(1327),s=i(1866);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,e.exports=l},8407:(e,t,i)=>{var n=i(7040),o=i(4125),r=i(2117),a=i(7529),s=i(4705);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,e.exports=l},7071:(e,t,i)=>{var n=i(852)(i(5639),"Map");e.exports=n},3369:(e,t,i)=>{var n=i(4785),o=i(1285),r=i(6e3),a=i(9916),s=i(5265);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,e.exports=l},3818:(e,t,i)=>{var n=i(852)(i(5639),"Promise");e.exports=n},8525:(e,t,i)=>{var n=i(852)(i(5639),"Set");e.exports=n},8668:(e,t,i)=>{var n=i(3369),o=i(619),r=i(2385);function a(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=r,e.exports=a},6384:(e,t,i)=>{var n=i(8407),o=i(7465),r=i(3779),a=i(7599),s=i(4758),l=i(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=r,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,i)=>{var n=i(5639).Symbol;e.exports=n},1149:(e,t,i)=>{var n=i(5639).Uint8Array;e.exports=n},577:(e,t,i)=>{var n=i(852)(i(5639),"WeakMap");e.exports=n},4174:e=>{e.exports=function(e,t,i,n){for(var o=-1,r=null==e?0:e.length;++o<r;){var a=e[o];t(n,a,i(a),e)}return n}},7412:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}},4963:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,o=0,r=[];++i<n;){var a=e[i];t(a,i,e)&&(r[o++]=a)}return r}},4636:(e,t,i)=>{var n=i(2545),o=i(5694),r=i(1469),a=i(4144),s=i(5776),l=i(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=r(e),c=!i&&o(e),d=!i&&!c&&a(e),h=!i&&!c&&!d&&l(e),p=i||c||d||h,f=p?n(e.length,String):[],g=f.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},9932:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,o=Array(n);++i<n;)o[i]=t(e[i],i,e);return o}},2488:e=>{e.exports=function(e,t){for(var i=-1,n=t.length,o=e.length;++i<n;)e[o+i]=t[i];return e}},2663:e=>{e.exports=function(e,t,i,n){var o=-1,r=null==e?0:e.length;for(n&&r&&(i=e[++o]);++o<r;)i=t(i,e[o],o,e);return i}},2908:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},4286:e=>{e.exports=function(e){return e.split("")}},9029:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},8470:(e,t,i)=>{var n=i(7813);e.exports=function(e,t){for(var i=e.length;i--;)if(n(e[i][0],t))return i;return-1}},1119:(e,t,i)=>{var n=i(9881);e.exports=function(e,t,i,o){return n(e,(function(e,n,r){t(o,e,i(e),r)})),o}},9465:(e,t,i)=>{var n=i(8777);e.exports=function(e,t,i){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},3118:(e,t,i)=>{var n=i(3218),o=Object.create,r=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();e.exports=r},9881:(e,t,i)=>{var n=i(7816),o=i(9291)(n);e.exports=o},8483:(e,t,i)=>{var n=i(5063)();e.exports=n},7816:(e,t,i)=>{var n=i(8483),o=i(3674);e.exports=function(e,t){return e&&n(e,t,o)}},7786:(e,t,i)=>{var n=i(1811),o=i(327);e.exports=function(e,t){for(var i=0,r=(t=n(t,e)).length;null!=e&&i<r;)e=e[o(t[i++])];return i&&i==r?e:void 0}},8866:(e,t,i)=>{var n=i(2488),o=i(1469);e.exports=function(e,t,i){var r=t(e);return o(e)?r:n(r,i(e))}},4239:(e,t,i)=>{var n=i(2705),o=i(9607),r=i(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):r(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,i)=>{var n=i(4239),o=i(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},939:(e,t,i)=>{var n=i(2492),o=i(7005);e.exports=function e(t,i,r,a,s){return t===i||(null==t||null==i||!o(t)&&!o(i)?t!=t&&i!=i:n(t,i,r,a,e,s))}},2492:(e,t,i)=>{var n=i(6384),o=i(7114),r=i(8351),a=i(6096),s=i(4160),l=i(1469),u=i(4144),c=i(6719),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,g,m,b){var v=l(e),y=l(t),w=v?h:s(e),C=y?h:s(t),x=(w=w==d?p:w)==p,A=(C=C==d?p:C)==p,S=w==C;if(S&&u(e)){if(!u(t))return!1;v=!0,x=!1}if(S&&!x)return b||(b=new n),v||c(e)?o(e,t,i,g,m,b):r(e,t,w,i,g,m,b);if(!(1&i)){var k=x&&f.call(e,"__wrapped__"),T=A&&f.call(t,"__wrapped__");if(k||T){var _=k?e.value():e,E=T?t.value():t;return b||(b=new n),m(_,E,i,g,b)}}return!!S&&(b||(b=new n),a(e,t,i,g,m,b))}},2958:(e,t,i)=>{var n=i(6384),o=i(939);e.exports=function(e,t,i,r){var a=i.length,s=a,l=!r;if(null==e)return!s;for(e=Object(e);a--;){var u=i[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=i[a])[0],d=e[c],h=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var p=new n;if(r)var f=r(d,h,c,e,t,p);if(!(void 0===f?o(h,d,3,r,p):f))return!1}}return!0}},8458:(e,t,i)=>{var n=i(3560),o=i(5346),r=i(3218),a=i(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||o(e))&&(n(e)?h:s).test(a(e))}},8749:(e,t,i)=>{var n=i(4239),o=i(1780),r=i(7005),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 r(e)&&o(e.length)&&!!a[n(e)]}},7206:(e,t,i)=>{var n=i(1573),o=i(6432),r=i(6557),a=i(1469),s=i(9601);e.exports=function(e){return"function"==typeof e?e:null==e?r:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},280:(e,t,i)=>{var n=i(5726),o=i(6916),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var i in Object(e))r.call(e,i)&&"constructor"!=i&&t.push(i);return t}},1573:(e,t,i)=>{var n=i(2958),o=i(1499),r=i(2634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?r(t[0][0],t[0][1]):function(i){return i===e||n(i,e,t)}}},6432:(e,t,i)=>{var n=i(939),o=i(7361),r=i(9095),a=i(5403),s=i(9162),l=i(2634),u=i(327);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(i){var a=o(i,e);return void 0===a&&a===t?r(i,e):n(t,a,3)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,i)=>{var n=i(7786);e.exports=function(e){return function(t){return n(t,e)}}},8674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},4259:e=>{e.exports=function(e,t,i){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(i=i>o?o:i)<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(o);++n<o;)r[n]=e[n+t];return r}},2545:e=>{e.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},531:(e,t,i)=>{var n=i(2705),o=i(9932),r=i(1469),a=i(3448),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,i)=>{var n=i(1469),o=i(5403),r=i(5514),a=i(9833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:r(a(e))}},180:(e,t,i)=>{var n=i(4259);e.exports=function(e,t,i){var o=e.length;return i=void 0===i?o:i,!t&&i>=o?e:n(e,t,i)}},4429:(e,t,i)=>{var n=i(5639)["__core-js_shared__"];e.exports=n},5189:(e,t,i)=>{var n=i(4174),o=i(1119),r=i(7206),a=i(1469);e.exports=function(e,t){return function(i,s){var l=a(i)?n:o,u=t?t():{};return l(i,e,r(s,2),u)}}},9291:(e,t,i)=>{var n=i(8612);e.exports=function(e,t){return function(i,o){if(null==i)return i;if(!n(i))return e(i,o);for(var r=i.length,a=t?r:-1,s=Object(i);(t?a--:++a<r)&&!1!==o(s[a],a,s););return i}}},5063:e=>{e.exports=function(e){return function(t,i,n){for(var o=-1,r=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===i(r[l],l,r))break}return t}}},8805:(e,t,i)=>{var n=i(180),o=i(2689),r=i(3140),a=i(9833);e.exports=function(e){return function(t){t=a(t);var i=o(t)?r(t):void 0,s=i?i[0]:t.charAt(0),l=i?n(i,1).join(""):t.slice(1);return s[e]()+l}}},5393:(e,t,i)=>{var n=i(2663),o=i(3816),r=i(8748),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(r(o(t).replace(a,"")),e,"")}}},9389:(e,t,i)=>{var n=i(8674)({À:"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=n},8777:(e,t,i)=>{var n=i(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},7114:(e,t,i)=>{var n=i(8668),o=i(2908),r=i(4757);e.exports=function(e,t,i,a,s,l){var u=1&i,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))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&i?new n:void 0;for(l.set(e,t),l.set(t,e);++f<c;){var b=e[f],v=t[f];if(a)var y=u?a(v,b,f,t,e,l):a(b,v,f,e,t,l);if(void 0!==y){if(y)continue;g=!1;break}if(m){if(!o(t,(function(e,t){if(!r(m,t)&&(b===e||s(b,e,i,a,l)))return m.push(t)}))){g=!1;break}}else if(b!==v&&!s(b,v,i,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},8351:(e,t,i)=>{var n=i(2705),o=i(1149),r=i(7813),a=i(7114),s=i(8776),l=i(1814),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,i,n,u,d,h){switch(i){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||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+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&n;if(p||(p=l),e.size!=t.size&&!f)return!1;var g=h.get(e);if(g)return g==t;n|=2,h.set(e,t);var m=a(p(e),p(t),n,u,d,h);return h.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,i)=>{var n=i(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,r,a,s){var l=1&i,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:o.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;++d<c;){var b=e[h=u[d]],v=t[h];if(r)var y=l?r(v,b,h,t,e,s):r(b,v,h,e,t,s);if(!(void 0===y?b===v||a(b,v,i,r,s):y)){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}},1957:(e,t,i)=>{var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=n},8234:(e,t,i)=>{var n=i(8866),o=i(9551),r=i(3674);e.exports=function(e){return n(e,r,o)}},5050:(e,t,i)=>{var n=i(7019);e.exports=function(e,t){var i=e.__data__;return n(t)?i["string"==typeof t?"string":"hash"]:i.map}},1499:(e,t,i)=>{var n=i(9162),o=i(3674);e.exports=function(e){for(var t=o(e),i=t.length;i--;){var r=t[i],a=e[r];t[i]=[r,a,n(a)]}return t}},852:(e,t,i)=>{var n=i(8458),o=i(7801);e.exports=function(e,t){var i=o(e,t);return n(i)?i:void 0}},5924:(e,t,i)=>{var n=i(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,i)=>{var n=i(2705),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),i=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=i:delete e[s]),o}},9551:(e,t,i)=>{var n=i(4963),o=i(479),r=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return r.call(e,t)})))}:o;e.exports=s},4160:(e,t,i)=>{var n=i(8552),o=i(7071),r=i(3818),a=i(8525),s=i(577),l=i(4239),u=i(346),c="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",g=u(n),m=u(o),b=u(r),v=u(a),y=u(s),w=l;(n&&w(new n(new ArrayBuffer(1)))!=f||o&&w(new o)!=c||r&&w(r.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=l(e),i="[object Object]"==t?e.constructor:void 0,n=i?u(i):"";if(n)switch(n){case g:return f;case m:return c;case b:return d;case v:return h;case y:return p}return t}),e.exports=w},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,i)=>{var n=i(1811),o=i(5694),r=i(1469),a=i(5776),s=i(1780),l=i(327);e.exports=function(e,t,i){for(var u=-1,c=(t=n(t,e)).length,d=!1;++u<c;){var h=l(t[u]);if(!(d=null!=e&&i(e,h)))break;e=e[h]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(h,c)&&(r(e)||o(e))}},2689:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},3157: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)}},1789:(e,t,i)=>{var n=i(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,i)=>{var n=i(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return o.call(t,e)?t[e]:void 0}},1327:(e,t,i)=>{var n=i(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,i)=>{var n=i(4536);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var n=typeof e;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<i}},5403:(e,t,i)=>{var n=i(1469),o=i(3448),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!o(e))||a.test(e)||!r.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,i)=>{var n,o=i(4429),r=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!r&&r in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},9162:(e,t,i)=>{var n=i(3218);e.exports=function(e){return e==e&&!n(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,i)=>{var n=i(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0||(i==t.length-1?t.pop():o.call(t,i,1),--this.size,0))}},2117:(e,t,i)=>{var n=i(8470);e.exports=function(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}},7529:(e,t,i)=>{var n=i(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,i)=>{var n=i(8470);e.exports=function(e,t){var i=this.__data__,o=n(i,e);return o<0?(++this.size,i.push([e,t])):i[o][1]=t,this}},4785:(e,t,i)=>{var n=i(1989),o=i(8407),r=i(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(r||o),string:new n}}},1285:(e,t,i)=>{var n=i(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,i)=>{var n=i(5050);e.exports=function(e,t){var i=n(this,e),o=i.size;return i.set(e,t),this.size+=i.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}},2634:e=>{e.exports=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}}},4523:(e,t,i)=>{var n=i(8306);e.exports=function(e){var t=n(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}},4536:(e,t,i)=>{var n=i(852)(Object,"create");e.exports=n},6916:(e,t,i)=>{var n=i(5569)(Object.keys,Object);e.exports=n},1167:(e,t,i)=>{e=i.nmd(e);var n=i(1957),o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,a=r&&r.exports===o&&n.process,s=function(){try{return r&&r.require&&r.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(i){return e(t(i))}}},5639:(e,t,i)=>{var n=i(1957),o="object"==typeof self&&self&&self.Object===Object&&self,r=n||o||Function("return this")();e.exports=r},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}},7465:(e,t,i)=>{var n=i(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,i)=>{var n=i(8407),o=i(7071),r=i(3369);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var a=i.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(e,t),this.size=i.size,this}},3140:(e,t,i)=>{var n=i(4286),o=i(2689),r=i(676);e.exports=function(e){return o(e)?r(e):n(e)}},5514:(e,t,i)=>{var n=i(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,i,n,o){t.push(n?o.replace(r,"$1"):i||e)})),t}));e.exports=a},327:(e,t,i)=>{var n=i(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346: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""}},676:e=>{var t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",n="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",r="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+t+"|"+i+")?",s="[\\ufe0e\\ufe0f]?",l=s+a+"(?:\\u200d(?:"+[n,o,r].join("|")+")"+s+a+")*",u="(?:"+[n+t+"?",t,o,r,"[\\ud800-\\udfff]"].join("|")+")",c=RegExp(i+"(?="+i+")|"+u+l,"g");e.exports=function(e){return e.match(c)||[]}},2757:e=>{var t="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",n="\\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",o="["+n+"]",r="\\d+",a="["+t+"]",s="[^\\ud800-\\udfff"+n+r+"\\u2700-\\u27bf"+t+i+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="["+i+"]",d="(?:"+a+"|"+s+")",h="(?:"+c+"|"+s+")",p="(?:['’](?:d|ll|m|re|s|t|ve))?",f="(?:['’](?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",m="[\\ufe0e\\ufe0f]?",b=m+g+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,u].join("|")+")"+m+g+")*",v="(?:"+["[\\u2700-\\u27bf]",l,u].join("|")+")"+b,y=RegExp([c+"?"+a+"+"+p+"(?="+[o,c,"$"].join("|")+")",h+"+"+f+"(?="+[o,c+d,"$"].join("|")+")",c+"?"+d+"+"+p,c+"+"+f,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",r,v].join("|"),"g");e.exports=function(e){return e.match(y)||[]}},8929:(e,t,i)=>{var n=i(8403),o=i(5393)((function(e,t,i){return t=t.toLowerCase(),e+(i?n(t):t)}));e.exports=o},8403:(e,t,i)=>{var n=i(9833),o=i(1700);e.exports=function(e){return o(n(e).toLowerCase())}},3816:(e,t,i)=>{var n=i(9389),o=i(9833),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(r,n).replace(a,"")}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,i)=>{var n=i(7786);e.exports=function(e,t,i){var o=null==e?void 0:n(e,t);return void 0===o?i:o}},7739:(e,t,i)=>{var n=i(9465),o=i(5189),r=Object.prototype.hasOwnProperty,a=o((function(e,t,i){r.call(e,i)?e[i].push(t):n(e,i,[t])}));e.exports=a},9095:(e,t,i)=>{var n=i(13),o=i(222);e.exports=function(e,t){return null!=e&&o(e,t,n)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,i)=>{var n=i(9454),o=i(7005),r=Object.prototype,a=r.hasOwnProperty,s=r.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,i)=>{var n=i(3560),o=i(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4144:(e,t,i)=>{e=i.nmd(e);var n=i(5639),o=i(5062),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,s=a&&a.exports===r?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},8367:(e,t,i)=>{var n=i(280),o=i(4160),r=i(5694),a=i(1469),s=i(8612),l=i(4144),u=i(5726),c=i(6719),d=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)||c(e)||r(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var i in e)if(d.call(e,i))return!1;return!0}},3560:(e,t,i)=>{var n=i(4239),o=i(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,i)=>{var n=i(4239),o=i(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6719:(e,t,i)=>{var n=i(8749),o=i(7518),r=i(1167),a=r&&r.isTypedArray,s=a?o(a):n;e.exports=s},3674:(e,t,i)=>{var n=i(4636),o=i(280),r=i(8612);e.exports=function(e){return r(e)?n(e):o(e)}},6604:(e,t,i)=>{var n=i(9465),o=i(7816),r=i(7206);e.exports=function(e,t){var i={};return t=r(t,3),o(e,(function(e,o,r){n(i,o,t(e,o,r))})),i}},8306:(e,t,i)=>{var n=i(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var a=e.apply(this,n);return i.cache=r.set(o,a)||r,a};return i.cache=new(o.Cache||n),i}o.Cache=n,e.exports=o},308:e=>{e.exports=function(){}},9601:(e,t,i)=>{var n=i(371),o=i(9152),r=i(5403),a=i(327);e.exports=function(e){return r(e)?n(a(e)):o(e)}},1865:(e,t,i)=>{var n=i(5393)((function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}));e.exports=n},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,i)=>{var n=i(531);e.exports=function(e){return null==e?"":n(e)}},8718:(e,t,i)=>{var n=i(7412),o=i(3118),r=i(7816),a=i(7206),s=i(5924),l=i(1469),u=i(4144),c=i(3560),d=i(3218),h=i(6719);e.exports=function(e,t,i){var p=l(e),f=p||u(e)||h(e);if(t=a(t,4),null==i){var g=e&&e.constructor;i=f?p?new g:[]:d(e)&&c(g)?o(s(e)):{}}return(f?n:r)(e,(function(e,n,o){return t(i,e,n,o)})),i}},1700:(e,t,i)=>{var n=i(8805)("toUpperCase");e.exports=n},8748:(e,t,i)=>{var n=i(9029),o=i(3157),r=i(9833),a=i(2757);e.exports=function(e,t,i){return e=r(e),void 0===(t=i?void 0:t)?o(e)?a(e):n(e):e.match(t)||[]}},9594:function(e,t,i){e.exports=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};function t(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function o(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i}function r(e,t,i,n){return new(i||(i=Promise))((function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function a(e,t){var i,n,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return a}function u(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},d={exports:{}};!function(e){!function(t,i){var n=Math.pow(2,-24),o=Math.pow(2,32),r=Math.pow(2,53),a={encode:function(e){var t,n=new ArrayBuffer(256),a=new DataView(n),s=0;function l(e){for(var i=n.byteLength,o=s+e;i<o;)i*=2;if(i!==n.byteLength){var r=a;n=new ArrayBuffer(i),a=new DataView(n);for(var l=s+3>>2,u=0;u<l;++u)a.setUint32(4*u,r.getUint32(4*u))}return t=e,a}function u(){s+=t}function c(e){u(l(1).setUint8(s,e))}function d(e){for(var t=l(e.length),i=0;i<e.length;++i)t.setUint8(s+i,e[i]);u()}function h(e,t){t<24?c(e<<5|t):t<256?(c(e<<5|24),c(t)):t<65536?(c(e<<5|25),function(e){u(l(2).setUint16(s,e))}(t)):t<4294967296?(c(e<<5|26),function(e){u(l(4).setUint32(s,e))}(t)):(c(e<<5|27),function(e){var t=e%o,i=(e-t)/o,n=l(8);n.setUint32(s,i),n.setUint32(s+4,t),u()}(t))}if(function e(t){var n;if(!1===t)return c(244);if(!0===t)return c(245);if(null===t)return c(246);if(t===i)return c(247);switch(typeof t){case"number":if(Math.floor(t)===t){if(0<=t&&t<=r)return h(0,t);if(-r<=t&&t<0)return h(1,-(t+1))}return c(251),function(e){u(l(8).setFloat64(s,e))}(t);case"string":var o=[];for(n=0;n<t.length;++n){var a=t.charCodeAt(n);a<128?o.push(a):a<2048?(o.push(192|a>>6),o.push(128|63&a)):a<55296?(o.push(224|a>>12),o.push(128|a>>6&63),o.push(128|63&a)):(a=(1023&a)<<10,a|=1023&t.charCodeAt(++n),a+=65536,o.push(240|a>>18),o.push(128|a>>12&63),o.push(128|a>>6&63),o.push(128|63&a))}return h(3,o.length),d(o);default:var p;if(Array.isArray(t))for(h(4,p=t.length),n=0;n<p;++n)e(t[n]);else if(t instanceof Uint8Array)h(2,t.length),d(t);else{var f=Object.keys(t);for(h(5,p=f.length),n=0;n<p;++n){var g=f[n];e(g),e(t[g])}}}}(e),"slice"in n)return n.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,r){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 c(){return l(a.getUint8(s),1)}function d(){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 c();if(25===e)return d();if(26===e)return h();if(27===e)return h()*o+h();if(31===e)return-1;throw"Invalid length encoding"}function g(e){var t=c();if(255===t)return-1;var i=f(31&t);if(i<0||t>>5!==e)throw"Invalid indefinite length element";return i}function m(e,t){for(var i=0;i<t;++i){var n=c();128&n&&(n<224?(n=(31&n)<<6|63&c(),t-=1):n<240?(n=(15&n)<<12|(63&c())<<6|63&c(),t-=2):(n=(15&n)<<18|(63&c())<<12|(63&c())<<6|63&c(),t-=3)),n<65536?e.push(n):(n-=65536,e.push(55296|n>>10),e.push(56320|1023&n))}}"function"!=typeof t&&(t=function(e){return e}),"function"!=typeof r&&(r=function(){return i});var b=function e(){var o,h,b=c(),v=b>>5,y=31&b;if(7===v)switch(y){case 25:return function(){var e=new ArrayBuffer(4),t=new DataView(e),i=d(),o=32768&i,r=31744&i,a=1023&i;if(31744===r)r=261120;else if(0!==r)r+=114688;else if(0!==a)return a*n;return t.setUint32(0,o<<16|r<<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(y))<0&&(v<2||6<v))throw"Invalid length";switch(v){case 0:return h;case 1:return-1-h;case 2:if(h<0){for(var w=[],C=0;(h=g(v))>=0;)C+=h,w.push(u(h));var x=new Uint8Array(C),A=0;for(o=0;o<w.length;++o)x.set(w[o],A),A+=w[o].length;return x}return u(h);case 3:var S=[];if(h<0)for(;(h=g(v))>=0;)m(S,h);else m(S,h);return String.fromCharCode.apply(null,S);case 4:var k;if(h<0)for(k=[];!p();)k.push(e());else for(k=new Array(h),o=0;o<h;++o)k[o]=e();return k;case 5:var T={};for(o=0;o<h||h<0&&!p();++o)T[e()]=e();return T;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 i;default:return r(h)}}}();if(s!==e.byteLength)throw"Remaining bytes";return b}};e.exports?e.exports=a:t.CBOR||(t.CBOR=a)}(c)}(d);var h=d.exports,p={exports:{}};!function(e,t){!function(e){var t={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,i="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(i+="-"),i+=(12===e?4:16===e?3&t|8:t).toString(16);return i}function n(e,i){var n=t[i||"all"];return n&&n.test(e)||!1}i.isUUID=n,i.VERSION="0.1.0",e.uuid=i,e.isUUID=n}(t),null!==e&&(e.exports=t.uuid)}(p,p.exports);var f=p.exports,g=function(){return f.uuid?f.uuid():f()},m=function(){function e(e){var t,i,n,o=e.setup;if(this._PNSDKSuffix={},this.instanceId="pn-".concat(g()),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.setCipherKey(o.cipherKey),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===(i=o.useRandomIVs)||void 0===i||i,this.enableSubscribeBeta=null!==(n=o.enableSubscribeBeta)&&void 0!==n&&n,"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,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)}}return e.prototype.getAuthKey=function(){return this.authKey},e.prototype.setAuthKey=function(e){return this.authKey=e,this},e.prototype.setCipherKey=function(e){return this.cipherKey=e,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 e>=20?this._presenceTimeout=e:(this._presenceTimeout=20,console.log("WARNING: Presence timeout is less than the minimum. Using minimum value: ",this._presenceTimeout)),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.2.2"},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(i,n){return i+e+t._PNSDKSuffix[n]}),"")},e}();function b(e){var t=e.replace(/==?$/,""),i=Math.floor(t.length/4*3),n=new ArrayBuffer(i),o=new Uint8Array(n),r=0;function a(){var e=t.charAt(r++),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);if(-1===i)throw new Error("Illegal character at ".concat(r,": ").concat(t.charAt(r-1)));return i}for(var s=0;s<i;s+=3){var l=a(),u=a(),c=a(),d=a(),h=(63&l)<<2|u>>4,p=(15&u)<<4|c>>2,f=(3&c)<<6|d>>0;o[s]=h,64!=c&&(o[s+1]=p),64!=d&&(o[s+2]=f)}return n}var v,y,w,C,x,A=A||function(e,t){var i={},n=i.lib={},o=function(){},r=n.Base={extend:function(e){o.prototype=this;var t=new o;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)}},a=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||l).stringify(this)},concat:function(e){var t=this.words,i=e.words,n=this.sigBytes;if(e=e.sigBytes,this.clamp(),n%4)for(var o=0;o<e;o++)t[n+o>>>2]|=(i[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else if(65535<i.length)for(o=0;o<e;o+=4)t[n+o>>>2]=i[o>>>2];else t.push.apply(t,i);return this.sigBytes+=e,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=e.ceil(i/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var i=[],n=0;n<t;n+=4)i.push(4294967296*e.random()|0);return new a.init(i,t)}}),s=i.enc={},l=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],n=0;n<e;n++){var o=t[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n<t;n+=2)i[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(i,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],n=0;n<e;n++)i.push(String.fromCharCode(t[n>>>2]>>>24-n%4*8&255));return i.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n<t;n++)i[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(i,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=n.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var i=this._data,n=i.words,o=i.sigBytes,r=this.blockSize,s=o/(4*r);if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,o=e.min(4*t,o),t){for(var l=0;l<t;l+=r)this._doProcessBlock(n,l);l=n.splice(0,t),i.sigBytes-=o}return new a.init(l,o)},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,i){return new e.init(i).finalize(t)}},_createHmacHelper:function(e){return function(t,i){return new h.HMAC.init(e,i).finalize(t)}}});var h=i.algo={};return i}(Math);!function(e){for(var t=A,i=(o=t.lib).WordArray,n=o.Hasher,o=t.algo,r=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},l=2,u=0;64>u;){var c;e:{c=l;for(var d=e.sqrt(c),h=2;h<=d;h++)if(!(c%h)){c=!1;break e}c=!0}c&&(8>u&&(r[u]=s(e.pow(l,.5))),a[u]=s(e.pow(l,1/3)),u++),l++}var p=[];o=o.SHA256=n.extend({_doReset:function(){this._hash=new i.init(r.slice(0))},_doProcessBlock:function(e,t){for(var i=this._hash.words,n=i[0],o=i[1],r=i[2],s=i[3],l=i[4],u=i[5],c=i[6],d=i[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=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&c)+a[h]+p[h],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&o^n&r^o&r),d=c,c=u,u=l,l=s+f|0,s=r,r=o,o=n,n=f+g|0}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+r|0,i[3]=i[3]+s|0,i[4]=i[4]+l|0,i[5]=i[5]+u|0,i[6]=i[6]+c|0,i[7]=i[7]+d|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return i[o>>>5]|=128<<24-o%32,i[14+(o+64>>>9<<4)]=e.floor(n/4294967296),i[15+(o+64>>>9<<4)]=n,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=n._createHelper(o),t.HmacSHA256=n._createHmacHelper(o)}(Math),y=(v=A).enc.Utf8,v.algo.HMAC=v.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=y.parse(t));var i=e.blockSize,n=4*i;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),r=this._iKey=t.clone(),a=o.words,s=r.words,l=0;l<i;l++)a[l]^=1549556828,s[l]^=909522486;o.sigBytes=r.sigBytes=n,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))}}),C=(w=A).lib.WordArray,w.enc.Base64={stringify:function(e){var t=e.words,i=e.sigBytes,n=this._map;e.clamp(),e=[];for(var o=0;o<i;o+=3)for(var r=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;4>a&&o+.75*a<i;a++)e.push(n.charAt(r>>>6*(3-a)&63));if(t=n.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,i=this._map;(n=i.charAt(64))&&-1!=(n=e.indexOf(n))&&(t=n);for(var n=[],o=0,r=0;r<t;r++)if(r%4){var a=i.indexOf(e.charAt(r-1))<<r%4*2,s=i.indexOf(e.charAt(r))>>>6-r%4*2;n[o>>>2]|=(a|s)<<24-o%4*8,o++}return C.create(n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){function t(e,t,i,n,o,r,a){return((e=e+(t&i|~t&n)+o+a)<<r|e>>>32-r)+t}function i(e,t,i,n,o,r,a){return((e=e+(t&n|i&~n)+o+a)<<r|e>>>32-r)+t}function n(e,t,i,n,o,r,a){return((e=e+(t^i^n)+o+a)<<r|e>>>32-r)+t}function o(e,t,i,n,o,r,a){return((e=e+(i^(t|~n))+o+a)<<r|e>>>32-r)+t}for(var r=A,a=(l=r.lib).WordArray,s=l.Hasher,l=r.algo,u=[],c=0;64>c;c++)u[c]=4294967296*e.abs(e.sin(c+1))|0;l=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,r){for(var a=0;16>a;a++){var s=e[l=r+a];e[l]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}a=this._hash.words;var l=e[r+0],c=(s=e[r+1],e[r+2]),d=e[r+3],h=e[r+4],p=e[r+5],f=e[r+6],g=e[r+7],m=e[r+8],b=e[r+9],v=e[r+10],y=e[r+11],w=e[r+12],C=e[r+13],x=e[r+14],A=e[r+15],S=t(S=a[0],_=a[1],T=a[2],k=a[3],l,7,u[0]),k=t(k,S,_,T,s,12,u[1]),T=t(T,k,S,_,c,17,u[2]),_=t(_,T,k,S,d,22,u[3]);S=t(S,_,T,k,h,7,u[4]),k=t(k,S,_,T,p,12,u[5]),T=t(T,k,S,_,f,17,u[6]),_=t(_,T,k,S,g,22,u[7]),S=t(S,_,T,k,m,7,u[8]),k=t(k,S,_,T,b,12,u[9]),T=t(T,k,S,_,v,17,u[10]),_=t(_,T,k,S,y,22,u[11]),S=t(S,_,T,k,w,7,u[12]),k=t(k,S,_,T,C,12,u[13]),T=t(T,k,S,_,x,17,u[14]),S=i(S,_=t(_,T,k,S,A,22,u[15]),T,k,s,5,u[16]),k=i(k,S,_,T,f,9,u[17]),T=i(T,k,S,_,y,14,u[18]),_=i(_,T,k,S,l,20,u[19]),S=i(S,_,T,k,p,5,u[20]),k=i(k,S,_,T,v,9,u[21]),T=i(T,k,S,_,A,14,u[22]),_=i(_,T,k,S,h,20,u[23]),S=i(S,_,T,k,b,5,u[24]),k=i(k,S,_,T,x,9,u[25]),T=i(T,k,S,_,d,14,u[26]),_=i(_,T,k,S,m,20,u[27]),S=i(S,_,T,k,C,5,u[28]),k=i(k,S,_,T,c,9,u[29]),T=i(T,k,S,_,g,14,u[30]),S=n(S,_=i(_,T,k,S,w,20,u[31]),T,k,p,4,u[32]),k=n(k,S,_,T,m,11,u[33]),T=n(T,k,S,_,y,16,u[34]),_=n(_,T,k,S,x,23,u[35]),S=n(S,_,T,k,s,4,u[36]),k=n(k,S,_,T,h,11,u[37]),T=n(T,k,S,_,g,16,u[38]),_=n(_,T,k,S,v,23,u[39]),S=n(S,_,T,k,C,4,u[40]),k=n(k,S,_,T,l,11,u[41]),T=n(T,k,S,_,d,16,u[42]),_=n(_,T,k,S,f,23,u[43]),S=n(S,_,T,k,b,4,u[44]),k=n(k,S,_,T,w,11,u[45]),T=n(T,k,S,_,A,16,u[46]),S=o(S,_=n(_,T,k,S,c,23,u[47]),T,k,l,6,u[48]),k=o(k,S,_,T,g,10,u[49]),T=o(T,k,S,_,x,15,u[50]),_=o(_,T,k,S,p,21,u[51]),S=o(S,_,T,k,w,6,u[52]),k=o(k,S,_,T,d,10,u[53]),T=o(T,k,S,_,v,15,u[54]),_=o(_,T,k,S,s,21,u[55]),S=o(S,_,T,k,m,6,u[56]),k=o(k,S,_,T,A,10,u[57]),T=o(T,k,S,_,f,15,u[58]),_=o(_,T,k,S,C,21,u[59]),S=o(S,_,T,k,h,6,u[60]),k=o(k,S,_,T,y,10,u[61]),T=o(T,k,S,_,c,15,u[62]),_=o(_,T,k,S,b,21,u[63]),a[0]=a[0]+S|0,a[1]=a[1]+_|0,a[2]=a[2]+T|0,a[3]=a[3]+k|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;i[o>>>5]|=128<<24-o%32;var r=e.floor(n/4294967296);for(i[15+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),i[14+(o+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(i.length+1),this._process(),i=(t=this._hash).words,n=0;4>n;n++)o=i[n],i[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);return t},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),r.MD5=s._createHelper(l),r.HmacMD5=s._createHmacHelper(l)}(Math),function(){var e,t=A,i=(e=t.lib).Base,n=e.WordArray,o=(e=t.algo).EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var i=(s=this.cfg).hasher.create(),o=n.create(),r=o.words,a=s.keySize,s=s.iterations;r.length<a;){l&&i.update(l);var l=i.update(e).finalize(t);i.reset();for(var u=1;u<s;u++)l=i.finalize(l),i.reset();o.concat(l)}return o.sigBytes=4*a,o}});t.EvpKDF=function(e,t,i){return o.create(i).compute(e,t)}}(),A.lib.Cipher||function(e){var t=(p=A).lib,i=t.Base,n=t.WordArray,o=t.BufferedBlockAlgorithm,r=p.enc.Base64,a=p.algo.EvpKDF,s=t.Cipher=o.extend({cfg:i.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,i){this.cfg=this.cfg.extend(i),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.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,i,n){return("string"==typeof i?f:h).encrypt(e,t,i,n)},decrypt:function(t,i,n){return("string"==typeof i?f:h).decrypt(e,t,i,n)}}}});t.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=p.mode={},u=function(e,t,i){var n=this._iv;n?this._iv=void 0:n=this._prevBlock;for(var o=0;o<i;o++)e[t+o]^=n[o]},c=(t.BlockCipherMode=i.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();c.Encryptor=c.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize;u.call(this,e,t,n),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+n)}}),c.Decryptor=c.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize,o=e.slice(t,t+n);i.decryptBlock(e,t),u.call(this,e,t,n),this._prevBlock=o}}),l=l.CBC=c,c=(p.pad={}).Pkcs7={pad:function(e,t){for(var i,o=(i=(i=4*t)-e.sigBytes%i)<<24|i<<16|i<<8|i,r=[],a=0;a<i;a+=4)r.push(o);i=n.create(r,i),e.concat(i)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=s.extend({cfg:s.cfg.extend({mode:l,padding:c}),reset:function(){s.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=t.createEncryptor;else i=t.createDecryptor,this._minBufferSize=1;this._mode=i.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=t.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),h=(l=(p.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})}},t.SerializableCipher=i.extend({cfg:i.extend({format:l}),encrypt:function(e,t,i,n){n=this.cfg.extend(n);var o=e.createEncryptor(i,n);return t=o.finalize(t),o=o.cfg,d.create({ciphertext:t,key:i,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,i,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(i,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),p=(p.kdf={}).OpenSSL={execute:function(e,t,i,o){return o||(o=n.random(8)),e=a.create({keySize:t+i}).compute(e,o),i=n.create(e.words.slice(t),4*i),e.sigBytes=4*t,d.create({key:e,iv:i,salt:o})}},f=t.PasswordBasedCipher=h.extend({cfg:h.cfg.extend({kdf:p}),encrypt:function(e,t,i,n){return i=(n=this.cfg.extend(n)).kdf.execute(i,e.keySize,e.ivSize),n.iv=i.iv,(e=h.encrypt.call(this,e,t,i.key,n)).mixIn(i),e},decrypt:function(e,t,i,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),i=n.kdf.execute(i,e.keySize,e.ivSize,t.salt),n.iv=i.iv,h.decrypt.call(this,e,t,i.key,n)}})}(),function(){for(var e=A,t=e.lib.BlockCipher,i=e.algo,n=[],o=[],r=[],a=[],s=[],l=[],u=[],c=[],d=[],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 b=(b=m^m<<1^m<<2^m<<3^m<<4)>>>8^255&b^99;n[g]=b,o[b]=g;var v=p[g],y=p[v],w=p[y],C=257*p[b]^16843008*b;r[g]=C<<24|C>>>8,a[g]=C<<16|C>>>16,s[g]=C<<8|C>>>24,l[g]=C,C=16843009*w^65537*y^257*v^16843008*g,u[b]=C<<24|C>>>8,c[b]=C<<16|C>>>16,d[b]=C<<8|C>>>24,h[b]=C,g?(g=v^p[p[p[w^v]]],m^=p[p[m]]):g=m=1}var x=[0,1,2,4,8,16,32,64,128,27,54];i=i.AES=t.extend({_doReset:function(){for(var e=(i=this._key).words,t=i.sigBytes/4,i=4*((this._nRounds=t+6)+1),o=this._keySchedule=[],r=0;r<i;r++)if(r<t)o[r]=e[r];else{var a=o[r-1];r%t?6<t&&4==r%t&&(a=n[a>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a]):(a=n[(a=a<<8|a>>>24)>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a],a^=x[r/t|0]<<24),o[r]=o[r-t]^a}for(e=this._invKeySchedule=[],t=0;t<i;t++)r=i-t,a=t%4?o[r]:o[r-4],e[t]=4>t||4>=r?a:u[n[a>>>24]]^c[n[a>>>16&255]]^d[n[a>>>8&255]]^h[n[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,a,s,l,n)},decryptBlock:function(e,t){var i=e[t+1];e[t+1]=e[t+3],e[t+3]=i,this._doCryptBlock(e,t,this._invKeySchedule,u,c,d,h,o),i=e[t+1],e[t+1]=e[t+3],e[t+3]=i},_doCryptBlock:function(e,t,i,n,o,r,a,s){for(var l=this._nRounds,u=e[t]^i[0],c=e[t+1]^i[1],d=e[t+2]^i[2],h=e[t+3]^i[3],p=4,f=1;f<l;f++){var g=n[u>>>24]^o[c>>>16&255]^r[d>>>8&255]^a[255&h]^i[p++],m=n[c>>>24]^o[d>>>16&255]^r[h>>>8&255]^a[255&u]^i[p++],b=n[d>>>24]^o[h>>>16&255]^r[u>>>8&255]^a[255&c]^i[p++];h=n[h>>>24]^o[u>>>16&255]^r[c>>>8&255]^a[255&d]^i[p++],u=g,c=m,d=b}g=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^i[p++],m=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^i[p++],b=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^i[p++],h=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^i[p++],e[t]=g,e[t+1]=m,e[t+2]=b,e[t+3]=h},keySize:8}),e.AES=t._createHelper(i)}(),A.mode.ECB=((x=A.lib.BlockCipherMode.extend()).Encryptor=x.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),x.Decryptor=x.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),x);var S=A;function k(e){var t,i=[];for(t=0;t<e.length;t+=1)i[t/4|0]|=e[t]<<24-8*t;return S.lib.WordArray.create(i,e.length)}var T=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 S.HmacSHA256(e,this._config.secretKey).toString(S.enc.Base64)},e.prototype.SHA256=function(e){return S.SHA256(e).toString(S.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?S.enc.Base64.parse(e):"hex"===t.keyEncoding?S.enc.Hex.parse(e):e},e.prototype._getPaddedKey=function(e,t){return e=this._decodeKey(e,t),t.encryptKey?S.enc.Utf8.parse(this.SHA256(e).slice(0,32)):e},e.prototype._getMode=function(e){return"ecb"===e.mode?S.mode.ECB:S.mode.CBC},e.prototype._getIV=function(e){return"cbc"===e.mode?S.enc.Utf8.parse(this._iv):null},e.prototype._getRandomIV=function(){return S.lib.WordArray.random(16)},e.prototype.encrypt=function(e,t,i){return this._config.customEncrypt?this._config.customEncrypt(e):this.pnEncrypt(e,t,i)},e.prototype.decrypt=function(e,t,i){return this._config.customDecrypt?this._config.customDecrypt(e):this.pnDecrypt(e,t,i)},e.prototype.pnEncrypt=function(e,t,i){if(!t&&!this._config.cipherKey)return e;i=this._parseOptions(i);var n=this._getMode(i),o=this._getPaddedKey(t||this._config.cipherKey,i);if(this._config.useRandomIVs){var r=this._getRandomIV(),a=S.AES.encrypt(e,o,{iv:r,mode:n}).ciphertext;return r.clone().concat(a.clone()).toString(S.enc.Base64)}var s=this._getIV(i);return S.AES.encrypt(e,o,{iv:s,mode:n}).ciphertext.toString(S.enc.Base64)||e},e.prototype.pnDecrypt=function(e,t,i){if(!t&&!this._config.cipherKey)return e;i=this._parseOptions(i);var n=this._getMode(i),o=this._getPaddedKey(t||this._config.cipherKey,i);if(this._config.useRandomIVs){var r=k((l=new Uint8ClampedArray(b(e))).slice(0,16)),a=k(l.slice(16));try{var s=S.AES.decrypt({ciphertext:a},o,{iv:r,mode:n}).toString(S.enc.Utf8);return JSON.parse(s)}catch(e){return null}}else{r=this._getIV(i);try{var l=S.enc.Base64.parse(e);return s=S.AES.decrypt({ciphertext:l},o,{iv:r,mode:n}).toString(S.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}(),E=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 i=0;i<e.length;i+=1)t=(t<<5)-t+e.charCodeAt(i),t&=t;return t}(JSON.stringify(e.payload)).toString(),i=e.publishMetaData.publishTimetoken;return"".concat(i,"-").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}();function O(e){return encodeURIComponent(e).replace(/[!~*'()]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}var P={signPamFromParams:function(e){return function(e){return function(e){var t=[];return Object.keys(e).forEach((function(e){return t.push(e)})),t}(e).sort()}(e).map((function(t){return"".concat(t,"=").concat(O(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(i,n){e=i,t=n})),reject:t,fulfill:e}},encodeString:O},M={PNNetworkUpCategory:"PNNetworkUpCategory",PNNetworkDownCategory:"PNNetworkDownCategory",PNNetworkIssuesCategory:"PNNetworkIssuesCategory",PNTimeoutCategory:"PNTimeoutCategory",PNBadRequestCategory:"PNBadRequestCategory",PNAccessDeniedCategory:"PNAccessDeniedCategory",PNUnknownCategory:"PNUnknownCategory",PNReconnectedCategory:"PNReconnectedCategory",PNConnectedCategory:"PNConnectedCategory",PNRequestMessageCountExceededCategory:"PNRequestMessageCountExceededCategory"},N=function(){function e(e){var t=e.subscribeEndpoint,i=e.leaveEndpoint,n=e.heartbeatEndpoint,o=e.setStateEndpoint,r=e.timeEndpoint,a=e.getFileUrl,s=e.config,l=e.crypto,u=e.listenerManager;this._listenerManager=u,this._config=s,this._leaveEndpoint=i,this._heartbeatEndpoint=n,this._setStateEndpoint=o,this._subscribeEndpoint=t,this._getFileUrl=a,this._crypto=l,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:r}),this._dedupingManager=new E({config:s})}return e.prototype.adaptStateChange=function(e,t){var i=this,n=e.state,o=e.channels,r=void 0===o?[]:o,a=e.channelGroups,s=void 0===a?[]:a;return r.forEach((function(e){e in i._channels&&(i._channels[e].state=n)})),s.forEach((function(e){e in i._channelGroups&&(i._channelGroups[e].state=n)})),this._setStateEndpoint({state:n,channels:r,channelGroups:s},t)},e.prototype.adaptPresenceChange=function(e){var t=this,i=e.connected,n=e.channels,o=void 0===n?[]:n,r=e.channelGroups,a=void 0===r?[]:r;i?(o.forEach((function(e){t._heartbeatChannels[e]={state:{}}})),a.forEach((function(e){t._heartbeatChannelGroups[e]={state:{}}}))):(o.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:o,channelGroups:a},(function(e){t._listenerManager.announceStatus(e)}))),this.reconnect()},e.prototype.adaptSubscribeChange=function(e){var t=this,i=e.timetoken,n=e.channels,o=void 0===n?[]:n,r=e.channelGroups,a=void 0===r?[]:r,s=e.withPresence,l=void 0!==s&&s,u=e.withHeartbeats,c=void 0!==u&&u;this._config.subscribeKey&&""!==this._config.subscribeKey?(i&&(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=i),"0"!==this._currentTimetoken&&0!==this._currentTimetoken&&(this._storedTimetoken=this._currentTimetoken,this._currentTimetoken=0),o.forEach((function(e){t._channels[e]={state:{}},l&&(t._presenceChannels[e]={}),(c||t._config.getHeartbeatInterval())&&(t._heartbeatChannels[e]={}),t._pendingChannelSubscriptions.push(e)})),a.forEach((function(e){t._channelGroups[e]={state:{}},l&&(t._presenceChannelGroups[e]={}),(c||t._config.getHeartbeatInterval())&&(t._heartbeatChannelGroups[e]={}),t._pendingChannelGroupSubscriptions.push(e)})),this._subscriptionStatusAnnounced=!1,this.reconnect()):console&&console.log&&console.log("subscribe key missing; aborting subscribe")},e.prototype.adaptUnsubscribeChange=function(e,t){var i=this,n=e.channels,o=void 0===n?[]:n,r=e.channelGroups,a=void 0===r?[]:r,s=[],l=[];o.forEach((function(e){e in i._channels&&(delete i._channels[e],s.push(e),e in i._heartbeatChannels&&delete i._heartbeatChannels[e]),e in i._presenceChannels&&(delete i._presenceChannels[e],s.push(e))})),a.forEach((function(e){e in i._channelGroups&&(delete i._channelGroups[e],l.push(e),e in i._heartbeatChannelGroups&&delete i._heartbeatChannelGroups[e]),e in i._presenceChannelGroups&&(delete i._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=i._currentTimetoken,e.lastTimetoken=i._lastTimetoken,i._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(),i=this.getHeartbeatChannelGroups(),n={};0===t.length&&0===i.length||(this.getSubscribedChannels().forEach((function(t){var i=e._channels[t].state;Object.keys(i).length&&(n[t]=i)})),this.getSubscribedChannelGroups().forEach((function(t){var i=e._channelGroups[t].state;Object.keys(i).length&&(n[t]=i)})),this._heartbeatEndpoint({channels:t,channelGroups:i,state:n},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={},i=[],n=[];if(Object.keys(this._channels).forEach((function(n){var o=e._channels[n].state;Object.keys(o).length&&(t[n]=o),i.push(n)})),Object.keys(this._presenceChannels).forEach((function(e){i.push("".concat(e,"-pnpres"))})),Object.keys(this._channelGroups).forEach((function(i){var o=e._channelGroups[i].state;Object.keys(o).length&&(t[i]=o),n.push(i)})),Object.keys(this._presenceChannelGroups).forEach((function(e){n.push("".concat(e,"-pnpres"))})),0!==i.length||0!==n.length){var o={channels:i,channelGroups:n,state:t,timetoken:this._currentTimetoken,filterExpression:this._config.filterExpression,region:this._region};this._subscribeCall=this._subscribeEndpoint(o,this._processSubscribeResponse.bind(this))}},e.prototype._processSubscribeResponse=function(e,t){var i=this;if(e.error){if(e.errorData&&"Aborted"===e.errorData.message)return;e.category===M.PNTimeoutCategory?this._startSubscribeLoop():e.category===M.PNNetworkIssuesCategory?(this.disconnect(),e.error&&this._config.autoNetworkDetection&&this._isOnline&&(this._isOnline=!1,this._listenerManager.announceNetworkDown()),this._reconnectionManager.onReconnection((function(){i._config.autoNetworkDetection&&!i._isOnline&&(i._isOnline=!0,i._listenerManager.announceNetworkUp()),i.reconnect(),i._subscriptionStatusAnnounced=!0;var t={category:M.PNReconnectedCategory,operation:e.operation,lastTimetoken:i._lastTimetoken,currentTimetoken:i._currentTimetoken};i._listenerManager.announceStatus(t)})),this._reconnectionManager.startPolling(),this._listenerManager.announceStatus(e)):e.category===M.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 r={};r.category=M.PNConnectedCategory,r.operation=e.operation,r.affectedChannels=this._pendingChannelSubscriptions,r.subscribedChannels=this.getSubscribedChannels(),r.affectedChannelGroups=this._pendingChannelGroupSubscriptions,r.lastTimetoken=this._lastTimetoken,r.currentTimetoken=this._currentTimetoken,this._subscriptionStatusAnnounced=!0,this._listenerManager.announceStatus(r),this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[]}var a=t.messages||[],s=this._config,l=s.requestMessageCountThreshold,u=s.dedupeOnSubscribe;if(l&&a.length>=l){var c={};c.category=M.PNRequestMessageCountExceededCategory,c.operation=e.operation,this._listenerManager.announceStatus(c)}a.forEach((function(e){var t=e.channel,r=e.subscriptionMatch,a=e.publishMetaData;if(t===r&&(r=null),u){if(i._dedupingManager.isDuplicate(e))return;i._dedupingManager.addEntry(e)}if(P.endsWith(e.channel,"-pnpres"))(g={channel:null,subscription:null}).actualChannel=null!=r?t:null,g.subscribedChannel=null!=r?r:t,t&&(g.channel=t.substring(0,t.lastIndexOf("-pnpres"))),r&&(g.subscription=r.substring(0,r.lastIndexOf("-pnpres"))),g.action=e.payload.action,g.state=e.payload.data,g.timetoken=a.publishTimetoken,g.occupancy=e.payload.occupancy,g.uuid=e.payload.uuid,g.timestamp=e.payload.timestamp,e.payload.join&&(g.join=e.payload.join),e.payload.leave&&(g.leave=e.payload.leave),e.payload.timeout&&(g.timeout=e.payload.timeout),i._listenerManager.announcePresence(g);else if(1===e.messageType)(g={channel:null,subscription:null}).channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId,e.userMetadata&&(g.userMetadata=e.userMetadata),g.message=e.payload,i._listenerManager.announceSignal(g);else if(2===e.messageType){if((g={channel:null,subscription:null}).channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId,e.userMetadata&&(g.userMetadata=e.userMetadata),g.message={event:e.payload.event,type:e.payload.type,data:e.payload.data},i._listenerManager.announceObjects(g),"uuid"===e.payload.type){var s=i._renameChannelField(g);i._listenerManager.announceUser(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),type:"user"})}))}else if("channel"===e.payload.type)s=i._renameChannelField(g),i._listenerManager.announceSpace(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),type:"space"})}));else if("membership"===e.payload.type){var l=(s=i._renameChannelField(g)).message.data,c=l.uuid,d=l.channel,h=o(l,["uuid","channel"]);h.user=c,h.space=d,i._listenerManager.announceMembership(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),data:h})}))}}else if(3===e.messageType)(g={}).channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId,g.data={messageTimetoken:e.payload.data.messageTimetoken,actionTimetoken:e.payload.data.actionTimetoken,type:e.payload.data.type,uuid:e.issuingClientId,value:e.payload.data.value},g.event=e.payload.event,i._listenerManager.announceMessageAction(g);else if(4===e.messageType){(g={}).channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId;var p=e.payload;if(i._config.cipherKey){var f=i._crypto.decrypt(e.payload);"object"==typeof f&&null!==f&&(p=f)}e.userMetadata&&(g.userMetadata=e.userMetadata),g.message=p.message,g.file={id:p.file.id,name:p.file.name,url:i._getFileUrl({id:p.file.id,name:p.file.name,channel:t})},i._listenerManager.announceFile(g)}else{var g;(g={channel:null,subscription:null}).actualChannel=null!=r?t:null,g.subscribedChannel=null!=r?r:t,g.channel=t,g.subscription=r,g.timetoken=a.publishTimetoken,g.publisher=e.issuingClientId,e.userMetadata&&(g.userMetadata=e.userMetadata),i._config.cipherKey?g.message=i._crypto.decrypt(e.payload):g.message=e.payload,i._listenerManager.announceMessage(g)}})),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,i=o(e,["channel"]);return i.spaceId=t,i},e}(),I={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"},D=function(){function e(e){this._maximumSamplesCount=100,this._trackedLatencies={},this._latencies={},this._maximumSamplesCount=e.maximumSamplesCount||this._maximumSamplesCount}return e.prototype.operationsLatencyForRequest=function(){var e=this,t={};return Object.keys(this._latencies).forEach((function(i){var n=e._latencies[i],o=e._averageLatency(n);o>0&&(t["l_".concat(i)]=o)})),t},e.prototype.startLatencyMeasure=function(e,t){e!==I.PNSubscribeOperation&&t&&(this._trackedLatencies[t]=Date.now())},e.prototype.stopLatencyMeasure=function(e,t){if(e!==I.PNSubscribeOperation&&t){var i=this._endpointName(e),n=this._latencies[i],o=this._trackedLatencies[t];n||(this._latencies[i]=[],n=this._latencies[i]),n.push(Date.now()-o),n.length>this._maximumSamplesCount&&n.splice(0,n.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 I.PNPublishOperation:t="pub";break;case I.PNSignalOperation:t="sig";break;case I.PNHistoryOperation:case I.PNFetchMessagesOperation:case I.PNDeleteMessagesOperation:case I.PNMessageCounts:t="hist";break;case I.PNUnsubscribeOperation:case I.PNWhereNowOperation:case I.PNHereNowOperation:case I.PNHeartbeatOperation:case I.PNSetStateOperation:case I.PNGetStateOperation:t="pres";break;case I.PNAddChannelsToGroupOperation:case I.PNRemoveChannelsFromGroupOperation:case I.PNChannelGroupsOperation:case I.PNRemoveGroupOperation:case I.PNChannelsForGroupOperation:t="cg";break;case I.PNPushNotificationEnabledChannelsOperation:case I.PNRemoveAllPushNotificationsOperation:t="push";break;case I.PNCreateUserOperation:case I.PNUpdateUserOperation:case I.PNDeleteUserOperation:case I.PNGetUserOperation:case I.PNGetUsersOperation:case I.PNCreateSpaceOperation:case I.PNUpdateSpaceOperation:case I.PNDeleteSpaceOperation:case I.PNGetSpaceOperation:case I.PNGetSpacesOperation:case I.PNGetMembersOperation:case I.PNUpdateMembersOperation:case I.PNGetMembershipsOperation:case I.PNUpdateMembershipsOperation:t="obj";break;case I.PNAddMessageActionOperation:case I.PNRemoveMessageActionOperation:case I.PNGetMessageActionsOperation:t="msga";break;case I.PNAccessManagerGrant:case I.PNAccessManagerAudit:t="pam";break;case I.PNAccessManagerGrantToken:case I.PNAccessManagerRevokeToken:t="pamv3";break;default:t="time"}return t},e}(),U=function(){function e(e,t,i){this._payload=e,this._setDefaultPayloadStructure(),this.title=t,this.body=i}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 i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"configurations",{set:function(e){e&&e.length&&(this._configurations=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notification",{get:function(){return this._payload.aps},enumerable:!1,configurable:!0}),Object.defineProperty(i.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(i.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(i.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(i.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(i.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(i.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),i.prototype._setDefaultPayloadStructure=function(){this._payload.aps={alert:{}}},i.prototype.toObject=function(){var e=this,t=n({},this._payload),i=t.aps,o=i.alert;if(this._isSilent&&(i["content-available"]=1),"apns2"===this._apnsPushType){if(!this._configurations||!this._configurations.length)throw new ReferenceError("APNS2 configuration is missing");var r=[];this._configurations.forEach((function(t){r.push(e._objectFromAPNS2Configuration(t))})),r.length&&(t.pn_push=r)}return o&&Object.keys(o).length||delete i.alert,this._isSilent&&(delete i.alert,delete i.badge,delete i.sound,o={}),this._isSilent||Object.keys(o).length?t:null},i.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 i=[];e.targets.forEach((function(e){i.push(t._objectFromAPNSTarget(e))}));var n=e.collapseId,o=e.expirationDate,r={auth_method:"token",targets:i,version:"v2"};return n&&n.length&&(r.collapse_id=n),o&&(r.expiration=o.toISOString()),r},i.prototype._objectFromAPNSTarget=function(e){if(!e.topic||!e.topic.length)throw new TypeError("Target 'topic' undefined.");var t=e.topic,i=e.environment,n=void 0===i?"development":i,o=e.excludedDevices,r=void 0===o?[]:o,a={topic:t,environment:n};return r.length&&(a.excluded_devices=r),a},i}(U),R=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.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(i.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(i.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(i.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(i.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(i.prototype,"subtitle",{get:function(){return this.backTitle},set:function(e){this.backTitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"body",{get:function(){return this.backContent},set:function(e){this.backContent=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"badge",{get:function(){return this.count},set:function(e){this.count=e},enumerable:!1,configurable:!0}),i.prototype.toObject=function(){return Object.keys(this._payload).length?n({},this._payload):null},i}(U),B=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"notification",{get:function(){return this._payload.notification},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this._payload.data},enumerable:!1,configurable:!0}),Object.defineProperty(i.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(i.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(i.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(i.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(i.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(i.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),i.prototype._setDefaultPayloadStructure=function(){this._payload.notification={},this._payload.data={}},i.prototype.toObject=function(){var e=n({},this._payload.data),t=null,i={};if(Object.keys(this._payload).length>2){var r=this._payload;r.notification,r.data;var a=o(r,["notification","data"]);e=n(n({},e),a)}return this._isSilent?e.notification=this._payload.notification:t=this._payload.notification,Object.keys(e).length&&(i.data=e),t&&Object.keys(t).length&&(i.notification=t),Object.keys(i).length?i:null},i}(U),j=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 R(this._payload.mpns,e,t),this.fcm=new B(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 i=this.apns.toObject();i&&Object.keys(i).length&&(t.pn_apns=i)}if(e.includes("mpns")){var n=this.mpns.toObject();n&&Object.keys(n).length&&(t.pn_mpns=n)}if(e.includes("fcm")){var o=this.fcm.toObject();o&&Object.keys(o).length&&(t.pn_gcm=o)}return Object.keys(t).length&&this._debugging&&(t.pn_debug=!0),t},e}(),H=function(){function e(){this._listeners=[]}return e.prototype.addListener=function(e){this._listeners.push(e)},e.prototype.removeListener=function(e){var t=[];this._listeners.forEach((function(i){i!==e&&t.push(i)})),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=M.PNNetworkUpCategory,this.announceStatus(e)},e.prototype.announceNetworkDown=function(){var e={};e.category=M.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==(128&e)&&(t.join=!0),64==(64&e)&&(t.update=!0),32==(32&e)&&(t.get=!0),8==(8&e)&&(t.delete=!0),4==(4&e)&&(t.manage=!0),2==(2&e)&&(t.write=!0),1==(1&e)&&(t.read=!0),t},e.prototype.parseToken=function(e){var t=this,i=this._cbor.decodeToken(e);if(void 0!==i){var n=i.res.uuid?Object.keys(i.res.uuid):[],o=Object.keys(i.res.chan),r=Object.keys(i.res.grp),a=i.pat.uuid?Object.keys(i.pat.uuid):[],s=Object.keys(i.pat.chan),l=Object.keys(i.pat.grp),u={version:i.v,timestamp:i.t,ttl:i.ttl,authorized_uuid:i.uuid},c=n.length>0,d=o.length>0,h=r.length>0;(c||d||h)&&(u.resources={},c&&(u.resources.uuids={},n.forEach((function(e){u.resources.uuids[e]=t.extractPermissions(i.res.uuid[e])}))),d&&(u.resources.channels={},o.forEach((function(e){u.resources.channels[e]=t.extractPermissions(i.res.chan[e])}))),h&&(u.resources.groups={},r.forEach((function(e){u.resources.groups[e]=t.extractPermissions(i.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(i.pat.uuid[e])}))),f&&(u.patterns.channels={},s.forEach((function(e){u.patterns.channels[e]=t.extractPermissions(i.pat.chan[e])}))),g&&(u.patterns.groups={},l.forEach((function(e){u.patterns.groups[e]=t.extractPermissions(i.pat.grp[e])})))),Object.keys(i.meta).length>0&&(u.meta=i.meta),u.signature=i.sig,u}},e}(),$=function(e){function i(t,i){var n=this.constructor,o=e.call(this,t)||this;return o.name=o.constructor.name,o.status=i,o.message=t,Object.setPrototypeOf(o,n.prototype),o}return t(i,e),i}(Error);function z(e){return(t={message:e}).type="validationError",t.error=!0,t;var t}function Q(e,t,i){return e.usePost&&e.usePost(t,i)?e.postURL(t,i):e.usePatch&&e.usePatch(t,i)?e.patchURL(t,i):e.useGetFile&&e.useGetFile(t,i)?e.getFileURL(t,i):e.getURL(t,i)}function G(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 i=e._getPnsdkSuffix(" ");return i.length>0&&(t+=i),t}function q(e,t,i){return t.usePost&&t.usePost(e,i)?"POST":t.usePatch&&t.usePatch(e,i)?"PATCH":t.useDelete&&t.useDelete(e,i)?"DELETE":t.useGetFile&&t.useGetFile(e,i)?"GETFILE":"GET"}function W(e,t,i,n,o){var r=e.config,a=e.crypto,s=q(e,o,n);i.timestamp=Math.floor((new Date).getTime()/1e3),"PNPublishOperation"===o.getOperation()&&o.usePost&&o.usePost(e,n)&&(s="GET"),"GETFILE"===s&&(s="GET");var l="".concat(s,"\n").concat(r.publishKey,"\n").concat(t,"\n").concat(P.signPamFromParams(i),"\n");if("POST"===s)l+="string"==typeof(u=o.postPayload(e,n))?u:JSON.stringify(u);else if("PATCH"===s){var u;l+="string"==typeof(u=o.patchPayload(e,n))?u:JSON.stringify(u)}var c="v2.".concat(a.HMACSHA256(l));c=(c=(c=c.replace(/\+/g,"-")).replace(/\//g,"_")).replace(/=+$/,""),i.signature=c}function V(e,t){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var r=e.networking,a=e.config,s=e.telemetryManager,l=e.tokenManager,u=g(),c=null,d=null,h={};t.getOperation()===I.PNTimeOperation||t.getOperation()===I.PNChannelGroupsOperation?c=i[0]:(h=i[0],c=i[1]),"undefined"==typeof Promise||c||(d=P.createPromise());var p=t.validateParams(e,h);if(p)return c?c(z(p)):d?(d.reject(new $("Validation failed, check status for details",z(p))),d.promise):void 0;var f,m=t.prepareParams(e,h),b=Q(t,e,h),v={url:b,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};m.uuid=a.UUID,m.pnsdk=G(a);var y=s.operationsLatencyForRequest();if(Object.keys(y).length&&(m=n(n({},m),y)),a.useInstanceId&&(m.instanceid=a.instanceId),a.useRequestId&&(m.requestid=u),t.isAuthSupported()){var w=l.getToken()||a.getAuthKey();w&&(m.auth=w)}a.secretKey&&W(e,b,m,h,t);var C=function(i,n){if(i.error)return t.handleError&&t.handleError(e,h,i),void(c?c(i):d&&d.reject(new $("PubNub call failed, check status for details",i)));s.stopLatencyMeasure(t.getOperation(),u);var o=t.handleResponse(e,n,h);"function"!=typeof(null==o?void 0:o.then)&&(o=Promise.resolve(o)),o.then((function(e){c?c(i,e):d&&d.fulfill(e)})).catch((function(e){if(c){var i=e;t.getOperation()===I.PNSubscribeOperation&&(i={statusCode:400,error:!0,operation:t.getOperation(),errorData:e,category:M.PNUnknownCategory}),c(i,null)}else d&&d.reject(new $("PubNub call failed, check status for details",e))}))};if(s.startLatencyMeasure(t.getOperation(),u),"POST"===q(e,t,h)){var x=t.postPayload(e,h);f=r.POST(m,x,v,C)}else"PATCH"===q(e,t,h)?(x=t.patchPayload(e,h),f=r.PATCH(m,x,v,C)):f="DELETE"===q(e,t,h)?r.DELETE(m,v,C):"GETFILE"===q(e,t,h)?r.GETFILE(m,v,C):r.GET(m,v,C);return t.getOperation()===I.PNSubscribeOperation?f:d?d.promise:void 0}var Y=Object.freeze({__proto__:null,getOperation:function(){return I.PNAddChannelsToGroupOperation},validateParams:function(e,t){var i=t.channels,n=t.channelGroup,o=e.config;return n?i&&0!==i.length?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels;return{add:(void 0===i?[]:i).join(",")}},handleResponse:function(){return{}}}),K=Object.freeze({__proto__:null,getOperation:function(){return I.PNRemoveChannelsFromGroupOperation},validateParams:function(e,t){var i=t.channels,n=t.channelGroup,o=e.config;return n?i&&0!==i.length?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels;return{remove:(void 0===i?[]:i).join(",")}},handleResponse:function(){return{}}}),X=Object.freeze({__proto__:null,getOperation:function(){return I.PNRemoveGroupOperation},validateParams:function(e,t){var i=t.channelGroup,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(P.encodeString(i),"/remove")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},handleResponse:function(){return{}}}),Z=Object.freeze({__proto__:null,getOperation:function(){return I.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}}}),J=Object.freeze({__proto__:null,getOperation:function(){return I.PNChannelsForGroupOperation},validateParams:function(e,t){var i=t.channelGroup,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{channels:t.payload.channels}}}),ee=Object.freeze({__proto__:null,getOperation:function(){return I.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,o=t.channels,r=t.topic,a=e.config;return i?n?"apns2"!==n||r?o&&0!==o.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 i=t.device,n=t.pushGateway,o=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(o.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(o.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,o=t.channels,r=void 0===o?[]:o,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:i,add:r.join(",")};return"apns2"===i&&delete(u=n(n({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),te=Object.freeze({__proto__:null,getOperation:function(){return I.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,o=t.channels,r=t.topic,a=e.config;return i?n?"apns2"!==n||r?o&&0!==o.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 i=t.device,n=t.pushGateway,o=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(o.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(o.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,o=t.channels,r=void 0===o?[]:o,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:i,remove:r.join(",")};return"apns2"===i&&delete(u=n(n({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),ie=Object.freeze({__proto__:null,getOperation:function(){return I.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,o=t.topic,r=e.config;return i?n?"apns2"!==n||o?r.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 i=t.device,n=t.pushGateway,o=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(o.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(o.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,o=t.environment,r=void 0===o?"development":o,a=t.topic,s={type:i};return"apns2"===i&&delete(s=n(n({},s),{environment:r,topic:a})).type,s},handleResponse:function(e,t){return{channels:t}}}),ne=Object.freeze({__proto__:null,getOperation:function(){return I.PNRemoveAllPushNotificationsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,o=t.topic,r=e.config;return i?n?"apns2"!==n||o?r.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 i=t.device,n=t.pushGateway,o=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(o.subscribeKey,"/devices-apns2/").concat(i,"/remove"):"/v1/push/sub-key/".concat(o.subscribeKey,"/devices/").concat(i,"/remove")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,o=t.environment,r=void 0===o?"development":o,a=t.topic,s={type:i};return"apns2"===i&&delete(s=n(n({},s),{environment:r,topic:a})).type,s},handleResponse:function(){return{}}}),oe=Object.freeze({__proto__:null,getOperation:function(){return I.PNUnsubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,o=void 0===n?[]:n,r=o.length>0?o.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(r),"/leave")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,o={};return n.length>0&&(o["channel-group"]=n.join(",")),o},handleResponse:function(){return{}}}),re=Object.freeze({__proto__:null,getOperation:function(){return I.PNWhereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.uuid,o=void 0===n?i.UUID:n;return"/v2/presence/sub-key/".concat(i.subscribeKey,"/uuid/").concat(P.encodeString(o))},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:[]}}}),ae=Object.freeze({__proto__:null,getOperation:function(){return I.PNHeartbeatOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,o=void 0===n?[]:n,r=o.length>0?o.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(r),"/heartbeat")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,o=t.state,r=void 0===o?{}:o,a=e.config,s={};return n.length>0&&(s["channel-group"]=n.join(",")),s.state=JSON.stringify(r),s.heartbeat=a.getPresenceTimeout(),s},handleResponse:function(){return{}}}),se=Object.freeze({__proto__:null,getOperation:function(){return I.PNGetStateOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.uuid,o=void 0===n?i.UUID:n,r=t.channels,a=void 0===r?[]:r,s=a.length>0?a.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(s),"/uuid/").concat(o)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,o={};return n.length>0&&(o["channel-group"]=n.join(",")),o},handleResponse:function(e,t,i){var n=i.channels,o=void 0===n?[]:n,r=i.channelGroups,a=void 0===r?[]:r,s={};return 1===o.length&&0===a.length?s[o[0]]=t.payload:s=t.payload,{channels:s}}}),le=Object.freeze({__proto__:null,getOperation:function(){return I.PNSetStateOperation},validateParams:function(e,t){var i=e.config,n=t.state,o=t.channels,r=void 0===o?[]:o,a=t.channelGroups,s=void 0===a?[]:a;return n?i.subscribeKey?0===r.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 i=e.config,n=t.channels,o=void 0===n?[]:n,r=o.length>0?o.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(r),"/uuid/").concat(P.encodeString(i.UUID),"/data")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.state,n=t.channelGroups,o=void 0===n?[]:n,r={};return r.state=JSON.stringify(i),o.length>0&&(r["channel-group"]=o.join(",")),r},handleResponse:function(e,t){return{state:t.payload}}}),ue=Object.freeze({__proto__:null,getOperation:function(){return I.PNHereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,o=void 0===n?[]:n,r=t.channelGroups,a=void 0===r?[]:r,s="/v2/presence/sub-key/".concat(i.subscribeKey);if(o.length>0||a.length>0){var l=o.length>0?o.join(","):",";s+="/channel/".concat(P.encodeString(l))}return s},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,o=void 0===i?[]:i,r=t.includeUUIDs,a=void 0===r||r,s=t.includeState,l=void 0!==s&&s,u=t.queryParameters,c=void 0===u?{}:u,d={};return a||(d.disable_uuids=1),l&&(d.state=1),o.length>0&&(d["channel-group"]=o.join(",")),n(n({},d),c)},handleResponse:function(e,t,i){var n=i.channels,o=void 0===n?[]:n,r=i.channelGroups,a=void 0===r?[]:r,s=i.includeUUIDs,l=void 0===s||s,u=i.includeState,c=void 0!==u&&u;return o.length>1||a.length>0||0===a.length&&0===o.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(i){var n=t.payload.channels[i],o=[];return e.channels[i]={occupants:o,name:i,occupancy:n.occupancy},l&&n.uuids.forEach((function(e){c?o.push({state:e.state,uuid:e.uuid}):o.push({state:null,uuid:e})})),e})),e}():function(){var e={},i=[];return e.totalChannels=1,e.totalOccupancy=t.occupancy,e.channels={},e.channels[o[0]]={occupants:i,name:o[0],occupancy:t.occupancy},l&&t.uuids&&t.uuids.forEach((function(e){c?i.push({state:e.state,uuid:e.uuid}):i.push({state:null,uuid:e})})),e}()},handleError:function(e,t,i){402!==i.statusCode||this.getURL(e,t).includes("channel")||(i.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.")}}),ce=Object.freeze({__proto__:null,getOperation:function(){return I.PNAddMessageActionOperation},validateParams:function(e,t){var i=e.config,n=t.action,o=t.channel;return t.messageTimetoken?i.subscribeKey?o?n?n.value?n.type?n.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 i=e.config,n=t.channel,o=t.messageTimetoken;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(n),"/message/").concat(o)},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}}}),de=Object.freeze({__proto__:null,getOperation:function(){return I.PNRemoveMessageActionOperation},validateParams:function(e,t){var i=e.config,n=t.channel,o=t.actionTimetoken;return t.messageTimetoken?o?i.subscribeKey?n?void 0:"Missing message channel":"Missing Subscribe Key":"Missing action timetoken":"Missing message timetoken"},useDelete:function(){return!0},getURL:function(e,t){var i=e.config,n=t.channel,o=t.actionTimetoken,r=t.messageTimetoken;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(n),"/message/").concat(r,"/action/").concat(o)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{data:t.data}}}),he=Object.freeze({__proto__:null,getOperation:function(){return I.PNGetMessageActionsOperation},validateParams:function(e,t){var i=e.config,n=t.channel;return i.subscribeKey?n?void 0:"Missing message channel":"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channel;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(P.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.limit,n=t.start,o=t.end,r={};return i&&(r.limit=i),n&&(r.start=n),o&&(r.end=o),r},handleResponse:function(e,t){var i={data:t.data,start:null,end:null};return i.data.length&&(i.end=i.data[i.data.length-1].actionTimetoken,i.start=i.data[0].actionTimetoken),i}}),pe={getOperation:function(){return I.PNListFilesOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"channel can't be empty"},getURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(P.encodeString(t.channel),"/files")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.limit&&(i.limit=t.limit),t.next&&(i.next=t.next),i},handleResponse:function(e,t){return{status:t.status,data:t.data,next:t.next,count:t.count}}},fe={getOperation:function(){return I.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 i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(P.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}}},ge={getOperation:function(){return I.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 i=e.config,n=i.publishKey,o=i.subscribeKey,r=function(e,t){var i=e.crypto,n=e.config,o=JSON.stringify(t);return n.cipherKey&&(o=i.encrypt(o),o=JSON.stringify(o)),o||""}(e,{message:t.message,file:{name:t.fileName,id:t.fileId}});return"/v1/files/publish-file/".concat(n,"/").concat(o,"/0/").concat(P.encodeString(t.channel),"/0/").concat(P.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.ttl&&(i.ttl=t.ttl),void 0!==t.storeInHistory&&(i.store=t.storeInHistory?"1":"0"),t.meta&&"object"==typeof t.meta&&(i.meta=JSON.stringify(t.meta)),i},handleResponse:function(e,t){return{timetoken:t[2]}}},me=function(e){var t=function(e){var t=this,i=e.generateUploadUrl,n=e.publishFile,o=e.modules,s=o.PubNubFile,l=o.config,u=o.cryptography,c=o.networking;return function(e){var o=e.channel,d=e.file,h=e.message,p=e.cipherKey,f=e.meta,g=e.ttl,m=e.storeInHistory;return r(t,void 0,void 0,(function(){var e,t,r,b,v,y,w,C,x,A,S,k,T,_,E,O,P,M,N,I,D,U,L,R,B,j,H,F;return a(this,(function(a){switch(a.label){case 0:if(!o)throw new $("Validation failed, check status for details",z("channel can't be empty"));if(!d)throw new $("Validation failed, check status for details",z("file can't be empty"));return e=s.create(d),[4,i({channel:o,name:e.name})];case 1:return t=a.sent(),r=t.file_upload_request,b=r.url,v=r.form_fields,y=t.data,w=y.id,C=y.name,s.supportsEncryptFile&&(null!=p?p:l.cipherKey)?[4,u.encryptFile(null!=p?p:l.cipherKey,e,s)]:[3,3];case 2:e=a.sent(),a.label=3;case 3:x=v,e.mimeType&&(x=v.map((function(t){return"Content-Type"===t.key?{key:t.key,value:e.mimeType}:t}))),a.label=4;case 4:return a.trys.push([4,18,,22]),s.supportsFileUri&&d.uri?(k=(S=c).POSTFILE,T=[b,x],[4,e.toFileUri()]):[3,7];case 5:return[4,k.apply(S,T.concat([a.sent()]))];case 6:return A=a.sent(),[3,17];case 7:return s.supportsFile?(E=(_=c).POSTFILE,O=[b,x],[4,e.toFile()]):[3,10];case 8:return[4,E.apply(_,O.concat([a.sent()]))];case 9:return A=a.sent(),[3,17];case 10:return s.supportsBuffer?(M=(P=c).POSTFILE,N=[b,x],[4,e.toBuffer()]):[3,13];case 11:return[4,M.apply(P,N.concat([a.sent()]))];case 12:return A=a.sent(),[3,17];case 13:return s.supportsBlob?(D=(I=c).POSTFILE,U=[b,x],[4,e.toBlob()]):[3,16];case 14:return[4,D.apply(I,U.concat([a.sent()]))];case 15:return A=a.sent(),[3,17];case 16:throw new Error("Unsupported environment");case 17:return[3,22];case 18:return(L=a.sent()).response?[4,(Q=L.response,new Promise((function(e){var t="";Q.on("data",(function(e){t+=e.toString("utf8")})),Q.on("end",(function(){e(t)}))})))]:[3,20];case 19:throw R=a.sent(),B=/<Message>(.*)<\/Message>/gi.exec(R),new $(B?"Upload to bucket failed: ".concat(B[1]):"Upload to bucket failed.",L);case 20:throw new $("Upload to bucket failed.",L);case 21:return[3,22];case 22:if(204!==A.status)throw new $("Upload to bucket was unsuccessful",A);j=l.fileUploadPublishRetryLimit,H=!1,F={timetoken:"0"},a.label=23;case 23:return a.trys.push([23,25,,26]),[4,n({channel:o,message:h,fileId:w,fileName:C,meta:f,storeInHistory:m,ttl:g})];case 24:return F=a.sent(),H=!0,[3,26];case 25:return a.sent(),j-=1,[3,26];case 26:if(!H&&j>0)return[3,23];a.label=27;case 27:if(H)return[2,{timetoken:F.timetoken,id:w,name:C}];throw new $("Publish failed. You may want to execute that operation manually using pubnub.publishFile",{channel:o,id:w,name:C})}var Q}))}))}}(e);return function(e,i){var n=t(e);return"function"==typeof i?(n.then((function(e){return i(null,e)})).catch((function(e){return i(e,null)})),n):n}},be=function(e,t){var i=t.channel,n=t.id,o=t.name,r=e.config,a=e.networking,s=e.tokenManager;if(!i)throw new $("Validation failed, check status for details",z("channel can't be empty"));if(!n)throw new $("Validation failed, check status for details",z("file id can't be empty"));if(!o)throw new $("Validation failed, check status for details",z("file name can't be empty"));var l="/v1/files/".concat(r.subscribeKey,"/channels/").concat(P.encodeString(i),"/files/").concat(n,"/").concat(o),u={};u.uuid=r.getUUID(),u.pnsdk=G(r);var c=s.getToken()||r.getAuthKey();c&&(u.auth=c),r.secretKey&&W(e,l,u,{},{getOperation:function(){return"PubNubGetFileUrlOperation"}});var d=Object.keys(u).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(u[e]))})).join("&");return""!==d?"".concat(a.getStandardOrigin()).concat(l,"?").concat(d):"".concat(a.getStandardOrigin()).concat(l)},ve={getOperation:function(){return I.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 i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(P.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,i){var n=e.PubNubFile,o=e.config,s=e.cryptography;return r(void 0,void 0,void 0,(function(){var e,r,l,u;return a(this,(function(a){switch(a.label){case 0:return e=t.response.body,n.supportsEncryptFile&&(null!==(r=i.cipherKey)&&void 0!==r?r:o.cipherKey)?[4,s.decrypt(null!==(l=i.cipherKey)&&void 0!==l?l:o.cipherKey,e)]:[3,2];case 1:e=a.sent(),a.label=2;case 2:return[2,n.create({data:e,name:null!==(u=t.response.name)&&void 0!==u?u:i.name,mimeType:t.response.type})]}}))}))}},ye={getOperation:function(){return I.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 i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(P.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}}},we={getOperation:function(){return I.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 i,n,o,r,a,s,u,c,d,h={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(i=t.include)||void 0===i?void 0:i.customFields)&&h.include.push("custom"),h.include=h.include.join(","),(null===(n=null==t?void 0:t.include)||void 0===n?void 0:n.totalCount)&&(h.count=null===(o=t.include)||void 0===o?void 0:o.totalCount),(null===(r=null==t?void 0:t.page)||void 0===r?void 0:r.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!==(c=null==t?void 0:t.limit)&&void 0!==c?c:100,(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(d=t.sort)&&void 0!==d?d:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,next:t.next,prev:t.prev}}},Ce={getOperation:function(){return I.PNGetUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o=e.config,r={};return r.uuid=null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:o.getUUID(),r.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&r.include.pop(),r.include=r.include.join(","),r},handleResponse:function(e,t){return{status:t.status,data:t.data}}},xe={getOperation:function(){return I.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 i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=t.uuid)&&void 0!==i?i:n.getUUID()))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o=e.config,r={};return r.uuid=null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:o.getUUID(),r.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&r.include.pop(),r.include=r.include.join(","),r},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ae={getOperation:function(){return I.PNRemoveUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n=e.config;return{uuid:null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Se={getOperation:function(){return I.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 i,n,o,r,a,s,u,c,d,h={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(i=t.include)||void 0===i?void 0:i.customFields)&&h.include.push("custom"),h.include=h.include.join(","),(null===(n=null==t?void 0:t.include)||void 0===n?void 0:n.totalCount)&&(h.count=null===(o=t.include)||void 0===o?void 0:o.totalCount),(null===(r=null==t?void 0:t.page)||void 0===r?void 0:r.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!==(c=null==t?void 0:t.limit)&&void 0!==c?c:100,(null==t?void 0:t.sort)&&(h.sort=Object.entries(null!==(d=t.sort)&&void 0!==d?d:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),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 I.PNGetChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.encodeString(t.channel))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&n.include.pop(),n.include=n.include.join(","),n},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Te={getOperation:function(){return I.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 i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.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 i,n={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&n.include.pop(),n.include=n.include.join(","),n},handleResponse:function(e,t){return{status:t.status,data:t.data}}},_e={getOperation:function(){return I.PNRemoveChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.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}}},Ee={getOperation:function(){return I.PNGetMembersOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"UUID cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.encodeString(t.channel),"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o,r,a,s,u,c,d,h,p,f,g={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&g.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customUUIDFields)&&g.include.push("uuid.custom"),(null===(r=null===(o=t.include)||void 0===o?void 0:o.UUIDFields)||void 0===r||r)&&g.include.push("uuid")),g.include=g.include.join(","),(null===(a=null==t?void 0:t.include)||void 0===a?void 0:a.totalCount)&&(g.count=null===(s=t.include)||void 0===s?void 0:s.totalCount),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.next)&&(g.start=null===(c=t.page)||void 0===c?void 0:c.next),(null===(d=null==t?void 0:t.page)||void 0===d?void 0:d.prev)&&(g.end=null===(h=t.page)||void 0===h?void 0:h.prev),(null==t?void 0:t.filter)&&(g.filter=t.filter),g.limit=null!==(p=null==t?void 0:t.limit)&&void 0!==p?p:100,(null==t?void 0:t.sort)&&(g.sort=Object.entries(null!==(f=t.sort)&&void 0!==f?f:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),g},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Oe={getOperation:function(){return I.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 i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(P.encodeString(t.channel),"/uuids")},patchPayload:function(e,t){var i;return(i={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}})),i},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o,r,a,s,u,c,d,h={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&h.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customUUIDFields)&&h.include.push("uuid.custom"),(null===(o=t.include)||void 0===o?void 0:o.UUIDFields)&&h.include.push("uuid")),h.include=h.include.join(","),(null===(r=null==t?void 0:t.include)||void 0===r?void 0:r.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===(c=t.page)||void 0===c?void 0:c.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!==(d=t.sort)&&void 0!==d?d:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Pe={getOperation:function(){return I.PNGetMembershipsOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()),"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o,r,a,s,u,c,d,h,p,f={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&f.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customChannelFields)&&f.include.push("channel.custom"),(null===(o=t.include)||void 0===o?void 0:o.channelFields)&&f.include.push("channel")),f.include=f.include.join(","),(null===(r=null==t?void 0:t.include)||void 0===r?void 0:r.totalCount)&&(f.count=null===(a=t.include)||void 0===a?void 0:a.totalCount),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.next)&&(f.start=null===(u=t.page)||void 0===u?void 0:u.next),(null===(c=null==t?void 0:t.page)||void 0===c?void 0:c.prev)&&(f.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(f.filter=t.filter),f.limit=null!==(h=null==t?void 0:t.limit)&&void 0!==h?h:100,(null==t?void 0:t.sort)&&(f.sort=Object.entries(null!==(p=t.sort)&&void 0!==p?p:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),f},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Me={getOperation:function(){return I.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 i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(P.encodeString(null!==(i=t.uuid)&&void 0!==i?i:n.getUUID()),"/channels")},patchPayload:function(e,t){var i;return(i={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}})),i},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,o,r,a,s,u,c,d,h={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&h.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customChannelFields)&&h.include.push("channel.custom"),(null===(o=t.include)||void 0===o?void 0:o.channelFields)&&h.include.push("channel")),h.include=h.include.join(","),(null===(r=null==t?void 0:t.include)||void 0===r?void 0:r.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===(c=t.page)||void 0===c?void 0:c.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!==(d=t.sort)&&void 0!==d?d:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),h},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ne=Object.freeze({__proto__:null,getOperation:function(){return I.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 i=t.channel,n=t.channelGroup,o=t.authKeys,r=void 0===o?[]:o,a={};return i&&(a.channel=i),n&&(a["channel-group"]=n),r.length>0&&(a.auth=r.join(",")),a},handleResponse:function(e,t){return t.payload}}),Ie=Object.freeze({__proto__:null,getOperation:function(){return I.PNAccessManagerGrant},validateParams:function(e,t){var i=e.config;return i.subscribeKey?i.publishKey?i.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 i=t.channels,n=void 0===i?[]:i,o=t.channelGroups,r=void 0===o?[]:o,a=t.uuids,s=void 0===a?[]:a,l=t.ttl,u=t.read,c=void 0!==u&&u,d=t.write,h=void 0!==d&&d,p=t.manage,f=void 0!==p&&p,g=t.get,m=void 0!==g&&g,b=t.join,v=void 0!==b&&b,y=t.update,w=void 0!==y&&y,C=t.authKeys,x=void 0===C?[]:C,A=t.delete,S={};return S.r=c?"1":"0",S.w=h?"1":"0",S.m=f?"1":"0",S.d=A?"1":"0",S.g=m?"1":"0",S.j=v?"1":"0",S.u=w?"1":"0",n.length>0&&(S.channel=n.join(",")),r.length>0&&(S["channel-group"]=r.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 De(e){var t,i,n,o,r=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===(i=null==e?void 0:e.resources)||void 0===i?void 0:i.spaces),l=void 0!==(null===(n=null==e?void 0:e.patterns)||void 0===n?void 0:n.users),u=void 0!==(null===(o=null==e?void 0:e.patterns)||void 0===o?void 0:o.spaces);return l||a||u||s||r}function Ue(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}var Le=Object.freeze({__proto__:null,getOperation:function(){return I.PNAccessManagerGrantToken},extractPermissions:Ue,validateParams:function(e,t){var i,n,o,r,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),c=void 0!==(null===(i=null==t?void 0:t.resources)||void 0===i?void 0:i.uuids),d=void 0!==(null===(n=null==t?void 0:t.resources)||void 0===n?void 0:n.channels),h=void 0!==(null===(o=null==t?void 0:t.resources)||void 0===o?void 0:o.groups),p=void 0!==(null===(r=null==t?void 0:t.patterns)||void 0===r?void 0:r.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||c||p||d||f||h||g;return De(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 function(e,t){if(De(t))return function(e,t){var i=t.ttl,n=t.resources,o=t.patterns,r=t.meta,a=t.authorizedUserId,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(n){var l=n.users,u=n.spaces,c=n.groups;l&&Object.keys(l).forEach((function(e){s.permissions.resources.uuids[e]=Ue(l[e])})),u&&Object.keys(u).forEach((function(e){s.permissions.resources.channels[e]=Ue(u[e])})),c&&Object.keys(c).forEach((function(e){s.permissions.resources.groups[e]=Ue(c[e])}))}if(o){var d=o.users,h=o.spaces,p=o.groups;d&&Object.keys(d).forEach((function(e){s.permissions.patterns.uuids[e]=Ue(d[e])})),h&&Object.keys(h).forEach((function(e){s.permissions.patterns.channels[e]=Ue(h[e])})),p&&Object.keys(p).forEach((function(e){s.permissions.patterns.groups[e]=Ue(p[e])}))}return(i||0===i)&&(s.ttl=i),r&&(s.permissions.meta=r),a&&(s.permissions.uuid="".concat(a)),s}(0,t);var i=t.ttl,n=t.resources,o=t.patterns,r=t.meta,a=t.authorized_uuid,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(n){var l=n.uuids,u=n.channels,c=n.groups;l&&Object.keys(l).forEach((function(e){s.permissions.resources.uuids[e]=Ue(l[e])})),u&&Object.keys(u).forEach((function(e){s.permissions.resources.channels[e]=Ue(u[e])})),c&&Object.keys(c).forEach((function(e){s.permissions.resources.groups[e]=Ue(c[e])}))}if(o){var d=o.uuids,h=o.channels,p=o.groups;d&&Object.keys(d).forEach((function(e){s.permissions.patterns.uuids[e]=Ue(d[e])})),h&&Object.keys(h).forEach((function(e){s.permissions.patterns.channels[e]=Ue(h[e])})),p&&Object.keys(p).forEach((function(e){s.permissions.patterns.groups[e]=Ue(p[e])}))}return(i||0===i)&&(s.ttl=i),r&&(s.permissions.meta=r),a&&(s.permissions.uuid="".concat(a)),s}(0,t)},handleResponse:function(e,t){return t.data.token}}),Re={getOperation:function(){return I.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 i=e.config;return"/v3/pam/".concat(i.subscribeKey,"/grant/").concat(P.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 Be(e,t){var i=e.crypto,n=e.config,o=JSON.stringify(t);return n.cipherKey&&(o=i.encrypt(o),o=JSON.stringify(o)),o}var je=Object.freeze({__proto__:null,getOperation:function(){return I.PNPublishOperation},validateParams:function(e,t){var i=e.config,n=t.message;return t.channel?n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},usePost:function(e,t){var i=t.sendByPost;return void 0!==i&&i},getURL:function(e,t){var i=e.config,n=t.channel,o=Be(e,t.message);return"/publish/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(P.encodeString(n),"/0/").concat(P.encodeString(o))},postURL:function(e,t){var i=e.config,n=t.channel;return"/publish/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(P.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},postPayload:function(e,t){return Be(e,t.message)},prepareParams:function(e,t){var i=t.meta,n=t.replicate,o=void 0===n||n,r=t.storeInHistory,a=t.ttl,s={};return null!=r&&(s.store=r?"1":"0"),a&&(s.ttl=a),!1===o&&(s.norep="true"),i&&"object"==typeof i&&(s.meta=JSON.stringify(i)),s},handleResponse:function(e,t){return{timetoken:t[2]}}}),He=Object.freeze({__proto__:null,getOperation:function(){return I.PNSignalOperation},validateParams:function(e,t){var i=e.config,n=t.message;return t.channel?n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},getURL:function(e,t){var i,n=e.config,o=t.channel,r=(i=t.message,JSON.stringify(i));return"/signal/".concat(n.publishKey,"/").concat(n.subscribeKey,"/0/").concat(P.encodeString(o),"/0/").concat(P.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{timetoken:t[2]}}});function Fe(e,t){var i=e.config,n=e.crypto;if(!i.cipherKey)return t;try{return n.decrypt(t)}catch(e){return t}}var $e=Object.freeze({__proto__:null,getOperation:function(){return I.PNHistoryOperation},validateParams:function(e,t){var i=t.channel,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var i=t.channel,n=e.config;return"/v2/history/sub-key/".concat(n.subscribeKey,"/channel/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.start,n=t.end,o=t.reverse,r=t.count,a=void 0===r?100:r,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,c=void 0!==u&&u,d={include_token:"true"};return d.count=a,i&&(d.start=i),n&&(d.end=n),l&&(d.string_message_token="true"),null!=o&&(d.reverse=o.toString()),c&&(d.include_meta="true"),d},handleResponse:function(e,t){var i={messages:[],startTimeToken:t[1],endTimeToken:t[2]};return Array.isArray(t[0])&&t[0].forEach((function(t){var n={timetoken:t.timetoken,entry:Fe(e,t.message)};t.meta&&(n.meta=t.meta),i.messages.push(n)})),i}}),ze=Object.freeze({__proto__:null,getOperation:function(){return I.PNDeleteMessagesOperation},validateParams:function(e,t){var i=t.channel,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},useDelete:function(){return!0},getURL:function(e,t){var i=t.channel,n=e.config;return"/v3/history/sub-key/".concat(n.subscribeKey,"/channel/").concat(P.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.start,n=t.end,o={};return i&&(o.start=i),n&&(o.end=n),o},handleResponse:function(e,t){return t.payload}}),Qe=Object.freeze({__proto__:null,getOperation:function(){return I.PNMessageCounts},validateParams:function(e,t){var i=t.channels,n=t.timetoken,o=t.channelTimetokens,r=e.config;return i?n&&o?"timetoken and channelTimetokens are incompatible together":n&&o&&o.length>1&&i.length!==o.length?"Length of channelTimetokens and channels do not match":r.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var i=t.channels,n=e.config,o=i.join(",");return"/v3/history/sub-key/".concat(n.subscribeKey,"/message-counts/").concat(P.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.timetoken,n=t.channelTimetokens,o={};if(n&&1===n.length){var r=l(n,1)[0];o.timetoken=r}else n?o.channelsTimetoken=n.join(","):i&&(o.timetoken=i);return o},handleResponse:function(e,t){return{channels:t.channels}}}),Ge=Object.freeze({__proto__:null,getOperation:function(){return I.PNFetchMessagesOperation},validateParams:function(e,t){var i=t.channels,n=t.includeMessageActions,o=void 0!==n&&n,r=e.config;if(!i||0===i.length)return"Missing channels";if(!r.subscribeKey)return"Missing Subscribe Key";if(o&&i.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 i=t.channels,n=void 0===i?[]:i,o=t.includeMessageActions,r=void 0!==o&&o,a=e.config,s=r?"history-with-actions":"history",l=n.length>0?n.join(","):",";return"/v3/".concat(s,"/sub-key/").concat(a.subscribeKey,"/channel/").concat(P.encodeString(l))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels,n=t.start,o=t.end,r=t.includeMessageActions,a=t.count,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,c=void 0!==u&&u,d=t.includeUuid,h=t.includeUUID,p=void 0===h||h,f=t.includeMessageType,g=void 0===f||f,m={};return m.max=a||(i.length>1||!0===r?25:100),n&&(m.start=n),o&&(m.end=o),l&&(m.string_message_token="true"),c&&(m.include_meta="true"),p&&!1!==d&&(m.include_uuid="true"),g&&(m.include_message_type="true"),m},handleResponse:function(e,t){var i={channels:{}};return Object.keys(t.channels||{}).forEach((function(n){i.channels[n]=[],(t.channels[n]||[]).forEach((function(t){var o={};o.channel=n,o.timetoken=t.timetoken,o.message=function(e,t){var i=e.config,n=e.crypto;if(!i.cipherKey)return t;try{return n.decrypt(t)}catch(e){return t}}(e,t.message),o.messageType=t.message_type,o.uuid=t.uuid,t.actions&&(o.actions=t.actions,o.data=t.actions),t.meta&&(o.meta=t.meta),i.channels[n].push(o)}))})),t.more&&(i.more=t.more),i}}),qe=Object.freeze({__proto__:null,getOperation:function(){return I.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(){}}),We=Object.freeze({__proto__:null,getOperation:function(){return I.PNSubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,o=void 0===n?[]:n,r=o.length>0?o.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(P.encodeString(r),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=e.config,n=t.state,o=t.channelGroups,r=void 0===o?[]:o,a=t.timetoken,s=t.filterExpression,l=t.region,u={heartbeat:i.getPresenceTimeout()};return r.length>0&&(u["channel-group"]=r.join(",")),s&&s.length>0&&(u["filter-expr"]=s),Object.keys(n).length&&(u.state=JSON.stringify(n)),a&&(u.tt=a),l&&(u.tr=l),u},handleResponse:function(e,t){var i=[];t.m.forEach((function(e){var t={publishTimetoken:e.p.t,region:e.p.r},n={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};i.push(n)}));var n={timetoken:t.t.t,region:t.t.r};return{messages:i,metadata:n}}}),Ve={getOperation:function(){return I.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 i=e.config,n=t.channels?t.channels.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(P.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.channelGroups&&t.channelGroups.length>0&&(i["channel-group"]=t.channelGroups.join(",")),i.tt=0,i},handleResponse:function(e,t){return{region:t.t.r,timetoken:t.t.t}}},Ye={getOperation:function(){return I.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 i=e.config,n=t.channels?t.channels.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(P.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},getAbortSignal:function(e,t){return t.abortSignal},prepareParams:function(e,t){var i={};return t.channelGroups&&t.channelGroups.length>0&&(i["channel-group"]=t.channelGroups.join(",")),i.tt=t.timetoken,i.tr=t.region,i},handleResponse:function(e,t){var i=[];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,publishMetaData:{timetoken:e.p.t,region:e.p.r}};i.push(t)})),{messages:i,metadata:{region:t.t.r,timetoken:t.t.t}}}},Ke=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,i=function(){t.listeners.forEach((function(t){t(e)}))};this.sync?i():setTimeout(i,0)},e}(),Xe=function(){function e(e){this.label=e,this.transitionMap=new Map,this.enterEffects=[],this.exitEffects=[]}return e.prototype.transition=function(e,t){var i;if(this.transitionMap.has(t.type))return null===(i=this.transitionMap.get(t.type))||void 0===i?void 0:i(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}(),Ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),i.prototype.describe=function(e){return new Xe(e)},i.prototype.start=function(e,t){this.currentState=e,this.currentContext=t,this.notify({type:"engineStarted",state:e,context:t})},i.prototype.transition=function(e){var t,i,n,o,r,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 c=l(u,3),d=c[0],h=c[1],p=c[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&&(i=f.return)&&i.call(f)}finally{if(t)throw t.error}}var b=this.currentState;this.currentState=d;var v=this.currentContext;this.currentContext=h,this.notify({type:"transitionDone",fromState:b,fromContext:v,toState:d,toContext:h,event:e});try{for(var y=s(p),w=y.next();!w.done;w=y.next())m=w.value,this.notify({type:"invocationDispatched",invocation:m})}catch(e){n={error:e}}finally{try{w&&!w.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.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){r={error:e}}finally{try{x&&!x.done&&(a=C.return)&&a.call(C)}finally{if(r)throw r.error}}}},i}(Ke),Je=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 i=t(e.payload,this.dependencies);e.managed&&this.instances.set(e.type,i),i.start()}else if(this.instances.has(e.payload)){var n=this.instances.get(e.payload);null==n||n.cancel(),this.instances.delete(e.payload)}},e}();function et(e,t){var i=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return{type:e,payload:null==t?void 0:t.apply(void 0,u([],l(i),!1))}};return i.type=e,i}function tt(e,t){var i=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return{type:e,payload:t.apply(void 0,u([],l(i),!1)),managed:!0}};return i.type=e,i.cancel={type:"CANCEL",payload:e,managed:!1},i}var it,nt,ot,rt=function(e){function i(){var t=this.constructor,i=e.call(this,"The operation was aborted.")||this;return i.name="AbortError",Object.setPrototypeOf(i,t.prototype),i}return t(i,e),i}(Error),at=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t._aborted=!1,t}return t(i,e),Object.defineProperty(i.prototype,"aborted",{get:function(){return this._aborted},enumerable:!1,configurable:!0}),i.prototype.throwIfAborted=function(){if(this._aborted)throw new rt},i.prototype.abort=function(){this._aborted=!0,this.notify(new rt)},i}(Ke),st=function(e){function i(t,i,n){var o=e.call(this,t,i)||this;return o.asyncFunction=n,o.abortSignal=new at,o}return t(i,e),i.prototype.start=function(){this.asyncFunction(this.payload,this.abortSignal,this.dependencies)},i.prototype.cancel=function(){this.abortSignal.abort()},i}((function(e,t){this.payload=e,this.dependencies=t})),lt=function(e){return function(t,i){return new st(t,i,e)}},ut=tt("HANDSHAKE",(function(e,t){return{channels:e,groups:t}})),ct=tt("RECEIVE_EVENTS",(function(e,t,i){return{channels:e,groups:t,cursor:i}})),dt=(nt=function(e){return e},ot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{type:it,payload:nt.apply(void 0,u([],l(e),!1)),managed:!1}},ot.type=it="EMIT_EVENTS",ot),ht=tt("RECONNECT",(function(e){return e})),pt=tt("HANDSHAKE_RECONNECT",(function(e){return e})),ft=et("SUBSCRIPTION_CHANGE",(function(e,t){return{channels:e,groups:t}})),gt=et("DISCONNECT",(function(){return{}})),mt=et("RECONNECT",(function(){return{}}));et("RESTORE",(function(e,t,i,n){return{channels:e,groups:t,timetoken:i,region:n}}));var bt=et("HANDSHAKING_SUCCESS",(function(e){return e})),vt=et("HANDSHAKING_FAILURE",(function(e){return e})),yt=et("HANDSHAKING_RECONNECTING_SUCCESS",(function(e){return{cursor:e}})),wt=et("HANDSHAKING_RECONNECTING_FAILURE",(function(e){return e})),Ct=et("HANDSHAKING_RECONNECTING_GIVEUP",(function(){return{}})),xt=et("HANDSHAKING_RECONNECTING_RETRY",(function(){return{}})),At=et("RECEIVING_SUCCESS",(function(e,t){return{cursor:e,events:t}})),St=et("RECEIVING_FAILURE",(function(e){return e})),kt=et("RECONNECTING_SUCCESS",(function(e,t){return{cursor:e,events:t}})),Tt=et("RECONNECTING_FAILURE",(function(e){return e})),_t=et("RECONNECTING_GIVEUP",(function(){return{}})),Et=et("RECONNECTING_RETRY",(function(){return{}})),Ot=function(e){function i(t,i){var n=e.call(this,i)||this;return n.on(ut.type,lt((function(e,i,o){var s=o.handshake;return r(n,void 0,void 0,(function(){var n,o;return a(this,(function(r){switch(r.label){case 0:i.throwIfAborted(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups})];case 2:return n=r.sent(),t.transition(bt(n)),[3,4];case 3:return(o=r.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof $?[2,t.transition(vt(o))]:[3,4];case 4:return[2]}}))}))}))),n.on(ct.type,lt((function(e,i,o){var s=o.receiveEvents;return r(n,void 0,void 0,(function(){var n,o;return a(this,(function(r){switch(r.label){case 0:i.throwIfAborted(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region})];case 2:return n=r.sent(),t.transition(At(n.metadata,n.messages)),[3,4];case 3:return(o=r.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof $?[2,t.transition(St(o))]:[3,4];case 4:return[2]}}))}))}))),n.on(dt.type,lt((function(e,t,i){return i.receiveEvents,r(n,void 0,void 0,(function(){return a(this,(function(t){return e.length>0&&console.log(e),[2]}))}))}))),n.on(ht.type,lt((function(e,i,o){var s=o.receiveEvents,l=o.shouldRetry,u=o.getRetryDelay,c=o.delay;return r(n,void 0,void 0,(function(){var n,o;return a(this,(function(r){switch(r.label){case 0:return l(e.reason,e.attempts)?(i.throwIfAborted(),[4,c(u(e.attempts))]):[2,t.transition(_t())];case 1:r.sent(),i.throwIfAborted(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region})];case 3:return n=r.sent(),[2,t.transition(kt(n.metadata,n.messages))];case 4:return(o=r.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof $?[2,t.transition(Tt(o))]:[3,5];case 5:return[2]}}))}))}))),n.on(pt.type,lt((function(e,i,o){var s=o.handshake,l=o.shouldRetry,u=o.getRetryDelay,c=o.delay;return r(n,void 0,void 0,(function(){var n,o;return a(this,(function(r){switch(r.label){case 0:return l(e.reason,e.attempts)?(i.throwIfAborted(),[4,c(u(e.attempts))]):[2,t.transition(Ct())];case 1:r.sent(),i.throwIfAborted(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups})];case 3:return n=r.sent(),[2,t.transition(yt(n.metadata))];case 4:return(o=r.sent())instanceof Error&&"Aborted"===o.message?[2]:o instanceof $?[2,t.transition(wt(o))]:[3,5];case 5:return[2]}}))}))}))),n}return t(i,e),i}(Je),Pt=new Xe("STOPPED");Pt.on(ft.type,(function(e,t){return Pt.with({channels:t.payload.channels,groups:t.payload.groups})})),Pt.on(mt.type,(function(e){return Rt.with(n({},e))}));var Mt=new Xe("HANDSHAKE_FAILURE");Mt.on(xt.type,(function(e){return Lt.with(n(n({},e),{attempts:0}))})),Mt.on(gt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups})}));var Nt=new Xe("STOPPED");Nt.on(ft.type,(function(e,t){return Nt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})})),Nt.on(mt.type,(function(e){return Ut.with(n({},e))}));var It=new Xe("RECEIVE_FAILURE");It.on(Et.type,(function(e){return Dt.with(n(n({},e),{attempts:0}))})),It.on(gt.type,(function(e){return Nt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Dt=new Xe("RECEIVE_RECONNECTING");Dt.onEnter((function(e){return ht(e)})),Dt.onExit((function(){return ht.cancel})),Dt.on(kt.type,(function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[dt(t.payload.events)])})),Dt.on(Tt.type,(function(e,t){return Dt.with(n(n({},e),{attempts:e.attempts+1,reason:t.payload}))})),Dt.on(_t.type,(function(e){return It.with({groups:e.groups,channels:e.channels,cursor:e.cursor,reason:e.reason})})),Dt.on(gt.type,(function(e){return Nt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Ut=new Xe("RECEIVING");Ut.onEnter((function(e){return ct(e.channels,e.groups,e.cursor)})),Ut.onExit((function(){return ct.cancel})),Ut.on(At.type,(function(e,t){return Ut.with(n(n({},e),{cursor:t.payload.cursor}),[dt(t.payload.events)])})),Ut.on(ft.type,(function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?Bt.with(void 0):Ut.with(n(n({},e),{channels:t.payload.channels,groups:t.payload.groups}))})),Ut.on(St.type,(function(e,t){return Dt.with(n(n({},e),{attempts:0,reason:t.payload}))})),Ut.on(gt.type,(function(e){return Nt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Lt=new Xe("HANDSHAKE_RECONNECTING");Lt.onEnter((function(e){return pt(e)})),Lt.onExit((function(){return ht.cancel})),Lt.on(kt.type,(function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[dt(t.payload.events)])})),Lt.on(Tt.type,(function(e,t){return Lt.with(n(n({},e),{attempts:e.attempts+1,reason:t.payload}))})),Lt.on(_t.type,(function(e){return Mt.with({groups:e.groups,channels:e.channels,reason:e.reason})})),Lt.on(gt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups})}));var Rt=new Xe("HANDSHAKING");Rt.onEnter((function(e){return ut(e.channels,e.groups)})),Rt.onExit((function(){return ut.cancel})),Rt.on(ft.type,(function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?Bt.with(void 0):Rt.with({channels:t.payload.channels,groups:t.payload.groups})})),Rt.on(bt.type,(function(e,t){return Ut.with({channels:e.channels,groups:e.groups,cursor:t.payload})})),Rt.on(vt.type,(function(e,t){return Lt.with(n(n({},e),{attempts:0,reason:t.payload}))})),Rt.on(gt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups})}));var Bt=new Xe("UNSUBSCRIBED");Bt.on(ft.type,(function(e,t){return Rt.with({channels:t.payload.channels,groups:t.payload.groups})}));var jt=function(){function e(e){var t=this;this.engine=new Ze,this.channels=[],this.groups=[],this.dispatcher=new Ot(this.engine,e),this.engine.subscribe((function(e){"invocationDispatched"===e.type&&t.dispatcher.dispatch(e.invocation)})),this.engine.start(Bt,void 0)}return Object.defineProperty(e.prototype,"_engine",{get:function(){return this.engine},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e){var t=e.channels,i=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!=i?i:[]),!1),this.engine.transition(ft(this.channels,this.groups))},e.prototype.unsubscribe=function(e){var t=e.channels,i=e.groups;this.channels=this.channels.filter((function(e){var i;return null===(i=!(null==t?void 0:t.includes(e)))||void 0===i||i})),this.groups=this.groups.filter((function(e){var t;return null===(t=!(null==i?void 0:i.includes(e)))||void 0===t||t})),this.engine.transition(ft(this.channels.slice(0),this.groups.slice(0)))},e.prototype.unsubscribeAll=function(){this.channels=[],this.groups=[],this.engine.transition(ft(this.channels.slice(0),this.groups.slice(0)))},e.prototype.reconnect=function(){this.engine.transition(mt())},e.prototype.disconnect=function(){this.engine.transition(gt())},e}(),Ht=function(){function e(e){var t=this,i=e.networking,o=e.cbor,r=new m({setup:e});this._config=r;var a=new T({config:r}),s=e.cryptography;i.init(r);var c=new F(r,o);this._tokenManager=c;var d=new D({maximumSamplesCount:6e4});this._telemetryManager=d;var h={config:r,networking:i,crypto:a,cryptography:s,tokenManager:c,telemetryManager:d,PubNubFile:e.PubNubFile};this.File=e.PubNubFile,this.encryptFile=function(e,i){return s.encryptFile(e,i,t.File)},this.decryptFile=function(e,i){return s.decryptFile(e,i,t.File)};var p=V.bind(this,h,qe),f=V.bind(this,h,oe),g=V.bind(this,h,ae),b=V.bind(this,h,le),v=V.bind(this,h,We),y=new H;if(this._listenerManager=y,this.iAmHere=V.bind(this,h,ae),this.iAmAway=V.bind(this,h,oe),this.setPresenceState=V.bind(this,h,le),this.handshake=V.bind(this,h,Ve),this.receiveMessages=V.bind(this,h,Ye),!0===r.enableSubscribeBeta){var w=new jt({handshake:this.handshake,receiveEvents:this.receiveMessages});this.subscribe=w.subscribe.bind(w),this.unsubscribe=w.unsubscribe.bind(w),this.eventEngine=w}else{var C=new N({timeEndpoint:p,leaveEndpoint:f,heartbeatEndpoint:g,setStateEndpoint:b,subscribeEndpoint:v,crypto:h.crypto,config:h.config,listenerManager:y,getFileUrl:function(e){return be(h,e)}});this.subscribe=C.adaptSubscribeChange.bind(C),this.unsubscribe=C.adaptUnsubscribeChange.bind(C),this.disconnect=C.disconnect.bind(C),this.reconnect=C.reconnect.bind(C),this.unsubscribeAll=C.unsubscribeAll.bind(C),this.getSubscribedChannels=C.getSubscribedChannels.bind(C),this.getSubscribedChannelGroups=C.getSubscribedChannelGroups.bind(C),this.setState=C.adaptStateChange.bind(C),this.presence=C.adaptPresenceChange.bind(C),this.destroy=function(e){C.unsubscribeAll(e),C.disconnect()}}this.addListener=y.addListener.bind(y),this.removeListener=y.removeListener.bind(y),this.removeAllListeners=y.removeAllListeners.bind(y),this.parseToken=c.parseToken.bind(c),this.setToken=c.setToken.bind(c),this.getToken=c.getToken.bind(c),this.channelGroups={listGroups:V.bind(this,h,Z),listChannels:V.bind(this,h,J),addChannels:V.bind(this,h,Y),removeChannels:V.bind(this,h,K),deleteGroup:V.bind(this,h,X)},this.push={addChannels:V.bind(this,h,ee),removeChannels:V.bind(this,h,te),deleteDevice:V.bind(this,h,ne),listChannels:V.bind(this,h,ie)},this.hereNow=V.bind(this,h,ue),this.whereNow=V.bind(this,h,re),this.getState=V.bind(this,h,se),this.grant=V.bind(this,h,Ie),this.grantToken=V.bind(this,h,Le),this.audit=V.bind(this,h,Ne),this.revokeToken=V.bind(this,h,Re),this.publish=V.bind(this,h,je),this.fire=function(e,i){return e.replicate=!1,e.storeInHistory=!1,t.publish(e,i)},this.signal=V.bind(this,h,He),this.history=V.bind(this,h,$e),this.deleteMessages=V.bind(this,h,ze),this.messageCounts=V.bind(this,h,Qe),this.fetchMessages=V.bind(this,h,Ge),this.addMessageAction=V.bind(this,h,ce),this.removeMessageAction=V.bind(this,h,de),this.getMessageActions=V.bind(this,h,he),this.listFiles=V.bind(this,h,pe);var x=V.bind(this,h,fe);this.publishFile=V.bind(this,h,ge),this.sendFile=me({generateUploadUrl:x,publishFile:this.publishFile,modules:h}),this.getFileUrl=function(e){return be(h,e)},this.downloadFile=V.bind(this,h,ve),this.deleteFile=V.bind(this,h,ye),this.objects={getAllUUIDMetadata:V.bind(this,h,we),getUUIDMetadata:V.bind(this,h,Ce),setUUIDMetadata:V.bind(this,h,xe),removeUUIDMetadata:V.bind(this,h,Ae),getAllChannelMetadata:V.bind(this,h,Se),getChannelMetadata:V.bind(this,h,ke),setChannelMetadata:V.bind(this,h,Te),removeChannelMetadata:V.bind(this,h,_e),getChannelMembers:V.bind(this,h,Ee),setChannelMembers:function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return V.call.apply(V,u([t,h,Oe,n({type:"set"},e)],l(i),!1))},removeChannelMembers:function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return V.call.apply(V,u([t,h,Oe,n({type:"delete"},e)],l(i),!1))},getMemberships:V.bind(this,h,Pe),setMemberships:function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return V.call.apply(V,u([t,h,Me,n({type:"set"},e)],l(i),!1))},removeMemberships:function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return V.call.apply(V,u([t,h,Me,n({type:"delete"},e)],l(i),!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 i,n;return"string"==typeof e.spaceId?t.objects.setChannelMembers({channel:e.spaceId,uuids:null===(i=e.users)||void 0===i?void 0:i.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===(n=e.spaces)||void 0===n?void 0:n.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,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map((function(e){var t=l(e,2),i=t[0],n=t[1];return[i.replace("user","uuid"),n]}))):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,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map((function(e){var t=l(e,2),i=t[0],n=t[1];return[i.replace("space","channel"),n]}))):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=p,this.stop=this.destroy,this.encrypt=a.encrypt.bind(a),this.decrypt=a.decrypt.bind(a),this.getAuthKey=h.config.getAuthKey.bind(h.config),this.setAuthKey=h.config.setAuthKey.bind(h.config),this.setCipherKey=h.config.setCipherKey.bind(h.config),this.getUUID=h.config.getUUID.bind(h.config),this.setUUID=h.config.setUUID.bind(h.config),this.getFilterExpression=h.config.getFilterExpression.bind(h.config),this.setFilterExpression=h.config.setFilterExpression.bind(h.config),this.setHeartbeatInterval=h.config.setHeartbeatInterval.bind(h.config),i.hasModule("proxy")&&(this.setProxy=function(e){h.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 j(e,t)},e.generateUUID=function(){return g()},e.OPERATIONS=I,e.CATEGORIES=M,e}(),Ft=function(){function e(e){var t=this;this._modules={},Object.keys(e).forEach((function(i){t._modules[i]=e[i].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,i){return this._modules.postfile(e,t,i)},e.prototype.GETFILE=function(e,t,i){return this._modules.getfile(e,t,i)},e.prototype.POST=function(e,t,i,n){return this._modules.post(e,t,i,n)},e.prototype.PATCH=function(e,t,i,n){return this._modules.patch(e,t,i,n)},e.prototype.GET=function(e,t,i){return this._modules.get(e,t,i)},e.prototype.DELETE=function(e,t,i){return this._modules.del(e,t,i)},e.prototype._detectErrorCategory=function(e){if("ENOTFOUND"===e.code)return M.PNNetworkIssuesCategory;if("ECONNREFUSED"===e.code)return M.PNNetworkIssuesCategory;if("ECONNRESET"===e.code)return M.PNNetworkIssuesCategory;if("EAI_AGAIN"===e.code)return M.PNNetworkIssuesCategory;if(0===e.status||e.hasOwnProperty("status")&&void 0===e.status)return M.PNNetworkIssuesCategory;if(e.timeout)return M.PNTimeoutCategory;if("ETIMEDOUT"===e.code)return M.PNNetworkIssuesCategory;if(e.response){if(e.response.badRequest)return M.PNBadRequestCategory;if(e.response.forbidden)return M.PNAccessDeniedCategory}return M.PNUnknownCategory},e}();function $t(e){var t=function(e){return e&&"object"==typeof e&&e.constructor===Object};if(!t(e))return e;var i={};return Object.keys(e).forEach((function(n){var o=function(e){return"string"==typeof e||e instanceof String}(n),r=n,a=e[n];Array.isArray(n)||o&&n.indexOf(",")>=0?r=(o?n.split(","):n).reduce((function(e,t){return e+String.fromCharCode(t)}),""):(function(e){return"number"==typeof e&&isFinite(e)}(n)||o&&!isNaN(n))&&(r=String.fromCharCode(o?parseInt(n,10):10)),i[r]=t(a)?$t(a):a})),i}var zt=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 i=e.replace(/-/gi,"+").replace(/_/gi,"/")+t,n=this._decode(this._base64ToBinary(i));if("object"==typeof n)return n},e}(),Qt={exports:{}},Gt={exports:{}};!function(e){function t(e){if(e)return function(e){for(var i in t.prototype)e[i]=t.prototype[i];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 i(){this.off(e,i),t.apply(this,arguments)}return i.fn=t,this.on(e,i),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 i,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<n.length;o++)if((i=n[o])===t||i.fn===t){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),i=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].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}}(Gt);var qt=Zt;Zt.default=Zt,Zt.stable=ii,Zt.stableStringify=ii;var Wt="[...]",Vt="[Circular]",Yt=[],Kt=[];function Xt(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Zt(e,t,i,n){var o;void 0===n&&(n=Xt()),ei(e,"",0,[],void 0,0,n);try{o=0===Kt.length?JSON.stringify(e,t,i):JSON.stringify(e,oi(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==Yt.length;){var r=Yt.pop();4===r.length?Object.defineProperty(r[0],r[1],r[3]):r[0][r[1]]=r[2]}}return o}function Jt(e,t,i,n){var o=Object.getOwnPropertyDescriptor(n,i);void 0!==o.get?o.configurable?(Object.defineProperty(n,i,{value:e}),Yt.push([n,i,t,o])):Kt.push([t,i,e]):(n[i]=e,Yt.push([n,i,t]))}function ei(e,t,i,n,o,r,a){var s;if(r+=1,"object"==typeof e&&null!==e){for(s=0;s<n.length;s++)if(n[s]===e)return void Jt(Vt,e,t,o);if(void 0!==a.depthLimit&&r>a.depthLimit)return void Jt(Wt,e,t,o);if(void 0!==a.edgesLimit&&i+1>a.edgesLimit)return void Jt(Wt,e,t,o);if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ei(e[s],s,s,n,e,r,a);else{var l=Object.keys(e);for(s=0;s<l.length;s++){var u=l[s];ei(e[u],u,s,n,e,r,a)}}n.pop()}}function ti(e,t){return e<t?-1:e>t?1:0}function ii(e,t,i,n){void 0===n&&(n=Xt());var o,r=ni(e,"",0,[],void 0,0,n)||e;try{o=0===Kt.length?JSON.stringify(r,t,i):JSON.stringify(r,oi(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==Yt.length;){var a=Yt.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return o}function ni(e,t,i,n,o,r,a){var s;if(r+=1,"object"==typeof e&&null!==e){for(s=0;s<n.length;s++)if(n[s]===e)return void Jt(Vt,e,t,o);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==a.depthLimit&&r>a.depthLimit)return void Jt(Wt,e,t,o);if(void 0!==a.edgesLimit&&i+1>a.edgesLimit)return void Jt(Wt,e,t,o);if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ni(e[s],s,s,n,e,r,a);else{var l={},u=Object.keys(e).sort(ti);for(s=0;s<u.length;s++){var c=u[s];ni(e[c],c,s,n,e,r,a),l[c]=e[c]}if(void 0===o)return l;Yt.push([o,t,e]),o[t]=l}n.pop()}}function oi(e){return e=void 0!==e?e:function(e,t){return t},function(t,i){if(Kt.length>0)for(var n=0;n<Kt.length;n++){var o=Kt[n];if(o[1]===t&&o[0]===i){i=o[2],Kt.splice(n,1);break}}return e.call(this,t,i)}}var ri=String.prototype.replace,ai=/%20/g,si="RFC3986",li={default:si,formatters:{RFC1738:function(e){return ri.call(e,ai,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:si},ui=li,ci=Object.prototype.hasOwnProperty,di=Array.isArray,hi=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),pi=function(e,t){for(var i=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(i[n]=e[n]);return i},fi={arrayToObject:pi,assign:function(e,t){return Object.keys(t).reduce((function(e,i){return e[i]=t[i],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n<t.length;++n)for(var o=t[n],r=o.obj[o.prop],a=Object.keys(r),s=0;s<a.length;++s){var l=a[s],u=r[l];"object"==typeof u&&null!==u&&-1===i.indexOf(u)&&(t.push({obj:r,prop:l}),i.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(di(i)){for(var n=[],o=0;o<i.length;++o)void 0!==i[o]&&n.push(i[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,i){var n=e.replace(/\+/g," ");if("iso-8859-1"===i)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,i,n,o){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===i)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<r.length;++s){var l=r.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===ui.RFC1738&&(40===l||41===l)?a+=r.charAt(s):l<128?a+=hi[l]:l<2048?a+=hi[192|l>>6]+hi[128|63&l]:l<55296||l>=57344?a+=hi[224|l>>12]+hi[128|l>>6&63]+hi[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&r.charCodeAt(s)),a+=hi[240|l>>18]+hi[128|l>>12&63]+hi[128|l>>6&63]+hi[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(di(e)){for(var i=[],n=0;n<e.length;n+=1)i.push(t(e[n]));return i}return t(e)},merge:function e(t,i,n){if(!i)return t;if("object"!=typeof i){if(di(t))t.push(i);else{if(!t||"object"!=typeof t)return[t,i];(n&&(n.plainObjects||n.allowPrototypes)||!ci.call(Object.prototype,i))&&(t[i]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(i);var o=t;return di(t)&&!di(i)&&(o=pi(t,n)),di(t)&&di(i)?(i.forEach((function(i,o){if(ci.call(t,o)){var r=t[o];r&&"object"==typeof r&&i&&"object"==typeof i?t[o]=e(r,i,n):t.push(i)}else t[o]=i})),t):Object.keys(i).reduce((function(t,o){var r=i[o];return ci.call(t,o)?t[o]=e(t[o],r,n):t[o]=r,t}),o)}},gi=fi,mi=li,bi=Object.prototype.hasOwnProperty,vi={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},yi=Array.isArray,wi=String.prototype.split,Ci=Array.prototype.push,xi=function(e,t){Ci.apply(e,yi(t)?t:[t])},Ai=Date.prototype.toISOString,Si=mi.default,ki={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:gi.encode,encodeValuesOnly:!1,format:Si,formatter:mi.formatters[Si],indices:!1,serializeDate:function(e){return Ai.call(e)},skipNulls:!1,strictNullHandling:!1},Ti=function e(t,i,n,o,r,a,s,l,u,c,d,h,p,f){var g,m=t;if("function"==typeof s?m=s(i,m):m instanceof Date?m=c(m):"comma"===n&&yi(m)&&(m=gi.maybeMap(m,(function(e){return e instanceof Date?c(e):e}))),null===m){if(o)return a&&!p?a(i,ki.encoder,f,"key",d):i;m=""}if("string"==typeof(g=m)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||gi.isBuffer(m)){if(a){var b=p?i:a(i,ki.encoder,f,"key",d);if("comma"===n&&p){for(var v=wi.call(String(m),","),y="",w=0;w<v.length;++w)y+=(0===w?"":",")+h(a(v[w],ki.encoder,f,"value",d));return[h(b)+"="+y]}return[h(b)+"="+h(a(m,ki.encoder,f,"value",d))]}return[h(i)+"="+h(String(m))]}var C,x=[];if(void 0===m)return x;if("comma"===n&&yi(m))C=[{value:m.length>0?m.join(",")||null:void 0}];else if(yi(s))C=s;else{var A=Object.keys(m);C=l?A.sort(l):A}for(var S=0;S<C.length;++S){var k=C[S],T="object"==typeof k&&void 0!==k.value?k.value:m[k];if(!r||null!==T){var _=yi(m)?"function"==typeof n?n(i,k):i:i+(u?"."+k:"["+k+"]");xi(x,e(T,_,n,o,r,a,s,l,u,c,d,h,p,f))}}return x},_i=fi,Ei=Object.prototype.hasOwnProperty,Oi=Array.isArray,Pi={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:_i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Mi=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Ni=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ii=function(e,t,i,n){if(e){var o=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,a=i.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,l=[];if(s){if(!i.plainObjects&&Ei.call(Object.prototype,s)&&!i.allowPrototypes)return;l.push(s)}for(var u=0;i.depth>0&&null!==(a=r.exec(o))&&u<i.depth;){if(u+=1,!i.plainObjects&&Ei.call(Object.prototype,a[1].slice(1,-1))&&!i.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+o.slice(a.index)+"]"),function(e,t,i,n){for(var o=n?t:Ni(t,i),r=e.length-1;r>=0;--r){var a,s=e[r];if("[]"===s&&i.parseArrays)a=[].concat(o);else{a=i.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);i.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&i.parseArrays&&u<=i.arrayLimit?(a=[])[u]=o:"__proto__"!==l&&(a[l]=o):a={0:o}}o=a}return o}(l,t,i,n)}},Di={formats:li,parse:function(e,t){var i=function(e){if(!e)return Pi;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?Pi.charset:e.charset;return{allowDots:void 0===e.allowDots?Pi.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Pi.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Pi.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Pi.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Pi.comma,decoder:"function"==typeof e.decoder?e.decoder:Pi.decoder,delimiter:"string"==typeof e.delimiter||_i.isRegExp(e.delimiter)?e.delimiter:Pi.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Pi.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Pi.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Pi.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Pi.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Pi.strictNullHandling}}(t);if(""===e||null==e)return i.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var i,n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,r=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,r),s=-1,l=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?l="utf-8":"utf8=%26%2310003%3B"===a[i]&&(l="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var u,c,d=a[i],h=d.indexOf("]="),p=-1===h?d.indexOf("="):h+1;-1===p?(u=t.decoder(d,Pi.decoder,l,"key"),c=t.strictNullHandling?null:""):(u=t.decoder(d.slice(0,p),Pi.decoder,l,"key"),c=_i.maybeMap(Ni(d.slice(p+1),t),(function(e){return t.decoder(e,Pi.decoder,l,"value")}))),c&&t.interpretNumericEntities&&"iso-8859-1"===l&&(c=Mi(c)),d.indexOf("[]=")>-1&&(c=Oi(c)?[c]:c),Ei.call(n,u)?n[u]=_i.combine(n[u],c):n[u]=c}return n}(e,i):e,o=i.plainObjects?Object.create(null):{},r=Object.keys(n),a=0;a<r.length;++a){var s=r[a],l=Ii(s,n[s],i,"string"==typeof e);o=_i.merge(o,l,i)}return _i.compact(o)},stringify:function(e,t){var i,n=e,o=function(e){if(!e)return ki;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||ki.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 i=mi.default;if(void 0!==e.format){if(!bi.call(mi.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var n=mi.formatters[i],o=ki.filter;return("function"==typeof e.filter||yi(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:ki.addQueryPrefix,allowDots:void 0===e.allowDots?ki.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ki.charsetSentinel,delimiter:void 0===e.delimiter?ki.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:ki.encode,encoder:"function"==typeof e.encoder?e.encoder:ki.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:ki.encodeValuesOnly,filter:o,format:i,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:ki.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:ki.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ki.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):yi(o.filter)&&(i=o.filter);var r,a=[];if("object"!=typeof n||null===n)return"";r=t&&t.arrayFormat in vi?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=vi[r];i||(i=Object.keys(n)),o.sort&&i.sort(o.sort);for(var l=0;l<i.length;++l){var u=i[l];o.skipNulls&&null===n[u]||xi(a,Ti(n[u],u,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset))}var c=a.join(o.delimiter),d=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),c.length>0?d+c:""}};function Ui(e){return Ui="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},Ui(e)}var Li=function(e){return null!==e&&"object"===Ui(e)};function Ri(e){return Ri="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},Ri(e)}var Bi=Li,ji=Hi;function Hi(e){if(e)return function(e){for(var t in Hi.prototype)Object.prototype.hasOwnProperty.call(Hi.prototype,t)&&(e[t]=Hi.prototype[t]);return e}(e)}Hi.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},Hi.prototype.parse=function(e){return this._parser=e,this},Hi.prototype.responseType=function(e){return this._responseType=e,this},Hi.prototype.serialize=function(e){return this._serializer=e,this},Hi.prototype.timeout=function(e){if(!e||"object"!==Ri(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},Hi.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};var Fi=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),$i=new Set([408,413,429,500,502,503,504,521,522,524]);Hi.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var i=this._retryCallback(e,t);if(!0===i)return!0;if(!1===i)return!1}catch(e){console.error(e)}if(t&&t.status&&$i.has(t.status))return!0;if(e){if(e.code&&Fi.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},Hi.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()},Hi.prototype.then=function(e,t){var i=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){n.on("abort",(function(){if(!(i._maxRetries&&i._maxRetries>i._retries))if(i.timedout&&i.timedoutError)t(i.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=i.status,e.method=i.method,e.url=i.url,t(e)}})),n.end((function(i,n){i?t(i):e(n)}))}))}return this._fullfilledPromise.then(e,t)},Hi.prototype.catch=function(e){return this.then(void 0,e)},Hi.prototype.use=function(e){return e(this),this},Hi.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},Hi.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},Hi.prototype.get=function(e){return this._header[e.toLowerCase()]},Hi.prototype.getHeader=Hi.prototype.get,Hi.prototype.set=function(e,t){if(Bi(e)){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},Hi.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},Hi.prototype.field=function(e,t){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(Bi(e)){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.field(i,e[i]);return this}if(Array.isArray(t)){for(var n in t)Object.prototype.hasOwnProperty.call(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)),this._getFormData().append(e,t),this},Hi.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},Hi.prototype._auth=function(e,t,i,n){switch(i.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},Hi.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},Hi.prototype.redirects=function(e){return this._maxRedirects=e,this},Hi.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},Hi.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},Hi.prototype.send=function(e){var t=Bi(e),i=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&&Bi(this._data))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this._data[n]=e[n]);else"string"==typeof e?(i||this.type("form"),(i=this._header["content-type"])&&(i=i.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===i?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||i||this.type("json"),this},Hi.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},Hi.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var i=this.url.slice(t+1).split("&");"function"==typeof this._sort?i.sort(this._sort):i.sort(),this.url=this.url.slice(0,t)+"?"+i.join("&")}}},Hi.prototype._appendQueryString=function(){console.warn("Unsupported")},Hi.prototype._timeoutError=function(e,t,i){if(!this._aborted){var n=new Error("".concat(e+t,"ms exceeded"));n.timeout=t,n.code="ECONNABORTED",n.errno=i,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},Hi.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var zi={};function Qi(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Gi(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)?Gi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 r,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw r}}}}function Gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}zi.type=function(e){return e.split(/ *; */).shift()},zi.params=function(e){var t,i={},n=Qi(e.split(/ *; */));try{for(n.s();!(t=n.n()).done;){var o=t.value.split(/ *= */),r=o.shift(),a=o.shift();r&&a&&(i[r]=a)}}catch(e){n.e(e)}finally{n.f()}return i},zi.parseLinks=function(e){var t,i={},n=Qi(e.split(/ *, */));try{for(n.s();!(t=n.n()).done;){var o=t.value.split(/ *; */),r=o[0].slice(1,-1);i[o[1].split(/ *= */)[1].slice(1,-1)]=r}}catch(e){n.e(e)}finally{n.f()}return i},zi.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e};var qi=zi,Wi=Vi;function Vi(e){if(e)return function(e){for(var t in Vi.prototype)Object.prototype.hasOwnProperty.call(Vi.prototype,t)&&(e[t]=Vi.prototype[t]);return e}(e)}function Yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Ki(){this._defaults=[]}Vi.prototype.get=function(e){return this.header[e.toLowerCase()]},Vi.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=qi.type(t);var i=qi.params(t);for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(this[n]=i[n]);this.links={};try{e.link&&(this.links=qi.parseLinks(e.link))}catch(e){}},Vi.prototype._setStatusProperties=function(e){var t=e/100|0;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},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){Ki.prototype[e]=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return this._defaults.push({fn:e,args:i}),this}})),Ki.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,function(e){return function(e){if(Array.isArray(e))return Yi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Yi(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)?Yi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.args))}))};var Xi=Ki;!function(e,t){function i(e){return i="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},i(e)}var n;"undefined"!=typeof window?n=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self;var o=Gt.exports,r=qt,a=Di,s=ji,l=Li,u=Wi,c=Xi;function d(){}e.exports=function(e,i){return"function"==typeof i?new t.Request("GET",e).end(i):1===arguments.length?new t.Request("GET",e):new t.Request(e,i)};var h=t=e.exports;t.Request=y,h.getXHR=function(){if(n.XMLHttpRequest&&(!n.location||"file:"!==n.location.protocol||!n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function f(e){if(!l(e))return e;var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&g(t,i,e[i]);return t.join("&")}function g(e,t,i){if(void 0!==i)if(null!==i)if(Array.isArray(i))i.forEach((function(i){g(e,t,i)}));else if(l(i))for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&g(e,"".concat(t,"[").concat(n,"]"),i[n]);else e.push(encodeURI(t)+"="+encodeURIComponent(i));else e.push(encodeURI(t))}function m(e){for(var t,i,n={},o=e.split("&"),r=0,a=o.length;r<a;++r)-1===(i=(t=o[r]).indexOf("="))?n[decodeURIComponent(t)]="":n[decodeURIComponent(t.slice(0,i))]=decodeURIComponent(t.slice(i+1));return n}function b(e){return/[/+]json($|[^-\w])/i.test(e)}function v(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;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,i,n,o,r=e.split(/\r?\n/),a={},s=0,l=r.length;s<l;++s)-1!==(t=(i=r[s]).indexOf(":"))&&(n=i.slice(0,t).toLowerCase(),o=p(i.slice(t+1)),a[n]=o);return a}(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 y(e,t){var i=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,n=null;try{n=new v(i)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,i.xhr?(t.rawResponse=void 0===i.xhr.responseType?i.xhr.responseText:i.xhr.response,t.status=i.xhr.status?i.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),i.callback(t)}i.emit("response",n);try{i._isResponseOK(n)||(e=new Error(n.statusText||n.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=n,e.status=n.status,i.callback(e,n)):i.callback(null,n)}))}function w(e,t,i){var n=h("DELETE",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n}h.serializeObject=f,h.parseString=m,h.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"},h.serialize={"application/x-www-form-urlencoded":a.stringify,"application/json":r},h.parse={"application/x-www-form-urlencoded":m,"application/json":JSON.parse},u(v.prototype),v.prototype._parseBody=function(e){var t=h.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=h.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},v.prototype.toError=function(){var e=this.req,t=e.method,i=e.url,n="cannot ".concat(t," ").concat(i," (").concat(this.status,")"),o=new Error(n);return o.status=this.status,o.method=t,o.url=i,o},h.Response=v,o(y.prototype),s(y.prototype),y.prototype.type=function(e){return this.set("Content-Type",h.types[e]||e),this},y.prototype.accept=function(e){return this.set("Accept",h.types[e]||e),this},y.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===i(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var o=function(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,o)},y.prototype.query=function(e){return"string"!=typeof e&&(e=f(e)),e&&this._query.push(e),this},y.prototype.attach=function(e,t,i){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,i||t.name)}return this},y.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},y.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var i=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),i(e,t)},y.prototype.crossDomainError=function(){var 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)},y.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},y.prototype.ca=y.prototype.agent,y.prototype.buffer=y.prototype.ca,y.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},y.prototype.pipe=y.prototype.write,y.prototype._isHost=function(e){return e&&"object"===i(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},y.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||d,this._finalizeQueryString(),this._end()},y.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},y.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=h.getXHR();var t=this.xhr,i=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var i=t.readyState;if(i>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===i){var n;try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,i){i.total>0&&(i.percent=i.loaded/i.total*100,100===i.percent&&clearTimeout(e._uploadTimeoutTimer)),i.direction=t,e.emit("progress",i)};if(this.hasListeners("progress"))try{t.addEventListener("progress",n.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",n.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 i&&!this._isHost(i)){var o=this._header["content-type"],r=this._serializer||h.serialize[o?o.split(";")[0]:""];!r&&b(o)&&(r=h.serialize["application/json"]),r&&(i=r(i))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===i?null:i)},h.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,i){var n=new h.Request(e,t);return this._setDefaults(n),i&&n.end(i),n}})),c.prototype.del=c.prototype.delete,h.get=function(e,t,i){var n=h("GET",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},h.head=function(e,t,i){var n=h("HEAD",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},h.options=function(e,t,i){var n=h("OPTIONS",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},h.del=w,h.delete=w,h.patch=function(e,t,i){var n=h("PATCH",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},h.post=function(e,t,i){var n=h("POST",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},h.put=function(e,t,i){var n=h("PUT",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n}}(Qt,Qt.exports);var Zi=Qt.exports;function Ji(e){var t=(new Date).getTime(),i=(new Date).toISOString(),n=console&&console.log?console:window&&window.console&&window.console.log?window.console:console;n.log("<<<<<"),n.log("[".concat(i,"]"),"\n",e.url,"\n",e.qs),n.log("-----"),e.on("response",(function(i){var o=(new Date).getTime()-t,r=(new Date).toISOString();n.log(">>>>>>"),n.log("[".concat(r," / ").concat(o,"]"),"\n",e.url,"\n",e.qs,"\n",i.text),n.log("-----")}))}function en(e,t,i){var n=this;this._config.logVerbosity&&(e=e.use(Ji)),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 o=e;if(t.abortSignal)var r=t.abortSignal.subscribe((function(){o.abort(),r()}));return!0===t.forceBuffered?o="undefined"==typeof Blob?o.buffer().responseType("arraybuffer"):o.responseType("arraybuffer"):!1===t.forceBuffered&&(o=o.buffer(!1)),(o=o.timeout(t.timeout)).on("abort",(function(){return i({category:M.PNUnknownCategory,error:!0,operation:t.operation,errorData:new Error("Aborted")},null)})),o.end((function(e,o){var r,a={};if(a.error=null!==e,a.operation=t.operation,o&&o.status&&(a.statusCode=o.status),e){if(e.response&&e.response.text&&!n._config.logVerbosity)try{a.errorData=JSON.parse(e.response.text)}catch(t){a.errorData=e}else a.errorData=e;return a.category=n._detectErrorCategory(e),i(a,null)}if(t.ignoreBody)r={headers:o.headers,redirects:o.redirects,response:o};else try{r=JSON.parse(o.text)}catch(e){return a.errorData=o,a.error=!0,i(a,null)}return r.error&&1===r.error&&r.status&&r.message&&r.service?(a.errorData=r,a.statusCode=r.status,a.error=!0,a.category=n._detectErrorCategory(a),i(a,null)):(r.error&&r.error.message&&(a.errorData=r.error),i(a,r))})),o}function tn(e,t,i){return r(this,void 0,void 0,(function(){var n;return a(this,(function(o){switch(o.label){case 0:return n=Zi.post(e),t.forEach((function(e){var t=e.key,i=e.value;n=n.field(t,i)})),n.attach("file",i,{contentType:"application/octet-stream"}),[4,n];case 1:return[2,o.sent()]}}))}))}function nn(e,t,i){var n=Zi.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function on(e,t,i){var n=Zi.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function rn(e,t,i,n){var o=Zi.post(this.getStandardOrigin()+i.url).query(e).set(i.headers).send(t);return en.call(this,o,i,n)}function an(e,t,i,n){var o=Zi.patch(this.getStandardOrigin()+i.url).query(e).set(i.headers).send(t);return en.call(this,o,i,n)}function sn(e,t,i){var n=Zi.delete(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function ln(e,t){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),e.byteLength),i.buffer}var un,cn=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 r(this,void 0,void 0,(function(){var i;return a(this,(function(n){switch(n.label){case 0:return[4,this.getKey(e)];case 1:if(i=n.sent(),t instanceof ArrayBuffer)return[2,this.encryptArrayBuffer(i,t)];if("string"==typeof t)return[2,this.encryptString(i,t)];throw new Error("Cannot encrypt this file. In browsers file encryption supports only string or ArrayBuffer")}}))}))},e.prototype.decrypt=function(e,t){return r(this,void 0,void 0,(function(){var i;return a(this,(function(n){switch(n.label){case 0:return[4,this.getKey(e)];case 1:if(i=n.sent(),t instanceof ArrayBuffer)return[2,this.decryptArrayBuffer(i,t)];if("string"==typeof t)return[2,this.decryptString(i,t)];throw new Error("Cannot decrypt this file. In browsers file decryption supports only string or ArrayBuffer")}}))}))},e.prototype.encryptFile=function(e,t,i){return r(this,void 0,void 0,(function(){var n,o,r;return a(this,(function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return n=a.sent(),[4,t.toArrayBuffer()];case 2:return o=a.sent(),[4,this.encryptArrayBuffer(n,o)];case 3:return r=a.sent(),[2,i.create({name:t.name,mimeType:"application/octet-stream",data:r})]}}))}))},e.prototype.decryptFile=function(e,t,i){return r(this,void 0,void 0,(function(){var n,o,r;return a(this,(function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return n=a.sent(),[4,t.toArrayBuffer()];case 2:return o=a.sent(),[4,this.decryptArrayBuffer(n,o)];case 3:return r=a.sent(),[2,i.create({name:t.name,data:r})]}}))}))},e.prototype.getKey=function(e){return r(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(o){switch(o.label){case 0:return t=Buffer.from(e),[4,crypto.subtle.digest("SHA-256",t.buffer)];case 1:return i=o.sent(),n=Buffer.from(Buffer.from(i).toString("hex").slice(0,32),"utf8").buffer,[2,crypto.subtle.importKey("raw",n,"AES-CBC",!0,["encrypt","decrypt"])]}}))}))},e.prototype.encryptArrayBuffer=function(e,t){return r(this,void 0,void 0,(function(){var i,n,o;return a(this,(function(r){switch(r.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),n=ln,o=[i.buffer],[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},e,t)];case 1:return[2,n.apply(void 0,o.concat([r.sent()]))]}}))}))},e.prototype.decryptArrayBuffer=function(e,t){return r(this,void 0,void 0,(function(){var i;return a(this,(function(n){return i=t.slice(0,16),[2,crypto.subtle.decrypt({name:"AES-CBC",iv:i},e,t.slice(16))]}))}))},e.prototype.encryptString=function(e,t){return r(this,void 0,void 0,(function(){var i,n,o,r;return a(this,(function(a){switch(a.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),n=Buffer.from(t).buffer,[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},e,n)];case 1:return o=a.sent(),r=ln(i.buffer,o),[2,Buffer.from(r).toString("utf8")]}}))}))},e.prototype.decryptString=function(e,t){return r(this,void 0,void 0,(function(){var i,n,o,r;return a(this,(function(a){switch(a.label){case 0:return i=Buffer.from(t),n=i.slice(0,16),o=i.slice(16),[4,crypto.subtle.decrypt({name:"AES-CBC",iv:n},e,o)];case 1:return r=a.sent(),[2,Buffer.from(r).toString("utf8")]}}))}))},e.IV_LENGTH=16,e}(),dn=(un=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 r(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 r(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 r(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 r(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this.data]}))}))},e.prototype.toArrayBuffer=function(){return r(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){return[2,new Promise((function(t,i){var n=new FileReader;n.addEventListener("load",(function(){if(n.result instanceof ArrayBuffer)return t(n.result)})),n.addEventListener("error",(function(){i(n.error)})),n.readAsArrayBuffer(e.data)}))]}))}))},e.prototype.toString=function(){return r(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){return[2,new Promise((function(t,i){var n=new FileReader;n.addEventListener("load",(function(){if("string"==typeof n.result)return t(n.result)})),n.addEventListener("error",(function(){i(n.error)})),n.readAsBinaryString(e.data)}))]}))}))},e.prototype.toFile=function(){return r(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this.data]}))}))},e}(),un.supportsFile="undefined"!=typeof File,un.supportsBlob="undefined"!=typeof Blob,un.supportsArrayBuffer="undefined"!=typeof ArrayBuffer,un.supportsBuffer=!1,un.supportsStream=!1,un.supportsString=!0,un.supportsEncryptFile=!0,un.supportsFileUri=!1,un);function hn(e){if(!navigator||!navigator.sendBeacon)return!1;navigator.sendBeacon(e)}var pn=function(e){function i(t){var i=this,n=t.listenToBrowserNetworkEvents,o=void 0===n||n;return t.sdkFamily="Web",t.networking=new Ft({del:sn,get:on,post:rn,patch:an,sendBeacon:hn,getfile:nn,postfile:tn}),t.cbor=new zt((function(e){return $t(h.decode(e))}),b),t.PubNubFile=dn,t.cryptography=new cn,i=e.call(this,t)||this,o&&(window.addEventListener("offline",(function(){i.networkDownDetected()})),window.addEventListener("online",(function(){i.networkUpDetected()}))),i}return t(i,e),i}(Ht);return pn}()},3379:e=>{var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var r={},a=[],s=0;s<e.length;s++){var l=e[s],u=n.base?l[0]+n.base:l[0],c=r[u]||0,d="".concat(u," ").concat(c);r[u]=c+1;var h=i(d),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=o(p,n);n.byIndex=s,t.splice(s,0,{identifier:d,updater:f,references:1})}a.push(d)}return a}function o(e,t){var i=t.domAPI(t);return i.update(e),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;i.update(e=t)}else i.remove()}}e.exports=function(e,o){var r=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<r.length;a++){var s=i(r[a]);t[s].references--}for(var l=n(e,o),u=0;u<r.length;u++){var c=i(r[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}r=l}}},569:e=>{var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},9216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,i)=>{e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var o=void 0!==i.layer;o&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,o&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var r=i.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589: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))}}}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{i.d(n,{l:()=>Ks,Z:()=>Ys});var e=i(9669),t=i.n(e);const o=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),a=new Map;class s{constructor(e,t){if(this._$cssResult$=!0,t!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=a.get(this.cssText);return o&&void 0===e&&(a.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const l=(e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,n)=>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.")})(i)+e[n+1]),e[0]);return new s(i,r)},u=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new s("string"==typeof e?e:e+"",r))(t)})(e):e;var c;const d=window.trustedTypes,h=d?d.emptyScript:"",p=window.reactiveElementPolyfillSupport,f={toAttribute(e,t){switch(t){case Boolean:e=e?h:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},g=(e,t)=>t!==e&&(t==t||e==e),m={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:g};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,i)=>{const n=this._$Eh(i,t);void 0!==n&&(this._$Eu.set(n,i),e.push(n))})),e}static createProperty(e,t=m){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(n){const o=this[e];this[t]=n,this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||m}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 i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(u(e))}else void 0!==e&&t.push(u(e));return t}static _$Eh(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"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,i;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.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 i=document.createElement("style"),n=window.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=t.cssText,e.appendChild(i)}))})(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,i){this._$AK(e,i)}_$ES(e,t,i=m){var n,o;const r=this.constructor._$Eh(e,i);if(void 0!==r&&!0===i.reflect){const a=(null!==(o=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==o?o:f.toAttribute)(t,i.type);this._$Ei=e,null==a?this.removeAttribute(r):this.setAttribute(r,a),this._$Ei=null}}_$AK(e,t){var i,n,o;const r=this.constructor,a=r._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){const e=r.getPropertyOptions(a),s=e.converter,l=null!==(o=null!==(n=null===(i=s)||void 0===i?void 0:i.fromAttribute)&&void 0!==n?n:"function"==typeof s?s:null)&&void 0!==o?o:f.fromAttribute;this._$Ei=a,this[a]=l(t,e.type),this._$Ei=null}}requestUpdate(e,t,i){let n=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||g)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Ei!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(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 i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),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(i)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(i)}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==p||p({ReactiveElement:b}),(null!==(c=globalThis.reactiveElementVersions)&&void 0!==c?c:globalThis.reactiveElementVersions=[]).push("1.3.1");const y=globalThis.trustedTypes,w=y?y.createPolicy("lit-html",{createHTML:e=>e}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,x="?"+C,A=`<${x}>`,S=document,k=(e="")=>S.createComment(e),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,_=Array.isArray,E=e=>{var t;return _(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,M=/>/g,N=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,I=/'/g,D=/"/g,U=/^(?:script|style|textarea|title)$/i,L=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),R=L(1),B=L(2),j=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),F=new WeakMap,$=S.createTreeWalker(S,129,null,!1),z=(e,t)=>{const i=e.length-1,n=[];let o,r=2===t?"<svg>":"",a=O;for(let t=0;t<i;t++){const i=e[t];let s,l,u=-1,c=0;for(;c<i.length&&(a.lastIndex=c,l=a.exec(i),null!==l);)c=a.lastIndex,a===O?"!--"===l[1]?a=P:void 0!==l[1]?a=M:void 0!==l[2]?(U.test(l[2])&&(o=RegExp("</"+l[2],"g")),a=N):void 0!==l[3]&&(a=N):a===N?">"===l[0]?(a=null!=o?o: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:I):a===D||a===I?a=N:a===P||a===M?a=O:(a=N,o=void 0);const d=a===N&&e[t+1].startsWith("/>")?" ":"";r+=a===O?i+A:u>=0?(n.push(s),i.slice(0,u)+"$lit$"+i.slice(u)+C+d):i+C+(-2===u?(n.push(void 0),t):d)}const s=r+(e[i]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(s):s,n]};class Q{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,r=0;const a=e.length-1,s=this.parts,[l,u]=z(e,t);if(this.el=Q.createElement(l,i),$.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=$.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith("$lit$")||t.startsWith(C)){const i=u[r++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+"$lit$").split(C),t=/([.?@])?(.*)/.exec(i);s.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?Y:"?"===t[1]?X:"@"===t[1]?Z:V})}else s.push({type:6,index:o})}for(const t of e)n.removeAttribute(t)}if(U.test(n.tagName)){const e=n.textContent.split(C),t=e.length-1;if(t>0){n.textContent=y?y.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],k()),$.nextNode(),s.push({type:2,index:++o});n.append(e[t],k())}}}else if(8===n.nodeType)if(n.data===x)s.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(C,e+1));)s.push({type:7,index:o}),e+=C.length-1}o++}}static createElement(e,t){const i=S.createElement("template");return i.innerHTML=e,i}}function G(e,t,i=e,n){var o,r,a,s;if(t===j)return t;let l=void 0!==n?null===(o=i._$Cl)||void 0===o?void 0:o[n]:i._$Cu;const u=T(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===u?l=void 0:(l=new u(e),l._$AT(e,i,n)),void 0!==n?(null!==(a=(s=i)._$Cl)&&void 0!==a?a:s._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(t=G(e,l._$AS(e,t.values),l,n)),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:i},parts:n}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:S).importNode(i,!0);$.currentNode=o;let r=$.nextNode(),a=0,s=0,l=n[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new W(r,r.nextSibling,this,e):1===l.type?t=new l.ctor(r,l.name,l.strings,this,e):6===l.type&&(t=new J(r,this,e)),this.v.push(t),l=n[++s]}a!==(null==l?void 0:l.index)&&(r=$.nextNode(),a++)}return o}m(e){let t=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class W{constructor(e,t,i,n){var o;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cg=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}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=G(this,e,t),T(e)?e===H||null==e||""===e?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==j&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.k(e):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!==H&&T(this._$AH)?this._$AA.nextSibling.data=e:this.k(S.createTextNode(e)),this._$AH=e}T(e){var t;const{values:i,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=Q.createElement(n.h,this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.m(i);else{const e=new q(o,this),t=e.p(this.options);e.m(i),this.k(t),this._$AH=e}}_$AC(e){let t=F.get(e.strings);return void 0===t&&F.set(e.strings,t=new Q(e)),t}S(e){_(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new W(this.M(k()),this.M(k()),this,this.options)):i=t[n],i._$AI(o),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.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 V{constructor(e,t,i,n,o){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const o=this.strings;let r=!1;if(void 0===o)e=G(this,e,t,0),r=!T(e)||e!==this._$AH&&e!==j,r&&(this._$AH=e);else{const n=e;let a,s;for(e=o[0],a=0;a<o.length-1;a++)s=G(this,n[i+a],t,a),s===j&&(s=this._$AH[a]),r||(r=!T(s)||s!==this._$AH[a]),s===H?e=H:e!==H&&(e+=(null!=s?s:"")+o[a+1]),this._$AH[a]=s}r&&!n&&this.C(e)}C(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Y extends V{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===H?void 0:e}}const K=y?y.emptyScript:"";class X extends V{constructor(){super(...arguments),this.type=4}C(e){e&&e!==H?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class Z extends V{constructor(e,t,i,n,o){super(e,t,i,n,o),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=G(this,e,t,0))&&void 0!==i?i:H)===j)return;const n=this._$AH,o=e===H&&n!==H||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==H&&(n===H||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class J{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){G(this,e)}}const ee={L:"$lit$",P:C,V:x,I:1,N:z,R:q,j:E,D:G,H:W,F:V,O:X,W:Z,B:Y,Z:J},te=window.litHtmlPolyfillSupport;var ie,ne;null==te||te(Q,W),(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 i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=((e,t,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let a=r._$litPart$;if(void 0===a){const e=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=a=new W(t.insertBefore(k(),e),e,void 0,null!=i?i:{})}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 re=globalThis.litElementPolyfillSupport;null==re||re({LitElement:oe}),(null!==(ne=globalThis.litElementVersions)&&void 0!==ne?ne:globalThis.litElementVersions=[]).push("3.2.0");const ae=e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:n}=t;return{kind:i,elements:n,finisher(t){window.customElements.define(e,t)}}})(e,t),se=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.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(i){i.createProperty(t.key,e)}};function le(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):se(e,t)}function ue(e){return le({...e,state:!0})}function ce(e,t){return(({finisher:e,descriptor:t})=>(i,n)=>{var o;if(void 0===n){const n=null!==(o=i.originalKey)&&void 0!==o?o:i.key,r=null!=t?{kind:"method",placement:"prototype",key:n,descriptor:t(i.key)}:{...i,key:n};return null!=e&&(r.finisher=function(t){e(t,n)}),r}{const o=i.constructor;void 0!==t&&Object.defineProperty(i,n,t(n)),null==e||e(o,n)}})({descriptor:i=>{const n={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(t){const t="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[t]&&(this[t]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(e))&&void 0!==n?n:null),this[t]}}return n}})}var de;null===(de=window.HTMLSlotElement)||void 0===de||de.prototype.assignedElements;const he=e=>(...t)=>({_$litDirective$:e,values:t});class pe{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const fe=he(class extends pe{constructor(e){var t;if(super(e),1!==e.type||"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 i,n;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===(i=this.st)||void 0===i?void 0:i.has(e))&&this.et.add(e);return this.render(t)}const o=e.element.classList;this.et.forEach((e=>{e in t||(o.remove(e),this.et.delete(e))}));for(const e in t){const i=!!t[e];i===this.et.has(e)||(null===(n=this.st)||void 0===n?void 0:n.has(e))||(i?(o.add(e),this.et.add(e)):(o.remove(e),this.et.delete(e)))}return j}}),{H:ge}=ee,me=(e,t)=>{var i,n;const o=e._$AN;if(void 0===o)return!1;for(const e of o)null===(n=(i=e)._$AO)||void 0===n||n.call(i,t,!1),me(e,t);return!0},be=e=>{let t,i;do{if(void 0===(t=e._$AM))break;i=t._$AN,i.delete(e),e=t}while(0===(null==i?void 0:i.size))},ve=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),Ce(t)}};function ye(e){void 0!==this._$AN?(be(this),this._$AM=e,ve(this)):this._$AM=e}function we(e,t=!1,i=0){const n=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(n))for(let e=i;e<n.length;e++)me(n[e],!1),be(n[e]);else null!=n&&(me(n,!1),be(n));else me(this,e)}const Ce=e=>{var t,i,n,o;2==e.type&&(null!==(t=(n=e)._$AP)&&void 0!==t||(n._$AP=we),null!==(i=(o=e)._$AQ)&&void 0!==i||(o._$AQ=ye))};class xe extends pe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),ve(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,n;e!==this.isConnected&&(this.isConnected=e,e?null===(i=this.reconnected)||void 0===i||i.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),t&&(me(this,e),be(this))}setValue(e){if((e=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const Ae=()=>new Se;class Se{}const ke=new WeakMap,Te=he(class extends xe{render(e){return H}update(e,[t]){var i;const n=t!==this.U;return n&&void 0!==this.U&&this.ot(void 0),(n||this.rt!==this.lt)&&(this.U=t,this.ht=null===(i=e.options)||void 0===i?void 0:i.host,this.ot(this.lt=e.element)),H}ot(e){var t;if("function"==typeof this.U){const i=null!==(t=this.ht)&&void 0!==t?t:globalThis;let n=ke.get(i);void 0===n&&(n=new WeakMap,ke.set(i,n)),void 0!==n.get(this.U)&&this.U.call(this.ht,void 0),n.set(this.U,e),void 0!==e&&this.U.call(this.ht,e)}else this.U.value=e}get rt(){var e,t,i;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===(i=this.U)||void 0===i?void 0:i.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),_e=e=>{const t=e.replace(/\D/g,"").substring(0,10),i=t.substring(0,3),n=t.substring(3,6),o=t.substring(6,10);return t.length>5?`(${i}) ${n}-${o}`:t.length>2?`(${i}) ${n}`:t.length>0?`(${i}`:""},Ee=e=>{const t=(""+e).replace(/\D/g,"").match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);return t?[t[1]?"+1 ":"","(",t[2],") ",t[3],"-",t[4]].join(""):e},Oe=e=>{const t=e.keyCode;return t>=48&&t<=57||t>=96&&t<=105},Pe=e=>e.altKey||e.ctrlKey||e.metaKey,Me=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)},Ne=he(class extends pe{constructor(e){var t;if(super(e),1!==e.type||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const n=e[i];return null==n?t:t+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ct){this.ct=new Set;for(const e in t)this.ct.add(e);return this.render(t)}this.ct.forEach((e=>{null==t[e]&&(this.ct.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const n=t[e];null!=n&&(this.ct.add(e),e.includes("-")?i.setProperty(e,n):i[e]=n)}return j}}),Ie="#646987",De="#ffffff",Ue=(e,t)=>{let i=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),o=parseInt(e.substr(5,2),16);return i=Math.round(i*(1-t)+255*t),n=Math.round(n*(1-t)+255*t),o=Math.round(o*(1-t)+255*t),"#"+i.toString(16).padStart(2,"0")+n.toString(16).padStart(2,"0")+o.toString(16).padStart(2,"0")},Le=(e,t)=>2===e||70392===t;var Re=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Be=class extends oe{constructor(){super(...arguments),this.heading="",this.subtitle="",this.selected=!1,this.primaryColor=Ie,this.backgroundColor=De,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black"}render(){return R`
|
|
3
3
|
<div
|
|
4
4
|
class="tour-type-option"
|
|
5
5
|
tabindex="0"
|
|
@@ -355,7 +355,7 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
355
355
|
width: 100%;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
`,ei([le({attribute:!1})],ii.prototype,"options",void 0),ei([le({type:Boolean})],ii.prototype,"selectedDateExists",void 0),ei([le({attribute:!0})],ii.prototype,"timezone",void 0),ei([le({attribute:!0})],ii.prototype,"defaultSelectedTime",void 0),ei([ue()],ii.prototype,"selected",void 0),ei([le({attribute:!1})],ii.prototype,"selectedTime",null),ii=ei([ae("time-picker")],ii);var ni=i(8929),oi=i.n(ni),ri=i(1865),ai=i.n(ri),si=i(1469),li=i.n(si),ui=i(3218),ci=i.n(ui),di=i(8718),hi=i.n(di),pi=36e5;function fi(e,t){je(2,arguments);var i=He(e),n=He(t);return i.getTime()<n.getTime()}const gi=Vt(new Date),mi=(e,t)=>hi()(e,((e,i,n,o)=>{e[(null==t?void 0:t.includes(n))||li()(o)?n:oi()(String(n))]=ci()(i)?mi(i,t):i})),bi=(e,t)=>hi()(e,((e,i,n,o)=>{e[(null==t?void 0:t.includes(n))||li()(o)?n:ai()(String(n))]=ci()(i)?bi(i,t):i})),vi=()=>window.matchMedia("(max-width: 767px)").matches||window.matchMedia("(max-height: 400px)").matches,yi=(e,t)=>fi(function(e,t){je(2,arguments);var i=it(t);return nt(e,i*pi)}(e,t),Date.now()),wi=e=>{try{const t=document.cookie.split("; ").map((e=>e.split("="))).find((([t])=>t===e));return t?decodeURIComponent(t[1]):null}catch(t){return console.warn(`Error getting cookie value for name=${e}`,t),null}},Ci=e=>/^\([2-9][0-8][0-9]\) [2-9][0-9][0-9]-[0-9]{4}$/.test(e),xi=(e,t=0)=>Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:t}).format(null!=e?e:0),
|
|
358
|
+
`,ei([le({attribute:!1})],ii.prototype,"options",void 0),ei([le({type:Boolean})],ii.prototype,"selectedDateExists",void 0),ei([le({attribute:!0})],ii.prototype,"timezone",void 0),ei([le({attribute:!0})],ii.prototype,"defaultSelectedTime",void 0),ei([ue()],ii.prototype,"selected",void 0),ei([le({attribute:!1})],ii.prototype,"selectedTime",null),ii=ei([ae("time-picker")],ii);var ni=i(8929),oi=i.n(ni),ri=i(1865),ai=i.n(ri),si=i(1469),li=i.n(si),ui=i(3218),ci=i.n(ui),di=i(8718),hi=i.n(di),pi=36e5;function fi(e,t){je(2,arguments);var i=He(e),n=He(t);return i.getTime()<n.getTime()}const gi=Vt(new Date),mi=(e,t)=>hi()(e,((e,i,n,o)=>{e[(null==t?void 0:t.includes(n))||li()(o)?n:oi()(String(n))]=ci()(i)?mi(i,t):i})),bi=(e,t)=>hi()(e,((e,i,n,o)=>{e[(null==t?void 0:t.includes(n))||li()(o)?n:ai()(String(n))]=ci()(i)?bi(i,t):i})),vi=()=>window.matchMedia("(max-width: 767px)").matches||window.matchMedia("(max-height: 400px)").matches,yi=(e,t)=>fi(function(e,t){je(2,arguments);var i=it(t);return nt(e,i*pi)}(e,t),Date.now()),wi=e=>{try{const t=document.cookie.split("; ").map((e=>e.split("="))).find((([t])=>t===e));return t?decodeURIComponent(t[1]):null}catch(t){return console.warn(`Error getting cookie value for name=${e}`,t),null}},Ci=e=>/^\([2-9][0-8][0-9]\) [2-9][0-9][0-9]-[0-9]{4}$/.test(e),xi=e=>e?(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(" "):"",Ai=(e,t=0)=>Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:t}).format(null!=e?e:0),Si=l`
|
|
359
359
|
.webchat-input {
|
|
360
360
|
outline: none;
|
|
361
361
|
|
|
@@ -409,7 +409,7 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
409
409
|
font-family: "Helvetica Neue", Arial;
|
|
410
410
|
font-size: 14px;
|
|
411
411
|
}
|
|
412
|
-
`;var
|
|
412
|
+
`;var ki=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Ti=class extends oe{constructor(){super(),this.options=[],this.placeholder="Select",this.activeOption=null,this.isOpen=!1,this.activeOptionIndex=null,this.focus=()=>{this.meSelect.focus()},this.toggleSelect=()=>{this.isOpen&&(this.activeOption=null),this.isOpen=!this.isOpen},this.setSelectedOption=(e,t=!0)=>{this.value!==e.value?this.value=e.value:this.value=void 0,t&&(this.isOpen=!this.isOpen,this.activeOption=null),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)=>i=>{("string"==typeof e&&i.key===e||"object"==typeof e&&e.includes(i.key))&&t()},this.firstUpdated=()=>{this.value&&this.meSelect&&(this.meSelect.style.color="rgba(32, 32, 32, 1)")},document.addEventListener("click",(e=>{e.composedPath().includes(this.meSelect)||(this.isOpen=!1)}))}adjustScrollToActiveOption(){if(null!=this.activeOptionIndex){const e=this.renderRoot.querySelectorAll(".option")[this.activeOptionIndex];e&&e.scrollIntoView({block:"nearest"})}}render(){var e,t,i,n;return R`
|
|
413
413
|
<div id="outer-select-container">
|
|
414
414
|
<div
|
|
415
415
|
id="select"
|
|
@@ -453,7 +453,7 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
453
453
|
</li>`))}
|
|
454
454
|
</ul>`:""}
|
|
455
455
|
</div>
|
|
456
|
-
`}};function
|
|
456
|
+
`}};function _i(e,t){je(1,arguments);var i=He(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var n=null!=t&&t.format?String(t.format):"extended",o=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==n&&"basic"!==n)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var r="",a="",s="extended"===n?"-":"",l="extended"===n?":":"";if("time"!==o){var u=ft(i.getDate(),2),c=ft(i.getMonth()+1,2),d=ft(i.getFullYear(),4);r="".concat(d).concat(s).concat(c).concat(s).concat(u)}if("date"!==o){var h=i.getTimezoneOffset();if(0!==h){var p=Math.abs(h),f=ft(Math.floor(p/60),2),g=ft(p%60,2),m=h<0?"+":"-";a="".concat(m).concat(f,":").concat(g)}else a="Z";var b=ft(i.getHours(),2),v=ft(i.getMinutes(),2),y=ft(i.getSeconds(),2),w=""===r?"":"T",C=[b,v,y].join(l);r="".concat(r).concat(w).concat(C).concat(a)}return r}function Ei(e,t){je(2,arguments);var i=He(e),n=it(t);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}var Oi;Ti.styles=[l`
|
|
457
457
|
:host {
|
|
458
458
|
--light-grey: #e3e3e3;
|
|
459
459
|
--active-option-color: #f5f7f9;
|
|
@@ -547,10 +547,10 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
547
547
|
.option.active {
|
|
548
548
|
background-color: var(--active-option-color);
|
|
549
549
|
}
|
|
550
|
-
`,
|
|
550
|
+
`,Si],ki([le({attribute:!1})],Ti.prototype,"options",void 0),ki([le({type:String})],Ti.prototype,"placeholder",void 0),ki([le({type:String})],Ti.prototype,"value",void 0),ki([ue()],Ti.prototype,"activeOption",void 0),ki([ue()],Ti.prototype,"isOpen",void 0),ki([ue()],Ti.prototype,"activeOptionIndex",void 0),ki([ce("#select",!0)],Ti.prototype,"meSelect",void 0),Ti=ki([ae("me-select")],Ti),function(e){e.Unknown="UNKNOWN",e.SelfGuided="SELF_GUIDED",e.VirtualShowing="VIRTUAL_SHOWING",e.WithAgent="WITH_AGENT",e.MediaTour="MEDIA_TOUR"}(Oi||(Oi={}));var Pi=i(7739),Mi=i.n(Pi);function Ni(e){return je(1,arguments),He(e).getTime()<Date.now()}Math.pow(10,8);var Ii=36e5;function Di(e,t){je(1,arguments);var i=t||{},n=null==i.additionalDigits?2:it(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,r=ji(e);if(r.date){var a=Hi(r.date,n);o=Fi(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,l=o.getTime(),u=0;if(r.time&&(u=zi(r.time),isNaN(u)))return new Date(NaN);if(!r.timezone){var c=new Date(l+u),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return s=Gi(r.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var Ui={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Li=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ri=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Bi=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ji(e){var t,i={},n=e.split(Ui.dateTimeDelimiter);if(n.length>2)return i;if(/:/.test(n[0])?t=n[0]:(i.date=n[0],t=n[1],Ui.timeZoneDelimiter.test(i.date)&&(i.date=e.split(Ui.timeZoneDelimiter)[0],t=e.substr(i.date.length,e.length))),t){var o=Ui.timezone.exec(t);o?(i.time=t.replace(o[1],""),i.timezone=o[1]):i.time=t}return i}function Hi(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(i);if(!n)return{year:NaN,restDateString:""};var o=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:null===r?o:100*r,restDateString:e.slice((n[1]||n[2]).length)}}function Fi(e,t){if(null===t)return new Date(NaN);var i=e.match(Li);if(!i)return new Date(NaN);var n=!!i[4],o=$i(i[1]),r=$i(i[2])-1,a=$i(i[3]),s=$i(i[4]),l=$i(i[5])-1;if(n)return function(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}(0,s,l)?function(e,t,i){var n=new Date(0);n.setUTCFullYear(e,0,4);var o=7*(t-1)+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+o),n}(t,s,l):new Date(NaN);var u=new Date(0);return function(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(qi[t]||(Wi(e)?29:28))}(t,r,a)&&function(e,t){return t>=1&&t<=(Wi(e)?366:365)}(t,o)?(u.setUTCFullYear(t,r,Math.max(o,a)),u):new Date(NaN)}function $i(e){return e?parseInt(e):1}function zi(e){var t=e.match(Ri);if(!t)return NaN;var i=Qi(t[1]),n=Qi(t[2]),o=Qi(t[3]);return function(e,t,i){return 24===e?0===t&&0===i:i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}(i,n,o)?i*Ii+6e4*n+1e3*o:NaN}function Qi(e){return e&&parseFloat(e.replace(",","."))||0}function Gi(e){if("Z"===e)return 0;var t=e.match(Bi);if(!t)return 0;var i="+"===t[1]?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?i*(n*Ii+6e4*o):NaN}var qi=[31,null,31,30,31,30,31,31,30,31,30,31];function Wi(e){return e%400==0||e%4==0&&e%100!=0}const Vi={buildingId:null,availabilities:{}},Yi=()=>{Vi.buildingId=null,Vi.availabilities={}},Ki=async e=>{e&&(Vi.buildingId=e);const i=Vi.buildingId;if(!i)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=Vi.availabilities;if(n[i])return n[i];const o=Vt(Date.now()),r=_i(function(e){je(1,arguments);var t=He(e);return t.setHours(23,59,59,999),t}(Ei(o,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${i}/tour/availabilities?startTime=${encodeURIComponent(_i(o))}&endTime=${encodeURIComponent(r)}`,s=await t().get(a);return Vi.availabilities[i]=s.data,s.data},Xi=async(e,t)=>{var i,n;const o=await Ki(t),r=(null===(i=o.availability)||void 0===i?void 0:i[e])?null===(n=o.availability)||void 0===n?void 0:n[e].availableTourStartTimes:[];return o.availability?{...o.availability[e],availableTourStartTimes:r}:null},Zi=async()=>{var e,t,i,n,o,r;return{[ko.Guided]:!!(null===(t=null===(e=await Xi(Oi.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[ko.Self]:!!(null===(n=null===(i=await Xi(Oi.SelfGuided))||void 0===i?void 0:i.availableTourStartTimes)||void 0===n?void 0:n.length),[ko.Virtual]:!!(null===(r=null===(o=await Xi(Oi.VirtualShowing))||void 0===o?void 0:o.availableTourStartTimes)||void 0===r?void 0:r.length)}},Ji=async(e,t)=>{var i,n;const o=await Xi(e,t);if(!o)return{};const r={availableTourStartTimes:null===(i=o.availableTourStartTimes?o.availableTourStartTimes.filter((e=>ze(Di(e))&&!Ni(Di(e)))):[])||void 0===i?void 0:i.map((e=>en(e)))};return Mi()(null!==(n=r.availableTourStartTimes)&&void 0!==n?n:[],(e=>$t(new Date(e.datetime),"yyyy-MM-dd")))},en=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var tn=i(6604),nn=i.n(tn),on=i(4184),rn=i.n(on);const an=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var sn;async function ln(e){if(!e)return sn.always;try{const i=await t().get(an(e),{params:{building_slug:e,flag_type:"string",feature_flag:"webchat-marketing-source-dropdown-configuration",default_str:"always",default_bool:!0}});return"on-attribution-failure"===i.data?sn.onAttributionFailure:"never"===i.data?sn.never:sn.always}catch(e){return sn.always}}async function un(e){if(!e)return!1;try{return(await t().get(an(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-dni-phone-number-by-source",default_str:null,default_bool:!1}})).data}catch(e){return!1}}async function cn(e){if(!e)return!1;try{return(await t().get((e=>`https://app.meetelise.com/platformApi/webchat/${e}/v2/chat-ui-feature-flag`)(e),{params:{building_slug:e,feature_flag_name:"insert_dni_into_website",default_value:!1}})).data}catch(e){return!1}}async function dn(e){if(!e)return!1;try{return(await t().get(an(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-replace-any-schedule-tour-cta-website",default_str:null,default_bool:!1}})).data}catch(e){return!1}}async function hn(e){if(!e)return!1;try{return(await t().get(an(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-applications-link-replacement",default_str:null,default_bool:!1}})).data}catch(e){return!1}}!function(e){e.onAttributionFailure="on-attribution-failure",e.never="never",e.always="always"}(sn||(sn={}));const pn=(e,t={})=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t})},fn=B`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
551
551
|
<rect x="1" y="1" width="22" height="22" stroke="black" stroke-width="2" rx="2"/>
|
|
552
552
|
</svg>
|
|
553
|
-
`,
|
|
553
|
+
`,gn=(B`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
554
554
|
<rect y="0.09375" width="16" height="16" rx="2" fill="#4719CD"/>
|
|
555
555
|
<path d="M12 5.09375L6.5 10.5938L4 8.09375" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
|
|
556
556
|
</svg>`,()=>B`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="25" viewBox="0 0 25 25" fill="none">
|
|
@@ -561,8 +561,8 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
561
561
|
</pattern>
|
|
562
562
|
<image id="image0_999_1441" width="256" height="256" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAMa2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkJDQAghICb0jUgNICaEFkN5thCSQUGJMCCr2sqjg2kUUK7oqomBZaXbsyqLY+2JBRVkXdbGh8iYkoOu+8r3zfXPvnzNn/lPuTO49AGh+4Eok+agWAAXiQmlCeDAjLT2DQXoGEEABZOAJiFyeTMKKi4sGUAbvf5d3N6A1lKvOCq5/zv9X0eELZDwAkLEQZ/FlvAKIjwOAr+dJpIUAEBV6y8mFEgWeDbGuFAYI8SoFzlHinQqcpcSHB2ySEtgQXwZAjcrlSnMA0LgH9YwiXg7k0fgMsauYLxIDoOkEcQBPyOVDrIjdqaBgogJXQGwH7SUQw3gAM+s7zpy/8WcN8XO5OUNYmdeAqIWIZJJ87tT/szT/Wwry5YM+bOCgCqURCYr8YQ1v5U2MUmAqxN3irJhYRa0h/iDiK+sOAEoRyiOSlfaoMU/GhvUD+hC78rkhURAbQxwmzo+JVumzskVhHIjhbkGniAo5SRAbQLxQIAtNVNlslk5MUPlC67OlbJZKf44rHfCr8PVAnpfMUvG/EQo4Kn5Mo1iYlAoxBWKrIlFKDMQaELvI8hKjVDajioXsmEEbqTxBEb8VxAkCcXiwkh8rypaGJajsSwtkg/lim4UiTowK7y8UJkUo64Od4nEH4oe5YJcFYlbyII9AlhY9mAtfEBKqzB17LhAnJ6p4PkgKgxOUa3GKJD9OZY9bCPLDFXoLiD1kRYmqtXhKIdycSn48W1IYl6SMEy/O5UbGKePBl4FowAYhgAHkcGSBiSAXiNq6G7rhL+VMGOACKcgBAuCs0gyuSB2YEcNrIigGf0AkALKhdcEDswJQBPVfhrTKqzPIHpgtGliRB55CXACiQD78LR9YJR7ylgKeQI3oH965cPBgvPlwKOb/vX5Q+03DgppolUY+6JGhOWhJDCWGECOIYUR73AgPwP3waHgNgsMNZ+I+g3l8syc8JbQTHhGuEzoItyeI5kp/iHI06ID8YapaZH1fC9wGcnriwbg/ZIfMuD5uBJxxD+iHhQdCz55Qy1bFragK4wfuv2Xw3dNQ2ZFdySh5GDmIbPfjSg0HDc8hFkWtv6+PMtasoXqzh2Z+9M/+rvp8eI/60RJbiB3AzmInsPPYYawBMLBjWCPWih1R4KHd9WRgdw16SxiIJw/yiP7hb/DJKiopc61x7XL9rJwrFEwpVBw89kTJVKkoR1jIYMG3g4DBEfNcnBhurm7uACjeNcq/r7fxA+8QRL/1m27e7wD4H+vv7z/0TRd5DIB93vD4N33T2TEB0FYH4FwTTy4tUupwxYUA/yU04UkzBKbAEtjBfNyAF/ADQSAURIJYkATSwXgYvRDucymYDKaDOaAElIFlYDVYBzaBrWAn2AP2gwZwGJwAZ8BFcBlcB3fh7ukEL0EPeAf6EAQhITSEjhgiZog14oi4IUwkAAlFopEEJB3JRHIQMSJHpiPzkDJkBbIO2YJUI/uQJuQEch5pR24jD5Eu5A3yCcVQKqqLmqA26AiUibLQKDQJHYfmoJPQYnQ+ugStQKvQ3Wg9egK9iF5HO9CXaC8GMHVMHzPHnDEmxsZisQwsG5NiM7FSrByrwmqxZvicr2IdWDf2ESfidJyBO8MdHIEn4zx8Ej4TX4yvw3fi9fgp/Cr+EO/BvxJoBGOCI8GXwCGkEXIIkwklhHLCdsJBwml4ljoJ74hEoj7RlugNz2I6MZc4jbiYuIFYRzxObCc+JvaSSCRDkiPJnxRL4pIKSSWktaTdpGOkK6RO0gc1dTUzNTe1MLUMNbHaXLVytV1qR9WuqD1T6yNrka3JvuRYMp88lbyUvI3cTL5E7iT3UbQpthR/ShIllzKHUkGppZym3KO8VVdXt1D3UY9XF6nPVq9Q36t+Tv2h+keqDtWByqaOpcqpS6g7qMept6lvaTSaDS2IlkErpC2hVdNO0h7QPmjQNVw0OBp8jVkalRr1Glc0XmmSNa01WZrjNYs1yzUPaF7S7NYia9losbW4WjO1KrWatG5q9WrTtUdqx2oXaC/W3qV9Xvu5DknHRidUh68zX2erzkmdx3SMbkln03n0efRt9NP0Tl2irq0uRzdXt0x3j26bbo+ejp6HXoreFL1KvSN6HfqYvo0+Rz9ff6n+fv0b+p+GmQxjDRMMWzSsdtiVYe8NhhsEGQgMSg3qDK4bfDJkGIYa5hkuN2wwvG+EGzkYxRtNNtpodNqoe7jucL/hvOGlw/cPv2OMGjsYJxhPM95q3Grca2JqEm4iMVlrctKk21TfNMg013SV6VHTLjO6WYCZyGyV2TGzFww9BouRz6hgnGL0mBubR5jLzbeYt5n3WdhaJFvMtaizuG9JsWRaZluusmyx7LEysxptNd2qxuqONdmaaS20XmN91vq9ja1Nqs0Cmwab57YGthzbYtsa23t2NLtAu0l2VXbX7In2TPs8+w32lx1QB08HoUOlwyVH1NHLUeS4wbHdieDk4yR2qnK66Ux1ZjkXOdc4P3TRd4l2mevS4PJqhNWIjBHLR5wd8dXV0zXfdZvr3ZE6IyNHzh3ZPPKNm4Mbz63S7Zo7zT3MfZZ7o/trD0cPgcdGj1uedM/Rngs8Wzy/eHl7Sb1qvbq8rbwzvdd732TqMuOYi5nnfAg+wT6zfA77fPT18i303e/7p5+zX57fLr/no2xHCUZtG/XY38Kf67/FvyOAEZAZsDmgI9A8kBtYFfgoyDKIH7Q96BnLnpXL2s16FewaLA0+GPye7cuewT4egoWEh5SGtIXqhCaHrgt9EGYRlhNWE9YT7hk+Lfx4BCEiKmJ5xE2OCYfHqeb0RHpHzog8FUWNSoxaF/Uo2iFaGt08Gh0dOXrl6Hsx1jHimIZYEMuJXRl7P842blLcoXhifFx8ZfzThJEJ0xPOJtITJyTuSnyXFJy0NOlusl2yPLklRTNlbEp1yvvUkNQVqR1pI9JmpF1MN0oXpTdmkDJSMrZn9I4JHbN6TOdYz7ElY2+Msx03Zdz58Ubj88cfmaA5gTvhQCYhMzVzV+Znbiy3itubxclan9XDY/PW8F7yg/ir+F0Cf8EKwbNs/+wV2c9z/HNW5nQJA4Xlwm4RW7RO9Do3IndT7vu82Lwdef35qfl1BWoFmQVNYh1xnvjURNOJUya2SxwlJZKOSb6TVk/qkUZJt8sQ2ThZY6Eu/KhvldvJf5I/LAooqiz6MDll8oEp2lPEU1qnOkxdNPVZcVjxL9PwabxpLdPNp8+Z/nAGa8aWmcjMrJktsyxnzZ/VOTt89s45lDl5c36b6zp3xdy/5qXOa55vMn/2/Mc/hf9UU6JRIi25ucBvwaaF+ELRwrZF7ovWLvpayi+9UOZaVl72eTFv8YWfR/5c8XP/kuwlbUu9lm5cRlwmXnZjeeDynSu0VxSveLxy9Mr6VYxVpav+Wj1h9flyj/JNayhr5Gs6KqIrGtdarV229vM64brrlcGVdeuN1y9a/34Df8OVjUEbazeZbCrb9GmzaPOtLeFb6qtsqsq3ErcWbX26LWXb2V+Yv1RvN9petv3LDvGOjp0JO09Ve1dX7zLetbQGrZHXdO0eu/vynpA9jbXOtVvq9OvK9oK98r0v9mXuu7E/an/LAeaB2l+tf11/kH6wtB6pn1rf0yBs6GhMb2xvimxqafZrPnjI5dCOw+aHK4/oHVl6lHJ0/tH+Y8XHeo9LjnefyDnxuGVCy92TaSevnYo/1XY66vS5M2FnTp5lnT12zv/c4fO+55suMC80XPS6WN/q2XrwN8/fDrZ5tdVf8r7UeNnncnP7qPajVwKvnLgacvXMNc61i9djrrffSL5x6+bYmx23+Lee386//fpO0Z2+u7PvEe6V3te6X/7A+EHV7/a/13V4dRx5GPKw9VHio7uPeY9fPpE9+dw5/yntafkzs2fVz92eH+4K67r8YsyLzpeSl33dJX9o/7H+ld2rX/8M+rO1J62n87X0df+bxW8N3+74y+Ovlt643gfvCt71vS/9YPhh50fmx7OfUj8965v8mfS54ov9l+avUV/v9Rf090u4Uu7ApwAGB5qdDcCbHQDQ0gGgw76NMkbZCw4IouxfBxD4T1jZLw6IFwC18Ps9vht+3dwEYO822H5Bfk3Yq8bRAEjyAai7+9BQiSzb3U3JRYV9CuFBf/9b2LORVgLwZVl/f19Vf/+XrTBY2DseFyt7UIUQYc+wOeZLVkEW+Dei7E+/y/HHO1BE4AF+vP8LCuSQ39XX/s4AAAA4ZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAKgAgAEAAAAAQAAAQCgAwAEAAAAAQAAAQAAAAAARCI4cwAAQABJREFUeAHsvQm8ZUld53nOXd/+Ml9mVq5VVBVV1UKhrLbz6VYYW6RpFhkdGh3aQexWUQRpFWz8jC0J2tNYLogorSi00OLCODPaDIgCAnZji1DsFEhR1Jb5MrNyz5dvueuZ/zdO/M6Le9659203K/NV3X/mfXFOnDhx4sY9/3/8/ktERNGIRj0w6oFRD4x6YNQDox4Y9cCoB0Y9MOqBUQ+MemDUA6MeGPXAqAdGPTDqgVEPjHpg1AOjHhj1wKgHRj0w6oFRD4x6YNQDox4Y9cCoB0Y9MOqBUQ+MemDUA6MeGPXAqAdGPTDqgVEPjHpg1AOjHhj1wKgHRj0w6oEd0QPxjmjlqJGP2h546o98qqovf+ehp3aio3FX56N0+z0wEgDb78NRDVeiB44mpb7MbteeOn9nmcc6ocDBSDDQC5umkQDYdJeNbrjiPeCZn9H/ZGnxu+MD31jrriycjDrNc6V2875jb7r9XL4NQgojlJDvmcHnIwEwuH9GVx/uHvDMf+g1dz8lai78Wby/fCSamMtaEZfH56NO56GoVj7ePdP5b9HCpQ8dvHjxC3e+7WktFUIYjASBemNwOhIAg/tndPXh7AHP/J9717sm/8Xn91yKpufiuDoRRTX7QJWxNA3+xjXL68TzUdT9f6Kzlb+PLp54f4YQvKoQCofg1tGh9cBIAIxeg2umB9zIbSP54R/92IuSqct/FFUn4mhsLIrj3Uk0UV77rgYCwQkCvokXBt0HLv7+/C/f+mn35UaCoO9vXOl7ZXRh1ANXqwdK8eFowRheyL/SiKNm0Jh2PXFnEyuZUEgzbESrjR2yv68o3bTrFUfeeuZ90UOlPzl2NP6DOw0iRCAMaGQwdN3An7RDstPRwagHrl4PyKKfTB78mGtFaymJVlai5GK35xMhEJxQWIqipU7iPu2VKLJP0kw/6bdInhtd13nXkV8/9elDr73/mY7xjfllMLx63/TaeXImQa+dJo1a8qjuAW8HOPTyj7456qy8MirPrHbH9PjqsT+KZ0tOOMST4wIBkVMXvHog1SCuj0dJY+V93XvPvy5UDR7taGAkANa8UqOMa6UHsAVEpe5Lo6R7fVLbPRu1Vo6saVtOKCAQokxFMDWiSBAsLf3msVde9xPUJbvDmnofJRkjAfAo+aF33Nf0SEDthlFPz81c347qN8eX7v9Gs/Z9Z1KdfUKPUMgLA6ECDIiBIHBoYGHxs93jl34INPBoFgIjAaA3bJRecz0gXb2fG4/rJ+b2PSO6dO/zo+rMdxcJgyJEgFqAEICSB5svOXZ07g8erQbCkQC45l77UYMKe8Bb8BUCTJlQMCAMiBpEZUii+rOzOjwqyASBRwM9toFAJXCC4FHkJRgJgOxNGR0MrQeMWWFUx6D+OKx7aFF6Qd2hMCCKMF489ouZIAhUg8xYODPp3n2hAQyExx7a84LUUzBgHkL4RR4BxyMB8Aj4Ea+pr8BIvcERNIP4Q5rll9Xnw4KdILj8wDuTePx210dCAznbQCYEzC6w/64Hv0WCa6Pf45rq/002ZiQANtlho+IDesAz/5Gf/NJct3H6daXbHvdtrrTF7Ued7r3d88mxaGnl05Wo8fV95y49GI7alIOBh4IOPDJQ/Ydf/jc/mUSVX81aHgqCQCWQcfDRJARGAiB7K0YH2+2B5OjR0vUX/+WuZOXkx5IDE7f3xPGrcqzxFrATV2Y+G07oyXzzlBMDbxMZhALlhtd+9ebOxQf/vBANFAiBYxeue9qjQR0YCQC9mKN0Wz3gmM2gtwvgmVh8RTaRJ6xVk3rCPI5NKMRR7bNROf7vPTH8dilk4vxtGz1X2yjv2hfVXunuHYQEsAm8fO/zH+lGwZEA2OhbNCo3uAc8/D/88o+8P5lY+ueayKObQANJaylyqECZpKFQkK8eYXCh+mvhzL5tCwLaB5l9okclyAmBeGKXK+bUAe8dCAWIu/gI+jOaC/AI+jGv5lcJ3XPR8kIS+Th+tQnmh0j1cRlNy+cDKZ4/aj4p2bX4rujm/Z8/9IZTP4NNITXMbSOOH8OkfWDm4299+pvibuv73DMXll2SLC7HzClIli6k543lKJ6YeMWRo+e+n2dzn7vwCPszQgCPsB/0an0djZJu0s35L/+Va8e0TdRhSm8/sqm+IWXoQKhAiMAWAeme7/zGwWMPvikVBKujeXj/Ro972nrpuG9rGhjk3IRmEwAJKFgovnv+lgfeeNvXH4nqwAgBbPStGZUb2ANizPk3PuZDcXnip13hpd1xdLEeRecaUZaqFiEEm+3HjD8oQwZCBUIEneVDpb2lN576xhvvZUROjXNbRwMa0V1bc0jAzTIECTCr0FAA1D0w+6fu4BH4p790fgR+2dFXevh6wLkC61NPiS/cNxfZ/P4k6t4YJ51/lk3q6VxabUweKXhkUIQI0gi++H2lB869ilHZjeZb8RbI08ACJKGb0GwCLmoQFIJx0ocNd44vvnb+5/ffIfSw2vidfTQSADv797smW58xiQxvaqXp4E4wVGo3xosnnuEm9HQaQdiuqQyQ1IZQEOTVApYCe6icxvFzjzdCcrgZUlvz3oFHiyowEgCbeVtGZTfeA36EDW8oCvJBICTLZ57pYvjzwmAdQSA0sP+z932PYL1TRcKHrncsIYV34Mc+/AUXJxB6BixkWCjAhQuba1BCY72qd8L1kQDYCb/SI6mNnuHkNQgZlmCd9qX5V7mFQPSdQ/WA9QFzi4Q6IdDsfrZ08uILM5XAhwKrivVSMbRbiXjx9Kdc+f3x6rNMFShN73bZna+ceJoLWtoi4livLQ/39ZEAeLh7fPS83h4IkIKEgUMFjbM/kHSWgvDdwKMQCgKvp7MYaPeB89+11fn9EgJr7AHMGwi8Ao80FDASAL2v4+jsavaAFwahIGBOQYYI+qEBCQFre/eBpWdh3RdDb/rrWBsOn/rrzzlVYNa8F11zByIEAlXgkYQCRm7ATb8hoxuuWA+YHu6YH0FggTes7z//1v/5VdHMY58Wl6pfcisF4z7UYqEEF+Ey9IuB0q7SDRN/RSwC9VDHZtrqylsboqTyC1HopWABUlySnko37X49h1JjlL8T0xEC2Im/2qOlzTlEkC0UyvcXGihSB+zylpGAPTMNF7aQZoySc/Uonrb1yVln0FCAbAGPlOCgEQJ4tDDTTvyeHhFoJAcNxPG4D+G1df7WQwK2MMhmkUA2qndLv68uY1lyFyBkGQoOak/MvpDrWXkV3mHpSADssB/s0dhc2QQQBMd/+xnvqey++ZYelYC9AwrVgd3/FYOi1IqN9J2exXPcM4hiLKXzA3pUjZnICSLtZbCRuq/FMiMBcC3+Ko/QNrFeQPjZ7NfUaI67Lx478Ix1hUA5ORQ9Zu+H3HPQ7TdIQhzmB3yHbnEogE1IjEAB8fTkk5zbkHpRG3YojbYG26E/3E5odvKRo9n7FX/70XZ89OgaJsyXWe97SQjcaQZCY9SnnCxf/HSyEN0eTZtx0PYEc398Je64NvakI2956DfYBwDG1gg/6Dka1cszB/68ff7rqStywoyAlZIZA8s2hdlPYpqeeabV82nUgDvN7DCozmv12sgIeK3+Mju4XY6pPxZ1Q4Znx9+psfk9E1Fliq+2FLUv37xvZR7BoK8KOoieYTMHgjxdy6diZlInBLotEwI+ViAwDGp+v8KGdV++vjXnBcZAt1Hp5F43RwBjYGJrCB77t/ufstUw5DXPvAoZIwFwFTr9kfpIx8D25cT4n3zzDz2nVms/K+ouP7k+kzxubGZl7/Se1S28aqWJY+Xx+udtD/BPnvxa/S9veuGvfIK+2aggEDO7wCGWISsSAhNzbkKP2zX466e+yW0d7pl70O+gut1OxcnyH+MNcAKASERfp1s05Iv3791onYOed7WuZRDtajVg9NxHRg8w6mvkvvMtP/SDk3sWf2ps8iG3Gu9E9Yz7kmPTBp2Ty9mg0+zuOzLXvXDDueXac2YORK9b+syPvr/bnf6t+KlHP2A3dMM6i3opVAdMH/+B6NI9n3KxAl4dsElFaYyA3Wwhw4eiW/e/0w6fvxHInqkBuw5+ytSA3scTE+DVgK7NeLSLH9pInb2VXBtnO9Z4cW1036gV9IAY9cR7fuXxn/ut7/3Y7MR975gp3X07jN/D/EF3Tc+W4rmZs6WouhCRzs1dKo3HJ543GT/wFyYI3ktdCBSnTgT35Q8lBAgBzlyEvlDoGUizkuduOEjIGw2dwZEgJLwBft2CnjZMjCEAdiyNBMCO/emujYaL+Rn1z1z6+Bcmx84+fWLygrOWq4XjlYtxvHwqrnVOxWPlC+7Tunwuilq24AYfKF40d5t9xi5F4xMnn1c79MkvLH/uVf9mM0IA111UHntLFjEYuAdZ4AMqHRi7g1QjPMf9CDWAa0lc/muVcUKFPNW3t5wufa4COywdqQA77AfbanOlV/fcb4Y6zqWz91zbwImY/3Nv+8GfLZXO/uJ4vFAS81dmalFl+XJcne5kNZVqpkd7qrpDY/4aPLZgH8uoNi21j90yN9co2VLBv7f82Vcejp909A16lr99TSLr/sH21KtPlm3hkcAzkFMFnsSqQseOxn8gPX9NZbmMOCrd1yPRCD+2+QeOmp3DpBsRKOkN19bfkQC4tn6PobYmg8+rFvlCV1VBuXXbIYZk5M8z/1i1GUfLzahSY9RNw/GrNVPqmwajjUJB4DLCP04ymGOgbAxm5cfqD73ehEC0ESEghjbD3S8YtPhjVcuo7QwPYtpdrZ8yy/0f3nk0bqnMoDSZecwXovNfXlPERQWWy9dhhDSBcm4negNGAmDNz7rzMxxDw/SBO23+D39nb6N292P5dvtuinefvjc53+3uPbHGFYfvflVgFHaGmP/eP331t1y+cM/vhSO/Y367C+aP62vn4sD86ehfULUuwPzQmEmNKInGksuvN3XgePzEo2/Xs9313B/ZA+787ae9x5Ynf2myfOpZvkgaH9C2pcktwwyCTzoSnX/xsSgaiAI0qrOTkfNVEno8NpYaMb0hMJ4YO2Tfk7XETafZeTQSADvvN+vb4swN5xlfbrj6bOM7mpPvu13m98byeGJWd6MHo8vmijOj2+fjUv3Pzn/p8X8ef/vLnMl+EKM5wWKutEbzxSnzRwvg/JKYXw1MGq01QgAU0DK473jdwX8rXQH+e/UA5gcuOLJqOxZ4M7kY1VdKv3jPe974wfjbX/sA37Of2iKmLc8cfkV74dRXfUVpEkJ3UIAJAJXvKacTbwjsNloXosoFQ0/T6kKVcGm7E6ebCfTk7oyTkQDYGb/Tuq0MGRbGn963+EuFbjhq8q64VrwvSTr3X7+8uO+I5T5n+sZLP7/82Zf/xfxXb/g/xWgUD5lNz/ncoX/971pLK4+fiY35Jzs9xuQU+nPnWlqDAGD+ZNIgv38VS7Y8N+Kk6s+rhiJMc4grzQMHb73vt+zK8wkWsrRQndHa/3dauLDNHvytaPnkj/tWrEEBeATmj8brrh2wf3F54WR535eTaOXxzhOAezGkcs2mC6YTg3ZaRGDPDxd+p9HxzukBMaWNkDfghts9dd/7cMPVluczNxzfZmUhtYTrm1WT025EI+WDMFi6fPaHy/W/vQ/DHozPR8iC+xj9ieqrjy/+JNBfdeVHf+X3T43Rk2nP/CYE2iYEYH4Yf8zSsjE+HwhwMN6JxuuN512+8zXPpg18Z3et4I9G9crMoTe7y2xUIgIFeCodHv8uHQ9KZWBUmbwnQPk7Mc1+wJ3Y+FGbjX98AA76eKvx6U/JDees8GaJh3DD6RO64nDJ5ftQQmF2/9n/gDCB2SUExHTti3/zouT0yb0TBv1b0YXy+IotmGFUWkmNfPk6154bg4vKxt0lg/01G9Bj8u3TMd4uWdv1cWUtf6oblUoLGtFVw9rUoDsGQefDT/anG3/4qcOucLa4R+l7NjtbcO3DaP60U6iKrl3reSMBcK3/QgPaJ+YH8psx7m8rzXP7MjecueBww8H4qkKqtazx5CMEpnctOt+8ys3NXXaHs0eWv61e+Yu/w4CIEND1SmnhpRzD/KTLY/UE5u+O1aNKsjrCcg07QK2ThftH1ZbX76vG0JXASNhmmPdUtdeylT0uFQTltA5QAMJuPRSgqpKZm39Nx6Q9ozezBWcPPof8fvP6Q/RDuUcajQTADv1Fxfwww9jk2fcWWeJDH3z4NfNuuNZCy2xw49G0LX6jcorgQ8+/FH30Iw4JGPRGzTh2/Mw/rda/lJUVAtC9UWOVeeuVOGp6/b7e9UzesRRB0LQPeSUTBDB9JUD1nBeRoYADtyz9YNGlME+wfX7shr+Ou/u+nO1XSCG/jJgrf133e8P78seh4Mtf03l3ZeGkjnda2qeXd9rXeBS211x1MGVj+YGU+VNLfBTq4oy+fPIUIgCuwfyivBDYE88nycnjt0cL73s/Zc6d+NoTrq+fKEfLnSheSEf7dpJG8xWpAI12qn63iPGBpNenZ8V/w9E/LOHlR3288QKHSrAFMIOwD7lIPlMHwki+NeG8nejJ66kBrp4+z9jp2X07b6d/sUdy+93oj4Fu6UPvcLAf5jdLfMj8ssT388XTP3jeMuZnVMYFl6Sw3E3csTLAfEZ7Rv006Cfaf+n8pWil2Yqa1aWo3lyF9z19HqAA8sfsX7vtQUNeJnUtA6Zv5+oqEgQVcy2aR2D37Xe9wD0v9Qj0PFonMgZGk4ffqTzSvBrgJ/T0VQOyehZsGTKRNya6YKBO08UAZOVUZgekIwGwA36ksIkh9I8rCy/EEAfzT3U62csp5ue+IgSg+lrY7GB89HGYn9G5MhFN16ayulT2YPy35a9+8sM/e88X7vzuqJ3O7uNaO7nkirSa+O4Cqts8n1ZaTbUVuM3E/G1fHqb3KCG4OxUIRWpAO1UXkm7jf+kpX3TC6G8I4eDFi18oVAN0z4AJPYUoYsn6ikVCIduPYH7yls+6Yx834I53yJ+RANghP1TWTIP+HF869eAdcsOhg7fHAgYMRl8QQGiEy+qxg2rF4ldg/C5+eGMsdPUYI109qjVTITAxuWrUm2qeurV9/CvPz+owNQDqrKx62boNZxeM2k2rN6BOqxRVYo/hld8bPrAWBfRBAJGhAIyB2COcMXCAGvC0+eeVsQcUqgHeG1AaMKFHo3qpvu/1bgkydjuGFupxdHos6h5ffGm6W/HOXBZsJADSn3NH/GU0wyjFVNlSvfmtGv1pfGWlHNXzENry+yGAKkwvgvFL+OS9Zd6PvGNJLxIYn0wZfWXZDHuLq4Y+VSMUICHQbZWjWmN19G+gXhDZhyoAEgAFND30b8pIQH6gCuSFAIIKFFBvR4f+0YnvdM8eoAaobUzo0TFpjxpgdgBGehkOw3Jibhb9ONCZfYqtCfbT8fK+dyfn9txR7py/hU1IduIcAH3HwOyqrFF6zfaAj4B76MKXXjBZdkE4HUb/crVisMAW2bKourwbLv9dXCQezE8YrmC/CuGWaxtndmtRfbwZMeO1XGVPvKWoNlmy+BxGfJvnswi0t7g4swNE42XT7i9F5WhWtTh3IMKoYVb9SmU8qkUBQ2el+hzA8EXQPyxuCMAKGYJZ+hE7eHt4KX+sETyZPPixaGnefJYWFKRNR1XY3IGn52aut9OvFzIz0N5Cn/3koTfpNpduYHWhnvLX2MkIAVxjP8jA5nj4b+vhPztfrhRN9CKAQA1Q2bLB8swP7419xq2rIz8F5Zs3VFCztfWg6pitgxfQgvFQR0GFpgZ0rd5QDQi9ATWb799s58YZUADU8SiCOAFGfYyBokEogDImBMpx+x9nC4f0UQOS6PWuxlK7eZ874A9BQVAQFdiO6jeT1S8eQEgApKBPobCgkh1EuV9mB7X8UdhU4D/ur0udDz9uoukm4GS9AALoGg+VPG9V7cCcgNn1noPYRnoIxvSHacbav5UKqoJNyzXEMDHbjaZtPgwCoNFIorKpAW7CXnAbakC1Vo46FthTsfY0p1IhUurYWqAACDMOgh4i9H8OnTHQGk27MQZiguiHAogM7JqqgBqAAdPUgF233c8GHW/oNz9AfnwgvG3//eWkdPpxVn6V/Ky+DUXzGRLYabH+q1+0+IifYEQ7oAfk7zbL/3WtRmsPTa51TPE36rTaxkuprl3uwEHwkDGit8LLF09+o2FGLOngZCRe9wb6h4R64Kk6OZ0A9aHQDsC5UwM4MBIKSBTtZ3kgAKjbytXP6B+O+K6UK6gja6dJEBHhwTC/yKkBJr+qK891WUJHuh6mwHQoLj2YZeeW9+qWWoeya4+ig5EA2Ck/tjd0HTvxlRtl/Q+bDgKAWnKvcWxCQCRXXL3qYbcukIbMHxzXMQ5WzDjoKbUDpKgCO4DUgGZ7wdbuCJhTN1jaNBdjjbX0RTQpg/5mS+A4NAbKJZg3/mX3e9AKCjCbBGqACw02dISLVMXCVLA+ieK7w/zwuLQ7PhKeP1qORwLgEfJLh6MuVniQQDuecCigVkoNdLjiGvZxUJzv7Zgv4JklG3GxAdRSJk/8CjoEGMkOUDfvV6gGxEuVKFlOUUfYlaASqGRyqW1qQbOSCqNWu0AAhTdyXIQMyEcF8HMCOJU3YCOhwa587o88AbnsR9XpSADs8J+701z7E1YrpoOXm84ouJzkfO/6vlnckJ/Bx8gP45Pail4iDIGpHYAFeqrOcRCqAQ2pEHYDKAA1QKHB1NHtrkRd0056UIC7YM+SGiBEQH6eQjUgjwpQA8xjQGiw5ipIVcpXw3neFdhTply6qef8UXISiP9HyTfeqV/T67h7D+8627lovLNgVr5VF7v7VqCA2BbWdGqAwe72WCWaQP1dNkYZr0YY4rqoAF2EhqUxjA48t+NBrjdTA6qTraS1ciaOzjNdH4SQugNh+GbcsJm8zagWqAtWICNQAMY97AAlFvhwYMCeicUSQURzUAPKlufIXktARZExUIZAyrmYAGuJhQbf9sQ7v89y3t7PGEjxq0mZYApjFuw3lZHyarVtJACuVs9v8bms47ecTNscusVSp2lQv9aJQAFl5tMbSQhgFKy2bXQv15wejiver2aXjrwwX2KCwVnkuZNXwc7lBrQzmyNsKKLCOr2OUANqk8eipYudTA3YjTdgzJh/2WwF3lyAUDD3vzNOEqOQJ9SAqrXL4IGXP/Zc1gXAMyBzAWoAswT7EUbBQB3wocFv71f8auRnNoleRpeUy5rUp1x2/UoerP11ruTTRnVvuQc0Ujz2Ra994M5f+a4HjF9v7IxXO+VO6lSXEAABIAS6NlEnskUw3VR81HoMcZaWVswOMGZeb1AA7kBU9fAtcEZAht+UsAPUrPxUuxqfZ9l+7w5cWU7MHWheAIsKrKNlmNOga04JCx+KanWzP9gMwYpb4AM+X3GhwRVzD2ZEw8rWBgf/LS15vqjZMbA/EETpuW+kQwW0z4slnm32hfFG43lpTMCr79J8iexZ+YOiYKB8mW2cO4aG6W22oqoJF2VV3lYXZdX9w0jDn34Y9Y3quII9oBe7OrXr7y8vXXjMrDnDhQL02NAYqLx8Wk9w8RnDdYDdnimdpLDXoZ8qMEANmN1lakDDqwEeBsQtog3XDHaragCNgvlBIiERGuyEgKkZq3IoLJEeh6qADw3OYgLWlnY5SdS9sc8l2nJv32sbvCCYL8bHO3Hp9Jn/jUVZLXZj/1i1d29ELcrKOoydzuSfXfqHWz61kUVZN9icDRUbCYANddO1VajVqn3Axu5/iR0AT51IKIBzxQW445wO3rHBswyTwXtOH2fEDSripoBwB25WDWh3Llv1hkDMGyA1AG+AUECqBlgbutgTjOnLXg0Inuu8AS37pnmhlLcN+NDg+vjSj5kx8Ffjb3/JIswo1KQqezb40BLfFg0IyolRQbZBEs5Uob0RbZWmx88eSq2tWmClmmSKWMSirFP1CzdEnQsvs/0Rf3j6xjPHbA+Et5+/6wlvRRBkAsVcnNto2sBb+//qA28bXbwqPeANgYf2f8MnLhz7ataEPArgQsh4WOGB+rjiLBjYeK5pzOmH1xAFcKNjLmN3mw8AYQdIVramBoQCCTWgxNp/ITnhA/w3IeCMgeF7Dnq211MowKkFBa+rswVYUSvezxi4Zj6A2kAwkF/ht/vAxd8nW2VVZCOpmJ/ZiZdPf+a/lOpnv7WyvFCambqQVLQOm1WkNRaoc3rC1lGsnk3dLaayzc2ZbtZcuSEqX3r9gacu/ZgJgv/EZiiUVf0cD5us90e0U3qAEY1R4eCLXn1Xs37wv13uVpNmuJaefRGYTiRffHQZHbzT44prxPbyw/yiDkwI0w0gpwasRgXiDSAmgKAgQoNRA1q2C896pKjADswL5zoUMOAuhFIR5eMCrIyfIBSxuUl2i5/M4zYQTQ69JmrvKrn9A5nae34mSi7VXsu1rcT2izlZl1GLsu6ZejBmbUYWZhWxNiP7I2Z7IzaWo2x/xNpZk15mYGFvxORiFHfmD4yV51/PJqmZe7NPkJPq32q6+rZstYbRfQ9vD8iNVJ34QNGDk6q9RAXkUIDli/kqjWA0Rg4kgTAouN9FBfr81Btg/ncLCoKYGwDlYwJQAxBImSBypVb/gER6gpIIHsrHBPQLCsoLBRC8qQp9IwO9EDj+1qe/qbL75lvi8sRPM7XXohaeNv/z++9wraLMJihkftZlDBdlVTVajZnz+lQ92x6N8+q0qTc1L3Tx2LA3Ih/yyktuk9Sbb/nIXdm6B1dACIwEAL/ETiI/sl236/Y/D5uNGgA541t4wR87X3yQD/NhC3AoIEQClIG5SlxMyakBzhswFk2NVx3Xj82OrQkKIjQYFIA3oIhSb0AqaCSIXLn8wiD9QoPDoCBudO20UdYhCf9EmyDUNzLQCwGWCz9+3be9GWGQjfz+9o0mzsZgVn48D9mirH5dRuogepJVmcP6wrUY3UZITKfmE5J2SEIImIt3as/5G2564t2fuFJCYCQAws7fAcfrqQGMuv0INQDqYT4V5tIm1ICaLfOluQGhGkB1oRqg9vRDAakaYDcNUgP6oQCMg3kkYFURGZgxTH6asBcCzA9Il/uySKlNjvx8R/c72Ih8sX3nn7gVmf3SbFyrRqcc44dLs5E/kNghKaRgMlZcWjzwmNvv+b8ydSD/ncL7Nnk8EgCb7LBrorhXA9rd6d9Xe9o28sJslfJUoR2A0VfkovF0EqbrqAG1+pRbIwAUkExPuJgA1ABCg1EDiAmQGuBiAvwEodAuweMkiDhO1QCgv72KwH+pAUIB7oZUxeCwZ4YgzC8PASjAqwEYAw/ddvylrrxUJnfi/xjDs/qPWwFoC8wP9Kemz999/2tYNl0bpJAH86eLqHBmmtV6qzKzMItIo7+YHwPipKEpc6eWx1b+8a3f+Ld/7IoWfSfVscl0JAA22WHXRHGvBuzaf8uHSyu7EoyBapdG3DAeX9eUCgGsUQNCFJAbWVEDMgqMgbyroTFQakCIArL77CAURMofiAJC2J9rk7s/zOuswmnvEpzEJy93mp633ZQ6CezR9mhu5WSbMg3zt6L9Sad13m+NXvykuq293kNFm6PC/CUrx6dq8qbSiMZnFp9nuyT/G/edhmQPGAmAnl9iZ5wIfhIV2Jjb9adqdYfVao0kBJSvNNTBlbcmDVFAYAdQuUHGQMrgDQhRAHm0p8gYKEFEmR4KUYAu9FszUNdJy6ujadzpan5A5OcHhCW3fKzR//Tlv/thjH5V22EZEuzPIwCugQICb2DkVmPmAtugaX/EjgVOIU3d5qgmbGF8vo++E1GVhnbqY5d/cZiqwEgAuB9i5/5pNGrvpPWt1qLNAEyX6OaceHxB7yL9W8znILi7IbUPcJhROLpaZqExsGCGoFAA9fRbJyCvBqQGSa8GZA2gAoP566EAylNGCAC1wIyBhS7BsO4tHDP6clt9auXFur0W+6XRbfRXXpiyMnO2MUp2wRg6T2yQCqNrj0RdRwh40BCPtw/c9k2f/Gl3aQiqwEgAqJN3WBp/7HVuAYza7qd/bKm76/5LtvpuqHfzdfq5BLnWDdbpc8xHJt6AUA0grwAFkM1CIawUVN293xkDZ22FcUgxARxvRA2QIKK8o65Tr42hzY6Wdwk2/DUKwvASDFnqEYAXXLgE3W7CAxYLSR+6sb9SJQjxRffX6F+JjXGNNPqjAoTbo4XLsvdsy6b9EbVBqiY/KSqTOAd9eIDPH6Z6MxIAdOw1SLxs4WdNE73x6okvecliZXLOuQTFcBp1w7n5IQpg9C3Zgn1rmE8PCdUA5fkUFBAaA8ketE6AhFKRGhCiAOpZdUvaqO9mKlqmjIEweeyDjIRMYAgxPxUQEuy3KeMU2tBuwmnR9f/6EffSubP/TKsyudF/3Hz4y+kQzYKo9ZxFn70RQyHgFmZdb39EGTfVKhfx6MBHGPG4bfUmEKl60ii9Gj0g3ZIINnR8Pvl2uBHIv4QOinpj4My+vX+08FD0KnzwEEYmhACz8jQ1V3VhB8iH5Do1wDbqZGpxSqaDxqBZXjh7RQL7ny+QJn6CkO0RGNcmW27ZcBBAulxYuk4ABeu2a3A/SpGIMa4N3iW3KYmVBAWwNgAoQM9uWR5vKyjA4L1z/4Grx22UlBBgUhCzHs1gFhERGTdtA5FodZagCdWifu3XtjX5vr/dqsxqF4VgfhMC1c5E1LIAnrrwuq8AG0DT1IAxWz25wgxM6fVcDydz+PIuQcghBJQy9dmpOCnKGdb0Z7p0RFexBxzjw/Ret6QpGHmmxub3lEpnDnLOtNHLK4fOxjbac0qeIxMGJhSi+IVHP/GeH3nyew9NTD9/18T5KG73Ls6hqbmggKKJOaquJ3UowL8eqAF+boDKgAKaFks/k1Tjs7gEbV3Aer3rXIJSA9w6AcYMLjDIeMQZJ5u2OjCCpbpWELm6s3Bk47CqCQYF+VSsDW1jiIqf2URhGETMzzmjf/6NtunN2SzBVHiu9h/3bJAQvggPrcpcbT4YSfeH+Z0QMFmEEGibO8/tz8DS7G4VZL6KTcgoWo+R7yvI75BN/twaSL4EjkM57Whsova01BhYPPFpg19rTXdt9L5RuW32gBvNrQ4xPrHktVr7WVF3+cn1+P973NKl1p7pfZ144XTZhuJ7jLmqZz/3W9/7ZbMSf6bZrPzVN5//3Q/E3x63PXKwHXDHP2fVPT/dsQd3mE3Wt6m566GAts3rr4y7uBUrb6SoQKYJExjEixe+gHbqjIErNrfAlgsztoyqse28ZSigPGbLh9v8AASA1glgtaCqTbgRIrHiPdTtNmzmYvp2pzEBhkT0sveUtBNQAPsZJJYKBYSjJPMiNPoH96IzG+NmM+y2hAK88GjU7n5s5eK5fUH1GfwnDwRgss3aZ7LJ1mSsRCs2uzldk9HdAzJxQsq+R9UQF2hAQqxmEgTiXEKB82z0t2M8JEZ4Oa4be+gxdnjXdlZBystLV/noz5XtAZg2ZPzpfYu/VFm+7wmVvRNJbXk+ao4fiuaqZ6Kl1t4IIUBr2mcW9lk0Li/e02vLzZ+4c+oF90dv+aE3PO2PnvcHUXQ0etp3fNfvfuWzH/zZ6OLHy/XYflb/Lonx8AiwatBaFEDt6QzByKkBnBuhDfB2MEIBUwtQQDhNmMCg2pLF/a+sooCx8W40YUZtbBOhGuDakiJZnuSoWBAhCXjhaQiJiZvYzs3bHrHlWF4IUAYGy4KejAvjZdvGPNZuwtteMgz9n9icNQQKsNEfBADB/C412F9LvbPWpRakZTK1XvLfp2OdkF8FienP6Z1pwoi/kjK9rfSaCuRFS20VlunHnrrBCt2VFtzaX+utET2cPSDmJ1TVRvSP7Z66732V5dNPYPYYzA8xd5w4ctKZ9n0undv1UEQZLM9s111d/NqN1XN/+4633faGr4IeiAlYPHPu/Yy8S8vNdPtug+WivrEBgTdAZbN0HWNgulqQzQ+YnovxCMxMzDlXdrpmYLpaUBgTgDBSOxBECgqSUZLnZsFJWSNyB6CAjEnsGjYBB53tmNE/pNLq+bBcgnG386TwEdmx2QG0NyJ52qeRNRnDnZHqoBcWcUrlukkKY2a5OleM2Yl3IPQZew4qjR/xDRnasV2TP9HKlSvNw9nzt3gwEgBb7Lit3Cbmh2GXLn3i3smxs0+Hqfm4ySM2fZRUdTOTjBV5ScmbqlywaaZL0aQZvib2nrIl8+6P4vMfvLFx7wfe9ycv+ye/8M3P+o7/IP0bVYBNO8I1+xUXQF1ivrw3YNUSby+m/c/mB4jJuDmgMDDIoQDbQ1Dhwakx0N5pe5nlodCttKXLJiWeMAau8UqgjrCMuVyCMItWIcYjIIOgKgmnRncYkb0AMPRy8fylp23LJegNgEmncQAhnOn//tnshsRHxL6IEPsiQCzIynJsjjTvAeZ2rk7ayrF9gP8gGD4rCANjfD4EV+hTNlMQ5ZLuSACkPXrt/xXzs1oMo/6eeN4xPi0X0zPqM4EEhq9Ow32GYMfTIBN3bgal+uR4VJmoOCHAjDwm5ExMno32tD/zc5/8qw//H5dr++8GBfCusGZ/SOHoq3xGX8UEZEFBukgaooBcTEBPYBAoINrVyaOAixeMTz3TYgwkWlHtoHoJInccoJEsNoELcglyDLFuoVAAQoBPP4Kp/PO34xLEboDRrT6TPC58lGIAGP1DBMBuzXwgLYmeejloq8H8rn2yLdrst27A4Pa9bD2AqGETuiTA+CFXLC+k1VDCMHdLxyMEsKVu29xNYn5G/tmJ+94Rbust5qdGMX2/2okogyQEZveY9d0LgbkD5om69A/PP/HVY4996KS9Qz4kdxAKCJ8Tjr6bRgG2RrGjyU4pRAHk5VFAGK2Y2AIYQgEYA0U9gqgIBVAQIcAHwhYAIQi0sxDnXIepPC0vnn+O20WI+QGbiKWXwRajG+G/qi+fhgigPWaxFrYCUn4atrNnCP4j40EBaqJjdu+koO0sEiJmJ122wUDnCLYh0EgADKETB1XBy4PBD52feeOurDEKacj8jPxFM8eIIQ8/NVtEAkGAECDgJBQCBw4n0YE9ldLJs+3u+TMY5IpRAPA71MFpi1AAx2toPRRgew7gEcjWCvDhwbv3pi8zwkgkFMB5qJLoOsZA0RoU4FQBG1WlBqigUIAEgfJJWWDDFk+dq7rNEPqvFRDekz/2sRdsy5a/FJ4LAbAeo0Z/1kDs6VvH7CbItUOyKpAwKxujs58iHxYJCT+U1TnHcek4yXZoJAC203ubuJe14rJ543afmB9jkeaNw9h8FDUWTiDhUYSR8pmqT1uAy3QUz9TNi7Q7EwLje0rRDTelQkA7+AK/8ygg32yNvqAAjb5bQgG58GCtGCTDpAKVQAFSA0ABIdPn2+bOhQLciXGQbAEwjRiHa1IFWBxF+Y6RGGqNmYyWLp/94a2gAO6tjXeeSFpunCNZQyCA/KrMMH/ZQn0T87AMmzrt2kgADLtTh1mfg/6mO7pVYjH42aIRE3FcnuqkGBDmL+EL9gQCgPkJHR1LPBS0azB9PbbY++5kVE0s6L5iI8zkrGmSe6MJi7JDCGAYRB2YmI2j60wdgEIUEO7fB/MVoYD0rj5/N4gCdsVTzmAZhgfLMEnNGAP7oQAJIgSC7Hc9KICuEgoImylmD/OsrzLCbegFAHn7H3v557JrmznoJPsV/190G8zPvgxF5BYdbpsQQPeHVn92O/Z2357VgQwBaMUgpemdlm+qjoHIhXv2P6CsraYjBLDVntvAffL1T+5Z/CkVL9XTkQjml6WYa3XbaotPnmB+FztOwAiLR7BhRsWi6exTn5q2z55oYnp3VJ/d54QARkFNzAlRQMMsx6FHIP8cmI/RipFqOyigPVVzk4TYJkwrBvGsQSiA63kUENdyjAQK4OMohwJ8bnqJ/vFGQYtJcAQDmZCYbCy79/2hB+af6zwCG7UFKATYgrTCRxUd5xFAVgbmhzCXCP6TSiC4i/YnbaLO0jRcNMQLiWRq7mTSnn7IFVD7eu/a0NlIAGyomzZfSEYmDH/Oz+9H/7Am+YqrLVtJhy26PIECOlj8zbjWw/zMF7fRP8K1xGfMRjnS8qy985MWZz7pUADFQhSwdNE2xs7t4huiAD2XNMHw1I8GoABuSQJbgFYMApGwYlARCtBj2m0b7TxtCgUEXoMM8iMg8RAQvERHGLXcarvmEq1ddp08vWc8OfYPx37ZXdwA8+ABwJZT312ac/f0+ROO/s4AyJz+PIn5Xb6EHAglpNX+cLme6R0i8MJg8Wy3eejFLzvD9S1FNvrHjQSA74grldTrzR9Q3ei7IbGDb6urUW31SqlUsn39AjSAu4gQWIYPJsw4FGDnpDVDAuM2Q89UgPpcigJmdptx0DQFbeMdjr5FKECuOKEAWiII7loFRHUjMBeMh7BA5+ICcAlCCC1NFe6HAlxB+4NLUIuZkrdhFECX4QcH1mMQlAqglMpy5ISA5VUvni8tnF2OxyYXb0c1c8y9AY/AidsOzjEF2DZIzdWcnrINWt/R399RLopxLuWY36InZejveZBQAMLAZhKWx+uf57oGmp6ymzgZCYBNdNZmigL/+XFqM63H97uv3OlvGOrCSGygCfTPM78qdALAGHLMmH98dyoETBWITCBgENQ23uHo288WoCpJMQYKgqc6eOBy2iAKYJKQUEAYGBTuH+CMgX4GYxEKQB2RIOq1BXihyWgaogAaHwoB+o5pt55Yk99CKx0KIAvVTKvrqEw+lQswrixcV7nkN/LwhRQDwCkTrkIEoHowAA4kAp1CMhVASwOG2eHoD7KJ4+one65v8ST39C3WMrqtpwf00pw8PXWbFo2sdVbXyu5Gfl57cBdqgCPjtVgz4MjoJyRgfoiUmXqMEF4VcAZBO5ctIC1oFnALEYYwwhGWG5JQgLueswW4ctLB4b11UICrYyZdMAQUABIPw4PDdlC2HwroiPspZJR5JtyJ/QEFCI2EjM/1xFQjyB6O8RRiWe7acieeq6y4zgYFRCsf+Qmu9R1JN+gCFALQbEvq3BCVvHDNBTsVogCpAlQ8BBcg1YwEAL0wbApeGi0coUfgfw/37SNfakBoB3Dl8wYiVSLm13nNBjV70eu23x+qwHh9xqEAGA9bAMZAPALQemG50sFD5usZfalkHRTAVGFIKABj4GZRgKvA/tCOnBxIL4UGQRXOC4FuagNwwtGXaUVnopU4tQWQxcKeTPF1iM30fFWVT3EBTsymy33nr3E+aBHWMkguJCb19KNOqhIUogB3D4KtHp28u/rFflVsJr/vF95MJaOyxT1gqvz+oisggJb5svmgBkgVAAUkpRl7mfyL22MwsprQu3nJ8y+6BEI5RRFdcw2CAkIrPO0gLDccfcPJOS4qL5tFl7Z6je96E7YAAoO6HgXkw4Nlk+ApoBEojwIkiNzF4M9aFIB9wkbRnE1i9RaD4KZCOWPqaqabcMVpq9Hac/ri//g5d8kL7qDY6qG5AG3KczQWr2UZRn9thc4N+QVXskoq6XfNzosOpgyZXc4JjFw520i0yxoRLnsDRszc7T2na79Nz+XRyTB7QJFvMhZV7YVACGAM7LbKUdz1sNUeWvHTStMJObzkq3EBrk15IeBQQMWm3c44jwAoIIwLAAWINoMCelyCbmqur2WIKIAFTdnXAAptAf5JLlmDAiSMuBqqJGG/IBjdKkMmBLAHeNLkKp2XqhdfyQ4/hShADGYuwGY1Vd3KY97N6Cso0v9LRR4APZC0nyyA+RECA6hWmjh2810rxyiyHQ8A948EAL1wFQghAPNDQgDuZDlnFXaZ9scFwHh9MXzJdZ1JhGB+84GjBhShAM0R6IcCqCpvie9BAS178cV4G7AFbAQFKDqQZ/dDAaE6kpbjryfaEQoj5a9OqrQ+MW6zRUkIpoIIuGLilaZfk3f63OdfR5pfQtwx2NGk1F5evsFd7/NHQr3PZYsGzHG8h/pryq/D/PIAbNR7sab+XMZIAOQ6ZJin3W50qnWxmXQWSmW93EIB4XMkCHryHLPZS5OGsK9eCqFuKAhshmCUQwGKC8AXj0sQAn5DRSggHH1DCJ6hgAQB5IUQlYSMx8SDHG3EFsAtRAcKBdBPYTvCKntRgLUjFEZ5gyB9AfVBAelFM5XEC44HzMr/wnyIsIy587e9bW6idOExuiefahJQ3gCIB2CN/q+bWegJytsDDAEUGgBdYUOIps7EQzIAUuVIALiOHfIfDxvnDt5SaKiRENCogVGwo7nssRnQVrzryI2y9hPJVSSoS3ND5g+bH6CA8sxEZgvQxJzNogBG3w2hgLANdqy4gDwKwD2JdwIXpWwBIQoIqwGNSBANRAHhTRwjJEEA+mTXbfak/YM0/yK7ZAeXTj14hzsX7PcXWQastXDGVjtNERvZoQuQ37HIBehv75/IA2AqIORiFQwB9DcAWoAQaGZILkCeORIA9MKQSXrZzftW5lmzn+qbxuBCAeHjeHnkFmw20tE5vJ4dh1C3HwpgtBMKqKa2gGGhAI2+nSIUgGCC+qAAzRRUXAAySmsHaqbgUFEAbdHaBfQHblIiJm3dfZbl0rRq1vEntl8ooFRvfmtPcJA3Cp47caFvLAePgvkzYW5TgAdSfsQPClfr1sb1EIC5aIcxCUiPHQkA9cSQU/zKGJWqU7v+Pty7T0JAKIDHyi2Ytx632t7wJx98vo2DUEA9tQWshwIYfRUXoBl6PCa0BeRHX7c4Zwi/uQFLfI6EAsLoQG0kIrfgVlBAJoyKbGVCSRKSsgUgBMo2hdr6xa3QG7QVNS0L8mk89PP67VSkUmk/kdWX+pGYX9fzBkCn/4cegJw5QPdFl03KD0QAlKyvTgLKIZWsnk0cjATAJjprK0VbrdoHdB8oICQJAWIDIIJxCjfL0E2ggFDXVX4oCEIU4D0CIQoI5wiEo284Q289HTxFAfZwCQGMmX1QgFs1SHMECtYODKMUN4oC9LWzVO0IURIXCxBJOo/C5lN4Ymkv+fcf+PqlpHb54PXs+qvrpP/wmc/dHJ7nj0EARfp/vlx2LgNgOcd+gaciK5s7uNyZeuChlev6S6Nc+fVOcy1Yr/jo+oZ7wEvng3u++b35HXyFAgbVFa7Q48plgS+5u0LmDy/1sQUoIk9uQTwCMgiG8/SpapAOnq1iEz5TKEDwO7iWNwgyXyFcL0DLhgW3ZIeD2tFpeuQRCgEJSWoI20KfGAogYjJcqpv4fqfjW/EHml+LSvO1X2ABFxAc6aGJ0893jbEQ6zwpAjCfP/BcBsB8J46nc0X6GwHNdjJbOcluUBgopWoOfNY6F0cCYJ0O2upluWmYsRXu4JtHAUX1hygAC3wWiedUAbsjD3PzlRSggHxcALcQHSgUwPlQUEBBUI5UgenabBYcRIiw5iuAAhisQ0GUlNN18NZDI7TbRFWahH8H9BERk7gFWUeB9RUhFlm9vn7CcThCYPHcXW624IVTX/uOsNr88SDj3xoPQKj/ywBY8fYTmwSkAKBCIyCh3javodksP+TaMChoKd/IAecjATCgc4Z1STv4DrIFSA0In7kWBXgjYeh+4wZQQB4JIAQ8CpietBVpp+acR2DQTEEg+LZQQNiuHPzOqwKV6UMdFg1hLUMoFERpztq/G/IISEj2a4tDAdaPft4ETyFqMk8PPnD8f2Uq9z1fuPO76+WzPZdDDwAXJATyNhyubVj/Zx2AQTEAzAMYsguQ9o0EAL1whQgISdXf/Krfe7+8AZznUYBsAVwLJ+VwLkpRgFWnF3zACKd7nEfAZgqyM4WbLjxgpqAguFDARvzxzhZA3FIIv9WurBG9B1IFdk2N2wCc7izMWoaoA2qD7pBRsihMmTKKT+DYqQJSk7LURlepJYFAShRxyUQlQwEiDH2zS/+Q4fyHTt37XzsrF74BmVFE8v/LiEsZDIBrZgD6gK+sDoKCpP9rEhAIYDmdtJSV0wGjf2SqizMklueVPYx0JACG0YsD6sCizOXKzJ63rWcLCFFAXg3IHgGzQeEIl+YUowCs33WbKGQLiLJoyOzEbrebLyNvuF5APwhO1QN1cOcWVAMspV0SAgHTBSUiVAGtHMQ8AacKWHwAcxfi8dS0n5+tqPtBAexloIVLQiGgMi4NDYISAkEBBBHuSbeQilcDuMwS66EQ2Fc9eaubU+GYEFCVqgyqKu8BUH5PGnoAei7kTrwNoCeX57pZgOkiIZ3O2N/3XN/myUgAbLMD17s9/tjrnC9v39T/9Lvm4n1A5YUCZBAMUYDKsETXGjUAfbcIBeRVAFWCH5z980znBQXgFhybsIVHjdkUHCRLvEZguQU3ggLcY/IoIBROgRCQLYCVg6ZtcR12FEIVQAigDvARsachlFRXF1Hph450j0s1+muhDQyCoqAtymLxknBNRfoF6n79f5Qvfu5vy+GU6qKJQIL/WX3+oL/+H/gupf9zT9FSYOTD/K5fDAGYC/D0vcl5sodFIwEwrJ7sV8/RuAsKwBhYmZz78zwKyN8GCtCLLp2XMr3GwD4ooJ8twK8XUPfBQfXx2TUThfDHhygAIcAEHQmBDaGAfqpAwHiZEJhOXz1UAbeXgDGiUwksLdkS6VB5LP2eMJmCpSrVZVsTk+Hd+sQWLnGpGUrbde4Rs1s+k6cEr4VIKGxtidl12ChEAcmE6SGeQAG7D8y5qdSgE0c5D4Dgv+7puwSYCpCiXOTnBJAP/OfjCEb3FAhEZY11D6T7vQ0hBoA6RwJAPXslU/9jTe35hl/TYzAIagZciALySGBTKECV59GAiw40RbYgOEhLhwkFyC1IVRgEQ0IIhKSAHJeX8tTq5VAV8LmJ7SgcEihAqgBCACIFZov5Q0Zjsw2oxlLfthMxn275sk18SpmnwcahmRBwRVMhwO66UIEq4PJN6FRsW7bq2F4nGIUCxqb3rEEmMgBqDwB3v/+DahLq/2smAKmwQydBh/WM/inUd6N+NvqnNzINOFsIVHVtM722BIDNunrqj3wqxYHh8Ta/5NW+XS5BNvBc2T33FlAAbeqWbe6/jbK4vGTwIr8fCnDXhCA12gpu6+XOMz834RGAbKFMpguzirDcgnLFadEQWePxCORRAFUIleSjA9cEB4nXGX0hRl6/bmCaYZb/Wjq9lg1FbEXzaKJkW45bYI6YLGLHXU+lesdtuJmUPIPogqV1G+3dh+W/nasN5qIBnsnYbFPHvp+EAuyCswWMJVNug1MJgZndM9Gu6wxtM/LbB/gf6v8STKEBkLrWUD/9n0VLRUWjv5jf6f9pQaYBn26Pr+0A1bOF9NoRAMbwkcHlO9/2tPRX0zH5jwQqQAHnL6a+bhbHhEIhEH5loYDM4MVMQY10vOfScxX+ys15QYChC3O2GQRxgeEWzBsEuS0fmgsKkE/eVRtM0OF8IAqQ9VvCKVQFPCPXqimTM30Zhnd+eRjfPmy1DePzgdhDoVVNIoRA3F1FJw2LoOTjiEVCoWyxVXudEJZ5IWBtiq0eeSW4BUHELscIgdkjnWh6/5EUFeQWARHzc0/ZdiQG/oc7AK1ZBjD0/3NTSAUw343+5EsI+PLDDgKi2muDuTzzH/nJL80devlH33zk1099+shbz7z3yNFz349QCPtrpx7nUYC+B9NgYTJZvRECqAEDUYAs70IBVCY9FyGQZ349zBsEtXRYP4OgigsFZAIqWL7bPbKH+2mCoLYxnIxxeYQCEoD5TWjV45RpawadK8mS81RQL4wPwfgNtsLyBPOzapLN6XFUsfv5lKtd92knDXMl2kWEAEzXFVwqQALUYH3WZCNOkakC7NiEEACNQCASRv5KbJOrbNn1kHpmcdoFVIC+lDkXfQm3WUm+tB/cNernhMOwg4B4+tUXAAHzG7z8bLS//srk0vknJkvnn5vsWnzXoTec+hkamqkGnOxUClDA18/YW2skJuNYQoBjhAAbZ2YGQe8R6O9lD5EAAEAASURBVEUBlDTiXRWjuQz/Jy8IUAUGGAS1irCWDtM03fWCg0I5kIbm5hjBIRRGYnvB+QDHMdDFy2YX8wxo+yBEfvdjB/fNbQnhviS/Wko5COZ3aycaoGHptE4sJnfFV+tLT1f/CoVkSCAVCnUTKhAuQQi3oNu2zRAIQkBML5uEK+T/MPqHVKpWI43+CKU1VIQExOyusDcAivF7rq2pbSgZV10APHX+TvfLdhunXxdNXDwSx7vTX2QpVR5Le0tvBBk41WAHqgPEbOMFcPEAFr7JMtTYAo5cf/1v8gsud/c6IcB6/VC4Th9hsOHuudq5h3LpaGuMJhSAENgICshUAZstOLWvZy8BReXJIMhzEFAhhaG5sgewhHgmmLLCMLkxCIzOB8bTByNe19x7XkVo2VJb9Yr3bHC/FwZZmtWZHmgHpbi0qgb0FKl1DQT5dgsF4HLTqOuEgN1hAoi2OSTSuWjIu5ehZYOQEOAZIfxnDYdaPXHwn2vZugnaBQj9v4jps7kAdpOYnQognefgP5OYhrkQSPowE3g6uFrpnYee6rCWLYd5a9K1lSIWLCTMNruA4kupVO7Wp55ipx9CWNxpr467eI3+cavIEKdtoz2wn481NWyzGx7xCHzlwQdfQdBJecqWqzYfb3N8ISJGHkIVqJSnTN9l80zb9Wc8ZRACYLoGc91e89gCPBx2NzkUEPykQgAyArpC9gdVwJYer5NabEDbIgQ7KyfcJqK793bcHAFsAY3ZpmuXblOabnCS/kbk4Y5j9JMQKKebH9sVftoc9hVDmiW8jWAwYh9EOsgJAeud/OrIMHzDRmrH+MHXYw9FbaQamQoRxanq0GbJL7eVOkLHOsgtuOE7CiGAmiAhQANgUg9aUEcALCAPp35gj1juncXJLaznSEvbLduVKQ1Z8HspWKxF0ejPTVDYHeFv5y6CjnymBAH57AW4pqy7Ydt/gu7cdl3bqyDpXt+3gk7TbccqYdG33FW8IMb34b+O4VlumtVkzhy/sEdN23t411l8uQdf9Oq7/uRl/+Q/zo5HP4frjSCcmgsPBQnYvnoWCOOMgs0plvlz5EZcG3XihOg+BnxzO3HF7SMgZvNvMrKdACAIQRAKAY5ZQZhq2jP2fjVteWyLDTBGnFhcMgFg77yboGM6ctzw0XkmmOqpUKJKqSYcm308EwKcN4yJsMpH6NFuHj4pV4xwgRHXTHONsUslc+W5Y3vPYWjjRI3wlBCFeWJ8t4GqLb0cMn/FRvp2uKuSKkDYsMMSJCTgyy2UEno0gyCsFtRu2hqC1oXdhi3cOr6U2SXSCtK/LtinDNPaXAsTgE4o9xTwXyxkei/0wmKrx6gA+v1Wc6Oa5bG7cHm4YcA84eoLADPyod+fjFKLuL52jLXaU6Wc2ILW1y4B78X4rC770IUvvSBqLT37UufDj2tdaO3ZPbVQYtEJvsHCl87EsPgfveSmu+Nk+SvnT56z5bEit0wW4S6pu2pVCHCPg93LtvT0RlAANzjtiReJnzfH/FyHGP2b1sf1djRtrsFozuRFtxzN7D4VdQ43oru/YuDAen0iiEtJb0z/YqRkDjyBOW5bQ1vKDJ+8I3tk20ZB7BgE9LXXzG+1oCNjMnOuueLsg1i2gTYbzdNa+v6lHNunQaUssKZh65QYHLcdlRACGTmfu2f8UAhQgHImBKa7cWxfPmr4pdfcVOGavY/WJuwR1cZE1CqvCoF09PdPYAm3IjKB0ENFqkBYwDH5AHZk12EJ0fC+bR4PeOI2a97k7Ult92yMCuApaZi12AuBbqN1TQoARn0H823SD4zPyrJnLn38hZPlhdLEzIX0LUzfA3v1FmIsypF9xUUb8b+xunJrc/HkrUvGiOmmHYkTAnFsO/TaXgGoAyCBcNQlEKcCJM2jAFQBN4Ax4thw41623E9bhAKYS48/um4SyHbMmt61GC01qhab37J5Akn00MnEZusZOgBueAKVlG0NQ1HHRnM3EiYw/+pL3zFmAgpjmQ/Jjfhsesroa6M/TFtupG92Ml4xtbxgBLQKdA3GR2CY3y9jfleHCbN61zN+fiOOsAH5Yy8ElE2babsjPccLAfKcS9L2a+A7N00vh29DKtvv15dAAoFs6ikHzM9XFhZgd6MhLgaqqge0VkWufHpqcnzasFbPg8T8PZnX0IlGfYTA5/ff92uLCx94lYXY22QSx/jZz+wsytbuqVlcWml340xiCiqCYGZ3x1akaUTnTto73eC21KqNTQD+h5wqYGmlsjocYwvoNCYzq7MriEFQendMXTkUkBcCQgHjKzb62mjcnowmJw5EK8l8dODwUrRgKICdhWdWJ8y5x7AOPsawrrXVWME8fl4I2JLm5ar516seTeeYI7bnsechQgCmRQjA/IzinMP8MDp5KSpYTWH4jl0jdcLD38MxS451rU6n09BCVIx+QiCPAhwkN5hiv53V4rQlhEDNdPtmdxWVOsa3qsMl3GvtFNsD//tSCP/DQkW3FAkBvCCBKzSsYhjH14QAKPoiGQLY3ZiPhjr9oehpm8sT82PR//zC+94/WTv7dM/4zoWEK6ndXoyq0x23Bn1aO9tjiYHRG00I2KdD+KpFmtUmV6IL8yYkTAiUx2yRSQtfjdsIg9QeQPlVVSBFAUK/zhYACghfKhkEnfuLn7lAFcAW4FAA24rZdfMK8MRqZ2+0++Cp6FYwsCGLFbNI1/ybUuQOs0JmrFx2QTro6iXbnrtr0JtREjdd2TRsvk/qqcQ6b2LDGNkKOEZnbQwnCDAkNmyjFKcS9OJdhIRbQyNgfCcIeLhRqWTLaZsMqxJaEDJ/OewUuyY7ADdBnGMkdHswNs3tV3eohfiC2P41PAqgqJjfIR4yCEf2Kzj36P+5R1I0I3kAMETKFsHFCZMURYxOHkLAmxOyeoZ0cE0IgP2Lywsnxj3syn+x8/VD+ayree5gv0F+DHyXor/4SGXs7BMmogV+npJGe5gfQxLoVyvQhvptfXbC0IBZtSumd040ovJS2285tRQtn7VpLzbq1geoAvr+LhzXYgXke3b5IQoAAciCyMUirwBuQXs+7qe6Be80zQuBKrBgu5rtjk7pUW6CTmL2glRsZdluVyPOMAQSpOPY1k+2ARlghnC+ertQMq8GBruuPUe6uwSBUIB50m2UT69LPVBZoQYYH4bvmkchZHzH/L5pLdOZ89uBOReb3Gsm7zKSEHCjtf2xa4mZ9pv2+9QbNjnLxyA4oyY34WFgAxdj/nD0XwP/XX1WPq//5wUEKxYv2aBgQMQxu5g+THnuFaA+XHcFnrROlXHz/CreypUt1aurxoHctYf7FJ0fBHAp+uhHKsunU+af7GTMP2GRyzA/Li2YH8bHWg20hUjRY7lenyzbZzyanJk0f/xYtGvXhI28dVMJYreHH4E42s5bQUKggHBmnr6/iwvQS90vNkCFJQh0TmphwknFFg5hjvzYgciFxNqCHUwdZpYe0XCxGcOKSCMjkXqK0nPl7Csz+kPOaIerjmMbxRECMLQYn3yN6E7H9+dF10Pmd/elAYUOAWj0d8yfH/0pHCKAkBHJ9/2XuhANmLVT9gi/k9u+Dea3Kc0h81O1I1dnWLHPlzAIK/OXskRwvyi1QsNcDlzPvPoCwIJ7svh/tSqXtjvxNSEAYHya9oV/+Pq7xfxTY83yVMcNu7a+fCNq1i2oxaAjpFGfF5qXG+Yn5bxmhjc+4/XpKJ4xM5sJAoTA5Ny46dw2qhuc1cy8xgJQ3AZwM8CJNDMPFBBG4uklVrmeBTrCMOFQCPgFMZisoymyzNWf3mXtMvegwmIz+I8h0kh6MXsbQg4BGG9kfnwDDIrUs90sXRn+CAG40Z/7rE8gBAKkc3cSnMP4Io38OofxhQAY/R11PEdrsg2nIW/6y1kdoe/dMkEBwH0+8G0FgWKM7z6uKv+9KwPYKD/6Zw8LDgiMAgVAMH9IOg8nD4XXt3k8oOXbrHmzt8elB5OL6Yu15tZyzZxUFg7sowbXXH8YMqT3s07cRHX+RcD+iThOQaOFhDLyQ2J+NYmRjxda8LUzYeY99qhDT61ZgM/ERDRVnTPGO2iW9wNulp6EwESwVp0W6UAIKBqvu7L68yEE0uhA/+QQBShMWOGwYn6laqxP6/jjPRJgvkA4SQfjnybp5G5zpzBK1gcp6EnzvdsuvEfQXnl5xld+afcq49N/oozhTViGhr8M+gsBMN2WEd7+OwoFgfL8JVfGgoeEAhACELs2d7wRtmZu1lJnymStCR3P/PycWf3coBGfY5EXcDqNxqxdfMT8XMjbAXSu3y67eTgHq2/QcOpLY/ZtVHfVkeq4T/1iarMB392niBlIxogEvLrk4/in9y3+khpSqqcCyxm70HcHEC83L28GTceNsWyVHvcxIVCfMEPcuO3ou2smEwLJRDvqVA9beLBZzX1oK6pAtkhHhym75hbrgQDWCI1soRBII6vtmh+Jxfzo/1CAAlAFnBCw0FgMmkTFaYIORRn5CZARrYnT1wVfNachAghVABUtSsX43fOrfSumj2b9HcZ5Ls9xYFCLmF9ZMLr6RUwf5qlcoCIongAhoIlHFGtaEFXVvB1ifudK1f2kq10T5q49XllFRREoICSN/EqvEAIIZHT49C0eG7PfeTQ1bRLco2MnBNaZ1Wdmnfsy35l/vDwBpd3xkS22aCi3haN/Zfk+p/dr9OcBGLuYqjqIgKwl2wbM/GTO4OYwvrtBkM/ut+HTwH9ajUU+7NrVji5cuN8MwI8xIXA8LT1d99Nz0wCUtgmByooJEizSZhAksMcZo8JRjjtBAea/tiHGPvazK0oQVyDCQDvo2FVUgWTFhAAx7ZWlqGmjt4kZa5vV71fjEfy34j1UNPpTwNkAfEmpAFoZu6eC4ATGD2F/cCnqiRtDGEg7YmVdttiGUAHU3xj/xNz0DR4Qvnc+5T4EAz+nCZWK+UWILGShj7a5VuuJ9ZcWFWUiUqCWcGsPCf6vJxAyFcDqE8NTkYyAHF8hBDA8AeBG+7h7+Ec/9qKo1H3pqduuP2BTeo937z3/uvmj8afXFQLdJH3D+bJ5KpduIuuqhQL70b9eb/6AmpbGw5vPOjcjjBDz0M7TA3P1MuIC0ghFqCzES2chuRxIJJC9YgbExonjDglE0Zl0Gy+cdRaWC4WxAZw7MBAKAWePcG+zPTMnBBgSYQC5A+URsHrclN2S9+dTceAO4zQj8v13RvfPBICXM1m54EAIoKdv7DrMLst+UDw9hMm9mdi5+xCmIjE85+Gx+jhkfsrQ1zRaKadCRBwjKDQ427wGN0/JQrVxEbru1LU88+PiS81B1LI+Af+hUAVIc9K/oTCwnHKleTi8PIzjoagAbqqujfAwf7K7+8fRkblnJ+1LT2JKb3x47FOHXnP3U9y8/gJ1QEydTB/6WvaFltTDPqcTPZkZgf3qyO67AgfO7WeWf7dTjG0hHer+4eO6rVTMZ8wPA3hyo5ggKszPRBImzADrxICkVYsMYBnvMYPd9V3Zoh31XSkjShWQPaCfKlC2ENweClWB0B4go6BefqkDdrNbOtsEBkExGVPD7JBPgf4Y/rD+u2xv/ARguI/L7R39fVbmBtQ5aV/m56J8RIL85BWpXWJ6rotk3HMMb5n8BnyaPqXvIaUc+6zIZha63ytk9qr9fnyYu+E+HNsHkp9/vdFfKwVJDZDhMq1l7V+bcXklKPembO0RWPGByRa58u8jwnnbNkfyvKWmS8aX7EW+affrqVn6/pqnmGA4ePHiF6LxpWNrrpFhsQDdSu3GwmtXOpOZfUbnTnztCRt5VDjJLIS97l5BUMb42Bg9keXX3rZQECAEJmzZar+KL0bBicl5jwJs7PL2AC3aSd2oArIHNA01EDHnyAY6RxqZAAOyB3BBQsAVWv3jEIBOjaFDIQDTw/xrGF/lA+GnrDBFBQhJMF9peC07lgAlQ8dKVQjmF+xXHikIACLhg8BDU4XJJfzssOeY34rrzCaEYFh90pzivwgCMX9YQgbAsj2XerRaklBAiGjC+3TMZKArQNsXAH5Uf8xfvviGJB6/3cXzN/a4IQvmd9TsHEYFKHT3edsA1+LWxS/mPQHYAZIZU4inZ55JXX2FSPqkK/a3Nt55oraRlhWeCTEt/ZDBkyUEYpulR+hrRJgtLxLuro5/oVQ+HHXIkyAwdKD1++o2XRd//HjpjFs/gGKgALdQhxkI1R7yRQiBzCvASw+J8WgzQkB6pQyDaSnLx7FuN2nqrs+XEBDK4VxCQLeuN/oD+/PQf+DIT8UwOqN9nuH10HDUD491XQiAc7o//AnU//mUshICHOeJ4KCSCVnUJBkzhAJU1oo4Sp1Fyk1TIQDlrocA/EQwFR9Wun0B4FuS99WvieWH0QtUAG5fZeryB7MvFqgBDkXMRN/HNakMWbmH6SDudp7U71ESAlIDKFfSyFF0Uyg0whFIZXkZMdKxoYeFD0/YenlTs2ygkUJtLSIiIbAhVQAhAApoemSQFwJar0+ppFjWpvRAQkCMr3N3Fei/zuhPuRABDBz1Kbwe81NGoz5pEYXZHAP9Qwp/g/CYMggBBAgqgNQAB//tGgwuNcBUJUcuz19Lc6yM7xQ33VuZubQfAtBGgRh3ku7h3F3bPh2aABjUku5nps4Oui6mTiYPfqyonEMBUfNJN7z2qzc/7HYAbwBMOo0DhW3zP1yREHBLVjGzjEkjzgIfvHisW5d/2cIHSAiYgUj2ABeUY6qAaJAq0DU7QI8qoJtI1xUC/blYQT49jE+dYn5ST1KBQEIh6bxkyKjv6B+O9jpeT+fPj/4wLx+RDpn3IOI3yI/+OlcZUkF4CYHwmo414uuckb9o9Nf1fqmYnutrplL3u2lr+dsWANno7YN1ippR+pZlH6xZdNXyvBqwxg7QlG/Hypwei9oTsy+khuyZnDyMpDn9PDK/fn/YDMJFOzY5h4CRuptkwlV7+1gkw6kB9mL4mYHuviJBwEvIx9kD6jZn39bLt6Ac2QNAARBRglIFGkurhqKOvTgSAtn01uC9L1QHUAmcWmAFSUOkwsOMjwsZP2R+uy3P+EwEAvaL8ZkV6Ji/vJK6+TT9lmdA4agfMr0EQVpq7d88AmCmn5vt54vq+2MA5Bg7gJhdvwHnOs4/QUKAfAy47mOoDCGD8Y/rKkPKyJ8f/fPQP3yGGF9Mr3OlYdkhHW9bAGykHd1PjBOrNZBc3ABLgrcu/b/Jop/+1zb/tmifvSxXWQ2gKZ2FUjncyIM87Q8nFEAe1DR/FdFiEfHwMD/z1XkhWXMKButjgEvvtr8SAuxpb4FDrOc/yB7AfW6ugBkEIQkB4hTWCAEEk0MlFLTXgDgA7AK0zWwb6P/M5U9nJFoZy+qhcFDnms59ihBwMxr96J9Y/TA+acb82EYgwef0zNoR6PtFTI96FY72OlaqevIIQPnhqE9e/lz9LuGg+0gdY+vL+gvkyTCiMv6SSwZBf5XDBpBnfM5hfuVHnUMqPqx0eALAL9tV1LDSky/vKcovzJu56b09+UIBhgBsgaonHXrt/c8EMTjXY0/BK3TivQBRafwzRU8QEkAIaJnoZsOYKVwpxo36djeMlh/tqJQXMBx1prw+yTVewj72ABkFUQWwB8grEAoBqoAyIQDzMPpBziMAGrHnOcFkGaSMpAWjv2KI0puDvwE/wPhE/Wm0lxAQ87s1ARj5xfxUE/YJ+TC9XJlKZVMhdcuKWRvD76LvFDSr8FBMncarpUWUp98gTLnGR65D0pBCxidfNoEwVflBy4ZTRiN9xvC68cql2xYA0t/zTURv3wzJQzD/xsd8CHdgcsk3TSgAQWBCoHTD5Ks2U+/QypbjU9rRhzqFAtLjtK14BSA2igh3920Zp3VCPdgxno0aQgHuLvujF+9y7mfhBUQIeHsA4cLYA7STLrcjBKQKqG24BoUC9IgOngAYJ41i9kLArpLPp8V1Ps3e0V8IQKO9Uir21xzzm31B8/8RAu7jR36i6WB8x/zhqM9xKBDUWFL88CHzk8c5H/ufUXicqV3Z1dUD+pj+DAWG+p18KJ9ynUtFH3eD/RHD6zxMi9yH4/b7Q3pWYjEgYnwEQSgMdJzeMdS/uTdt63Xn1+3r8QKUy9cpWGjQEzSqx63Lb4rKxXbDpLn8XAKLEBgqP6jOYV2bmdvz16orv7Ov8mOWbQqIZbwrLVvGyz6OzC7gLPEwWmiFD1UBvYxBPe4l4UXx9oC6zSKcnp6KZvfsdfEBG7UHuPn5Vq8TAtQvIQA3ZMFCoAGD/25FIcqu2hUymC/m94xPPswPs5dqq9Cf0T6kro38kEs16ivlQl4IwOQgALeun11XSllITJxPmZ0I/A/1f8qL2fJCgHz1u1LK61j36Tly5SrFt58nMT1p2foUQkXRB7++6lVKGZhdgiB3nlyTXgBvwHPr9lXHjtFmqAcBWCCPW/aLC31cgVwSmojre97JeUa4BFkqHBTQNvjoA4tUPit3BQ5iW/yDai8tfdMX2d6bTT05zwsBqQKs46+pupRbsbtbif2oIt4VBeVICHAtFAIqS+oW4bCUl4QP9oCazSacmc2MglIFKI4qAKEOYBQEBUBCAi2/5l4mBNhh172/fE372MjfsMCZzGbg7vZ/XE/YMZCfY8/4QgAZ3A/0fu5E79foD/Nn8J+RX6O/Fw5uxIfpYRwYnjSPAKhUZF3iiO8gf78QgFJfpIehJQTyTB4yY3hMHXqWGJ5Rvw5z+983ZHo9M2N+LwTIJ6ovH9nHeoBi/jClPOeD1gukzBZpaAiAVX0GtWFDkXxetz/2ptvPmb3jjkwNoGKYHyFwqmKLypx/7sNpC0gsyvGJL3nJYn5777wQ6Pn+TR/l5zMJz80Cc9z38S+Em6QjzrILvJB6KSnXgNs88UKO28ug+AC/ySfxARICqAJsNyZyQqBn91nj95wQcO1CHSHwxwcFlW3hkUTIRZUp9c0V5GfUh6T3u+Ng9If5NfpnzE8hRn+N+qQIAen8XA+POQ9JzAjjc4x7joi/kOllkQ/v4zhkfvpU/a00X77nXMLc0lCnh/nzlDG//YaZ18CO2fqMT7iUE+sBQjB7mKZn9t3Mq1TrXKfTYaXDEQA+yq8oki9r6Abn9GtUr+w7+TbUgEwIYAuQQdB2DSodGLsDFUC2g+w5V+LAxwJct+cJb6P60BbACrluldzmdNReWmVWheaqOc4nrx1jeGkh/PGmDWRReZ753LVBL6PsATZZBHtAUZAQQgAUALUNNbVNCIACRBIChAyXTQi1MATa8xPTC2D+kNYENa1+TbdYBmVD5uecUR8S8/cwvvR/mFYjP4URAuj8oiKm0jX6UD55jhFerj5LIWfUTNuQZgR/80yvkV5pUHTNIUzvRnovBXHnhoKAGxCIfMT0YSUs0aYP+QgBPqwYxSow/ShEAP597Fd0M/lDEQDyy2dz+oMovqwxG53T71HAA2+87euggOx+HYACbPcg9g889Y03/CrZV9oWoGXA2MyjMbfrT3nm0tK+brW1K1rOWctDIUA54vPLTbjc3u9Cd9wG7AFSA6iEl5RPbtJQUZCQhEAnWuoRAhIEtAfBhJGS3X1gfua6E8MgIiCQBT57yN591kDomgCjDpgf+A9J7yeF+VmroIf5KSS9H+bXyE8+FI76ub5NCwR/YXoIxpcwEAJQigcmT0IA5NOXErakoXdA90kQKc1iOIQC/KjNiK9RP+jDjOG1PiPTC/mYsTj76FkIgfBDvhcMpUr3BtAo76OKbzcdigBQI5jT745tDjkU2gFKe8vfRp5GeI77kcqUZh68oy8KsJuT8+d+HFXgYTEIeqk7Off41zSbBzPrVpEQcN/LdvQRNY05JATKXWOUcKKOM74ZfOxnD+ClDNUAKg2FQG3MBQnljYKaOVgkBKgCIeCWEzMGhfmhJisE+6W92+YK5JP3crmC+sOg5f30QgChvk/9CIE1fn6YVbo/dUkN0OgvRlOq5ykVsyuVIFDqlyjLAnP6CQHq46tLCJDm3XyUCQURx9mIb4hKsQdifEZ9yBYMcYyvCV9pruV5gUTH6sP3LpnKqE+V/rEPxKYtkBcCJ04cdBNsEluOPr2wvb9DqUQM2y+U1zVxM1N6A1tAXHnop3u+otyC7CEILZ99x8OxeahQABt7dg81/z2PvthKsSxCoL1shjlPQgEywIECEAKKzFO5LDVGc1RkD8gKFRzwwrJ5CqsLBUbBcut4dP7ydLaS0BohYIZBp6LYXgxsN+Zclm5jD95nW4XIj16sgecQgG+eVAGtgCR3X0HLnM7vmJ+LGvE5pstgVDE9eaJw9FdeUSpGV4og4FgCIRz9YX5sAaEQEJPTf4z4ISIQGgifGwqi8Dhkfk3vDu/j2K+Q7LLdqO8ZX+VQ52Jjfj5VEx58CNAqITi9EPBpXFo8EFcWhmoHGIoAUChvqd28b+CU3nSTzw2F8jrd3mwLx9/69DdZDPCHM1sAHSchYIfxnonD0a3736n+vJIpHgEk7xN/5D//x5XZ8f/OsyQE8s9F744CFIAQqHq/lZupJ6bwzNXXHsALWfhS2osE8QIZtGTS0FR1j1tObPZQzdyDZwcIgVTH1/5+bnuvtDY36rPGPwQCgIQCpAoA+yUENPJTLmN47ilicArxvcWonIcEc4nBwlFXZfwKwy6ykjzqUV1KJRR0D6mYX6lgvvoVgaDfAaGQp6K2qIyEtxCA8gX3OU9MQIv5dd3ZcTz7ZTYBDMf2GbMPwgUhwAfyQmD6saducOcKUHMnW/8zHAHA841Zsd5nhkBvB+hRAw6Pf9eWmnrd/L/jvh4hQAa2gMXlODlz5jlH3vLQbzycEYLX7fvmHwtVAZoDCgiRgMvzbjiOV8zI1lcVoACSn5dNU3XXMwrysvLBHmBBQtWpqjMKYg9gZeG6GVHPXzC93q8pSKBQUk5X1iBakMAlhACRi84+YYwdzmikSUIBHK9BALkw3QzyW1mOe0gMqjQ0/onpuUHMxnoJIoUsswRXnsTwSlV/vpw8AhICQgGkCAQJBe6TYFAdYfuUp1QoQOdKbXOUjNg/sR+FgkJlvBs1Uy8QAr4Phr0q0NAEgAyBJro+qO8RpqkgKH3Ppiz3XhWY/+VbPx09pvta1ecEgUcBrD+AEOgeO/6KQy//6JuvtD1AqgAGweaezg8jBNZDAVjgRS3DAQgB5xWwzMzfzgjEaFIkBPRCKlVlpKEQ8CsJ1ef2uSAh9hiom6bE8uJQs71gzE5swGVTdVNXoRMCZiTsR6AAtxy2FRACwD0o3T+8T0Y/8kI04MoIootRQ4QgpqcgzCaGdzfan2wpM2VY6uZXWCqGVxoU6TkU40sdEMMrHYQCwvb1VGonQgD5/BD6c00wimNG/0EUXs8LmKT1zYNu3ey1dVqy8epkByjPHPjz/F0wP5GBycnk0Im5fc/g+kYt91IF5n9+/x1SBeIZbwQNhIB75v76Kw+94dTP6J58O4Z2bgbBxKyxT33l7/3n5MDy/50XAiEKcC441AFPGN9CIeCMgrpIKiHg7AHe1ggSKGJ+3SchgAGKKEGbORgKgfE9thGJLSZas11/SrZpiYg9/uL1FqKwws4Y6INxQAESBKonTNcwPhdD5gyPdaNG2H6MFgoEqQFCAwaYtkQhAqACCYJB/VzUvjyDbqQxQnb50T9UC8J+4hnYBsxYWK22nryRR2y0zNAEgLMDmBrg3HeN6z/MarJRgTtwO7H8pbn7vjdqT98jVUBp9mWXzCC2OP9GkIDsEhsVNFkdGzgABUTeK5BMPPNfN6dOPMhtcWt3dreEQMWWReMDCpBRUEIgKxx6BZTJi41hiQAdES/noBeUICGi4cwoGAoBdhyC8Wu2V3clnokS27wkT/mZjFIFwtFfKoDSMFAoHP3zdfcY6NZctAwYC8hfNPqL+UEBYn7qCI+L6uyXJySgfhXjq7wEQ1E/S1CpLGkRAggZO6/7c084wnMOkSfBkOb0Ck6fl7kCfYSqim41HZ4AsBZIDYgn73x/fmkvNTA5nmSx/IPCglXepYFXILruwe8lD+YHCSTnUndbuLV4ZEjg8E8c+y+Uu1IqgVQBIgTnbrzt+0ABF6LLHprwZHuvsQkQhCMEEBgFEQLrqgJuZp6hgHDSUD8hAAqAcBd5zwBrCoIECBRiay929uFTidM5C2zyIWLPe+3wA/NrmXOpAPkFgmB+7QJcsu3KQ/1fdWYjfziaZRftQAwlfT9kdsrpnOW3xPAa+cN6toICQEsIAzG8UgQC6pj6M3xOHgHA/EUIgCnVITULbBfhdY5h/iLBkCsXd7oHvn567BDZw3AFDlUASA3oieUvMgbeMPtSvoAEBsfrkRjZ2QP2LT2L8hkCkFfgPFZUI0MCyeTd/+rwj334C6wipHs3LHDSWtb9G+MVMFXgphf+yidwDeZVgXwFmSDwF9aoAiEScAjAXnxeus0YBQnB9UKgXp1xC4uWpmw5sfqM29KbXX7c7j4B89McmJ89/kjF/Gp/JgSCgCAxP2W6tjQ6CIDNUHtIen9PZnCikZ/VkSAtpinGD/PE+BIE7obgz2aFgBCAUiEBCQKEwLBIvv9B9W2A+d3tFhS2/7FnH++Oh+AJGKoAkBXeeQPGpt6d/76aIZicjF+hGX2bYUoxMlOG4+pd36f6EQQggXjWILCEAMbBXaXb2/Hxr7FcOfeqfbpvGClCgO+Aa7CfPUBIgOc5VcAbBaUKFCMBewP7CQHBU6XhF2HkkhBgt6FACHRtbUF2+WFTj/xHzK+NPqUCUDVqQGgHIA8EwMgPKWXZ/B7qN/KrkEZ+pUWML4ZXqnuL0s0KAQXtiOklBJQWCYE8CihqR5hnu0BvmPIqQNGNBsWG6QkYrgCwBgsFJPXlN2Ur+/gv0uMSXG+p8KIvT/1+GvDx337Ge0rXl1/iiiVzPeqAEwIIgov2RtqHvQqwC2QBQ3bTUG0DpqLQDuwBE/GNX55uHSqMD8AWkCeEANTjHgwLSQg4e0CgDoj5lYb36JhRpW4xAl4IsLiotvFSEVLyhAAY/UMVgOtCAByHxMgv5ic/QwDaOYdMWf05Dgmm18ivNLyOMAD6Qxr907Ph/dXoT5pXByQEtvu0jYz+PGODKoBrzhA9AUMXADIGAtVjQwEOphcYA7EFaGTeLDNKCBw7OvcHDgnE51bVgc6eKJ70xri221M0FQSzySu75ftOH3753/wkI7ZDBNabm322+wEK/qAKYA+YeFz1e88mSbIrmirljYKhPSDvGkQdWPEQ2rkGsbr7EF2HBJw9wH4u1AGIF0bMrzS9kuqvoAB2HXKeARMCNvLXzUAYmypQr9uGHsZc+nAbx4L+SrPqPALQOWk5XivMMgRAIJGEgFLdrNGecx0rVZl8upHRX/dsFQUIDeQZHxSQRwIhCgiNgBIoast6ad5W0K+8nuFVpGGuCzB8ARB8CVBAdpoXArsvRPHtt/9aNiobU2ZlN3AgIQASiLxNQLc5A2GREFjaHScTC79y+NRff85tYZYTBNsRBrIHKD7goea0exXDGAF5BtROCQFQQBgl6FyDIIMeIYA9wJi+yDNAhXkh4GfjOXsALzfBQraWADv94MNXGLraMiglNFjeAJXrJDav36sAIIFs9Gd/Qog9BFkNGWFAKgpH+/BY18OUlYm2Qpu5TUyrVOqAUmyrfELCeJlNCAovFBxLBchbUSkaegt0a6gGCD2ZALbdWNMSlcXVacFDmBWYxtPr4UNMYSaYFGt8slj/V853P5Hjcab3NqrvPv4bR/53ld9sE3Qfxr72iRv+0t7wx0aGCDLSykKVIK9zyTYa6STx4thdZsp+B0ZLtwaBv0mCwKkzHt5n9a1zABJAGHzuP73010un6q+4rrZQTqp+kVN/b2U8XTpBKkHVGDIxN13ZzwU3pO6oUzLLvTabIE985I7tp4OxZTxSLACCQBZsjhEErPXPC96y791czhb7JPovpKJ3lOuyAYRCAAQQqgCM/giBDAUw8vuNRLNnCPavN+LrBqkAOt9sqv5a7z76UQKAY1AAAkCp7g8FgTwYugaTQtwPhcwtNaAoGCgsx336PTmWABACcIu12joNzetOfuETz7gFxIknwLmlKb8FynHkFmroc4tsAXH54qu0vFeyYDHRITG1d+/lFwPLNaKHlzdyrPuIPzhY/+Lj46kT747MJuA+VGAqgfugDkglKNsMK9BAt3U7iADVABsBMwslUKhXsQSoDOTrM6hdDgkwX+DHfv/fdvdd+HinNdMNVQHurXV2u9gA1QPzQ2VjVpBAp5HHnHYRnVgjW94ewM0wu1AAabDPX/ZS8XLai6ttr/PRfCEqELMXMT+Pg9j3IKRYK+MI9mvkV8p6gw8X84cNW+84ZH7KavRXCm+HzE+ZUA3gXKS6NgrvdR8pzC8EIObXdRCAvCSWt6+y7F1eKrC19IohAJojZjpy9Nz3dx/svMv57TtmrZ/OBaLUTWteGv/nWPd1z6a/DiqEH631PCcEitAAlQsRgAZEHhUkcfmv4278cTYsZa8CJwxURmnwPGUplVSe/8Pf2Xv2q58+uSeO43L1UimPBMamexm9Mt41A/6YLWrDLrsVG01tZl6IAhh1eAlszr6bXOLmnwdIAJ0f3Z9RXymNKtlIv8Job89rXLQXfNFtyKFFOygiNKBIPwX7yACIGqCZgqRQ3g7gRn8xvysR/AENbBQBbHfkDx6boaYwL38sBBCm+TI6zwQBMAxYbqmmB/dDAYMQAPUWoYBQAIAApAK07Hdc3hud/OLtt6NuCnFSzVboigoA1yDPKId+YPGDFh34HdHkhG2WYtA/VAdQBaYbSXmpdCsj+XaEALEFMGyqEhz+HdOBv8O1Y5OCIFpecNa2uLvvy7ZX9oMsduLWO7BtzJ3dgUoHCQGvCtz7p6/+lstfXPh4kRBAAGAYlCqAAIBCIQA/lbs2cvsdeBnBBwoBKtCW4xICCABGlo7p4+xFb2oA8HLNhB27Ffceob4IADE/VYYUMr7UgJgtrmX8Uyo7ADeznRYIgBQKj9Oc9O8wmV/1+kfqdGAqCJ8vlDF+7kKoCgxLAPAIbSgi+B8KgPZktHjp+n8x9dRf/sB2BcAVUwFy3RRVDh5/mfISQwE9YcKoAkbt5csf7Qnc0Q0bTQ0BhCrB/Dsnv7N0w8WXWLjmPYVqgXuoVw2SG63TTTXgs2BDbHuXxe7uKjk1IT71rCg++eNJPP/LSfnEHx5++Ufen21X3qdtThUwIUCQEJOG8Azk1YGVhapTB1SFjIKcow7YTH3HU+667cjrCOjp1AGTTxiY8uoAjA7D80EVEPOnd6d/w5fW5yuslwAfjf5SA8JbOcYAyAeSITAxwZIZAoUCgP6hHUDMz43hMefQlWB+6rUuW5fE+EB4wfjwJsAaH0irAUvlyRsEdb/UgCJDoKA+9akcxw8zXXkBYEzJiM7I7lx2iyn8XyMEbGovc/u3LQSsA1P9PdXbcRXO31T/R9GNZ17bVxBgJ4BkJ5AgIHX5qTDIhEKn8exu4/TruMR3c2UK/kgIMGmou7/xmyqStwmEEYJxc8wQ/KpNgHuSRgq5IwkBMvsJAa7xcgkF6EXTS8l1T+HEHUX2hSG+KpdPQQCdyqoKCvQHAWQ2ABCASPo/54z61yrRPxICSvu1lVWBJQRgfqkACOONUqjvowKEQiA/+hfUOaxgoE20uKAVG8zSqJxC5/odUZEQ8Gv9OSGQLH5NkYKDGGzg4wM0gG2A2YQYCdcIAgyGkIyFpI1bV4UByEAfCQbOqzPfvSEXJjMHvVFwOXrMXaAAHichsGTLcOEeLDVShmqxxl4gBEABUI8QkAEqLwScxd8LCyz/Yn5XQ+5Pnyg9CQKlubuc3s/oHy4c6kZ+Y3rWFHQkBBCO/oL8EgK0PaO+MjQrse2DgbLHP79ASK55rhjfXfDfN0QA/YRAHgXw28jiL+Yn1XH44BD+k09dQ9oj4GERALRZo/L822deG0823j1QCEzatimly5/CmOfus/u3KgjC+zlGEMy/c+zW6LpjzzL32IdpW6YeSBiQFwoEziEhBI4vPN7/+pz0p9BFM37r3LdLFeAOCYH83RICxAGhCoS7DLmyIIEiIcBFCQFeZr3QSjUTLnhgiAJW4by9YJ7ygsAxvyGA0A7gihrTZwhAN2v0D+G+jgOLdoatt+r31/O2nArbSxD0MY2tkVMYAo2EANKz9G/W514gh9d0XCSgqZI3S7q/yl6h9GETAFn7zXCG35+5/dHl1I1UqA5YLH93+f534Z6D+WFeJwQwvG2BnCCweyVI8DhgI6hcd88tKSooEAZyJ7ZvTQVCkMazZ/6O2IG0TWkocL9maebgoRe/7MzUE6b/KeWEBHQPSACbgAghEFLbLOgZCuAC25IPEgIIAsgJAmwFq0zt1If0avYX5l816JkdwM5h/lAlENNTTpT5/UMEoItKi0b9QgSw+v1161DTEAUUPh9B0KcN+EglJ3pQgN0CAnAoYLVfetqtUT2PAiiUFwJUUdGD7FijP2VFJSchDul0O+mWmGnLDzQornsP1r/8HDcCB0LAxQmgCnijYAwSmJ595Ynx0j1SCYDzYmLVteHUqwWUpw4+2CZSVGAGw9mv7HXIIF68w7UN46FI6IDU8l18g11TvIOK9UtlD8AoeGKu/UOUyxsFJ2qVTBVQPYoGjhqpXt3KFs70L4lG2VAd0M0ODXjGZ4ERF04cQu+0oJifMwkBpeQJGZCHENA510LD3xoEQAEoHPVdO60NQgCOEcMX/mF6JQufD/MHbXGN93/CKCntDCSVJyvnEUE/NSArN+AgZH6/1+SA0tu+1AfrbLvewRV49xkM+P+3d6Yxlh1XHb/vvd6XGS/jdbDHCwQ7xnFCFkiQgiJIgohYJEyChIgUyGJASYhAYRFSnIBCiJIPiYEsCgn4AyKLFAIkQEI+oIgtwQkmsbN6HA/xeBwv2J6eXqb7vcf51a3/7XOr7339uuf1THf7Hum9U7eqbt269d751zlVp6oeWLn+U2Gqbi4f+OLG4CeA67C2F28/lpd38vHb2pMXvVlee9y/HW+9UuXQCpg6vPyZ3eBHEOtGHmz8cKIRh5pwrsF90xe0r1j7yiXHj35YGkW4p1Tg4AtN2+ApeNF3p15L7tRHACDoTeYCj5cgNB47pjFbxos2MK4ttP30IBnlJ0BY888IvgiJZY5ZbrgWLoRYeYyrlxc4SOgFDOLcghZAGaWpQFdWCDLmQN3U80oAi3yu520X/USROtpABCDqEurhBT/Wo+M0Jh6OBgAIwEUcDeYpmAIRBIKPhmkGIj/Xr9/Fl0U+NCt2B7admsIOQL73Z/4fCl6ds9nS4qV/P/OM9/6U/k954ta/zw0AUE8naMFHgPl6DwL4CkApCCz3v8PhoSX33VSI8zu3/h3L4cYCEOpKcfWvy1IXL0eh/3nvyz986MGZm8nnQQAAgOpAwI4GDumbg0D8E0vYOJS0bTYpACC1HNWd/539b/ELGEbgw8PtqyT4GtQSVyY4GgDCxnMFBMQXAhgy2RdAFQVsJ0HAqlJPPD/WIwUBbkJoNQsQAMAaT9OBfnpVuwT7GQWBgABA5cG98HMN6XcjvEMA4CCKp5xFwhyIQoQtfvmvPPG2bGH2jaEGBgRhXMAuAkIZCGjHn/7UY9/Tn5p/Z3955Q02PvDxsQOXv+vYra2jd9jfK9y7FSFOXxcTQeWQRv2M0o1L8t5/3Zwhz3boxu+/5hePPjj51OnsvrDBA4OCeAsyHgDN2BbRAgGu6fnH6LnNHEATWLUTZgMIhOlB/riWxp8w9LIm7BB/9nBtaVDPQMGnh8U7+WIe2zkwZEl7eyKr4grNIdj//FYGTBrZDiXFL8CGOX7NPEjwiz94FHoJv793J8OqR3iuA5+qekgDoD6lMYDY46f1xAwQCKRpjAUIBLxpQc9fRRL+qrQzjDt3GoAqHoUMVTq48B47eHtIGkYbIKOZB63Hs38097W/aE0f+meZByo+cA8K+PjvApLqds9H3nbl4t33HpWnIFUDBKQFcA0IyBTgujWRmwVTtna/ZA6QiEmgnqgQML2yRqSjFkB+67GL6Tuujbx6n8dsjNvQ+5NRc9tVIIDwew2gEL5wo31JAMUt6qxrAQIie3Zd7091RakJQHzR9tGM8RpASHd9rkCAeEw6xndk2hHXSwAB9R+yg0KXVo7scRMgf5XiO9jzhQtvXNVH6rBAQF6BQdb5TP/AkS+3Vxa++J2DT31sq3Y6RZ0NEgjgLjx518K/8UxMAbjWDQgIPAj48QDyVoIACfwZAwgkAKApKjbaiKPQOhdwws8WWBFVYEDREIN+3AcYZGgSmwl+uMt9hbo5oXNJRXBHQAC1yIjnF0CkejgASkEgtdk9ANDWzMoIAPInmECHn1NXll4DAORIhZ/DQNT7O+En674DAF5KIEA4mAT9aBIQsRUgOBmR86D9OR/r3VX48tsCn0t7sx8PKjxl7gISCNxx2ytfcdmjYx+gSh4EBAAhfiaq9XYBCCD4aAFQLQiQ6PbyC2fW1QAAWYelDRpAlfD7wrwGoHgBQNd6P4ULTSBmGjkAROGn+PBMVUYAoGvS4xiKogYBAHlS4ScuHQwM+WpAQFqArfkvkYRfkQsz2XJ2+H3TT/+zW/T/UdJWeQJPW719tPnXR9b7bRyGwhy9nHWYLvRThqwnYDNQ+zA+oE+o0bzZonzYF/DABTfY2rqfMHh9bb89/tcnOo9/EaAZbc23X5qmB3EXfuji5dsoST4CjAloPIB4fAO6i/kfmOlBxgOWbQdfiPD6FCGZa6y7FQMMHIL4xN6f++nNNY13erW8zJd0T6Hnj6P+rAEoyJVXxMnuJ8KHuab3DcLP31A/iTgZjHo7+Bfl+YGSZ8bYgqWCXyQMCCD4BtAlUu8f5vFjip3MFAiOCZAKf6kAu4hbyKXR273ewdbdZpVsLACVHSENc/Q2QFjy2qsAgv7KxRvAoNgXkGoIEOBz19zwQPcpf0D0bgGCAALRXfjhSxY/Rt2qQMC7C5NHIICnIBoAIFB2FkLI7cPOQiKdNReurT2MViJYBDPAhH9iPP9TFoBga6MUDsKP2s+AoQl8mPoLpdR8ye4nmXBKQY2OJgpgUNXjjwwEJPCxEl4D6MpMSito1wzUaW1FRXIpqnDOMtFiwNaTHIJ61nYCAcIIP0eFI/ynkzr63r8k/J3jvujthncfAMQ3kTaAkAavvatnXlwJBIlWIDBgX8DwOX152Cm40BBMY2jfuPQiHjOsE892G3cr97WyN4XsT7vl9pexZsDfO9M/WNIEBATkAQQQfjkKERYIdJnyC5nsKHAO5WTbcT+3nKfapqG5qkvPj/Aj3HwEDJO2XXiw9S3O87xsK7Nu8C/dyy/VACgAoVfvDxiMTNhD7dxXIlikBA0ggmPHgaS7qxB8nS3o06rCMgOqNADlBwgQdECgAAI0gKSOXvh1r3irfb+CZ8J3LQCElzJNACBQTy333ezCo88KO//IU09aQeRMIfYfPxSmEsN04tQVJhQX5x9L631p7pEzabQdudfeFf8AymbNgF84tLTWzgABSCaBNwf68eAJzIEwTWj5MAdsdi5Q2FSkJzCwP3o8uLJvnmZ9C/MRSfARdMAAUJDQkyf0/OKy+1H9fViCzyCjwlW9vx4KD0DgI5LwtoABgdInKc9f1vX+XdOevBNVxVoKX0wpzDQgGgBcYy4+w4SZYvT+nogTeeGn5y/1/hQ58SQAgNgYuTYQXYBtSo8dh1lP0L7gnh9ivX8JDLgnagWBJ+AQ4q5d+AzZ0vl94s4l+TUD7C7c7h1uyxQABBB+DQp6LYA6yxwABFhBKCCQNkAegECE8K+Zr7/Ig4DistW53BwwDghA4uHC2/wKAwRe8MnI/7qq9w+FkG4A4kfUFZ/yoUFgCKH3Zdf1/q0IjBoDGFYLUNmDtABpAMoLlwbghd+nK9ybyh66t1/eaFJpW+Tr/4At3nhOs8d5/QAMsSJoCQ8cPHhjNn/gx7N75l5o/6irbDj92g31ND9/Bhg3xO+iCI3sfuFdr/zJKx498sle+/5e1cwAU4MAQSeZHeBVMAU0Q8A124ul1M9yFcHOC85sBMHciHKejS+Enp84hTETMAlkLpTKCiaA9Wbj9FSRq+cnI4AwCABU2DAgQF6NEwAIhKuAoT3kX5tnDgIggYBOFfYg4OuL6l81DUh9NROAJiC/AHp7BL7U61v7TcTfyeb6Qzjp+bPFbtafu+7EiTuecyOLy+RVymO2Q0O20naKPjv3yDzwYKAne1/+9tT8pb1Tj9wdjhZThl3Kgylgxz4xOMj04OGHj3xwOyDA6+ExiEbAHoPQ6oQJo9FEqx2OKB9v5T07cQKAEmdA0DSAlh13jZYAr6UABCaQOgAl1QTomAeRF6hB+UiT4HswSO8ZBgTqnongo/4zFcgAoBf88JyoHTCQKF8C2f9pPQAAkQAAMJg28RMImBt2QQKBVPjXLE9/PltYuOLY/PM+dKTIfwaBPQ8AxbtHj0Kp9SVAII3ZBciHi5t3Z0CaAAuHLjlx7evrQIDae0chruUsxAajEADQsx6/jXtx7PmJb0fNQEJPnMIlXgEEARCm6fkMJHADplwJPwWltBkAkL9OINOyhrkeBgAGPVO9v55VAgEHAEqHpyCA8DMOgEOQ1wDI27HdsexMRdsGmqs83GEmwMC65XwBEHzR6QuzpfaVI/ECpMi8W1Dhe5lHAa/15X/1f62v+Nsj74kGAGDd9Kut33ji7R+dWli6/1WMCWAOBB+BbN1lGFMAU1vmAGMCgAAbikAr1qvwl0X4u6YVcBQZHNP+tG1BNdG1rcgm7Qhx+0t4c0AggBaQUtAGtBV5ABVAwAAHQKgCglDBtJTkepA6nmTd9JJ1D8OCQFqYF36p/10Tl7BdVxT+4h4G8xBS4wirBwGtCdAgJyCAFmbrOFjtYcO69okEEPAML/wk2alOoVyAwajVGv9CCIzga/8AQFVjVIFCVb7dHBff4cDizb92T+tbP8LCIQ8C2cTJYnAQLSBbXB8TEAjwegDBqh0NBo2fztV4nUdoJ4dn2owHgYeC/R9C+ZeAQGaAeNHzBw3A8kr4GTFnTMCPBVDUZiCABjAqEBiF8FNn3qVlYFkSftpQQIDwQ4nw55EbvxF+TAE0AE+p4JPme/+Ql6PYpz7vbzuTsLV2Q7u9BcKYgAHBwtWHfzj1EVg6Nb9hZsDvJgQI8IEAAWkEnEUoWo7jTmMr5gdgGgAcgZfQi9PjE0b4ITizCesgQKxpAcEkIAO9XAUBAhso9kX0mJB6zPxquG8v8D5cd7c3N7yzVF3+0GaxMV375f4E8SZhgS9D7+TjEP6gBbhIdnnytEH4rUntPJAH77nw7pBtBEeDNQDgG3yXhjU9yFFQ2fWtl8hHQFOE2cpsqLl8BLiQy7BeSTsNwxH+4izCoP7bDEDo3ew/GTUA7gMIPCHw0gw0GAgXCAQe7OTcwzDcWzd3vgEEIgrxfAnmVkFAKv+wwo9zlJ6l9RKDgCAslFoHzvB+hTsxZoCR9y7MY6q/EX5MAUwofXzOVPhR/7u2bdv5s5+/9qW/c+xMR//1qAYA1BK7nDMewKAgP758BFRlfAQ20wTYaRhNIBw6YqPLPfsDLtvc/QQ2pxF82VRQhH7NxgLE1fuTx4ODtIC89yfVtGRmCLzAEy4NnOX5iqmwcBl7/mI4ij8647Uxvqr3jMVUMkBgM+KgFZ5hB6UGktDDhxmo9OUXAk/XH0GAdLkEK2/6HjgfIfg6x3E8n50J2VPhVxn9OfsNpz4ZLm2WSNFnwkdSyJlUoLl3+BYQCHAk1P9ecN9LvKMQpXgNQKV6TUBnECpNHCCApvq5JqFdiAEBPr2V3EeAcEp57485IFMgzWHXHhRIZiAsEIKosOdR+EcNAgi+SGG0AEggkF9v5hTDAAAVEklEQVSVv7H/60gaQOBR/9/gD2DxmgpE8CEEPmzsGq8Jt05aWyU2BOM1cfAPgBml/U81GgCgFfYScc6AaQLPfv0HPnX/oft+2YNAunpQ3oIaE+DkIbQAnTuANoDwT9n8vUAALUBAQBiSRsCUodcC1Gyt8XXBEiAorRB+DwJ+LlzhIOyUs15WUQYBetC0Fy1l0EVU0dEEJOTiYTs0K9/3/Dp9WSaAihEfJPzKAy/eI2oBgEChBVgcgi/hhyPwvtdXWYWwx4g4cIv6v9CdO3bPXTd+LqSMwP6nnHyOKD6rYXunBQABNII73/+K373k/mveWucjIG9B+QkABpxBCAh4jUAgUOIGADMTZneaBgB5ICBOPgRqNQEBIKCw0gquKTWZBghOOj9eZK4JaG7d89IAHfdFINCCKIGALxLhR/DT3l8dfp3wczhrHRUmgcsQpgVdz67eXwCgJdVyAAIECIfZmjiesnJ+tjxz5Uj2AHA1azQA3xh7KSxz4KZXf+iPZmave1+dJiAtAC5NQMIPh6QJFO8/kbsIowkg6NIEMAEQ+krht9F/9f6bCr+WJJtP+5aFn0oWmgA2e7TjQ+URen1CRK4FeOFX76+ePxX+eNu2mBd++QKwU3ChCcRS1fsvu7rPGOog+EEDsPaPU7XhDuv9ea9ud/ZvtlWvATc1JsCAxtntSQEEbAXhgTf+/C1VIED9NS4gTUDv5A8i1QyBgADBxySQ4HuTQMIPh8S1roCVhgICrTrUMzMEHmrjOeg4YbSA1bxMLocidjkOYGBCTxgSDzsL5VGl7zDyH7v4Im8px5ldaExAQs+BIenJQX6xj3p/8/EPJC0g+FXE3v/0eLaQnTdy9Z/nNQCQN/ve/jZvQUDgVHvsK14TCDMDcS+BKk2AlwYIpAkICDQe4AWfvLqW0AsMwm7Alg4HCHSdMSsQfQa439AisAAEjAkIEBB8TIFxDQTm2Yb+RpDVo4vLBKgqRIJf5I2Z5P2HVsCn0DSSQpJ9E4tUhN9rAUoIpwbZhUCBePX+HKteED2/QDDXwrD9s/50NjYz/Q9MAwfT79ZbnepQ3LytQAMA22q23XNT8BHI3hwqdE1/5aYNIMBeAnbOQJUmgEnAbsOMBQgE0AIgjQWEcJwdkEZAnLf/uysm6AkFLQDhBwQgwoXqb0BAGEAABKQRAASVmoCEIi+q9C0hllCXErd4weIfgUDJtKgoZxAIbMhu7ynhFydPx+KlAYR7AAMEH24fhN+q1G/NZCe+NfOhkGXEXwNGM0b8pKa4HW0BOYbcefvts3P33v8fF/Qfvn6pdarFuoHpMeswJk8VLsOqSHAd1kXkDBCKSiDASr8a6kyafWogACgUvT95vQYgICBewi9AIA7yGgBgwLV4nsN9AwpoDBXgkG7mWdyFp51Nvwk0ivgYkPCn8bpmYRVrK+ACgNKAIGBnQIfUysEo3GuCzpgAwt8iTyQAoCAJvrglLBsAdO0UoPnD+eIfM/cA/OKWEQTqf9URFN4UcfZawHsL4jL8aOvQV6f7s328BXEUwlvQawKnO/8X9hKghmgBpXMH4uBgYQq4acL0jRB6hB8QkGngxwNCfgGBNwcEAmSQaYCw66MHFaCAoPsPGSqEn2h28hH5MMJvvoz5ZqQmkLLX4QrrPs+lDUj44SXBV+Yo/FziaKQP177n53oDWY9v5lggOJ++jae057Neb/5PQ/yInH/8o+MTfVQT3qstUMwMmK3ItmJ1IMD7TXTPD6+p2QGZA35wUOYAXoMigYKuJfQCAXhJCyCjBH/S/m6EJfDSAOAyA8gvoQcMEPLAKYfEISkIvuqN0AMKunZlIPhjiIEDDZccgowFAAJ8gvAj3KYFQHB98pjyd3GQqEX73p9cXuBR/dG+lnJnrGCK2D4Ep9qTx2b/bvbTZOf3hY+SGgAYZWvugrIEAuwWw7qBlf559g+3/6jTBLjWmIDXBAQCjAkABBoUJD8EEHizII/Nv2UGiBNbaALKyKakkADBb1KqAcGQ7np2L/R0sFuhMLAeb+rU3WyC74/q0hHeyXOww8OgICAQAKEKMHxlkwL8ZfDus7xB4E0EJfgAAmFMkTUbm7Hef2z2wFuk3fkiRhVuAGBULbmbyonegmHRyA3TNzAzQPU8CGhvQa8JkAcQQPgxCRgY5OOBAA0AEPBaQSi7YiBwgyZARrQACOEnLC0gj934LblFtvQhV5A1JfrbiNMnZLIXt6gABsqH8OoT4+L5ClnfgY+yk1srHBUnDUDXcNZVeI9HthNXnfH7V1jefRJ4ccogbKp/1p8Jvf/Uo+f/JdE70ftTbvw1CDa0X1qAHkOaAOsG5uaf86IqEOB9pQno3TVdyDVgoBkCmQNwhL9tK9k8CLDTENSP/gHiIdJ/SQtA+BUW9/kURmggbXFUcCJJlLCLEy8izlEAgaqe2/K0GHA0ZYmTlgQG4q6I2qlB8vQdyvhDP5NqFE4+0gC4F8EPZJoGjkJLtu6S3j8uAouJI2d66sgLbgrcBS0QNYG533rxZzwIULN0BSFxqfBLCwAEWEMgTQDuhZ+w324MMGATUoGAOM8oyIQ+7FIsToK88lJOGhVA+OG2e1GQ/cABgZiehwZ/03PTy6cfHdTpQSAeu1ZZIGaA9xPwwu+1AG6m9xf5bcYLobdE1H47fyFfIDSVda+c//z0Te/68z4j/ztg+6s6DQCoJfYh95oAIDA9e9PrvKNQeGWbHajTArSSUD4C4mgBAgMPBKwi1J6DCD2gAPdgYB4GsaWnbEzNet3xyZwj9GyCCU8X5ggQmDUjzIh62O/MOCfqQNIM6kbztbW3eH7X+rfv7T0IWLhftb2Z7gQEvPAT74Vc+QbxYPOjmQACBk5Lk9ny8nlvCrfswMi/r0qNPuSzNOH90AJaPPT42//2tUun7ny3XzwU/AR4SfMVSMkvIvJThZI3n58diKUJKF7C77nScjBYzjUBi+zY/HzXHHrgG0jz6HAdpSW+IXNFxAA/hg25vRkgLUCgkGYOOwcnkSUAiL2/Fj+V0uw+ev1AAKCZUbat+vJlF4x80U98yAbWaAAbmmR/RsiWPPjGn74tXTcQ/AR47bizkFrArx9IhR9NPCU0AGkEAAEk9V8coV8PkwNNYCzXAuzcgUrhJ5ufR5cWoN5faVVuuNyL8LPnAR9oLQKMeB67/i1tQEAg4Vf8es48hOmvTyrgyotZwAeB95+QjvBj1kzaAOyR/vFvXPnWED2iJb+qQhVvNICqVtnHccGmtEFC22X4vYunvvYaNIH5sV57sbWQDdIE1CTadVjXqSaAFgAQwFNa1wLGDATMa3CSEXcWBsksyMOcaQgoZPHMwrSccK3VdpWJLhL1GqGE19GYSS9gAK8iAQEDhRorWDMwwX8gFfjUfAmDFbFQHZQqjrkSVipi+9tOTCb8a9cuvyrY/nG5d1V1RhnXAMAoW3OvlGWLh/q2fuBoa/LO2d7aDwwDAhJ8xgUURvg1Npe+esfGCVqTFWqCZUTwBQDipfsRfE4sLgAANTl68RU83lEnvIMEnlt1XyymuK4DAfIBBIWfgNURSrUOACBsaZYn56qBwp6XhR9np6Ur5ka2379/0qBwYwIMap19mobwM0DoFw+dXGv3ZmzPuZI54EwCBF+DgjTL+JrtL2D/dXgg260WQvAhhB9NoL9S0fPa8laoUvhJiMeVB86UWEnodU1GI6nxcP8hTSo/4ZR0nwSea4GC0jbcE4Xex2vQkcVIfLTFWJHHyvXEMWbhYxpOGPVH9R/LFg6NH/vml5/3CyHrWVD9VaVGA1BLPMm4TAEtHkITmGw91h0bP9kpmQO0ixscnJqwzUTjacSFJgAITOc2PwDQtWlCDwQCAUCh1bIlw31bMmw8m7AdhTEFYrj6J4gAAkOhqMCT0n2y9xWp68AxKzbxphUIeK6y4JgBgTwYoJ040i5ERG3YpNReILglG8f70YR/be1w/zu97nOvvvkd/6nBWlfajgYbANjR5t3dhevPVgUC1HwYIAAQVseW1jUBbjQw8ECA4AMCnnsgKACBeyE6+TqqBQCnGUjY0RyKsBXoVxea4G0KBtRBGoLqIwefUseeAEDIm5g/hc8APb8JPiZKFP6zbffrVeANAPjWeBKGPQhc+8DUpxYWv/58aQI0R3/8iXKrVGgDHgQEBp2pftZdtlF9457adgxRz04igYtKAGBaQYaJMAgEuBEg0NZaIbOEsOZGCb8eqmvPlSYuLUADfam9H/Ilgu7OVVAxOed9rdKYDNFsoudfu2bx1umn3/YW/Q7le3b+qgGAnW/jXf8EmQNUdOGPP/IvAgH2E2CGgHgPBHJlP922HYSjSQAvESaBjQukAEAegYDyezBQXMFDuRJuYvUc4mI4gIFdwgty6UVcDHih95qAD/t7NIsA3wACmwGAgG6j8H/1uw989Gm33P4y3/7+sWcj3AwCno1W3uXPCKvNzOWUas799kt/FD+B8fb3dthPYG11PsyNtVYPFG+hxWxE9JbXpU5jAyFjHBQkjCbgCQ0AQvBTMPD5MoSf8QbmyIOwVwi/v2E1AkWQSeX1GWIYQYc898Kv+DxX/i0tQIN+4f4o/CUMoGz7UEb42CUDoStWH3p+y0vPv/LNZ34O4c8LP3ff5V/m3NWjefIuaIF+BAEAAY/BzvL9717oPpx5k4BqVmkDxEsjIOwpNQfaXTuivGNHlXeMd3Me8mvjEHjLhL5vfgFwiN18AYNU08hTq7/BJoRzHaNq8hkgFUIfQcTn9OMAOB3JK3HDnL+/ycJyYQa8MFdshmBt4rIg/LNLd79AwAtP7jxrlw0AnLWm3jsPkj268I5/emG2ePTTAgHegFkCuAcBrmUWEK4DgvFxjiezGQIbFyhAwMAA+agEglCwPc4DAXGQtvfOr4b7HgoQAACrUJh6NKZxAK4l+DwN4ccTEXfklEqCT2Ii/M+5+8fkmbmTC33SalVdNyZAVas8yeP4U4aZAVtAdPK6UzfMTV19QhuLeJMgNQvUbBO9fFcbbx6QhvADAhtMArQAgECkDUO4Nl+CQhtQOpz5dn107dN9WBqAtAG4PkU+3/O7sPcJkMsx98gdGZ5+8GMIPT6Cbx5+LRvs8z1/XOJ7roWf12g0AFqhocoWkCYAGFx9Yvqd7eWHXyNtQJoAN3ptwGsCpLWnVsM4AdyTtAE4FEyCqA2U/H50E67FgEGFi7GyFBztAHCQluDDRSYLSCMo4pzgCzR8Wsk7MU8Ii5f8wSOFvbHe65Nz6VvPej9btxNWuxI+19QAwLn+BXb58/2fNR0XoOoeCLgWGAwCgvHujO25sRi0gULwuVkkDRxeRcOAgO7zYFAHBMpbII8DgpBWBq8ieykgxMgFnyR6/d6jl/VWHj38gUL4Wd9/Dm3+UpXtogGAtEWa68oWEBA88JF3PHX+3ivfk6088nxpA9zggaAOBMjnNYICCAwQsqleYSKQr0SDgGBYrYACBQYKlx6C0At5Sgl2MQAAoltzMVhpufsnL+h1L5xsIfzLj17zBlZgqv3Sks/1dQMA5/oX2EPPxxTQ6TQnv3DDn3iTgNfwIDA10TWX4U42PpM4Elm+SVtFtGILCQADQACSRhAu6r5GBQQqX4OL8CqSUxJpPpzm1UyFxSP8q62r+qsPHXrooe/77589F+69afUGXTcAMKh1mrQNLeB7sjBLsPrQ7dnqyUvrtAEKAAy6Y6eyztps4Cq0CghIOyMwoIDNxguqBF/Tjtw/DPmBSnsegs9tCD8q/72XLv2mwHI3DPbVvVIDAHUt08QPbAEBAVzaADd0+sd7y/3F4P/rNQLSMA2mW2UQIL4OCEgLZOZBLZlW0F+5qNdqPdTO5mygcIGBwtrc1Qn+1CKXI3VZLrYzV55E8IkuVH58Kmw7r90s/NS3AQBaoaFttYBAgJvTsYGD7dMBCGYnu52V3mJRvkwDOOQ1AwEBvCCEfznOVitcBQjefFfY86JAF5DjUYzyvgg+nI4N9vsXlRApqPyPXP6vD1599JfCVuxnaTMP9ybbDjYAsO2ma25UC3ggCGZB9/Hf1yChgIC8VWBAvEBAYXglGJAg8mAAQFSBAnkFArrPuLwQEWzNQvi4qnu4vVLwzdbPxi96OZuuhjx7SPipbwMAtEJDZ9wC3o2Y8BMzP/jrne4Tv8f4AIXLNAAEuE61AuJSGps+HQYLSxpBmolrgYEP1wFC1f11cQYs/ckLS709WTXI1+0ceOuBZ3/xPaj5gGBmG3nspim+utfy8Q0A+NZowmfcAl4QCiDoL9+MRkDhAoKp1kyrM3Ey6vbrgCDToKoiAMIaB2YY3zIJJFJeU5AEf+3hrD12yE4zPD6ftQ9fGEb3EfxvX/rYBxnk43avAdUUt2ujGwDYtT/N3q5YKhTeNNCbDQKDyfZM1ho7qay1/IxAIZaKsHcfO9nunDffk8DDu6fne0Hoj0/afOb8CS/4QePZA4N8tQ0XExoA2KyFmvQzagGvEVAQg4Wz3z7yunZ35WdkHjCFyFgB6cwgpNoB8YBBf21+KFAg/2ZEWfTsCLrPmwq9nYH2jaxz8A9nF/79s1LvU3Dz9++1cAMAe+0X26P1TYGA61N3PPcFvd4TP+fBgNdDM/CvCSho7MDHDwoLMNI8XugRdqV3W5fnQGA9PULfbU197OGr7v4Eo/rKs58EX+/UAIBaouFnpQUCENiT/Py4wKDbW7muw3hB7/RTpB2oUikoKB7OWALCrDEFhT33+QthV6QJfa8z+Yl+NnlXldCTzddXt+0H3gDAfvgV9+g7pGCAXY2affyv3nfowPGrngEgtLKVG9r9/vVVoLDl16Z3h6yHN8+hryLwi1d947OX3r3wNan3JKtee3FUn/pvhRoA2EprNXl3rAWqhC4MtNkTBQqm1l88f+zGwwADFQEcfIUACgRbcQg44U578mvwB6/80tevuWj5eFVvXvV87tnv1ADAfv+F9+j7FQJJ/TeZX/dAQXZpEmk8adBWys7v2L/fDQDs3992371ZSXC383abAMl2imzuaVqgaYFz0QJ2vuFmj5UGsFm+Jr1pgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhZoWqBpgaYFmhbY9S3w/30FRG3JAQVvAAAAAElFTkSuQmCC"/>
|
|
563
563
|
</defs>
|
|
564
|
-
</svg>`),
|
|
565
|
-
<div>${
|
|
564
|
+
</svg>`),mn={fontSize:"10px",paddingTop:"4px"},bn={color:"#4287f5"},vn="currentConsentId",yn=(e,t,i,n)=>"avb"!==e||localStorage.getItem(null!=i?i:"")?"mill-creek"===e?R`<div class="legal-confirmation-inner-container">
|
|
565
|
+
<div>${gn()}</div>
|
|
566
566
|
<div>
|
|
567
567
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
568
568
|
<p>
|
|
@@ -577,7 +577,7 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
577
577
|
class="checkbox"
|
|
578
578
|
@click=${()=>{n(!0)}}
|
|
579
579
|
>
|
|
580
|
-
${
|
|
580
|
+
${fn}
|
|
581
581
|
</div>
|
|
582
582
|
<p>
|
|
583
583
|
I agree to the
|
|
@@ -594,7 +594,7 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
594
594
|
</div>
|
|
595
595
|
</div>
|
|
596
596
|
</div>`:R` <div class="legal-confirmation-inner-container">
|
|
597
|
-
<div>${
|
|
597
|
+
<div>${gn()}</div>
|
|
598
598
|
<div>
|
|
599
599
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
600
600
|
<p>
|
|
@@ -620,7 +620,7 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
620
620
|
</button>
|
|
621
621
|
</div>`:R`
|
|
622
622
|
<div class="legal-confirmation-inner-container">
|
|
623
|
-
<div>${
|
|
623
|
+
<div>${gn()}</div>
|
|
624
624
|
<div>
|
|
625
625
|
<span style="font-weight: 600">Confirm to continue</span>
|
|
626
626
|
<p>
|
|
@@ -652,12 +652,12 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
652
652
|
|
|
653
653
|
<button
|
|
654
654
|
class="agreeButton"
|
|
655
|
-
@click=${()=>{n(!0);const e={consentGiven:!0,timestamp:(new Date).getTime(),consentId:
|
|
655
|
+
@click=${()=>{n(!0);const e={consentGiven:!0,timestamp:(new Date).getTime(),consentId:vn};localStorage.setItem(null!=i?i:"",JSON.stringify(e))}}
|
|
656
656
|
>
|
|
657
657
|
I agree
|
|
658
658
|
</button>
|
|
659
659
|
</div>
|
|
660
|
-
`,
|
|
660
|
+
`,wn=({orgSlug:e,buildingState:t,type:i})=>"utilities"===i?R` <p class="utilities-disclaimer-inner">
|
|
661
661
|
By interacting with this system, you consent to
|
|
662
662
|
<a
|
|
663
663
|
href="http://bit.ly/me_privacy_policy"
|
|
@@ -717,7 +717,7 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
717
717
|
conversation recorded and used by a third party.
|
|
718
718
|
</p>
|
|
719
719
|
</li>
|
|
720
|
-
`:R``,
|
|
720
|
+
`:R``,Cn=({phoneNumberInput:e,emailInput:t,orgLegalName:i,orgSlug:n})=>e&&"greystar"===n?R`<div style=${Ne(mn)}>
|
|
721
721
|
By providing your phone number and clicking send, you consent to receive
|
|
722
722
|
recurring marketing calls and voice and text messages from Greystar or on
|
|
723
723
|
its behalf at this number using artificial voice and/or an autodialer.
|
|
@@ -726,7 +726,7 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
726
726
|
not required to provide your phone number or consent to these terms to
|
|
727
727
|
lease at this property. Msg & Data rates may apply. You consent to
|
|
728
728
|
<a
|
|
729
|
-
style=${Ne(
|
|
729
|
+
style=${Ne(bn)}
|
|
730
730
|
href="https://www.greystar.com/privacy"
|
|
731
731
|
target="_blank"
|
|
732
732
|
rel="noopener noreferrer"
|
|
@@ -734,13 +734,13 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
734
734
|
>
|
|
735
735
|
and
|
|
736
736
|
<a
|
|
737
|
-
style=${Ne(
|
|
737
|
+
style=${Ne(bn)}
|
|
738
738
|
href="http://bit.ly/me_privacy_policy"
|
|
739
739
|
target="_blank"
|
|
740
740
|
rel="noopener noreferrer"
|
|
741
741
|
>EliseAI’s Privacy Policy</a
|
|
742
742
|
>.
|
|
743
|
-
</div>`:e?R` <div style=${Ne(
|
|
743
|
+
</div>`:e?R` <div style=${Ne(mn)}>
|
|
744
744
|
By providing your number and clicking send, you consent to receive
|
|
745
745
|
recurring marketing calls and voice and text messages from or on behalf of
|
|
746
746
|
${i} at this number using artificial voice or an autodialer
|
|
@@ -748,24 +748,24 @@ var e={9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),o=i(6026),
|
|
|
748
748
|
required to lease at this property. Msg & Data rates may apply. You
|
|
749
749
|
consent to this
|
|
750
750
|
<a
|
|
751
|
-
style=${Ne(
|
|
751
|
+
style=${Ne(bn)}
|
|
752
752
|
href="http://bit.ly/me_privacy_policy"
|
|
753
753
|
target="_blank"
|
|
754
754
|
rel="noopener noreferrer"
|
|
755
755
|
>privacy policy</a
|
|
756
756
|
>, including having your number and communications recorded and used by a
|
|
757
757
|
third party.
|
|
758
|
-
</div>`:t?R` <div style=${Ne(
|
|
758
|
+
</div>`:t?R` <div style=${Ne(mn)}>
|
|
759
759
|
By entering your email and clicking submit, you consent to this
|
|
760
760
|
<a
|
|
761
|
-
style=${Ne(
|
|
761
|
+
style=${Ne(bn)}
|
|
762
762
|
href="http://bit.ly/me_privacy_policy"
|
|
763
763
|
target="_blank"
|
|
764
764
|
rel="noopener noreferrer"
|
|
765
765
|
>privacy policy</a
|
|
766
766
|
>, including having your email address and communications collected and
|
|
767
767
|
recorded and used by a third party.
|
|
768
|
-
</div>`:R``,
|
|
768
|
+
</div>`:R``,xn=l`
|
|
769
769
|
* {
|
|
770
770
|
box-sizing: border-box;
|
|
771
771
|
}
|
|
@@ -1179,7 +1179,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
1179
1179
|
gap: 12px;
|
|
1180
1180
|
align-items: center;
|
|
1181
1181
|
}
|
|
1182
|
-
`;class xn{constructor(e,t,i,n){this.org=e,this.building=t,this.chatId=i,this.incomingProcessedLeadSource=n,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:An(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const An=()=>{var e,t,i,n,o,r;try{const n=new URL(window.location.href).searchParams,o=null!==(i=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==i?i:null,r=n.get("switch_cls[id]"),a=n.get("ilm");return{entrataCampaignSource:r,realpageCampaignSource:a,utmCampaignSource:n.get("utm_source"),yardiCampaignSource:o,bozzutoAdSource:wi("bozzuto_ad_source")}}catch(e){console.warn(`Couldnt get campaign sources from url, error: ${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 i=t.contentWindow.URL;if(!i)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const a=new i(window.location.href).searchParams,s=null!==(r=null===(o=null===(n=window.RCTPCampaign)||void 0===n?void 0:n.CampaignDetails)||void 0===o?void 0:o.Source)&&void 0!==r?r:null;return{entrataCampaignSource:a.get("switch_cls[id]"),realpageCampaignSource:a.get("ilm"),utmCampaignSource:a.get("utm_source"),yardiCampaignSource:s,bozzutoAdSource:wi("bozzuto_ad_source")}}};var Sn;!function(e){e.error="error",e.info="info",e.warn="warn"}(Sn||(Sn={}));const kn=async({logType:e,buildingSlug:i,orgSlug:n,logTitle:o,logData:r})=>{await t().post("https://app.meetelise.com/platformApi/webchat/logging",{...r},{headers:{"Content-Type":"application/json","building-slug":null!=i?i:"","org-slug":null!=n?n:"","log-type":null!=e?e:Sn.error,"log-title":o.toUpperCase().replace(/\s/g,"_")}})},Tn=async({params:e,sampleRate:i})=>{try{if(Math.random()>=i)return;await t().post("https://app.meetelise.com/platformApi/webchat/log/signal",{...e,website_origin:window.location.origin,website_search:window.location.search})}catch(e){console.warn(e)}};function _n(){return En()?function(){const e=window.location.search,t={};return e.split("?").slice(1).join("&").split("&").forEach((e=>{const[i,n]=e.split("=");i&&n&&(t[decodeURIComponent(i)]=decodeURIComponent(n))})),t}():function(){const e=new URLSearchParams(window.location.search),t=e.has("utm_content"),i=e.has("utm_source");if(t&&!i){const t=e.get("utm_content");e.delete("utm_content"),e.set("utm_source",t)}return Object.fromEntries(e)}()}const En=()=>(window.location.search.match(/\?/g)||[]).length>1;var On=i(8367),Pn=i.n(On);function Mn(e){return"avb"===e?"AVB Company Website":"windsor"===e?"Windsorcommunities.com":"property-website"}const Nn=async(e,i=!1)=>{const n=`https://app.meetelise.com/eliseCrmApi/building/${e}/scheduling_status?observe_dynamic_scheduling=${i}`;try{return(await t().get(n)).data.is_enabled}catch(e){return!1}};var In,Dn,Un;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(In||(In={})),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"}(Dn||(Dn={})),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"}(Un||(Un={}));const Ln=(e,t)=>"self"===e?!["SCHEDULED_BY_ME_MANAGED_BY_ME","SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE","SCHEDULED_BY_ME_MANAGED_BY_CLIENT"].includes(t):"virtual"===e&&!["SCHEDULED_BY_ME_MANAGED_BY_CLIENT"].includes(t);async function Rn(e,i){var n;const o=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${i}/v2`,r=(await t().get(o)).data;try{r.welcomeMessage=Bn(null!==(n=r.welcomeMessage)&&void 0!==n?n:"",r.userFirstName)}catch(e){console.error(e)}return r}const Bn=(e,t)=>e.replace(/elise/gi,t);var jn=i(6420),Hn=i(5616);function Fn(e,t,i){var n=function(e,t,i){if(i&&!i.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(i?[i.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,i.timeZone,i.locale);return n.formatToParts?function(e,t){for(var i=e.formatToParts(t),n=i.length-1;n>=0;--n)if("timeZoneName"===i[n].type)return i[n].value}(n,t):function(e,t){var i=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(i);return n?n[0].substr(1):""}(n,t)}var $n={year:0,month:1,day:2,hour:3,minute:4,second:5},zn={};function Qn(e,t,i,n,o,r,a){var s=new Date(0);return s.setUTCFullYear(e,t,i),s.setUTCHours(n,o,r,a),s}var Gn=36e5,qn={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Wn(e,t,i){var n,o,r;if(!e)return 0;if(n=qn.timezoneZ.exec(e))return 0;if(n=qn.timezoneHH.exec(e))return Yn(r=parseInt(n[1],10))?-r*Gn:NaN;if(n=qn.timezoneHHMM.exec(e)){r=parseInt(n[2],10);var a=parseInt(n[3],10);return Yn(r,a)?(o=Math.abs(r)*Gn+6e4*a,"+"===n[1]?-o:o):NaN}if(function(e){if(Kn[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Kn[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=i?t:function(e){return Qn(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=Vn(s,e),u=i?l:function(e,t,i){var n=e.getTime()-t,o=Vn(new Date(n),i);if(t===o)return t;n-=o-t;var r=Vn(new Date(n),i);return o===r?o:Math.max(o,r)}(t,l,e);return-u}return NaN}function Vn(e,t){var i=function(e,t){var i=function(e){if(!zn[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")),i="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;zn[e]=i?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 zn[e]}(t);return i.formatToParts?function(e,t){try{for(var i=e.formatToParts(t),n=[],o=0;o<i.length;o++){var r=$n[i[o].type];r>=0&&(n[r]=parseInt(i[o].value,10))}return n}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(i,e):function(e,t){var i=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[n[3],n[1],n[2],n[4],n[5],n[6]]}(i,e)}(e,t),n=Qn(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime(),o=e.getTime(),r=o%1e3;return n-(o-(r>=0?r:1e3+r))}function Yn(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var Kn={},Xn={X:function(e,t,i,n){var o=Zn(n.timeZone,e);if(0===o)return"Z";switch(t){case"X":return to(o);case"XXXX":case"XX":return eo(o);default:return eo(o,":")}},x:function(e,t,i,n){var o=Zn(n.timeZone,e);switch(t){case"x":return to(o);case"xxxx":case"xx":return eo(o);default:return eo(o,":")}},O:function(e,t,i,n){var o=Zn(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var i=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),r=n%60;if(0===r)return i+String(o);return i+String(o)+":"+Jn(r,2)}(o);default:return"GMT"+eo(o,":")}},z:function(e,t,i,n){switch(t){case"z":case"zz":case"zzz":return Fn("short",e,n);default:return Fn("long",e,n)}}};function Zn(e,t){var i=e?Wn(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(i))throw new RangeError("Invalid time zone specified: "+e);return i}function Jn(e,t){for(var i=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return i+n}function eo(e,t){var i=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+Jn(Math.floor(o/60),2)+i+Jn(Math.floor(o%60),2)}function to(e,t){return e%60==0?(e>0?"-":"+")+Jn(Math.abs(e)/60,2):eo(e,t)}const io=Xn;var no=i(2084),oo=i(3561),ro=36e5,ao={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 so(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 i=t||{},n=null==i.additionalDigits?2:no(i.additionalDigits);if(2!==n&&1!==n&&0!==n)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 o=lo(e),r=uo(o.date,n),a=r.year,s=r.restDateString,l=co(s,a);if(isNaN(l))return new Date(NaN);if(l){var u,c=l.getTime(),d=0;if(o.time&&(d=ho(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||i.timeZone){if(u=Wn(o.timeZone||i.timeZone,new Date(c+d)),isNaN(u))return new Date(NaN)}else u=oo(new Date(c+d)),u=oo(new Date(c+d+u));return new Date(c+d+u)}return new Date(NaN)}function lo(e){var t,i={},n=ao.dateTimePattern.exec(e);if(n?(i.date=n[1],t=n[3]):(n=ao.datePattern.exec(e))?(i.date=n[1],t=n[2]):(i.date=null,t=e),t){var o=ao.timeZone.exec(t);o?(i.time=t.replace(o[1],""),i.timeZone=o[1].trim()):i.time=t}return i}function uo(e,t){var i,n=ao.YYY[t],o=ao.YYYYY[t];if(i=ao.YYYY.exec(e)||o.exec(e)){var r=i[1];return{year:parseInt(r,10),restDateString:e.slice(r.length)}}if(i=ao.YY.exec(e)||n.exec(e)){var a=i[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}function co(e,t){if(null===t)return null;var i,n,o,r;if(0===e.length)return(n=new Date(0)).setUTCFullYear(t),n;if(i=ao.MM.exec(e))return n=new Date(0),bo(t,o=parseInt(i[1],10)-1)?(n.setUTCFullYear(t,o),n):new Date(NaN);if(i=ao.DDD.exec(e)){n=new Date(0);var a=parseInt(i[1],10);return function(e,t){if(t<1)return!1;var i=mo(e);return!(i&&t>366)&&!(!i&&t>365)}(t,a)?(n.setUTCFullYear(t,0,a),n):new Date(NaN)}if(i=ao.MMDD.exec(e)){n=new Date(0),o=parseInt(i[1],10)-1;var s=parseInt(i[2],10);return bo(t,o,s)?(n.setUTCFullYear(t,o,s),n):new Date(NaN)}if(i=ao.Www.exec(e))return vo(0,r=parseInt(i[1],10)-1)?po(t,r):new Date(NaN);if(i=ao.WwwD.exec(e)){r=parseInt(i[1],10)-1;var l=parseInt(i[2],10)-1;return vo(0,r,l)?po(t,r,l):new Date(NaN)}return null}function ho(e){var t,i,n;if(t=ao.HH.exec(e))return yo(i=parseFloat(t[1].replace(",",".")))?i%24*ro:NaN;if(t=ao.HHMM.exec(e))return yo(i=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")))?i%24*ro+6e4*n:NaN;if(t=ao.HHMMSS.exec(e)){i=parseInt(t[1],10),n=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return yo(i,n,o)?i%24*ro+6e4*n+1e3*o:NaN}return null}function po(e,t,i){t=t||0,i=i||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var o=7*t+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+o),n}var fo=[31,28,31,30,31,30,31,31,30,31,30,31],go=[31,29,31,30,31,30,31,31,30,31,30,31];function mo(e){return e%400==0||e%4==0&&e%100!=0}function bo(e,t,i){if(t<0||t>11)return!1;if(null!=i){if(i<1)return!1;var n=mo(e);if(n&&i>go[t])return!1;if(!n&&i>fo[t])return!1}return!0}function vo(e,t,i){return!(t<0||t>52||null!=i&&(i<0||i>6))}function yo(e,t,i){return!(null!=e&&(e<0||e>=25)||null!=t&&(t<0||t>=60)||null!=i&&(i<0||i>=60))}var wo=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Co(e,t,i,n){var o=jn(n);return o.timeZone=t,o.originalDate=e,function(e,t,i){var n=String(t),o=i||{},r=n.match(wo);if(r){var a=so(o.originalDate||e,o);n=r.reduce((function(e,t){if("'"===t[0])return e;var i=e.indexOf(t),n="'"===e[i-1],r=e.replace(t,"'"+io[t[0]](a,t,null,o)+"'");return n?r.substring(0,i-1)+r.substring(i+1):r}),n)}return Hn(e,n,o)}(function(e,t,i){var n=so(e,void 0),o=Wn(t,n,!0),r=new Date(n.getTime()-o),a=new Date(0);return a.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),a.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),a}(e,t),i,o)}var xo=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Ao=class extends oe{constructor(){super(...arguments),this.tourTypeOptions=[],this.chatId="",this.buildingId=0,this.buildingSlug="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.selfGuidedTourEnabled=!1,this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.orgSlug="",this.hasDynamicSchedulingEnabled=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingName="",this.tourType=null,this.shouldShowTourType={[So.Guided]:!0,[So.Self]:!0,[So.Virtual]:!0},this.email="",this.phoneNumber="",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.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=Ie,this.backgroundColor=De,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.errorGettingAvailabilities=!1,this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([Nn(this.buildingId,this.hasDynamicSchedulingEnabled),Xi()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await Yi(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),kn({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:Sn.info,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});const i=Object.values(t).every((e=>!1===e)),n=!this.sgtUrl&&!this.escortedToursLink&&!this.virtualToursLink;if(i&&n)return this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,void kn({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:Sn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[So.Guided]:this.tourTypeOptions.map((e=>e.value)).includes("WITH_AGENT")&&(t[So.Guided]||!!this.escortedToursLink),[So.Self]:this.tourTypeOptions.map((e=>e.value)).includes("SELF_GUIDED")&&(t[So.Self]||!!this.sgtUrl),[So.Virtual]:this.tourTypeOptions.map((e=>e.value)).includes("VIRTUAL_SHOWING")&&(t[So.Virtual]||!!this.virtualToursLink)};const o=1===Object.values(this.shouldShowTourType).reduce(((e,t)=>!0===t?e+1:e),0);if(this._setDefaultSelectedDateAndTimes(),o&&(this.tourType=Object.keys(this.shouldShowTourType).find((e=>this.shouldShowTourType[e]))),null===this.tourType)return void(this.waitingForAvailabilities=!1);this.availabilitiesGroupedByDay=await Zi(ko[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,kn({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:Sn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var i,n,o;const r=await Yi(this.buildingId),a=null!=e?e:this._getHighestRankedTourType(r),s=a?null===(o=null===(n=null===(i=r.availability)||void 0===i?void 0:i[a])||void 0===n?void 0:n.availableTourStartTimes)||void 0===o?void 0:o.filter((e=>!t||Yt("string"==typeof e?Ii(e):e,t))):[],l=null==s?void 0:s[0];a&&l&&a!==Ei.Unknown&&a!==Ei.MediaTour&&(this.selectedDate=Vt("string"==typeof l?Ii(l):l),this.tourType=To[a],this.selectedTime="string"==typeof l?Ji(l):(e=>({datetime:$t(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:$t(e,"xxx")}))(l))},this._getHighestRankedTourType=e=>{var t;const i=(null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]).map((t=>{var i,n;return{tourType:t,availabilities:null===(n=null===(i=e.availability)||void 0===i?void 0:i[t])||void 0===n?void 0:n.availableTourStartTimes}})).filter((e=>{if(e.tourType===Ei.Unknown||e.tourType===Ei.MediaTour)return!1;const t=To[e.tourType],i=this._getTourTypeOffered(t);return!!i&&!Ln(t,i)&&e.availabilities&&e.availabilities.length>0})),n=i[0];return n?n.tourType:null},this._getTourTypeOffered=e=>e===So.Guided?this.escortedToursTypeOffered:e===So.Self?this.selfGuidedToursTypeOffered:e===So.Virtual?this.virtualToursTypeOffered:null,this.firstUpdated=async()=>{await this._setAvailabilities()},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await Zi(ko[this.tourType]))},this.handlePhoneKeydown=e=>{var t;if(!(e instanceof KeyboardEvent&&e.target instanceof HTMLInputElement&&null!==e.target.selectionStart))return;const i=e.target.selectionStart;if(1!==e.key.length||Pe(e)){if("Backspace"===e.key){if(Pe(e))return;if(this.phoneInput.selectionEnd&&this.phoneInput.selectionStart&&this.phoneInput.selectionEnd-this.phoneInput.selectionStart>0)return;const t=this.phoneNumber.length,n=this.phoneNumber.slice(0,i).replace(/\D/g,""),o=this.phoneNumber.slice(i).replace(/\D/g,""),r=`${n.slice(0,-1)}${o}`;this.phoneNumber=_e(r),this.phoneInput.value=this.phoneNumber;const a=i-(t-this.phoneNumber.length);return this.phoneInput.setSelectionRange(a,a),e.preventDefault(),void e.stopPropagation()}if(!["ArrowLeft","ArrowRight"].includes(e.key)||Pe(e)||e.shiftKey)return;if("ArrowLeft"===e.key){const e=((null===(t=this.phoneNumber.slice(0,i).split(/\d+/).at(-1))||void 0===t?void 0:t.length)||0)+1,n=i-e>-1?i-e:0;this.phoneInput.setSelectionRange(n,n)}if("ArrowRight"===e.key){const e=(this.phoneNumber.slice(i).split(/\d+/)[0].length||0)+1,t=i+e<this.phoneNumber.length?i+e:this.phoneNumber.length;this.phoneInput.setSelectionRange(t,t)}e.preventDefault(),e.stopPropagation()}else{e.preventDefault(),e.stopPropagation();const t=this.phoneNumber.slice(0,i)+e.key+this.phoneNumber.slice(i);this.phoneNumber=_e(t.replace(/\D/g,"")),this.phoneInput.value=this.phoneNumber}},this.handlePhoneKeyup=e=>{var t;if(!e.key)return;if(e.key.includes("Arrow")||["Meta","Shift","Control","Alt"].includes(e.key))return;const i=this.phoneInput.selectionStart,n=i?this.phoneInput.value.slice(i).replace(/\D/g,""):"";this.phoneNumber=_e(this.phoneInput.value);let o=0,r=n.length;for(;r;)(null===(t=this.phoneNumber.at(o))||void 0===t?void 0:t.match(/\d/))&&r--,o++;const a=this.phoneInput.value.length-o+1;this.phoneInput.setSelectionRange(a,a)},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,i;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&(null===(i=this.emailInput)||void 0===i?void 0:i.value.includes("@"))&&!!this.phoneNumber&&14===this.phoneNumber.length&&Ci(this.phoneNumber)}},this.formIsValidForSubmission=()=>this.validators.tourType()&&this.validators.dateAndTime()&&this.validators.leadInfo(),this.timeStringToHoursAndMinutes=e=>{const[t,i]=e.split(/\D/g);return[parseInt(t)+(e.toLowerCase().includes("pm")?12:0),parseInt(i)]},this.submit=async()=>{var e,i,n,o,r,a,s,l,u,c,d,h,p,f,g,m,b,v,y,w;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const C=new URLSearchParams(window.location.search);let x=null;x=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const A=[...new Set(x?[x,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=x,hn("scheduleTourSubmitted",{email:this.email,phone:`+1${null===(e=this.phoneNumber.match(/\d/g))||void 0===e?void 0:e.join("")}`,firstName:null!==(n=null===(i=this.firstNameInput)||void 0===i?void 0:i.value)&&void 0!==n?n:this.firstNameInputValue,lastName:null!==(r=null===(o=this.lastNameInput)||void 0===o?void 0:o.value)&&void 0!==r?r:this.lastNameInputValue,tourType:_o[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:A.find((e=>"property-website"!==e))||null});const S={referrer:document.referrer,email_address:this.email,phone_number:`+1${null===(a=this.phoneNumber.match(/\d/g))||void 0===a?void 0:a.join("")}`,building_id:this.buildingId,first_name:null!==(l=null===(s=this.firstNameInput)||void 0===s?void 0:s.value)&&void 0!==l?l:this.firstNameInputValue,last_name:null!==(c=null===(u=this.lastNameInput)||void 0===u?void 0:u.value)&&void 0!==c?c:this.lastNameInputValue,tour_type:_o[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(x?[x,Mn(this.orgSlug)]:[Mn(this.orgSlug)])],query_params:Object.fromEntries(C.entries()),conversation_tracking_id:null===(d=this.leadSourceClient)||void 0===d?void 0:d.chatId,lead_sources_with_timestamps:(null!==(f=null===(h=this.leadSourceMultitouchClient)||void 0===h?void 0:h.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(p=this.selectedLeadSource)||void 0===p?void 0:p.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==f?f:[]).map((e=>bi({...e})))};this.isSubmitting=!0;try{await t().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",S,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"JRL8jV4VcSCwOSir5gWkpgNLfKghmhBG","org-slug":this.orgSlug}}),null===(g=this.leadSourceClient)||void 0===g||g.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(m=this.leadSourceMultitouchClient)||void 0===m||m.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,i=(null===(v=null===(b=t.response)||void 0===b?void 0:b.data)||void 0===v?void 0:v.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[$t(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[$t(this.selectedDate,"yyyy-MM-dd")]=e.filter((e=>e!==this.selectedTime)))}}else{if(409===(null===(y=t.response)||void 0===y?void 0:y.status)&&!this.promptForReschedule&&"User already has a tour scheduled for this building"===i)return this.promptForReschedule=!0,this.isSubmitting=!1,void(this.tourIsBooked=!1);if(409===(null===(w=t.response)||void 0===w?void 0:w.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,Vi(),this.availabilitiesGroupedByDay=await Zi(ko[this.tourType],this.buildingId),void alert("This timeslot is no longer available. Please select a different time.")}alert(i),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
|
|
1182
|
+
`;class An{constructor(e,t,i,n){this.org=e,this.building=t,this.chatId=i,this.incomingProcessedLeadSource=n,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:Sn(),incomingProcessedLeadSource:this.incomingProcessedLeadSource,webchatVersion:null!==(t="MISSING_ENV_VAR".npm_package_version)&&void 0!==t?t:"1.20.155"})})}}const Sn=()=>{var e,t,i,n,o,r;try{const n=new URL(window.location.href).searchParams,o=null!==(i=null===(t=null===(e=window.RCTPCampaign)||void 0===e?void 0:e.CampaignDetails)||void 0===t?void 0:t.Source)&&void 0!==i?i:null,r=n.get("switch_cls[id]"),a=n.get("ilm");return{entrataCampaignSource:r,realpageCampaignSource:a,utmCampaignSource:n.get("utm_source"),yardiCampaignSource:o,bozzutoAdSource:wi("bozzuto_ad_source")}}catch(e){console.warn(`Couldnt get campaign sources from url, error: ${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 i=t.contentWindow.URL;if(!i)return{entrataCampaignSource:null,realpageCampaignSource:null,utmCampaignSource:null,yardiCampaignSource:null,bozzutoAdSource:null};const a=new i(window.location.href).searchParams,s=null!==(r=null===(o=null===(n=window.RCTPCampaign)||void 0===n?void 0:n.CampaignDetails)||void 0===o?void 0:o.Source)&&void 0!==r?r:null;return{entrataCampaignSource:a.get("switch_cls[id]"),realpageCampaignSource:a.get("ilm"),utmCampaignSource:a.get("utm_source"),yardiCampaignSource:s,bozzutoAdSource:wi("bozzuto_ad_source")}}};var kn;!function(e){e.error="error",e.info="info",e.warn="warn"}(kn||(kn={}));const Tn=async({logType:e,buildingSlug:i,orgSlug:n,logTitle:o,logData:r})=>{await t().post("https://app.meetelise.com/platformApi/webchat/logging",{...r},{headers:{"Content-Type":"application/json","building-slug":null!=i?i:"","org-slug":null!=n?n:"","log-type":null!=e?e:kn.error,"log-title":o.toUpperCase().replace(/\s/g,"_")}})},_n=async({params:e,sampleRate:i})=>{try{if(Math.random()>=i)return;await t().post("https://app.meetelise.com/platformApi/webchat/log/signal",{...e,website_origin:window.location.origin,website_search:window.location.search})}catch(e){console.warn(e)}};function En(){return On()?function(){const e=window.location.search,t={};return e.split("?").slice(1).join("&").split("&").forEach((e=>{const[i,n]=e.split("=");i&&n&&(t[decodeURIComponent(i)]=decodeURIComponent(n))})),t}():function(){const e=new URLSearchParams(window.location.search),t=e.has("utm_content"),i=e.has("utm_source");if(t&&!i){const t=e.get("utm_content");e.delete("utm_content"),e.set("utm_source",t)}return Object.fromEntries(e)}()}const On=()=>(window.location.search.match(/\?/g)||[]).length>1;var Pn=i(8367),Mn=i.n(Pn);function Nn(e){return"avb"===e?"AVB Company Website":"windsor"===e?"Windsorcommunities.com":"property-website"}const In=async(e,i=!1)=>{const n=`https://app.meetelise.com/eliseCrmApi/building/${e}/scheduling_status?observe_dynamic_scheduling=${i}`;try{return(await t().get(n)).data.is_enabled}catch(e){return!1}};var Dn,Un,Ln;!function(e){e.EMOJI="emoji",e.PILLS="pills",e.MINIMIZED="minimized"}(Dn||(Dn={})),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"}(Un||(Un={})),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"}(Ln||(Ln={}));const Rn=(e,t)=>"self"===e?!["SCHEDULED_BY_ME_MANAGED_BY_ME","SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE","SCHEDULED_BY_ME_MANAGED_BY_CLIENT"].includes(t):"virtual"===e&&!["SCHEDULED_BY_ME_MANAGED_BY_CLIENT"].includes(t);async function Bn(e,i){var n;const o=`https://app.meetelise.com/api/pub/v1/organization/${e}/building/${i}/v2`,r=(await t().get(o)).data;try{r.welcomeMessage=jn(null!==(n=r.welcomeMessage)&&void 0!==n?n:"",r.userFirstName)}catch(e){console.error(e)}return r}const jn=(e,t)=>e.replace(/elise/gi,t);var Hn=i(6420),Fn=i(5616);function $n(e,t,i){var n=function(e,t,i){if(i&&!i.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(i?[i.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,i.timeZone,i.locale);return n.formatToParts?function(e,t){for(var i=e.formatToParts(t),n=i.length-1;n>=0;--n)if("timeZoneName"===i[n].type)return i[n].value}(n,t):function(e,t){var i=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(i);return n?n[0].substr(1):""}(n,t)}var zn={year:0,month:1,day:2,hour:3,minute:4,second:5},Qn={};function Gn(e,t,i,n,o,r,a){var s=new Date(0);return s.setUTCFullYear(e,t,i),s.setUTCHours(n,o,r,a),s}var qn=36e5,Wn={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Vn(e,t,i){var n,o,r;if(!e)return 0;if(n=Wn.timezoneZ.exec(e))return 0;if(n=Wn.timezoneHH.exec(e))return Kn(r=parseInt(n[1],10))?-r*qn:NaN;if(n=Wn.timezoneHHMM.exec(e)){r=parseInt(n[2],10);var a=parseInt(n[3],10);return Kn(r,a)?(o=Math.abs(r)*qn+6e4*a,"+"===n[1]?-o:o):NaN}if(function(e){if(Xn[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Xn[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=i?t:function(e){return Gn(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=Yn(s,e),u=i?l:function(e,t,i){var n=e.getTime()-t,o=Yn(new Date(n),i);if(t===o)return t;n-=o-t;var r=Yn(new Date(n),i);return o===r?o:Math.max(o,r)}(t,l,e);return-u}return NaN}function Yn(e,t){var i=function(e,t){var i=function(e){if(!Qn[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")),i="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;Qn[e]=i?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 Qn[e]}(t);return i.formatToParts?function(e,t){try{for(var i=e.formatToParts(t),n=[],o=0;o<i.length;o++){var r=zn[i[o].type];r>=0&&(n[r]=parseInt(i[o].value,10))}return n}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(i,e):function(e,t){var i=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[n[3],n[1],n[2],n[4],n[5],n[6]]}(i,e)}(e,t),n=Gn(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime(),o=e.getTime(),r=o%1e3;return n-(o-(r>=0?r:1e3+r))}function Kn(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var Xn={},Zn={X:function(e,t,i,n){var o=Jn(n.timeZone,e);if(0===o)return"Z";switch(t){case"X":return io(o);case"XXXX":case"XX":return to(o);default:return to(o,":")}},x:function(e,t,i,n){var o=Jn(n.timeZone,e);switch(t){case"x":return io(o);case"xxxx":case"xx":return to(o);default:return to(o,":")}},O:function(e,t,i,n){var o=Jn(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var i=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),r=n%60;if(0===r)return i+String(o);return i+String(o)+":"+eo(r,2)}(o);default:return"GMT"+to(o,":")}},z:function(e,t,i,n){switch(t){case"z":case"zz":case"zzz":return $n("short",e,n);default:return $n("long",e,n)}}};function Jn(e,t){var i=e?Vn(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(i))throw new RangeError("Invalid time zone specified: "+e);return i}function eo(e,t){for(var i=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return i+n}function to(e,t){var i=t||"",n=e>0?"-":"+",o=Math.abs(e);return n+eo(Math.floor(o/60),2)+i+eo(Math.floor(o%60),2)}function io(e,t){return e%60==0?(e>0?"-":"+")+eo(Math.abs(e)/60,2):to(e,t)}const no=Zn;var oo=i(2084),ro=i(3561),ao=36e5,so={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 lo(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 i=t||{},n=null==i.additionalDigits?2:oo(i.additionalDigits);if(2!==n&&1!==n&&0!==n)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 o=uo(e),r=co(o.date,n),a=r.year,s=r.restDateString,l=ho(s,a);if(isNaN(l))return new Date(NaN);if(l){var u,c=l.getTime(),d=0;if(o.time&&(d=po(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||i.timeZone){if(u=Vn(o.timeZone||i.timeZone,new Date(c+d)),isNaN(u))return new Date(NaN)}else u=ro(new Date(c+d)),u=ro(new Date(c+d+u));return new Date(c+d+u)}return new Date(NaN)}function uo(e){var t,i={},n=so.dateTimePattern.exec(e);if(n?(i.date=n[1],t=n[3]):(n=so.datePattern.exec(e))?(i.date=n[1],t=n[2]):(i.date=null,t=e),t){var o=so.timeZone.exec(t);o?(i.time=t.replace(o[1],""),i.timeZone=o[1].trim()):i.time=t}return i}function co(e,t){var i,n=so.YYY[t],o=so.YYYYY[t];if(i=so.YYYY.exec(e)||o.exec(e)){var r=i[1];return{year:parseInt(r,10),restDateString:e.slice(r.length)}}if(i=so.YY.exec(e)||n.exec(e)){var a=i[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}function ho(e,t){if(null===t)return null;var i,n,o,r;if(0===e.length)return(n=new Date(0)).setUTCFullYear(t),n;if(i=so.MM.exec(e))return n=new Date(0),vo(t,o=parseInt(i[1],10)-1)?(n.setUTCFullYear(t,o),n):new Date(NaN);if(i=so.DDD.exec(e)){n=new Date(0);var a=parseInt(i[1],10);return function(e,t){if(t<1)return!1;var i=bo(e);return!(i&&t>366)&&!(!i&&t>365)}(t,a)?(n.setUTCFullYear(t,0,a),n):new Date(NaN)}if(i=so.MMDD.exec(e)){n=new Date(0),o=parseInt(i[1],10)-1;var s=parseInt(i[2],10);return vo(t,o,s)?(n.setUTCFullYear(t,o,s),n):new Date(NaN)}if(i=so.Www.exec(e))return yo(0,r=parseInt(i[1],10)-1)?fo(t,r):new Date(NaN);if(i=so.WwwD.exec(e)){r=parseInt(i[1],10)-1;var l=parseInt(i[2],10)-1;return yo(0,r,l)?fo(t,r,l):new Date(NaN)}return null}function po(e){var t,i,n;if(t=so.HH.exec(e))return wo(i=parseFloat(t[1].replace(",",".")))?i%24*ao:NaN;if(t=so.HHMM.exec(e))return wo(i=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")))?i%24*ao+6e4*n:NaN;if(t=so.HHMMSS.exec(e)){i=parseInt(t[1],10),n=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return wo(i,n,o)?i%24*ao+6e4*n+1e3*o:NaN}return null}function fo(e,t,i){t=t||0,i=i||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var o=7*t+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+o),n}var go=[31,28,31,30,31,30,31,31,30,31,30,31],mo=[31,29,31,30,31,30,31,31,30,31,30,31];function bo(e){return e%400==0||e%4==0&&e%100!=0}function vo(e,t,i){if(t<0||t>11)return!1;if(null!=i){if(i<1)return!1;var n=bo(e);if(n&&i>mo[t])return!1;if(!n&&i>go[t])return!1}return!0}function yo(e,t,i){return!(t<0||t>52||null!=i&&(i<0||i>6))}function wo(e,t,i){return!(null!=e&&(e<0||e>=25)||null!=t&&(t<0||t>=60)||null!=i&&(i<0||i>=60))}var Co=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function xo(e,t,i,n){var o=Hn(n);return o.timeZone=t,o.originalDate=e,function(e,t,i){var n=String(t),o=i||{},r=n.match(Co);if(r){var a=lo(o.originalDate||e,o);n=r.reduce((function(e,t){if("'"===t[0])return e;var i=e.indexOf(t),n="'"===e[i-1],r=e.replace(t,"'"+no[t[0]](a,t,null,o)+"'");return n?r.substring(0,i-1)+r.substring(i+1):r}),n)}return Fn(e,n,o)}(function(e,t,i){var n=lo(e,void 0),o=Vn(t,n,!0),r=new Date(n.getTime()-o),a=new Date(0);return a.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),a.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),a}(e,t),i,o)}var Ao=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let So=class extends oe{constructor(){super(...arguments),this.tourTypeOptions=[],this.chatId="",this.buildingId=0,this.buildingSlug="",this.sgtUrl="",this.selfGuidedToursTypeOffered="",this.selfGuidedTourEnabled=!1,this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.orgSlug="",this.hasDynamicSchedulingEnabled=!1,this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingName="",this.tourType=null,this.shouldShowTourType={[ko.Guided]:!0,[ko.Self]:!0,[ko.Virtual]:!0},this.email="",this.phoneNumber="",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.currentLeadSource="",this.featureFlagShowDropdown="",this.compactDesign=!1,this.primaryColor=Ie,this.backgroundColor=De,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.firstNameInputValue="",this.lastNameInputValue="",this.leadSourceInputValue="",this.errorGettingAvailabilities=!1,this._setAvailabilities=async()=>{try{const[e,t]=await Promise.all([In(this.buildingId,this.hasDynamicSchedulingEnabled),Zi()]);this.shouldAllowScheduling=e,this.shouldAllowScheduleLoading=!1,this.calendarTimeZone=await(async e=>{var t;return null!==(t=(await Ki(e)).calendarTimeZone)&&void 0!==t?t:Intl.DateTimeFormat().resolvedOptions().timeZone})(this.buildingId),Tn({logTitle:"AVAILABILITIES_EXIST_FOR_TOUR_TYPE",logData:t,logType:kn.info,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});const i=Object.values(t).every((e=>!1===e)),n=!this.sgtUrl&&!this.escortedToursLink&&!this.virtualToursLink;if(i&&n)return this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,void Tn({logTitle:"NO_AVAILABILITIES_EXIST",logData:null,logType:kn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug});this.shouldShowTourType={[ko.Guided]:this.tourTypeOptions.map((e=>e.value)).includes("WITH_AGENT")&&(t[ko.Guided]||!!this.escortedToursLink),[ko.Self]:this.tourTypeOptions.map((e=>e.value)).includes("SELF_GUIDED")&&(t[ko.Self]||!!this.sgtUrl),[ko.Virtual]:this.tourTypeOptions.map((e=>e.value)).includes("VIRTUAL_SHOWING")&&(t[ko.Virtual]||!!this.virtualToursLink)};const o=1===Object.values(this.shouldShowTourType).reduce(((e,t)=>!0===t?e+1:e),0);if(this._setDefaultSelectedDateAndTimes(),o&&(this.tourType=Object.keys(this.shouldShowTourType).find((e=>this.shouldShowTourType[e]))),null===this.tourType)return void(this.waitingForAvailabilities=!1);this.availabilitiesGroupedByDay=await Ji(To[this.tourType]),this.waitingForAvailabilities=!1}catch(e){this.errorGettingAvailabilities=!0,this.waitingForAvailabilities=!1,Tn({logTitle:"ERROR_LOADING_AVAILABILITIES",logData:{error:e},logType:kn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this._setDefaultSelectedDateAndTimes=async(e,t)=>{var i,n,o;const r=await Ki(this.buildingId),a=null!=e?e:this._getHighestRankedTourType(r),s=a?null===(o=null===(n=null===(i=r.availability)||void 0===i?void 0:i[a])||void 0===n?void 0:n.availableTourStartTimes)||void 0===o?void 0:o.filter((e=>!t||Yt("string"==typeof e?Di(e):e,t))):[],l=null==s?void 0:s[0];a&&l&&a!==Oi.Unknown&&a!==Oi.MediaTour&&(this.selectedDate=Vt("string"==typeof l?Di(l):l),this.tourType=_o[a],this.selectedTime="string"==typeof l?en(l):(e=>({datetime:$t(e,"yyyy-MM-dd'T'HH:mm:ss"),offset:$t(e,"xxx")}))(l))},this._getHighestRankedTourType=e=>{var t;const i=(null!==(t=e.rankOrderedSupportedTourTypes)&&void 0!==t?t:[]).map((t=>{var i,n;return{tourType:t,availabilities:null===(n=null===(i=e.availability)||void 0===i?void 0:i[t])||void 0===n?void 0:n.availableTourStartTimes}})).filter((e=>{if(e.tourType===Oi.Unknown||e.tourType===Oi.MediaTour)return!1;const t=_o[e.tourType],i=this._getTourTypeOffered(t);return!!i&&!Rn(t,i)&&e.availabilities&&e.availabilities.length>0})),n=i[0];return n?n.tourType:null},this._getTourTypeOffered=e=>e===ko.Guided?this.escortedToursTypeOffered:e===ko.Self?this.selfGuidedToursTypeOffered:e===ko.Virtual?this.virtualToursTypeOffered:null,this.firstUpdated=async()=>{await this._setAvailabilities()},this.willUpdate=async e=>{e.has("tourType")&&this.tourType&&(this.availabilitiesGroupedByDay=await Ji(To[this.tourType]))},this.handlePhoneKeydown=e=>{var t;if(!(e instanceof KeyboardEvent&&e.target instanceof HTMLInputElement&&null!==e.target.selectionStart))return;const i=e.target.selectionStart;if(1!==e.key.length||Pe(e)){if("Backspace"===e.key){if(Pe(e))return;if(this.phoneInput.selectionEnd&&this.phoneInput.selectionStart&&this.phoneInput.selectionEnd-this.phoneInput.selectionStart>0)return;const t=this.phoneNumber.length,n=this.phoneNumber.slice(0,i).replace(/\D/g,""),o=this.phoneNumber.slice(i).replace(/\D/g,""),r=`${n.slice(0,-1)}${o}`;this.phoneNumber=_e(r),this.phoneInput.value=this.phoneNumber;const a=i-(t-this.phoneNumber.length);return this.phoneInput.setSelectionRange(a,a),e.preventDefault(),void e.stopPropagation()}if(!["ArrowLeft","ArrowRight"].includes(e.key)||Pe(e)||e.shiftKey)return;if("ArrowLeft"===e.key){const e=((null===(t=this.phoneNumber.slice(0,i).split(/\d+/).at(-1))||void 0===t?void 0:t.length)||0)+1,n=i-e>-1?i-e:0;this.phoneInput.setSelectionRange(n,n)}if("ArrowRight"===e.key){const e=(this.phoneNumber.slice(i).split(/\d+/)[0].length||0)+1,t=i+e<this.phoneNumber.length?i+e:this.phoneNumber.length;this.phoneInput.setSelectionRange(t,t)}e.preventDefault(),e.stopPropagation()}else{e.preventDefault(),e.stopPropagation();const t=this.phoneNumber.slice(0,i)+e.key+this.phoneNumber.slice(i);this.phoneNumber=_e(t.replace(/\D/g,"")),this.phoneInput.value=this.phoneNumber}},this.handlePhoneKeyup=e=>{var t;if(!e.key)return;if(e.key.includes("Arrow")||["Meta","Shift","Control","Alt"].includes(e.key))return;const i=this.phoneInput.selectionStart,n=i?this.phoneInput.value.slice(i).replace(/\D/g,""):"";this.phoneNumber=_e(this.phoneInput.value);let o=0,r=n.length;for(;r;)(null===(t=this.phoneNumber.at(o))||void 0===t?void 0:t.match(/\d/))&&r--,o++;const a=this.phoneInput.value.length-o+1;this.phoneInput.setSelectionRange(a,a)},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,i;return(!!(null===(e=this.firstNameInput)||void 0===e?void 0:e.value)||!!(null===(t=this.lastNameInput)||void 0===t?void 0:t.value))&&(null===(i=this.emailInput)||void 0===i?void 0:i.value.includes("@"))&&!!this.phoneNumber&&14===this.phoneNumber.length&&Ci(this.phoneNumber)}},this.formIsValidForSubmission=()=>this.validators.tourType()&&this.validators.dateAndTime()&&this.validators.leadInfo(),this.timeStringToHoursAndMinutes=e=>{const[t,i]=e.split(/\D/g);return[parseInt(t)+(e.toLowerCase().includes("pm")?12:0),parseInt(i)]},this.submit=async()=>{var e,i,n,o,r,a,s,l,u,c,d,h,p,f,g,m,b,v,y,w;if(!this.selectedDate||!this.selectedTime||null===this.tourType)return;const C=new URLSearchParams(window.location.search);let x=null;x=this.selectedLeadSource&&this.selectedLeadSource.value&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:this.leadSourceInputValue&&this.leadSourceInputValue.length>0?this.leadSourceInputValue:this.currentLeadSource;const A=[...new Set(x?[x,"property-website"]:["property-website"])];this.firstNameInput&&(this.firstNameInputValue=this.firstNameInput.value),this.lastNameInput&&(this.lastNameInputValue=this.lastNameInput.value),this.leadSourceInputValue=x,pn("scheduleTourSubmitted",{email:this.email,phone:`+1${null===(e=this.phoneNumber.match(/\d/g))||void 0===e?void 0:e.join("")}`,firstName:null!==(n=null===(i=this.firstNameInput)||void 0===i?void 0:i.value)&&void 0!==n?n:this.firstNameInputValue,lastName:null!==(r=null===(o=this.lastNameInput)||void 0===o?void 0:o.value)&&void 0!==r?r:this.lastNameInputValue,tourType:Eo[this.tourType],tourTime:`${this.selectedTime.datetime}${this.selectedTime.offset}`,originatingSource:A.find((e=>"property-website"!==e))||null});const S={referrer:document.referrer,email_address:this.email,phone_number:`+1${null===(a=this.phoneNumber.match(/\d/g))||void 0===a?void 0:a.join("")}`,building_id:this.buildingId,first_name:null!==(l=null===(s=this.firstNameInput)||void 0===s?void 0:s.value)&&void 0!==l?l:this.firstNameInputValue,last_name:null!==(c=null===(u=this.lastNameInput)||void 0===u?void 0:u.value)&&void 0!==c?c:this.lastNameInputValue,tour_type:Eo[this.tourType],tour_time:`${this.selectedTime.datetime}${this.selectedTime.offset}`,cancel_existing_tours:this.promptForReschedule,lead_sources:[...new Set(x?[x,Nn(this.orgSlug)]:[Nn(this.orgSlug)])],query_params:Object.fromEntries(C.entries()),conversation_tracking_id:null===(d=this.leadSourceClient)||void 0===d?void 0:d.chatId,lead_sources_with_timestamps:(null!==(f=null===(h=this.leadSourceMultitouchClient)||void 0===h?void 0:h.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:(null===(p=this.selectedLeadSource)||void 0===p?void 0:p.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null}))&&void 0!==f?f:[]).map((e=>bi({...e})))};this.isSubmitting=!0;try{await t().post("https://app.meetelise.com/platformApi/state/create/v2/scheduleMe",S,{headers:{"building-slug":this.buildingSlug,"X-SecurityKey":"JRL8jV4VcSCwOSir5gWkpgNLfKghmhBG","org-slug":this.orgSlug}}),null===(g=this.leadSourceClient)||void 0===g||g.checkAndHandleForLogLeadSource({webchatAction:"tour-scheduler",stateId:null}),null===(m=this.leadSourceMultitouchClient)||void 0===m||m.resetLeadSourceTouchpoints(),this.isSubmitting=!1,this.tourIsBooked=!0}catch(e){const t=e,i=(null===(v=null===(b=t.response)||void 0===b?void 0:b.data)||void 0===v?void 0:v.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[$t(this.selectedDate,"yyyy-MM-dd")];e&&(this.availabilitiesGroupedByDay[$t(this.selectedDate,"yyyy-MM-dd")]=e.filter((e=>e!==this.selectedTime)))}}else{if(409===(null===(y=t.response)||void 0===y?void 0:y.status)&&!this.promptForReschedule&&"User already has a tour scheduled for this building"===i)return this.promptForReschedule=!0,this.isSubmitting=!1,void(this.tourIsBooked=!1);if(409===(null===(w=t.response)||void 0===w?void 0:w.status)&&!this.promptForReschedule)return this.isSubmitting=!1,this.tourIsBooked=!1,Yi(),this.availabilitiesGroupedByDay=await Ji(To[this.tourType],this.buildingId),void alert("This timeslot is no longer available. Please select a different time.")}alert(i),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
|
|
1183
1183
|
id="schedule-bttn"
|
|
1184
1184
|
.onClick=${this.submit}
|
|
1185
1185
|
.isLoading=${this.isSubmitting}
|
|
@@ -1189,14 +1189,14 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
1189
1189
|
?disabled=${!this.formIsValidForSubmission()}
|
|
1190
1190
|
></action-confirm-button>`,nextButtonAction:null,render:()=>R`${this.userInfoAndLayoutMenu()}`}]}tourTypeMenu(){return R`<h2 class="journey-header">Tour Type</h2>
|
|
1191
1191
|
<div id="tour-type-menu">
|
|
1192
|
-
${this.shouldShowTourType[
|
|
1192
|
+
${this.shouldShowTourType[ko.Self]?R` <tour-type-option
|
|
1193
1193
|
heading="Take a tour"
|
|
1194
1194
|
subtitle="on your own"
|
|
1195
1195
|
.primaryColor=${this.primaryColor}
|
|
1196
1196
|
.backgroundColor=${this.backgroundColor}
|
|
1197
|
-
@click="${async()=>{this.tourType=
|
|
1198
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
1199
|
-
?selected="${this.tourType===
|
|
1197
|
+
@click="${async()=>{this.tourType=ko.Self,this.sgtUrl&&Rn(ko.Self,this.selfGuidedToursTypeOffered)&&window.open(this.sgtUrl,"_blank"),this.availabilitiesGroupedByDay=await Ji(To[ko.Self]),this._setDefaultSelectedDateAndTimes(To[ko.Self])}}"
|
|
1198
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=ko.Self)}}"
|
|
1199
|
+
?selected="${this.tourType===ko.Self}"
|
|
1200
1200
|
>
|
|
1201
1201
|
${((e="black")=>B`<svg
|
|
1202
1202
|
slot="icon"
|
|
@@ -1210,18 +1210,18 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1210
1210
|
d="M14.8334 19.1903V30.1667H0.666687C0.666248 28.4367 1.06183 26.7297 1.82311 25.1763C2.58439 23.6229 3.69118 22.2644 5.05866 21.2049C6.42614 20.1453 8.01802 19.4129 9.71232 19.0637C11.4066 18.7145 13.1584 18.7578 14.8334 19.1903ZM12 17.4167C7.30377 17.4167 3.50002 13.6129 3.50002 8.91666C3.50002 4.22041 7.30377 0.416656 12 0.416656C16.6963 0.416656 20.5 4.22041 20.5 8.91666C20.5 13.6129 16.6963 17.4167 12 17.4167ZM20.5 23.0833V18.125L27.5834 24.5L20.5 30.875V25.9167H16.25V23.0833H20.5Z"
|
|
1211
1211
|
fill="${e}"
|
|
1212
1212
|
/>
|
|
1213
|
-
</svg>`)(this.tourType===
|
|
1213
|
+
</svg>`)(this.tourType===ko.Self?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
1214
1214
|
</tour-type-option>`:""}
|
|
1215
|
-
${this.shouldShowTourType[
|
|
1215
|
+
${this.shouldShowTourType[ko.Guided]?R` <tour-type-option
|
|
1216
1216
|
heading="Guided tour"
|
|
1217
1217
|
subtitle="with an agent"
|
|
1218
1218
|
.primaryColor=${this.primaryColor}
|
|
1219
1219
|
.backgroundColor=${this.backgroundColor}
|
|
1220
1220
|
.foregroundColorOnPrimaryBackgroundColor=${this.foregroundColorOnPrimaryBackgroundColor}
|
|
1221
1221
|
.foregroundColorOnSecondaryBackgroundColor=${this.foregroundColorOnSecondaryBackgroundColor}
|
|
1222
|
-
@click="${async()=>{this.tourType=
|
|
1223
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
1224
|
-
?selected="${this.tourType===
|
|
1222
|
+
@click="${async()=>{this.tourType=ko.Guided,this.escortedToursLink&&window.open(this.escortedToursLink,"_blank"),this.availabilitiesGroupedByDay=await Ji(To[ko.Guided]),this._setDefaultSelectedDateAndTimes(To[ko.Guided])}}"
|
|
1223
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=ko.Guided)}}"
|
|
1224
|
+
?selected="${this.tourType===ko.Guided}"
|
|
1225
1225
|
>
|
|
1226
1226
|
${((e="black")=>B`<svg
|
|
1227
1227
|
slot="icon"
|
|
@@ -1235,16 +1235,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1235
1235
|
d="M0.833252 30.1666C0.833252 27.1608 2.0273 24.2782 4.15271 22.1527C6.27812 20.0273 9.1608 18.8333 12.1666 18.8333C15.1724 18.8333 18.0551 20.0273 20.1805 22.1527C22.3059 24.2782 23.4999 27.1608 23.4999 30.1666H0.833252ZM12.1666 17.4166C7.47034 17.4166 3.66659 13.6129 3.66659 8.91663C3.66659 4.22038 7.47034 0.416626 12.1666 0.416626C16.8628 0.416626 20.6666 4.22038 20.6666 8.91663C20.6666 13.6129 16.8628 17.4166 12.1666 17.4166ZM22.5975 20.58C24.7645 21.137 26.7006 22.3634 28.13 24.0846C29.5595 25.8059 30.4096 27.9342 30.5592 30.1666H26.3333C26.3333 26.4691 24.9166 23.1031 22.5975 20.58ZM19.7316 17.3557C20.9187 16.2939 21.8681 14.9932 22.5175 13.5388C23.167 12.0845 23.5017 10.5094 23.4999 8.91663C23.5029 6.9807 23.0078 5.07657 22.062 3.38738C23.6666 3.70979 25.11 4.5779 26.1469 5.84415C27.1838 7.1104 27.7502 8.69666 27.7499 10.3333C27.7503 11.3426 27.5349 12.3404 27.1182 13.2597C26.7016 14.179 26.0932 14.9986 25.3339 15.6636C24.5746 16.3285 23.6819 16.8236 22.7157 17.1154C21.7495 17.4072 20.7321 17.4892 19.7316 17.3557V17.3557Z"
|
|
1236
1236
|
fill="${e}"
|
|
1237
1237
|
/>
|
|
1238
|
-
</svg>`)(this.tourType===
|
|
1238
|
+
</svg>`)(this.tourType===ko.Guided?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
1239
1239
|
</tour-type-option>`:""}
|
|
1240
|
-
${this.shouldShowTourType[
|
|
1240
|
+
${this.shouldShowTourType[ko.Virtual]?R` <tour-type-option
|
|
1241
1241
|
heading="Virtual tour"
|
|
1242
1242
|
subtitle="over video"
|
|
1243
1243
|
.primaryColor=${this.primaryColor}
|
|
1244
1244
|
.backgroundColor=${this.backgroundColor}
|
|
1245
|
-
@click="${async()=>{this.tourType=
|
|
1246
|
-
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=
|
|
1247
|
-
?selected="${this.tourType===
|
|
1245
|
+
@click="${async()=>{this.tourType=ko.Virtual,this.virtualToursLink&&Rn(ko.Virtual,this.virtualToursTypeOffered)&&window.open(this.virtualToursLink,"_blank"),this.availabilitiesGroupedByDay=await Ji(To[ko.Virtual]),this._setDefaultSelectedDateAndTimes(To[ko.Virtual])}}"
|
|
1246
|
+
@keydown="${e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),this.tourType=ko.Virtual)}}"
|
|
1247
|
+
?selected="${this.tourType===ko.Virtual}"
|
|
1248
1248
|
>
|
|
1249
1249
|
${((e="black")=>B`<svg
|
|
1250
1250
|
slot="icon"
|
|
@@ -1258,9 +1258,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1258
1258
|
d="M15.6 19.5V22.1L18.2 23.4V24.7H7.80004L7.79484 23.4052L10.4 22.1V19.5H1.28965C1.11894 19.4989 0.950113 19.4642 0.792841 19.3979C0.635568 19.3315 0.492943 19.2347 0.373141 19.1131C0.253339 18.9915 0.158715 18.8474 0.0946936 18.6892C0.0306718 18.5309 -0.00148955 18.3616 5.29696e-05 18.1909V1.3091C5.29696e-05 0.586299 0.591552 0 1.28965 0H24.7104C25.4228 0 26 0.583699 26 1.3091V18.1909C26 18.9137 25.4085 19.5 24.7104 19.5H15.6ZM2.60005 14.3V16.9H23.4V14.3H2.60005Z"
|
|
1259
1259
|
fill="${e}"
|
|
1260
1260
|
/>
|
|
1261
|
-
</svg>`)(this.tourType===
|
|
1261
|
+
</svg>`)(this.tourType===ko.Virtual?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
1262
1262
|
</tour-type-option>`:""}
|
|
1263
|
-
</div>`}dateAndTimeMenu(){var e;return this.tourType===
|
|
1263
|
+
</div>`}dateAndTimeMenu(){var e;return this.tourType===ko.Self&&this.sgtUrl&&Rn(this.tourType,this.selfGuidedToursTypeOffered)?R`<h2 class="journey-header">Date and Time</h2>
|
|
1264
1264
|
<div id="dateAndTimeMenu">
|
|
1265
1265
|
<button
|
|
1266
1266
|
id="self-guided-redirect-bttn"
|
|
@@ -1272,16 +1272,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1272
1272
|
<div id="dateAndTimeMenu">
|
|
1273
1273
|
<div id="datePicker">
|
|
1274
1274
|
<date-picker
|
|
1275
|
-
.availabilities=${
|
|
1275
|
+
.availabilities=${nn()(this.availabilitiesGroupedByDay,(e=>e.map((e=>new Date(e.offset)))))}
|
|
1276
1276
|
.defaultDate=${this.selectedDate}
|
|
1277
|
-
@change=${async e=>{if(this.tourType===
|
|
1277
|
+
@change=${async e=>{if(this.tourType===ko.Self&&this.sgtUrl&&Rn(this.tourType,this.selfGuidedToursTypeOffered))window.open(this.sgtUrl,"_blank");else if(this.tourType===ko.Guided&&this.escortedToursLink)window.open(this.escortedToursLink,"_blank");else if(this.tourType===ko.Virtual&&this.virtualToursLink&&Rn(this.tourType,this.virtualToursTypeOffered))window.open(this.virtualToursLink,"_blank");else if(e.target instanceof Xt){const t=this.selectedDate;if(this.selectedDate=e.target.selectedDate,!this.tourType)return;if(t&&e.target.selectedDate&&Yt(t,e.target.selectedDate))return;this._setDefaultSelectedDateAndTimes(To[this.tourType],e.target.selectedDate)}}}
|
|
1278
1278
|
></date-picker>
|
|
1279
1279
|
<div>
|
|
1280
1280
|
<time-picker
|
|
1281
1281
|
?selecteddateexists=${!!this.selectedDate}
|
|
1282
1282
|
.timezone=${this.calendarTimeZone}
|
|
1283
|
-
.defaultSelectedTime=${this.selectedTime?{dateWithTimeZoneOffset:this.selectedTime,displayTime:$t(
|
|
1284
|
-
.options=${this.selectedDate?null===(e=this.availabilitiesGroupedByDay[$t(this.selectedDate,"y-MM-dd")])||void 0===e?void 0:e.sort(((e,t)=>function(e,t){je(2,arguments);var i=He(e),n=He(t),o=i.getTime()-n.getTime();return o<0?-1:o>0?1:o}(
|
|
1283
|
+
.defaultSelectedTime=${this.selectedTime?{dateWithTimeZoneOffset:this.selectedTime,displayTime:$t(Di(`${this.selectedTime.datetime}${this.selectedTime.offset}`),"h:mmaaa"),displayTimeZoned:xo(Di(`${this.selectedTime.datetime}${this.selectedTime.offset}`),this.calendarTimeZone,"h:mmaaa")}:null}
|
|
1284
|
+
.options=${this.selectedDate?null===(e=this.availabilitiesGroupedByDay[$t(this.selectedDate,"y-MM-dd")])||void 0===e?void 0:e.sort(((e,t)=>function(e,t){je(2,arguments);var i=He(e),n=He(t),o=i.getTime()-n.getTime();return o<0?-1:o>0?1:o}(Di(e.datetime),Di(t.datetime)))).map((e=>({dateWithTimeZoneOffset:e,displayTime:$t(Di(`${e.datetime}${e.offset}`),"h:mmaaa"),displayTimeZoned:xo(Di(`${e.datetime}${e.offset}`),this.calendarTimeZone,"h:mmaaa")}))):[]}
|
|
1285
1285
|
@change=${e=>{if(e.target instanceof ii){if(!this.selectedDate)return;const t=this.availabilitiesGroupedByDay[$t(new Date(this.selectedDate),"y-MM-dd")],i=e.target.selectedTime?t.indexOf(e.target.selectedTime.dateWithTimeZoneOffset):null;this.selectedTime=null!==i?t[i]:null}}}
|
|
1286
1286
|
></time-picker>
|
|
1287
1287
|
</div>
|
|
@@ -1366,7 +1366,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1366
1366
|
/>
|
|
1367
1367
|
${14!==this.phoneNumber.length||Ci(this.phoneNumber)?"":R`<p class="error-message">Invalid phone number</p>`}
|
|
1368
1368
|
</div>
|
|
1369
|
-
${this.leadSources.length>0&&(this.featureFlagShowDropdown===
|
|
1369
|
+
${this.leadSources.length>0&&(this.featureFlagShowDropdown===sn.always||this.featureFlagShowDropdown===sn.onAttributionFailure&&0===this.currentLeadSource.length)?R` <me-select
|
|
1370
1370
|
id="leadSource"
|
|
1371
1371
|
value="${this.currentLeadSource}"
|
|
1372
1372
|
placeholder="How did you hear about us?"
|
|
@@ -1374,7 +1374,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1374
1374
|
@change=${()=>{this.requestUpdate()}}
|
|
1375
1375
|
>
|
|
1376
1376
|
</me-select>`:""}
|
|
1377
|
-
</div> `}confirmationMessage(){if(!this.selectedDate||!this.selectedTime||null===this.tourType)return R``;const e=
|
|
1377
|
+
</div> `}confirmationMessage(){if(!this.selectedDate||!this.selectedTime||null===this.tourType)return R``;const e=xo(Di(`${this.selectedTime.datetime}${this.selectedTime.offset}`),this.calendarTimeZone,"h:mmaaa");return this.canceledReschedule?R`
|
|
1378
1378
|
<div id="confirmationMessage">
|
|
1379
1379
|
<svg
|
|
1380
1380
|
width="20"
|
|
@@ -1408,7 +1408,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1408
1408
|
<p>Thank you!</p>
|
|
1409
1409
|
<p>
|
|
1410
1410
|
Your
|
|
1411
|
-
${{[
|
|
1411
|
+
${{[ko.Guided]:"guided",[ko.Self]:"self-guided",[ko.Virtual]:"virtual"}[this.tourType]}
|
|
1412
1412
|
tour is
|
|
1413
1413
|
${this.promptForReschedule?R`rescheduled`:R`scheduled`} for
|
|
1414
1414
|
${e}
|
|
@@ -1433,7 +1433,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1433
1433
|
/>
|
|
1434
1434
|
</svg>`}render(){var e,t,i,n,o,r;const a=this.waitingForAvailabilities||this.shouldAllowScheduleLoading;if(!this.shouldAllowScheduling&&!a)return R` <div
|
|
1435
1435
|
id="tour-scheduler-inner-form"
|
|
1436
|
-
class="${
|
|
1436
|
+
class="${rn()({"tour-scheduler-full":!this.compactDesign&&!vi(),"tour-scheduler-compact":this.compactDesign&&!vi(),"tour-scheduler-mobile":vi()})}"
|
|
1437
1437
|
>
|
|
1438
1438
|
<div id="top-header">
|
|
1439
1439
|
<div></div>
|
|
@@ -1445,14 +1445,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1445
1445
|
</div>
|
|
1446
1446
|
</div>`;if(a)return R` <div
|
|
1447
1447
|
id="tour-scheduler-inner-form"
|
|
1448
|
-
class="${
|
|
1448
|
+
class="${rn()({"tour-scheduler-full":!this.compactDesign&&!vi(),"tour-scheduler-compact":this.compactDesign&&!vi(),"tour-scheduler-mobile":vi()})}"
|
|
1449
1449
|
>
|
|
1450
1450
|
<div class="center-tour-not-avail">
|
|
1451
1451
|
<h1>Searching for availabilities...</h1>
|
|
1452
1452
|
<div class="loading-entire-tour-icon">${this.loadingIcon(48)}</div>
|
|
1453
1453
|
</div>
|
|
1454
1454
|
</div>`;if(this.errorGettingAvailabilities)return 123519===this.buildingId?R` <div
|
|
1455
|
-
class="${
|
|
1455
|
+
class="${rn()({"tour-scheduler-full":!this.compactDesign&&!vi(),"tour-scheduler-compact":this.compactDesign&&!vi(),"tour-scheduler-mobile":vi()})}"
|
|
1456
1456
|
>
|
|
1457
1457
|
<div id="top-header">
|
|
1458
1458
|
<div></div>
|
|
@@ -1467,7 +1467,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1467
1467
|
</div>
|
|
1468
1468
|
</div>
|
|
1469
1469
|
</div>`:R` <div
|
|
1470
|
-
class="${
|
|
1470
|
+
class="${rn()({"tour-scheduler-full":!this.compactDesign&&!vi(),"tour-scheduler-compact":this.compactDesign&&!vi(),"tour-scheduler-mobile":vi()})}"
|
|
1471
1471
|
>
|
|
1472
1472
|
<div id="top-header">
|
|
1473
1473
|
<div></div>
|
|
@@ -1495,7 +1495,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1495
1495
|
</div>
|
|
1496
1496
|
</div>`;if(vi()){const e=this.mobilePages[this.mobilePageIndex];return R`
|
|
1497
1497
|
<div
|
|
1498
|
-
class="${
|
|
1498
|
+
class="${rn()("tour-scheduler-mobile",{loading:a})}"
|
|
1499
1499
|
>
|
|
1500
1500
|
<div id="top-header">
|
|
1501
1501
|
<h1 id="scheduleATour">
|
|
@@ -1560,13 +1560,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1560
1560
|
${e.nextButtonText}
|
|
1561
1561
|
</button>`}`}
|
|
1562
1562
|
${this.mobilePageIndex+1===this.mobilePages.length?R`
|
|
1563
|
-
${
|
|
1563
|
+
${Cn({buildingName:this.buildingName,phoneNumberInput:null===(o=this.phoneInput)||void 0===o?void 0:o.value,emailInput:null===(r=this.emailInput)||void 0===r?void 0:r.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug})}
|
|
1564
1564
|
`:R``}
|
|
1565
1565
|
</div>
|
|
1566
1566
|
</div>
|
|
1567
1567
|
`}return R`
|
|
1568
1568
|
<div
|
|
1569
|
-
class="${
|
|
1569
|
+
class="${rn()({"tour-scheduler-full":!this.compactDesign,"tour-scheduler-compact":this.compactDesign,loading:a})}"
|
|
1570
1570
|
@leadsource="${e=>this.selectedLeadSource=e.detail.selectedLeadSource}"
|
|
1571
1571
|
>
|
|
1572
1572
|
<div id="top-header">
|
|
@@ -1593,7 +1593,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1593
1593
|
We'll send a confirmation and any follow-ups to your email
|
|
1594
1594
|
address, please reply to the email to make any appointment
|
|
1595
1595
|
changes.
|
|
1596
|
-
${
|
|
1596
|
+
${Cn({buildingName:this.buildingName,phoneNumberInput:null===(e=this.phoneInput)||void 0===e?void 0:e.value,emailInput:null===(t=this.emailInput)||void 0===t?void 0:t.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug})}
|
|
1597
1597
|
</p>
|
|
1598
1598
|
|
|
1599
1599
|
<div class="reschedule-buttons-wrapper">
|
|
@@ -1637,7 +1637,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1637
1637
|
We'll send a confirmation and any follow-ups to your email
|
|
1638
1638
|
address, please reply to the email to make any appointment
|
|
1639
1639
|
changes.
|
|
1640
|
-
${
|
|
1640
|
+
${Cn({buildingName:this.buildingName,phoneNumberInput:null===(i=this.phoneInput)||void 0===i?void 0:i.value,emailInput:null===(n=this.emailInput)||void 0===n?void 0:n.value,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug})}
|
|
1641
1641
|
</p>
|
|
1642
1642
|
|
|
1643
1643
|
<action-confirm-button
|
|
@@ -1652,7 +1652,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
1652
1652
|
</div>
|
|
1653
1653
|
`}
|
|
1654
1654
|
</div>
|
|
1655
|
-
`}};var So
|
|
1655
|
+
`}};var ko;So.styles=[xn,Si],Ao([le({attribute:!1})],So.prototype,"tourTypeOptions",void 0),Ao([le({attribute:!0})],So.prototype,"chatId",void 0),Ao([le({type:Number})],So.prototype,"buildingId",void 0),Ao([le({attribute:!0})],So.prototype,"buildingSlug",void 0),Ao([le({attribute:!0})],So.prototype,"sgtUrl",void 0),Ao([le({attribute:!0})],So.prototype,"selfGuidedToursTypeOffered",void 0),Ao([le({attribute:!0})],So.prototype,"selfGuidedTourEnabled",void 0),Ao([le({attribute:!0})],So.prototype,"escortedToursLink",void 0),Ao([le({attribute:!0})],So.prototype,"escortedToursTypeOffered",void 0),Ao([le({attribute:!0})],So.prototype,"virtualToursLink",void 0),Ao([le({attribute:!0})],So.prototype,"virtualToursTypeOffered",void 0),Ao([le({attribute:!0})],So.prototype,"orgSlug",void 0),Ao([le({attribute:!0})],So.prototype,"hasDynamicSchedulingEnabled",void 0),Ao([le({attribute:!0})],So.prototype,"leadSourceClient",void 0),Ao([le({attribute:!0})],So.prototype,"leadSourceMultitouchClient",void 0),Ao([le({attribute:!0})],So.prototype,"buildingName",void 0),Ao([ue()],So.prototype,"tourType",void 0),Ao([ue()],So.prototype,"shouldShowTourType",void 0),Ao([ue()],So.prototype,"email",void 0),Ao([ue()],So.prototype,"phoneNumber",void 0),Ao([ue()],So.prototype,"availabilitiesGroupedByDay",void 0),Ao([ue()],So.prototype,"calendarTimeZone",void 0),Ao([ue()],So.prototype,"waitingForAvailabilities",void 0),Ao([ue()],So.prototype,"selectedDate",void 0),Ao([ue()],So.prototype,"selectedTime",void 0),Ao([ue()],So.prototype,"mobilePageIndex",void 0),Ao([ue()],So.prototype,"isSubmitting",void 0),Ao([ue()],So.prototype,"tourIsBooked",void 0),Ao([ue()],So.prototype,"shouldAllowScheduling",void 0),Ao([ue()],So.prototype,"shouldAllowScheduleLoading",void 0),Ao([ue()],So.prototype,"promptForReschedule",void 0),Ao([ue()],So.prototype,"canceledReschedule",void 0),Ao([le({attribute:!1})],So.prototype,"leadSources",void 0),Ao([le({attribute:!0})],So.prototype,"orgLegalName",void 0),Ao([le({attribute:!0})],So.prototype,"currentLeadSource",void 0),Ao([le({attribute:!0})],So.prototype,"featureFlagShowDropdown",void 0),Ao([le({attribute:!0})],So.prototype,"compactDesign",void 0),Ao([le({attribute:!0})],So.prototype,"primaryColor",void 0),Ao([le({attribute:!0})],So.prototype,"backgroundColor",void 0),Ao([le({attribute:!0})],So.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Ao([le({attribute:!0})],So.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Ao([ce(".nameContainer#firstName input")],So.prototype,"firstNameInput",void 0),Ao([ce(".nameContainer#lastName input")],So.prototype,"lastNameInput",void 0),Ao([ce(".inputContainer#email input")],So.prototype,"emailInput",void 0),Ao([ce(".inputContainer#phone input")],So.prototype,"phoneInput",void 0),Ao([ce("me-select#leadSource")],So.prototype,"selectedLeadSource",void 0),Ao([ue()],So.prototype,"firstNameInputValue",void 0),Ao([ue()],So.prototype,"lastNameInputValue",void 0),Ao([ue()],So.prototype,"leadSourceInputValue",void 0),Ao([ue()],So.prototype,"errorGettingAvailabilities",void 0),So=Ao([ae("tour-scheduler")],So),function(e){e.Guided="guided",e.Self="self",e.Virtual="virtual"}(ko||(ko={}));const To={[ko.Guided]:Oi.WithAgent,[ko.Self]:Oi.SelfGuided,[ko.Virtual]:Oi.VirtualShowing},_o={[Oi.WithAgent]:ko.Guided,[Oi.SelfGuided]:ko.Self,[Oi.VirtualShowing]:ko.Virtual},Eo={[ko.Guided]:"escorted-tour",[ko.Self]:"self-guided-tour",[ko.Virtual]:"live-virtual-tour"};var Oo;async function Po(e){try{return(await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/ab-test-type`)).data}catch(e){return null}}!function(e){e.ConceptEmoji="Concept 2 (Blue/White)"}(Oo||(Oo={}));const Mo=(e,t,i=!0,n=!1,o,r=.01)=>_n({params:{org_slug:e,building_slug:t,is_pixel_on_site:i,is_any_webchat_showing:n,extra_data:{webchat_no_show_reason:o}},sampleRate:r}),No=l`
|
|
1656
1656
|
* {
|
|
1657
1657
|
font-family: "Helvetica Neue", Arial;
|
|
1658
1658
|
font-size: 14px;
|
|
@@ -2149,7 +2149,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2149
2149
|
width: 164px;
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
|
-
`,
|
|
2152
|
+
`,Io=l`
|
|
2153
2153
|
.type-hey__list {
|
|
2154
2154
|
width: 280px;
|
|
2155
2155
|
height: 300px;
|
|
@@ -2307,7 +2307,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2307
2307
|
.title-bold {
|
|
2308
2308
|
font-weight: 700;
|
|
2309
2309
|
}
|
|
2310
|
-
`,
|
|
2310
|
+
`,Do=l`
|
|
2311
2311
|
.vertical-pill-list {
|
|
2312
2312
|
position: relative;
|
|
2313
2313
|
display: flex;
|
|
@@ -2364,8 +2364,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2364
2364
|
justify-content: center;
|
|
2365
2365
|
align-items: center;
|
|
2366
2366
|
}
|
|
2367
|
-
`;var
|
|
2368
|
-
class=${
|
|
2367
|
+
`;var Uo=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Lo=class extends oe{constructor(){super(...arguments),this.text="Submit",this.isLoading=!1,this.disabled=!1,this.height="initial",this.width="initial",this.focus=()=>{var e,t;null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("button"))||void 0===t||t.focus()},this.render=()=>R`<button
|
|
2368
|
+
class=${rn()("action-confirm-button",{loading:this.isLoading})}
|
|
2369
2369
|
@click=${this.isLoading?null:this.onClick}
|
|
2370
2370
|
?disabled=${this.disabled}
|
|
2371
2371
|
style=${`height: ${this.height}; width: ${this.width};`}
|
|
@@ -2377,7 +2377,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2377
2377
|
<div></div>
|
|
2378
2378
|
<div></div>
|
|
2379
2379
|
</div>`:this.text}
|
|
2380
|
-
</button>`}};
|
|
2380
|
+
</button>`}};Lo.styles=[l`
|
|
2381
2381
|
.action-confirm-button {
|
|
2382
2382
|
display: flex;
|
|
2383
2383
|
justify-content: center;
|
|
@@ -2451,7 +2451,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2451
2451
|
transform: rotate(360deg);
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
|
-
`],
|
|
2454
|
+
`],Uo([le()],Lo.prototype,"onClick",void 0),Uo([le()],Lo.prototype,"text",void 0),Uo([le({attribute:!1})],Lo.prototype,"isLoading",void 0),Uo([le({type:Boolean})],Lo.prototype,"disabled",void 0),Uo([le({type:String})],Lo.prototype,"height",void 0),Uo([le({type:String})],Lo.prototype,"width",void 0),Lo=Uo([ae("action-confirm-button")],Lo);var Ro=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Bo=class extends oe{constructor(){super(...arguments),this.height="425px",this.width="326px",this.useRoundedBorders=!0,this.headerText="",this.isMobileSized=!1,this.useGradientDesign=!1}async firstUpdated(){await new Promise((e=>setTimeout(e,0))),this.isMobileSized=vi(),window.addEventListener("resize",(()=>{this.isMobileSized=vi()}))}render(){return R`
|
|
2455
2455
|
<div
|
|
2456
2456
|
id="details-window-inner"
|
|
2457
2457
|
class="details-window-wrapper"
|
|
@@ -2485,7 +2485,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2485
2485
|
</div>
|
|
2486
2486
|
<slot class="details-window__slot-content"></slot>
|
|
2487
2487
|
</div>
|
|
2488
|
-
`}};
|
|
2488
|
+
`}};Bo.styles=l`
|
|
2489
2489
|
.details-window-wrapper {
|
|
2490
2490
|
background: rgba(255, 255, 255, 0.9);
|
|
2491
2491
|
box-shadow: 0px 0px 14px 5px rgba(0, 0, 0, 0.25);
|
|
@@ -2547,7 +2547,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2547
2547
|
border-radius: 0px 0px 0px 0px;
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
|
-
`,
|
|
2550
|
+
`,Ro([le({type:String})],Bo.prototype,"height",void 0),Ro([le({type:String})],Bo.prototype,"width",void 0),Ro([le({type:Boolean})],Bo.prototype,"useRoundedBorders",void 0),Ro([le({type:String})],Bo.prototype,"headerText",void 0),Ro([le({attribute:!1})],Bo.prototype,"onCloseClick",void 0),Ro([ue()],Bo.prototype,"isMobileSized",void 0),Ro([le({attribute:!0})],Bo.prototype,"useGradientDesign",void 0),Bo=Ro([ae("details-window")],Bo);var jo=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Ho=class extends oe{constructor(){super(...arguments),this.leadSources=[],this.chatId="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.buildingName="",this.orgLegalName="",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.featureFlagShowDropdown="",this.phoneNumberInputRef=Ae(),this.privatePolicyUrl="https://www.meetelise.com/privacy",this.termsOfServiceUrl="_blank",this.firstName="",this.lastName="",this.email="",this.phoneNumber="",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=>{if(!e.target||!this.phoneNumberInputRef.value)return;if(Me(e))return;const t=e.target;this.phoneNumber=_e(t.value),this.phoneNumberInputRef.value.value=this.phoneNumber},this.onChangeMessage=e=>{e.target&&(this.message=e.target.value)},this.enforceFormat=e=>{Oe(e)||Me(e)||e.preventDefault()},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&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.email)||(this.hasEmailError=!0),this.phoneNumber&&14===this.phoneNumber.length||(this.hasPhoneNumberError=!0),this.windowHeight=525+30*this.getNumErrors()},this.onClick=async()=>{var e,t,i,n,o;if(!(this.isSubmitting||(this.validateFormFields(),this.hasNameError||this.hasEmailError||this.hasPhoneNumberError||this.hasMessageError)))try{this.isSubmitting=!0,this.windowHeight=585;const r=this.selectedLeadSource&&this.selectedLeadSource.value?this.selectedLeadSource.value:this.currentLeadSource;await Fo(this.firstName,this.lastName,this.email,this.phoneNumber,this.message,this.buildingId,this.orgSlug,this.buildingSlug,[...new Set(r?[r,Nn(this.orgSlug)]:[Nn(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===(i=this.selectedLeadSource)||void 0===i?void 0:i.value)&&this.selectedLeadSource.value.length>0?this.selectedLeadSource.value:null})),null===(n=this.leadSourceClient)||void 0===n||n.checkAndHandleForLogLeadSource({webchatAction:"email-us",stateId:null}),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}},this.getNumErrors=()=>[this.hasNameError,this.hasEmailError,this.hasPhoneNumberError,this.hasMessageError,this.hasSubmissionError].filter((e=>e)).length,this.render=()=>(window.customElements.get("details-window")||window.customElements.define("details-window",Bo),window.customElements.get("action-confirm-button")||window.customElements.define("action-confirm-button",Lo),this.hasSubmittedForm?R`
|
|
2551
2551
|
<details-window
|
|
2552
2552
|
id="details-window"
|
|
2553
2553
|
headerText=""
|
|
@@ -2640,7 +2640,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2640
2640
|
</div>
|
|
2641
2641
|
`:""}
|
|
2642
2642
|
<div class="email-us__vertical-spacer"></div>
|
|
2643
|
-
${this.leadSources.length>0&&(this.featureFlagShowDropdown===
|
|
2643
|
+
${this.leadSources.length>0&&(this.featureFlagShowDropdown===sn.always||this.featureFlagShowDropdown===sn.onAttributionFailure&&0===this.currentLeadSource.length)?R`
|
|
2644
2644
|
<me-select
|
|
2645
2645
|
id="leadSource"
|
|
2646
2646
|
placeholder="How did you hear about us?"
|
|
@@ -2670,9 +2670,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2670
2670
|
`:""}
|
|
2671
2671
|
</div>
|
|
2672
2672
|
|
|
2673
|
-
${
|
|
2673
|
+
${Cn({buildingName:this.buildingName,phoneNumberInput:this.phoneNumber,emailInput:this.email,orgLegalName:this.orgLegalName,orgSlug:this.orgSlug})}
|
|
2674
2674
|
</details-window>
|
|
2675
|
-
`)}};
|
|
2675
|
+
`)}};Ho.styles=[l`
|
|
2676
2676
|
.email-us__name-input,
|
|
2677
2677
|
.email-us__contact_input,
|
|
2678
2678
|
.email-us_message-input {
|
|
@@ -2742,11 +2742,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2742
2742
|
width: 50%;
|
|
2743
2743
|
}
|
|
2744
2744
|
}
|
|
2745
|
-
`,
|
|
2745
|
+
`,Si],jo([le({attribute:!1})],Ho.prototype,"leadSources",void 0),jo([le({attribute:!1})],Ho.prototype,"onCloseClicked",void 0),jo([le({attribute:!0})],Ho.prototype,"chatId",void 0),jo([le({attribute:!1})],Ho.prototype,"buildingId",void 0),jo([le({attribute:!0})],Ho.prototype,"buildingSlug",void 0),jo([le({attribute:!0})],Ho.prototype,"orgSlug",void 0),jo([le({attribute:!0})],Ho.prototype,"buildingName",void 0),jo([le({attribute:!0})],Ho.prototype,"orgLegalName",void 0),jo([le({attribute:!0})],Ho.prototype,"leadSourceClient",void 0),jo([le({attribute:!0})],Ho.prototype,"leadSourceMultitouchClient",void 0),jo([le({attribute:!0})],Ho.prototype,"featureFlagShowDropdown",void 0),jo([le()],Ho.prototype,"privatePolicyUrl",void 0),jo([le()],Ho.prototype,"termsOfServiceUrl",void 0),jo([ue()],Ho.prototype,"firstName",void 0),jo([ue()],Ho.prototype,"lastName",void 0),jo([ue()],Ho.prototype,"email",void 0),jo([ue()],Ho.prototype,"phoneNumber",void 0),jo([ue()],Ho.prototype,"message",void 0),jo([ce("me-select#leadSource")],Ho.prototype,"selectedLeadSource",void 0),jo([le({attribute:!0})],Ho.prototype,"currentLeadSource",void 0),jo([ue()],Ho.prototype,"hasNameError",void 0),jo([ue()],Ho.prototype,"hasEmailError",void 0),jo([ue()],Ho.prototype,"hasPhoneNumberError",void 0),jo([ue()],Ho.prototype,"hasMessageError",void 0),jo([ue()],Ho.prototype,"hasSubmittedForm",void 0),jo([ue()],Ho.prototype,"windowHeight",void 0),jo([ue()],Ho.prototype,"hasSubmissionError",void 0),jo([ue()],Ho.prototype,"isSubmitting",void 0),Ho=jo([ae("email-us-window")],Ho);const Fo=async(e,i,n,o,r,a,s,l,u,c,d)=>{const h="+1"+o.replace("(","").replace(")","").replace(" ","").replace("-",""),p=new URLSearchParams(window.location.search),f={email_address:n,building_id:a,lead_sources:u,first_message:r,first_name:e,last_name:i,phone_number:h,referrer:document.referrer,query_params:Object.fromEntries(p.entries()),conversation_tracking_id:c,lead_sources_with_timestamps:(null!=d?d:[]).map((e=>bi({...e})))};pn("emailUsSubmitted",{firstName:e,lastName:i,email:n,phone:h,message:r,originatingSource:u.find((e=>"property-website"!==e))||null}),await t().post("https://app.meetelise.com/platformApi/state/create/emailMe",f,{headers:{"building-slug":l,"org-slug":s,"X-SecurityKey":"JRL8jV4VcSCwOSir5gWkpgNLfKghmhBG"}})},$o=(e="white")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="17" viewBox="0 0 14 17" fill="none">
|
|
2746
2746
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.95487 2.54301e-07H7.04513C8.51534 -1.22821e-05 9.67985 -2.22686e-05 10.5912 0.121084C11.5292 0.24572 12.2883 0.508324 12.887 1.10005C13.4857 1.69178 13.7514 2.44211 13.8775 3.36914C14 4.26992 14 5.42089 14 6.874V10.126C14 11.5791 14 12.7301 13.8775 13.6309C13.7514 14.5579 13.4857 15.3082 12.887 15.8999C12.2883 16.4917 11.5292 16.7543 10.5912 16.8789C9.67985 17 8.51534 17 7.04513 17H6.95487C5.48466 17 4.32015 17 3.40878 16.8789C2.47084 16.7543 1.71169 16.4917 1.11299 15.8999C0.514304 15.3082 0.248611 14.5579 0.122508 13.6309C-2.25306e-05 12.7301 -1.24266e-05 11.5791 2.57292e-07 10.126V6.87399C-1.24266e-05 5.42088 -2.25306e-05 4.26992 0.122508 3.36914C0.248611 2.44211 0.514304 1.69178 1.11299 1.10005C1.71169 0.508324 2.47084 0.24572 3.40878 0.121084C4.32015 -2.22686e-05 5.48466 -1.22821e-05 6.95487 2.54301e-07ZM2.85118 1.44157C2.45996 1.55714 2.18378 1.71904 1.96152 1.93871C1.62295 2.27335 1.42002 2.73167 1.31181 3.52718C1.20127 4.33975 1.2 5.41089 1.2 6.9186V10.0814C1.2 11.5891 1.20127 12.6602 1.31181 13.4728C1.42002 14.2683 1.62295 14.7267 1.96152 15.0613C2.30009 15.3959 2.76381 15.5965 3.56868 15.7034C4.39081 15.8127 5.47454 15.814 7 15.814C8.52546 15.814 9.60919 15.8127 10.4313 15.7034C11.2362 15.5965 11.6999 15.3959 12.0385 15.0613C12.377 14.7267 12.58 14.2683 12.6882 13.4728C12.7987 12.6602 12.8 11.5891 12.8 10.0814V6.9186C12.8 5.41089 12.7987 4.33975 12.6882 3.52718C12.58 2.73167 12.377 2.27335 12.0385 1.93871C11.8162 1.71905 11.54 1.55714 11.1488 1.44157C10.6194 2.22728 10.2493 2.77349 9.69896 3.1115C9.58916 3.17894 9.47507 3.23928 9.3574 3.29217C8.76366 3.55903 8.09363 3.55868 7.12834 3.55818C7.08613 3.55816 7.04336 3.55814 7 3.55814C6.95664 3.55814 6.91387 3.55816 6.87166 3.55818C5.90637 3.55868 5.23634 3.55903 4.6426 3.29217C4.52493 3.23928 4.41084 3.17894 4.30104 3.1115C3.75069 2.77349 3.38057 2.22729 2.85118 1.44157ZM4.16103 1.2383C4.51629 1.74715 4.70232 1.96157 4.9344 2.10411C5.00028 2.14457 5.06873 2.18078 5.13933 2.21251C5.46646 2.35954 5.85406 2.37209 7 2.37209C8.14594 2.37209 8.53354 2.35954 8.86066 2.21251C8.93127 2.18078 8.99972 2.14457 9.0656 2.10411C9.29768 1.96157 9.48371 1.74715 9.83897 1.2383C9.10278 1.18681 8.18457 1.18605 7 1.18605C5.81543 1.18605 4.89722 1.18681 4.16103 1.2383ZM4 14.0349C4 13.7074 4.26863 13.4419 4.6 13.4419H9.4C9.73137 13.4419 10 13.7074 10 14.0349C10 14.3624 9.73137 14.6279 9.4 14.6279H4.6C4.26863 14.6279 4 14.3624 4 14.0349Z" fill="${e}"/>
|
|
2747
|
-
</svg
|
|
2747
|
+
</svg>`,zo={},Qo=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];var Go=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let qo=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.phoneNumberToCall="",this.phoneNumberToText="",this.buildingId=0,this.buildingName="",this.chatCallUsHeader="",this.hasCallUsEnabled="",this.hasTextUsEnabled="",this.currentLeadSource="",this.orgLegalName="",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.phoneNumberInputRef=Ae(),this.hasSubmittedForm=!1,this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.submittingTextUsOption=!1,this.officeHoursTextInfo=[],this.firstUpdated=async()=>{this.buildingId&&this.hasCallUsEnabled&&(this.officeHoursTextInfo=await(async e=>{const i=await(async e=>{if(zo[e])return zo[e];const i=`https://app.meetelise.com/platformApi/connectors/talk_js/leasing_office_hours/${e}`,n=await t().get(i);return zo[e]=n.data,n.data})(e);return Qo.map((e=>{const t=i[e];return t?{dayOfWeek:e,startTime:t.start,endTime:t.end}:e}))})(this.buildingId))},this.getCallLink=e=>{const t=(e.match(/\d+/g)||[]).join(""),i=t.length<11?`1${t}`:t,n=`+${i[0]}-${i.slice(1,4)}-${i.slice(4,7)}-${i.slice(7)}`;return R`<a href="tel:${n}"
|
|
2748
2748
|
>${e}</a
|
|
2749
|
-
>`},this.enforcePhoneFormat=e=>{Oe(e)||Me(e)||e.preventDefault()},this.onSubmitTextUs=async()=>{var e,t,i,n;if(this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.phoneNumberToText&&14===this.phoneNumberToText.length||(this.hasPhoneNumberError=!0),!this.hasPhoneNumberError)try{this.submittingTextUsOption=!0,await
|
|
2749
|
+
>`},this.enforcePhoneFormat=e=>{Oe(e)||Me(e)||e.preventDefault()},this.onSubmitTextUs=async()=>{var e,t,i,n;if(this.hasPhoneNumberError=!1,this.hasSubmissionError=!1,this.phoneNumberToText&&14===this.phoneNumberToText.length||(this.hasPhoneNumberError=!0),!this.hasPhoneNumberError)try{this.submittingTextUsOption=!0,await Wo(this.phoneNumberToText,this.buildingId,this.orgSlug,this.buildingSlug,[...new Set(this.currentLeadSource?[this.currentLeadSource,Nn(this.orgSlug)]:[Nn(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})),null===(i=this.leadSourceClient)||void 0===i||i.checkAndHandleForLogLeadSource({webchatAction:"text-us",stateId:null}),null===(n=this.leadSourceMultitouchClient)||void 0===n||n.resetLeadSourceTouchpoints(),this.hasSubmittedForm=!0,this.submittingTextUsOption=!1}catch(e){this.submittingTextUsOption=!1,this.hasSubmissionError=!0}},this.onChangePhoneNumber=e=>{if(!e.target||!this.phoneNumberInputRef.value)return;if(Me(e))return;const t=e.target;this.phoneNumberToText=_e(t.value),this.phoneNumberInputRef.value.value=this.phoneNumberToText},this.renderFormTextUsOption=()=>R` <div class="text-us-wrapper">
|
|
2750
2750
|
<h1 class="text-us-window__header">Send Us a Text</h1>
|
|
2751
2751
|
<div class="text-us-window__input-container">
|
|
2752
2752
|
<input
|
|
@@ -2840,7 +2840,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2840
2840
|
Contact Our Leasing Team
|
|
2841
2841
|
</h1>
|
|
2842
2842
|
<div class="call-us-window__phone-redirect">
|
|
2843
|
-
${
|
|
2843
|
+
${$o("black")}
|
|
2844
2844
|
${this.getCallLink(this.phoneNumberToCall)}
|
|
2845
2845
|
</div>
|
|
2846
2846
|
<div class="call-us-window__office-hours-wrapper">
|
|
@@ -2866,7 +2866,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2866
2866
|
</div>`:""}
|
|
2867
2867
|
${this.hasTextUsEnabled?this.hasSubmittedForm?this.renderSubmittedTextUsOption():this.renderFormTextUsOption():""}
|
|
2868
2868
|
</details-window>
|
|
2869
|
-
`}};
|
|
2869
|
+
`}};qo.styles=[Si,l`
|
|
2870
2870
|
#call-us-window__content-wrapper {
|
|
2871
2871
|
font-family: "Helvetica Neue", Arial;
|
|
2872
2872
|
font-style: normal;
|
|
@@ -2971,7 +2971,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
2971
2971
|
.text-us-window__error {
|
|
2972
2972
|
color: rgb(255, 49, 3);
|
|
2973
2973
|
}
|
|
2974
|
-
`],
|
|
2974
|
+
`],Go([le({attribute:!0})],qo.prototype,"buildingSlug",void 0),Go([le({attribute:!0})],qo.prototype,"orgSlug",void 0),Go([le({attribute:!1})],qo.prototype,"onCloseClicked",void 0),Go([le()],qo.prototype,"phoneNumberToCall",void 0),Go([le()],qo.prototype,"phoneNumberToText",void 0),Go([le({attribute:!1})],qo.prototype,"buildingId",void 0),Go([le({attribute:!1})],qo.prototype,"buildingName",void 0),Go([le({attribute:!0})],qo.prototype,"chatCallUsHeader",void 0),Go([le({attribute:!0})],qo.prototype,"hasCallUsEnabled",void 0),Go([le({attribute:!0})],qo.prototype,"hasTextUsEnabled",void 0),Go([le({attribute:!0})],qo.prototype,"currentLeadSource",void 0),Go([le({attribute:!0})],qo.prototype,"orgLegalName",void 0),Go([le({attribute:!0})],qo.prototype,"leadSourceClient",void 0),Go([le({attribute:!0})],qo.prototype,"leadSourceMultitouchClient",void 0),Go([ue()],qo.prototype,"hasSubmittedForm",void 0),Go([ue()],qo.prototype,"hasPhoneNumberError",void 0),Go([ue()],qo.prototype,"hasSubmissionError",void 0),Go([ue()],qo.prototype,"submittingTextUsOption",void 0),Go([le({attribute:!1})],qo.prototype,"officeHoursTextInfo",void 0),qo=Go([ae("call-us-window")],qo);const Wo=async(e,i,n,o,r,a,s)=>{const l="+1"+e.replace("(","").replace(")","").replace(" ","").replace("-",""),u=new URLSearchParams(window.location.search),c={building_id:i,lead_sources:r,phone_number:l,referrer:document.referrer,query_params:Object.fromEntries(u.entries()),conversation_tracking_id:a,lead_sources_with_timestamps:(null!=s?s:[]).map((e=>bi({...e})))};pn("textUsSubmitted",{phone:l,originatingSource:r.find((e=>"property-website"!==e))||null}),await t().post("https://app.meetelise.com/platformApi/state/create/textMe",c,{headers:{"building-slug":o,"org-slug":n,"X-SecurityKey":"JRL8jV4VcSCwOSir5gWkpgNLfKghmhBG"}})},Vo=l`
|
|
2975
2975
|
:host {
|
|
2976
2976
|
display: block;
|
|
2977
2977
|
position: relative;
|
|
@@ -3288,10 +3288,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3288
3288
|
margin: 2px 0;
|
|
3289
3289
|
}
|
|
3290
3290
|
}
|
|
3291
|
-
`;class
|
|
3291
|
+
`;class Yo{constructor(e={}){var t,i,n,o,r,a;this.id=null!==(t=e.id)&&void 0!==t?t:"",this.description=null!==(i=e.description)&&void 0!==i?i:"",this.type=null!==(n=e.type)&&void 0!==n?n:"",this.rent=null!==(o=e.rent)&&void 0!==o?o:0,this.rentFrequency=null!==(r=e.rentFrequency)&&void 0!==r?r:"monthly",this.available=null!==(a=e.available)&&void 0!==a&&a,this.reservedUntil=e.reservedUntil?new Date(e.reservedUntil):void 0}}class Ko{constructor(e={}){var t,i,n,o,r;this.description=null!==(t=e.description)&&void 0!==t?t:"",this.type=null!==(i=e.type)&&void 0!==i?i:"",this.minAvailableItem=e.minAvailableItem?new Yo(e.minAvailableItem):void 0,this.maxAvailableItem=e.maxAvailableItem?new Yo(e.maxAvailableItem):void 0,this.allItems=(null!==(n=e.allItems)&&void 0!==n?n:[]).map((e=>new Yo(e))),this.rent=null!==(o=e.rent)&&void 0!==o?o:0,this.priceDescription=null!==(r=e.priceDescription)&&void 0!==r?r:""}get displayName(){return this.description}get itemDescription(){return this.description}}class Xo{constructor(e=[]){this.quantities=e}toKey(){return this.quantities.sort(((e,t)=>e.itemType.localeCompare(t.itemType))).map((e=>`${e.itemType}:${e.quantity}`)).join(",")}}class Zo{constructor(e={}){var t;this.rules=new Map,(null!==(t=e.pricingRules)&&void 0!==t?t:[]).forEach((e=>this.addRule(e)))}addRule(e){const t=e.combination.toKey();this.rules.set(t,e)}getPrice(e){const t=e.toKey(),i=this.rules.get(t);return null==i?void 0:i.price}toRuleArray(){return Array.from(this.rules.values())}toJSON(){return{pricingRules:this.toRuleArray()}}static fromJSON(e){var t;return new Zo({pricingRules:null===(t=e.pricingRules)||void 0===t?void 0:t.map((e=>({...e,combination:new Xo(e.combination.quantities)})))})}}var Jo;!function(e){e.OneTime="One Time",e.Monthly="Monthly",e.Quarterly="Quarterly",e.Annually="Annually",e.PerOccurrence="Per Occurrence"}(Jo||(Jo={}));class er{constructor(e={}){var t,i,n,o,r,a,s,l,u,c;this.category="Other",this.syncActive=!0,this.refundable=!1,this.publicFacing=!0,this.id=e.id,this.buildingId=null!==(t=e.buildingId)&&void 0!==t?t:0,this.feeName=null!==(i=e.feeName)&&void 0!==i?i:"",this.description=e.description,this.category=null!==(n=e.category)&&void 0!==n?n:"Other",this.unitIds=e.unitIds,this.layoutIds=e.layoutIds,this.startDate=e.startDate,this.endDate=e.endDate,this.source=e.source,this.externalKey=e.externalKey,this.syncActive=null===(o=e.syncActive)||void 0===o||o,this.hiddenReason=e.hiddenReason,this.refundable=null!==(r=e.refundable)&&void 0!==r&&r,this.bundleKey=e.bundleKey,this.publicFacing=null===(a=e.publicFacing)||void 0===a||a,this.chargeCode=e.chargeCode,this.prorated=e.prorated,this.pricingCategory=null!==(s=e.pricingCategory)&&void 0!==s?s:"mandatory",this.pricingType=null!==(l=e.pricingType)&&void 0!==l?l:"fixed",this.frequency=null!==(u=e.frequency)&&void 0!==u?u:Jo.OneTime,this.nlpPricing=e.nlpPricing,this.isAddon=null!==(c=e.isAddon)&&void 0!==c&&c,void 0!==e.amount&&(this.amount=e.amount),void 0!==e.percentRent&&(this.percentRent=e.percentRent),void 0!==e.unitLabel&&(this.unitLabel=e.unitLabel),void 0!==e.minAmount&&(this.minAmount=e.minAmount),void 0!==e.maxAmount&&(this.maxAmount=e.maxAmount);const d=e.customMatrixData;var h;d instanceof Zo?this.customMatrixData=d:(h=d)&&"object"==typeof h&&"pricingRules"in h&&Array.isArray(h.pricingRules)&&(this.customMatrixData=Zo.fromJSON(d))}get isOptional(){return"situational"===this.pricingCategory}get hasMatrix(){return!!this.customMatrixData}}const tr=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()}`:""}},ir=e=>new er(e),nr=e=>new Ko(e),or=async(e,i)=>{try{const n=(new tr).addArray("layout_ids",null==i?void 0:i.map((e=>e.toString()))),o=await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/fees?${n.build()}`);if(o.data){const e=mi(o.data);return{fees:e.fees.map(ir),rentableItems:e.rentableItems.map(nr),buildingIncentives:e.buildingIncentives}}}catch(t){Tn({logType:kn.error,buildingSlug:e,logTitle:"[ERROR_GETTING_FEES]",logData:{error:t}})}return{fees:[],rentableItems:[],buildingIncentives:[]}},rr=-1,ar=(e="black")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
|
|
3292
3292
|
<line x1="1.70782" y1="13.2254" x2="13.2376" y2="1.69554" stroke="${e}" stroke-width="2.13401"/>
|
|
3293
3293
|
<path d="M2.00929 1.99996L13.3328 13.3421" stroke="${e}" stroke-width="2.13401"/>
|
|
3294
|
-
</svg>`,
|
|
3294
|
+
</svg>`,sr=({color:e="#347FF7",size:t=24}={})=>B`
|
|
3295
3295
|
<svg width="${t}" height="${t}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3296
3296
|
<g id="Frame" clip-path="url(#clip0_18718_332018)">
|
|
3297
3297
|
<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"/>
|
|
@@ -3304,7 +3304,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3304
3304
|
</clipPath>
|
|
3305
3305
|
</defs>
|
|
3306
3306
|
</svg>
|
|
3307
|
-
`,
|
|
3307
|
+
`,lr=l`
|
|
3308
3308
|
:host {
|
|
3309
3309
|
display: block;
|
|
3310
3310
|
margin-bottom: 20px;
|
|
@@ -3338,9 +3338,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3338
3338
|
color: #868e96;
|
|
3339
3339
|
font-size: 0.8rem;
|
|
3340
3340
|
}
|
|
3341
|
-
`;var
|
|
3341
|
+
`;var ur=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let cr=class extends oe{constructor(){super(...arguments),this.promoAmount="0",this.promoDescription="",this.promoValidity=""}render(){return R`
|
|
3342
3342
|
<div class="promo-card">
|
|
3343
|
-
<div class="icon-container">${
|
|
3343
|
+
<div class="icon-container">${sr()}</div>
|
|
3344
3344
|
<div class="content-container">
|
|
3345
3345
|
<h2 class="promo-heading">
|
|
3346
3346
|
${this.promoAmount} ${this.promoDescription}
|
|
@@ -3348,7 +3348,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3348
3348
|
<div class="promo-subtitle">${this.promoValidity}</div>
|
|
3349
3349
|
</div>
|
|
3350
3350
|
</div>
|
|
3351
|
-
`}};
|
|
3351
|
+
`}};cr.styles=lr,ur([le({type:String})],cr.prototype,"promoAmount",void 0),ur([le({type:String})],cr.prototype,"promoDescription",void 0),ur([le({type:String})],cr.prototype,"promoValidity",void 0),cr=ur([ae("promo-card")],cr);const dr=l`
|
|
3352
3352
|
:host {
|
|
3353
3353
|
display: block;
|
|
3354
3354
|
}
|
|
@@ -3491,7 +3491,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3491
3491
|
overflow-x: auto;
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
|
-
`,
|
|
3494
|
+
`,hr=l`
|
|
3495
3495
|
:host {
|
|
3496
3496
|
display: block;
|
|
3497
3497
|
}
|
|
@@ -3595,7 +3595,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3595
3595
|
margin-right: 8px;
|
|
3596
3596
|
}
|
|
3597
3597
|
}
|
|
3598
|
-
`;var
|
|
3598
|
+
`;var pr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let fr=class extends oe{constructor(){super(...arguments),this.unit={},this.onUnitSelect=null,this.selected=!1}get bedAndBathText(){return`${0===this.unit.numberOfBedrooms?"studio":`${this.unit.numberOfBedrooms}bd`} | ${this.unit.numberOfBathrooms}ba`}get priceRange(){return this.unit.startingPrice===this.unit.maxPrice?`$${this.unit.startingPrice}`:`$${this.unit.startingPrice} - $${this.unit.maxPrice}`}handleOnUnitSelect(){var e;this.selected||(this.selected=!this.selected,null===(e=this.onUnitSelect)||void 0===e||e.call(this,this.unit))}handleOnImgClick(e){const t=e.target;window.open(t.src,"_blank")}render(){return R`
|
|
3599
3599
|
<div class="floorplan-image-card ${this.selected?"selected":""}">
|
|
3600
3600
|
<div class="section-left">
|
|
3601
3601
|
${this.unit.floorplanUrl?R`
|
|
@@ -3620,7 +3620,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3620
3620
|
</p>
|
|
3621
3621
|
</div>
|
|
3622
3622
|
</div>
|
|
3623
|
-
`}};
|
|
3623
|
+
`}};fr.styles=hr,pr([le({type:Object})],fr.prototype,"unit",void 0),pr([le()],fr.prototype,"onUnitSelect",void 0),pr([le({type:Boolean})],fr.prototype,"selected",void 0),fr=pr([ae("floorplan-image-card")],fr);var gr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let mr=class extends oe{constructor(){super(...arguments),this.size=64,this.spinSpeed=.8}updated(){this.style.setProperty("--mega-loader-size",`${this.size}px`),this.style.setProperty("--mega-loader-spin-speed",`${this.spinSpeed}s`)}render(){return R`<div class="spinner"></div>`}};mr.styles=l`
|
|
3624
3624
|
.spinner {
|
|
3625
3625
|
border: 4px solid rgba(0, 0, 0, 0.2);
|
|
3626
3626
|
border-top: 4px solid var(--primary-color, #c057ff);
|
|
@@ -3638,7 +3638,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3638
3638
|
transform: rotate(360deg);
|
|
3639
3639
|
}
|
|
3640
3640
|
}
|
|
3641
|
-
`,
|
|
3641
|
+
`,gr([le({type:Number})],mr.prototype,"size",void 0),gr([le({type:Number})],mr.prototype,"spinSpeed",void 0),mr=gr([ae("mega-loader")],mr);var br=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let vr=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.layoutOptions=[],this.selectedLayoutIds=[rr],this.units=[],this.isLoading=!1,this.onSelectLayout=null,this.onUnitSelect=null,this.onMoveInDateChange=null,this.onLeaseTermChange=null,this.moveInDate=gi,this.leaseTerm=12,this.selectedUnit=null,this.handleUnitSelect=e=>{var t;this.selectedUnit=e,null===(t=this.onUnitSelect)||void 0===t||t.call(this,e)},this.handleLayoutChange=e=>{var t;let i;e===rr?i=[rr]:this.selectedLayoutIds.includes(rr)?i=[e]:this.selectedLayoutIds.includes(e)?(i=this.selectedLayoutIds.filter((t=>t!==e)),0===i.length&&(i=[rr])):i=[...this.selectedLayoutIds,e],this.selectedLayoutIds=i,null===(t=this.onSelectLayout)||void 0===t||t.call(this,this.selectedLayoutIds)},this.handleMoveInDateChange=e=>{var t;const i=e.target.value;if(i){const[e,t,n]=i.split("-").map(Number);this.moveInDate=new Date(e,t-1,n)}else this.moveInDate=gi;null===(t=this.onMoveInDateChange)||void 0===t||t.call(this,i||gi.toISOString().split("T")[0])},this.handleLeaseTermChange=e=>{var t;this.leaseTerm=parseInt(e.target.value),null===(t=this.onLeaseTermChange)||void 0===t||t.call(this,this.leaseTerm)},this.renderUnitSelection=()=>{var e,t;return this.isLoading?R`
|
|
3642
3642
|
<div class="unit-selection">
|
|
3643
3643
|
<div class="loading-container">
|
|
3644
3644
|
<mega-loader size="32"></mega-loader>
|
|
@@ -3672,7 +3672,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3672
3672
|
</div>
|
|
3673
3673
|
`))}
|
|
3674
3674
|
</div>
|
|
3675
|
-
`}get displayOptions(){const e=e=>{let t=e;return Object.entries({zero:"0",one:"1",two:"2",three:"3",four:"4",five:"5",six:"6",seven:"7",eight:"8",nine:"9",ten:"10",eleven:"11",twelve:"12"}).forEach((([e,i])=>{const n=new RegExp(`\\b${e}\\b`,"gi");t=t.replace(n,i)})),t};return[{value:
|
|
3675
|
+
`}get displayOptions(){const e=e=>{let t=e;return Object.entries({zero:"0",one:"1",two:"2",three:"3",four:"4",five:"5",six:"6",seven:"7",eight:"8",nine:"9",ten:"10",eleven:"11",twelve:"12"}).forEach((([e,i])=>{const n=new RegExp(`\\b${e}\\b`,"gi");t=t.replace(n,i)})),t};return[{value:rr,label:"All"},...this.layoutOptions].map((t=>({...t,label:e(t.label.replace(/bedroom/gi,"bd"))}))).sort(((e,t)=>e.value-t.value))}render(){var e,t;return R`
|
|
3676
3676
|
<div class="floor-plan-selector">
|
|
3677
3677
|
<div class="floor-plan-selector-label">Select Floor Plan</div>
|
|
3678
3678
|
${this.renderBadges()}
|
|
@@ -3703,7 +3703,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3703
3703
|
${this.renderUnitSelection()}
|
|
3704
3704
|
</div>
|
|
3705
3705
|
</div>
|
|
3706
|
-
`}};
|
|
3706
|
+
`}};vr.styles=dr,br([le({type:String})],vr.prototype,"buildingSlug",void 0),br([le({type:Array})],vr.prototype,"layoutOptions",void 0),br([le({type:Array})],vr.prototype,"selectedLayoutIds",void 0),br([le({type:Array})],vr.prototype,"units",void 0),br([le({type:Boolean})],vr.prototype,"isLoading",void 0),br([le()],vr.prototype,"onSelectLayout",void 0),br([le()],vr.prototype,"onUnitSelect",void 0),br([le()],vr.prototype,"onMoveInDateChange",void 0),br([le()],vr.prototype,"onLeaseTermChange",void 0),br([ue()],vr.prototype,"moveInDate",void 0),br([ue()],vr.prototype,"leaseTerm",void 0),br([ue()],vr.prototype,"selectedUnit",void 0),vr=br([ae("floor-plan-selector")],vr);const yr=l`
|
|
3707
3707
|
:host {
|
|
3708
3708
|
display: block;
|
|
3709
3709
|
width: 100%;
|
|
@@ -3742,7 +3742,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3742
3742
|
font-size: 1rem;
|
|
3743
3743
|
align-self: center;
|
|
3744
3744
|
}
|
|
3745
|
-
`;var
|
|
3745
|
+
`;var wr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Cr=class extends oe{constructor(){super(...arguments),this.feeQuote=null}get name(){var e,t;if(null===(e=this.feeQuote)||void 0===e?void 0:e.sourceRentableItem)return xi(this.feeQuote.sourceRentableItem.description||"");const i=null===(t=this.feeQuote)||void 0===t?void 0:t.sourceFee;return(null==i?void 0:i.name)?xi(i.name):""}get description(){var e,t,i,n;return(null===(e=this.feeQuote)||void 0===e?void 0:e.sourceRentableItem)?`${this.feeQuote.sourceRentableItem.id}`:null!==(n=null===(i=null===(t=this.feeQuote)||void 0===t?void 0:t.sourceFee)||void 0===i?void 0:i.description)&&void 0!==n?n:""}get isRequired(){var e;return!!(null===(e=this.feeQuote)||void 0===e?void 0:e.sourceFee)&&"MANDATORY"===this.feeQuote.sourceFee.pricingMetadata.pricingCategory}get amount(){var e;if(!this.feeQuote)return null;const t=null!==(e=this.feeQuote.amountRange.fixedValue)&&void 0!==e?e:0;return 0===t?null:Ai(t)}render(){return this.feeQuote&&this.amount?R`
|
|
3746
3746
|
<div class="fee-item">
|
|
3747
3747
|
<div class="fee-info">
|
|
3748
3748
|
${this.isRequired?R`<div class="required-label">Required</div>`:""}
|
|
@@ -3751,7 +3751,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3751
3751
|
</div>
|
|
3752
3752
|
<div class="fee-amount">${this.amount}</div>
|
|
3753
3753
|
</div>
|
|
3754
|
-
`:R``}};
|
|
3754
|
+
`:R``}};Cr.styles=yr,wr([le({type:Object})],Cr.prototype,"feeQuote",void 0),Cr=wr([ae("fee-item")],Cr);var xr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Ar=class extends oe{constructor(){super(...arguments),this.feeQuotes=[]}get itemType(){const e=this.feeQuotes[0];return(null==e?void 0:e.sourceRentableItem)?xi(e.sourceRentableItem.description||""):""}get priceGroups(){const e=new Map;return this.feeQuotes.forEach((t=>{var i;const n=null!==(i=t.amountRange.fixedValue)&&void 0!==i?i:0;e.set(n,(e.get(n)||0)+1)})),Array.from(e.entries()).map((([e,t])=>({price:e,count:t}))).sort(((e,t)=>e.price-t.price))}get totalAmount(){const e=this.feeQuotes.reduce(((e,t)=>{var i;return e+(null!==(i=t.amountRange.fixedValue)&&void 0!==i?i:0)}),0);return Ai(e)}get isRequired(){return this.feeQuotes.some((e=>{var t,i;return"MANDATORY"===(null===(i=null===(t=e.sourceFee)||void 0===t?void 0:t.pricingMetadata)||void 0===i?void 0:i.pricingCategory)}))}get priceBreakdown(){const e=this.priceGroups;if(0===e.length)return"";const t=this.getUnitName();return e.map((e=>{return`${e.count} ${i=t,n=e.count,1===n?i:`${i}s`} @ ${Ai(e.price)}/month`;var i,n})).join(" + ")}getUnitName(){var e;const t=this.feeQuotes[0];return function(e){const t=e.toLowerCase();return t.includes("garage")||t.includes("parking")?"space":t.includes("storage")?"unit":t.includes("locker")?"locker":t.includes("bike")?"spot":"unit"}((null===(e=null==t?void 0:t.sourceRentableItem)||void 0===e?void 0:e.description)||"")}render(){return this.feeQuotes.length&&this.totalAmount!==Ai(0)?R`
|
|
3755
|
+
<div class="fee-item">
|
|
3756
|
+
<div class="fee-info">
|
|
3757
|
+
${this.isRequired?R`<div class="required-label">Required</div>`:""}
|
|
3758
|
+
<div class="fee-name">${this.itemType}</div>
|
|
3759
|
+
<div class="fee-description">${this.priceBreakdown}</div>
|
|
3760
|
+
</div>
|
|
3761
|
+
<div class="fee-amount">${this.totalAmount}</div>
|
|
3762
|
+
</div>
|
|
3763
|
+
`:R``}};Ar.styles=yr,xr([le({type:Array})],Ar.prototype,"feeQuotes",void 0),Ar=xr([ae("grouped-rentable-item")],Ar);const Sr=l`
|
|
3755
3764
|
.fee-card-section-container {
|
|
3756
3765
|
margin: 0 12px;
|
|
3757
3766
|
border-radius: 4px;
|
|
@@ -3811,27 +3820,23 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3811
3820
|
margin: 12px;
|
|
3812
3821
|
justify-content: space-between;
|
|
3813
3822
|
}
|
|
3814
|
-
`;var
|
|
3823
|
+
`;var kr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Tr=class extends oe{constructor(){super(...arguments),this.title="Fees",this.fees=[],this.buildingFeesToQuantity={},this.handleQuantityChange=(e,t)=>{this.buildingFeesToQuantity[e]=t,this.requestUpdate()}}get totalAmount(){const e=this.fees.reduce(((e,t)=>{var i;return e+(null!==(i=t.amountRange.fixedValue)&&void 0!==i?i:0)}),0);return Ai(e)}get groupedRentableItems(){const e=this.fees.filter((e=>e.sourceRentableItem));e.sort(((e,t)=>{var i,n;const o=(null===(i=e.sourceRentableItem)||void 0===i?void 0:i.description)||"",r=(null===(n=t.sourceRentableItem)||void 0===n?void 0:n.description)||"";return o.localeCompare(r,navigator.language,{numeric:!0})}));const t={};return e.forEach((e=>{var i;const n=(null===(i=e.sourceRentableItem)||void 0===i?void 0:i.description)||"unknown";t[n]||(t[n]=[]),t[n].push(e)})),t}get nonRentableItems(){return this.fees.filter((e=>!e.sourceRentableItem))}render(){return R`
|
|
3815
3824
|
<div class="fee-card-section-container">
|
|
3816
3825
|
<div class="fee-card-section-header">
|
|
3817
3826
|
<h1 class="section-title">${this.title}</h1>
|
|
3818
3827
|
</div>
|
|
3819
3828
|
|
|
3820
3829
|
<div class="fee-card-list">
|
|
3821
|
-
${this.
|
|
3830
|
+
${this.nonRentableItems.map((e=>R`<div class="fee-item-container">
|
|
3822
3831
|
<fee-item .feeQuote=${e}></fee-item>
|
|
3823
3832
|
</div>`))}
|
|
3833
|
+
${Object.entries(this.groupedRentableItems).map((([e,t])=>R`<div class="fee-item-container">
|
|
3834
|
+
<grouped-rentable-item
|
|
3835
|
+
.feeQuotes=${t}
|
|
3836
|
+
></grouped-rentable-item>
|
|
3837
|
+
</div>`))}
|
|
3824
3838
|
</div>
|
|
3825
3839
|
|
|
3826
|
-
${this.addons.length>0?R`
|
|
3827
|
-
<div class="fee-card-list">
|
|
3828
|
-
<div class="section-title-addons">Add-Ons</div>
|
|
3829
|
-
${this.addons.map((e=>R`<div class="fee-item-container">
|
|
3830
|
-
<fee-item .feeQuote=${e}></fee-item>
|
|
3831
|
-
</div>`))}
|
|
3832
|
-
</div>
|
|
3833
|
-
`:""}
|
|
3834
|
-
|
|
3835
3840
|
<div class="footer-container">
|
|
3836
3841
|
<div class="footer">
|
|
3837
3842
|
<h1 class="total-label">Estimated Total</h1>
|
|
@@ -3839,7 +3844,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
3839
3844
|
</div>
|
|
3840
3845
|
</div>
|
|
3841
3846
|
</div>
|
|
3842
|
-
`}};
|
|
3847
|
+
`}};Tr.styles=Sr,kr([le({type:String})],Tr.prototype,"title",void 0),kr([le({type:Array})],Tr.prototype,"fees",void 0),kr([ue()],Tr.prototype,"buildingFeesToQuantity",void 0),Tr=kr([ae("fee-card")],Tr);const _r=l`
|
|
3843
3848
|
:host {
|
|
3844
3849
|
--transition-timing: 0.2s ease;
|
|
3845
3850
|
display: flex;
|
|
@@ -4015,7 +4020,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4015
4020
|
box-sizing: border-box;
|
|
4016
4021
|
}
|
|
4017
4022
|
}
|
|
4018
|
-
`;var
|
|
4023
|
+
`;var Er,Or,Pr,Mr,Nr;!function(e){e.OneTime="OneTime",e.Daily="Daily",e.Weekly="Weekly",e.BiWeekly="BiWeekly",e.Monthly="Monthly",e.Yearly="Yearly",e.Unknown="Unknown"}(Er||(Er={})),function(e){e.Debit="Debit",e.Credit="Credit"}(Or||(Or={})),function(e){e.Fixed="Fixed",e.UsageBased="UsageBased",e.Varies="Varies"}(Pr||(Pr={})),function(e){e.AdminFee="AdminFee",e.ApplicationFee="ApplicationFee",e.Concession="Concession",e.Insurance="Insurance",e.LateFee="LateFee",e.Legal="Legal",e.NonSufficientFundFee="NSF",e.Other="Other",e.Parking="Parking",e.Penalty="Penalty",e.Pest="Pest",e.PetDeposit="PetDeposit",e.PetRent="PetRent",e.Refund="Refund",e.Relet="Relet",e.Rent="Rent",e.SecurityDeposit="SecurityDeposit",e.Storage="Storage",e.Trash="Trash",e.Utility="Utility",e.WaterSewer="WaterSewer"}(Mr||(Mr={})),function(e){e.NEVER="NEVER",e.ONE_TIME="ONE_TIME",e.MONTHLY="MONTHLY",e.WEEKLY="WEEKLY",e.BI_WEEKLY="BI_WEEKLY",e.ANNUALLY="ANNUALLY",e.DAILY="DAILY"}(Nr||(Nr={}));const Ir=l`
|
|
4019
4024
|
:host {
|
|
4020
4025
|
display: block;
|
|
4021
4026
|
--table-header-bg: white;
|
|
@@ -4083,14 +4088,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4083
4088
|
color: #888;
|
|
4084
4089
|
font-style: italic;
|
|
4085
4090
|
}
|
|
4086
|
-
`;var
|
|
4091
|
+
`;var Dr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Ur=class extends oe{constructor(){super(...arguments),this.tooltip="",this.disabled=!1}render(){return R`
|
|
4087
4092
|
<div
|
|
4088
4093
|
class="tooltip-container ${this.disabled?"":"show-tooltip"}"
|
|
4089
4094
|
data-tooltip="${this.tooltip}"
|
|
4090
4095
|
>
|
|
4091
4096
|
<slot></slot>
|
|
4092
4097
|
</div>
|
|
4093
|
-
`}};
|
|
4098
|
+
`}};Ur.styles=l`
|
|
4094
4099
|
:host {
|
|
4095
4100
|
display: block;
|
|
4096
4101
|
position: relative;
|
|
@@ -4124,7 +4129,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4124
4129
|
opacity: 1;
|
|
4125
4130
|
visibility: visible;
|
|
4126
4131
|
}
|
|
4127
|
-
`,
|
|
4132
|
+
`,Dr([le({type:String})],Ur.prototype,"tooltip",void 0),Dr([le({type:Boolean,reflect:!0})],Ur.prototype,"disabled",void 0),Ur=Dr([ae("simple-tooltip")],Ur);const Lr=l`
|
|
4128
4133
|
:host {
|
|
4129
4134
|
display: inline-flex;
|
|
4130
4135
|
}
|
|
@@ -4183,7 +4188,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4183
4188
|
font-style: italic;
|
|
4184
4189
|
cursor: not-allowed;
|
|
4185
4190
|
}
|
|
4186
|
-
`;var
|
|
4191
|
+
`;var Rr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Br=class extends oe{constructor(){super(...arguments),this.feeItem=null,this._previousFeeItemId=null,this.onQuantityChange=null,this.disabled=!1,this.quantity=0}get maxQuantity(){var e,t;return null!==(t=null===(e=this.feeItem)||void 0===e?void 0:e.maxAmount)&&void 0!==t?t:10}updated(e){var t,i;if(!e.has("feeItem"))return;const n=null!==(i=null===(t=this.feeItem)||void 0===t?void 0:t.id)&&void 0!==i?i:null;n!==this._previousFeeItemId&&(this.quantity=0,this._previousFeeItemId=n)}handleIncrement(){this.disabled||this.quantity>=this.maxQuantity||(this.quantity+=1,this.notifyQuantityChange())}handleDecrement(){this.disabled||this.quantity<=0||(this.quantity=Math.max(0,this.quantity-1),this.notifyQuantityChange())}notifyQuantityChange(){var e,t;this.onQuantityChange&&this.feeItem&&this.onQuantityChange({id:null!==(e=this.feeItem.id)&&void 0!==e?e:0,quantities:[{itemType:null!==(t=this.feeItem.unitLabel)&&void 0!==t?t:"",quantity:this.quantity}]})}render(){return this.feeItem?R`
|
|
4187
4192
|
<div class="quantity-control ${this.disabled?"unavailable":""}">
|
|
4188
4193
|
<button
|
|
4189
4194
|
class="quantity-button"
|
|
@@ -4205,7 +4210,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4205
4210
|
<span class="operator-sign">+</span>
|
|
4206
4211
|
</button>
|
|
4207
4212
|
</div>
|
|
4208
|
-
`:R``}};
|
|
4213
|
+
`:R``}};Br.styles=Lr,Rr([le({type:Object})],Br.prototype,"feeItem",void 0),Rr([le()],Br.prototype,"onQuantityChange",void 0),Rr([le({type:Boolean,reflect:!0})],Br.prototype,"disabled",void 0),Rr([le({type:Number})],Br.prototype,"quantity",void 0),Br=Rr([ae("table-addon-qty-selector")],Br);let jr=class extends oe{constructor(){super(...arguments),this.rentableItem=null,this._previousRentableItemType=null,this.onQuantityChange=null,this.disabled=!1,this.quantity=0,this.selectedItemIds=new Set}get totalAvailableItems(){var e,t,i;return null!==(i=null===(t=null===(e=this.rentableItem)||void 0===e?void 0:e.allItems)||void 0===t?void 0:t.filter((e=>e.available)).length)&&void 0!==i?i:0}get maxSelectableItems(){return Math.min(this.totalAvailableItems,10)}get atMaxUnits(){return this.quantity>=this.maxSelectableItems}get atMinUnits(){return this.quantity<=0}updated(e){var t,i;if(e.has("rentableItem")){const e=null!==(i=null===(t=this.rentableItem)||void 0===t?void 0:t.type)&&void 0!==i?i:null;e!==this._previousRentableItemType&&(this.selectedItemIds=new Set,this._previousRentableItemType=e)}}handleIncrement(){this.disabled||this.atMaxUnits||this.emitChange(this.quantity+1)}handleDecrement(){this.disabled||this.atMinUnits||this.emitChange(Math.max(0,this.quantity-1))}emitChange(e){var t;this.rentableItem&&(null===(t=this.onQuantityChange)||void 0===t||t.call(this,{type:this.rentableItem.type,quantity:e}))}render(){if(!this.rentableItem)return R``;const e=this.totalAvailableItems>0,t=this.disabled||!e||this.atMaxUnits,i=this.disabled||this.quantity<=0;return R`
|
|
4209
4214
|
<div
|
|
4210
4215
|
class="quantity-control ${!e||this.disabled?"unavailable":""}"
|
|
4211
4216
|
>
|
|
@@ -4229,7 +4234,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4229
4234
|
<span class="operator-sign">+</span>
|
|
4230
4235
|
</button>
|
|
4231
4236
|
</div>
|
|
4232
|
-
`}};
|
|
4237
|
+
`}};jr.styles=Lr,Rr([le({type:Object})],jr.prototype,"rentableItem",void 0),Rr([le()],jr.prototype,"onQuantityChange",void 0),Rr([le({type:Boolean,reflect:!0})],jr.prototype,"disabled",void 0),Rr([le({type:Number})],jr.prototype,"quantity",void 0),Rr([le({type:Set})],jr.prototype,"selectedItemIds",void 0),jr=Rr([ae("table-rentable-item-qty-selector")],jr);const Hr=l`
|
|
4233
4238
|
:host {
|
|
4234
4239
|
display: block;
|
|
4235
4240
|
}
|
|
@@ -4308,7 +4313,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4308
4313
|
font-style: italic;
|
|
4309
4314
|
cursor: not-allowed;
|
|
4310
4315
|
}
|
|
4311
|
-
`;var
|
|
4316
|
+
`;var Fr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let $r=class extends oe{constructor(){super(...arguments),this._feeItem=null,this.onQuantityChange=null,this.disabled=!1,this.quantities={},this._availableTypes=[]}set feeItem(e){var t,i;const n=this._feeItem,o=null!==(t=null==n?void 0:n.id)&&void 0!==t?t:null,r=null!==(i=null==e?void 0:e.id)&&void 0!==i?i:null;this._feeItem=e,r!==o&&(this.quantities={},this._availableTypes=this.getAvailableTypes()),this.requestUpdate("feeItem",n)}get feeItem(){return this._feeItem}get matrixRules(){var e,t,i;return null!==(i=null===(t=null===(e=this.feeItem)||void 0===e?void 0:e.customMatrixData)||void 0===t?void 0:t.toRuleArray())&&void 0!==i?i:[]}getAvailableTypes(){const e=new Set;return this.matrixRules.forEach((t=>{t.combination.quantities.forEach((t=>e.add(t.itemType)))})),Array.from(e).sort()}get itemTypes(){return this._availableTypes}getMaxQuantityForType(e){let t=0;return this.matrixRules.forEach((i=>{const n=i.combination.quantities.find((t=>t.itemType===e));n&&(t=Math.max(t,n.quantity))})),t}isValidCombination(e,t){const i={...this.quantities,[e]:t};return this.matrixRules.filter((t=>t.combination.quantities.some((t=>t.itemType===e)))).some((e=>{const t=new Map(e.combination.quantities.map((e=>[e.itemType,e.quantity])));return Array.from(t.entries()).every((([e,t])=>{var n;return(null!==(n=i[e])&&void 0!==n?n:0)===t}))}))}handleIncrement(e){var t;if(this.disabled)return;const i=(null!==(t=this.quantities[e])&&void 0!==t?t:0)+1;if(i>this.getMaxQuantityForType(e))return;if(!this.isValidCombination(e,i))return;const n={...this.quantities};n[e]=i,this.quantities=n,this.notifyQuantityChange()}handleDecrement(e){var t;if(this.disabled)return;const i=null!==(t=this.quantities[e])&&void 0!==t?t:0;if(i<=0)return;const n=i-1;if(!this.isValidCombination(e,n))return;const o={...this.quantities};o[e]=n,this.quantities=o,this.notifyQuantityChange()}notifyQuantityChange(){var e;if(!this.onQuantityChange||!this.feeItem)return;const t=this.itemTypes.map((e=>{var t;return{itemType:e,quantity:null!==(t=this.quantities[e])&&void 0!==t?t:0}}));this.onQuantityChange({id:null!==(e=this.feeItem.id)&&void 0!==e?e:0,quantities:t})}formatItemType(e){return e.split(/[_-]/).map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ")}renderItemType(e,t){var i;const n=null!==(i=this.quantities[e])&&void 0!==i?i:0,o=this.getMaxQuantityForType(e),r=this.isValidCombination(e,n+1)&&n<o,a=this.formatItemType(e);return R`
|
|
4312
4317
|
<div class="item-type-row">
|
|
4313
4318
|
${t?R`<div></div>`:R`<div class="item-label">${a}:</div>`}
|
|
4314
4319
|
<div class="quantity-control ${this.disabled?"unavailable":""}">
|
|
@@ -4339,7 +4344,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4339
4344
|
<div class="matrix-container">
|
|
4340
4345
|
${e.map((e=>this.renderItemType(e,t)))}
|
|
4341
4346
|
</div>
|
|
4342
|
-
`}}
|
|
4347
|
+
`}};$r.styles=Hr,Fr([le({type:Object})],$r.prototype,"feeItem",null),Fr([le()],$r.prototype,"onQuantityChange",void 0),Fr([le({type:Boolean,reflect:!0})],$r.prototype,"disabled",void 0),Fr([ue()],$r.prototype,"quantities",void 0),$r=Fr([ae("table-matrix-qty-selector")],$r);var zr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Qr=class extends oe{constructor(){super(...arguments),this._addons=[],this.disabled=!1,this.onAddonSelect=null,this.onRentableItemAdd=null,this.onRentableItemRemove=null,this.quantities=new Map,this.selectedRentableItemIds=new Map,this.handleAddonQuantityChange=e=>{var t;const i=e.id;1!==e.quantities.length||Array.isArray(this.quantities.get(i))?this.quantities.set(i,e.quantities):this.quantities.set(i,e.quantities[0].quantity),this.requestUpdate("quantities"),null===(t=this.onAddonSelect)||void 0===t||t.call(this,e)},this.handleRentableItemQuantityChange=e=>{var t,i,n,o,r,a;const s=null!==(t=this.quantities.get(e.type))&&void 0!==t?t:0;this.quantities.set(e.type,e.quantity),this.requestUpdate("quantities");const l=this.addons.find((t=>!(t instanceof er)&&t.type===e.type));if(!l)return;const u=null!==(i=this.selectedRentableItemIds.get(e.type))&&void 0!==i?i:new Set,c=(d=null!==(o=null===(n=l.allItems)||void 0===n?void 0:n.filter((e=>e.available)))&&void 0!==o?o:[],[...d].sort(((e,t)=>e.rent!==t.rent?e.rent-t.rent:e.id.localeCompare(t.id))));var d;if(e.quantity>s){const t=e.quantity-s;let i=0;const n=Math.min(c.length,10);if(u.size+t>n)return;for(const n of c){if(i>=t)break;u.has(n.id)||(u.add(n.id),null===(r=this.onRentableItemAdd)||void 0===r||r.call(this,{id:n.id,type:e.type}),i++)}}else if(e.quantity<s){const t=s-e.quantity;let i=0;const n=function(e){return[...e].sort(((e,t)=>e.rent!==t.rent?t.rent-e.rent:t.id.localeCompare(e.id)))}(c.filter((e=>u.has(e.id))));for(const o of n){if(i>=t)break;u.delete(o.id),null===(a=this.onRentableItemRemove)||void 0===a||a.call(this,{id:o.id,type:e.type}),i++}}this.selectedRentableItemIds.set(e.type,u),this.requestUpdate("selectedRentableItemIds")}}set addons(e){const t=this._addons;this._addons=e,e!==t&&this.initializeQuantities(),this.requestUpdate("addons",t)}get addons(){return this._addons}preserveExistingQuantity(e,t){const i=this.quantities.get(e);return null!=i?i:t}initializeRentableItemQuantity(e,t){const i=this.preserveExistingQuantity(e.type,0);t.set(e.type,i),this.selectedRentableItemIds.has(e.type)||this.selectedRentableItemIds.set(e.type,new Set)}initializeBuildingFeeQuantity(e,t){var i,n,o,r,a,s,l;if(!e.hasMatrix){const n=null!==(i=e.unitLabel)&&void 0!==i?i:0,o=this.preserveExistingQuantity(n,0);return void t.set(n,o)}const u=null!==(n=e.id)&&void 0!==n?n:0,c=this.preserveExistingQuantity(u,null);if(c&&Array.isArray(c))t.set(u,c);else{const i=null!==(l=null===(s=null===(a=null===(r=null===(o=e.customMatrixData)||void 0===o?void 0:o.toRuleArray())||void 0===r?void 0:r[0])||void 0===a?void 0:a.combination)||void 0===s?void 0:s.quantities.map((e=>({...e,quantity:0}))))&&void 0!==l?l:[{itemType:"default",quantity:0}];t.set(u,i)}}initializeQuantities(){const e=new Map;this.addons.forEach((t=>{t instanceof er?this.initializeBuildingFeeQuantity(t,e):this.initializeRentableItemQuantity(t,e)})),this.quantities=e}getName(e){return e instanceof er?e.feeName:e.displayName}getSortedAddons(){return[...this.addons].sort(((e,t)=>{const i=this.getName(e),n=this.getName(t);return i.localeCompare(n,navigator.language,{numeric:!0})}))}isRentableItemAvailable(e){var t,i;return e instanceof er||(null!==(i=null===(t=e.allItems)||void 0===t?void 0:t.filter((e=>e.available)).length)&&void 0!==i?i:0)>0}renderQtySelector(e){var t;if(e instanceof er)return e.hasMatrix?R`
|
|
4343
4348
|
<table-matrix-qty-selector
|
|
4344
4349
|
.feeItem=${e}
|
|
4345
4350
|
.onQuantityChange=${this.handleAddonQuantityChange}
|
|
@@ -4351,13 +4356,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4351
4356
|
.onQuantityChange=${this.handleAddonQuantityChange}
|
|
4352
4357
|
.disabled=${this.disabled}
|
|
4353
4358
|
></table-addon-qty-selector>
|
|
4354
|
-
|
|
4359
|
+
`;{const i=null!==(t=this.quantities.get(e.type))&&void 0!==t?t:0;return R`
|
|
4355
4360
|
<table-rentable-item-qty-selector
|
|
4356
4361
|
.rentableItem=${e}
|
|
4362
|
+
.quantity=${i}
|
|
4357
4363
|
.onQuantityChange=${this.handleRentableItemQuantityChange}
|
|
4358
4364
|
.disabled=${this.disabled}
|
|
4359
4365
|
></table-rentable-item-qty-selector>
|
|
4360
|
-
`}renderTableRows(){return this.getSortedAddons().map((e=>{const t=this.getName(e),i=this.isRentableItemAvailable(e);let n="";return this.disabled?n="Please select a unit first":i||(n="No inventory available"),R`
|
|
4366
|
+
`}}renderTableRows(){return this.getSortedAddons().map((e=>{const t=this.getName(e),i=this.isRentableItemAvailable(e);let n="";return this.disabled?n="Please select a unit first":i||(n="No inventory available"),R`
|
|
4361
4367
|
<tr>
|
|
4362
4368
|
<td>
|
|
4363
4369
|
<div class="addon-name">${t}</div>
|
|
@@ -4385,7 +4391,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4385
4391
|
</tbody>
|
|
4386
4392
|
</table>
|
|
4387
4393
|
</div>
|
|
4388
|
-
`:R`<div class="empty-state">No add-ons available</div> `}};
|
|
4394
|
+
`:R`<div class="empty-state">No add-ons available</div> `}};Qr.styles=Ir,zr([le({type:Array})],Qr.prototype,"addons",null),zr([le({type:Boolean})],Qr.prototype,"disabled",void 0),zr([le()],Qr.prototype,"onAddonSelect",void 0),zr([le({attribute:!1})],Qr.prototype,"onRentableItemAdd",void 0),zr([le({attribute:!1})],Qr.prototype,"onRentableItemRemove",void 0),zr([ue()],Qr.prototype,"quantities",void 0),zr([ue()],Qr.prototype,"selectedRentableItemIds",void 0),Qr=zr([ae("addon-table")],Qr);const Gr=l`
|
|
4389
4395
|
:host {
|
|
4390
4396
|
--skeleton-bg-color: #eaeaea;
|
|
4391
4397
|
--skeleton-highlight-color: #f5f5f5;
|
|
@@ -4399,8 +4405,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4399
4405
|
background-position: 200px 0;
|
|
4400
4406
|
}
|
|
4401
4407
|
}
|
|
4402
|
-
`,
|
|
4403
|
-
${
|
|
4408
|
+
`,qr=l`
|
|
4409
|
+
${Gr}
|
|
4404
4410
|
|
|
4405
4411
|
:host {
|
|
4406
4412
|
display: block;
|
|
@@ -4465,8 +4471,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4465
4471
|
margin-bottom: 10px;
|
|
4466
4472
|
}
|
|
4467
4473
|
}
|
|
4468
|
-
`,
|
|
4469
|
-
${
|
|
4474
|
+
`,Wr=l`
|
|
4475
|
+
${Gr}
|
|
4470
4476
|
|
|
4471
4477
|
:host {
|
|
4472
4478
|
display: block;
|
|
@@ -4488,16 +4494,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4488
4494
|
box-sizing: border-box;
|
|
4489
4495
|
}
|
|
4490
4496
|
}
|
|
4491
|
-
`;var
|
|
4497
|
+
`;var Vr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Yr=class extends oe{constructor(){super(...arguments),this.rows=2,this.header=!0}render(){return R`
|
|
4492
4498
|
<div class="skeleton-card">
|
|
4493
4499
|
${this.header?R`<div class="skeleton-header"></div>`:""}
|
|
4494
4500
|
${Array(this.rows).fill(0).map((()=>R`<div class="skeleton-row"></div>`))}
|
|
4495
4501
|
</div>
|
|
4496
|
-
`}};
|
|
4502
|
+
`}};Yr.styles=qr,Vr([le({type:Number})],Yr.prototype,"rows",void 0),Vr([le({type:Boolean})],Yr.prototype,"header",void 0),Yr=Vr([ae("skeleton-card")],Yr);var Kr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Xr=class extends oe{constructor(){super(...arguments),this.cards=3,this.rowsPerCard=[3,2,1]}render(){return R`
|
|
4497
4503
|
<div class="skeleton-loader">
|
|
4498
4504
|
${Array.from({length:this.cards},((e,t)=>{const i=Array.isArray(this.rowsPerCard)?this.rowsPerCard[t]||2:this.rowsPerCard;return R`<skeleton-card .rows=${i}></skeleton-card>`}))}
|
|
4499
4505
|
</div>
|
|
4500
|
-
`}};
|
|
4506
|
+
`}};Xr.styles=Wr,Kr([le({type:Number})],Xr.prototype,"cards",void 0),Kr([le({type:Array})],Xr.prototype,"rowsPerCard",void 0),Xr=Kr([ae("skeleton-loader")],Xr);var Zr=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Jr=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.showSkeletonLoader=!1,this.selectedUnit=null,this.quote=null,this.layoutOptions=[],this.selectedLayoutIds=[rr],this.groupedFees={[Jo.OneTime]:[],[Jo.Monthly]:[],[Jo.Quarterly]:[],[Jo.Annually]:[],[Jo.PerOccurrence]:[]},this.rentableItems=[],this.units=[],this.isLoadingUnits=!1,this.onSelectLayout=null,this.onUnitSelect=null,this.onMoveInDateChange=null,this.onLeaseTermChange=null,this.onAddonSelect=null,this.onRentableItemAdd=null,this.onRentableItemRemove=null}get addOns(){return[...Object.values(this.groupedFees).flat().filter((e=>e.isAddon)),...this.rentableItems].sort(((e,t)=>{var i,n,o,r;const a=e instanceof Ko,s=t instanceof Ko;if(!a&&!s)return 0;const l=!a||null!==(n=null===(i=e.allItems)||void 0===i?void 0:i.some((e=>e.available)))&&void 0!==n&&n;return l===(!s||null!==(r=null===(o=t.allItems)||void 0===o?void 0:o.some((e=>e.available)))&&void 0!==r&&r)?0:l?-1:1}))}get rentAsFeeQuote(){var e,t;return(null===(e=this.quote)||void 0===e?void 0:e.rentCost)?{sourceFee:{name:"Rent",description:`Unit ${null===(t=this.selectedUnit)||void 0===t?void 0:t.unitNumber}`,frequency:Nr.MONTHLY,pricingMetadata:{pricingCategory:"MANDATORY"}},amountRange:{fixedValue:this.quote.rentCost,minValue:null,maxValue:null},itemCombination:{quantities:[],toKey:()=>"rent"},isAddon:!1}:null}renderRecurringFeeSection(e,t){return(null==t?void 0:t.length)?R` <fee-card .fees=${t} title=${e}></fee-card> `:null}renderFeeSections(){var e,t;const i=[],n=[{freq:Nr.ANNUALLY,title:"Yearly Charges"},{freq:Nr.MONTHLY,title:"Monthly Charges"},{freq:Nr.BI_WEEKLY,title:"Bi-Weekly Charges"},{freq:Nr.WEEKLY,title:"Weekly Charges"},{freq:Nr.DAILY,title:"Daily Charges"},{freq:Nr.ONE_TIME,title:"Prior to Move-In"},{freq:Nr.NEVER,title:"No Charges"}],o=null===(e=this.quote)||void 0===e?void 0:e.feeQuotes;for(const{freq:e,title:r}of n){if(!(null==o?void 0:o.length)&&e!==Nr.MONTHLY)continue;let n=null!==(t=null==o?void 0:o.filter((t=>{var i;return(null===(i=t.sourceFee)||void 0===i?void 0:i.frequency)===e||!!t.sourceRentableItem&&("monthly"===t.sourceRentableItem.rentFrequency&&e===Nr.MONTHLY||"annually"===t.sourceRentableItem.rentFrequency&&e===Nr.ANNUALLY)})))&&void 0!==t?t:[];if(e===Nr.MONTHLY){const e=this.rentAsFeeQuote;e&&(n=[e,...n])}const a=this.renderRecurringFeeSection(r,n);a&&i.push(a)}return i}renderFeesContent(){return this.selectedUnit?R`
|
|
4501
4507
|
<div class="fees-container">
|
|
4502
4508
|
${this.showSkeletonLoader?R`
|
|
4503
4509
|
<div class="loading-container">
|
|
@@ -4524,7 +4530,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4524
4530
|
.addons=${this.addOns}
|
|
4525
4531
|
.disabled=${!this.selectedUnit}
|
|
4526
4532
|
.onAddonSelect=${this.onAddonSelect}
|
|
4527
|
-
.
|
|
4533
|
+
.onRentableItemAdd=${this.onRentableItemAdd}
|
|
4534
|
+
.onRentableItemRemove=${this.onRentableItemRemove}
|
|
4528
4535
|
></addon-table>
|
|
4529
4536
|
`}
|
|
4530
4537
|
</div>
|
|
@@ -4550,7 +4557,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4550
4557
|
|
|
4551
4558
|
${this.renderFeesContent()}
|
|
4552
4559
|
</div>
|
|
4553
|
-
`}};
|
|
4560
|
+
`}};Jr.styles=_r,Zr([le({type:String})],Jr.prototype,"buildingSlug",void 0),Zr([le({type:Boolean})],Jr.prototype,"showSkeletonLoader",void 0),Zr([le({type:Object})],Jr.prototype,"selectedUnit",void 0),Zr([le({type:Object})],Jr.prototype,"quote",void 0),Zr([le({type:Array})],Jr.prototype,"layoutOptions",void 0),Zr([le({type:Array})],Jr.prototype,"selectedLayoutIds",void 0),Zr([le({type:Object})],Jr.prototype,"groupedFees",void 0),Zr([le({type:Array})],Jr.prototype,"rentableItems",void 0),Zr([le({type:Array})],Jr.prototype,"units",void 0),Zr([le({type:Boolean})],Jr.prototype,"isLoadingUnits",void 0),Zr([le()],Jr.prototype,"onSelectLayout",void 0),Zr([le()],Jr.prototype,"onUnitSelect",void 0),Zr([le()],Jr.prototype,"onMoveInDateChange",void 0),Zr([le()],Jr.prototype,"onLeaseTermChange",void 0),Zr([le()],Jr.prototype,"onAddonSelect",void 0),Zr([le({attribute:!1})],Jr.prototype,"onRentableItemAdd",void 0),Zr([le({attribute:!1})],Jr.prototype,"onRentableItemRemove",void 0),Jr=Zr([ae("fee-calculator-layout")],Jr);var ea=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let ta=class extends oe{constructor(){super(...arguments),this.id="",this.showChatAdditionalActions=!1,this.buildingWebchatView=null,this.primaryColor=null,this.backgroundColor=null,this.enabledChatWidgets={callDesktop:!1,chatDesktop:!1,emailDesktop:!1,textDesktop:!1,sstDesktop:!1},this.onClickMinimize=()=>{},this.onClickEmailOption=()=>{},this.onClickPhoneOption=()=>{},this.onClickSSTOption=()=>{},this.onClose=()=>{}}render(){const e=this.primaryColor||Ie,t=this.backgroundColor||"#ffffff",i=this.buildingWebchatView&&Le(this.buildingWebchatView.orgId,this.buildingWebchatView.id)&&e!==Ie?Ue(e,.6):"black";return R`
|
|
4554
4561
|
<style>
|
|
4555
4562
|
#${this.id}::after {
|
|
4556
4563
|
border-right-color: ${i} !important;
|
|
@@ -4580,7 +4587,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4580
4587
|
.onClick=${this.onClose}
|
|
4581
4588
|
></minimize-expand-button>
|
|
4582
4589
|
</div>
|
|
4583
|
-
`}};
|
|
4590
|
+
`}};ta.styles=l`
|
|
4584
4591
|
.hideTab {
|
|
4585
4592
|
display: none;
|
|
4586
4593
|
}
|
|
@@ -4590,7 +4597,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4590
4597
|
justify-content: space-between;
|
|
4591
4598
|
gap: 32px;
|
|
4592
4599
|
}
|
|
4593
|
-
`,
|
|
4600
|
+
`,ea([le({type:String})],ta.prototype,"id",void 0),ea([le({type:Boolean})],ta.prototype,"showChatAdditionalActions",void 0),ea([le({type:Object})],ta.prototype,"buildingWebchatView",void 0),ea([le({type:String})],ta.prototype,"primaryColor",void 0),ea([le({type:String})],ta.prototype,"backgroundColor",void 0),ea([le({type:Object})],ta.prototype,"enabledChatWidgets",void 0),ea([le({attribute:!0})],ta.prototype,"onClickMinimize",void 0),ea([le({attribute:!0})],ta.prototype,"onClickEmailOption",void 0),ea([le({attribute:!0})],ta.prototype,"onClickPhoneOption",void 0),ea([le({attribute:!0})],ta.prototype,"onClickSSTOption",void 0),ea([le({attribute:!0})],ta.prototype,"onClose",void 0),ta=ea([ae("chat-additional-actions")],ta);const ia=l`
|
|
4594
4601
|
:host {
|
|
4595
4602
|
display: block;
|
|
4596
4603
|
}
|
|
@@ -4627,9 +4634,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4627
4634
|
font-size: 0.9rem;
|
|
4628
4635
|
opacity: 0.9;
|
|
4629
4636
|
}
|
|
4630
|
-
`;var
|
|
4637
|
+
`;var na=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let oa=class extends oe{getFormattedEndDate(e){return new Date(e.endDate).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}render(){return this.incentive?R`
|
|
4631
4638
|
<div class="incentive-banner">
|
|
4632
|
-
<div class="incentive-icon">${
|
|
4639
|
+
<div class="incentive-icon">${sr({size:32})}</div>
|
|
4633
4640
|
<div class="incentive-content">
|
|
4634
4641
|
<h2 class="incentive-title">
|
|
4635
4642
|
${this.incentive.originalIncentiveString}
|
|
@@ -4640,7 +4647,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4640
4647
|
</p>
|
|
4641
4648
|
</div>
|
|
4642
4649
|
</div>
|
|
4643
|
-
`:R``}};
|
|
4650
|
+
`:R``}};oa.styles=ia,na([le({type:Object})],oa.prototype,"incentive",void 0),oa=na([ae("incentive-banner")],oa);var ra=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let aa=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.primaryColor=Ie,this.backgroundColor=De,this.onCloseClicked=null,this.onClickEmailOption=null,this.onClickPhoneOption=null,this.onClickSSTOption=null,this.onClickTextUsOption=null,this.isFirstCalculation=!0,this.isCalculatingQuote=!1,this.isExporting=!1,this.selectedLayoutIds=[rr],this.selectedUnit=null,this.desiredAddons=[],this.desiredRentableItems=[],this.moveInDateString=gi.toISOString().split("T")[0],this.leaseTerm=12,this.buildingWebchatView=null,this.incentives=[],this.quote=null,this.groupedFees={[Jo.OneTime]:[],[Jo.Monthly]:[],[Jo.Quarterly]:[],[Jo.Annually]:[],[Jo.PerOccurrence]:[]},this.rentableItems=[],this.units=[],this.isLoadingUnits=!1,this.quoteAbortController=null,this.quoteDebounceTimer=null,this.startQuoteApiCall=async()=>{var e;null===(e=this.quoteAbortController)||void 0===e||e.abort(),this.quoteAbortController=new AbortController,this.isCalculatingQuote=!0,await this.performQuoteCalculation(this.quoteAbortController.signal)},this.firstUpdated=async()=>{this.style.setProperty("--primary-color",this.primaryColor),this.style.setProperty("--background-color",this.backgroundColor),await this.setupCalculator(),await this.fetchUnits()},this.setupCalculator=async()=>{if(!this.buildingSlug||!this.orgSlug)return;const[e,t]=await Promise.all([Bn(this.orgSlug,this.buildingSlug),or(this.buildingSlug)]);e&&t&&(this.buildingWebchatView=e,this.groupedFees=this.groupFees(t.fees),this.rentableItems=t.rentableItems)},this.requestQuoteCalculation=()=>{if(this.quoteDebounceTimer&&(clearTimeout(this.quoteDebounceTimer),this.quoteDebounceTimer=null),!this.selectedUnit||!this.moveInDateString)return this.quote=null,void(this.isCalculatingQuote=!1);this.quoteDebounceTimer=window.setTimeout((()=>{this.startQuoteApiCall(),this.quoteDebounceTimer=null}),1e3)},this.handleUnitSelect=e=>{const t=!this.selectedUnit;if(this.isFirstCalculation=!0,this.selectedUnit=e,t)return this.quoteDebounceTimer&&(clearTimeout(this.quoteDebounceTimer),this.quoteDebounceTimer=null),this.isCalculatingQuote=!0,void this.startQuoteApiCall();this.requestQuoteCalculation()},this.handleMoveInDateChange=async e=>{this.moveInDateString=e,await this.fetchUnits(),this.selectedUnit&&this.requestQuoteCalculation()},this.handleLeaseTermChange=async e=>{this.leaseTerm=e,await this.fetchUnits(),this.selectedUnit&&this.requestQuoteCalculation()},this.handleAddonSelect=e=>{const t=this.desiredAddons.some((t=>t.id===e.id));t&&e.quantities.every((e=>0===e.quantity))?this.desiredAddons=this.desiredAddons.filter((t=>t.id!==e.id)):t?this.desiredAddons=this.desiredAddons.map((t=>t.id===e.id?{...t,quantities:e.quantities}:t)):this.desiredAddons.push(e),this.requestQuoteCalculation()},this.handleRentableItemAdd=e=>{this.desiredRentableItems.some((t=>t.id===e.id))||this.desiredRentableItems.push(e),this.requestQuoteCalculation()},this.handleRentableItemRemove=e=>{this.desiredRentableItems=this.desiredRentableItems.filter((t=>t.id!==e.id)),this.requestQuoteCalculation()},this.groupFees=e=>e.reduce(((e,t)=>{const i=t.frequency||Jo.OneTime;return e[i]=[...e[i]||[],t],e}),{}),this.handleClickEmailOption=e=>{this.handleClose(),this.onClickEmailOption&&this.onClickEmailOption(e)},this.handleClickPhoneOption=e=>{this.handleClose(),this.onClickPhoneOption&&this.onClickPhoneOption(e)},this.handleClickSSTOption=e=>{this.handleClose(),this.onClickSSTOption&&this.onClickSSTOption(e)},this.handleClickTextUsOption=e=>{this.handleClose(),this.onClickTextUsOption&&this.onClickTextUsOption(e)},this.handleClose=()=>{var e;null===(e=this.onCloseClicked)||void 0===e||e.call(this)},this.handleSelectLayout=async e=>{this.selectedLayoutIds=e,await this.fetchUnits()},this.handleShare=async()=>{if(this.selectedUnit&&this.moveInDateString){this.isExporting=!0;try{const e=fi(Di(this.moveInDateString),Di(this.selectedUnit.earliestAvailable))?this.selectedUnit.earliestAvailable:this.moveInDateString;await(async({buildingSlug:e,unitId:i,unitNumber:n,addons:o,rentableItems:r,leaseTerm:a,moveInDate:s})=>{try{const l=await t().post(`https://app.meetelise.com/platformApi/webchat/${e}/fees/calculate/download`,bi({unitId:i,addons:o,rentableItems:r,leaseTerm:a,moveInDate:s}),{responseType:"blob"}),u=new Blob([l.data],{type:"application/pdf"}),c=URL.createObjectURL(u),d=document.createElement("a");d.href=c,d.download=`estimate-${n}.pdf`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(c)}catch(t){Tn({logType:kn.error,buildingSlug:e,logTitle:"[ERROR_DOWNLOADING_QUOTE_PDF]",logData:{error:t}})}})({buildingSlug:this.buildingSlug,unitId:this.selectedUnit.id,unitNumber:this.selectedUnit.unitNumber,addons:this.desiredAddons,rentableItems:this.desiredRentableItems,leaseTerm:this.leaseTerm,moveInDate:e})}finally{this.isExporting=!1}}},this.fetchUnits=async()=>{let e;this.isLoadingUnits=!0,this.selectedLayoutIds.includes(rr)||(e=this.selectedLayoutIds.map((e=>{return 0===(t=e)?0:Math.floor(t/10);var t})));try{this.units=await(async({buildingSlug:e,numBedrooms:i,moveInDateEarliestString:n,moveInDateLatest:o,leaseTermMin:r})=>{try{const a=o?o.toISOString().split("T")[0]:void 0,s=new tr;s.addArray("num_bedrooms",null==i?void 0:i.map((e=>e.toString()))).addSingle("move_in_date_earliest",n).addSingle("move_in_date_latest",a).addSingle("lease_term_min",null==r?void 0:r.toString());const l=s.build(),u=await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/units${l}`);if(u.data)return mi(u.data).map((e=>({...e,id:parseInt(e.id.toString().substring(1))})))}catch(t){Tn({logType:kn.error,buildingSlug:e,logTitle:"[ERROR_GETTING_UNITS]",logData:{error:t,params:{numBedrooms:i,moveInDateEarliestString:n,moveInDateLatest:o}}})}return[]})({buildingSlug:this.buildingSlug,moveInDateEarliestString:this.moveInDateString,...e?{numBedrooms:e}:{},leaseTermMin:this.leaseTerm}),this.selectedUnit&&(this.units.some((e=>{var t;return e.id===(null===(t=this.selectedUnit)||void 0===t?void 0:t.id)}))||(this.selectedUnit=null,this.quote=null))}finally{this.isLoadingUnits=!1}}}async performQuoteCalculation(e){if(!this.selectedUnit||!this.moveInDateString)return this.quote=null,void(this.isCalculatingQuote=!1);const i=fi(Di(this.moveInDateString),Di(this.selectedUnit.earliestAvailable))?this.selectedUnit.earliestAvailable:this.moveInDateString;try{const n=await(async({buildingSlug:e,unitId:i,addons:n,rentableItems:o,leaseTerm:r,moveInDate:a},s)=>{try{const l=await t().post(`https://app.meetelise.com/platformApi/webchat/${e}/fees/v2/calculate`,bi({unitId:i,addons:n,rentableItems:o,leaseTerm:r,moveInDate:a}),{signal:s});if(l.data)return mi(l.data)}catch(t){"ERR_CANCELED"!==t.code&&Tn({logType:kn.error,buildingSlug:e,logTitle:"[ERROR_CALCULATING_QUOTE]",logData:{error:t}})}return{quote:{}}})({buildingSlug:this.buildingSlug,unitId:this.selectedUnit.id,addons:this.desiredAddons,rentableItems:this.desiredRentableItems,leaseTerm:this.leaseTerm,moveInDate:i},e);this.quote=n.quote}catch(e){"AbortError"!==(null==e?void 0:e.name)&&(this.quote=null,this.isCalculatingQuote=!1,Tn({logType:kn.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_CALCULATING_QUOTE]",logData:{error:e}}))}finally{e.aborted||(this.isCalculatingQuote=!1,this.isFirstCalculation=!1)}}get layouts(){var e,t;return null!==(t=null===(e=this.buildingWebchatView)||void 0===e?void 0:e.layoutOptions)&&void 0!==t?t:[]}updated(e){(e.has("primaryColor")||e.has("backgroundColor"))&&(this.style.setProperty("--primary-color",this.primaryColor),this.style.setProperty("--background-color",this.backgroundColor))}disconnectedCallback(){var e;super.disconnectedCallback(),this.quoteDebounceTimer&&(clearTimeout(this.quoteDebounceTimer),this.quoteDebounceTimer=null),null===(e=this.quoteAbortController)||void 0===e||e.abort(),this.quoteAbortController=null}render(){var e,t;const i=this.isCalculatingQuote&&!this.isExporting&&!this.isFirstCalculation,n=this.isExporting||this.isCalculatingQuote||!this.selectedUnit||!this.moveInDateString;return R`
|
|
4644
4651
|
<div
|
|
4645
4652
|
class="fee-calculator-container"
|
|
4646
4653
|
@keydown=${e=>e.stopPropagation()}
|
|
@@ -4676,7 +4683,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4676
4683
|
class="close-button"
|
|
4677
4684
|
@click=${this.handleClose}
|
|
4678
4685
|
>
|
|
4679
|
-
${
|
|
4686
|
+
${ar("gray")}
|
|
4680
4687
|
</button>
|
|
4681
4688
|
</div>
|
|
4682
4689
|
</div>
|
|
@@ -4710,7 +4717,8 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4710
4717
|
.onMoveInDateChange=${this.handleMoveInDateChange}
|
|
4711
4718
|
.onLeaseTermChange=${this.handleLeaseTermChange}
|
|
4712
4719
|
.onAddonSelect=${this.handleAddonSelect}
|
|
4713
|
-
.
|
|
4720
|
+
.onRentableItemAdd=${this.handleRentableItemAdd}
|
|
4721
|
+
.onRentableItemRemove=${this.handleRentableItemRemove}
|
|
4714
4722
|
></fee-calculator-layout>
|
|
4715
4723
|
</div>
|
|
4716
4724
|
|
|
@@ -4720,7 +4728,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4720
4728
|
</div>
|
|
4721
4729
|
`:""}
|
|
4722
4730
|
</div>
|
|
4723
|
-
`}};
|
|
4731
|
+
`}};aa.styles=Vo,ra([le({attribute:!0})],aa.prototype,"buildingSlug",void 0),ra([le({attribute:!0})],aa.prototype,"orgSlug",void 0),ra([le({type:String})],aa.prototype,"primaryColor",void 0),ra([le({type:String})],aa.prototype,"backgroundColor",void 0),ra([le()],aa.prototype,"onCloseClicked",void 0),ra([le()],aa.prototype,"onClickEmailOption",void 0),ra([le()],aa.prototype,"onClickPhoneOption",void 0),ra([le()],aa.prototype,"onClickSSTOption",void 0),ra([le()],aa.prototype,"onClickTextUsOption",void 0),ra([ue()],aa.prototype,"isFirstCalculation",void 0),ra([ue()],aa.prototype,"isCalculatingQuote",void 0),ra([ue()],aa.prototype,"isExporting",void 0),ra([ue()],aa.prototype,"selectedLayoutIds",void 0),ra([ue()],aa.prototype,"selectedUnit",void 0),ra([ue()],aa.prototype,"desiredAddons",void 0),ra([ue()],aa.prototype,"desiredRentableItems",void 0),ra([ue()],aa.prototype,"moveInDateString",void 0),ra([ue()],aa.prototype,"leaseTerm",void 0),ra([ue()],aa.prototype,"buildingWebchatView",void 0),ra([ue()],aa.prototype,"incentives",void 0),ra([ue()],aa.prototype,"quote",void 0),ra([ue()],aa.prototype,"groupedFees",void 0),ra([ue()],aa.prototype,"rentableItems",void 0),ra([ue()],aa.prototype,"units",void 0),ra([ue()],aa.prototype,"isLoadingUnits",void 0),aa=ra([ae("fee-calculator")],aa);const sa=l`
|
|
4724
4732
|
#minimize-mobile {
|
|
4725
4733
|
position: absolute;
|
|
4726
4734
|
top: -12px;
|
|
@@ -4767,9 +4775,9 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4767
4775
|
justify-content: center;
|
|
4768
4776
|
align-items: center;
|
|
4769
4777
|
}
|
|
4770
|
-
`,
|
|
4778
|
+
`,la=(e="white")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
|
|
4771
4779
|
<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}"/>
|
|
4772
|
-
</svg>`,
|
|
4780
|
+
</svg>`,ua=(e="black")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
|
|
4773
4781
|
<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}"/>
|
|
4774
4782
|
<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"/>
|
|
4775
4783
|
<path d="M4.90283 1V2.30742" stroke="${e}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -4777,14 +4785,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4777
4785
|
<path d="M0 6.11862H0.00653352C-3.5908e-06 6.15131 0 6.19053 0 6.22322V6.11862Z" fill="white"/>
|
|
4778
4786
|
<path d="M15.689 6.11862V6.22322C15.689 6.19053 15.689 6.15131 15.6825 6.11862H15.689Z" fill="white"/>
|
|
4779
4787
|
<path d="M4.74594 11.9562L6.56326 13.7735C6.8182 14.0285 7.23004 14.0285 7.48499 13.7735L10.9366 10.3219" stroke="${e}" stroke-miterlimit="10" stroke-linecap="round"/>
|
|
4780
|
-
</svg>`,
|
|
4788
|
+
</svg>`,ca=(e="white")=>B`
|
|
4781
4789
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
4782
4790
|
<path
|
|
4783
4791
|
fill-rule="evenodd"
|
|
4784
4792
|
clip-rule="evenodd"
|
|
4785
4793
|
d="M6.64026 0.25H8.8598C10.0157 0.249995 10.9219 0.249992 11.6459 0.318826C12.3838 0.388987 12.988 0.534458 13.5206 0.860861C14.0784 1.20267 14.5474 1.67164 14.8892 2.22942C15.2156 2.76206 15.3611 3.36627 15.4312 4.10419C15.5001 4.82813 15.5001 5.73432 15.5001 6.89025V7.65964C15.5001 8.48243 15.5001 9.12755 15.4645 9.64868C15.4283 10.1789 15.3535 10.6202 15.1845 11.0283C14.7638 12.044 13.9568 12.851 12.9411 13.2717C12.3607 13.5121 11.6997 13.5654 10.7947 13.581C10.4782 13.5865 10.2777 13.5905 10.1248 13.6074C9.98202 13.6232 9.92665 13.6464 9.89426 13.6652C9.86008 13.6851 9.81351 13.7213 9.73267 13.8323C9.64518 13.9523 9.54632 14.1182 9.38955 14.3831L8.99874 15.0433C8.44104 15.9856 7.05899 15.9856 6.5013 15.0433L6.11048 14.3831C5.95371 14.1182 5.85485 13.9523 5.76736 13.8323C5.68652 13.7213 5.63995 13.6851 5.60577 13.6652C5.57338 13.6464 5.51801 13.6232 5.37519 13.6074C5.22235 13.5905 5.02184 13.5865 4.70528 13.581C3.80031 13.5654 3.13933 13.5121 2.559 13.2717C1.54327 12.851 0.736277 12.044 0.315547 11.0283C0.146515 10.6202 0.0717299 10.1789 0.0355529 9.64868C-4.05001e-06 9.12754 -2.20251e-06 8.48243 1.60891e-07 7.65963L7.4949e-08 6.89026C-4.52294e-06 5.73432 -8.08928e-06 4.82814 0.0688256 4.10419C0.138987 3.36627 0.284458 2.76206 0.610861 2.22942C0.95267 1.67164 1.42164 1.20267 1.97942 0.860861C2.51206 0.534458 3.11627 0.388987 3.85419 0.318826C4.57814 0.249992 5.48432 0.249995 6.64026 0.25ZM3.95654 1.39537C3.29779 1.458 2.87862 1.57812 2.54445 1.78291C2.13217 2.03555 1.78555 2.38217 1.53291 2.79445C1.32812 3.12862 1.208 3.54779 1.14537 4.20654C1.08197 4.87334 1.0814 5.7282 1.0814 6.91863V7.63956C1.0814 8.48674 1.08169 9.09505 1.11444 9.57507C1.14686 10.0502 1.20927 10.3601 1.31463 10.6144C1.6256 11.3652 2.22208 11.9617 2.97284 12.2726C3.34458 12.4266 3.81883 12.4842 4.72391 12.4998L4.74685 12.5002C5.03378 12.5051 5.28522 12.5094 5.49421 12.5326C5.71878 12.5574 5.9384 12.6077 6.14946 12.7304C6.35874 12.8522 6.50969 13.0148 6.64128 13.1953C6.76287 13.3622 6.88783 13.5733 7.02936 13.8124L7.4319 14.4925C7.57086 14.7273 7.92917 14.7273 8.06813 14.4925L8.47067 13.8124C8.6122 13.5733 8.73716 13.3622 8.85875 13.1953C8.99034 13.0148 9.14129 12.8522 9.35057 12.7304C9.56163 12.6077 9.78126 12.5574 10.0058 12.5326C10.2148 12.5094 10.4662 12.5051 10.7532 12.5002L10.7761 12.4998C11.6812 12.4842 12.1555 12.4266 12.5272 12.2726C13.278 11.9617 13.8745 11.3652 14.1854 10.6144C14.2908 10.3601 14.3532 10.0502 14.3856 9.57507C14.4184 9.09505 14.4187 8.48674 14.4187 7.63956V6.91863C14.4187 5.7282 14.4181 4.87334 14.3547 4.20654C14.2921 3.54779 14.1719 3.12862 13.9672 2.79445C13.7145 2.38217 13.3679 2.03555 12.9556 1.78291C12.6214 1.57812 12.2023 1.458 11.5435 1.39537C10.8767 1.33197 10.0219 1.3314 8.83143 1.3314H6.66863C5.4782 1.3314 4.62334 1.33197 3.95654 1.39537ZM7.75003 3.85467C8.04865 3.85467 8.29073 4.09674 8.29073 4.39536V10.1628C8.29073 10.4614 8.04865 10.7035 7.75003 10.7035C7.45141 10.7035 7.20933 10.4614 7.20933 10.1628V4.39536C7.20933 4.09674 7.45141 3.85467 7.75003 3.85467ZM4.8663 5.29653C5.16492 5.29653 5.407 5.53861 5.407 5.83723V8.72096C5.407 9.01958 5.16492 9.26166 4.8663 9.26166C4.56768 9.26166 4.3256 9.01958 4.3256 8.72096V5.83723C4.3256 5.53861 4.56768 5.29653 4.8663 5.29653ZM10.6338 5.29653C10.9324 5.29653 11.1745 5.53861 11.1745 5.83723V8.72096C11.1745 9.01958 10.9324 9.26166 10.6338 9.26166C10.3351 9.26166 10.0931 9.01958 10.0931 8.72096V5.83723C10.0931 5.53861 10.3351 5.29653 10.6338 5.29653Z"
|
|
4786
4794
|
fill="${e}"/>
|
|
4787
|
-
</svg>`,
|
|
4795
|
+
</svg>`,da=(e="white")=>B`<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4788
4796
|
<g clip-path="url(#clip0_18382_27345)">
|
|
4789
4797
|
<g clip-path="url(#clip1_18382_27345)">
|
|
4790
4798
|
<path d="M9.91666 0.625V3.45833C9.91666 3.6462 9.99128 3.82636 10.1241 3.9592C10.257 4.09204 10.4371 4.16667 10.625 4.16667H13.4583" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -4801,7 +4809,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4801
4809
|
</clipPath>
|
|
4802
4810
|
</defs>
|
|
4803
4811
|
</svg>
|
|
4804
|
-
`,
|
|
4812
|
+
`,ha=(e="white",t=20,i=-2)=>B`
|
|
4805
4813
|
<svg
|
|
4806
4814
|
width="${t}"
|
|
4807
4815
|
height="${t}"
|
|
@@ -4874,7 +4882,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4874
4882
|
</clipPath>
|
|
4875
4883
|
</defs>
|
|
4876
4884
|
</svg>
|
|
4877
|
-
`;var
|
|
4885
|
+
`;var pa=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let fa=class extends oe{constructor(){super(...arguments),this.onClickMinimize=()=>{},this.onClickEmailOption=()=>{},this.onClickPhoneOption=()=>{},this.onClickSSTOption=()=>{},this.onClickApplyNowOption=()=>{},this.onClickPriceCalculatorOption=()=>{},this.onChatTapped=()=>{},this.hideChat=!1,this.isMobileDesign=!1,this.primaryColor=Ie,this.backgroundColor=De,this.hasChatEnabled=!1,this.hasEmailEnabled=!1,this.hasCallUsEnabled=!1,this.hasTextUsEnabled=!1,this.hasSSTEnabled=!1,this.hasApplyNowEnabled=!1,this.hasPricingCalculatorEnabled=!1,this.applicationLink="",this.overrideRentgrata=!1,this.foregroundColorOnSecondaryBackgroundColor="black",this.renderListElement=(e,t,i)=>e?R` <li
|
|
4878
4886
|
@click=${t}
|
|
4879
4887
|
class="typeMobile-bttn"
|
|
4880
4888
|
style=${Ne({background:`${this.primaryColor}`})}
|
|
@@ -4887,12 +4895,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4887
4895
|
</div>
|
|
4888
4896
|
</li>`:""}render(){return R`<div class="typeMobile-list">
|
|
4889
4897
|
<ul>
|
|
4890
|
-
${this.renderListElement(!(!this.hasApplyNowEnabled||!this.applicationLink),this.onClickApplyNowOption,
|
|
4891
|
-
${this.renderListElement(this.hasPricingCalculatorEnabled,this.onClickPriceCalculatorOption,
|
|
4892
|
-
${this.renderListElement(this.hasEmailEnabled,this.onClickEmailOption,
|
|
4893
|
-
${this.renderListElement(this.hasCallUsEnabled||this.hasTextUsEnabled,this.onClickPhoneOption
|
|
4894
|
-
${this.renderListElement(this.hasSSTEnabled,this.onClickSSTOption,
|
|
4895
|
-
${this.renderListElement(this.hasChatEnabled&&!this.hideChat,this.onChatTapped,
|
|
4898
|
+
${this.renderListElement(!(!this.hasApplyNowEnabled||!this.applicationLink),this.onClickApplyNowOption,da(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
4899
|
+
${this.renderListElement(this.hasPricingCalculatorEnabled,this.onClickPriceCalculatorOption,ha("black"))}
|
|
4900
|
+
${this.renderListElement(this.hasEmailEnabled,this.onClickEmailOption,la(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
4901
|
+
${this.renderListElement(this.hasCallUsEnabled||this.hasTextUsEnabled,this.onClickPhoneOption,$o(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
4902
|
+
${this.renderListElement(this.hasSSTEnabled,this.onClickSSTOption,ua(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
4903
|
+
${this.renderListElement(this.hasChatEnabled&&!this.hideChat,this.onChatTapped,ca(this.foregroundColorOnSecondaryBackgroundColor))}
|
|
4896
4904
|
${this.isMobileDesign||this.hideChat?"":R`
|
|
4897
4905
|
<li>
|
|
4898
4906
|
<minimize-expand-button
|
|
@@ -4903,20 +4911,20 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4903
4911
|
</li>
|
|
4904
4912
|
`}
|
|
4905
4913
|
</ul>
|
|
4906
|
-
</div>`}};
|
|
4914
|
+
</div>`}};fa.styles=[sa],pa([le({attribute:!0})],fa.prototype,"onClickMinimize",void 0),pa([le({attribute:!0})],fa.prototype,"onClickEmailOption",void 0),pa([le({attribute:!0})],fa.prototype,"onClickPhoneOption",void 0),pa([le({attribute:!0})],fa.prototype,"onClickSSTOption",void 0),pa([le({attribute:!0})],fa.prototype,"onClickApplyNowOption",void 0),pa([le({attribute:!0})],fa.prototype,"onClickPriceCalculatorOption",void 0),pa([le({attribute:!0})],fa.prototype,"onChatTapped",void 0),pa([le({attribute:!0})],fa.prototype,"hideChat",void 0),pa([le({attribute:!0})],fa.prototype,"isMobileDesign",void 0),pa([le({attribute:!0})],fa.prototype,"primaryColor",void 0),pa([le({attribute:!0})],fa.prototype,"backgroundColor",void 0),pa([le({attribute:!0})],fa.prototype,"hasChatEnabled",void 0),pa([le({attribute:!0})],fa.prototype,"hasEmailEnabled",void 0),pa([le({attribute:!0})],fa.prototype,"hasCallUsEnabled",void 0),pa([le({attribute:!0})],fa.prototype,"hasTextUsEnabled",void 0),pa([le({attribute:!0})],fa.prototype,"hasSSTEnabled",void 0),pa([le({attribute:!0})],fa.prototype,"hasApplyNowEnabled",void 0),pa([le({attribute:!0})],fa.prototype,"hasPricingCalculatorEnabled",void 0),pa([le({attribute:!0})],fa.prototype,"applicationLink",void 0),pa([le({attribute:!0})],fa.prototype,"overrideRentgrata",void 0),pa([le({attribute:!0})],fa.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),fa=pa([ae("mobile-launcher")],fa);const ga=(e="white")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
4907
4915
|
<path d="M1.31812 7L4.31812 4L1.31811 1" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4908
|
-
</svg>`;var
|
|
4916
|
+
</svg>`;var ma=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let ba=class extends oe{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Ie,this.toExpand=!1}render(){return R`
|
|
4909
4917
|
<div class=${"button-container"} @click=${this.onClick}>
|
|
4910
4918
|
<div
|
|
4911
4919
|
class="inner-container"
|
|
4912
4920
|
style=${Ne({background:this.primaryColor})}
|
|
4913
4921
|
>
|
|
4914
|
-
${this.toExpand?
|
|
4922
|
+
${this.toExpand?ga("black"):((e="white")=>B`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
|
|
4915
4923
|
<path d="M3.68188 7L0.681885 4L3.68188 1" stroke="${e}" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4916
4924
|
</svg>`)("black")}
|
|
4917
4925
|
</div>
|
|
4918
4926
|
</div>
|
|
4919
|
-
`}};
|
|
4927
|
+
`}};ba.styles=[l`
|
|
4920
4928
|
.button-container {
|
|
4921
4929
|
width: 36px;
|
|
4922
4930
|
height: 36px;
|
|
@@ -4940,11 +4948,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4940
4948
|
.button-container:hover {
|
|
4941
4949
|
filter: brightness(90%);
|
|
4942
4950
|
}
|
|
4943
|
-
`],
|
|
4951
|
+
`],ma([le({attribute:!0})],ba.prototype,"onClick",void 0),ma([le({attribute:!0})],ba.prototype,"primaryColor",void 0),ma([le({attribute:!0})],ba.prototype,"toExpand",void 0),ba=ma([ae("collapse-expand-button")],ba);const va=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.openWidget()},ya=()=>{const e=window.rentgrata;if(!e)return;const t=e.Widget;t&&t.openWidget&&t.close()},wa=()=>!!window.rentgrata;var Ca=i(308),xa=i.n(Ca);const Aa=(e="black")=>B`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4944
4952
|
<path d="M6 6C7.65685 6 9 4.65685 9 3C9 1.34315 7.65685 0 6 0C4.34315 0 3 1.34315 3 3C3 4.65685 4.34315 6 6 6ZM8 3C8 4.10457 7.10457 5 6 5C4.89543 5 4 4.10457 4 3C4 1.89543 4.89543 1 6 1C7.10457 1 8 1.89543 8 3Z" fill="${e}"/>
|
|
4945
4953
|
<path d="M12 11C12 12 11 12 11 12H1C1 12 0 12 0 11C0 10 1 7 6 7C11 7 12 10 12 11ZM11 10.9965C10.9986 10.7497 10.8462 10.0104 10.1679 9.33211C9.51563 8.67985 8.2891 8 5.99999 8C3.71088 8 2.48435 8.67985 1.8321 9.33211C1.15375 10.0104 1.00142 10.7497 1 10.9965H11Z" fill="${e}"/>
|
|
4946
4954
|
</svg>
|
|
4947
|
-
`;var
|
|
4955
|
+
`;var Sa=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let ka=class extends oe{constructor(){super(...arguments),this.isMinimized=!1,this.mobileStyles={},this.isFirstMount=!1,this.autoOpenChatWidget=!1,this.phoneNumber="",this.buildingName="",this.chatId="",this.orgLegalName="",this.chatCallUsHeader="",this.buildingId=0,this.buildingSlug="",this.orgSlug="",this.sgtUrl="",this.selfGuidedTourEnabled=!1,this.selfGuidedToursTypeOffered="",this.designConcept="",this.featureFlagShowDropdown="",this.leadSources=[],this.currentLeadSource="",this.escortedToursLink="",this.escortedToursTypeOffered="",this.virtualToursLink="",this.virtualToursTypeOffered="",this.hasChatEnabledDesktop=!1,this.hasChatEnabledMobile=!1,this.hasEmailEnabledDesktop=!1,this.hasEmailEnabledMobile=!1,this.hasApplyNowEnabledDesktop=!1,this.hasApplyNowEnabledMobile=!1,this.applicationLink="",this.hasCallUsEnabledDesktop=!1,this.hasCallUsEnabledMobile=!1,this.hasTextUsEnabledDesktop=!1,this.hasTextUsEnabledMobile=!1,this.hasSSTEnabledDesktop=!1,this.hasSSTEnabledMobile=!1,this.tourTypeOptions=[],this.hasDynamicSchedulingEnabled=!1,this.hasPricingCalculatorEnabledDesktop=!1,this.hasPricingCalculatorEnabledMobile=!1,this.onExitChat=()=>{},this.hasHideMobileFeatures=!1,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.showTourNextToChat=!1,this.onChatTapped=()=>{},this.onClickMinimize=()=>{},this.onSstClose=xa(),this.overrideRentgrata=!1,this.launcherStyles={},this.primaryColor=Ie,this.backgroundColor=De,this.foregroundColorOnPrimaryBackgroundColor="white",this.foregroundColorOnSecondaryBackgroundColor="black",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.isEmailWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isSSTWindowOpen=!1,this.isTextUsWindowOpen=!1,this.isCalculatorWindowOpen=!1,this.isMobileFeaturesExpanded=!1,this.getNumCallToActions=()=>[this.hasEmailEnabledDesktop||this.hasEmailEnabledMobile,!!this.phoneNumber&&(this.hasCallUsEnabledDesktop||this.hasCallUsEnabledMobile),this.hasSSTEnabledDesktop||this.hasSSTEnabledMobile,this.hasTextUsEnabledDesktop||this.hasTextUsEnabledMobile,this.hasApplyNowEnabledDesktop||this.hasApplyNowEnabledMobile,this.hasPricingCalculatorEnabledDesktop||this.hasPricingCalculatorEnabledMobile].filter((e=>e)).length,this.emailUsWindowRef=Ae(),this.tourSchedulerRef=Ae(),this.calculatorWindowRef=Ae(),this.updated=async()=>{this.attachOnClickToEmailUsWindow(),this.attachOnClickToSSTWindow(),this.attachOnClickToCalculatorWindow(),(this.isEmailWindowOpen||this.isCallUsWindowOpen)&&this.isSSTWindowOpen&&this.onCloseSSTWindow()},this.attachOnClickToEmailUsWindow=()=>{const e=this.emailUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseEmailWindow)},this.attachOnClickToSSTWindow=()=>{const e=this.tourSchedulerRef.value;e&&(e.onCloseClicked=this.onCloseSSTWindow)},this.attachOnClickToCalculatorWindow=()=>{const e=this.calculatorWindowRef.value;e&&(e.onCloseClicked=this.onCloseCalculatorWindow,e.onClickEmailOption=this.onClickEmailOption,e.onClickPhoneOption=this.onClickPhoneOption,e.onClickSSTOption=this.onClickSSTOption,e.onClickTextUsOption=this.onClickTextUsOption)},this.onClickEmailOption=e=>{e.preventDefault(),e.stopPropagation(),ya(),this.isEmailWindowOpen=!0},this.onCloseEmailWindow=()=>{this.isEmailWindowOpen=!1},this.onClickPhoneOption=e=>{e.preventDefault(),e.stopPropagation(),ya(),this.isCallUsWindowOpen=!0},this.onClickApplyNowOption=e=>{e.preventDefault(),e.stopPropagation(),ya(),window.open(this.applicationLink,"_blank")},this.onClickPriceCalculatorOption=e=>{e.preventDefault(),e.stopPropagation(),ya(),this.isCalculatorWindowOpen=!0},this.onClosePhoneWindow=()=>{this.isCallUsWindowOpen=!1},this.onClickSSTOption=e=>{e.preventDefault(),e.stopPropagation(),ya(),Yi(),Ki(this.buildingId),this.isSSTWindowOpen=!0},this.onCloseSSTWindow=()=>{this.onSstClose(),this.isSSTWindowOpen=!1,this.showTourNextToChat&&this.dispatchEvent(new CustomEvent("closeShowTourNextToChat",{bubbles:!0}))},this.onCloseCalculatorWindow=()=>{this.isCalculatorWindowOpen=!1},this.onClickTextUsOption=e=>{e.preventDefault(),e.stopPropagation(),this.isTextUsWindowOpen=!0},this.isCallToActionWindowOpen=()=>1===[this.isEmailWindowOpen,this.isCallUsWindowOpen,this.isSSTWindowOpen,this.isTextUsWindowOpen,this.isCalculatorWindowOpen].filter((e=>e)).length,this.toggleMobileFeatures=()=>{this.isMobileFeaturesExpanded=!this.isMobileFeaturesExpanded},this.renderActionPills=()=>vi()||this.isMinimized||this.designConcept===Dn.MINIMIZED?R` ${this.hasHideMobileFeatures&&vi()?R`<collapse-expand-button
|
|
4948
4956
|
.toExpand=${this.isMobileFeaturesExpanded}
|
|
4949
4957
|
.primaryColor=${this.primaryColor}
|
|
4950
4958
|
.onClick=${this.toggleMobileFeatures}
|
|
@@ -4958,7 +4966,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4958
4966
|
.onClickApplyNowOption=${this.onClickApplyNowOption}
|
|
4959
4967
|
.onClickPriceCalculatorOption=${this.onClickPriceCalculatorOption}
|
|
4960
4968
|
.overrideRentgrata=${this.overrideRentgrata}
|
|
4961
|
-
.isMobileDesign=${vi()||this.designConcept===
|
|
4969
|
+
.isMobileDesign=${vi()||this.designConcept===Dn.MINIMIZED}
|
|
4962
4970
|
.primaryColor=${this.primaryColor}
|
|
4963
4971
|
.backgroundColor=${this.backgroundColor}
|
|
4964
4972
|
.hasChatEnabled=${vi()?this.hasChatEnabledMobile:this.hasChatEnabledDesktop}
|
|
@@ -4970,16 +4978,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4970
4978
|
.applicationLink=${this.applicationLink}
|
|
4971
4979
|
.hasPricingCalculatorEnabled=${vi()?!(this.hasHideMobileFeatures&&!this.isMobileFeaturesExpanded)&&this.hasPricingCalculatorEnabledMobile:this.hasPricingCalculatorEnabledDesktop}
|
|
4972
4980
|
.foregroundColorOnSecondaryBackgroundColor=${this.foregroundColorOnSecondaryBackgroundColor}
|
|
4973
|
-
></mobile-launcher>`:this.designConcept===
|
|
4981
|
+
></mobile-launcher>`:this.designConcept===Dn.EMOJI?this.emojiPillList():this.verticalPillList(),this.emojiPillList=()=>{const e=[{pillKey:"Email",pill:this.hasEmailEnabledDesktop?R` <div
|
|
4974
4982
|
class="type-hey__pill"
|
|
4975
4983
|
@click=${this.onClickEmailOption}
|
|
4976
4984
|
style=${Ne({background:this.backgroundColor})}
|
|
4977
4985
|
>
|
|
4978
4986
|
<div class="type-hey__pill-left">
|
|
4979
|
-
<div class="type-hey__icon">${
|
|
4987
|
+
<div class="type-hey__icon">${la(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
4980
4988
|
<div style=${Ne({color:this.foregroundColorOnSecondaryBackgroundColor})}><span class="title-bold">Email</span> an agent</div>
|
|
4981
4989
|
</div>
|
|
4982
|
-
<div class="type-gradient__icon">${
|
|
4990
|
+
<div class="type-gradient__icon">${ga(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
4983
4991
|
</div>
|
|
4984
4992
|
</div>`:null},{pillKey:"SST",pill:this.hasSSTEnabledDesktop?R`
|
|
4985
4993
|
<div
|
|
@@ -4987,12 +4995,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
4987
4995
|
@click=${this.onClickSSTOption}
|
|
4988
4996
|
style=${Ne({background:this.backgroundColor})}>
|
|
4989
4997
|
<div class="type-hey__pill-left">
|
|
4990
|
-
<div class="type-hey__icon">${
|
|
4998
|
+
<div class="type-hey__icon">${ua(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
4991
4999
|
<div style=${Ne({color:this.foregroundColorOnSecondaryBackgroundColor})}>
|
|
4992
5000
|
<span class="title-bold">Book</span> a tour
|
|
4993
5001
|
</div>
|
|
4994
5002
|
</div>
|
|
4995
|
-
<div class="type-gradient__icon">${
|
|
5003
|
+
<div class="type-gradient__icon">${ga(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
4996
5004
|
</div>
|
|
4997
5005
|
</div>
|
|
4998
5006
|
`:null},{pillKey:"Phone",pill:this.phoneNumber&&(this.hasCallUsEnabledDesktop||this.hasTextUsEnabledDesktop)?R`
|
|
@@ -5002,7 +5010,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5002
5010
|
style=${Ne({background:this.backgroundColor})}
|
|
5003
5011
|
>
|
|
5004
5012
|
<div class="type-hey__pill-left">
|
|
5005
|
-
<div class="type-hey__icon">${
|
|
5013
|
+
<div class="type-hey__icon">${$o(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5006
5014
|
<div style=${Ne({color:this.foregroundColorOnSecondaryBackgroundColor})}>
|
|
5007
5015
|
${this.hasCallUsEnabledDesktop&&this.hasTextUsEnabledDesktop?R` <span class="title-bold">Call</span> or
|
|
5008
5016
|
<span class="title-bold">text</span> us`:""}
|
|
@@ -5011,7 +5019,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5011
5019
|
|
|
5012
5020
|
</div>
|
|
5013
5021
|
</div>
|
|
5014
|
-
<div class="type-gradient__icon">${
|
|
5022
|
+
<div class="type-gradient__icon">${ga(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5015
5023
|
</div>
|
|
5016
5024
|
</div>
|
|
5017
5025
|
`:null},{pillKey:"Apply",pill:this.applicationLink&&this.hasApplyNowEnabledDesktop?R`
|
|
@@ -5022,7 +5030,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5022
5030
|
>
|
|
5023
5031
|
<div class="type-hey__pill-left">
|
|
5024
5032
|
<div class="type-hey__icon">
|
|
5025
|
-
${
|
|
5033
|
+
${da(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5026
5034
|
</div>
|
|
5027
5035
|
<div
|
|
5028
5036
|
class="vertical-pill-title"
|
|
@@ -5033,7 +5041,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5033
5041
|
</div>
|
|
5034
5042
|
</div>
|
|
5035
5043
|
<div class="type-gradient__icon">
|
|
5036
|
-
${
|
|
5044
|
+
${ga(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5037
5045
|
</div>
|
|
5038
5046
|
</div>
|
|
5039
5047
|
`:null},{pillKey:"Price Calculator",pill:this.hasPricingCalculatorEnabledDesktop?R`
|
|
@@ -5044,7 +5052,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5044
5052
|
>
|
|
5045
5053
|
<div class="type-hey__pill-left">
|
|
5046
5054
|
<div class="type-hey__icon">
|
|
5047
|
-
${
|
|
5055
|
+
${ha(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5048
5056
|
</div>
|
|
5049
5057
|
<div
|
|
5050
5058
|
style=${Ne({color:this.foregroundColorOnSecondaryBackgroundColor})}
|
|
@@ -5053,7 +5061,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5053
5061
|
</div>
|
|
5054
5062
|
</div>
|
|
5055
5063
|
<div class="type-gradient__icon">
|
|
5056
|
-
${
|
|
5064
|
+
${ga(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5057
5065
|
</div>
|
|
5058
5066
|
</div>
|
|
5059
5067
|
`:null}].filter((e=>!!e.pill));return R`
|
|
@@ -5075,7 +5083,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5075
5083
|
</div>
|
|
5076
5084
|
<div class="type-hey__greeting">
|
|
5077
5085
|
<h1>Hey there!</h1>
|
|
5078
|
-
<div>${
|
|
5086
|
+
<div>${gn()}</div>
|
|
5079
5087
|
</div>
|
|
5080
5088
|
${this.hasChatEnabledDesktop?R`
|
|
5081
5089
|
<div
|
|
@@ -5086,7 +5094,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5086
5094
|
>
|
|
5087
5095
|
<div class="type-hey__pill-left">
|
|
5088
5096
|
<div class="type-hey__icon">
|
|
5089
|
-
${
|
|
5097
|
+
${ca(this.foregroundColorOnPrimaryBackgroundColor)}
|
|
5090
5098
|
</div>
|
|
5091
5099
|
<div
|
|
5092
5100
|
style=${Ne({color:this.foregroundColorOnPrimaryBackgroundColor})}
|
|
@@ -5095,7 +5103,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5095
5103
|
</div>
|
|
5096
5104
|
</div>
|
|
5097
5105
|
<div class="type-gradient__icon">
|
|
5098
|
-
${
|
|
5106
|
+
${ga(this.foregroundColorOnPrimaryBackgroundColor)}
|
|
5099
5107
|
</div>
|
|
5100
5108
|
</div>
|
|
5101
5109
|
`:""}
|
|
@@ -5107,18 +5115,18 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5107
5115
|
>
|
|
5108
5116
|
<div class="type-hey__botton-section-pills">
|
|
5109
5117
|
${e.map((e=>e.pill))}
|
|
5110
|
-
${this.overrideRentgrata&&
|
|
5118
|
+
${this.overrideRentgrata&&wa()?R`
|
|
5111
5119
|
<div
|
|
5112
5120
|
class="type-hey__pill"
|
|
5113
|
-
@click=${()=>{
|
|
5121
|
+
@click=${()=>{va()}}
|
|
5114
5122
|
style=${Ne({background:this.backgroundColor})}>
|
|
5115
5123
|
<div class="type-hey__pill-left">
|
|
5116
|
-
<div class="type-hey__icon">${
|
|
5124
|
+
<div class="type-hey__icon">${Aa("black")}</div>
|
|
5117
5125
|
<div>
|
|
5118
5126
|
<span class="title-bold">Contact</span> a resident
|
|
5119
5127
|
</div>
|
|
5120
5128
|
</div>
|
|
5121
|
-
<div class="type-gradient__icon">${
|
|
5129
|
+
<div class="type-gradient__icon">${ga(this.foregroundColorOnSecondaryBackgroundColor)}</div>
|
|
5122
5130
|
</div>
|
|
5123
5131
|
</div>`:""}
|
|
5124
5132
|
</div>
|
|
@@ -5136,12 +5144,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5136
5144
|
style=${Ne({background:e?this.backgroundColor:this.primaryColor})}
|
|
5137
5145
|
@click=${this.onChatTapped}>
|
|
5138
5146
|
<div class="vertical-pill-left">
|
|
5139
|
-
<div class="vertical-pill-icon">${
|
|
5147
|
+
<div class="vertical-pill-icon">${ca(e?this.foregroundColorOnSecondaryBackgroundColor:this.foregroundColorOnPrimaryBackgroundColor)}</div>
|
|
5140
5148
|
<div class="vertical-pill-title" style=${Ne({color:e?this.foregroundColorOnSecondaryBackgroundColor:this.foregroundColorOnPrimaryBackgroundColor})}>
|
|
5141
5149
|
<span class="vertical-pill-bold">Chat</span> with us
|
|
5142
5150
|
</div>
|
|
5143
5151
|
</div>
|
|
5144
|
-
<div class="chevron-right">${
|
|
5152
|
+
<div class="chevron-right">${ga(e?this.foregroundColorOnSecondaryBackgroundColor:this.foregroundColorOnPrimaryBackgroundColor)}</div>
|
|
5145
5153
|
</div>
|
|
5146
5154
|
</div>
|
|
5147
5155
|
`:null},{pillKey:"Price Calculator",pill:this.hasPricingCalculatorEnabledDesktop?R`
|
|
@@ -5152,14 +5160,14 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5152
5160
|
>
|
|
5153
5161
|
<div class="vertical-pill-left">
|
|
5154
5162
|
<div class="vertical-pill-icon">
|
|
5155
|
-
${
|
|
5163
|
+
${ha(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5156
5164
|
</div>
|
|
5157
5165
|
<div class="vertical-pill-title" style="margin-left: -2px;">
|
|
5158
5166
|
<span class="vertical-pill-bold">Calculate</span> Cost
|
|
5159
5167
|
</div>
|
|
5160
5168
|
</div>
|
|
5161
5169
|
<div class="chevron-right">
|
|
5162
|
-
${
|
|
5170
|
+
${ga(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5163
5171
|
</div>
|
|
5164
5172
|
</div>
|
|
5165
5173
|
`:null},{pillKey:"SST",pill:this.hasSSTEnabledDesktop?R`
|
|
@@ -5171,7 +5179,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5171
5179
|
>
|
|
5172
5180
|
<div class="vertical-pill-left">
|
|
5173
5181
|
<div class="vertical-pill-icon">
|
|
5174
|
-
${
|
|
5182
|
+
${ua(e?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5175
5183
|
</div>
|
|
5176
5184
|
<div
|
|
5177
5185
|
class="vertical-pill-title"
|
|
@@ -5182,7 +5190,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5182
5190
|
</div>
|
|
5183
5191
|
</div>
|
|
5184
5192
|
<div class="chevron-right">
|
|
5185
|
-
${
|
|
5193
|
+
${ga(e?this.foregroundColorOnPrimaryBackgroundColor:this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5186
5194
|
</div>
|
|
5187
5195
|
</div>
|
|
5188
5196
|
`:null},{pillKey:"Email",pill:this.hasEmailEnabledDesktop?R`
|
|
@@ -5193,7 +5201,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5193
5201
|
>
|
|
5194
5202
|
<div class="vertical-pill-left">
|
|
5195
5203
|
<div class="vertical-pill-icon">
|
|
5196
|
-
${
|
|
5204
|
+
${la(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5197
5205
|
</div>
|
|
5198
5206
|
<div
|
|
5199
5207
|
class="vertical-pill-title"
|
|
@@ -5204,7 +5212,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5204
5212
|
</div>
|
|
5205
5213
|
</div>
|
|
5206
5214
|
<div class="chevron-right">
|
|
5207
|
-
${
|
|
5215
|
+
${ga(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5208
5216
|
</div>
|
|
5209
5217
|
</div>
|
|
5210
5218
|
`:null},{pillKey:"Phone",pill:this.phoneNumber&&(this.hasCallUsEnabledDesktop||this.hasTextUsEnabledDesktop)?R`
|
|
@@ -5215,7 +5223,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5215
5223
|
>
|
|
5216
5224
|
<div class="vertical-pill-left">
|
|
5217
5225
|
<div class="vertical-pill-icon">
|
|
5218
|
-
${
|
|
5226
|
+
${$o(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5219
5227
|
</div>
|
|
5220
5228
|
${this.hasCallUsEnabledDesktop&&this.hasTextUsEnabledDesktop?R`
|
|
5221
5229
|
<div
|
|
@@ -5244,7 +5252,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5244
5252
|
`:""}
|
|
5245
5253
|
</div>
|
|
5246
5254
|
<div class="chevron-right">
|
|
5247
|
-
${
|
|
5255
|
+
${ga(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5248
5256
|
</div>
|
|
5249
5257
|
</div>
|
|
5250
5258
|
`:null},{pillKey:"Apply",pill:this.applicationLink&&this.hasApplyNowEnabledDesktop?R`
|
|
@@ -5255,7 +5263,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5255
5263
|
>
|
|
5256
5264
|
<div class="vertical-pill-left">
|
|
5257
5265
|
<div class="vertical-pill-icon">
|
|
5258
|
-
${
|
|
5266
|
+
${da(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5259
5267
|
</div>
|
|
5260
5268
|
<div
|
|
5261
5269
|
class="vertical-pill-title"
|
|
@@ -5266,7 +5274,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5266
5274
|
</div>
|
|
5267
5275
|
</div>
|
|
5268
5276
|
<div class="chevron-right">
|
|
5269
|
-
${
|
|
5277
|
+
${ga(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5270
5278
|
</div>
|
|
5271
5279
|
</div>
|
|
5272
5280
|
`:null}].filter((e=>!!e.pill));if(e){const e=t.findIndex((e=>"SST"===e.pillKey));if(-1!==e){const[i]=t.splice(e,1);t.unshift(i)}}return R`
|
|
@@ -5277,29 +5285,29 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5277
5285
|
class="minimize-button"
|
|
5278
5286
|
aria-label="Minimize"
|
|
5279
5287
|
>
|
|
5280
|
-
<div class="chevron-down">${
|
|
5288
|
+
<div class="chevron-down">${ga("black")}</div>
|
|
5281
5289
|
</button>`:""}
|
|
5282
5290
|
${t.map((e=>e.pill))}
|
|
5283
|
-
${this.overrideRentgrata&&
|
|
5284
|
-
@click=${()=>{
|
|
5291
|
+
${this.overrideRentgrata&&wa()?R`<div
|
|
5292
|
+
@click=${()=>{va()}}
|
|
5285
5293
|
class="inner-pill-wrapper"
|
|
5286
5294
|
style=${Ne({background:this.backgroundColor})}
|
|
5287
5295
|
>
|
|
5288
5296
|
<div class="vertical-pill-left">
|
|
5289
5297
|
<div class="vertical-pill-icon">
|
|
5290
|
-
${
|
|
5298
|
+
${Aa(this.foregroundColorOnSecondaryBackgroundColor)}
|
|
5291
5299
|
</div>
|
|
5292
5300
|
<div class="vertical-pill-title">
|
|
5293
5301
|
<span class="vertical-pill-bold">Contact</span> a resident
|
|
5294
5302
|
</div>
|
|
5295
5303
|
</div>
|
|
5296
|
-
<div class="chevron-right">${
|
|
5304
|
+
<div class="chevron-right">${ga("black")}</div>
|
|
5297
5305
|
</div>`:""}
|
|
5298
5306
|
</div>
|
|
5299
5307
|
</div>
|
|
5300
|
-
`}}render(){window.customElements.get("email-us-window")||window.customElements.define("email-us-window",
|
|
5308
|
+
`}}render(){window.customElements.get("email-us-window")||window.customElements.define("email-us-window",Ho),window.customElements.get("call-us-window")||window.customElements.define("call-us-window",qo),window.eliseAi.onOpenSST=e=>{this.isSSTWindowOpen=!0,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,this.onExitChat(),e&&e()},(this.hasChatEnabledDesktop||this.hasChatEnabledMobile)&&(window.eliseAi.onOpenChat=e=>{this.onChatTapped(),this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,e&&e()}),(this.hasCallUsEnabledDesktop||this.hasCallUsEnabledMobile)&&(window.eliseAi.onOpenCallUsWindow=e=>{this.isCallUsWindowOpen=!0,this.isSSTWindowOpen=!1,this.isEmailWindowOpen=!1,this.onExitChat(),e&&e()}),(this.hasEmailEnabledDesktop||this.hasEmailEnabledMobile)&&(window.eliseAi.onOpenEmailUsWindow=e=>{this.isEmailWindowOpen=!0,this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.onExitChat(),e&&e()}),(this.hasPricingCalculatorEnabledDesktop||this.hasPricingCalculatorEnabledMobile)&&(window.eliseAi.onOpenPriceCalculatorWindow=e=>{this.isCalculatorWindowOpen=!0,e&&e()});const e={top:vi()||void 0===this.top||isNaN(this.top)?void 0:`${this.top}px`,bottom:vi()||void 0===this.bottom||isNaN(this.bottom)?void 0:`${this.bottom}px`,left:vi()||void 0===this.left||isNaN(this.left)?void 0:`${this.left}px`,right:vi()||void 0===this.right||isNaN(this.right)?void 0:`${this.right}px`};return R`
|
|
5301
5309
|
<div
|
|
5302
|
-
class=${
|
|
5310
|
+
class=${rn()({"launcher__mobile-launcher-wrapper":vi()||this.isMinimized,"launcher__mini-launcher-wrapper":!vi()&&!this.isMinimized,"launcher__mini-elevated":"livcor"===this.orgSlug.toLowerCase()&&(vi()||this.isMinimized)})}
|
|
5303
5311
|
style=${Ne({...this.launcherStyles,...this.mobileStyles,top:vi()||void 0===this.top||isNaN(this.top)?void 0!==this.mobileStyles.top?`${this.mobileStyles.top}px`:void 0:this.top-700+"px",bottom:vi()||void 0===this.bottom||isNaN(this.bottom)?void 0!==this.mobileStyles.bottom?`${this.mobileStyles.bottom}px`:"72px":`${this.bottom}px`,left:vi()||void 0===this.left||isNaN(this.left)?void 0!==this.mobileStyles.left?`${this.mobileStyles.left}px`:void 0:`${this.left}px`,right:vi()||void 0===this.right||isNaN(this.right)?void 0!==this.mobileStyles.right?`${this.mobileStyles.right}px`:"18px":`${this.right}px`})}
|
|
5304
5312
|
>
|
|
5305
5313
|
${this.isEmailWindowOpen?R`<div
|
|
@@ -5401,11 +5409,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5401
5409
|
`:""}
|
|
5402
5410
|
${this.isCallToActionWindowOpen()||this.showTourNextToChat?"":this.renderActionPills()}
|
|
5403
5411
|
</div>
|
|
5404
|
-
`}};
|
|
5405
|
-
${Mo}
|
|
5412
|
+
`}};ka.styles=l`
|
|
5406
5413
|
${No}
|
|
5407
5414
|
${Io}
|
|
5408
|
-
`,Ca([le({attribute:!0})],xa.prototype,"isMinimized",void 0),Ca([le()],xa.prototype,"mobileStyles",void 0),Ca([le({type:Boolean})],xa.prototype,"isFirstMount",void 0),Ca([le({attribute:!1})],xa.prototype,"autoOpenChatWidget",void 0),Ca([le()],xa.prototype,"phoneNumber",void 0),Ca([le({attribute:!0})],xa.prototype,"buildingName",void 0),Ca([le({attribute:!0})],xa.prototype,"chatId",void 0),Ca([le({attribute:!0})],xa.prototype,"orgLegalName",void 0),Ca([le({attribute:!0})],xa.prototype,"chatCallUsHeader",void 0),Ca([le({attribute:!1})],xa.prototype,"buildingId",void 0),Ca([le({attribute:!0})],xa.prototype,"buildingSlug",void 0),Ca([le({attribute:!0})],xa.prototype,"orgSlug",void 0),Ca([le({attribute:!0})],xa.prototype,"sgtUrl",void 0),Ca([le({attribute:!0})],xa.prototype,"selfGuidedTourEnabled",void 0),Ca([le({attribute:!0})],xa.prototype,"selfGuidedToursTypeOffered",void 0),Ca([le({attribute:!0})],xa.prototype,"designConcept",void 0),Ca([le({attribute:!0})],xa.prototype,"featureFlagShowDropdown",void 0),Ca([le({attribute:!1})],xa.prototype,"leadSources",void 0),Ca([le({attribute:!0})],xa.prototype,"currentLeadSource",void 0),Ca([le({attribute:!0})],xa.prototype,"escortedToursLink",void 0),Ca([le({attribute:!0})],xa.prototype,"escortedToursTypeOffered",void 0),Ca([le({attribute:!0})],xa.prototype,"virtualToursLink",void 0),Ca([le({attribute:!0})],xa.prototype,"virtualToursTypeOffered",void 0),Ca([le({type:Boolean})],xa.prototype,"hasChatEnabledDesktop",void 0),Ca([le({type:Boolean})],xa.prototype,"hasChatEnabledMobile",void 0),Ca([le({type:Boolean})],xa.prototype,"hasEmailEnabledDesktop",void 0),Ca([le({type:Boolean})],xa.prototype,"hasEmailEnabledMobile",void 0),Ca([le({attribute:!0})],xa.prototype,"hasApplyNowEnabledDesktop",void 0),Ca([le({attribute:!0})],xa.prototype,"hasApplyNowEnabledMobile",void 0),Ca([le({attribute:!0})],xa.prototype,"applicationLink",void 0),Ca([le({type:Boolean})],xa.prototype,"hasCallUsEnabledDesktop",void 0),Ca([le({type:Boolean})],xa.prototype,"hasCallUsEnabledMobile",void 0),Ca([le({type:Boolean})],xa.prototype,"hasTextUsEnabledDesktop",void 0),Ca([le({type:Boolean})],xa.prototype,"hasTextUsEnabledMobile",void 0),Ca([le({type:Boolean})],xa.prototype,"hasSSTEnabledDesktop",void 0),Ca([le({type:Boolean})],xa.prototype,"hasSSTEnabledMobile",void 0),Ca([le({attribute:!1})],xa.prototype,"tourTypeOptions",void 0),Ca([le({attribute:!0})],xa.prototype,"hasDynamicSchedulingEnabled",void 0),Ca([le({attribute:!0})],xa.prototype,"hasPricingCalculatorEnabledDesktop",void 0),Ca([le({attribute:!0})],xa.prototype,"hasPricingCalculatorEnabledMobile",void 0),Ca([le({attribute:!1})],xa.prototype,"hasHideMobileFeatures",void 0),Ca([le({type:Number})],xa.prototype,"right",void 0),Ca([le({type:Number})],xa.prototype,"bottom",void 0),Ca([le({type:Number})],xa.prototype,"top",void 0),Ca([le({type:Number})],xa.prototype,"left",void 0),Ca([le({attribute:!0})],xa.prototype,"showTourNextToChat",void 0),Ca([le({attribute:!1})],xa.prototype,"onChatTapped",void 0),Ca([le({attribute:!0})],xa.prototype,"onClickMinimize",void 0),Ca([le({attribute:!0})],xa.prototype,"onSstClose",void 0),Ca([le({attribute:!0})],xa.prototype,"overrideRentgrata",void 0),Ca([le({attribute:!1})],xa.prototype,"launcherStyles",void 0),Ca([le({attribute:!0})],xa.prototype,"primaryColor",void 0),Ca([le({attribute:!0})],xa.prototype,"backgroundColor",void 0),Ca([le({attribute:!0})],xa.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Ca([le({attribute:!0})],xa.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Ca([le({attribute:!0})],xa.prototype,"leadSourceClient",void 0),Ca([ue()],xa.prototype,"leadSourceMultitouchClient",void 0),Ca([ue()],xa.prototype,"isEmailWindowOpen",void 0),Ca([ue()],xa.prototype,"isCallUsWindowOpen",void 0),Ca([ue()],xa.prototype,"isSSTWindowOpen",void 0),Ca([ue()],xa.prototype,"isTextUsWindowOpen",void 0),Ca([ue()],xa.prototype,"isCalculatorWindowOpen",void 0),Ca([ue()],xa.prototype,"isMobileFeaturesExpanded",void 0),xa=Ca([ae("meetelise-launcher")],xa);const Aa=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",xa)},Sa=["app.meetelise.com","staging.eliseai.com","localhost"],ka={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"}};var Ta=i(3379),_a=i.n(Ta),Ea=i(7795),Oa=i.n(Ea),Pa=i(569),Ma=i.n(Pa),Na=i(3565),Ia=i.n(Na),Da=i(9216),Ua=i.n(Da),La=i(4589),Ra=i.n(La),Ba=i(3631),ja={};async function Ha(e,i){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${i}/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 Fa(n.data,i)}return[]}catch(e){return[]}}ja.styleTagTransform=Ra(),ja.setAttributes=Ia(),ja.insert=Ma().bind(null,"head"),ja.domAPI=Oa(),ja.insertStyleElement=Ua(),_a()(Ba.Z,ja),Ba.Z&&Ba.Z.locals&&Ba.Z.locals;const Fa=(e,t)=>{let i=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":i=["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":i=["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:i=[]}return e.sort(),e.filter((e=>{const t=e.toLowerCase();return!i.map((e=>e.toLowerCase())).includes(t)}))};var $a,za=i(9594),Qa=i.n(za),Ga=new Uint8Array(16);function qa(){if(!$a&&!($a="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 $a(Ga)}const Wa=/^(?:[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,Va=function(e){return"string"==typeof e&&Wa.test(e)};for(var Ya=[],Ka=0;Ka<256;++Ka)Ya.push((Ka+256).toString(16).substr(1));const Xa=function(e,t,i){var n=(e=e||{}).random||(e.rng||qa)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var o=0;o<16;++o)t[i+o]=n[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Ya[e[t+0]]+Ya[e[t+1]]+Ya[e[t+2]]+Ya[e[t+3]]+"-"+Ya[e[t+4]]+Ya[e[t+5]]+"-"+Ya[e[t+6]]+Ya[e[t+7]]+"-"+Ya[e[t+8]]+Ya[e[t+9]]+"-"+Ya[e[t+10]]+Ya[e[t+11]]+Ya[e[t+12]]+Ya[e[t+13]]+Ya[e[t+14]]+Ya[e[t+15]]).toLowerCase();if(!Va(i))throw TypeError("Stringified UUID is invalid");return i}(n)},Za=e=>localStorage.removeItem("com.elise.webchat.slug="+e),Ja=(e,t,i)=>{const n=Ti(new Date),o=i||`lead_${Xa()}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:o,timestamp:n,initiatedChat:t})),{leadId:o,timestamp:Ii(n),buildingSlug:e,initiatedChat:t}},es=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const i=JSON.parse(t),n={leadId:i.leadId,timestamp:new Date(i.timestamp),buildingSlug:i.buildingSlug,initiatedChat:i.initiatedChat};if(ts(e,n))return n}catch(e){console.warn("Error getting chat storage key")}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},ts=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if(fi(t.timestamp,e))return!1}}catch(e){console.warn("Error checking chat storage key validity")}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp||yi(t.timestamp,24))};var is;!function(e){e.noReply="no-reply",e.text="text",e.media="media"}(is||(is={}));const ns=e=>e.type===rs.text,os=e=>e.type===rs.media;var rs;!function(e){e.text="text",e.media="media"}(rs||(rs={}));const as=class{constructor(e,t,i,n=null,o,r,a=null,s=Ws.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingWebchatView=null,this.eliseResponseTimeout=null,this.isWaitingForStreamingMessages=!1,this.widgetType=Ws.Default,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t,i;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!==is.noReply)),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),this.checkAndHandleDelayStreamingMessages();const o="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:o}),!o&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=o,"ai_message"===e.message.customType&&this.simpleChatMessages.some((e=>e.type===rs.text&&e.message.includes("confirmed for your tour")))&&hn("scheduledTourEvent",{tourDetails:e.message,buildingId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),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=this.simpleChatMessages.some((e=>{if(!ns(e))return!1;const t=e.chunks.find((e=>e.isDone));return!t||e.chunks.length===t.order}));t&&(this.streamingMessageTimeout=setTimeout((()=>{kn({logTitle:"PUBNUB_WARN_DELAYED_STREAMING_MESSAGES",logData:{channel:this.channel},logType:Sn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),console.warn(`PUBNUB_WARN_DELAYED_STREAMING_MESSAGES: ${e}`),this.getChannelHistory()}),e))},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 console.warn("Error checking if message contains email",e),!1}})(e.message.text))return;hn("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,i;for(let n=e.length-1;n>=0;n--){const o=null===(t=e[n])||void 0===t?void 0:t.message,r=n>0&&(null===(i=e[n-1])||void 0===i?void 0:i.message);(null==o?void 0:o.messageType)===is.noReply&&r&&(r.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&&kn({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:Sn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},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=Ja(this.buildingSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken((async()=>{var t,i,n,o,r,a,s,l;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout((()=>{console.error("Elise AI did not respond in time..."),this.buildingWebchatView&&kn({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:Sn.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===Ws.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===(i=this.buildingWebchatView)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,userId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.userId,leadSource:this.leadSource,widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),lead_sources_with_timestamps:(null!==(r=null===(o=this.leadSourceMultitouchClient)||void 0===o?void 0:o.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null}))&&void 0!==r?r:[]).map((e=>bi({...e})))}}),null===(a=this.leadSourceMultitouchClient)||void 0===a||a.resetLeadSourceTouchpoints()),this.isFirstChatMessageSent||(hn("firstChatMessageSent",{message:e,buildingId:null===(s=this.buildingWebchatView)||void 0===s?void 0:s.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),hn("chatMessageSent",{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}))})),!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 i=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(i)?(kn({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:Sn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(i),!0)}))},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],i={};return this.removeDuplicatedRawPubnubMessages(e).forEach((e=>{var n;"media"===e.message.messageType?t.push({timestamp:e.timetoken,media:null!==(n=e.message.media)&&void 0!==n?n:[],isLeadMessage:this.isLeadMessage(e),type:rs.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:rs.text}):i[e.message.stream_id]?i[e.message.stream_id].push(e):i[e.message.stream_id]=[e]})),Object.keys(i).forEach((e=>{const n=i[e],o=this.getConsecutiveChunks(n.sort(((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)}))),r=o.map((e=>e.message.text)).join(""),a=o[0],s={timestamp:a.timetoken,message:r,isLeadMessage:this.isLeadMessage(a),chunks:o.map((e=>{var t,i;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(i=e.message.is_done)&&void 0!==i&&i}})),type:rs.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(o),t.push(s)})),t.sort(((e,t)=>e.timestamp-t.timestamp)),t},this.getConsecutiveChunks=e=>{var t,i;const n=e.sort(((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)})),o=[];let r=null!==(t=n[0].message.order)&&void 0!==t?t:0;for(const e of n){if((null!==(i=e.message.order)&&void 0!==i?i:-1)!==r)break;o.push(e),r++}return o},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=i,this.leadSource=n,this.leadUserId=o,this.channel=`webchat_${o}`,this.leadSourceClient=a,this.leadSourceMultitouchClient=r,this.widgetType=s}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(Qa())({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,i){try{return(await t().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${i}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.buildingWebchatView&&kn({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:Sn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return null}async fetchChannelExists(e){try{return(await t().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.buildingWebchatView&&kn({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:Sn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return!1}async withAuthToken(t){try{await t()}catch(i){if(i instanceof e.AxiosError&&i&&i.response&&403===i.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const e=await this.fetchToken(this.leadUserId,this.channel);if(!e)return;this.pubnub.setAuthKey(e.auth.result.token),await t()}catch(e){this.buildingWebchatView&&kn({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:Sn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}}async getChannelHistory(e=1500){var t;try{let i=[],n=null;const o=100;for(let t=0;t<e;t+=o){const r=await new Promise(((i,r)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(o,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=n?n:void 0},((e,t)=>{e.error?r(e):i(t)}))})),a=r.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(r.channels).length){const e=r.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),i=i.concat(t.filter((e=>e.message.messageType!==is.noReply)))}if(n=a[0].timetoken,i.length>=e||a.length<o)break}this.rawPubnubMessages=i.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&&kn({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:Sn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}shouldCreateAsDevState(){return location.href.startsWith("https://app.meetelise.com/settings/widgets")||location.href.includes("demo/utilities")}},ss=(e,t,i)=>{const n=`tel:${e}`,o=`sms:${e}`,r=`whatsapp://send?phone=${e}}`,a=`facetime:${e}`,s=`facetime-audio:${e}`,l=/(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}/g,u=/(tel|sms):(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}/g,c=/whatsapp:\/\/send\?phone=\d+/g,d=/(facetime|facetime-audio):\d+/g,h=document.body.getElementsByTagName("*");let p=!1;const f=e.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let g=!1,m=!1,b=0;for(let e=0;e<h.length;e++)if(h[e].nodeType===Node.ELEMENT_NODE){if(1===h[e].childNodes.length&&h[e].childNodes[0].nodeType==Node.TEXT_NODE){const t=h[e].innerHTML,i=t.replace(l,f);t!==i&&b++,h[e].innerHTML=i,p=!0,g||(g=!0)}if(h[e].hasAttribute("href")){const t=h[e].getAttribute("href");if(!t)continue;let i="",l=u;t.startsWith("sms:")?i=o:t.startsWith("whatsapp:")?(i=r,l=c):t.startsWith("facetime:")?(i=a,l=d):t.startsWith("facetime-audio:")?(i=s,l=d):i=n;const p=t.replace(l,i);h[e].setAttribute("href",p),m||(m=!0)}}return g&&kn({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:f,website:window.location.href},logType:Sn.info,buildingSlug:i,orgSlug:t}),m&&kn({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:f,website:window.location.href},logType:Sn.info,buildingSlug:i,orgSlug:t}),p||kn({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:Sn.warn,buildingSlug:i,orgSlug:t}),b};var ls=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let us=class extends oe{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Ie,this.toExpand=!1}render(){return R`
|
|
5415
|
+
${Do}
|
|
5416
|
+
`,Sa([le({attribute:!0})],ka.prototype,"isMinimized",void 0),Sa([le()],ka.prototype,"mobileStyles",void 0),Sa([le({type:Boolean})],ka.prototype,"isFirstMount",void 0),Sa([le({attribute:!1})],ka.prototype,"autoOpenChatWidget",void 0),Sa([le()],ka.prototype,"phoneNumber",void 0),Sa([le({attribute:!0})],ka.prototype,"buildingName",void 0),Sa([le({attribute:!0})],ka.prototype,"chatId",void 0),Sa([le({attribute:!0})],ka.prototype,"orgLegalName",void 0),Sa([le({attribute:!0})],ka.prototype,"chatCallUsHeader",void 0),Sa([le({attribute:!1})],ka.prototype,"buildingId",void 0),Sa([le({attribute:!0})],ka.prototype,"buildingSlug",void 0),Sa([le({attribute:!0})],ka.prototype,"orgSlug",void 0),Sa([le({attribute:!0})],ka.prototype,"sgtUrl",void 0),Sa([le({attribute:!0})],ka.prototype,"selfGuidedTourEnabled",void 0),Sa([le({attribute:!0})],ka.prototype,"selfGuidedToursTypeOffered",void 0),Sa([le({attribute:!0})],ka.prototype,"designConcept",void 0),Sa([le({attribute:!0})],ka.prototype,"featureFlagShowDropdown",void 0),Sa([le({attribute:!1})],ka.prototype,"leadSources",void 0),Sa([le({attribute:!0})],ka.prototype,"currentLeadSource",void 0),Sa([le({attribute:!0})],ka.prototype,"escortedToursLink",void 0),Sa([le({attribute:!0})],ka.prototype,"escortedToursTypeOffered",void 0),Sa([le({attribute:!0})],ka.prototype,"virtualToursLink",void 0),Sa([le({attribute:!0})],ka.prototype,"virtualToursTypeOffered",void 0),Sa([le({type:Boolean})],ka.prototype,"hasChatEnabledDesktop",void 0),Sa([le({type:Boolean})],ka.prototype,"hasChatEnabledMobile",void 0),Sa([le({type:Boolean})],ka.prototype,"hasEmailEnabledDesktop",void 0),Sa([le({type:Boolean})],ka.prototype,"hasEmailEnabledMobile",void 0),Sa([le({attribute:!0})],ka.prototype,"hasApplyNowEnabledDesktop",void 0),Sa([le({attribute:!0})],ka.prototype,"hasApplyNowEnabledMobile",void 0),Sa([le({attribute:!0})],ka.prototype,"applicationLink",void 0),Sa([le({type:Boolean})],ka.prototype,"hasCallUsEnabledDesktop",void 0),Sa([le({type:Boolean})],ka.prototype,"hasCallUsEnabledMobile",void 0),Sa([le({type:Boolean})],ka.prototype,"hasTextUsEnabledDesktop",void 0),Sa([le({type:Boolean})],ka.prototype,"hasTextUsEnabledMobile",void 0),Sa([le({type:Boolean})],ka.prototype,"hasSSTEnabledDesktop",void 0),Sa([le({type:Boolean})],ka.prototype,"hasSSTEnabledMobile",void 0),Sa([le({attribute:!1})],ka.prototype,"tourTypeOptions",void 0),Sa([le({attribute:!0})],ka.prototype,"hasDynamicSchedulingEnabled",void 0),Sa([le({attribute:!0})],ka.prototype,"hasPricingCalculatorEnabledDesktop",void 0),Sa([le({attribute:!0})],ka.prototype,"hasPricingCalculatorEnabledMobile",void 0),Sa([le({attribute:!1})],ka.prototype,"hasHideMobileFeatures",void 0),Sa([le({type:Number})],ka.prototype,"right",void 0),Sa([le({type:Number})],ka.prototype,"bottom",void 0),Sa([le({type:Number})],ka.prototype,"top",void 0),Sa([le({type:Number})],ka.prototype,"left",void 0),Sa([le({attribute:!0})],ka.prototype,"showTourNextToChat",void 0),Sa([le({attribute:!1})],ka.prototype,"onChatTapped",void 0),Sa([le({attribute:!0})],ka.prototype,"onClickMinimize",void 0),Sa([le({attribute:!0})],ka.prototype,"onSstClose",void 0),Sa([le({attribute:!0})],ka.prototype,"overrideRentgrata",void 0),Sa([le({attribute:!1})],ka.prototype,"launcherStyles",void 0),Sa([le({attribute:!0})],ka.prototype,"primaryColor",void 0),Sa([le({attribute:!0})],ka.prototype,"backgroundColor",void 0),Sa([le({attribute:!0})],ka.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Sa([le({attribute:!0})],ka.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Sa([le({attribute:!0})],ka.prototype,"leadSourceClient",void 0),Sa([ue()],ka.prototype,"leadSourceMultitouchClient",void 0),Sa([ue()],ka.prototype,"isEmailWindowOpen",void 0),Sa([ue()],ka.prototype,"isCallUsWindowOpen",void 0),Sa([ue()],ka.prototype,"isSSTWindowOpen",void 0),Sa([ue()],ka.prototype,"isTextUsWindowOpen",void 0),Sa([ue()],ka.prototype,"isCalculatorWindowOpen",void 0),Sa([ue()],ka.prototype,"isMobileFeaturesExpanded",void 0),ka=Sa([ae("meetelise-launcher")],ka);const Ta=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",ka)},_a=["app.meetelise.com","staging.eliseai.com","localhost"],Ea={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"}};var Oa=i(3379),Pa=i.n(Oa),Ma=i(7795),Na=i.n(Ma),Ia=i(569),Da=i.n(Ia),Ua=i(3565),La=i.n(Ua),Ra=i(9216),Ba=i.n(Ra),ja=i(4589),Ha=i.n(ja),Fa=i(3631),$a={};async function za(e,i){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${i}/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 Qa(n.data,i)}return[]}catch(e){return[]}}$a.styleTagTransform=Ha(),$a.setAttributes=La(),$a.insert=Da().bind(null,"head"),$a.domAPI=Na(),$a.insertStyleElement=Ba(),Pa()(Fa.Z,$a),Fa.Z&&Fa.Z.locals&&Fa.Z.locals;const Qa=(e,t)=>{let i=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":i=["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":i=["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:i=[]}return e.sort(),e.filter((e=>{const t=e.toLowerCase();return!i.map((e=>e.toLowerCase())).includes(t)}))};var Ga,qa=i(9594),Wa=i.n(qa),Va=new Uint8Array(16);function Ya(){if(!Ga&&!(Ga="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 Ga(Va)}const Ka=/^(?:[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,Xa=function(e){return"string"==typeof e&&Ka.test(e)};for(var Za=[],Ja=0;Ja<256;++Ja)Za.push((Ja+256).toString(16).substr(1));const es=function(e,t,i){var n=(e=e||{}).random||(e.rng||Ya)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var o=0;o<16;++o)t[i+o]=n[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Za[e[t+0]]+Za[e[t+1]]+Za[e[t+2]]+Za[e[t+3]]+"-"+Za[e[t+4]]+Za[e[t+5]]+"-"+Za[e[t+6]]+Za[e[t+7]]+"-"+Za[e[t+8]]+Za[e[t+9]]+"-"+Za[e[t+10]]+Za[e[t+11]]+Za[e[t+12]]+Za[e[t+13]]+Za[e[t+14]]+Za[e[t+15]]).toLowerCase();if(!Xa(i))throw TypeError("Stringified UUID is invalid");return i}(n)},ts=e=>localStorage.removeItem("com.elise.webchat.slug="+e),is=(e,t,i)=>{const n=_i(new Date),o=i||`lead_${es()}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:o,timestamp:n,initiatedChat:t})),{leadId:o,timestamp:Di(n),buildingSlug:e,initiatedChat:t}},ns=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const i=JSON.parse(t),n={leadId:i.leadId,timestamp:new Date(i.timestamp),buildingSlug:i.buildingSlug,initiatedChat:i.initiatedChat};if(os(e,n))return n}catch(e){console.warn("Error getting chat storage key")}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},os=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if(fi(t.timestamp,e))return!1}}catch(e){console.warn("Error checking chat storage key validity")}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp||yi(t.timestamp,24))};var rs;!function(e){e.noReply="no-reply",e.text="text",e.media="media"}(rs||(rs={}));const as=e=>e.type===ls.text,ss=e=>e.type===ls.media;var ls;!function(e){e.text="text",e.media="media"}(ls||(ls={}));const us=class{constructor(e,t,i,n=null,o,r,a=null,s=Ks.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.leadSourceMultitouchClient=null,this.buildingWebchatView=null,this.eliseResponseTimeout=null,this.isWaitingForStreamingMessages=!1,this.widgetType=Ks.Default,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t,i;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!==rs.noReply)),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),this.checkAndHandleDelayStreamingMessages();const o="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:o}),!o&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=o,"ai_message"===e.message.customType&&this.simpleChatMessages.some((e=>e.type===ls.text&&e.message.includes("confirmed for your tour")))&&pn("scheduledTourEvent",{tourDetails:e.message,buildingId:null===(i=this.buildingWebchatView)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),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=this.simpleChatMessages.some((e=>{if(!as(e))return!1;const t=e.chunks.find((e=>e.isDone));return!t||e.chunks.length===t.order}));t&&(this.streamingMessageTimeout=setTimeout((()=>{Tn({logTitle:"PUBNUB_WARN_DELAYED_STREAMING_MESSAGES",logData:{channel:this.channel},logType:kn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),console.warn(`PUBNUB_WARN_DELAYED_STREAMING_MESSAGES: ${e}`),this.getChannelHistory()}),e))},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 console.warn("Error checking if message contains email",e),!1}})(e.message.text))return;pn("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,i;for(let n=e.length-1;n>=0;n--){const o=null===(t=e[n])||void 0===t?void 0:t.message,r=n>0&&(null===(i=e[n-1])||void 0===i?void 0:i.message);(null==o?void 0:o.messageType)===rs.noReply&&r&&(r.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&&Tn({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:kn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},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=is(this.buildingSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken((async()=>{var t,i,n,o,r,a,s,l;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout((()=>{console.error("Elise AI did not respond in time..."),this.buildingWebchatView&&Tn({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:kn.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===Ks.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===(i=this.buildingWebchatView)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,userId:null===(n=this.buildingWebchatView)||void 0===n?void 0:n.userId,leadSource:this.leadSource,widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),lead_sources_with_timestamps:(null!==(r=null===(o=this.leadSourceMultitouchClient)||void 0===o?void 0:o.getSafeLeadSourceTouchpointsWithDefault({includedUserSelectedLeadSource:null}))&&void 0!==r?r:[]).map((e=>bi({...e})))}}),null===(a=this.leadSourceMultitouchClient)||void 0===a||a.resetLeadSourceTouchpoints()),this.isFirstChatMessageSent||(pn("firstChatMessageSent",{message:e,buildingId:null===(s=this.buildingWebchatView)||void 0===s?void 0:s.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),pn("chatMessageSent",{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}))})),!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 i=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(i)?(Tn({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:kn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(i),!0)}))},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],i={};return this.removeDuplicatedRawPubnubMessages(e).forEach((e=>{var n;"media"===e.message.messageType?t.push({timestamp:e.timetoken,media:null!==(n=e.message.media)&&void 0!==n?n:[],isLeadMessage:this.isLeadMessage(e),type:ls.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:ls.text}):i[e.message.stream_id]?i[e.message.stream_id].push(e):i[e.message.stream_id]=[e]})),Object.keys(i).forEach((e=>{const n=i[e],o=this.getConsecutiveChunks(n.sort(((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)}))),r=o.map((e=>e.message.text)).join(""),a=o[0],s={timestamp:a.timetoken,message:r,isLeadMessage:this.isLeadMessage(a),chunks:o.map((e=>{var t,i;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(i=e.message.is_done)&&void 0!==i&&i}})),type:ls.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(o),t.push(s)})),t.sort(((e,t)=>e.timestamp-t.timestamp)),t},this.getConsecutiveChunks=e=>{var t,i;const n=e.sort(((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)})),o=[];let r=null!==(t=n[0].message.order)&&void 0!==t?t:0;for(const e of n){if((null!==(i=e.message.order)&&void 0!==i?i:-1)!==r)break;o.push(e),r++}return o},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=i,this.leadSource=n,this.leadUserId=o,this.channel=`webchat_${o}`,this.leadSourceClient=a,this.leadSourceMultitouchClient=r,this.widgetType=s}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(Wa())({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,i){try{return(await t().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${i}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.buildingWebchatView&&Tn({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:kn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return null}async fetchChannelExists(e){try{return(await t().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.buildingWebchatView&&Tn({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:kn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return!1}async withAuthToken(t){try{await t()}catch(i){if(i instanceof e.AxiosError&&i&&i.response&&403===i.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const e=await this.fetchToken(this.leadUserId,this.channel);if(!e)return;this.pubnub.setAuthKey(e.auth.result.token),await t()}catch(e){this.buildingWebchatView&&Tn({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:kn.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}}async getChannelHistory(e=1500){var t;try{let i=[],n=null;const o=100;for(let t=0;t<e;t+=o){const r=await new Promise(((i,r)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(o,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=n?n:void 0},((e,t)=>{e.error?r(e):i(t)}))})),a=r.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(r.channels).length){const e=r.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),i=i.concat(t.filter((e=>e.message.messageType!==rs.noReply)))}if(n=a[0].timetoken,i.length>=e||a.length<o)break}this.rawPubnubMessages=i.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&&Tn({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:kn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}shouldCreateAsDevState(){return location.href.startsWith("https://app.meetelise.com/settings/widgets")||location.href.includes("demo/utilities")}},cs=(e,t,i)=>{const n=`tel:${e}`,o=`sms:${e}`,r=`whatsapp://send?phone=${e}}`,a=`facetime:${e}`,s=`facetime-audio:${e}`,l=/(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}/g,u=/(tel|sms):(?:\(\d{3}\)\s|\d{3}-)\d{3}-\d{4}/g,c=/whatsapp:\/\/send\?phone=\d+/g,d=/(facetime|facetime-audio):\d+/g,h=document.body.getElementsByTagName("*");let p=!1;const f=e.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let g=!1,m=!1,b=0;for(let e=0;e<h.length;e++)if(h[e].nodeType===Node.ELEMENT_NODE){if(1===h[e].childNodes.length&&h[e].childNodes[0].nodeType==Node.TEXT_NODE){const t=h[e].innerHTML,i=t.replace(l,f);t!==i&&b++,h[e].innerHTML=i,p=!0,g||(g=!0)}if(h[e].hasAttribute("href")){const t=h[e].getAttribute("href");if(!t)continue;let i="",l=u;t.startsWith("sms:")?i=o:t.startsWith("whatsapp:")?(i=r,l=c):t.startsWith("facetime:")?(i=a,l=d):t.startsWith("facetime-audio:")?(i=s,l=d):i=n;const p=t.replace(l,i);h[e].setAttribute("href",p),m||(m=!0)}}return g&&Tn({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:f,website:window.location.href},logType:kn.info,buildingSlug:i,orgSlug:t}),m&&Tn({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:f,website:window.location.href},logType:kn.info,buildingSlug:i,orgSlug:t}),p||Tn({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:kn.warn,buildingSlug:i,orgSlug:t}),b};var ds=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let hs=class extends oe{constructor(){super(...arguments),this.onClick=()=>{},this.primaryColor=Ie,this.toExpand=!1}render(){return R`
|
|
5409
5417
|
<div
|
|
5410
5418
|
class=${this.toExpand?"button-container mini":"button-container"}
|
|
5411
5419
|
@click=${this.onClick}
|
|
@@ -5414,10 +5422,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5414
5422
|
class="inner-container"
|
|
5415
5423
|
style=${Ne({background:this.primaryColor})}
|
|
5416
5424
|
>
|
|
5417
|
-
${this.toExpand?R`<div class="chevron-up">${
|
|
5425
|
+
${this.toExpand?R`<div class="chevron-up">${ga("white")}</div>`:R` <div class="x-icon">${ar("white")}</div>`}
|
|
5418
5426
|
</div>
|
|
5419
5427
|
</div>
|
|
5420
|
-
`}};
|
|
5428
|
+
`}};hs.styles=[l`
|
|
5421
5429
|
.button-container {
|
|
5422
5430
|
width: 56px;
|
|
5423
5431
|
height: 56px;
|
|
@@ -5466,7 +5474,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5466
5474
|
cursor: pointer;
|
|
5467
5475
|
filter: brightness(90%);
|
|
5468
5476
|
}
|
|
5469
|
-
`],
|
|
5477
|
+
`],ds([le({attribute:!0})],hs.prototype,"onClick",void 0),ds([le({attribute:!0})],hs.prototype,"primaryColor",void 0),ds([le({attribute:!0})],hs.prototype,"toExpand",void 0),hs=ds([ae("minimize-expand-button")],hs);const ps=l`
|
|
5470
5478
|
#healthchat-container {
|
|
5471
5479
|
position: fixed;
|
|
5472
5480
|
|
|
@@ -5582,7 +5590,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5582
5590
|
.health-bttn-allow-access {
|
|
5583
5591
|
padding-right: 28px;
|
|
5584
5592
|
}
|
|
5585
|
-
`,
|
|
5593
|
+
`,fs=l`
|
|
5586
5594
|
#pubnub-chat-container {
|
|
5587
5595
|
position: fixed;
|
|
5588
5596
|
|
|
@@ -5693,7 +5701,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5693
5701
|
border: none;
|
|
5694
5702
|
cursor: pointer;
|
|
5695
5703
|
}
|
|
5696
|
-
`,
|
|
5704
|
+
`,gs=l`
|
|
5697
5705
|
#header-text {
|
|
5698
5706
|
font-size: 12px;
|
|
5699
5707
|
font-weight: 700;
|
|
@@ -5894,7 +5902,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5894
5902
|
.checkbox:hover {
|
|
5895
5903
|
opacity: 0.5;
|
|
5896
5904
|
}
|
|
5897
|
-
`;var
|
|
5905
|
+
`;var ms=i(7856),bs=i.n(ms);class vs extends pe{constructor(e){if(super(e),this.it=H,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||null==e)return this.ft=void 0,this.it=e;if(e===j)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this.ft;this.it=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}vs.directiveName="unsafeHTML",vs.resultType=1;const ys=he(vs);var ws=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Cs=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>`}};Cs.styles=l`
|
|
5898
5906
|
.spinner {
|
|
5899
5907
|
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
5900
5908
|
border-top: 2px solid #c057ff;
|
|
@@ -5912,7 +5920,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5912
5920
|
transform: rotate(360deg);
|
|
5913
5921
|
}
|
|
5914
5922
|
}
|
|
5915
|
-
`,
|
|
5923
|
+
`,ws([le({type:Number})],Cs.prototype,"spinSpeed",void 0),Cs=ws([ae("mini-loader")],Cs);var xs=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let As=class extends oe{constructor(){super(...arguments),this.onMount=()=>({}),this.loadingPreviews=!0,this.websitePreviewInfo=[],this.imagesToDisplay=[],this.imageUrlError=[],this.isLeadMessage=!1,this.widgetType=Ks.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){var t;if(this.onMount(),!e.has("message"))return;if(!this.message)return;try{this.isMessageStillStreamingChunks()||this.isLeadMessage||!this.invalidMarkdownText(this.message.message)||Tn({logType:kn.error,logTitle:"INVALID_MARKDOWN",logData:{message:this.message.message,chatId:null===(t=this.myPubnub)||void 0===t?void 0:t.channel},buildingSlug:this.buildingSlug})}catch(e){console.error("Error parsing markdown:",e)}const{hyperlinks:i,markedText:n}=this.mapAndMarkHyperLinks(this.message.message),o=/(https?:\/\/[^\s]+)/g,r=[],a=[];this.parsedMessage=R`${n.trim().split("\n").map((e=>{const t=this.sanitizeMarkdownText(e),n=this.preserveHTMLTags(t);return n?R`${n.map((e=>{if(i.find((t=>t.id===e))){const t=i.find((t=>t.id===e));if(!t)return;return a.push({redirectTo:null==t?void 0:t.link,source:null==t?void 0:t.link}),R`<a
|
|
5916
5924
|
class="redirect-link"
|
|
5917
5925
|
href="${null==t?void 0:t.link}"
|
|
5918
5926
|
target="_blank"
|
|
@@ -5924,10 +5932,10 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5924
5932
|
target="_blank"
|
|
5925
5933
|
rel="noopener noreferrer"
|
|
5926
5934
|
>${t}
|
|
5927
|
-
</a>`}return R`${
|
|
5935
|
+
</a>`}return R`${ys(bs().sanitize(e))} `}))}<br />`:R``}))}`,this.imagesToDisplay=a,Promise.all(r).then((e=>{this.websitePreviewInfo=e}))}invalidMarkdownText(e){try{return[/\*\*[^*\n]*\*$/,/__[^_\n]*_$/,/`[^`\n]*`$/,/\[[^\]\n]*\]$/,/\[[^\]]*\]\([^)\n]*\)$/,/^(#+)\s*$/,/(^|[^!])\[[^\]]*\]\(([^)]+)\s*\)$/,/(?:^|\s)[*_]{1,2}(?:\s|$)/].some((t=>t.test(e)))}catch(e){return!1}}preserveHTMLTags(e){var t;const i=e.match(/(<\/?[a-z][^>]*>[^<]*<\/?[a-z]*>|[^\s]+[.,?!]?|\S)/gi);return null!==(t=null==i?void 0:i.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)),i=[],n=t.map((t=>{const i=t[0];if(void 0===t.index)return;const n=e[t.index-1],o=e[t.index+i.length];if(i.startsWith("<https")||i.startsWith("<http"))return{matchedLink:i,link:i.split("|")[0].replace("<",""),hyperlink:i.split("|")[1].replace(">",""),addSpaceBefore:!(!n||" "===n),addSpaceAfter:!(!o||" "===o)};if(i.startsWith("<a href=")){const e=i.match(/href="([^"]+)"/),t=i.match(/>[^<]+</);return{matchedLink:i,link:e?e[1]:"",hyperlink:t?t[0].slice(1,-1):"",addSpaceBefore:!(!n||" "===n),addSpaceAfter:!(!o||" "===o)}}{const[e,t]=i.split("](");return{matchedLink:i,link:t?t.slice(0,-1):"",hyperlink:e?e.slice(1):"",addSpaceBefore:!(!n||" "===n),addSpaceAfter:!(!o||" "===o)}}}));return n.forEach((t=>{if(t&&t.link&&t.hyperlink){const n=es().replace(/-/g,"");i.push({link:this.removeTrailingPunctuation(t.link),hyperlink:this.removeTrailingPunctuation(t.hyperlink),mark:t.matchedLink,id:n}),e=e.replace(t.matchedLink,`${t.addSpaceBefore?" ":""}${n}${t.addSpaceAfter?" ":""}`)}})),{hyperlinks:i,markedText:e}}async getLinkData(e){var i,n,o,r;try{const a=(await t().get(e)).data,s=(new DOMParser).parseFromString(a,"text/html");return s?{title:null!==(n=null===(i=s.querySelector("title"))||void 0===i?void 0:i.textContent)&&void 0!==n?n:null,description:(null===(o=s.querySelector('meta[name="description"]'))||void 0===o?void 0:o.getAttribute("content"))||null,image:(null===(r=s.querySelector('meta[property="og:image"]'))||void 0===r?void 0:r.getAttribute("content"))||null,favicon:null,link:e}:{title:null,description:null,image:null,favicon:null,link:e}}catch(t){return console.error("Error fetching website details:",t),{title:null,description:null,image:null,favicon:null,link:e}}}render(){return this.message?R`<div class="message-inner-body">
|
|
5928
5936
|
${this.isMessageStillStreamingChunks()?R`<div class="message-loader"><mini-loader></mini-loader></div>`:""}
|
|
5929
5937
|
<p
|
|
5930
|
-
class=${fe({"message-text":this.widgetType!==
|
|
5938
|
+
class=${fe({"message-text":this.widgetType!==Ks.Utilities,"message-text-large":this.widgetType===Ks.Utilities,"webchat-font__desktop":!vi(),"webchat-font__mobile":vi()})}
|
|
5931
5939
|
>
|
|
5932
5940
|
${this.parsedMessage}
|
|
5933
5941
|
</p>
|
|
@@ -5958,16 +5966,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5958
5966
|
/>`:""}
|
|
5959
5967
|
|
|
5960
5968
|
<div class="website-preview-body">
|
|
5961
|
-
<p class=${fe({"message-text":this.widgetType!==
|
|
5969
|
+
<p class=${fe({"message-text":this.widgetType!==Ks.Utilities,"message-text-large":this.widgetType===Ks.Utilities,"website-preview-title":!0,"webchat-font__desktop":!vi(),"webchat-font__mobile":vi()})}>${e.title}</p>
|
|
5962
5970
|
${e.description?R`<p
|
|
5963
|
-
class=${fe({"message-text":this.widgetType!==
|
|
5971
|
+
class=${fe({"message-text":this.widgetType!==Ks.Utilities,"message-text-large":this.widgetType===Ks.Utilities,"website-preview-description":!0,"webchat-font__desktop":!vi(),"webchat-font__mobile":vi()})}
|
|
5964
5972
|
>
|
|
5965
5973
|
${e.description}
|
|
5966
5974
|
</p>`:""}
|
|
5967
5975
|
</div>
|
|
5968
5976
|
</div>
|
|
5969
5977
|
</a></div> `}))}
|
|
5970
|
-
</div>`:R``}};
|
|
5978
|
+
</div>`:R``}};As.styles=[Si,gs,l`
|
|
5971
5979
|
.message-inner-body {
|
|
5972
5980
|
position: relative;
|
|
5973
5981
|
}
|
|
@@ -5976,7 +5984,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5976
5984
|
bottom: -2px;
|
|
5977
5985
|
right: -2px;
|
|
5978
5986
|
}
|
|
5979
|
-
`],
|
|
5987
|
+
`],xs([le({attribute:!0})],As.prototype,"buildingSlug",void 0),xs([le({attribute:!0})],As.prototype,"message",void 0),xs([le({attribute:!0})],As.prototype,"myPubnub",void 0),xs([le({attribute:!0})],As.prototype,"onMount",void 0),xs([ue()],As.prototype,"loadingPreviews",void 0),xs([ue()],As.prototype,"parsedMessage",void 0),xs([ue()],As.prototype,"websitePreviewInfo",void 0),xs([ue()],As.prototype,"imagesToDisplay",void 0),xs([ue()],As.prototype,"imageUrlError",void 0),xs([le({type:Boolean})],As.prototype,"isLeadMessage",void 0),xs([le({attribute:!0})],As.prototype,"widgetType",void 0),As=xs([ae("pubnub-message")],As);var Ss=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let ks=class extends oe{constructor(){super(...arguments),this.onMount=()=>({}),this.showMediaAsCarousel=!0,this.activeIndex=0}updated(e){this.onMount(),e.has("message")}prevImage(){this.message&&(0===this.activeIndex?this.activeIndex=this.message.media.length-1:this.activeIndex-=1)}nextImage(){this.message&&(this.activeIndex===this.message.media.length-1?this.activeIndex=0:this.activeIndex+=1)}render(){return this.message?this.showMediaAsCarousel?R`<div class="message-inner-body">
|
|
5980
5988
|
<div class="carousel">
|
|
5981
5989
|
<div
|
|
5982
5990
|
class="image-container"
|
|
@@ -6017,7 +6025,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6017
6025
|
rel="noopener noreferrer"
|
|
6018
6026
|
><img class=${"displayed-message-image"} src=${e.url} alt=""
|
|
6019
6027
|
/></a>`))}
|
|
6020
|
-
</div>`:R``}};
|
|
6028
|
+
</div>`:R``}};ks.styles=[Si,gs,l`
|
|
6021
6029
|
.carousel {
|
|
6022
6030
|
position: relative;
|
|
6023
6031
|
max-width: 400px;
|
|
@@ -6109,7 +6117,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6109
6117
|
max-height: 200px;
|
|
6110
6118
|
overflow-y: auto;
|
|
6111
6119
|
}
|
|
6112
|
-
`],
|
|
6120
|
+
`],Ss([le({attribute:!0})],ks.prototype,"message",void 0),Ss([le({attribute:!0})],ks.prototype,"myPubnub",void 0),Ss([le({attribute:!0})],ks.prototype,"onMount",void 0),Ss([ue()],ks.prototype,"showMediaAsCarousel",void 0),Ss([ue()],ks.prototype,"activeIndex",void 0),ks=Ss([ae("pubnub-media")],ks);var Ts=864e5;function _s(e,t){je(2,arguments);var i=Vt(e),n=Vt(t),o=i.getTime()-Mt(i),r=n.getTime()-Mt(n);return Math.round((o-r)/Ts)}function Es(e,t){var i=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return i<0?-1:i>0?1:i}const Os=l`
|
|
6113
6121
|
#utilities-container {
|
|
6114
6122
|
position: fixed;
|
|
6115
6123
|
|
|
@@ -6216,17 +6224,17 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6216
6224
|
.health-bttn-allow-access {
|
|
6217
6225
|
padding-right: 28px;
|
|
6218
6226
|
}
|
|
6219
|
-
`,
|
|
6227
|
+
`,Ps=(e="black")=>B`
|
|
6220
6228
|
<svg width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6221
6229
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${e}"/>
|
|
6222
6230
|
<path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${e}"/>
|
|
6223
6231
|
</svg>
|
|
6224
|
-
`,
|
|
6232
|
+
`,Ms=(e="black")=>B`
|
|
6225
6233
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6226
6234
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${e}"/>
|
|
6227
6235
|
<path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${e}"/>
|
|
6228
6236
|
</svg>
|
|
6229
|
-
`;var
|
|
6237
|
+
`;var Ns=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Is=class extends oe{constructor(){super(...arguments),this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.onMount=()=>({}),this.isHealthChat=!1,this.widgetType=Ks.Default,this.primaryColor=Ie,this.backgroundColor=De,this.onClickExit=()=>{localStorage.setItem("isChatOpen","false")},this.requiresConsent=!1,this.messages=[],this.isLoadingMessages=!1,this.hasReceivedConsent=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.websitePreviewMapping={},this.sendMessage=async e=>{var t;0!==e.length&&(this.messageInput.value="",this.autoResizeMessageInput(),0===this.messages.length&&(this.messages=[{timestamp:0,message:e,isLeadMessage:!0,chunks:[{text:e,order:0,isDone:!0}],type:ls.text}]),await(null===(t=this.myPubnub)||void 0===t?void 0:t.sendMessage(e)))},this.scrollToChatBottom=()=>{this.messageBody.scrollTo({top:this.messageBody.scrollHeight-this.messageBody.clientHeight,behavior:"smooth"})},this.autoResizeMessageInput=()=>{this.messageInput.style.height="auto",this.messageInput.style.height=this.messageInput.scrollHeight+"px"},this.needsConsent=()=>this.requiresConsent&&!this.hasReceivedConsent}get consentKey(){return`${this.orgSlug}Consent`}firstUpdated(){var e,t;this.messages=(null===(e=this.myPubnub)||void 0===e?void 0:e.simpleChatMessages)||[],null===(t=this.myPubnub)||void 0===t||t.addChatListener((e=>{this.messages=e.messages,this.isLoadingMessages=e.isLoading})),this.onMount();const i=localStorage.getItem(this.consentKey);if(!i)return void(this.hasReceivedConsent=!1);const n=JSON.parse(i),{timestamp:o,consentId:r}=n,a=function(e,t){je(2,arguments);var i=He(e),n=He(t),o=Es(i,n),r=Math.abs(_s(i,n));i.setDate(i.getDate()-o*r);var a=Number(Es(i,n)===-o),s=o*(r-a);return 0===s?0:s}(new Date,new Date(o));a<7&&r===vn?this.hasReceivedConsent=!0:(this.hasReceivedConsent=!1,localStorage.removeItem(this.consentKey))}async updated(){this.scrollToChatBottom();try{const e=document.getElementById("#healthchat-container");if(!e)return;e.focus()}catch(e){console.error(e)}}render(){var e,t,i,n,o,r,a,s,l,u,c,d,h,p;if(!this.buildingSlug)return R``;const f=null===(e=this.building)||void 0===e?void 0:e.id;let g={};if(g=vi()?{top:void 0,bottom:0,left:void 0,right:0}:{top:void 0===this.top||isNaN(this.top)?void 0:`${this.top}px`,bottom:void 0===this.bottom||isNaN(this.bottom)?"130px":`${this.bottom}px`,left:void 0===this.left||isNaN(this.left)?void 0:`${this.left}px`,right:void 0===this.right||isNaN(this.right)?"18px":`${this.right}px`},22320===f&&(g={...g,fontFamily:'"Helvetica Neue", Arial'}),this.widgetType===Ks.Utilities)return R`
|
|
6230
6238
|
<div
|
|
6231
6239
|
id="utilities-container"
|
|
6232
6240
|
class=${fe({"pubnub-container__mobile":vi(),"utilities-container__desktop":!vi()})}
|
|
@@ -6241,13 +6249,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6241
6249
|
@click=${this.onClickExit}
|
|
6242
6250
|
aria-label="Close chat"
|
|
6243
6251
|
>
|
|
6244
|
-
${
|
|
6252
|
+
${ar("black")}
|
|
6245
6253
|
</button>
|
|
6246
6254
|
</div>
|
|
6247
6255
|
<div
|
|
6248
6256
|
class=${fe({hidden:!this.needsConsent(),"legal-confirmation-container":!0})}
|
|
6249
6257
|
>
|
|
6250
|
-
${
|
|
6258
|
+
${yn(null!==(t=this.orgSlug)&&void 0!==t?t:null,this.privacyPolicyUrl,this.consentKey,(e=>{this.hasReceivedConsent=e}))}
|
|
6251
6259
|
</div>
|
|
6252
6260
|
<div
|
|
6253
6261
|
id="conversation-body"
|
|
@@ -6258,7 +6266,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6258
6266
|
class=${fe({hidden:this.needsConsent()})}
|
|
6259
6267
|
>
|
|
6260
6268
|
<li class="utilities-disclaimer-message">
|
|
6261
|
-
${
|
|
6269
|
+
${wn({orgSlug:null!==(i=this.orgSlug)&&void 0!==i?i:"",type:"utilities",buildingState:null!==(o=null===(n=this.building)||void 0===n?void 0:n.state)&&void 0!==o?o:null})}
|
|
6262
6270
|
</li>
|
|
6263
6271
|
<li class="message-container ai-message">
|
|
6264
6272
|
<p
|
|
@@ -6272,13 +6280,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6272
6280
|
class=${e.isLeadMessage?"message-container lead-message":"message-container ai-message"}
|
|
6273
6281
|
key=${e.timestamp}
|
|
6274
6282
|
>
|
|
6275
|
-
${
|
|
6283
|
+
${ss(e)?R` <pubnub-media
|
|
6276
6284
|
.message=${e}
|
|
6277
6285
|
.myPubnub=${this.myPubnub}
|
|
6278
6286
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
6279
6287
|
>
|
|
6280
6288
|
</pubnub-media>`:""}
|
|
6281
|
-
${
|
|
6289
|
+
${as(e)?R` <pubnub-message
|
|
6282
6290
|
.message=${e}
|
|
6283
6291
|
.myPubnub=${this.myPubnub}
|
|
6284
6292
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -6321,12 +6329,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6321
6329
|
class=${fe({"health-bttn-allow-access":vi()})}
|
|
6322
6330
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
6323
6331
|
>
|
|
6324
|
-
${
|
|
6332
|
+
${Ps("black")}
|
|
6325
6333
|
</button>
|
|
6326
6334
|
</div>
|
|
6327
6335
|
</div>
|
|
6328
6336
|
</div>
|
|
6329
|
-
`;if(this.widgetType===
|
|
6337
|
+
`;if(this.widgetType===Ks.Healthcare)return R`
|
|
6330
6338
|
<div
|
|
6331
6339
|
id="healthchat-container"
|
|
6332
6340
|
class=${fe({"pubnub-container__mobile":vi(),"healthchat-container__desktop":!vi()})}
|
|
@@ -6345,13 +6353,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6345
6353
|
@click=${this.onClickExit}
|
|
6346
6354
|
aria-label="Close chat"
|
|
6347
6355
|
>
|
|
6348
|
-
${
|
|
6356
|
+
${ar("black")}
|
|
6349
6357
|
</button>
|
|
6350
6358
|
</div>
|
|
6351
6359
|
<div
|
|
6352
6360
|
class=${fe({hidden:!this.needsConsent(),"legal-confirmation-container":!0})}
|
|
6353
6361
|
>
|
|
6354
|
-
${
|
|
6362
|
+
${yn(null!==(r=this.orgSlug)&&void 0!==r?r:null,this.privacyPolicyUrl,this.consentKey,(e=>{this.hasReceivedConsent=e}))}
|
|
6355
6363
|
</div>
|
|
6356
6364
|
<div
|
|
6357
6365
|
id="conversation-body"
|
|
@@ -6362,7 +6370,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6362
6370
|
class=${fe({hidden:this.needsConsent()})}
|
|
6363
6371
|
>
|
|
6364
6372
|
<li class="healthcare-disclaimer-message">
|
|
6365
|
-
${
|
|
6373
|
+
${wn({orgSlug:null!==(a=this.orgSlug)&&void 0!==a?a:"",type:"healthcare",buildingState:null!==(l=null===(s=this.building)||void 0===s?void 0:s.state)&&void 0!==l?l:null})}
|
|
6366
6374
|
</li>
|
|
6367
6375
|
<li class="message-container ai-message">
|
|
6368
6376
|
<p
|
|
@@ -6377,13 +6385,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6377
6385
|
class=${e.isLeadMessage?"message-container lead-message":"message-container ai-message"}
|
|
6378
6386
|
key=${e.timestamp}
|
|
6379
6387
|
>
|
|
6380
|
-
${
|
|
6388
|
+
${ss(e)?R` <pubnub-media
|
|
6381
6389
|
.message=${e}
|
|
6382
6390
|
.myPubnub=${this.myPubnub}
|
|
6383
6391
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
6384
6392
|
>
|
|
6385
6393
|
</pubnub-media>`:""}
|
|
6386
|
-
${
|
|
6394
|
+
${as(e)?R` <pubnub-message
|
|
6387
6395
|
.message=${e}
|
|
6388
6396
|
.myPubnub=${this.myPubnub}
|
|
6389
6397
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -6426,7 +6434,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6426
6434
|
class=${fe({"health-bttn-allow-access":vi()})}
|
|
6427
6435
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
6428
6436
|
>
|
|
6429
|
-
${vi()?
|
|
6437
|
+
${vi()?Ps("black"):Ms("black")}
|
|
6430
6438
|
</button>
|
|
6431
6439
|
</div>
|
|
6432
6440
|
</div>
|
|
@@ -6449,13 +6457,13 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6449
6457
|
@click=${this.onClickExit}
|
|
6450
6458
|
aria-label="Close chat"
|
|
6451
6459
|
>
|
|
6452
|
-
${
|
|
6460
|
+
${ar("black")}
|
|
6453
6461
|
</button>
|
|
6454
6462
|
</div>
|
|
6455
6463
|
<div
|
|
6456
6464
|
class=${fe({hidden:!this.needsConsent(),"legal-confirmation-container":!0})}
|
|
6457
6465
|
>
|
|
6458
|
-
${
|
|
6466
|
+
${yn(null!==(u=this.orgSlug)&&void 0!==u?u:null,this.privacyPolicyUrl,this.consentKey,(e=>{this.hasReceivedConsent=e}))}
|
|
6459
6467
|
</div>
|
|
6460
6468
|
<div
|
|
6461
6469
|
id="conversation-body"
|
|
@@ -6466,7 +6474,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6466
6474
|
id="message-thread-list"
|
|
6467
6475
|
class=${fe({hidden:this.needsConsent()})}
|
|
6468
6476
|
>
|
|
6469
|
-
${
|
|
6477
|
+
${wn({orgSlug:null!==(c=this.orgSlug)&&void 0!==c?c:"",buildingState:null!==(h=null===(d=this.building)||void 0===d?void 0:d.state)&&void 0!==h?h:null,type:"leasing"})}
|
|
6470
6478
|
${this.building.welcomeMessage?R` <li
|
|
6471
6479
|
class=${fe({"message-container":!0,"ai-message":!0,"with-box-shadow":444===m})}
|
|
6472
6480
|
>
|
|
@@ -6478,16 +6486,16 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6478
6486
|
</li>`:""}
|
|
6479
6487
|
${this.messages.map((e=>R`
|
|
6480
6488
|
<li
|
|
6481
|
-
class=${
|
|
6489
|
+
class=${rn()("message-container",{"lead-message":e.isLeadMessage,"ai-message":!e.isLeadMessage,"with-box-shadow":444===m})}
|
|
6482
6490
|
key=${e.timestamp}
|
|
6483
6491
|
>
|
|
6484
|
-
${
|
|
6492
|
+
${ss(e)?R` <pubnub-media
|
|
6485
6493
|
.message=${e}
|
|
6486
6494
|
.myPubnub=${this.myPubnub}
|
|
6487
6495
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
6488
6496
|
>
|
|
6489
6497
|
</pubnub-media>`:""}
|
|
6490
|
-
${
|
|
6498
|
+
${as(e)?R` <pubnub-message
|
|
6491
6499
|
.message=${e}
|
|
6492
6500
|
.myPubnub=${this.myPubnub}
|
|
6493
6501
|
.onMount=${()=>this.scrollToChatBottom()}
|
|
@@ -6530,11 +6538,11 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6530
6538
|
aria-label="Send message"
|
|
6531
6539
|
aria-describedby="Send message"
|
|
6532
6540
|
>
|
|
6533
|
-
${Le(this.building.orgId,this.building.id)&&this.primaryColor!==Ie?
|
|
6541
|
+
${Le(this.building.orgId,this.building.id)&&this.primaryColor!==Ie?Ms("black"):Ms("white")}
|
|
6534
6542
|
</button>
|
|
6535
6543
|
</div>
|
|
6536
6544
|
</div>
|
|
6537
|
-
`}};Ps.styles=[Ai,hs,ds,cs,Ts],Os([le({type:Number})],Ps.prototype,"right",void 0),Os([le({type:Number})],Ps.prototype,"bottom",void 0),Os([le({type:Number})],Ps.prototype,"top",void 0),Os([le({type:Number})],Ps.prototype,"left",void 0),Os([le({attribute:!0})],Ps.prototype,"onMount",void 0),Os([le({attribute:!0})],Ps.prototype,"channel",void 0),Os([le({attribute:!0})],Ps.prototype,"isHealthChat",void 0),Os([le({attribute:!0})],Ps.prototype,"myPubnub",void 0),Os([le({attribute:!0})],Ps.prototype,"orgSlug",void 0),Os([le({attribute:!0})],Ps.prototype,"buildingSlug",void 0),Os([le({attribute:!0})],Ps.prototype,"widgetType",void 0),Os([le({attribute:!0})],Ps.prototype,"building",void 0),Os([le({attribute:!0})],Ps.prototype,"primaryColor",void 0),Os([le({attribute:!0})],Ps.prototype,"backgroundColor",void 0),Os([le({attribute:!0})],Ps.prototype,"onClickExit",void 0),Os([le({attribute:!0})],Ps.prototype,"requiresConsent",void 0),Os([ce("#message-input",!0)],Ps.prototype,"messageInput",void 0),Os([ce("#conversation-body",!0)],Ps.prototype,"messageBody",void 0),Os([ue()],Ps.prototype,"messages",void 0),Os([ue()],Ps.prototype,"isLoadingMessages",void 0),Os([ue()],Ps.prototype,"hasReceivedConsent",void 0),Os([ue()],Ps.prototype,"privacyPolicyUrl",void 0),Os([ue()],Ps.prototype,"websitePreviewMapping",void 0),Ps=Os([ae("pubnub-chat")],Ps);const Ms=(e,t)=>["floor plan","floorplan","floor plans","floorplans"].some((t=>e.toLowerCase().includes(t)))?`${t}/units`:t;class Ns{constructor(e,t){this.persistLeadSourceTTLDays=30,this.maxSourcesNonPropertyWebsiteCount=3,this._generateLeadSourceLocalStorageKey=()=>`com.eliseai.webchat.leadsources.v2.buildingslug=${this.buildingSlug}`,this._generateNewExpirationTimestamp=()=>Ti(_i(new Date,this.persistLeadSourceTTLDays)),this._generateLeadSourceParameters=()=>{const e=_n();return{websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:e,referrer:document.referrer,parsedUtmSource:e?e.utm_source:null,campaignSources:Object.values(An()).filter((e=>e))}},this.addSafeLeadSourceTouchpoint=e=>{const t=this.getLocalStorageMultitouchValue(),i=this._generateLeadSourceLocalStorageKey();if(!t||this.isExpiredTimestamp(t.timestampExpires)){const t={timestampExpires:this._generateNewExpirationTimestamp(),leadSources:[{parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:Ti(new Date),type:"touchpoint"}]};localStorage.setItem(i,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:Ti(new Date),type:"touchpoint"}),t.timestampExpires=this._generateNewExpirationTimestamp(),void localStorage.setItem(i,JSON.stringify(t));console.warn(`Too many lead sources for ${this.buildingSlug}, max is ${this.maxSourcesNonPropertyWebsiteCount}`),kn({logType:Sn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,logTitle:"TOO_MANY_LEAD_SOURCES",logData:{buildingSlug:this.buildingSlug}})}},this.getSafeLeadSourceTouchpointsWithDefault=({includedUserSelectedLeadSource:e})=>{const t=this.getLocalStorageMultitouchValue(),i=Mn(this.orgSlug);if(!t){const t=[{leadSourceValue:i,timestampInitiallyLogged:Ti(new Date),type:"default"}];return e&&t.push({leadSourceValue:e,timestampInitiallyLogged:Ti(new Date),type:"user-selected"}),t}const n=t.leadSources.length>0?t.leadSources.sort(((e,t)=>Ii(e.timestampInitiallyLogged).getTime()-Ii(t.timestampInitiallyLogged).getTime()))[0].timestampInitiallyLogged:Ti(new Date),o=[{timestampInitiallyLogged:n,leadSourceValue:i,type:"default"},...t.leadSources.map((e=>({timestampInitiallyLogged:e.timestampInitiallyLogged,leadSourceValue:e.leadSourceValue,type:e.type})))];return e&&o.push({leadSourceValue:e,timestampInitiallyLogged:Ti(new Date),type:"user-selected"}),o},this.getLocalStorageMultitouchValue=()=>{const e=this._generateLeadSourceLocalStorageKey(),t=localStorage.getItem(e);return t?JSON.parse(t):null},this.isExpiredTimestamp=e=>Ii(e)<new Date,this.resetLeadSourceTouchpoints=()=>{const e=this._generateLeadSourceLocalStorageKey();return localStorage.removeItem(e),!0},this.orgSlug=e,this.buildingSlug=t}}var Is=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Ds=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.primaryColor=null,this.backgroundColor=null,this.foregroundColorOnPrimaryBackgroundColor=null,this.foregroundColorOnSecondaryBackgroundColor=null,this.chatId="",this.analytics=null,this.launcher=null,this.buildingWebchatView=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=an.always,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!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=Ws.Default,this.onWidgetLoaded=ya(),this.onSstClose=ya(),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=Ae(),this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{if(!this.buildingSlug||!this.orgSlug)return;const e=await Rn(this.orgSlug,this.buildingSlug);if(Math.random()<.2)try{(async(e,i)=>{const n=window.rentgrata;if(!n)return;const o=n.Widget;if(!o)return;const r=o.config;if(!r)return;const a=r.widgetKey;a&&await t().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=i?i:""}})})(this.buildingSlug,this.orgSlug)}catch(e){console.warn("Error updating rentgrata token",e)}await(async(e,i,n)=>{const o=.01;if(!e)return console.warn("MeetElise Chat will NOT appear. Building does NOT exist."),Po(n,i,!0,!1,"building_does_not_exist",o),!1;if(!e.launchedDateTime)return console.warn("MeetElise Chat will NOT appear. Building is NOT launched (based on launched date time)."),Po(n,i,!0,!1,"building_not_launched",o),!1;if(!e.active)return console.warn("MeetElise Chat will NOT appear. Building is NOT active."),Po(n,i,!0,!1,"building_not_active",o),!1;if(!e.webchatScopeConfigured)return console.warn("MeetElise Chat will NOT appear. Building is NOT webchat scope configured."),Po(n,i,!0,!1,"building_not_webchat_scope_configured",o),!1;const r=await async function(e){if(!e)return!1;try{return(await t().get(rn(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-leasing-in-maintenance-mode",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(i);return!r||(console.warn("MeetElise Chat will NOT appear. Chat is in maintenance mode."),Po(n,i,!0,!1,"building_in_maintenance_mode",o),!1)})(e,this.buildingSlug,this.orgSlug)&&(Tn({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_pixel_on_site:!0,is_any_webchat_showing:!0},sampleRate:(null==e?void 0:e.launchedDateTime)?.01:.05}),this.buildingWebchatView=e,await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)&&(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.updateAlreadyAutoOpenedTimestamp()),this.isLoading=!1,"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0))},this.setBuildingDerivedInfo=async()=>{var e,i,n,o,r,a,s,l,u,c,d,h,p,f,g,m,b,v,y,w,C,x,A,S,k,T,_,E,O,P,M,N,I,D,U,L,R,B,j,H,F,$,z,Q,G,q,W;const V=this.buildingWebchatView;if(!V)return;V&&this.orgSlug&&Ls(this.orgSlug,null!==(i=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.chatId)&&void 0!==i?i:null,this.sampleRateToUse,this.buildingSlug,null!==(o=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==o?o:null);const[Y,K,X,Z,J,ee,te]=await Promise.all([Oo(this.buildingSlug),Ha(this.orgSlug,this.buildingSlug),sn(this.buildingSlug),ln(this.buildingSlug),un(this.buildingSlug),cn(this.buildingSlug),dn(this.buildingSlug)]);this.buildingWebchatView&&(this.buildingWebchatView.phoneNumber=Ee(V.phoneNumber)),this.designConcept=null!==(r=null==Y?void 0:Y.abTestType)&&void 0!==r?r:"",this.leadSources=K,this.featureFlagShowDropdown=X;const ie=V.textWithUsPhoneNumber?V.textWithUsPhoneNumber:await(async e=>{try{const i="https://app.meetelise.com",n=await t().get(`${i}/platformApi/webchat/${e}/phone-number`);if(n.data)return n.data}catch(t){return kn({logType:Sn.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t}}),null}return null})(this.buildingSlug),ne=null!==(s=null===(a=this.buildingWebchatView)||void 0===a?void 0:a.shouldShowPricingCalculatorDesktop)&&void 0!==s&&s,oe=null!==(u=null===(l=this.buildingWebchatView)||void 0===l?void 0:l.shouldShowPricingCalculatorMobile)&&void 0!==u&&u,re={callDesktop:null!==(d=null===(c=this.buildingWebchatView)||void 0===c?void 0:c.shouldShowPhoneDesktop)&&void 0!==d&&d,callMobile:null!==(p=null===(h=this.buildingWebchatView)||void 0===h?void 0:h.shouldShowPhoneMobile)&&void 0!==p&&p,chatDesktop:null!==(g=null===(f=this.buildingWebchatView)||void 0===f?void 0:f.shouldShowChatDesktop)&&void 0!==g&&g,chatMobile:null!==(b=null===(m=this.buildingWebchatView)||void 0===m?void 0:m.shouldShowChatMobile)&&void 0!==b&&b,emailDesktop:null!==(y=null===(v=this.buildingWebchatView)||void 0===v?void 0:v.shouldShowEmailDesktop)&&void 0!==y&&y,emailMobile:null!==(C=null===(w=this.buildingWebchatView)||void 0===w?void 0:w.shouldShowEmailMobile)&&void 0!==C&&C,textDesktop:null!==(A=(null===(x=this.buildingWebchatView)||void 0===x?void 0:x.shouldShowTextDesktop)&&!!ie)&&void 0!==A&&A,textMobile:null!==(k=(null===(S=this.buildingWebchatView)||void 0===S?void 0:S.shouldShowTextMobile)&&!!ie)&&void 0!==k&&k,sstDesktop:null!==(_=null===(T=this.buildingWebchatView)||void 0===T?void 0:T.shouldShowSstDesktop)&&void 0!==_&&_,sstMobile:null!==(O=null===(E=this.buildingWebchatView)||void 0===E?void 0:E.shouldShowSstMobile)&&void 0!==O&&O,calcDesktop:ne,calcMobile:oe};var ae,se;this.enabledChatWidgets=(e=>{const t=window.location.hostname;if(!Sa.includes(t))return e;const i=(e=>{if(!e)return{};try{return e.split(",").reduce(((e,t)=>{const[i,n]=t.split(":");return i&&n&&i in ka&&(e[i]="true"===n.toLowerCase()),e}),{})}catch(e){return console.warn("Error parsing widget overrides:",e),{}}})(new URLSearchParams(window.location.search).get("widgets"));if(0===Object.keys(i).length)return e;const n={...e};return Object.entries(i).forEach((([e,t])=>{const i=ka[e];i&&(n[i.desktop]=t,n[i.mobile]=t)})),console.info("Applied widget overrides:",i),n})(re),this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile||"radco"===this.orgSlug?(se=this.handleTourClicked,document.querySelectorAll("a").forEach((function(e){const t=e.getAttribute("href");t&&t.startsWith("https://app.meetelise.com/")&&e.addEventListener("click",(e=>{e.preventDefault(),se(e)}))})),ee&&(e=>{document.querySelectorAll('a[href$="schedule-a-tour"]').forEach((t=>{t&&t.addEventListener("click",(t=>{t.preventDefault(),e(t)}))}))})(this.handleTourClicked),"radco"===this.orgSlug&&(e=>{document.querySelectorAll('a[href^="#leaseleads-tour-open"]').forEach((t=>{var i;if(!t)return;const n=document.createElement("a");n.innerHTML=t.innerHTML,n.style.cursor="pointer",n.addEventListener("click",(t=>{t.preventDefault(),e(t)})),null===(i=t.parentNode)||void 0===i||i.replaceChild(n,t)}))})(this.handleTourClicked)):(null===(P=this.LeadSourceClient)||void 0===P?void 0:P.leadSource)&&(ae=null!==(N=null===(M=this.LeadSourceClient)||void 0===M?void 0:M.leadSource)&&void 0!==N?N:null,document.querySelectorAll("a").forEach((function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const i=t.includes("?")?"&":"?";e.setAttribute("href",t+i+`eliseParsedLeadSource=${encodeURIComponent(ae)}`)}}))),this.buildingWebchatView&&(this.primaryColor=null!==(I=this.buildingWebchatView.primaryColor)&&void 0!==I?I:null,this.backgroundColor=null!==(D=this.buildingWebchatView.secondaryColor)&&void 0!==D?D:null,this.foregroundColorOnPrimaryBackgroundColor=null!==(U=this.buildingWebchatView.foregroundColorOnPrimaryBackgroundColor)&&void 0!==U?U:null,this.foregroundColorOnSecondaryBackgroundColor=null!==(L=this.buildingWebchatView.foregroundColorOnSecondaryBackgroundColor)&&void 0!==L?L:null,this.webchatConfigHasAutoOpenChat=null!==(R=this.buildingWebchatView.autoOpenChat)&&void 0!==R&&R,this.requiresConsent=null!==(B=this.buildingWebchatView.requiresConsentForChat)&&void 0!==B&&B,this.hideMobileFeatures=null!==(j=this.buildingWebchatView.collapseMobileFeatures)&&void 0!==j&&j,this.privacyPolicyUrl=null!==(H=this.buildingWebchatView.privacyPolicyUrlForChat)&&void 0!==H?H:this.privacyPolicyUrl,this.buildingWebchatView.displayStyle===In.MINIMIZED&&(this.isMinimized=!0),this.buildingWebchatView.displayStyle===In.PILLS&&(this.designConcept=null),this.buildingWebchatView.displayStyle===In.EMOJI&&(this.designConcept=In.EMOJI),this.onWidgetLoaded()),null===this.primaryColor&&(this.primaryColor=Ie),null===this.backgroundColor&&(this.backgroundColor=De);const le=null!==($=null===(F=this.buildingWebchatView)||void 0===F?void 0:F.phoneNumber)&&void 0!==$?$:"";let ue=null;if(Z&&(ue=await async function(e,i){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source`,{params:{source:i}});return n.data?{number:Ee(n.data.number),isMatch:n.data.match,isPropertyWebsiteCatchall:n.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(Q=null===(z=this.LeadSourceClient)||void 0===z?void 0:z.leadSource)&&void 0!==Q?Q:null),ue&&!ue.isMatch&&(ue.number=le)),J&&(null==ue?void 0:ue.number)){const e=ss(ue.number,this.orgSlug,this.buildingSlug);e>0&&Tn({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_dni_insert_override_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}const ce=localStorage.getItem("eliseai_phone_number_devtest");ce&&(console.info("Using dev test phone number: ",ce),ss(ce,this.orgSlug,this.buildingSlug)),this.phoneNumberForSource=ue||{number:le,isMatch:!1,isPropertyWebsiteCatchall:!0};const de=null!==(q=null===(G=this.LeadSourceClient)||void 0===G?void 0:G.leadSource)&&void 0!==q?q:null;if(de&&(this.leadSources.includes(de)||this.leadSources.push(de)),Yi(V.id),te&&this.buildingSlug&&(null===(W=this.buildingWebchatView)||void 0===W?void 0:W.isLiveOnApplications)){const e=((e,t,i)=>{var n;const o=[/thehavenatgreenhill\.securecafe\.com\/onlineleasing\/the-haven-at-greenhill\/oleapplication\.aspx(\?.*)?$/,/securecafe\.com\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/New\/.*(\?.*)?$/],r=document.body.getElementsByTagName("a");let a=0;for(let s=0;s<r.length;s++){const l=r[s];if(l.nodeType===Node.ELEMENT_NODE&&o.some((e=>e.test(l.href)))){const o=l.getAttribute("href"),r=(null===(n=l.textContent)||void 0===n?void 0:n.toLowerCase())||"",s=Ms(r,e);l.setAttribute("href",s),a++,kn({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"link-replacement",oldHref:o,newHref:s,website:window.location.href},logType:Sn.info,buildingSlug:i,orgSlug:t})}}return 0===a&&kn({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"no-select-buttons-found",website:window.location.href},logType:Sn.warn,buildingSlug:i,orgSlug:t}),a})(`https://applications.eliseai.com/building/${this.buildingSlug}`,this.orgSlug,this.buildingSlug);e>0&&Tn({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_application_link_replacement_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}},this.initializeChatVariables=async()=>{var e,i,n,o,r,a,s,l;if(!this.buildingWebchatView)return;const u=es(this.buildingSlug),c=ts(this.buildingSlug,u)?u:Ja(this.buildingSlug,!1);if(!c.leadId)throw new Error("Lead ID is null");this.LeadSourceClient=new class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,i,n,o)=>{const r=_n();if(this.leadSourceInput={websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:r,referrer:document.referrer,parsedUtmSource:r?r.utm_source:null,campaignSources:Object.values(An()).filter((e=>e))},n)return;if(!o){const t=this.getLeadSourceBodyIfValid(e);if(t&&!yi(t.timestamp,24*this.localStorageTTLDays))return{...t,timestamp:Ii(t.timestamp)}}const a={leadSource:t,leadId:i,buildingSlug:e,timestamp:Ti(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(a)),{...a,timestamp:Ii(a.timestamp)}},this.getLeadSourceBodyIfValid=e=>{const t=localStorage.getItem("com.elise.webchat.leadsource.slug="+e);if(t)try{const i=JSON.parse(t);if(i.buildingSlug===e&&i.leadSource&&i.leadId&&i.timestamp&&!yi(Ii(i.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=i.leadSourceInput}catch(e){console.error("Error parsing leadSourceInput from localStorage")}return i}}catch(e){return null}return null}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:i,referrer:n,campaignSources:o}){try{return(await t().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,{query_params:i,building_slug:e,referrer:n,campaign_sources:o})).data}catch(e){return null}}async checkAndHandleForLogLeadSource({webchatAction:e,stateId:i}){var n,o,r,a,s,l,u;try{if(!this.chatId)return console.error("chatId is not set"),null;if(!this.orgSlug)return console.error("orgId is not set"),null;let c=null,d=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(c=e),d=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){console.error("error getting cookie")}return await t().post(`${this.apiHost}/platformApi/webchat/log/lead-source`,{chat_id:this.chatId,webchat_action:e,state_id:i,building_id:this.buildingId,org_slug:this.orgSlug,building_slug:this.buildingSlug,website_origin:null===(o=this.leadSourceInput)||void 0===o?void 0:o.websiteOrigin,website_search:null===(r=this.leadSourceInput)||void 0===r?void 0:r.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:Pn()(c)?null:c,extras:null!=d?d:null}),null}catch(e){return null}}async getCookieValue(e){try{const t=document.cookie.split(";");for(let i=0;i<t.length;i++){const n=t[i].trim();if(n.startsWith(e+"="))return n.substring((e+"=").length,-1===n.indexOf(";")?void 0:n.indexOf(";"))}return null}catch(e){console.error("error getting cookie value")}return null}async generateUserLeadSource({leadId:e,orgSlug:t,buildingSlug:i}){try{const n={queryParams:_n(),buildingSlug:i,referrer:document.referrer,campaignSources:An()};let o=!1;const r=i?this.getLeadSourceBodyIfValid(i):null;if(r){if(!["test-company","daf00bd2-1ecb-482c-b6f4-e1c5511a01be"].includes(t))return this.leadSource=r.leadSource,this.leadSource;{const e=await this.fetchCurrentParsedLeadSource(n);if(!e)return this.leadSource=r.leadSource,this.leadSource;this.leadSource=e,o=!0}}const a=await this.fetchCurrentParsedLeadSource(n);if(this.leadSource=a,this.buildingId=null,this.orgSlug=t,this.buildingSlug=i,i&&!a){const e=this.getLeadSourceBodyIfValid(i);if(e)return this.leadSource=e.leadSource,this.leadSource}if(i){const t=!!a&&a.length>0;this.updateLeadSourceLocalStorage(i,a,e,!t&&!o,o)}return a}catch(e){console.error(e)}return null}},this.LeadSourceMultitouchClient=new Ns(this.orgSlug,this.buildingSlug),this.myPubnub=new as(this.buildingSlug,this.buildingWebchatView,this.orgSlug,null,c.leadId,this.LeadSourceMultitouchClient,this.LeadSourceClient,this.widgetType),this.LeadSourceClient.chatId=this.myPubnub.channel;const d=await(null===(e=this.LeadSourceClient)||void 0===e?void 0:e.generateUserLeadSource({leadId:null!==(n=null===(i=this.myPubnub)||void 0===i?void 0:i.leadUserId)&&void 0!==n?n:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug}));d&&this.LeadSourceMultitouchClient.addSafeLeadSourceTouchpoint(d),console.log("EliseAI Mapped Lead Source source: ",null===(o=this.LeadSourceClient)||void 0===o?void 0:o.leadSource),"property-website"!==Mn(this.orgSlug)?this.myPubnub.leadSource=null!==(a=null===(r=this.LeadSourceClient)||void 0===r?void 0:r.leadSource)&&void 0!==a?a:Mn(this.orgSlug):this.myPubnub.leadSource=null!==(l=null===(s=this.LeadSourceClient)||void 0===s?void 0:s.leadSource)&&void 0!==l?l:null,c.initiatedChat&&await this.myPubnub.initializePubnub(u)},this.shouldAutoOpenChat=e=>{const t=sessionStorage.getItem("alreadyAutoOpenedTimestamp"),i=!t||!(t&&!Mi(Ii(t)));return!!e&&!!i&&!vi()},this.updateAlreadyAutoOpenedTimestamp=()=>{sessionStorage.setItem("alreadyAutoOpenedTimestamp",Ti(function(e,t){je(2,arguments);var i=it(t);return nt(e,6e4*i)}(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,i;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===(i=this.launcherRef.value)||void 0===i||i.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,i,n;const o=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!o)return;const r=null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"),a=null==r?void 0:r.getBoundingClientRect();a&&(o.style.left=`${a.left}px`,o.style.top=`${a.bottom}px`)},this.handleKeydownTab=e=>{var t,i,n,o,r,a,s,l,u,c,d,h,p,f,g,m,b,v,y,w;if("Tab"===e.key){const C=this.displayPubnubChat?null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"):null!==(g=null!==(u=null===(l=null===(s=null===(a=null===(r=null===(o=this.shadowRoot)||void 0===o?void 0:o.getElementById("meetelise-launcher"))||void 0===r?void 0:r.shadowRoot)||void 0===a?void 0:a.getElementById("email-us-window"))||void 0===s?void 0:s.shadowRoot)||void 0===l?void 0:l.getElementById("email-us-form"))&&void 0!==u?u:null===(f=null===(p=null===(h=null===(d=null===(c=this.shadowRoot)||void 0===c?void 0:c.getElementById("meetelise-launcher"))||void 0===d?void 0:d.shadowRoot)||void 0===h?void 0:h.getElementById("tour-scheduler-window"))||void 0===p?void 0:p.shadowRoot)||void 0===f?void 0:f.getElementById("scheduler-container"))&&void 0!==g?g:null===(w=null===(y=null===(v=null===(b=null===(m=this.shadowRoot)||void 0===m?void 0:m.getElementById("meetelise-launcher"))||void 0===b?void 0:b.shadowRoot)||void 0===v?void 0:v.getElementById("call-us-window"))||void 0===y?void 0:y.shadowRoot)||void 0===w?void 0:w.getElementById("details-window");if(!C)return;e.preventDefault();const x=C.querySelectorAll("input, me-select, textarea, action-confirm-button, [tabindex]"),A=Array.from(x),S=A.findIndex((e=>e.matches(":focus")));A[(S+1)%A.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,i,n;this.analytics=new xn(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Za(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)}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){kn({logType:Sn.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;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),super.disconnectedCallback()}render(){var e,t,i,n,o,r,a,s,l,u,c,d,h,p,f,g,m,b,v,y,w,C,x,A,S,k,T,_,E,O,P,M,N,I,D,U;Aa();const L=this.hideLauncher&&!this.isLoading&&!vi();return R`
|
|
6545
|
+
`}};Is.styles=[Si,gs,fs,ps,Os],Ns([le({type:Number})],Is.prototype,"right",void 0),Ns([le({type:Number})],Is.prototype,"bottom",void 0),Ns([le({type:Number})],Is.prototype,"top",void 0),Ns([le({type:Number})],Is.prototype,"left",void 0),Ns([le({attribute:!0})],Is.prototype,"onMount",void 0),Ns([le({attribute:!0})],Is.prototype,"channel",void 0),Ns([le({attribute:!0})],Is.prototype,"isHealthChat",void 0),Ns([le({attribute:!0})],Is.prototype,"myPubnub",void 0),Ns([le({attribute:!0})],Is.prototype,"orgSlug",void 0),Ns([le({attribute:!0})],Is.prototype,"buildingSlug",void 0),Ns([le({attribute:!0})],Is.prototype,"widgetType",void 0),Ns([le({attribute:!0})],Is.prototype,"building",void 0),Ns([le({attribute:!0})],Is.prototype,"primaryColor",void 0),Ns([le({attribute:!0})],Is.prototype,"backgroundColor",void 0),Ns([le({attribute:!0})],Is.prototype,"onClickExit",void 0),Ns([le({attribute:!0})],Is.prototype,"requiresConsent",void 0),Ns([ce("#message-input",!0)],Is.prototype,"messageInput",void 0),Ns([ce("#conversation-body",!0)],Is.prototype,"messageBody",void 0),Ns([ue()],Is.prototype,"messages",void 0),Ns([ue()],Is.prototype,"isLoadingMessages",void 0),Ns([ue()],Is.prototype,"hasReceivedConsent",void 0),Ns([ue()],Is.prototype,"privacyPolicyUrl",void 0),Ns([ue()],Is.prototype,"websitePreviewMapping",void 0),Is=Ns([ae("pubnub-chat")],Is);const Ds=(e,t)=>["floor plan","floorplan","floor plans","floorplans"].some((t=>e.toLowerCase().includes(t)))?`${t}/units`:t;class Us{constructor(e,t){this.persistLeadSourceTTLDays=30,this.maxSourcesNonPropertyWebsiteCount=3,this._generateLeadSourceLocalStorageKey=()=>`com.eliseai.webchat.leadsources.v2.buildingslug=${this.buildingSlug}`,this._generateNewExpirationTimestamp=()=>_i(Ei(new Date,this.persistLeadSourceTTLDays)),this._generateLeadSourceParameters=()=>{const e=En();return{websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:e,referrer:document.referrer,parsedUtmSource:e?e.utm_source:null,campaignSources:Object.values(Sn()).filter((e=>e))}},this.addSafeLeadSourceTouchpoint=e=>{const t=this.getLocalStorageMultitouchValue(),i=this._generateLeadSourceLocalStorageKey();if(!t||this.isExpiredTimestamp(t.timestampExpires)){const t={timestampExpires:this._generateNewExpirationTimestamp(),leadSources:[{parameters:this._generateLeadSourceParameters(),leadSourceValue:e,timestampInitiallyLogged:_i(new Date),type:"touchpoint"}]};localStorage.setItem(i,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:_i(new Date),type:"touchpoint"}),t.timestampExpires=this._generateNewExpirationTimestamp(),void localStorage.setItem(i,JSON.stringify(t));console.warn(`Too many lead sources for ${this.buildingSlug}, max is ${this.maxSourcesNonPropertyWebsiteCount}`),Tn({logType:kn.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,logTitle:"TOO_MANY_LEAD_SOURCES",logData:{buildingSlug:this.buildingSlug}})}},this.getSafeLeadSourceTouchpointsWithDefault=({includedUserSelectedLeadSource:e})=>{const t=this.getLocalStorageMultitouchValue(),i=Nn(this.orgSlug);if(!t){const t=[{leadSourceValue:i,timestampInitiallyLogged:_i(new Date),type:"default"}];return e&&t.push({leadSourceValue:e,timestampInitiallyLogged:_i(new Date),type:"user-selected"}),t}const n=t.leadSources.length>0?t.leadSources.sort(((e,t)=>Di(e.timestampInitiallyLogged).getTime()-Di(t.timestampInitiallyLogged).getTime()))[0].timestampInitiallyLogged:_i(new Date),o=[{timestampInitiallyLogged:n,leadSourceValue:i,type:"default"},...t.leadSources.map((e=>({timestampInitiallyLogged:e.timestampInitiallyLogged,leadSourceValue:e.leadSourceValue,type:e.type})))];return e&&o.push({leadSourceValue:e,timestampInitiallyLogged:_i(new Date),type:"user-selected"}),o},this.getLocalStorageMultitouchValue=()=>{const e=this._generateLeadSourceLocalStorageKey(),t=localStorage.getItem(e);return t?JSON.parse(t):null},this.isExpiredTimestamp=e=>Di(e)<new Date,this.resetLeadSourceTouchpoints=()=>{const e=this._generateLeadSourceLocalStorageKey();return localStorage.removeItem(e),!0},this.orgSlug=e,this.buildingSlug=t}}var Ls=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Rs=class extends oe{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.primaryColor=null,this.backgroundColor=null,this.foregroundColorOnPrimaryBackgroundColor=null,this.foregroundColorOnSecondaryBackgroundColor=null,this.chatId="",this.analytics=null,this.launcher=null,this.buildingWebchatView=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=sn.always,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!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=Ks.Default,this.onWidgetLoaded=xa(),this.onSstClose=xa(),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=Ae(),this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{if(!this.buildingSlug||!this.orgSlug)return;const e=await Bn(this.orgSlug,this.buildingSlug);if(Math.random()<.2)try{(async(e,i)=>{const n=window.rentgrata;if(!n)return;const o=n.Widget;if(!o)return;const r=o.config;if(!r)return;const a=r.widgetKey;a&&await t().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=i?i:""}})})(this.buildingSlug,this.orgSlug)}catch(e){console.warn("Error updating rentgrata token",e)}await(async(e,i,n)=>{const o=.01;if(!e)return console.warn("MeetElise Chat will NOT appear. Building does NOT exist."),Mo(n,i,!0,!1,"building_does_not_exist",o),!1;if(!e.launchedDateTime)return console.warn("MeetElise Chat will NOT appear. Building is NOT launched (based on launched date time)."),Mo(n,i,!0,!1,"building_not_launched",o),!1;if(!e.active)return console.warn("MeetElise Chat will NOT appear. Building is NOT active."),Mo(n,i,!0,!1,"building_not_active",o),!1;if(!e.webchatScopeConfigured)return console.warn("MeetElise Chat will NOT appear. Building is NOT webchat scope configured."),Mo(n,i,!0,!1,"building_not_webchat_scope_configured",o),!1;const r=await async function(e){if(!e)return!1;try{return(await t().get(an(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-leasing-in-maintenance-mode",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(i);return!r||(console.warn("MeetElise Chat will NOT appear. Chat is in maintenance mode."),Mo(n,i,!0,!1,"building_in_maintenance_mode",o),!1)})(e,this.buildingSlug,this.orgSlug)&&(_n({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_pixel_on_site:!0,is_any_webchat_showing:!0},sampleRate:(null==e?void 0:e.launchedDateTime)?.01:.05}),this.buildingWebchatView=e,await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)&&(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.updateAlreadyAutoOpenedTimestamp()),this.isLoading=!1,"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0))},this.setBuildingDerivedInfo=async()=>{var e,i,n,o,r,a,s,l,u,c,d,h,p,f,g,m,b,v,y,w,C,x,A,S,k,T,_,E,O,P,M,N,I,D,U,L,R,B,j,H,F,$,z,Q,G,q,W;const V=this.buildingWebchatView;if(!V)return;V&&this.orgSlug&&js(this.orgSlug,null!==(i=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.chatId)&&void 0!==i?i:null,this.sampleRateToUse,this.buildingSlug,null!==(o=null===(n=this.LeadSourceClient)||void 0===n?void 0:n.leadSource)&&void 0!==o?o:null);const[Y,K,X,Z,J,ee,te]=await Promise.all([Po(this.buildingSlug),za(this.orgSlug,this.buildingSlug),ln(this.buildingSlug),un(this.buildingSlug),cn(this.buildingSlug),dn(this.buildingSlug),hn(this.buildingSlug)]);this.buildingWebchatView&&(this.buildingWebchatView.phoneNumber=Ee(V.phoneNumber)),this.designConcept=null!==(r=null==Y?void 0:Y.abTestType)&&void 0!==r?r:"",this.leadSources=K,this.featureFlagShowDropdown=X;const ie=V.textWithUsPhoneNumber?V.textWithUsPhoneNumber:await(async e=>{try{const i="https://app.meetelise.com",n=await t().get(`${i}/platformApi/webchat/${e}/phone-number`);if(n.data)return n.data}catch(t){return Tn({logType:kn.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t}}),null}return null})(this.buildingSlug),ne=null!==(s=null===(a=this.buildingWebchatView)||void 0===a?void 0:a.shouldShowPricingCalculatorDesktop)&&void 0!==s&&s,oe=null!==(u=null===(l=this.buildingWebchatView)||void 0===l?void 0:l.shouldShowPricingCalculatorMobile)&&void 0!==u&&u,re={callDesktop:null!==(d=null===(c=this.buildingWebchatView)||void 0===c?void 0:c.shouldShowPhoneDesktop)&&void 0!==d&&d,callMobile:null!==(p=null===(h=this.buildingWebchatView)||void 0===h?void 0:h.shouldShowPhoneMobile)&&void 0!==p&&p,chatDesktop:null!==(g=null===(f=this.buildingWebchatView)||void 0===f?void 0:f.shouldShowChatDesktop)&&void 0!==g&&g,chatMobile:null!==(b=null===(m=this.buildingWebchatView)||void 0===m?void 0:m.shouldShowChatMobile)&&void 0!==b&&b,emailDesktop:null!==(y=null===(v=this.buildingWebchatView)||void 0===v?void 0:v.shouldShowEmailDesktop)&&void 0!==y&&y,emailMobile:null!==(C=null===(w=this.buildingWebchatView)||void 0===w?void 0:w.shouldShowEmailMobile)&&void 0!==C&&C,textDesktop:null!==(A=(null===(x=this.buildingWebchatView)||void 0===x?void 0:x.shouldShowTextDesktop)&&!!ie)&&void 0!==A&&A,textMobile:null!==(k=(null===(S=this.buildingWebchatView)||void 0===S?void 0:S.shouldShowTextMobile)&&!!ie)&&void 0!==k&&k,sstDesktop:null!==(_=null===(T=this.buildingWebchatView)||void 0===T?void 0:T.shouldShowSstDesktop)&&void 0!==_&&_,sstMobile:null!==(O=null===(E=this.buildingWebchatView)||void 0===E?void 0:E.shouldShowSstMobile)&&void 0!==O&&O,calcDesktop:ne,calcMobile:oe};var ae,se;this.enabledChatWidgets=(e=>{const t=window.location.hostname;if(!_a.includes(t))return e;const i=(e=>{if(!e)return{};try{return e.split(",").reduce(((e,t)=>{const[i,n]=t.split(":");return i&&n&&i in Ea&&(e[i]="true"===n.toLowerCase()),e}),{})}catch(e){return console.warn("Error parsing widget overrides:",e),{}}})(new URLSearchParams(window.location.search).get("widgets"));if(0===Object.keys(i).length)return e;const n={...e};return Object.entries(i).forEach((([e,t])=>{const i=Ea[e];i&&(n[i.desktop]=t,n[i.mobile]=t)})),console.info("Applied widget overrides:",i),n})(re),this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile||"radco"===this.orgSlug?(se=this.handleTourClicked,document.querySelectorAll("a").forEach((function(e){const t=e.getAttribute("href");t&&t.startsWith("https://app.meetelise.com/")&&e.addEventListener("click",(e=>{e.preventDefault(),se(e)}))})),ee&&(e=>{document.querySelectorAll('a[href$="schedule-a-tour"]').forEach((t=>{t&&t.addEventListener("click",(t=>{t.preventDefault(),e(t)}))}))})(this.handleTourClicked),"radco"===this.orgSlug&&(e=>{document.querySelectorAll('a[href^="#leaseleads-tour-open"]').forEach((t=>{var i;if(!t)return;const n=document.createElement("a");n.innerHTML=t.innerHTML,n.style.cursor="pointer",n.addEventListener("click",(t=>{t.preventDefault(),e(t)})),null===(i=t.parentNode)||void 0===i||i.replaceChild(n,t)}))})(this.handleTourClicked)):(null===(P=this.LeadSourceClient)||void 0===P?void 0:P.leadSource)&&(ae=null!==(N=null===(M=this.LeadSourceClient)||void 0===M?void 0:M.leadSource)&&void 0!==N?N:null,document.querySelectorAll("a").forEach((function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const i=t.includes("?")?"&":"?";e.setAttribute("href",t+i+`eliseParsedLeadSource=${encodeURIComponent(ae)}`)}}))),this.buildingWebchatView&&(this.primaryColor=null!==(I=this.buildingWebchatView.primaryColor)&&void 0!==I?I:null,this.backgroundColor=null!==(D=this.buildingWebchatView.secondaryColor)&&void 0!==D?D:null,this.foregroundColorOnPrimaryBackgroundColor=null!==(U=this.buildingWebchatView.foregroundColorOnPrimaryBackgroundColor)&&void 0!==U?U:null,this.foregroundColorOnSecondaryBackgroundColor=null!==(L=this.buildingWebchatView.foregroundColorOnSecondaryBackgroundColor)&&void 0!==L?L:null,this.webchatConfigHasAutoOpenChat=null!==(R=this.buildingWebchatView.autoOpenChat)&&void 0!==R&&R,this.requiresConsent=null!==(B=this.buildingWebchatView.requiresConsentForChat)&&void 0!==B&&B,this.hideMobileFeatures=null!==(j=this.buildingWebchatView.collapseMobileFeatures)&&void 0!==j&&j,this.privacyPolicyUrl=null!==(H=this.buildingWebchatView.privacyPolicyUrlForChat)&&void 0!==H?H:this.privacyPolicyUrl,this.buildingWebchatView.displayStyle===Dn.MINIMIZED&&(this.isMinimized=!0),this.buildingWebchatView.displayStyle===Dn.PILLS&&(this.designConcept=null),this.buildingWebchatView.displayStyle===Dn.EMOJI&&(this.designConcept=Dn.EMOJI),this.onWidgetLoaded()),null===this.primaryColor&&(this.primaryColor=Ie),null===this.backgroundColor&&(this.backgroundColor=De);const le=null!==($=null===(F=this.buildingWebchatView)||void 0===F?void 0:F.phoneNumber)&&void 0!==$?$:"";let ue=null;if(Z&&(ue=await async function(e,i){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source`,{params:{source:i}});return n.data?{number:Ee(n.data.number),isMatch:n.data.match,isPropertyWebsiteCatchall:n.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(Q=null===(z=this.LeadSourceClient)||void 0===z?void 0:z.leadSource)&&void 0!==Q?Q:null),ue&&!ue.isMatch&&(ue.number=le)),J&&(null==ue?void 0:ue.number)){const e=cs(ue.number,this.orgSlug,this.buildingSlug);e>0&&_n({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_dni_insert_override_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}const ce=localStorage.getItem("eliseai_phone_number_devtest");ce&&(console.info("Using dev test phone number: ",ce),cs(ce,this.orgSlug,this.buildingSlug)),this.phoneNumberForSource=ue||{number:le,isMatch:!1,isPropertyWebsiteCatchall:!0};const de=null!==(q=null===(G=this.LeadSourceClient)||void 0===G?void 0:G.leadSource)&&void 0!==q?q:null;if(de&&(this.leadSources.includes(de)||this.leadSources.push(de)),Ki(V.id),te&&this.buildingSlug&&(null===(W=this.buildingWebchatView)||void 0===W?void 0:W.isLiveOnApplications)){const e=((e,t,i)=>{var n;const o=[/thehavenatgreenhill\.securecafe\.com\/onlineleasing\/the-haven-at-greenhill\/oleapplication\.aspx(\?.*)?$/,/securecafe\.com\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,/vsc\.myresman\.com\/Portal\/Applicants\/New\/.*(\?.*)?$/],r=document.body.getElementsByTagName("a");let a=0;for(let s=0;s<r.length;s++){const l=r[s];if(l.nodeType===Node.ELEMENT_NODE&&o.some((e=>e.test(l.href)))){const o=l.getAttribute("href"),r=(null===(n=l.textContent)||void 0===n?void 0:n.toLowerCase())||"",s=Ds(r,e);l.setAttribute("href",s),a++,Tn({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"link-replacement",oldHref:o,newHref:s,website:window.location.href},logType:kn.info,buildingSlug:i,orgSlug:t})}}return 0===a&&Tn({logTitle:"SELECT_BUTTON_LINK_REPLACEMENT",logData:{type:"no-select-buttons-found",website:window.location.href},logType:kn.warn,buildingSlug:i,orgSlug:t}),a})(`https://applications.eliseai.com/building/${this.buildingSlug}`,this.orgSlug,this.buildingSlug);e>0&&_n({params:{org_slug:this.orgSlug,building_slug:this.buildingSlug,is_application_link_replacement_success:!0,extra_data:{total_replacements:e}},sampleRate:this.sampleRateToUse})}},this.initializeChatVariables=async()=>{var e,i,n,o,r,a,s,l;if(!this.buildingWebchatView)return;const u=ns(this.buildingSlug),c=os(this.buildingSlug,u)?u:is(this.buildingSlug,!1);if(!c.leadId)throw new Error("Lead ID is null");this.LeadSourceClient=new class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,i,n,o)=>{const r=En();if(this.leadSourceInput={websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:r,referrer:document.referrer,parsedUtmSource:r?r.utm_source:null,campaignSources:Object.values(Sn()).filter((e=>e))},n)return;if(!o){const t=this.getLeadSourceBodyIfValid(e);if(t&&!yi(t.timestamp,24*this.localStorageTTLDays))return{...t,timestamp:Di(t.timestamp)}}const a={leadSource:t,leadId:i,buildingSlug:e,timestamp:_i(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(a)),{...a,timestamp:Di(a.timestamp)}},this.getLeadSourceBodyIfValid=e=>{const t=localStorage.getItem("com.elise.webchat.leadsource.slug="+e);if(t)try{const i=JSON.parse(t);if(i.buildingSlug===e&&i.leadSource&&i.leadId&&i.timestamp&&!yi(Di(i.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=i.leadSourceInput}catch(e){console.error("Error parsing leadSourceInput from localStorage")}return i}}catch(e){return null}return null}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:i,referrer:n,campaignSources:o}){try{return(await t().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,{query_params:i,building_slug:e,referrer:n,campaign_sources:o})).data}catch(e){return null}}async checkAndHandleForLogLeadSource({webchatAction:e,stateId:i}){var n,o,r,a,s,l,u;try{if(!this.chatId)return console.error("chatId is not set"),null;if(!this.orgSlug)return console.error("orgId is not set"),null;let c=null,d=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(c=e),d=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){console.error("error getting cookie")}return await t().post(`${this.apiHost}/platformApi/webchat/log/lead-source`,{chat_id:this.chatId,webchat_action:e,state_id:i,building_id:this.buildingId,org_slug:this.orgSlug,building_slug:this.buildingSlug,website_origin:null===(o=this.leadSourceInput)||void 0===o?void 0:o.websiteOrigin,website_search:null===(r=this.leadSourceInput)||void 0===r?void 0:r.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:Mn()(c)?null:c,extras:null!=d?d:null}),null}catch(e){return null}}async getCookieValue(e){try{const t=document.cookie.split(";");for(let i=0;i<t.length;i++){const n=t[i].trim();if(n.startsWith(e+"="))return n.substring((e+"=").length,-1===n.indexOf(";")?void 0:n.indexOf(";"))}return null}catch(e){console.error("error getting cookie value")}return null}async generateUserLeadSource({leadId:e,orgSlug:t,buildingSlug:i}){try{const n={queryParams:En(),buildingSlug:i,referrer:document.referrer,campaignSources:Sn()};let o=!1;const r=i?this.getLeadSourceBodyIfValid(i):null;if(r){if(!["test-company","daf00bd2-1ecb-482c-b6f4-e1c5511a01be"].includes(t))return this.leadSource=r.leadSource,this.leadSource;{const e=await this.fetchCurrentParsedLeadSource(n);if(!e)return this.leadSource=r.leadSource,this.leadSource;this.leadSource=e,o=!0}}const a=await this.fetchCurrentParsedLeadSource(n);if(this.leadSource=a,this.buildingId=null,this.orgSlug=t,this.buildingSlug=i,i&&!a){const e=this.getLeadSourceBodyIfValid(i);if(e)return this.leadSource=e.leadSource,this.leadSource}if(i){const t=!!a&&a.length>0;this.updateLeadSourceLocalStorage(i,a,e,!t&&!o,o)}return a}catch(e){console.error(e)}return null}},this.LeadSourceMultitouchClient=new Us(this.orgSlug,this.buildingSlug),this.myPubnub=new us(this.buildingSlug,this.buildingWebchatView,this.orgSlug,null,c.leadId,this.LeadSourceMultitouchClient,this.LeadSourceClient,this.widgetType),this.LeadSourceClient.chatId=this.myPubnub.channel;const d=await(null===(e=this.LeadSourceClient)||void 0===e?void 0:e.generateUserLeadSource({leadId:null!==(n=null===(i=this.myPubnub)||void 0===i?void 0:i.leadUserId)&&void 0!==n?n:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug}));d&&this.LeadSourceMultitouchClient.addSafeLeadSourceTouchpoint(d),console.log("EliseAI Mapped Lead Source source: ",null===(o=this.LeadSourceClient)||void 0===o?void 0:o.leadSource),"property-website"!==Nn(this.orgSlug)?this.myPubnub.leadSource=null!==(a=null===(r=this.LeadSourceClient)||void 0===r?void 0:r.leadSource)&&void 0!==a?a:Nn(this.orgSlug):this.myPubnub.leadSource=null!==(l=null===(s=this.LeadSourceClient)||void 0===s?void 0:s.leadSource)&&void 0!==l?l:null,c.initiatedChat&&await this.myPubnub.initializePubnub(u)},this.shouldAutoOpenChat=e=>{const t=sessionStorage.getItem("alreadyAutoOpenedTimestamp"),i=!t||!(t&&!Ni(Di(t)));return!!e&&!!i&&!vi()},this.updateAlreadyAutoOpenedTimestamp=()=>{sessionStorage.setItem("alreadyAutoOpenedTimestamp",_i(function(e,t){je(2,arguments);var i=it(t);return nt(e,6e4*i)}(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,i;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===(i=this.launcherRef.value)||void 0===i||i.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,i,n;const o=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!o)return;const r=null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"),a=null==r?void 0:r.getBoundingClientRect();a&&(o.style.left=`${a.left}px`,o.style.top=`${a.bottom}px`)},this.handleKeydownTab=e=>{var t,i,n,o,r,a,s,l,u,c,d,h,p,f,g,m,b,v,y,w;if("Tab"===e.key){const C=this.displayPubnubChat?null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"):null!==(g=null!==(u=null===(l=null===(s=null===(a=null===(r=null===(o=this.shadowRoot)||void 0===o?void 0:o.getElementById("meetelise-launcher"))||void 0===r?void 0:r.shadowRoot)||void 0===a?void 0:a.getElementById("email-us-window"))||void 0===s?void 0:s.shadowRoot)||void 0===l?void 0:l.getElementById("email-us-form"))&&void 0!==u?u:null===(f=null===(p=null===(h=null===(d=null===(c=this.shadowRoot)||void 0===c?void 0:c.getElementById("meetelise-launcher"))||void 0===d?void 0:d.shadowRoot)||void 0===h?void 0:h.getElementById("tour-scheduler-window"))||void 0===p?void 0:p.shadowRoot)||void 0===f?void 0:f.getElementById("scheduler-container"))&&void 0!==g?g:null===(w=null===(y=null===(v=null===(b=null===(m=this.shadowRoot)||void 0===m?void 0:m.getElementById("meetelise-launcher"))||void 0===b?void 0:b.shadowRoot)||void 0===v?void 0:v.getElementById("call-us-window"))||void 0===y?void 0:y.shadowRoot)||void 0===w?void 0:w.getElementById("details-window");if(!C)return;e.preventDefault();const x=C.querySelectorAll("input, me-select, textarea, action-confirm-button, [tabindex]"),A=Array.from(x),S=A.findIndex((e=>e.matches(":focus")));A[(S+1)%A.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,i,n;this.analytics=new An(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),ts(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)}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){Tn({logType:kn.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;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),super.disconnectedCallback()}render(){var e,t,i,n,o,r,a,s,l,u,c,d,h,p,f,g,m,b,v,y,w,C,x,A,S,k,T,_,E,O,P,M,N,I,D,U;Ta();const L=this.hideLauncher&&!this.isLoading&&!vi();return R`
|
|
6538
6546
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6539
6547
|
<div id="aria-describe-info" style="display: none;">
|
|
6540
6548
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
@@ -6549,7 +6557,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6549
6557
|
.myPubnub=${this.myPubnub}
|
|
6550
6558
|
.orgSlug=${this.orgSlug}
|
|
6551
6559
|
.buildingSlug=${this.buildingSlug}
|
|
6552
|
-
.widgetType=${
|
|
6560
|
+
.widgetType=${Ks.Default}
|
|
6553
6561
|
.building=${this.buildingWebchatView}
|
|
6554
6562
|
.primaryColor=${this.primaryColor}
|
|
6555
6563
|
.backgroundColor=${this.backgroundColor}
|
|
@@ -6647,7 +6655,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6647
6655
|
</meetelise-launcher>`:""}
|
|
6648
6656
|
</div>
|
|
6649
6657
|
</meta>
|
|
6650
|
-
`}};
|
|
6658
|
+
`}};Rs.styles=l`
|
|
6651
6659
|
:host {
|
|
6652
6660
|
all: initial;
|
|
6653
6661
|
}
|
|
@@ -6696,7 +6704,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6696
6704
|
position: fixed;
|
|
6697
6705
|
bottom: 0;
|
|
6698
6706
|
}
|
|
6699
|
-
`,
|
|
6707
|
+
`,Ls([le({type:String})],Rs.prototype,"buildingSlug",void 0),Ls([le({type:String})],Rs.prototype,"orgSlug",void 0),Ls([le({type:Object})],Rs.prototype,"launcherStyles",void 0),Ls([le()],Rs.prototype,"mobileStyles",void 0),Ls([le({type:Boolean})],Rs.prototype,"isMinimized",void 0),Ls([le({type:String})],Rs.prototype,"primaryColor",void 0),Ls([le({type:String})],Rs.prototype,"backgroundColor",void 0),Ls([le({type:String})],Rs.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),Ls([le({type:String})],Rs.prototype,"foregroundColorOnSecondaryBackgroundColor",void 0),Ls([ue()],Rs.prototype,"chatId",void 0),Ls([ue()],Rs.prototype,"analytics",void 0),Ls([ue()],Rs.prototype,"launcher",void 0),Ls([ue()],Rs.prototype,"buildingWebchatView",void 0),Ls([ue()],Rs.prototype,"designConcept",void 0),Ls([ue()],Rs.prototype,"leadSources",void 0),Ls([ue()],Rs.prototype,"currentLeadSource",void 0),Ls([ue()],Rs.prototype,"featureFlagShowDropdown",void 0),Ls([ue()],Rs.prototype,"phoneNumberForSource",void 0),Ls([ue()],Rs.prototype,"hasMounted",void 0),Ls([ue()],Rs.prototype,"hideLauncher",void 0),Ls([ue()],Rs.prototype,"isLoading",void 0),Ls([ue()],Rs.prototype,"showTourNextToChat",void 0),Ls([ue()],Rs.prototype,"displayPubnubChat",void 0),Ls([ue()],Rs.prototype,"myPubnub",void 0),Ls([ue()],Rs.prototype,"LeadSourceClient",void 0),Ls([ue()],Rs.prototype,"LeadSourceMultitouchClient",void 0),Ls([ue()],Rs.prototype,"sampleRateToUse",void 0),Ls([le({type:Number})],Rs.prototype,"right",void 0),Ls([le({type:Number})],Rs.prototype,"bottom",void 0),Ls([le({type:Number})],Rs.prototype,"top",void 0),Ls([le({type:Number})],Rs.prototype,"left",void 0),Ls([le({attribute:!0})],Rs.prototype,"overrideRentgrata",void 0),Ls([le({attribute:!0})],Rs.prototype,"widgetType",void 0),Ls([le()],Rs.prototype,"onWidgetLoaded",void 0),Ls([le({attribute:!0})],Rs.prototype,"onSstClose",void 0),Ls([ue()],Rs.prototype,"enabledChatWidgets",void 0),Ls([ue()],Rs.prototype,"webchatConfigHasAutoOpenChat",void 0),Ls([ue()],Rs.prototype,"requiresConsent",void 0),Ls([ue()],Rs.prototype,"hideMobileFeatures",void 0),Ls([ue()],Rs.prototype,"privacyPolicyUrl",void 0),Rs=Ls([ae("me-chat")],Rs);const Bs=e=>{for(const t of e){const e=document.getElementById(t);if(e)return e}return null},js=async(e,i,n,o,r)=>{var a;if(!o||!e)return;const s=await async function(e){if(!e)return!1;try{return(await t().get(an(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-override-contact-us-form",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(o);if(!s)return;const l=Bs(["myContactForm","contactus","fpa-myContactForm"]);let u;if(!(l&&l instanceof HTMLFormElement)){const t=document.querySelector("form");return void(window.location.pathname.toLowerCase().includes("contactus")&&Hs(o,e,"Could not find form",t?{id:t.id}:void 0))}try{if(l.parentElement&&"scheduleTourForm"===l.parentElement.id)return Hs(o,e,"Form is apart of schedule tour form!")}catch(e){console.error("error",e)}for(let e=0;e<l.elements.length;e++){const t=l.elements[e];if("button"===t.tagName.toLowerCase()&&"fakebutton"===t.getAttribute("data-selenium-id")){u=t;break}if("fpa-contact-submit"===t.getAttribute("id")){u=t;break}}if(!u)return Hs(o,e,"Could not find submit button");const c=()=>({firstName:Bs(["firstname","txtName","fpa-firstname","Form_FirstName"]),lastName:Bs(["lastname","txtName2","fpa-lastname","Form_LastName"]),email:Bs(["email","txtEmail","fpa-email","Form_Email"]),phone:Bs(["phonenumber","txtPhone","fpa-phonenumber","Form_Phone"]),message:Bs(["message","txtComments","fpa-email","Form_Message"])});if(Object.values(c()).some((e=>null===e))){const t=Object.entries(c()).filter((([,e])=>null===e)).map((([e])=>e));return Hs(o,e,"Missing the following form elements: "+t.join(", "))}const d=u.textContent,h=u.cloneNode(!0);null===(a=u.parentNode)||void 0===a||a.replaceChild(h,u),h&&_n({params:{chat_id:i,org_slug:e,building_slug:o,is_form_override_success:!0},sampleRate:n}),h.onclick=async function(t){if(Object.values(c()).forEach((e=>{"true"!==(null==e?void 0:e.getAttribute("aria-required"))||e.value||(e.className="form-control required is-invalid")})),!Object.values(c()).every((e=>null!==e&&!("true"===e.getAttribute("aria-required")&&!e.value)&&("email"!==e.id&&"phonenumber"!==e.id||"true"!==e.getAttribute("aria-invalid")))))return;t.preventDefault(),h.textContent="Processing request...",h.disabled=!0;const i={};Object.entries(c()).forEach((([e,t])=>i[e]=null==t?void 0:t.value));const n=await Bn(e,o);if(!n)return Hs(o,e,"Could not find building"),null;const a={email_address:i.email,first_name:i.firstName,last_name:i.lastName,phone_number:i.phone,first_message:i.message,building_id:n.id,is_external_form:!0,lead_sources:[...new Set(r?[r,Nn(e)]:[Nn(e)])]},s=JSON.stringify(a);fetch("https://app.meetelise.com/platformApi/state/create/contactMe",{method:"POST",headers:{"Content-Type":"application/json","building-slug":o,"org-slug":e},body:s}).then((e=>{if(!e.ok)throw new Error(`HTTP error ${e.status}`);return l&&l.reset(),Object.values(c()).forEach((e=>{e&&(e.disabled=!0)})),h.textContent="Submitted",h.disabled=!0,e.json()})).catch((()=>{h.textContent=d}))}},Hs=(e,t,i,n)=>{const o=JSON.stringify({orgSlug:t,buildingSlug:e,reason:i,url:window.location.href,formIdInfo:n});fetch("https://app.meetelise.com/platformApi/webchat/form-override-error",{method:"POST",headers:{"Content-Type":"application/json","building-slug":e,"org-slug":t},body:o})},Fs=l`
|
|
6700
6708
|
.chat-launcher {
|
|
6701
6709
|
position: fixed;
|
|
6702
6710
|
}
|
|
@@ -6727,7 +6735,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6727
6735
|
filter: brightness(1.1);
|
|
6728
6736
|
}
|
|
6729
6737
|
}
|
|
6730
|
-
`;var
|
|
6738
|
+
`;var $s=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let zs=class extends oe{constructor(){super(...arguments),this.right=0,this.bottom=0,this.top=0,this.left=0,this.isChatOpen=!1,this.onClickCloseChat=()=>({}),this.onClickOpenChat=()=>({})}render(){return this.isChatOpen?R`
|
|
6731
6739
|
<div
|
|
6732
6740
|
class="chat-launcher"
|
|
6733
6741
|
style=${Ne({top:vi()||isNaN(this.top)?void 0:`${this.top+432}px`,bottom:vi()||isNaN(this.bottom)?"72px":this.bottom-60+"px",left:vi()||isNaN(this.left)?void 0:`${this.left}px`,right:vi()||isNaN(this.right)?"18px":`${this.right}px`})}
|
|
@@ -6769,7 +6777,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6769
6777
|
/>
|
|
6770
6778
|
</svg>
|
|
6771
6779
|
</button>
|
|
6772
|
-
</div>`}};
|
|
6780
|
+
</div>`}};zs.styles=[Fs],$s([le({type:Number})],zs.prototype,"right",void 0),$s([le({type:Number})],zs.prototype,"bottom",void 0),$s([le({type:Number})],zs.prototype,"top",void 0),$s([le({type:Number})],zs.prototype,"left",void 0),$s([le({attribute:!0})],zs.prototype,"isChatOpen",void 0),$s([le({attribute:!0})],zs.prototype,"onClickCloseChat",void 0),$s([le({attribute:!0})],zs.prototype,"onClickOpenChat",void 0),zs=$s([ae("simple-launcher")],zs);var Qs=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Gs=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=Ae(),this.firstUpdated=async()=>{await this.initializeChatVariables()},this.initializeChatVariables=async()=>{this.isLoading=!0;const e=ns(this.healthcareId),t=os(this.healthcareId,e)?e:is(this.healthcareId,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new us(this.healthcareId,null,"",this.currentLeadSource,t.leadId,null,null,Ks.Healthcare),t.initiatedChat&&await this.myPubnub.initializePubnub(e),vi()||(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(),ts(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 Ta(),this.isLoading?R``:R`
|
|
6773
6781
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
6774
6782
|
<div id="aria-describe-info" style="display: none;">
|
|
6775
6783
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
@@ -6778,7 +6786,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6778
6786
|
${this.displayPubnubChat?R`
|
|
6779
6787
|
<pubnub-chat
|
|
6780
6788
|
id="pubnub-chat"
|
|
6781
|
-
.widgetType=${
|
|
6789
|
+
.widgetType=${Ks.Healthcare}
|
|
6782
6790
|
.channel=${null===(e=this.myPubnub)||void 0===e?void 0:e.channel}
|
|
6783
6791
|
.myPubnub=${this.myPubnub}
|
|
6784
6792
|
.buildingSlug=${this.healthcareId}
|
|
@@ -6804,7 +6812,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6804
6812
|
></simple-launcher>
|
|
6805
6813
|
|
|
6806
6814
|
</meta>
|
|
6807
|
-
`}}
|
|
6815
|
+
`}};Gs.styles=l`
|
|
6808
6816
|
:host {
|
|
6809
6817
|
all: initial;
|
|
6810
6818
|
}
|
|
@@ -6857,7 +6865,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6857
6865
|
line-height: 150%;
|
|
6858
6866
|
font-size: 16px;
|
|
6859
6867
|
}
|
|
6860
|
-
`,
|
|
6868
|
+
`,Qs([le({type:String})],Gs.prototype,"healthcareId",void 0),Qs([le({type:Number})],Gs.prototype,"right",void 0),Qs([le({type:Number})],Gs.prototype,"bottom",void 0),Qs([le({type:Number})],Gs.prototype,"top",void 0),Qs([le({type:Number})],Gs.prototype,"left",void 0),Qs([ue()],Gs.prototype,"launcher",void 0),Qs([ue()],Gs.prototype,"currentLeadSource",void 0),Qs([ue()],Gs.prototype,"displayPubnubChat",void 0),Qs([ue()],Gs.prototype,"myPubnub",void 0),Qs([ue()],Gs.prototype,"requiresConsent",void 0),Qs([ue()],Gs.prototype,"privacyPolicyUrl",void 0),Qs([ue()],Gs.prototype,"isLoading",void 0),Gs=Qs([ae("health-chat")],Gs);var qs=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};let Ws=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=Ae(),this.firstUpdated=async()=>{(await async function(e){if(!e)return!1;const i="e2e-test-yardi-building";try{return(await t().get(an(i),{params:{building_slug:i,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=ns(this.orgSlug),t=os(this.orgSlug,e)?e:is(this.orgSlug,!1);if(!t.leadId)throw new Error("Lead ID is null");this.myPubnub=new us(this.orgSlug,null,this.orgSlug,this.currentLeadSource,t.leadId,null,null,Ks.Utilities),t.initiatedChat&&await this.myPubnub.initializePubnub(e),vi()||(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(),ts(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 Ta(),this.isLoading?R``:R`
|
|
6861
6869
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
6862
6870
|
<div id="aria-describe-info" style="display: none;">
|
|
6863
6871
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
@@ -6869,7 +6877,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6869
6877
|
<pubnub-chat
|
|
6870
6878
|
id="pubnub-chat"
|
|
6871
6879
|
.channel=${null===(e=this.myPubnub)||void 0===e?void 0:e.channel}
|
|
6872
|
-
.widgetType=${
|
|
6880
|
+
.widgetType=${Ks.Utilities}
|
|
6873
6881
|
.myPubnub=${this.myPubnub}
|
|
6874
6882
|
.buildingSlug=${this.orgSlug}
|
|
6875
6883
|
.onClickExit=${()=>{this.displayPubnubChat=!1}}
|
|
@@ -6893,7 +6901,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6893
6901
|
|
|
6894
6902
|
></simple-launcher>
|
|
6895
6903
|
</meta>
|
|
6896
|
-
`}};
|
|
6904
|
+
`}};Ws.styles=l`
|
|
6897
6905
|
:host {
|
|
6898
6906
|
all: initial;
|
|
6899
6907
|
}
|
|
@@ -6946,4 +6954,4 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6946
6954
|
line-height: 150%;
|
|
6947
6955
|
font-size: 16px;
|
|
6948
6956
|
}
|
|
6949
|
-
`,
|
|
6957
|
+
`,qs([le({type:String})],Ws.prototype,"orgSlug",void 0),qs([le({type:Number})],Ws.prototype,"right",void 0),qs([le({type:Number})],Ws.prototype,"bottom",void 0),qs([le({type:Number})],Ws.prototype,"top",void 0),qs([le({type:Number})],Ws.prototype,"left",void 0),qs([ue()],Ws.prototype,"launcher",void 0),qs([ue()],Ws.prototype,"currentLeadSource",void 0),qs([ue()],Ws.prototype,"displayPubnubChat",void 0),qs([ue()],Ws.prototype,"myPubnub",void 0),qs([ue()],Ws.prototype,"requiresConsent",void 0),qs([ue()],Ws.prototype,"privacyPolicyUrl",void 0),qs([ue()],Ws.prototype,"isLoading",void 0),Ws=qs([ae("utilities-chat")],Ws);const Vs=async e=>{const i=window.location.href,n=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(i)}`,o=await t().get(n,{headers:{"org-slug":e}});return Math.random()<.2&&Tn({logType:o&&o.data?kn.info:kn.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${o?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:o.data,url:i,orgSlug:e,givenBuildingSlug:null,reason:o&&o.data?null:"No match found"}}),o.data};class Ys{static healthcareStart(e,t=!0){var i,n,o,r;t&&(this.healthcareId=e.id,this.overridePlacement={right:e.right,bottom:e.bottom,top:e.top,left:e.left}),Xs();const a=document.createElement("health-chat");a.setAttribute("class","health-chat"),a.setAttribute("role","dialog"),a.setAttribute("aria-label","EliseAI Healthcare Widget"),a.setAttribute("aria-describedby","aria-describe-info"),a.setAttribute("aria-modal","true"),a.setAttribute("healthcareId",e.id),a.setAttribute("right",(null===(i=e.right)||void 0===i?void 0:i.toString())||"unset"),a.setAttribute("bottom",(null===(n=e.bottom)||void 0===n?void 0:n.toString())||"unset"),a.setAttribute("top",(null===(o=e.top)||void 0===o?void 0:o.toString())||"unset"),a.setAttribute("left",(null===(r=e.left)||void 0===r?void 0:r.toString())||"unset"),document.body.appendChild(a),Ys.healthChat=a}static start(e,t=!0){var i,n,o,r,a,s,l,u;if(window.location.pathname.includes("residentservices")||window.location.pathname.includes("onlineleasing"))return;t&&(this.orgSlug="Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization,this.hasBuildingSlug=!!e.building,this.overridePlacement={right:null===(i=null==e?void 0:e.position)||void 0===i?void 0:i.right,bottom:null===(n=null==e?void 0:e.position)||void 0===n?void 0:n.bottom,top:null===(o=null==e?void 0:e.position)||void 0===o?void 0:o.top,left:null===(r=null==e?void 0:e.position)||void 0===r?void 0:r.left}),Xs();let c=null;switch(e.widgetType){case Ks.Healthcare:throw new Error("Healthcare widget is not supported yet, please use the healthcareStart method instead.");case Ks.Default:c=document.createElement("me-chat");break;case Ks.Utilities:c=document.createElement("utilities-chat");break;default:c=document.createElement("me-chat")}if(!c)throw new Error("Invalid widget type");c.setAttribute("orgSlug","Pacific Urban Residential"===e.organization?"cbc11aba-21c4-4571-bc43-ff9d86a029e3":e.organization),c.setAttribute("widgetType",e.widgetType||Ks.Default),c.setAttribute("class","meetelise-chat"),c.setAttribute("role","dialog"),c.setAttribute("aria-label","EliseAI Widget"),c.setAttribute("aria-describedby","aria-describe-info"),c.setAttribute("aria-modal","true"),e.brandColor&&(this.brandColor=e.brandColor,c.setAttribute("primaryColor",((e,t)=>{const i=(o=e,{r:parseInt(o.substring(1,3),16),g:parseInt(o.substring(3,5),16),b:parseInt(o.substring(5,7),16)}),n={r:i.r+Math.round(.3*(0-i.r)),g:i.g+Math.round(.3*(0-i.g)),b:i.b+Math.round(.3*(0-i.b))};var o;return((e,t,i)=>"#"+[e,t,i].map((e=>{const t=e.toString(16);return 1===t.length?"0"+t:t})).join(""))(n.r,n.g,n.b)})(e.brandColor))),e.backgroundColor&&(this.backgroundColor=e.backgroundColor),c instanceof Rs&&(this.handleBuildingslug(c,e.organization,e.building,e),e.launcherStyles&&(c.launcherStyles=e.launcherStyles),e.mobileStyles&&(c.mobileStyles=e.mobileStyles),e.onWidgetLoaded&&(c.onWidgetLoaded=e.onWidgetLoaded),e.overrideRentgrata&&((async()=>{const e=await(async(e,t=5e3)=>new Promise(((i,n)=>{const o=new MutationObserver(((t,n)=>{const o=document.getElementById(e);o&&(n.disconnect(),i(o))}));o.observe(document.body,{childList:!0,subtree:!0});const r=setTimeout((()=>{o.disconnect(),n(new Error(`Element ${e} did not appear within ${t}ms`))}),t),a=document.querySelector(e);a&&(clearTimeout(r),o.disconnect(),i(a))})))("rg-widget-compact");e&&e.setAttribute("style","display: none")})(),c.overrideRentgrata=!0),e.onSstClose&&(c.onSstClose=e.onSstClose)),e.position&&(c.setAttribute("right",(null===(a=e.position.right)||void 0===a?void 0:a.toString())||"unset"),c.setAttribute("bottom",(null===(s=e.position.bottom)||void 0===s?void 0:s.toString())||"unset"),c.setAttribute("top",(null===(l=e.position.top)||void 0===l?void 0:l.toString())||"unset"),c.setAttribute("left",(null===(u=e.position.left)||void 0===u?void 0:u.toString())||"unset")),window.eliseAi={},document.body.appendChild(c),c instanceof Rs&&(Ys.meChat=c),c instanceof Ws&&(Ys.utilitiesChat=c)}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.meChat&&(await this.meChat.remove(),document.body.removeChild(this.meChat),Ys.meChat=null)}static async handleBuildingslug(e,t,i,n){if(i)return void e.setAttribute("buildingSlug",i);if(this.mutationObserver)return;if(!t)return;const o=await Vs(t);if(o){const e={...n,organization:t,building:o};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,Vs(t).then((e=>{if(!e)return;const i={...n,organization:t,building:e};this.start(i,!1)})))}))}),!0)}static async handleSingleFamilyUrl(){if(this.hasBuildingSlug)return;this.remove();const e=window.location.href,i=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(e)}`,n=await t().get(i,{headers:{"org-slug":this.orgSlug}});if(Math.random()<.2&&Tn({logType:n&&n.data?kn.info:kn.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 o={organization:this.orgSlug,building:n.data,brandColor:this.brandColor,backgroundColor:this.backgroundColor};this.start(o,!1)}static async calculateBuildingSlugForLogging(e){const i=window.location.href,n=`https://app.meetelise.com/platformApi/webchat/microsite_slug?uri=${encodeURIComponent(i)}`,o=await t().get(n,{headers:{"org-slug":this.orgSlug}});Math.random()<.2&&Tn({logType:o&&o.data===e?kn.info:kn.warn,logTitle:`[BUILDING_SLUG_CALCULATED_${o&&o.data===e?"SUCCESS":"FAILURE"}]`,logData:{calculatedBuildingSlug:o.data,url:i,orgSlug:this.orgSlug,givenBuildingSlug:e,reason:o&&o.data===e?null:o&&!o.data?"No match found":o&&o.data!==e?"Mismatch":"No match found"}}),o&&o.data}}var Ks;Ys.meChat=null,Ys.healthChat=null,Ys.utilitiesChat=null,Ys.orgSlug="",Ys.mutationObserver=null,Ys.previousUrl="",Ys.hasBuildingSlug=null,Ys.brandColor="",Ys.backgroundColor="",Ys.healthcareId="",Ys.overridePlacement={},function(e){e.Default="default",e.Healthcare="healthcare",e.Utilities="utilities"}(Ks||(Ks={}));const Xs=()=>{const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),document.head.appendChild(e)}})();var o=n.l,r=n.Z;export{o as WidgetType,r as default};
|