@meltingspot/widget 1.7.0 → 1.10.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/CHANGELOG.md +24 -0
- package/index.cjs +1 -1
- package/index.mjs +322 -383
- package/index.standalone.js +17 -17
- package/package.json +3 -3
package/index.standalone.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document==="undefined")return;var s=document.createElement("style");s.setAttribute("data-meltingspot","widget");s.textContent=":where(dialog.ms-dialog)[open]{opacity:1}body:has(dialog.ms-dialog[open]){overflow:hidden}:where(dialog.ms-dialog){border:0;position:fixed;inset:0;padding:0;overflow:hidden;max-width:100%;max-height:100%;opacity:0;transition:opacity .2s ease-out,overlay .2s ease-out allow-discrete,display .2s ease-out allow-discrete}:where(dialog.ms-dialog) .ms-dialog-close-button{position:absolute;top:8px;right:8px;font-size:16px;border:0;border-radius:4px;background:none;box-sizing:border-box;width:2rem;height:2rem;min-width:2rem;min-height:2rem;padding:0;color:#fff}:where(dialog.ms-dialog) .ms-dialog-close-button span{mix-blend-mode:difference}:where(dialog.ms-dialog) .ms-dialog-close-button svg{transform:translateZ(0);mix-blend-mode:difference;margin:auto}:where(dialog.ms-dialog) .ms-dialog-close-button:hover{background:#c8c8c81a;background-blend-mode:difference}@starting-style{:where(dialog.ms-dialog)[open]{opacity:0}}:where(dialog.ms-dialog)::backdrop{background-color:#0000;transition:display .2s allow-discrete,overlay .2s allow-discrete,background-color .2s}:where(dialog.ms-dialog)[open]::backdrop{background-color:#00000040}@starting-style{:where(dialog.ms-dialog)[open]::backdrop{background-color:#0000}}:where(.ms-modal){width:100%;height:100%;margin:0;border-radius:0}:where(.ms-drawer){max-width:640px;width:100%;height:100%;box-sizing:border-box}:where(.ms-drawer)[data-position=left]{margin:0 auto 0 0}:where(.ms-drawer)[data-position=right]{margin:0 0 0 auto}@media(min-width:640px){:where(.ms-modal){width:640px;height:80vh;margin:auto;border-radius:8px}}@media(min-width:1280px){:where(.ms-modal){width:50vw}}\n";(document.head||document.documentElement).appendChild(s);}catch(e){if(typeof console!=="undefined"){console.error("[MeltingSpot] failed to inject standalone styles",e);}}})();(function(kt,Pn){typeof exports=="object"&&typeof module<"u"?Pn(exports):typeof define=="function"&&define.amd?define(["exports"],Pn):(kt=typeof globalThis<"u"?globalThis:kt||self,Pn(kt.MeltingSpotWidget={}))})(this,(function(kt){"use strict";const Pn={withStackTrace:!1},rs=(s,o,r=Pn)=>{const f=o.isOk()?{type:"Ok",value:o.value}:{type:"Err",value:o.error},d=r.withStackTrace?new Error().stack:void 0;return{data:f,message:s,stack:d}};function or(s,o,r,f){function d(_){return _ instanceof r?_:new r(function(g){g(_)})}return new(r||(r=Promise))(function(_,g){function y(H){try{$(f.next(H))}catch(U){g(U)}}function A(H){try{$(f.throw(H))}catch(U){g(U)}}function $(H){H.done?_(H.value):d(H.value).then(y,A)}$((f=f.apply(s,[])).next())})}function is(s){var o=typeof Symbol=="function"&&Symbol.iterator,r=o&&s[o],f=0;if(r)return r.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vt(s){return this instanceof Vt?(this.v=s,this):new Vt(s)}function df(s,o,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=r.apply(s,o||[]),d,_=[];return d={},g("next"),g("throw"),g("return"),d[Symbol.asyncIterator]=function(){return this},d;function g(N){f[N]&&(d[N]=function(K){return new Promise(function(k,O){_.push([N,K,k,O])>1||y(N,K)})})}function y(N,K){try{A(f[N](K))}catch(k){U(_[0][3],k)}}function A(N){N.value instanceof Vt?Promise.resolve(N.value.v).then($,H):U(_[0][2],N)}function $(N){y("next",N)}function H(N){y("throw",N)}function U(N,K){N(K),_.shift(),_.length&&y(_[0][0],_[0][1])}}function gf(s){var o,r;return o={},f("next"),f("throw",function(d){throw d}),f("return"),o[Symbol.iterator]=function(){return this},o;function f(d,_){o[d]=s[d]?function(g){return(r=!r)?{value:Vt(s[d](g)),done:d==="return"}:_?_(g):g}:_}}function pf(s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s[Symbol.asyncIterator],r;return o?o.call(s):(s=typeof is=="function"?is(s):s[Symbol.iterator](),r={},f("next"),f("throw"),f("return"),r[Symbol.asyncIterator]=function(){return this},r);function f(_){r[_]=s[_]&&function(g){return new Promise(function(y,A){g=s[_](g),d(y,A,g.done,g.value)})}}function d(_,g,y,A){Promise.resolve(A).then(function($){_({value:$,done:y})},g)}}class Xe{constructor(o){this._promise=o}static fromSafePromise(o){const r=o.then(f=>new jt(f));return new Xe(r)}static fromPromise(o,r){const f=o.then(d=>new jt(d)).catch(d=>new en(r(d)));return new Xe(f)}static fromThrowable(o,r){return(...f)=>new Xe(or(this,void 0,void 0,function*(){try{return new jt(yield o(...f))}catch(d){return new en(r?r(d):d)}}))}static combine(o){return mf(o)}static combineWithAllErrors(o){return _f(o)}map(o){return new Xe(this._promise.then(r=>or(this,void 0,void 0,function*(){return r.isErr()?new en(r.error):new jt(yield o(r.value))})))}mapErr(o){return new Xe(this._promise.then(r=>or(this,void 0,void 0,function*(){return r.isOk()?new jt(r.value):new en(yield o(r.error))})))}andThen(o){return new Xe(this._promise.then(r=>{if(r.isErr())return new en(r.error);const f=o(r.value);return f instanceof Xe?f._promise:f}))}orElse(o){return new Xe(this._promise.then(r=>or(this,void 0,void 0,function*(){return r.isErr()?o(r.error):new jt(r.value)})))}match(o,r){return this._promise.then(f=>f.match(o,r))}unwrapOr(o){return this._promise.then(r=>r.unwrapOr(o))}safeUnwrap(){return df(this,arguments,function*(){return yield Vt(yield Vt(yield*gf(pf(yield Vt(this._promise.then(r=>r.safeUnwrap()))))))})}then(o,r){return this._promise.then(o,r)}}const os=s=>new Xe(Promise.resolve(new en(s))),ss=s=>{let o=oe([]);for(const r of s)if(r.isErr()){o=G(r.error);break}else o.map(f=>f.push(r.value));return o},mf=s=>Xe.fromSafePromise(Promise.all(s)).andThen(ss),us=s=>{let o=oe([]);for(const r of s)r.isErr()&&o.isErr()?o.error.push(r.error):r.isErr()&&o.isOk()?o=G([r.error]):r.isOk()&&o.isOk()&&o.value.push(r.value);return o},_f=s=>Xe.fromSafePromise(Promise.all(s)).andThen(us);var _i;(function(s){function o(d,_){return(...g)=>{try{const y=d(...g);return oe(y)}catch(y){return G(_?_(y):y)}}}s.fromThrowable=o;function r(d){return ss(d)}s.combine=r;function f(d){return us(d)}s.combineWithAllErrors=f})(_i||(_i={}));const oe=s=>new jt(s),G=s=>new en(s);class jt{constructor(o){this.value=o}isOk(){return!0}isErr(){return!this.isOk()}map(o){return oe(o(this.value))}mapErr(o){return oe(this.value)}andThen(o){return o(this.value)}orElse(o){return oe(this.value)}asyncAndThen(o){return o(this.value)}asyncMap(o){return Xe.fromSafePromise(o(this.value))}unwrapOr(o){return this.value}match(o,r){return o(this.value)}safeUnwrap(){const o=this.value;return(function*(){return o})()}_unsafeUnwrap(o){return this.value}_unsafeUnwrapErr(o){throw rs("Called `_unsafeUnwrapErr` on an Ok",this,o)}}class en{constructor(o){this.error=o}isOk(){return!1}isErr(){return!this.isOk()}map(o){return G(this.error)}mapErr(o){return G(o(this.error))}andThen(o){return G(this.error)}orElse(o){return o(this.error)}asyncAndThen(o){return os(this.error)}asyncMap(o){return os(this.error)}unwrapOr(o){return o}match(o,r){return r(this.error)}safeUnwrap(){const o=this.error;return(function*(){throw yield G(o),new Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(o){throw rs("Called `_unsafeUnwrap` on an Err",this,o)}_unsafeUnwrapErr(o){return this.error}}_i.fromThrowable;var st;(function(s){s[s.CONTINUE=100]="CONTINUE",s[s.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",s[s.PROCESSING=102]="PROCESSING",s[s.EARLY_HINTS=103]="EARLY_HINTS",s[s.OK=200]="OK",s[s.CREATED=201]="CREATED",s[s.ACCEPTED=202]="ACCEPTED",s[s.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",s[s.NO_CONTENT=204]="NO_CONTENT",s[s.RESET_CONTENT=205]="RESET_CONTENT",s[s.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",s[s.MULTI_STATUS=207]="MULTI_STATUS",s[s.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",s[s.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",s[s.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",s[s.SEE_OTHER=303]="SEE_OTHER",s[s.NOT_MODIFIED=304]="NOT_MODIFIED",s[s.USE_PROXY=305]="USE_PROXY",s[s.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",s[s.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",s[s.BAD_REQUEST=400]="BAD_REQUEST",s[s.UNAUTHORIZED=401]="UNAUTHORIZED",s[s.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",s[s.FORBIDDEN=403]="FORBIDDEN",s[s.NOT_FOUND=404]="NOT_FOUND",s[s.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",s[s.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",s[s.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",s[s.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",s[s.CONFLICT=409]="CONFLICT",s[s.GONE=410]="GONE",s[s.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",s[s.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",s[s.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",s[s.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",s[s.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",s[s.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",s[s.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",s[s.IM_A_TEAPOT=418]="IM_A_TEAPOT",s[s.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",s[s.METHOD_FAILURE=420]="METHOD_FAILURE",s[s.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",s[s.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",s[s.LOCKED=423]="LOCKED",s[s.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",s[s.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",s[s.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",s[s.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",s[s.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",s[s.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",s[s.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",s[s.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",s[s.BAD_GATEWAY=502]="BAD_GATEWAY",s[s.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",s[s.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",s[s.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",s[s.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",s[s.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"})(st||(st={}));const vf=new RegExp("^/+"),wf=s=>s.replace(vf,""),Ef=new RegExp("/+$"),sr=s=>s.replace(Ef,"");function vi(s,o){const r=s.startsWith("/")?s.slice(1):s;return new URL(r,o).toString()}const wi=s=>{const{input:o,rootDocument:r=document}=s;if(typeof o=="string"){const f=r.getElementById(o);if(!f)throw new Error(`Could not found an HTMLElement with ID '${o}'.`);return f}if(o.tagName)return o;throw new Error(`Expected a string or an HTMLElement, but received: ${typeof o}`)},Tf=s=>{const o=s.createElement("dialog");o.innerHTML=`
|
|
1
|
+
(function(){try{if(typeof document==="undefined")return;var s=document.createElement("style");s.setAttribute("data-meltingspot","widget");s.textContent=":where(dialog.ms-dialog)[open]{opacity:1}body:has(dialog.ms-dialog[open]){overflow:hidden}:where(dialog.ms-dialog){opacity:0;max-width:100%;max-height:100%;transition:opacity .2s ease-out, overlay .2s ease-out allow-discrete, display .2s ease-out allow-discrete;border:0;padding:0;position:fixed;inset:0;overflow:hidden}:where(dialog.ms-dialog) .ms-dialog-close-button{box-sizing:border-box;color:#fff;background:0 0;border:0;border-radius:4px;width:2rem;min-width:2rem;height:2rem;min-height:2rem;padding:0;font-size:16px;position:absolute;top:8px;right:8px}:where(dialog.ms-dialog) .ms-dialog-close-button span{mix-blend-mode:difference}:where(dialog.ms-dialog) .ms-dialog-close-button svg{mix-blend-mode:difference;margin:auto;transform:translate(0,0)}:where(dialog.ms-dialog) .ms-dialog-close-button:hover{background-blend-mode:difference;background:#c8c8c81a}@starting-style{:where(dialog.ms-dialog)[open]{opacity:0}}:where(dialog.ms-dialog)::backdrop{transition:display .2s allow-discrete, overlay .2s allow-discrete, background-color .2s;background-color:#0000}:where(dialog.ms-dialog)[open]::backdrop{background-color:#00000040}@starting-style{:where(dialog.ms-dialog)[open]::backdrop{background-color:#0000}}:where(.ms-modal){border-radius:0;width:100%;height:100%;margin:0}:where(.ms-drawer){box-sizing:border-box;width:100%;max-width:640px;height:100%}:where(.ms-drawer)[data-position=left]{margin:0 auto 0 0}:where(.ms-drawer)[data-position=right]{margin:0 0 0 auto}@media (width>=640px){:where(.ms-modal){border-radius:8px;width:640px;height:80vh;margin:auto}}@media (width>=1280px){:where(.ms-modal){width:50vw}}\n/*$vite$:1*/";(document.head||document.documentElement).appendChild(s);}catch(e){if(typeof console!=="undefined"){console.error("[MeltingSpot] failed to inject standalone styles",e);}}})();(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.MeltingSpotWidget={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),d={withStackTrace:!1},f=(e,t,n=d)=>({data:t.isOk()?{type:`Ok`,value:t.value}:{type:`Err`,value:t.error},message:e,stack:n.withStackTrace?Error().stack:void 0});function p(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function m(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i={},o(`next`),o(`throw`),o(`return`),i[Symbol.asyncIterator]=function(){return this},i;function o(e){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{c(r[e](t))}catch(e){d(a[0][3],e)}}function c(e){e.value instanceof h?Promise.resolve(e.value.v).then(l,u):d(a[0][2],e)}function l(e){s(`next`,e)}function u(e){s(`throw`,e)}function d(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function _(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:h(e[r](t)),done:r===`return`}:i?i(t):t}:i}}function v(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof m==`function`?m(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var y=class e{constructor(e){this._promise=e}static fromSafePromise(t){let n=t.then(e=>new te(e));return new e(n)}static fromPromise(t,n){let r=t.then(e=>new te(e)).catch(e=>new ne(n(e)));return new e(r)}static fromThrowable(t,n){return(...r)=>new e(p(this,void 0,void 0,function*(){try{return new te(yield t(...r))}catch(e){return new ne(n?n(e):e)}}))}static combine(e){return ee(e)}static combineWithAllErrors(e){return C(e)}map(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isErr()?new ne(e.error):new te(yield t(e.value))})))}mapErr(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isOk()?new te(e.value):new ne(yield t(e.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new ne(n.error);let r=t(n.value);return r instanceof e?r._promise:r}))}orElse(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isErr()?t(e.error):new te(e.value)})))}match(e,t){return this._promise.then(n=>n.match(e,t))}unwrapOr(e){return this._promise.then(t=>t.unwrapOr(e))}safeUnwrap(){return g(this,arguments,function*(){return yield h(yield h(yield*_(v(yield h(this._promise.then(e=>e.safeUnwrap()))))))})}then(e,t){return this._promise.then(e,t)}},b=e=>new y(Promise.resolve(new ne(e)));y.fromPromise,y.fromSafePromise,y.fromThrowable;var x=e=>{let t=T([]);for(let n of e)if(n.isErr()){t=E(n.error);break}else t.map(e=>e.push(n.value));return t},ee=e=>y.fromSafePromise(Promise.all(e)).andThen(x),S=e=>{let t=T([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=E([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},C=e=>y.fromSafePromise(Promise.all(e)).andThen(S),w;(function(e){function t(e,t){return(...n)=>{try{return T(e(...n))}catch(e){return E(t?t(e):e)}}}e.fromThrowable=t;function n(e){return x(e)}e.combine=n;function r(e){return S(e)}e.combineWithAllErrors=r})(w||={});var T=e=>new te(e),E=e=>new ne(e),te=class{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return T(e(this.value))}mapErr(e){return T(this.value)}andThen(e){return e(this.value)}orElse(e){return T(this.value)}asyncAndThen(e){return e(this.value)}asyncMap(e){return y.fromSafePromise(e(this.value))}unwrapOr(e){return this.value}match(e,t){return e(this.value)}safeUnwrap(){let e=this.value;return(function*(){return e})()}_unsafeUnwrap(e){return this.value}_unsafeUnwrapErr(e){throw f("Called `_unsafeUnwrapErr` on an Ok",this,e)}},ne=class{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return E(this.error)}mapErr(e){return E(e(this.error))}andThen(e){return E(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return b(this.error)}asyncMap(e){return b(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return(function*(){throw yield E(e),Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(e){throw f("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}};w.fromThrowable;var D;(function(e){e[e.CONTINUE=100]=`CONTINUE`,e[e.SWITCHING_PROTOCOLS=101]=`SWITCHING_PROTOCOLS`,e[e.PROCESSING=102]=`PROCESSING`,e[e.EARLY_HINTS=103]=`EARLY_HINTS`,e[e.OK=200]=`OK`,e[e.CREATED=201]=`CREATED`,e[e.ACCEPTED=202]=`ACCEPTED`,e[e.NON_AUTHORITATIVE_INFORMATION=203]=`NON_AUTHORITATIVE_INFORMATION`,e[e.NO_CONTENT=204]=`NO_CONTENT`,e[e.RESET_CONTENT=205]=`RESET_CONTENT`,e[e.PARTIAL_CONTENT=206]=`PARTIAL_CONTENT`,e[e.MULTI_STATUS=207]=`MULTI_STATUS`,e[e.MULTIPLE_CHOICES=300]=`MULTIPLE_CHOICES`,e[e.MOVED_PERMANENTLY=301]=`MOVED_PERMANENTLY`,e[e.MOVED_TEMPORARILY=302]=`MOVED_TEMPORARILY`,e[e.SEE_OTHER=303]=`SEE_OTHER`,e[e.NOT_MODIFIED=304]=`NOT_MODIFIED`,e[e.USE_PROXY=305]=`USE_PROXY`,e[e.TEMPORARY_REDIRECT=307]=`TEMPORARY_REDIRECT`,e[e.PERMANENT_REDIRECT=308]=`PERMANENT_REDIRECT`,e[e.BAD_REQUEST=400]=`BAD_REQUEST`,e[e.UNAUTHORIZED=401]=`UNAUTHORIZED`,e[e.PAYMENT_REQUIRED=402]=`PAYMENT_REQUIRED`,e[e.FORBIDDEN=403]=`FORBIDDEN`,e[e.NOT_FOUND=404]=`NOT_FOUND`,e[e.METHOD_NOT_ALLOWED=405]=`METHOD_NOT_ALLOWED`,e[e.NOT_ACCEPTABLE=406]=`NOT_ACCEPTABLE`,e[e.PROXY_AUTHENTICATION_REQUIRED=407]=`PROXY_AUTHENTICATION_REQUIRED`,e[e.REQUEST_TIMEOUT=408]=`REQUEST_TIMEOUT`,e[e.CONFLICT=409]=`CONFLICT`,e[e.GONE=410]=`GONE`,e[e.LENGTH_REQUIRED=411]=`LENGTH_REQUIRED`,e[e.PRECONDITION_FAILED=412]=`PRECONDITION_FAILED`,e[e.REQUEST_TOO_LONG=413]=`REQUEST_TOO_LONG`,e[e.REQUEST_URI_TOO_LONG=414]=`REQUEST_URI_TOO_LONG`,e[e.UNSUPPORTED_MEDIA_TYPE=415]=`UNSUPPORTED_MEDIA_TYPE`,e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]=`REQUESTED_RANGE_NOT_SATISFIABLE`,e[e.EXPECTATION_FAILED=417]=`EXPECTATION_FAILED`,e[e.IM_A_TEAPOT=418]=`IM_A_TEAPOT`,e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]=`INSUFFICIENT_SPACE_ON_RESOURCE`,e[e.METHOD_FAILURE=420]=`METHOD_FAILURE`,e[e.MISDIRECTED_REQUEST=421]=`MISDIRECTED_REQUEST`,e[e.UNPROCESSABLE_ENTITY=422]=`UNPROCESSABLE_ENTITY`,e[e.LOCKED=423]=`LOCKED`,e[e.FAILED_DEPENDENCY=424]=`FAILED_DEPENDENCY`,e[e.UPGRADE_REQUIRED=426]=`UPGRADE_REQUIRED`,e[e.PRECONDITION_REQUIRED=428]=`PRECONDITION_REQUIRED`,e[e.TOO_MANY_REQUESTS=429]=`TOO_MANY_REQUESTS`,e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]=`REQUEST_HEADER_FIELDS_TOO_LARGE`,e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]=`UNAVAILABLE_FOR_LEGAL_REASONS`,e[e.INTERNAL_SERVER_ERROR=500]=`INTERNAL_SERVER_ERROR`,e[e.NOT_IMPLEMENTED=501]=`NOT_IMPLEMENTED`,e[e.BAD_GATEWAY=502]=`BAD_GATEWAY`,e[e.SERVICE_UNAVAILABLE=503]=`SERVICE_UNAVAILABLE`,e[e.GATEWAY_TIMEOUT=504]=`GATEWAY_TIMEOUT`,e[e.HTTP_VERSION_NOT_SUPPORTED=505]=`HTTP_VERSION_NOT_SUPPORTED`,e[e.INSUFFICIENT_STORAGE=507]=`INSUFFICIENT_STORAGE`,e[e.NETWORK_AUTHENTICATION_REQUIRED=511]=`NETWORK_AUTHENTICATION_REQUIRED`})(D||={});var re=RegExp(`^/+`),ie=e=>e.replace(re,``),ae=RegExp(`/+$`),oe=e=>e.replace(ae,``);function se(e,t){let n=e.startsWith(`/`)?e.slice(1):e;return new URL(n,t).toString()}var ce=e=>{let{input:t,rootDocument:n=document}=e;if(typeof t==`string`){let e=n.getElementById(t);if(!e)throw Error(`Could not found an HTMLElement with ID '${t}'.`);return e}if(t.tagName)return t;throw Error(`Expected a string or an HTMLElement, but received: ${typeof t}`)},le=e=>{let t=e.createElement(`dialog`);t.innerHTML=`
|
|
2
2
|
<form method="dialog">
|
|
3
3
|
<button class="ms-dialog-close-button" aria-label="Close" autofocus>
|
|
4
4
|
<span>
|
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
</span>
|
|
12
12
|
</button>
|
|
13
13
|
</form>
|
|
14
|
-
`,o.classList.add("ms-dialog"),o.addEventListener("click",f=>{f.target===o&&o.close()});const r=o.querySelector(".ms-dialog-close-button");return r&&r.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation(),o.close()}),o},yf=["accelerometer *","autoplay","camera","clipboard-write *","display-capture","encrypted-media *","fullscreen","gyroscope *","microphone","picture-in-picture *","screen-wake-lock"],Ei=s=>{const{url:o,searchParams:r={},permissionPolicies:f=[],rootDocument:d=document}=s;Object.entries(r).forEach(([g,y])=>{y!=null&&o.searchParams.set(g,String(y))});const _=d.createElement("iframe");return _.src=o.toString(),_.allow=yf.concat(f).join("; "),_.width="100%",_.height="100%",_.style.border="0",_};var ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cn(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ar={exports:{}},If=ar.exports,as;function tn(){return as||(as=1,(function(s,o){(function(r,f){s.exports=f()})(If,(function(){var r=1e3,f=6e4,d=36e5,_="millisecond",g="second",y="minute",A="hour",$="day",H="week",U="month",N="quarter",K="year",k="date",O="Invalid Date",Q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,he=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,me={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var x=["th","st","nd","rd"],M=W%100;return"["+W+(x[(M-20)%10]||x[M]||x[0])+"]"}},ne=function(W,x,M){var D=String(W);return!D||D.length>=x?W:""+Array(x+1-D.length).join(M)+W},Le={s:ne,z:function(W){var x=-W.utcOffset(),M=Math.abs(x),D=Math.floor(M/60),R=M%60;return(x<=0?"+":"-")+ne(D,2,"0")+":"+ne(R,2,"0")},m:function W(x,M){if(x.date()<M.date())return-W(M,x);var D=12*(M.year()-x.year())+(M.month()-x.month()),R=x.clone().add(D,U),z=M-R<0,Y=x.clone().add(D+(z?-1:1),U);return+(-(D+(M-R)/(z?R-Y:Y-R))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:U,y:K,w:H,d:$,D:k,h:A,m:y,s:g,ms:_,Q:N}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},ue="en",Te={};Te[ue]=me;var _e="$isDayjsObject",Ne=function(W){return W instanceof En||!(!W||!W[_e])},Pe=function W(x,M,D){var R;if(!x)return ue;if(typeof x=="string"){var z=x.toLowerCase();Te[z]&&(R=z),M&&(Te[z]=M,R=z);var Y=x.split("-");if(!R&&Y.length>1)return W(Y[0])}else{var V=x.name;Te[V]=x,R=V}return!D&&R&&(ue=R),R||!D&&ue},ce=function(W,x){if(Ne(W))return W.clone();var M=typeof x=="object"?x:{};return M.date=W,M.args=arguments,new En(M)},ie=Le;ie.l=Pe,ie.i=Ne,ie.w=function(W,x){return ce(W,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var En=(function(){function W(M){this.$L=Pe(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[_e]=!0}var x=W.prototype;return x.parse=function(M){this.$d=(function(D){var R=D.date,z=D.utc;if(R===null)return new Date(NaN);if(ie.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var Y=R.match(Q);if(Y){var V=Y[2]-1||0,ve=(Y[7]||"0").substring(0,3);return z?new Date(Date.UTC(Y[1],V,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ve)):new Date(Y[1],V,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ve)}}return new Date(R)})(M),this.init()},x.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},x.$utils=function(){return ie},x.isValid=function(){return this.$d.toString()!==O},x.isSame=function(M,D){var R=ce(M);return this.startOf(D)<=R&&R<=this.endOf(D)},x.isAfter=function(M,D){return ce(M)<this.startOf(D)},x.isBefore=function(M,D){return this.endOf(D)<ce(M)},x.$g=function(M,D,R){return ie.u(M)?this[D]:this.set(R,M)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(M,D){var R=this,z=!!ie.u(D)||D,Y=ie.p(M),V=function(Ve,We){var je=ie.w(R.$u?Date.UTC(R.$y,We,Ve):new Date(R.$y,We,Ve),R);return z?je:je.endOf($)},ve=function(Ve,We){return ie.w(R.toDate()[Ve].apply(R.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(We)),R)},Me=this.$W,Ue=this.$M,be=this.$D,pt="set"+(this.$u?"UTC":"");switch(Y){case K:return z?V(1,0):V(31,11);case U:return z?V(1,Ue):V(0,Ue+1);case H:var xt=this.$locale().weekStart||0,mt=(Me<xt?Me+7:Me)-xt;return V(z?be-mt:be+(6-mt),Ue);case $:case k:return ve(pt+"Hours",0);case A:return ve(pt+"Minutes",1);case y:return ve(pt+"Seconds",2);case g:return ve(pt+"Milliseconds",3);default:return this.clone()}},x.endOf=function(M){return this.startOf(M,!1)},x.$set=function(M,D){var R,z=ie.p(M),Y="set"+(this.$u?"UTC":""),V=(R={},R[$]=Y+"Date",R[k]=Y+"Date",R[U]=Y+"Month",R[K]=Y+"FullYear",R[A]=Y+"Hours",R[y]=Y+"Minutes",R[g]=Y+"Seconds",R[_]=Y+"Milliseconds",R)[z],ve=z===$?this.$D+(D-this.$W):D;if(z===U||z===K){var Me=this.clone().set(k,1);Me.$d[V](ve),Me.init(),this.$d=Me.set(k,Math.min(this.$D,Me.daysInMonth())).$d}else V&&this.$d[V](ve);return this.init(),this},x.set=function(M,D){return this.clone().$set(M,D)},x.get=function(M){return this[ie.p(M)]()},x.add=function(M,D){var R,z=this;M=Number(M);var Y=ie.p(D),V=function(Ue){var be=ce(z);return ie.w(be.date(be.date()+Math.round(Ue*M)),z)};if(Y===U)return this.set(U,this.$M+M);if(Y===K)return this.set(K,this.$y+M);if(Y===$)return V(1);if(Y===H)return V(7);var ve=(R={},R[y]=f,R[A]=d,R[g]=r,R)[Y]||1,Me=this.$d.getTime()+M*ve;return ie.w(Me,this)},x.subtract=function(M,D){return this.add(-1*M,D)},x.format=function(M){var D=this,R=this.$locale();if(!this.isValid())return R.invalidDate||O;var z=M||"YYYY-MM-DDTHH:mm:ssZ",Y=ie.z(this),V=this.$H,ve=this.$m,Me=this.$M,Ue=R.weekdays,be=R.months,pt=R.meridiem,xt=function(We,je,Rt,rn){return We&&(We[je]||We(D,z))||Rt[je].slice(0,rn)},mt=function(We){return ie.s(V%12||12,We,"0")},Ve=pt||function(We,je,Rt){var rn=We<12?"AM":"PM";return Rt?rn.toLowerCase():rn};return z.replace(he,(function(We,je){return je||(function(Rt){switch(Rt){case"YY":return String(D.$y).slice(-2);case"YYYY":return ie.s(D.$y,4,"0");case"M":return Me+1;case"MM":return ie.s(Me+1,2,"0");case"MMM":return xt(R.monthsShort,Me,be,3);case"MMMM":return xt(be,Me);case"D":return D.$D;case"DD":return ie.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return xt(R.weekdaysMin,D.$W,Ue,2);case"ddd":return xt(R.weekdaysShort,D.$W,Ue,3);case"dddd":return Ue[D.$W];case"H":return String(V);case"HH":return ie.s(V,2,"0");case"h":return mt(1);case"hh":return mt(2);case"a":return Ve(V,ve,!0);case"A":return Ve(V,ve,!1);case"m":return String(ve);case"mm":return ie.s(ve,2,"0");case"s":return String(D.$s);case"ss":return ie.s(D.$s,2,"0");case"SSS":return ie.s(D.$ms,3,"0");case"Z":return Y}return null})(We)||Y.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(M,D,R){var z,Y=this,V=ie.p(D),ve=ce(M),Me=(ve.utcOffset()-this.utcOffset())*f,Ue=this-ve,be=function(){return ie.m(Y,ve)};switch(V){case K:z=be()/12;break;case U:z=be();break;case N:z=be()/3;break;case H:z=(Ue-Me)/6048e5;break;case $:z=(Ue-Me)/864e5;break;case A:z=Ue/d;break;case y:z=Ue/f;break;case g:z=Ue/r;break;default:z=Ue}return R?z:ie.a(z)},x.daysInMonth=function(){return this.endOf(U).$D},x.$locale=function(){return Te[this.$L]},x.locale=function(M,D){if(!M)return this.$L;var R=this.clone(),z=Pe(M,D,!0);return z&&(R.$L=z),R},x.clone=function(){return ie.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},W})(),Mr=En.prototype;return ce.prototype=Mr,[["$ms",_],["$s",g],["$m",y],["$H",A],["$W",$],["$M",U],["$y",K],["$D",k]].forEach((function(W){Mr[W[1]]=function(x){return this.$g(x,W[0],W[1])}})),ce.extend=function(W,x){return W.$i||(W(x,En,ce),W.$i=!0),ce},ce.locale=Pe,ce.isDayjs=Ne,ce.unix=function(W){return ce(1e3*W)},ce.en=Te[ue],ce.Ls=Te,ce.p={},ce}))})(ar)),ar.exports}var Af=tn();const fr=Cn(Af);var cr={exports:{}},Rf=cr.exports,fs;function Lf(){return fs||(fs=1,(function(s,o){(function(r,f){s.exports=f()})(Rf,(function(){return function(r,f){var d=f.prototype,_=d.format;d.format=function(g){var y=this,A=this.$locale();if(!this.isValid())return _.bind(this)(g);var $=this.$utils(),H=(g||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(U){switch(U){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return A.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return A.ordinal(y.week(),"W");case"w":case"ww":return $.s(y.week(),U==="w"?1:2,"0");case"W":case"WW":return $.s(y.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return $.s(String(y.$H===0?24:y.$H),U==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return U}}));return _.bind(this)(H)}}}))})(cr)),cr.exports}var Mf=Lf();const Of=Cn(Mf);var lr={exports:{}},bf=lr.exports,cs;function xf(){return cs||(cs=1,(function(s,o){(function(r,f){s.exports=f()})(bf,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(f,d,_){var g=d.prototype,y=g.format;_.en.formats=r,g.format=function(A){A===void 0&&(A="YYYY-MM-DDTHH:mm:ssZ");var $=this.$locale().formats,H=(function(U,N){return U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(K,k,O){var Q=O&&O.toUpperCase();return k||N[O]||r[O]||N[Q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(he,me,ne){return me||ne.slice(1)}))}))})(A,$===void 0?{}:$);return y.call(this,H)}}}))})(lr)),lr.exports}var Df=xf();const Sf=Cn(Df);var hr={exports:{}},Uf=hr.exports,ls;function $f(){return ls||(ls=1,(function(s,o){(function(r,f){s.exports=f()})(Uf,(function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},f={};return function(d,_,g){var y,A=function(N,K,k){k===void 0&&(k={});var O=new Date(N),Q=(function(he,me){me===void 0&&(me={});var ne=me.timeZoneName||"short",Le=he+"|"+ne,ue=f[Le];return ue||(ue=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:he,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:ne}),f[Le]=ue),ue})(K,k);return Q.formatToParts(O)},$=function(N,K){for(var k=A(N,K),O=[],Q=0;Q<k.length;Q+=1){var he=k[Q],me=he.type,ne=he.value,Le=r[me];Le>=0&&(O[Le]=parseInt(ne,10))}var ue=O[3],Te=ue===24?0:ue,_e=O[0]+"-"+O[1]+"-"+O[2]+" "+Te+":"+O[4]+":"+O[5]+":000",Ne=+N;return(g.utc(_e).valueOf()-(Ne-=Ne%1e3))/6e4},H=_.prototype;H.tz=function(N,K){N===void 0&&(N=y);var k,O=this.utcOffset(),Q=this.toDate(),he=Q.toLocaleString("en-US",{timeZone:N}),me=Math.round((Q-new Date(he))/1e3/60),ne=15*-Math.round(Q.getTimezoneOffset()/15)-me;if(!Number(ne))k=this.utcOffset(0,K);else if(k=g(he,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(ne,!0),K){var Le=k.utcOffset();k=k.add(O-Le,"minute")}return k.$x.$timezone=N,k},H.offsetName=function(N){var K=this.$x.$timezone||g.tz.guess(),k=A(this.valueOf(),K,{timeZoneName:N}).find((function(O){return O.type.toLowerCase()==="timezonename"}));return k&&k.value};var U=H.startOf;H.startOf=function(N,K){if(!this.$x||!this.$x.$timezone)return U.call(this,N,K);var k=g(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return U.call(k,N,K).tz(this.$x.$timezone,!0)},g.tz=function(N,K,k){var O=k&&K,Q=k||K||y,he=$(+g(),Q);if(typeof N!="string")return g(N).tz(Q);var me=(function(Te,_e,Ne){var Pe=Te-60*_e*1e3,ce=$(Pe,Ne);if(_e===ce)return[Pe,_e];var ie=$(Pe-=60*(ce-_e)*1e3,Ne);return ce===ie?[Pe,ce]:[Te-60*Math.min(ce,ie)*1e3,Math.max(ce,ie)]})(g.utc(N,O).valueOf(),he,Q),ne=me[0],Le=me[1],ue=g(ne).utcOffset(Le);return ue.$x.$timezone=Q,ue},g.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},g.tz.setDefault=function(N){y=N}}}))})(hr)),hr.exports}var Nf=$f();const Pf=Cn(Nf);var dr={exports:{}},Cf=dr.exports,hs;function Ff(){return hs||(hs=1,(function(s,o){(function(r,f){s.exports=f()})(Cf,(function(){var r="minute",f=/[+-]\d\d(?::?\d\d)?/g,d=/([+-]|\d\d)/g;return function(_,g,y){var A=g.prototype;y.utc=function(O){var Q={date:O,utc:!0,args:arguments};return new g(Q)},A.utc=function(O){var Q=y(this.toDate(),{locale:this.$L,utc:!0});return O?Q.add(this.utcOffset(),r):Q},A.local=function(){return y(this.toDate(),{locale:this.$L,utc:!1})};var $=A.parse;A.parse=function(O){O.utc&&(this.$u=!0),this.$utils().u(O.$offset)||(this.$offset=O.$offset),$.call(this,O)};var H=A.init;A.init=function(){if(this.$u){var O=this.$d;this.$y=O.getUTCFullYear(),this.$M=O.getUTCMonth(),this.$D=O.getUTCDate(),this.$W=O.getUTCDay(),this.$H=O.getUTCHours(),this.$m=O.getUTCMinutes(),this.$s=O.getUTCSeconds(),this.$ms=O.getUTCMilliseconds()}else H.call(this)};var U=A.utcOffset;A.utcOffset=function(O,Q){var he=this.$utils().u;if(he(O))return this.$u?0:he(this.$offset)?U.call(this):this.$offset;if(typeof O=="string"&&(O=(function(ue){ue===void 0&&(ue="");var Te=ue.match(f);if(!Te)return null;var _e=(""+Te[0]).match(d)||["-",0,0],Ne=_e[0],Pe=60*+_e[1]+ +_e[2];return Pe===0?0:Ne==="+"?Pe:-Pe})(O),O===null))return this;var me=Math.abs(O)<=16?60*O:O,ne=this;if(Q)return ne.$offset=me,ne.$u=O===0,ne;if(O!==0){var Le=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(ne=this.local().add(me+Le,r)).$offset=me,ne.$x.$localOffset=Le}else ne=this.utc();return ne};var N=A.format;A.format=function(O){var Q=O||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return N.call(this,Q)},A.valueOf=function(){var O=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*O},A.isUTC=function(){return!!this.$u},A.toISOString=function(){return this.toDate().toISOString()},A.toString=function(){return this.toDate().toUTCString()};var K=A.toDate;A.toDate=function(O){return O==="s"&&this.$offset?y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():K.call(this)};var k=A.diff;A.diff=function(O,Q,he){if(O&&this.$u===O.$u)return k.call(this,O,Q,he);var me=this.local(),ne=y(O).local();return k.call(me,ne,Q,he)}}}))})(dr)),dr.exports}var Wf=Ff();const Yf=Cn(Wf);var gr={exports:{}},kf=gr.exports,ds;function Hf(){return ds||(ds=1,(function(s,o){(function(r,f){s.exports=f(tn())})(kf,(function(r){function f(A){return A&&typeof A=="object"&&"default"in A?A:{default:A}}var d=f(r),_={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function g(A,$,H){var U=_[H];return Array.isArray(U)&&(U=U[$?0:1]),U.replace("%d",A)}var y={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(A){return A+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g}};return d.default.locale(y,null,!0),y}))})(gr)),gr.exports}Hf();var pr={exports:{}},Bf=pr.exports,gs;function Gf(){return gs||(gs=1,(function(s,o){(function(r,f){s.exports=f(tn())})(Bf,(function(r){function f(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var d=f(r),_={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(g){return""+g+(g===1?"er":"")}};return d.default.locale(_,null,!0),_}))})(pr)),pr.exports}Gf();var mr={exports:{}},zf=mr.exports,ps;function qf(){return ps||(ps=1,(function(s,o){(function(r,f){s.exports=f()})(zf,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(r){var f=["th","st","nd","rd"],d=r%100;return"["+r+(f[(d-20)%10]||f[d]||f[0])+"]"}}}))})(mr)),mr.exports}qf();var _r={exports:{}},Kf=_r.exports,ms;function Qf(){return ms||(ms=1,(function(s,o){(function(r,f){s.exports=f(tn())})(Kf,(function(r){function f(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var d=f(r),_={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(g){return g+"º"}};return d.default.locale(_,null,!0),_}))})(_r)),_r.exports}Qf();var vr={exports:{}},Zf=vr.exports,_s;function Jf(){return _s||(_s=1,(function(s,o){(function(r,f){s.exports=f(tn())})(Zf,(function(r){function f(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var d=f(r),_={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(g){return g+"º"}};return d.default.locale(_,null,!0),_}))})(vr)),vr.exports}Jf();var wr={exports:{}},Xf=wr.exports,vs;function Vf(){return vs||(vs=1,(function(s,o){(function(r,f){s.exports=f(tn())})(Xf,(function(r){function f(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var d=f(r),_={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(g){return g+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return d.default.locale(_,null,!0),_}))})(wr)),wr.exports}Vf();var Er={exports:{}},jf=Er.exports,ws;function ec(){return ws||(ws=1,(function(s,o){(function(r,f){s.exports=f(tn())})(jf,(function(r){function f(g){return g&&typeof g=="object"&&"default"in g?g:{default:g}}var d=f(r),_={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(g){return"["+g+(g===1||g===8||g>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return d.default.locale(_,null,!0),_}))})(Er)),Er.exports}ec(),fr.extend(Yf),fr.extend(Pf),fr.extend(Sf),fr.extend(Of);var Fn={exports:{}};var tc=Fn.exports,Es;function nc(){return Es||(Es=1,(function(s,o){(function(){var r,f="4.17.21",d=200,_="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",$=500,H="__lodash_placeholder__",U=1,N=2,K=4,k=1,O=2,Q=1,he=2,me=4,ne=8,Le=16,ue=32,Te=64,_e=128,Ne=256,Pe=512,ce=30,ie="...",En=800,Mr=16,W=1,x=2,M=3,D=1/0,R=9007199254740991,z=17976931348623157e292,Y=NaN,V=4294967295,ve=V-1,Me=V>>>1,Ue=[["ary",_e],["bind",Q],["bindKey",he],["curry",ne],["curryRight",Le],["flip",Pe],["partial",ue],["partialRight",Te],["rearg",Ne]],be="[object Arguments]",pt="[object Array]",xt="[object AsyncFunction]",mt="[object Boolean]",Ve="[object Date]",We="[object DOMException]",je="[object Error]",Rt="[object Function]",rn="[object GeneratorFunction]",_t="[object Map]",Wn="[object Number]",Sc="[object Null]",Dt="[object Object]",Ps="[object Promise]",Uc="[object Proxy]",Yn="[object RegExp]",vt="[object Set]",kn="[object String]",Or="[object Symbol]",$c="[object Undefined]",Hn="[object WeakMap]",Nc="[object WeakSet]",Bn="[object ArrayBuffer]",Tn="[object DataView]",Ni="[object Float32Array]",Pi="[object Float64Array]",Ci="[object Int8Array]",Fi="[object Int16Array]",Wi="[object Int32Array]",Yi="[object Uint8Array]",ki="[object Uint8ClampedArray]",Hi="[object Uint16Array]",Bi="[object Uint32Array]",Pc=/\b__p \+= '';/g,Cc=/\b(__p \+=) '' \+/g,Fc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cs=/&(?:amp|lt|gt|quot|#39);/g,Fs=/[&<>"']/g,Wc=RegExp(Cs.source),Yc=RegExp(Fs.source),kc=/<%-([\s\S]+?)%>/g,Hc=/<%([\s\S]+?)%>/g,Ws=/<%=([\s\S]+?)%>/g,Bc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gc=/^\w*$/,zc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gi=/[\\^$.*+?()[\]{}|]/g,qc=RegExp(Gi.source),zi=/^\s+/,Kc=/\s/,Qc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zc=/\{\n\/\* \[wrapped with (.+)\] \*/,Jc=/,? & /,Xc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vc=/[()=,{}\[\]\/\s]/,jc=/\\(\\)?/g,el=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ys=/\w*$/,tl=/^[-+]0x[0-9a-f]+$/i,nl=/^0b[01]+$/i,rl=/^\[object .+?Constructor\]$/,il=/^0o[0-7]+$/i,ol=/^(?:0|[1-9]\d*)$/,sl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,br=/($^)/,ul=/['\n\r\u2028\u2029\\]/g,xr="\\ud800-\\udfff",al="\\u0300-\\u036f",fl="\\ufe20-\\ufe2f",cl="\\u20d0-\\u20ff",ks=al+fl+cl,Hs="\\u2700-\\u27bf",Bs="a-z\\xdf-\\xf6\\xf8-\\xff",ll="\\xac\\xb1\\xd7\\xf7",hl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dl="\\u2000-\\u206f",gl=" \\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",Gs="A-Z\\xc0-\\xd6\\xd8-\\xde",zs="\\ufe0e\\ufe0f",qs=ll+hl+dl+gl,qi="['’]",pl="["+xr+"]",Ks="["+qs+"]",Dr="["+ks+"]",Qs="\\d+",ml="["+Hs+"]",Zs="["+Bs+"]",Js="[^"+xr+qs+Qs+Hs+Bs+Gs+"]",Ki="\\ud83c[\\udffb-\\udfff]",_l="(?:"+Dr+"|"+Ki+")",Xs="[^"+xr+"]",Qi="(?:\\ud83c[\\udde6-\\uddff]){2}",Zi="[\\ud800-\\udbff][\\udc00-\\udfff]",yn="["+Gs+"]",Vs="\\u200d",js="(?:"+Zs+"|"+Js+")",vl="(?:"+yn+"|"+Js+")",eu="(?:"+qi+"(?:d|ll|m|re|s|t|ve))?",tu="(?:"+qi+"(?:D|LL|M|RE|S|T|VE))?",nu=_l+"?",ru="["+zs+"]?",wl="(?:"+Vs+"(?:"+[Xs,Qi,Zi].join("|")+")"+ru+nu+")*",El="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iu=ru+nu+wl,yl="(?:"+[ml,Qi,Zi].join("|")+")"+iu,Il="(?:"+[Xs+Dr+"?",Dr,Qi,Zi,pl].join("|")+")",Al=RegExp(qi,"g"),Rl=RegExp(Dr,"g"),Ji=RegExp(Ki+"(?="+Ki+")|"+Il+iu,"g"),Ll=RegExp([yn+"?"+Zs+"+"+eu+"(?="+[Ks,yn,"$"].join("|")+")",vl+"+"+tu+"(?="+[Ks,yn+js,"$"].join("|")+")",yn+"?"+js+"+"+eu,yn+"+"+tu,Tl,El,Qs,yl].join("|"),"g"),Ml=RegExp("["+Vs+xr+ks+zs+"]"),Ol=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xl=-1,ge={};ge[Ni]=ge[Pi]=ge[Ci]=ge[Fi]=ge[Wi]=ge[Yi]=ge[ki]=ge[Hi]=ge[Bi]=!0,ge[be]=ge[pt]=ge[Bn]=ge[mt]=ge[Tn]=ge[Ve]=ge[je]=ge[Rt]=ge[_t]=ge[Wn]=ge[Dt]=ge[Yn]=ge[vt]=ge[kn]=ge[Hn]=!1;var de={};de[be]=de[pt]=de[Bn]=de[Tn]=de[mt]=de[Ve]=de[Ni]=de[Pi]=de[Ci]=de[Fi]=de[Wi]=de[_t]=de[Wn]=de[Dt]=de[Yn]=de[vt]=de[kn]=de[Or]=de[Yi]=de[ki]=de[Hi]=de[Bi]=!0,de[je]=de[Rt]=de[Hn]=!1;var Dl={À:"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"},Sl={"&":"&","<":"<",">":">",'"':""","'":"'"},Ul={"&":"&","<":"<",">":">",""":'"',"'":"'"},$l={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nl=parseFloat,Pl=parseInt,ou=typeof ur=="object"&&ur&&ur.Object===Object&&ur,Cl=typeof self=="object"&&self&&self.Object===Object&&self,Ce=ou||Cl||Function("return this")(),Xi=o&&!o.nodeType&&o,on=Xi&&!0&&s&&!s.nodeType&&s,su=on&&on.exports===Xi,Vi=su&&ou.process,ut=(function(){try{var p=on&&on.require&&on.require("util").types;return p||Vi&&Vi.binding&&Vi.binding("util")}catch{}})(),uu=ut&&ut.isArrayBuffer,au=ut&&ut.isDate,fu=ut&&ut.isMap,cu=ut&&ut.isRegExp,lu=ut&&ut.isSet,hu=ut&&ut.isTypedArray;function et(p,w,v){switch(v.length){case 0:return p.call(w);case 1:return p.call(w,v[0]);case 2:return p.call(w,v[0],v[1]);case 3:return p.call(w,v[0],v[1],v[2])}return p.apply(w,v)}function Fl(p,w,v,b){for(var B=-1,se=p==null?0:p.length;++B<se;){var xe=p[B];w(b,xe,v(xe),p)}return b}function at(p,w){for(var v=-1,b=p==null?0:p.length;++v<b&&w(p[v],v,p)!==!1;);return p}function Wl(p,w){for(var v=p==null?0:p.length;v--&&w(p[v],v,p)!==!1;);return p}function du(p,w){for(var v=-1,b=p==null?0:p.length;++v<b;)if(!w(p[v],v,p))return!1;return!0}function Bt(p,w){for(var v=-1,b=p==null?0:p.length,B=0,se=[];++v<b;){var xe=p[v];w(xe,v,p)&&(se[B++]=xe)}return se}function Sr(p,w){var v=p==null?0:p.length;return!!v&&In(p,w,0)>-1}function ji(p,w,v){for(var b=-1,B=p==null?0:p.length;++b<B;)if(v(w,p[b]))return!0;return!1}function pe(p,w){for(var v=-1,b=p==null?0:p.length,B=Array(b);++v<b;)B[v]=w(p[v],v,p);return B}function Gt(p,w){for(var v=-1,b=w.length,B=p.length;++v<b;)p[B+v]=w[v];return p}function eo(p,w,v,b){var B=-1,se=p==null?0:p.length;for(b&&se&&(v=p[++B]);++B<se;)v=w(v,p[B],B,p);return v}function Yl(p,w,v,b){var B=p==null?0:p.length;for(b&&B&&(v=p[--B]);B--;)v=w(v,p[B],B,p);return v}function to(p,w){for(var v=-1,b=p==null?0:p.length;++v<b;)if(w(p[v],v,p))return!0;return!1}var kl=no("length");function Hl(p){return p.split("")}function Bl(p){return p.match(Xc)||[]}function gu(p,w,v){var b;return v(p,function(B,se,xe){if(w(B,se,xe))return b=se,!1}),b}function Ur(p,w,v,b){for(var B=p.length,se=v+(b?1:-1);b?se--:++se<B;)if(w(p[se],se,p))return se;return-1}function In(p,w,v){return w===w?th(p,w,v):Ur(p,pu,v)}function Gl(p,w,v,b){for(var B=v-1,se=p.length;++B<se;)if(b(p[B],w))return B;return-1}function pu(p){return p!==p}function mu(p,w){var v=p==null?0:p.length;return v?io(p,w)/v:Y}function no(p){return function(w){return w==null?r:w[p]}}function ro(p){return function(w){return p==null?r:p[w]}}function _u(p,w,v,b,B){return B(p,function(se,xe,le){v=b?(b=!1,se):w(v,se,xe,le)}),v}function zl(p,w){var v=p.length;for(p.sort(w);v--;)p[v]=p[v].value;return p}function io(p,w){for(var v,b=-1,B=p.length;++b<B;){var se=w(p[b]);se!==r&&(v=v===r?se:v+se)}return v}function oo(p,w){for(var v=-1,b=Array(p);++v<p;)b[v]=w(v);return b}function ql(p,w){return pe(w,function(v){return[v,p[v]]})}function vu(p){return p&&p.slice(0,yu(p)+1).replace(zi,"")}function tt(p){return function(w){return p(w)}}function so(p,w){return pe(w,function(v){return p[v]})}function Gn(p,w){return p.has(w)}function wu(p,w){for(var v=-1,b=p.length;++v<b&&In(w,p[v],0)>-1;);return v}function Eu(p,w){for(var v=p.length;v--&&In(w,p[v],0)>-1;);return v}function Kl(p,w){for(var v=p.length,b=0;v--;)p[v]===w&&++b;return b}var Ql=ro(Dl),Zl=ro(Sl);function Jl(p){return"\\"+$l[p]}function Xl(p,w){return p==null?r:p[w]}function An(p){return Ml.test(p)}function Vl(p){return Ol.test(p)}function jl(p){for(var w,v=[];!(w=p.next()).done;)v.push(w.value);return v}function uo(p){var w=-1,v=Array(p.size);return p.forEach(function(b,B){v[++w]=[B,b]}),v}function Tu(p,w){return function(v){return p(w(v))}}function zt(p,w){for(var v=-1,b=p.length,B=0,se=[];++v<b;){var xe=p[v];(xe===w||xe===H)&&(p[v]=H,se[B++]=v)}return se}function $r(p){var w=-1,v=Array(p.size);return p.forEach(function(b){v[++w]=b}),v}function eh(p){var w=-1,v=Array(p.size);return p.forEach(function(b){v[++w]=[b,b]}),v}function th(p,w,v){for(var b=v-1,B=p.length;++b<B;)if(p[b]===w)return b;return-1}function nh(p,w,v){for(var b=v+1;b--;)if(p[b]===w)return b;return b}function Rn(p){return An(p)?ih(p):kl(p)}function wt(p){return An(p)?oh(p):Hl(p)}function yu(p){for(var w=p.length;w--&&Kc.test(p.charAt(w)););return w}var rh=ro(Ul);function ih(p){for(var w=Ji.lastIndex=0;Ji.test(p);)++w;return w}function oh(p){return p.match(Ji)||[]}function sh(p){return p.match(Ll)||[]}var uh=(function p(w){w=w==null?Ce:Ln.defaults(Ce.Object(),w,Ln.pick(Ce,bl));var v=w.Array,b=w.Date,B=w.Error,se=w.Function,xe=w.Math,le=w.Object,ao=w.RegExp,ah=w.String,ft=w.TypeError,Nr=v.prototype,fh=se.prototype,Mn=le.prototype,Pr=w["__core-js_shared__"],Cr=fh.toString,fe=Mn.hasOwnProperty,ch=0,Iu=(function(){var e=/[^.]+$/.exec(Pr&&Pr.keys&&Pr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Fr=Mn.toString,lh=Cr.call(le),hh=Ce._,dh=ao("^"+Cr.call(fe).replace(Gi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wr=su?w.Buffer:r,qt=w.Symbol,Yr=w.Uint8Array,Au=Wr?Wr.allocUnsafe:r,kr=Tu(le.getPrototypeOf,le),Ru=le.create,Lu=Mn.propertyIsEnumerable,Hr=Nr.splice,Mu=qt?qt.isConcatSpreadable:r,zn=qt?qt.iterator:r,sn=qt?qt.toStringTag:r,Br=(function(){try{var e=ln(le,"defineProperty");return e({},"",{}),e}catch{}})(),gh=w.clearTimeout!==Ce.clearTimeout&&w.clearTimeout,ph=b&&b.now!==Ce.Date.now&&b.now,mh=w.setTimeout!==Ce.setTimeout&&w.setTimeout,Gr=xe.ceil,zr=xe.floor,fo=le.getOwnPropertySymbols,_h=Wr?Wr.isBuffer:r,Ou=w.isFinite,vh=Nr.join,wh=Tu(le.keys,le),De=xe.max,Ye=xe.min,Eh=b.now,Th=w.parseInt,bu=xe.random,yh=Nr.reverse,co=ln(w,"DataView"),qn=ln(w,"Map"),lo=ln(w,"Promise"),On=ln(w,"Set"),Kn=ln(w,"WeakMap"),Qn=ln(le,"create"),qr=Kn&&new Kn,bn={},Ih=hn(co),Ah=hn(qn),Rh=hn(lo),Lh=hn(On),Mh=hn(Kn),Kr=qt?qt.prototype:r,Zn=Kr?Kr.valueOf:r,xu=Kr?Kr.toString:r;function a(e){if(Ee(e)&&!q(e)&&!(e instanceof te)){if(e instanceof ct)return e;if(fe.call(e,"__wrapped__"))return Da(e)}return new ct(e)}var xn=(function(){function e(){}return function(t){if(!we(t))return{};if(Ru)return Ru(t);e.prototype=t;var n=new e;return e.prototype=r,n}})();function Qr(){}function ct(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}a.templateSettings={escape:kc,evaluate:Hc,interpolate:Ws,variable:"",imports:{_:a}},a.prototype=Qr.prototype,a.prototype.constructor=a,ct.prototype=xn(Qr.prototype),ct.prototype.constructor=ct;function te(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function Oh(){var e=new te(this.__wrapped__);return e.__actions__=Ke(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ke(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ke(this.__views__),e}function bh(){if(this.__filtered__){var e=new te(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function xh(){var e=this.__wrapped__.value(),t=this.__dir__,n=q(e),i=t<0,u=n?e.length:0,c=Hd(0,u,this.__views__),l=c.start,h=c.end,m=h-l,E=i?h:l-1,T=this.__iteratees__,I=T.length,L=0,S=Ye(m,this.__takeCount__);if(!n||!i&&u==m&&S==m)return ea(e,this.__actions__);var C=[];e:for(;m--&&L<S;){E+=t;for(var J=-1,F=e[E];++J<I;){var j=T[J],re=j.iteratee,it=j.type,ze=re(F);if(it==x)F=ze;else if(!ze){if(it==W)continue e;break e}}C[L++]=F}return C}te.prototype=xn(Qr.prototype),te.prototype.constructor=te;function un(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Dh(){this.__data__=Qn?Qn(null):{},this.size=0}function Sh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Uh(e){var t=this.__data__;if(Qn){var n=t[e];return n===A?r:n}return fe.call(t,e)?t[e]:r}function $h(e){var t=this.__data__;return Qn?t[e]!==r:fe.call(t,e)}function Nh(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qn&&t===r?A:t,this}un.prototype.clear=Dh,un.prototype.delete=Sh,un.prototype.get=Uh,un.prototype.has=$h,un.prototype.set=Nh;function St(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ph(){this.__data__=[],this.size=0}function Ch(e){var t=this.__data__,n=Zr(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Hr.call(t,n,1),--this.size,!0}function Fh(e){var t=this.__data__,n=Zr(t,e);return n<0?r:t[n][1]}function Wh(e){return Zr(this.__data__,e)>-1}function Yh(e,t){var n=this.__data__,i=Zr(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}St.prototype.clear=Ph,St.prototype.delete=Ch,St.prototype.get=Fh,St.prototype.has=Wh,St.prototype.set=Yh;function Ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function kh(){this.size=0,this.__data__={hash:new un,map:new(qn||St),string:new un}}function Hh(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t}function Bh(e){return ui(this,e).get(e)}function Gh(e){return ui(this,e).has(e)}function zh(e,t){var n=ui(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}Ut.prototype.clear=kh,Ut.prototype.delete=Hh,Ut.prototype.get=Bh,Ut.prototype.has=Gh,Ut.prototype.set=zh;function an(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ut;++t<n;)this.add(e[t])}function qh(e){return this.__data__.set(e,A),this}function Kh(e){return this.__data__.has(e)}an.prototype.add=an.prototype.push=qh,an.prototype.has=Kh;function Et(e){var t=this.__data__=new St(e);this.size=t.size}function Qh(){this.__data__=new St,this.size=0}function Zh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Jh(e){return this.__data__.get(e)}function Xh(e){return this.__data__.has(e)}function Vh(e,t){var n=this.__data__;if(n instanceof St){var i=n.__data__;if(!qn||i.length<d-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ut(i)}return n.set(e,t),this.size=n.size,this}Et.prototype.clear=Qh,Et.prototype.delete=Zh,Et.prototype.get=Jh,Et.prototype.has=Xh,Et.prototype.set=Vh;function Du(e,t){var n=q(e),i=!n&&dn(e),u=!n&&!i&&Xt(e),c=!n&&!i&&!u&&$n(e),l=n||i||u||c,h=l?oo(e.length,ah):[],m=h.length;for(var E in e)(t||fe.call(e,E))&&!(l&&(E=="length"||u&&(E=="offset"||E=="parent")||c&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||Ct(E,m)))&&h.push(E);return h}function Su(e){var t=e.length;return t?e[Io(0,t-1)]:r}function jh(e,t){return ai(Ke(e),fn(t,0,e.length))}function ed(e){return ai(Ke(e))}function ho(e,t,n){(n!==r&&!Tt(e[t],n)||n===r&&!(t in e))&&$t(e,t,n)}function Jn(e,t,n){var i=e[t];(!(fe.call(e,t)&&Tt(i,n))||n===r&&!(t in e))&&$t(e,t,n)}function Zr(e,t){for(var n=e.length;n--;)if(Tt(e[n][0],t))return n;return-1}function td(e,t,n,i){return Kt(e,function(u,c,l){t(i,u,n(u),l)}),i}function Uu(e,t){return e&&Mt(t,$e(t),e)}function nd(e,t){return e&&Mt(t,Ze(t),e)}function $t(e,t,n){t=="__proto__"&&Br?Br(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function go(e,t){for(var n=-1,i=t.length,u=v(i),c=e==null;++n<i;)u[n]=c?r:Qo(e,t[n]);return u}function fn(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function lt(e,t,n,i,u,c){var l,h=t&U,m=t&N,E=t&K;if(n&&(l=u?n(e,i,u,c):n(e)),l!==r)return l;if(!we(e))return e;var T=q(e);if(T){if(l=Gd(e),!h)return Ke(e,l)}else{var I=ke(e),L=I==Rt||I==rn;if(Xt(e))return ra(e,h);if(I==Dt||I==be||L&&!u){if(l=m||L?{}:ya(e),!h)return m?Ud(e,nd(l,e)):Sd(e,Uu(l,e))}else{if(!de[I])return u?e:{};l=zd(e,I,h)}}c||(c=new Et);var S=c.get(e);if(S)return S;c.set(e,l),Xa(e)?e.forEach(function(F){l.add(lt(F,t,n,F,e,c))}):Za(e)&&e.forEach(function(F,j){l.set(j,lt(F,t,n,j,e,c))});var C=E?m?$o:Uo:m?Ze:$e,J=T?r:C(e);return at(J||e,function(F,j){J&&(j=F,F=e[j]),Jn(l,j,lt(F,t,n,j,e,c))}),l}function rd(e){var t=$e(e);return function(n){return $u(n,e,t)}}function $u(e,t,n){var i=n.length;if(e==null)return!i;for(e=le(e);i--;){var u=n[i],c=t[u],l=e[u];if(l===r&&!(u in e)||!c(l))return!1}return!0}function Nu(e,t,n){if(typeof e!="function")throw new ft(g);return rr(function(){e.apply(r,n)},t)}function Xn(e,t,n,i){var u=-1,c=Sr,l=!0,h=e.length,m=[],E=t.length;if(!h)return m;n&&(t=pe(t,tt(n))),i?(c=ji,l=!1):t.length>=d&&(c=Gn,l=!1,t=new an(t));e:for(;++u<h;){var T=e[u],I=n==null?T:n(T);if(T=i||T!==0?T:0,l&&I===I){for(var L=E;L--;)if(t[L]===I)continue e;m.push(T)}else c(t,I,i)||m.push(T)}return m}var Kt=aa(Lt),Pu=aa(mo,!0);function id(e,t){var n=!0;return Kt(e,function(i,u,c){return n=!!t(i,u,c),n}),n}function Jr(e,t,n){for(var i=-1,u=e.length;++i<u;){var c=e[i],l=t(c);if(l!=null&&(h===r?l===l&&!rt(l):n(l,h)))var h=l,m=c}return m}function od(e,t,n,i){var u=e.length;for(n=Z(n),n<0&&(n=-n>u?0:u+n),i=i===r||i>u?u:Z(i),i<0&&(i+=u),i=n>i?0:ja(i);n<i;)e[n++]=t;return e}function Cu(e,t){var n=[];return Kt(e,function(i,u,c){t(i,u,c)&&n.push(i)}),n}function Fe(e,t,n,i,u){var c=-1,l=e.length;for(n||(n=Kd),u||(u=[]);++c<l;){var h=e[c];t>0&&n(h)?t>1?Fe(h,t-1,n,i,u):Gt(u,h):i||(u[u.length]=h)}return u}var po=fa(),Fu=fa(!0);function Lt(e,t){return e&&po(e,t,$e)}function mo(e,t){return e&&Fu(e,t,$e)}function Xr(e,t){return Bt(t,function(n){return Ft(e[n])})}function cn(e,t){t=Zt(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[Ot(t[n++])];return n&&n==i?e:r}function Wu(e,t,n){var i=t(e);return q(e)?i:Gt(i,n(e))}function Be(e){return e==null?e===r?$c:Sc:sn&&sn in le(e)?kd(e):eg(e)}function _o(e,t){return e>t}function sd(e,t){return e!=null&&fe.call(e,t)}function ud(e,t){return e!=null&&t in le(e)}function ad(e,t,n){return e>=Ye(t,n)&&e<De(t,n)}function vo(e,t,n){for(var i=n?ji:Sr,u=e[0].length,c=e.length,l=c,h=v(c),m=1/0,E=[];l--;){var T=e[l];l&&t&&(T=pe(T,tt(t))),m=Ye(T.length,m),h[l]=!n&&(t||u>=120&&T.length>=120)?new an(l&&T):r}T=e[0];var I=-1,L=h[0];e:for(;++I<u&&E.length<m;){var S=T[I],C=t?t(S):S;if(S=n||S!==0?S:0,!(L?Gn(L,C):i(E,C,n))){for(l=c;--l;){var J=h[l];if(!(J?Gn(J,C):i(e[l],C,n)))continue e}L&&L.push(C),E.push(S)}}return E}function fd(e,t,n,i){return Lt(e,function(u,c,l){t(i,n(u),c,l)}),i}function Vn(e,t,n){t=Zt(t,e),e=La(e,t);var i=e==null?e:e[Ot(dt(t))];return i==null?r:et(i,e,n)}function Yu(e){return Ee(e)&&Be(e)==be}function cd(e){return Ee(e)&&Be(e)==Bn}function ld(e){return Ee(e)&&Be(e)==Ve}function jn(e,t,n,i,u){return e===t?!0:e==null||t==null||!Ee(e)&&!Ee(t)?e!==e&&t!==t:hd(e,t,n,i,jn,u)}function hd(e,t,n,i,u,c){var l=q(e),h=q(t),m=l?pt:ke(e),E=h?pt:ke(t);m=m==be?Dt:m,E=E==be?Dt:E;var T=m==Dt,I=E==Dt,L=m==E;if(L&&Xt(e)){if(!Xt(t))return!1;l=!0,T=!1}if(L&&!T)return c||(c=new Et),l||$n(e)?wa(e,t,n,i,u,c):Wd(e,t,m,n,i,u,c);if(!(n&k)){var S=T&&fe.call(e,"__wrapped__"),C=I&&fe.call(t,"__wrapped__");if(S||C){var J=S?e.value():e,F=C?t.value():t;return c||(c=new Et),u(J,F,n,i,c)}}return L?(c||(c=new Et),Yd(e,t,n,i,u,c)):!1}function dd(e){return Ee(e)&&ke(e)==_t}function wo(e,t,n,i){var u=n.length,c=u,l=!i;if(e==null)return!c;for(e=le(e);u--;){var h=n[u];if(l&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++u<c;){h=n[u];var m=h[0],E=e[m],T=h[1];if(l&&h[2]){if(E===r&&!(m in e))return!1}else{var I=new Et;if(i)var L=i(E,T,m,e,t,I);if(!(L===r?jn(T,E,k|O,i,I):L))return!1}}return!0}function ku(e){if(!we(e)||Zd(e))return!1;var t=Ft(e)?dh:rl;return t.test(hn(e))}function gd(e){return Ee(e)&&Be(e)==Yn}function pd(e){return Ee(e)&&ke(e)==vt}function md(e){return Ee(e)&&gi(e.length)&&!!ge[Be(e)]}function Hu(e){return typeof e=="function"?e:e==null?Je:typeof e=="object"?q(e)?zu(e[0],e[1]):Gu(e):lf(e)}function Eo(e){if(!nr(e))return wh(e);var t=[];for(var n in le(e))fe.call(e,n)&&n!="constructor"&&t.push(n);return t}function _d(e){if(!we(e))return jd(e);var t=nr(e),n=[];for(var i in e)i=="constructor"&&(t||!fe.call(e,i))||n.push(i);return n}function To(e,t){return e<t}function Bu(e,t){var n=-1,i=Qe(e)?v(e.length):[];return Kt(e,function(u,c,l){i[++n]=t(u,c,l)}),i}function Gu(e){var t=Po(e);return t.length==1&&t[0][2]?Aa(t[0][0],t[0][1]):function(n){return n===e||wo(n,e,t)}}function zu(e,t){return Fo(e)&&Ia(t)?Aa(Ot(e),t):function(n){var i=Qo(n,e);return i===r&&i===t?Zo(n,e):jn(t,i,k|O)}}function Vr(e,t,n,i,u){e!==t&&po(t,function(c,l){if(u||(u=new Et),we(c))vd(e,t,l,n,Vr,i,u);else{var h=i?i(Yo(e,l),c,l+"",e,t,u):r;h===r&&(h=c),ho(e,l,h)}},Ze)}function vd(e,t,n,i,u,c,l){var h=Yo(e,n),m=Yo(t,n),E=l.get(m);if(E){ho(e,n,E);return}var T=c?c(h,m,n+"",e,t,l):r,I=T===r;if(I){var L=q(m),S=!L&&Xt(m),C=!L&&!S&&$n(m);T=m,L||S||C?q(h)?T=h:ye(h)?T=Ke(h):S?(I=!1,T=ra(m,!0)):C?(I=!1,T=ia(m,!0)):T=[]:ir(m)||dn(m)?(T=h,dn(h)?T=ef(h):(!we(h)||Ft(h))&&(T=ya(m))):I=!1}I&&(l.set(m,T),u(T,m,i,c,l),l.delete(m)),ho(e,n,T)}function qu(e,t){var n=e.length;if(n)return t+=t<0?n:0,Ct(t,n)?e[t]:r}function Ku(e,t,n){t.length?t=pe(t,function(c){return q(c)?function(l){return cn(l,c.length===1?c[0]:c)}:c}):t=[Je];var i=-1;t=pe(t,tt(P()));var u=Bu(e,function(c,l,h){var m=pe(t,function(E){return E(c)});return{criteria:m,index:++i,value:c}});return zl(u,function(c,l){return Dd(c,l,n)})}function wd(e,t){return Qu(e,t,function(n,i){return Zo(e,i)})}function Qu(e,t,n){for(var i=-1,u=t.length,c={};++i<u;){var l=t[i],h=cn(e,l);n(h,l)&&er(c,Zt(l,e),h)}return c}function Ed(e){return function(t){return cn(t,e)}}function yo(e,t,n,i){var u=i?Gl:In,c=-1,l=t.length,h=e;for(e===t&&(t=Ke(t)),n&&(h=pe(e,tt(n)));++c<l;)for(var m=0,E=t[c],T=n?n(E):E;(m=u(h,T,m,i))>-1;)h!==e&&Hr.call(h,m,1),Hr.call(e,m,1);return e}function Zu(e,t){for(var n=e?t.length:0,i=n-1;n--;){var u=t[n];if(n==i||u!==c){var c=u;Ct(u)?Hr.call(e,u,1):Lo(e,u)}}return e}function Io(e,t){return e+zr(bu()*(t-e+1))}function Td(e,t,n,i){for(var u=-1,c=De(Gr((t-e)/(n||1)),0),l=v(c);c--;)l[i?c:++u]=e,e+=n;return l}function Ao(e,t){var n="";if(!e||t<1||t>R)return n;do t%2&&(n+=e),t=zr(t/2),t&&(e+=e);while(t);return n}function X(e,t){return ko(Ra(e,t,Je),e+"")}function yd(e){return Su(Nn(e))}function Id(e,t){var n=Nn(e);return ai(n,fn(t,0,n.length))}function er(e,t,n,i){if(!we(e))return e;t=Zt(t,e);for(var u=-1,c=t.length,l=c-1,h=e;h!=null&&++u<c;){var m=Ot(t[u]),E=n;if(m==="__proto__"||m==="constructor"||m==="prototype")return e;if(u!=l){var T=h[m];E=i?i(T,m,h):r,E===r&&(E=we(T)?T:Ct(t[u+1])?[]:{})}Jn(h,m,E),h=h[m]}return e}var Ju=qr?function(e,t){return qr.set(e,t),e}:Je,Ad=Br?function(e,t){return Br(e,"toString",{configurable:!0,enumerable:!1,value:Xo(t),writable:!0})}:Je;function Rd(e){return ai(Nn(e))}function ht(e,t,n){var i=-1,u=e.length;t<0&&(t=-t>u?0:u+t),n=n>u?u:n,n<0&&(n+=u),u=t>n?0:n-t>>>0,t>>>=0;for(var c=v(u);++i<u;)c[i]=e[i+t];return c}function Ld(e,t){var n;return Kt(e,function(i,u,c){return n=t(i,u,c),!n}),!!n}function jr(e,t,n){var i=0,u=e==null?i:e.length;if(typeof t=="number"&&t===t&&u<=Me){for(;i<u;){var c=i+u>>>1,l=e[c];l!==null&&!rt(l)&&(n?l<=t:l<t)?i=c+1:u=c}return u}return Ro(e,t,Je,n)}function Ro(e,t,n,i){var u=0,c=e==null?0:e.length;if(c===0)return 0;t=n(t);for(var l=t!==t,h=t===null,m=rt(t),E=t===r;u<c;){var T=zr((u+c)/2),I=n(e[T]),L=I!==r,S=I===null,C=I===I,J=rt(I);if(l)var F=i||C;else E?F=C&&(i||L):h?F=C&&L&&(i||!S):m?F=C&&L&&!S&&(i||!J):S||J?F=!1:F=i?I<=t:I<t;F?u=T+1:c=T}return Ye(c,ve)}function Xu(e,t){for(var n=-1,i=e.length,u=0,c=[];++n<i;){var l=e[n],h=t?t(l):l;if(!n||!Tt(h,m)){var m=h;c[u++]=l===0?0:l}}return c}function Vu(e){return typeof e=="number"?e:rt(e)?Y:+e}function nt(e){if(typeof e=="string")return e;if(q(e))return pe(e,nt)+"";if(rt(e))return xu?xu.call(e):"";var t=e+"";return t=="0"&&1/e==-D?"-0":t}function Qt(e,t,n){var i=-1,u=Sr,c=e.length,l=!0,h=[],m=h;if(n)l=!1,u=ji;else if(c>=d){var E=t?null:Cd(e);if(E)return $r(E);l=!1,u=Gn,m=new an}else m=t?[]:h;e:for(;++i<c;){var T=e[i],I=t?t(T):T;if(T=n||T!==0?T:0,l&&I===I){for(var L=m.length;L--;)if(m[L]===I)continue e;t&&m.push(I),h.push(T)}else u(m,I,n)||(m!==h&&m.push(I),h.push(T))}return h}function Lo(e,t){return t=Zt(t,e),e=La(e,t),e==null||delete e[Ot(dt(t))]}function ju(e,t,n,i){return er(e,t,n(cn(e,t)),i)}function ei(e,t,n,i){for(var u=e.length,c=i?u:-1;(i?c--:++c<u)&&t(e[c],c,e););return n?ht(e,i?0:c,i?c+1:u):ht(e,i?c+1:0,i?u:c)}function ea(e,t){var n=e;return n instanceof te&&(n=n.value()),eo(t,function(i,u){return u.func.apply(u.thisArg,Gt([i],u.args))},n)}function Mo(e,t,n){var i=e.length;if(i<2)return i?Qt(e[0]):[];for(var u=-1,c=v(i);++u<i;)for(var l=e[u],h=-1;++h<i;)h!=u&&(c[u]=Xn(c[u]||l,e[h],t,n));return Qt(Fe(c,1),t,n)}function ta(e,t,n){for(var i=-1,u=e.length,c=t.length,l={};++i<u;){var h=i<c?t[i]:r;n(l,e[i],h)}return l}function Oo(e){return ye(e)?e:[]}function bo(e){return typeof e=="function"?e:Je}function Zt(e,t){return q(e)?e:Fo(e,t)?[e]:xa(ae(e))}var Md=X;function Jt(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ht(e,t,n)}var na=gh||function(e){return Ce.clearTimeout(e)};function ra(e,t){if(t)return e.slice();var n=e.length,i=Au?Au(n):new e.constructor(n);return e.copy(i),i}function xo(e){var t=new e.constructor(e.byteLength);return new Yr(t).set(new Yr(e)),t}function Od(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function bd(e){var t=new e.constructor(e.source,Ys.exec(e));return t.lastIndex=e.lastIndex,t}function xd(e){return Zn?le(Zn.call(e)):{}}function ia(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oa(e,t){if(e!==t){var n=e!==r,i=e===null,u=e===e,c=rt(e),l=t!==r,h=t===null,m=t===t,E=rt(t);if(!h&&!E&&!c&&e>t||c&&l&&m&&!h&&!E||i&&l&&m||!n&&m||!u)return 1;if(!i&&!c&&!E&&e<t||E&&n&&u&&!i&&!c||h&&n&&u||!l&&u||!m)return-1}return 0}function Dd(e,t,n){for(var i=-1,u=e.criteria,c=t.criteria,l=u.length,h=n.length;++i<l;){var m=oa(u[i],c[i]);if(m){if(i>=h)return m;var E=n[i];return m*(E=="desc"?-1:1)}}return e.index-t.index}function sa(e,t,n,i){for(var u=-1,c=e.length,l=n.length,h=-1,m=t.length,E=De(c-l,0),T=v(m+E),I=!i;++h<m;)T[h]=t[h];for(;++u<l;)(I||u<c)&&(T[n[u]]=e[u]);for(;E--;)T[h++]=e[u++];return T}function ua(e,t,n,i){for(var u=-1,c=e.length,l=-1,h=n.length,m=-1,E=t.length,T=De(c-h,0),I=v(T+E),L=!i;++u<T;)I[u]=e[u];for(var S=u;++m<E;)I[S+m]=t[m];for(;++l<h;)(L||u<c)&&(I[S+n[l]]=e[u++]);return I}function Ke(e,t){var n=-1,i=e.length;for(t||(t=v(i));++n<i;)t[n]=e[n];return t}function Mt(e,t,n,i){var u=!n;n||(n={});for(var c=-1,l=t.length;++c<l;){var h=t[c],m=i?i(n[h],e[h],h,n,e):r;m===r&&(m=e[h]),u?$t(n,h,m):Jn(n,h,m)}return n}function Sd(e,t){return Mt(e,Co(e),t)}function Ud(e,t){return Mt(e,Ea(e),t)}function ti(e,t){return function(n,i){var u=q(n)?Fl:td,c=t?t():{};return u(n,e,P(i,2),c)}}function Dn(e){return X(function(t,n){var i=-1,u=n.length,c=u>1?n[u-1]:r,l=u>2?n[2]:r;for(c=e.length>3&&typeof c=="function"?(u--,c):r,l&&Ge(n[0],n[1],l)&&(c=u<3?r:c,u=1),t=le(t);++i<u;){var h=n[i];h&&e(t,h,i,c)}return t})}function aa(e,t){return function(n,i){if(n==null)return n;if(!Qe(n))return e(n,i);for(var u=n.length,c=t?u:-1,l=le(n);(t?c--:++c<u)&&i(l[c],c,l)!==!1;);return n}}function fa(e){return function(t,n,i){for(var u=-1,c=le(t),l=i(t),h=l.length;h--;){var m=l[e?h:++u];if(n(c[m],m,c)===!1)break}return t}}function $d(e,t,n){var i=t&Q,u=tr(e);function c(){var l=this&&this!==Ce&&this instanceof c?u:e;return l.apply(i?n:this,arguments)}return c}function ca(e){return function(t){t=ae(t);var n=An(t)?wt(t):r,i=n?n[0]:t.charAt(0),u=n?Jt(n,1).join(""):t.slice(1);return i[e]()+u}}function Sn(e){return function(t){return eo(ff(af(t).replace(Al,"")),e,"")}}function tr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xn(e.prototype),i=e.apply(n,t);return we(i)?i:n}}function Nd(e,t,n){var i=tr(e);function u(){for(var c=arguments.length,l=v(c),h=c,m=Un(u);h--;)l[h]=arguments[h];var E=c<3&&l[0]!==m&&l[c-1]!==m?[]:zt(l,m);if(c-=E.length,c<n)return pa(e,t,ni,u.placeholder,r,l,E,r,r,n-c);var T=this&&this!==Ce&&this instanceof u?i:e;return et(T,this,l)}return u}function la(e){return function(t,n,i){var u=le(t);if(!Qe(t)){var c=P(n,3);t=$e(t),n=function(h){return c(u[h],h,u)}}var l=e(t,n,i);return l>-1?u[c?t[l]:l]:r}}function ha(e){return Pt(function(t){var n=t.length,i=n,u=ct.prototype.thru;for(e&&t.reverse();i--;){var c=t[i];if(typeof c!="function")throw new ft(g);if(u&&!l&&si(c)=="wrapper")var l=new ct([],!0)}for(i=l?i:n;++i<n;){c=t[i];var h=si(c),m=h=="wrapper"?No(c):r;m&&Wo(m[0])&&m[1]==(_e|ne|ue|Ne)&&!m[4].length&&m[9]==1?l=l[si(m[0])].apply(l,m[3]):l=c.length==1&&Wo(c)?l[h]():l.thru(c)}return function(){var E=arguments,T=E[0];if(l&&E.length==1&&q(T))return l.plant(T).value();for(var I=0,L=n?t[I].apply(this,E):T;++I<n;)L=t[I].call(this,L);return L}})}function ni(e,t,n,i,u,c,l,h,m,E){var T=t&_e,I=t&Q,L=t&he,S=t&(ne|Le),C=t&Pe,J=L?r:tr(e);function F(){for(var j=arguments.length,re=v(j),it=j;it--;)re[it]=arguments[it];if(S)var ze=Un(F),ot=Kl(re,ze);if(i&&(re=sa(re,i,u,S)),c&&(re=ua(re,c,l,S)),j-=ot,S&&j<E){var Ie=zt(re,ze);return pa(e,t,ni,F.placeholder,n,re,Ie,h,m,E-j)}var yt=I?n:this,Yt=L?yt[e]:e;return j=re.length,h?re=tg(re,h):C&&j>1&&re.reverse(),T&&m<j&&(re.length=m),this&&this!==Ce&&this instanceof F&&(Yt=J||tr(Yt)),Yt.apply(yt,re)}return F}function da(e,t){return function(n,i){return fd(n,e,t(i),{})}}function ri(e,t){return function(n,i){var u;if(n===r&&i===r)return t;if(n!==r&&(u=n),i!==r){if(u===r)return i;typeof n=="string"||typeof i=="string"?(n=nt(n),i=nt(i)):(n=Vu(n),i=Vu(i)),u=e(n,i)}return u}}function Do(e){return Pt(function(t){return t=pe(t,tt(P())),X(function(n){var i=this;return e(t,function(u){return et(u,i,n)})})})}function ii(e,t){t=t===r?" ":nt(t);var n=t.length;if(n<2)return n?Ao(t,e):t;var i=Ao(t,Gr(e/Rn(t)));return An(t)?Jt(wt(i),0,e).join(""):i.slice(0,e)}function Pd(e,t,n,i){var u=t&Q,c=tr(e);function l(){for(var h=-1,m=arguments.length,E=-1,T=i.length,I=v(T+m),L=this&&this!==Ce&&this instanceof l?c:e;++E<T;)I[E]=i[E];for(;m--;)I[E++]=arguments[++h];return et(L,u?n:this,I)}return l}function ga(e){return function(t,n,i){return i&&typeof i!="number"&&Ge(t,n,i)&&(n=i=r),t=Wt(t),n===r?(n=t,t=0):n=Wt(n),i=i===r?t<n?1:-1:Wt(i),Td(t,n,i,e)}}function oi(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=gt(t),n=gt(n)),e(t,n)}}function pa(e,t,n,i,u,c,l,h,m,E){var T=t&ne,I=T?l:r,L=T?r:l,S=T?c:r,C=T?r:c;t|=T?ue:Te,t&=~(T?Te:ue),t&me||(t&=-4);var J=[e,t,u,S,I,C,L,h,m,E],F=n.apply(r,J);return Wo(e)&&Ma(F,J),F.placeholder=i,Oa(F,e,t)}function So(e){var t=xe[e];return function(n,i){if(n=gt(n),i=i==null?0:Ye(Z(i),292),i&&Ou(n)){var u=(ae(n)+"e").split("e"),c=t(u[0]+"e"+(+u[1]+i));return u=(ae(c)+"e").split("e"),+(u[0]+"e"+(+u[1]-i))}return t(n)}}var Cd=On&&1/$r(new On([,-0]))[1]==D?function(e){return new On(e)}:es;function ma(e){return function(t){var n=ke(t);return n==_t?uo(t):n==vt?eh(t):ql(t,e(t))}}function Nt(e,t,n,i,u,c,l,h){var m=t&he;if(!m&&typeof e!="function")throw new ft(g);var E=i?i.length:0;if(E||(t&=-97,i=u=r),l=l===r?l:De(Z(l),0),h=h===r?h:Z(h),E-=u?u.length:0,t&Te){var T=i,I=u;i=u=r}var L=m?r:No(e),S=[e,t,n,i,u,T,I,c,l,h];if(L&&Vd(S,L),e=S[0],t=S[1],n=S[2],i=S[3],u=S[4],h=S[9]=S[9]===r?m?0:e.length:De(S[9]-E,0),!h&&t&(ne|Le)&&(t&=-25),!t||t==Q)var C=$d(e,t,n);else t==ne||t==Le?C=Nd(e,t,h):(t==ue||t==(Q|ue))&&!u.length?C=Pd(e,t,n,i):C=ni.apply(r,S);var J=L?Ju:Ma;return Oa(J(C,S),e,t)}function _a(e,t,n,i){return e===r||Tt(e,Mn[n])&&!fe.call(i,n)?t:e}function va(e,t,n,i,u,c){return we(e)&&we(t)&&(c.set(t,e),Vr(e,t,r,va,c),c.delete(t)),e}function Fd(e){return ir(e)?r:e}function wa(e,t,n,i,u,c){var l=n&k,h=e.length,m=t.length;if(h!=m&&!(l&&m>h))return!1;var E=c.get(e),T=c.get(t);if(E&&T)return E==t&&T==e;var I=-1,L=!0,S=n&O?new an:r;for(c.set(e,t),c.set(t,e);++I<h;){var C=e[I],J=t[I];if(i)var F=l?i(J,C,I,t,e,c):i(C,J,I,e,t,c);if(F!==r){if(F)continue;L=!1;break}if(S){if(!to(t,function(j,re){if(!Gn(S,re)&&(C===j||u(C,j,n,i,c)))return S.push(re)})){L=!1;break}}else if(!(C===J||u(C,J,n,i,c))){L=!1;break}}return c.delete(e),c.delete(t),L}function Wd(e,t,n,i,u,c,l){switch(n){case Tn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Bn:return!(e.byteLength!=t.byteLength||!c(new Yr(e),new Yr(t)));case mt:case Ve:case Wn:return Tt(+e,+t);case je:return e.name==t.name&&e.message==t.message;case Yn:case kn:return e==t+"";case _t:var h=uo;case vt:var m=i&k;if(h||(h=$r),e.size!=t.size&&!m)return!1;var E=l.get(e);if(E)return E==t;i|=O,l.set(e,t);var T=wa(h(e),h(t),i,u,c,l);return l.delete(e),T;case Or:if(Zn)return Zn.call(e)==Zn.call(t)}return!1}function Yd(e,t,n,i,u,c){var l=n&k,h=Uo(e),m=h.length,E=Uo(t),T=E.length;if(m!=T&&!l)return!1;for(var I=m;I--;){var L=h[I];if(!(l?L in t:fe.call(t,L)))return!1}var S=c.get(e),C=c.get(t);if(S&&C)return S==t&&C==e;var J=!0;c.set(e,t),c.set(t,e);for(var F=l;++I<m;){L=h[I];var j=e[L],re=t[L];if(i)var it=l?i(re,j,L,t,e,c):i(j,re,L,e,t,c);if(!(it===r?j===re||u(j,re,n,i,c):it)){J=!1;break}F||(F=L=="constructor")}if(J&&!F){var ze=e.constructor,ot=t.constructor;ze!=ot&&"constructor"in e&&"constructor"in t&&!(typeof ze=="function"&&ze instanceof ze&&typeof ot=="function"&&ot instanceof ot)&&(J=!1)}return c.delete(e),c.delete(t),J}function Pt(e){return ko(Ra(e,r,$a),e+"")}function Uo(e){return Wu(e,$e,Co)}function $o(e){return Wu(e,Ze,Ea)}var No=qr?function(e){return qr.get(e)}:es;function si(e){for(var t=e.name+"",n=bn[t],i=fe.call(bn,t)?n.length:0;i--;){var u=n[i],c=u.func;if(c==null||c==e)return u.name}return t}function Un(e){var t=fe.call(a,"placeholder")?a:e;return t.placeholder}function P(){var e=a.iteratee||Vo;return e=e===Vo?Hu:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n=e.__data__;return Qd(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Po(e){for(var t=$e(e),n=t.length;n--;){var i=t[n],u=e[i];t[n]=[i,u,Ia(u)]}return t}function ln(e,t){var n=Xl(e,t);return ku(n)?n:r}function kd(e){var t=fe.call(e,sn),n=e[sn];try{e[sn]=r;var i=!0}catch{}var u=Fr.call(e);return i&&(t?e[sn]=n:delete e[sn]),u}var Co=fo?function(e){return e==null?[]:(e=le(e),Bt(fo(e),function(t){return Lu.call(e,t)}))}:ts,Ea=fo?function(e){for(var t=[];e;)Gt(t,Co(e)),e=kr(e);return t}:ts,ke=Be;(co&&ke(new co(new ArrayBuffer(1)))!=Tn||qn&&ke(new qn)!=_t||lo&&ke(lo.resolve())!=Ps||On&&ke(new On)!=vt||Kn&&ke(new Kn)!=Hn)&&(ke=function(e){var t=Be(e),n=t==Dt?e.constructor:r,i=n?hn(n):"";if(i)switch(i){case Ih:return Tn;case Ah:return _t;case Rh:return Ps;case Lh:return vt;case Mh:return Hn}return t});function Hd(e,t,n){for(var i=-1,u=n.length;++i<u;){var c=n[i],l=c.size;switch(c.type){case"drop":e+=l;break;case"dropRight":t-=l;break;case"take":t=Ye(t,e+l);break;case"takeRight":e=De(e,t-l);break}}return{start:e,end:t}}function Bd(e){var t=e.match(Zc);return t?t[1].split(Jc):[]}function Ta(e,t,n){t=Zt(t,e);for(var i=-1,u=t.length,c=!1;++i<u;){var l=Ot(t[i]);if(!(c=e!=null&&n(e,l)))break;e=e[l]}return c||++i!=u?c:(u=e==null?0:e.length,!!u&&gi(u)&&Ct(l,u)&&(q(e)||dn(e)))}function Gd(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&fe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ya(e){return typeof e.constructor=="function"&&!nr(e)?xn(kr(e)):{}}function zd(e,t,n){var i=e.constructor;switch(t){case Bn:return xo(e);case mt:case Ve:return new i(+e);case Tn:return Od(e,n);case Ni:case Pi:case Ci:case Fi:case Wi:case Yi:case ki:case Hi:case Bi:return ia(e,n);case _t:return new i;case Wn:case kn:return new i(e);case Yn:return bd(e);case vt:return new i;case Or:return xd(e)}}function qd(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Qc,`{
|
|
14
|
+
`,t.classList.add(`ms-dialog`),t.addEventListener(`click`,e=>{e.target===t&&t.close()});let n=t.querySelector(`.ms-dialog-close-button`);return n&&n.addEventListener(`click`,e=>{e.preventDefault(),e.stopPropagation(),t.close()}),t},ue=[`accelerometer *`,`autoplay`,`camera`,`clipboard-write *`,`display-capture`,`encrypted-media *`,`fullscreen`,`gyroscope *`,`microphone`,`picture-in-picture *`,`screen-wake-lock`],de=e=>{let{url:t,searchParams:n={},permissionPolicies:r=[],rootDocument:i=document}=e;Object.entries(n).forEach(([e,n])=>{n!=null&&t.searchParams.set(e,String(n))});let a=i.createElement(`iframe`);return a.src=t.toString(),a.allow=ue.concat(r).join(`; `),a.width=`100%`,a.height=`100%`,a.style.border=`0`,a},fe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,ee=function(e){return e instanceof T||!(!e||!e[x])},S=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(ee(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},w=v;w.l=S,w.i=ee,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),p=function(e,t){var i=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=w.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=w.p(u),h=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=w.p(f),_=C(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return w.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:w.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),E=T.prototype;return C.prototype=E,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||=(e(t,T,C),!0),C},C.locale=S,C.isDayjs=ee,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}))})),pe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),me=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),he=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var a,o=function(e,n,r){r===void 0&&(r={});var i=new Date(e);return function(e,n){n===void 0&&(n={});var r=n.timeZoneName||`short`,i=e+`|`+r,a=t[i];return a||(a=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:r}),t[i]=a),a}(n,r).formatToParts(i)},s=function(t,n){for(var r=o(t,n),a=[],s=0;s<r.length;s+=1){var c=r[s],l=c.type,u=c.value,d=e[l];d>=0&&(a[d]=parseInt(u,10))}var f=a[3],p=f===24?0:f,m=a[0]+`-`+a[1]+`-`+a[2]+` `+p+`:`+a[4]+`:`+a[5]+`:000`,h=+t;return(i.utc(m).valueOf()-(h-=h%1e3))/6e4},c=r.prototype;c.tz=function(e,t){e===void 0&&(e=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString(`en-US`,{timeZone:e}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(!Number(l))n=this.utcOffset(0,t);else if(n=i(s,{locale:this.$L}).$set(`millisecond`,this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,`minute`)}return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return e.type.toLowerCase()===`timezonename`}));return n&&n.value};var l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=i(this.format(`YYYY-MM-DD HH:mm:ss:SSS`),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,o=n||t||a,c=s(+i(),o);if(typeof e!=`string`)return i(e).tz(o);var l=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var a=s(r-=60*(i-t)*1e3,n);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,r).valueOf(),c,o),u=l[0],d=l[1],f=i(u).utcOffset(d);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}))})),ge=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=r===0,s;if(r!==0){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),_e=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_de=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`ein paar Sekunden`,m:[`eine Minute`,`einer Minute`],mm:`%d Minuten`,h:[`eine Stunde`,`einer Stunde`],hh:`%d Stunden`,d:[`ein Tag`,`einem Tag`],dd:[`%d Tage`,`%d Tagen`],M:[`ein Monat`,`einem Monat`],MM:[`%d Monate`,`%d Monaten`],y:[`ein Jahr`,`einem Jahr`],yy:[`%d Jahre`,`%d Jahren`]};function i(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[+!t]),i.replace(`%d`,e)}var a={name:`de`,weekdays:`Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag`.split(`_`),weekdaysShort:`So._Mo._Di._Mi._Do._Fr._Sa.`.split(`_`),weekdaysMin:`So_Mo_Di_Mi_Do_Fr_Sa`.split(`_`),months:`Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember`.split(`_`),monthsShort:`Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,formats:{LTS:`HH:mm:ss`,LT:`HH:mm`,L:`DD.MM.YYYY`,LL:`D. MMMM YYYY`,LLL:`D. MMMM YYYY HH:mm`,LLLL:`dddd, D. MMMM YYYY HH:mm`},relativeTime:{future:`in %s`,past:`vor %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}))})),ve=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`fr`,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},ordinal:function(e){return``+e+(e===1?`er`:``)}};return n.default.locale(r,null,!0),r}))})),ye=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),be=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_es=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`es`,monthsShort:`ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic`.split(`_`),weekdays:`domingo_lunes_martes_miércoles_jueves_viernes_sábado`.split(`_`),weekdaysShort:`dom._lun._mar._mié._jue._vie._sáb.`.split(`_`),weekdaysMin:`do_lu_ma_mi_ju_vi_sá`.split(`_`),months:`enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY H:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY H:mm`},relativeTime:{future:`en %s`,past:`hace %s`,s:`unos segundos`,m:`un minuto`,mm:`%d minutos`,h:`una hora`,hh:`%d horas`,d:`un día`,dd:`%d días`,M:`un mes`,MM:`%d meses`,y:`un año`,yy:`%d años`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),xe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un' ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),Se=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pt=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`pt`,weekdays:`domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado`.split(`_`),weekdaysShort:`dom_seg_ter_qua_qui_sex_sab`.split(`_`),weekdaysMin:`Do_2ª_3ª_4ª_5ª_6ª_Sa`.split(`_`),months:`janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro`.split(`_`),monthsShort:`jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez`.split(`_`),ordinal:function(e){return e+`º`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY [às] HH:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY [às] HH:mm`},relativeTime:{future:`em %s`,past:`há %s`,s:`alguns segundos`,m:`um minuto`,mm:`%d minutos`,h:`uma hora`,hh:`%d horas`,d:`um dia`,dd:`%d dias`,M:`um mês`,MM:`%d meses`,y:`um ano`,yy:`%d anos`}};return n.default.locale(r,null,!0),r}))})),Ce=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_nl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`nl`,weekdays:`zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag`.split(`_`),weekdaysShort:`zo._ma._di._wo._do._vr._za.`.split(`_`),weekdaysMin:`zo_ma_di_wo_do_vr_za`.split(`_`),months:`januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december`.split(`_`),monthsShort:`jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec`.split(`_`),ordinal:function(e){return`[`+e+(e===1||e===8||e>=20?`ste`:`de`)+`]`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD-MM-YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`over %s`,past:`%s geleden`,s:`een paar seconden`,m:`een minuut`,mm:`%d minuten`,h:`een uur`,hh:`%d uur`,d:`een dag`,dd:`%d dagen`,M:`een maand`,MM:`%d maanden`,y:`een jaar`,yy:`%d jaar`}};return n.default.locale(r,null,!0),r}))})),we=u(fe()),Te=u(pe()),Ee=u(me()),De=u(he()),Oe=u(ge());_e(),ve(),ye(),be(),xe(),Se(),Ce(),we.default.extend(Oe.default),we.default.extend(De.default),we.default.extend(Ee.default),we.default.extend(Te.default),s(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,ee=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,te=`[object DOMException]`,ne=`[object Error]`,D=`[object Function]`,re=`[object GeneratorFunction]`,ie=`[object Map]`,ae=`[object Number]`,oe=`[object Null]`,se=`[object Object]`,ce=`[object Promise]`,le=`[object Proxy]`,ue=`[object RegExp]`,de=`[object Set]`,fe=`[object String]`,pe=`[object Symbol]`,me=`[object Undefined]`,he=`[object WeakMap]`,ge=`[object WeakSet]`,_e=`[object ArrayBuffer]`,ve=`[object DataView]`,ye=`[object Float32Array]`,be=`[object Float64Array]`,xe=`[object Int8Array]`,Se=`[object Int16Array]`,Ce=`[object Int32Array]`,we=`[object Uint8Array]`,Te=`[object Uint8ClampedArray]`,Ee=`[object Uint16Array]`,De=`[object Uint32Array]`,Oe=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,Ae=/(__e\(.*?\)|\b__t\)) \+\n'';/g,je=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ne=RegExp(je.source),Pe=RegExp(Me.source),Fe=/<%-([\s\S]+?)%>/g,Ie=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,Re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ve=/[\\^$.*+?()[\]{}|]/g,He=RegExp(Ve.source),Ue=/^\s+/,O=/\s/,We=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ge=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Je=/[()=,{}\[\]\/\s]/,Ye=/\\(\\)?/g,Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ze=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,k=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,et=/^0o[0-7]+$/i,tt=/^(?:0|[1-9]\d*)$/,nt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rt=/($^)/,it=/['\n\r\u2028\u2029\\]/g,at=`\\ud800-\\udfff`,ot=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,st=`\\u2700-\\u27bf`,A=`a-z\\xdf-\\xf6\\xf8-\\xff`,ct=`\\xac\\xb1\\xd7\\xf7`,lt=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,ut=`\\u2000-\\u206f`,j=` \\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`,M=`A-Z\\xc0-\\xd6\\xd8-\\xde`,dt=`\\ufe0e\\ufe0f`,ft=ct+lt+ut+j,pt=`['’]`,N=`[`+at+`]`,mt=`[`+ft+`]`,ht=`[`+ot+`]`,gt=`\\d+`,_t=`[`+st+`]`,vt=`[`+A+`]`,yt=`[^`+at+ft+gt+st+A+M+`]`,bt=`\\ud83c[\\udffb-\\udfff]`,xt=`(?:`+ht+`|`+bt+`)`,St=`[^`+at+`]`,Ct=`(?:\\ud83c[\\udde6-\\uddff]){2}`,wt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Tt=`[`+M+`]`,Et=`\\u200d`,Dt=`(?:`+vt+`|`+yt+`)`,Ot=`(?:`+Tt+`|`+yt+`)`,kt=`(?:`+pt+`(?:d|ll|m|re|s|t|ve))?`,At=`(?:`+pt+`(?:D|LL|M|RE|S|T|VE))?`,jt=xt+`?`,Mt=`[`+dt+`]?`,Nt=`(?:`+Et+`(?:`+[St,Ct,wt].join(`|`)+`)`+Mt+jt+`)*`,Pt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Ft=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,It=Mt+jt+Nt,Lt=`(?:`+[_t,Ct,wt].join(`|`)+`)`+It,Rt=`(?:`+[St+ht+`?`,ht,Ct,wt,N].join(`|`)+`)`,zt=RegExp(pt,`g`),Bt=RegExp(ht,`g`),Vt=RegExp(bt+`(?=`+bt+`)|`+Rt+It,`g`),Ht=RegExp([Tt+`?`+vt+`+`+kt+`(?=`+[mt,Tt,`$`].join(`|`)+`)`,Ot+`+`+At+`(?=`+[mt,Tt+Dt,`$`].join(`|`)+`)`,Tt+`?`+Dt+`+`+kt,Tt+`+`+At,Ft,Pt,gt,Lt].join(`|`),`g`),Ut=RegExp(`[`+Et+at+ot+dt+`]`),P=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Gt=-1,F={};F[ye]=F[be]=F[xe]=F[Se]=F[Ce]=F[we]=F[Te]=F[Ee]=F[De]=!0,F[S]=F[C]=F[_e]=F[T]=F[ve]=F[E]=F[ne]=F[D]=F[ie]=F[ae]=F[se]=F[ue]=F[de]=F[fe]=F[he]=!1;var I={};I[S]=I[C]=I[_e]=I[ve]=I[T]=I[E]=I[ye]=I[be]=I[xe]=I[Se]=I[Ce]=I[ie]=I[ae]=I[se]=I[ue]=I[de]=I[fe]=I[pe]=I[we]=I[Te]=I[Ee]=I[De]=!0,I[ne]=I[D]=I[he]=!1;var L={À:`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`},Kt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},qt={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},Jt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Yt=parseFloat,Xt=parseInt,Zt=typeof global==`object`&&global&&global.Object===Object&&global,Qt=typeof self==`object`&&self&&self.Object===Object&&self,R=Zt||Qt||Function(`return this`)(),$t=typeof e==`object`&&e&&!e.nodeType&&e,en=$t&&typeof t==`object`&&t&&!t.nodeType&&t,tn=en&&en.exports===$t,nn=tn&&Zt.process,z=function(){try{return en&&en.require&&en.require(`util`).types||nn&&nn.binding&&nn.binding(`util`)}catch{}}(),rn=z&&z.isArrayBuffer,an=z&&z.isDate,on=z&&z.isMap,sn=z&&z.isRegExp,cn=z&&z.isSet,ln=z&&z.isTypedArray;function un(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function dn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function pn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function mn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function hn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function gn(e,t){return!!(e!=null&&e.length)&&Dn(e,t,0)>-1}function _n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function B(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function vn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function yn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function bn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function xn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Sn=jn(`length`);function Cn(e){return e.split(``)}function wn(e){return e.match(qe)||[]}function Tn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function En(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Dn(e,t,n){return t===t?rr(e,t,n):En(e,kn,n)}function On(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function kn(e){return e!==e}function An(e,t){var n=e==null?0:e.length;return n?Fn(e,t)/n:v}function jn(e){return function(t){return t==null?n:t[e]}}function Mn(e){return function(t){return e==null?n:e[t]}}function Nn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Pn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Fn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function In(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ln(e,t){return B(t,function(t){return[t,e[t]]})}function Rn(e){return e&&e.slice(0,sr(e)+1).replace(Ue,``)}function zn(e){return function(t){return e(t)}}function Bn(e,t){return B(t,function(t){return e[t]})}function Vn(e,t){return e.has(t)}function Hn(e,t){for(var n=-1,r=e.length;++n<r&&Dn(t,e[n],0)>-1;);return n}function Un(e,t){for(var n=e.length;n--&&Dn(t,e[n],0)>-1;);return n}function Wn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gn=Mn(L),Kn=Mn(Kt);function qn(e){return`\\`+Jt[e]}function Jn(e,t){return e==null?n:e[t]}function Yn(e){return Ut.test(e)}function Xn(e){return P.test(e)}function Zn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function $n(e,t){return function(n){return e(t(n))}}function er(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function nr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function rr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function ir(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function ar(e){return Yn(e)?lr(e):Sn(e)}function or(e){return Yn(e)?ur(e):Cn(e)}function sr(e){for(var t=e.length;t--&&O.test(e.charAt(t)););return t}var cr=Mn(qt);function lr(e){for(var t=Vt.lastIndex=0;Vt.test(e);)++t;return t}function ur(e){return e.match(Vt)||[]}function dr(e){return e.match(Ht)||[]}var fr=(function e(t){t=t==null?R:fr.defaults(R.Object(),t,fr.pick(R,Wt));var O=t.Array,qe=t.Date,at=t.Error,ot=t.Function,st=t.Math,A=t.Object,ct=t.RegExp,lt=t.String,ut=t.TypeError,j=O.prototype,M=ot.prototype,dt=A.prototype,ft=t[`__core-js_shared__`],pt=M.toString,N=dt.hasOwnProperty,mt=0,ht=function(){var e=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),gt=dt.toString,_t=pt.call(A),vt=R._,yt=ct(`^`+pt.call(N).replace(Ve,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),bt=tn?t.Buffer:n,xt=t.Symbol,St=t.Uint8Array,Ct=bt?bt.allocUnsafe:n,wt=$n(A.getPrototypeOf,A),Tt=A.create,Et=dt.propertyIsEnumerable,Dt=j.splice,Ot=xt?xt.isConcatSpreadable:n,kt=xt?xt.iterator:n,At=xt?xt.toStringTag:n,jt=function(){try{var e=Lo(A,`defineProperty`);return e({},``,{}),e}catch{}}(),Mt=t.clearTimeout!==R.clearTimeout&&t.clearTimeout,Nt=qe&&qe.now!==R.Date.now&&qe.now,Pt=t.setTimeout!==R.setTimeout&&t.setTimeout,Ft=st.ceil,It=st.floor,Lt=A.getOwnPropertySymbols,Rt=bt?bt.isBuffer:n,Vt=t.isFinite,Ht=j.join,Ut=$n(A.keys,A),P=st.max,L=st.min,Kt=qe.now,qt=t.parseInt,Jt=st.random,Zt=j.reverse,Qt=Lo(t,`DataView`),$t=Lo(t,`Map`),en=Lo(t,`Promise`),nn=Lo(t,`Set`),z=Lo(t,`WeakMap`),Sn=Lo(A,`create`),Cn=z&&new z,Mn={},rr=xs(Qt),lr=xs($t),ur=xs(en),pr=xs(nn),mr=xs(z),hr=xt?xt.prototype:n,gr=hr?hr.valueOf:n,_r=hr?hr.toString:n;function V(e){if(X(e)&&!q(e)&&!(e instanceof H)){if(e instanceof br)return e;if(N.call(e,`__wrapped__`))return Cs(e)}return new br(e)}var vr=function(){function e(){}return function(t){if(!Y(t))return{};if(Tt)return Tt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function yr(){}function br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}V.templateSettings={escape:Fe,evaluate:Ie,interpolate:Le,variable:``,imports:{_:V}},V.prototype=yr.prototype,V.prototype.constructor=V,br.prototype=vr(yr.prototype),br.prototype.constructor=br;function H(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function xr(){var e=new H(this.__wrapped__);return e.__actions__=Ja(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ja(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ja(this.__views__),e}function Sr(){if(this.__filtered__){var e=new H(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Cr(){var e=this.__wrapped__.value(),t=this.__dir__,n=q(e),r=t<0,i=n?e.length:0,a=Vo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=L(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return ka(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}H.prototype=vr(yr.prototype),H.prototype.constructor=H;function wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Tr(){this.__data__=Sn?Sn(null):{},this.size=0}function Er(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Dr(e){var t=this.__data__;if(Sn){var r=t[e];return r===i?n:r}return N.call(t,e)?t[e]:n}function Or(e){var t=this.__data__;return Sn?t[e]!==n:N.call(t,e)}function kr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Sn&&t===n?i:t,this}wr.prototype.clear=Tr,wr.prototype.delete=Er,wr.prototype.get=Dr,wr.prototype.has=Or,wr.prototype.set=kr;function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jr(){this.__data__=[],this.size=0}function Mr(e){var t=this.__data__,n=ri(t,e);return n<0?!1:(n==t.length-1?t.pop():Dt.call(t,n,1),--this.size,!0)}function Nr(e){var t=this.__data__,r=ri(t,e);return r<0?n:t[r][1]}function Pr(e){return ri(this.__data__,e)>-1}function Fr(e,t){var n=this.__data__,r=ri(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Ar.prototype.clear=jr,Ar.prototype.delete=Mr,Ar.prototype.get=Nr,Ar.prototype.has=Pr,Ar.prototype.set=Fr;function Ir(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Lr(){this.size=0,this.__data__={hash:new wr,map:new($t||Ar),string:new wr}}function Rr(e){var t=Fo(this,e).delete(e);return this.size-=+!!t,t}function zr(e){return Fo(this,e).get(e)}function Br(e){return Fo(this,e).has(e)}function Vr(e,t){var n=Fo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Ir.prototype.clear=Lr,Ir.prototype.delete=Rr,Ir.prototype.get=zr,Ir.prototype.has=Br,Ir.prototype.set=Vr;function Hr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ir;++t<n;)this.add(e[t])}function Ur(e){return this.__data__.set(e,i),this}function Wr(e){return this.__data__.has(e)}Hr.prototype.add=Hr.prototype.push=Ur,Hr.prototype.has=Wr;function Gr(e){var t=this.__data__=new Ar(e);this.size=t.size}function Kr(){this.__data__=new Ar,this.size=0}function qr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Jr(e){return this.__data__.get(e)}function Yr(e){return this.__data__.has(e)}function Xr(e,t){var n=this.__data__;if(n instanceof Ar){var r=n.__data__;if(!$t||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ir(r)}return n.set(e,t),this.size=n.size,this}Gr.prototype.clear=Kr,Gr.prototype.delete=qr,Gr.prototype.get=Jr,Gr.prototype.has=Yr,Gr.prototype.set=Xr;function Zr(e,t){var n=q(e),r=!n&&Xl(e),i=!n&&!r&&eu(e),a=!n&&!r&&!i&&Tu(e),o=n||r||i||a,s=o?In(e.length,lt):[],c=s.length;for(var l in e)(t||N.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Yo(l,c)))&&s.push(l);return s}function Qr(e){var t=e.length;return t?e[la(0,t-1)]:n}function $r(e,t){return vs(Ja(e),li(t,0,e.length))}function ei(e){return vs(Ja(e))}function ti(e,t,r){(r!==n&&!ql(e[t],r)||r===n&&!(t in e))&&si(e,t,r)}function ni(e,t,r){var i=e[t];(!(N.call(e,t)&&ql(i,r))||r===n&&!(t in e))&&si(e,t,r)}function ri(e,t){for(var n=e.length;n--;)if(ql(e[n][0],t))return n;return-1}function ii(e,t,n,r){return hi(e,function(e,i,a){t(r,e,n(e),a)}),r}function ai(e,t){return e&&Ya(t,$(t),e)}function oi(e,t){return e&&Ya(t,ad(t),e)}function si(e,t,n){t==`__proto__`&&jt?jt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ci(e,t){for(var r=-1,i=t.length,a=O(i),o=e==null;++r<i;)a[r]=o?n:$u(e,t[r]);return a}function li(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ui(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Y(e))return e;var d=q(e);if(d){if(s=Wo(e),!c)return Ja(e,s)}else{var f=K(e),p=f==D||f==re;if(eu(e))return Ra(e,c);if(f==se||f==S||p&&!a){if(s=l||p?{}:Go(e),!c)return l?Za(e,oi(s,e)):Xa(e,ai(s,e))}else{if(!I[f])return a?e:{};s=Ko(e,f,c)}}o||=new Gr;var m=o.get(e);if(m)return m;o.set(e,s),Su(e)?e.forEach(function(n){s.add(ui(n,t,r,n,e,o))}):du(e)&&e.forEach(function(n,i){s.set(i,ui(n,t,r,i,e,o))});var h=d?n:(u?l?jo:Ao:l?ad:$)(e);return fn(h||e,function(n,i){h&&(i=n,n=e[i]),ni(s,i,ui(n,t,r,i,e,o))}),s}function di(e){var t=$(e);return function(n){return fi(n,e,t)}}function fi(e,t,r){var i=r.length;if(e==null)return!i;for(e=A(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function pi(e,t,i){if(typeof e!=`function`)throw new ut(r);return ms(function(){e.apply(n,i)},t)}function mi(e,t,n,r){var i=-1,a=gn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=B(t,zn(n))),r?(a=_n,o=!1):t.length>=200&&(a=Vn,o=!1,t=new Hr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var hi=eo(Ci),gi=eo(wi,!0);function _i(e,t){var n=!0;return hi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function vi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!wu(s):r(s,c)))var c=s,l=o}return l}function yi(e,t,r,i){var a=e.length;for(r=Z(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Z(i),i<0&&(i+=a),i=r>i?0:Nu(i);r<i;)e[r++]=t;return e}function bi(e,t){var n=[];return hi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function U(e,t,n,r,i){var a=-1,o=e.length;for(n||=Jo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?U(s,t-1,n,r,i):vn(i,s):r||(i[i.length]=s)}return i}var xi=to(),Si=to(!0);function Ci(e,t){return e&&xi(e,t,$)}function wi(e,t){return e&&Si(e,t,$)}function Ti(e,t){return hn(t,function(t){return cu(e[t])})}function Ei(e,t){t=Pa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function Di(e,t,n){var r=t(e);return q(e)?r:vn(r,n(e))}function Oi(e){return e==null?e===n?me:oe:At&&At in A(e)?Ro(e):cs(e)}function ki(e,t){return e>t}function Ai(e,t){return e!=null&&N.call(e,t)}function ji(e,t){return e!=null&&t in A(e)}function Mi(e,t,n){return e>=L(t,n)&&e<P(t,n)}function Ni(e,t,r){for(var i=r?_n:gn,a=e[0].length,o=e.length,s=o,c=O(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=B(d,zn(t))),l=L(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Hr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Vn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Vn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Pi(e,t,n,r){return Ci(e,function(e,i,a){t(r,n(e),i,a)}),r}function Fi(e,t,r){t=Pa(t,e),e=us(e,t);var i=e==null?e:e[bs(Js(t))];return i==null?n:un(i,e,r)}function Ii(e){return X(e)&&Oi(e)==S}function Li(e){return X(e)&&Oi(e)==_e}function Ri(e){return X(e)&&Oi(e)==E}function zi(e,t,n,r,i){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:Bi(e,t,n,r,zi,i)}function Bi(e,t,n,r,i,a){var o=q(e),s=q(t),c=o?C:K(e),l=s?C:K(t);c=c==S?se:c,l=l==S?se:l;var u=c==se,d=l==se,f=c==l;if(f&&eu(e)){if(!eu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Gr,o||Tu(e)?Eo(e,t,n,r,i,a):Do(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&N.call(e,`__wrapped__`),m=d&&N.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Gr,i(h,g,n,r,a)}}return f?(a||=new Gr,Oo(e,t,n,r,i,a)):!1}function Vi(e){return X(e)&&K(e)==ie}function Hi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=A(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Gr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?zi(d,u,3,i,f):p))return!1}}return!0}function Ui(e){return!Y(e)||es(e)?!1:(cu(e)?yt:$e).test(xs(e))}function Wi(e){return X(e)&&Oi(e)==ue}function Gi(e){return X(e)&&K(e)==de}function Ki(e){return X(e)&&uu(e.length)&&!!F[Oi(e)]}function qi(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?q(e)?$i(e[0],e[1]):Qi(e):Ef(e)}function Ji(e){if(!ns(e))return Ut(e);var t=[];for(var n in A(e))N.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Yi(e){if(!Y(e))return ss(e);var t=ns(e),n=[];for(var r in e)r==`constructor`&&(t||!N.call(e,r))||n.push(r);return n}function Xi(e,t){return e<t}function Zi(e,t){var n=-1,r=Ql(e)?O(e.length):[];return hi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Qi(e){var t=Io(e);return t.length==1&&t[0][2]?is(t[0][0],t[0][1]):function(n){return n===e||Hi(n,e,t)}}function $i(e,t){return Zo(e)&&rs(t)?is(bs(e),t):function(r){var i=$u(r,e);return i===n&&i===t?td(r,e):zi(t,i,3)}}function ea(e,t,r,i,a){e!==t&&xi(t,function(o,s){if(a||=new Gr,Y(o))ta(e,t,s,r,ea,i,a);else{var c=i?i(fs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),ti(e,s,c)}},ad)}function ta(e,t,r,i,a,o,s){var c=fs(e,r),l=fs(t,r),u=s.get(l);if(u){ti(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=q(l),m=!p&&eu(l),h=!p&&!m&&Tu(l);d=l,p||m||h?q(c)?d=c:J(c)?d=Ja(c):m?(f=!1,d=Ra(l,!0)):h?(f=!1,d=Ua(l,!0)):d=[]:yu(l)||Xl(l)?(d=c,Xl(c)?d=Fu(c):(!Y(c)||cu(c))&&(d=Go(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),ti(e,r,d)}function na(e,t){var r=e.length;if(r)return t+=t<0?r:0,Yo(t,r)?e[t]:n}function ra(e,t,n){t=t.length?B(t,function(e){return q(e)?function(t){return Ei(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=B(t,zn(G())),Pn(Zi(e,function(e,n,i){return{criteria:B(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Ga(e,t,n)})}function ia(e,t){return aa(e,t,function(t,n){return td(e,n)})}function aa(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ei(e,o);n(s,o)&&ma(a,Pa(o,e),s)}return a}function oa(e){return function(t){return Ei(t,e)}}function sa(e,t,n,r){var i=r?On:Dn,a=-1,o=t.length,s=e;for(e===t&&(t=Ja(t)),n&&(s=B(e,zn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Dt.call(s,c,1),Dt.call(e,c,1);return e}function ca(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Yo(i)?Dt.call(e,i,1):Ea(e,i)}}return e}function la(e,t){return e+It(Jt()*(t-e+1))}function ua(e,t,n,r){for(var i=-1,a=P(Ft((t-e)/(n||1)),0),o=O(a);a--;)o[r?a:++i]=e,e+=n;return o}function da(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=It(t/2),t&&(e+=e);while(t);return n}function W(e,t){return hs(ls(e,t,pf),e+``)}function fa(e){return Qr(Cd(e))}function pa(e,t){var n=Cd(e);return vs(n,li(t,0,n.length))}function ma(e,t,r,i){if(!Y(e))return e;t=Pa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=bs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=Y(d)?d:Yo(t[a+1])?[]:{})}ni(c,l,u),c=c[l]}return e}var ha=Cn?function(e,t){return Cn.set(e,t),e}:pf,ga=jt?function(e,t){return jt(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function _a(e){return vs(Cd(e))}function va(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=O(i);++r<i;)a[r]=e[r+t];return a}function ya(e,t){var n;return hi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ba(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!wu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return xa(e,t,pf,n)}function xa(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=wu(t),u=t===n;a<o;){var d=It((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=wu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return L(o,b)}function Sa(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!ql(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Ca(e){return typeof e==`number`?e:wu(e)?v:+e}function wa(e){if(typeof e==`string`)return e;if(q(e))return B(e,wa)+``;if(wu(e))return _r?_r.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Ta(e,t,n){var r=-1,i=gn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=_n;else if(a>=200){var l=t?null:bo(e);if(l)return tr(l);o=!1,i=Vn,c=new Hr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Ea(e,t){return t=Pa(t,e),e=us(e,t),e==null||delete e[bs(Js(t))]}function Da(e,t,n,r){return ma(e,t,n(Ei(e,t)),r)}function Oa(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?va(e,r?0:a,r?a+1:i):va(e,r?a+1:0,r?i:a)}function ka(e,t){var n=e;return n instanceof H&&(n=n.value()),yn(t,function(e,t){return t.func.apply(t.thisArg,vn([e],t.args))},n)}function Aa(e,t,n){var r=e.length;if(r<2)return r?Ta(e[0]):[];for(var i=-1,a=O(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=mi(a[i]||o,e[s],t,n));return Ta(U(a,1),t,n)}function ja(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ma(e){return J(e)?e:[]}function Na(e){return typeof e==`function`?e:pf}function Pa(e,t){return q(e)?e:Zo(e,t)?[e]:ys(Q(e))}var Fa=W;function Ia(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:va(e,t,r)}var La=Mt||function(e){return R.clearTimeout(e)};function Ra(e,t){if(t)return e.slice();var n=e.length,r=Ct?Ct(n):new e.constructor(n);return e.copy(r),r}function za(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Ba(e,t){var n=t?za(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Va(e){var t=new e.constructor(e.source,Ze.exec(e));return t.lastIndex=e.lastIndex,t}function Ha(e){return gr?A(gr.call(e)):{}}function Ua(e,t){var n=t?za(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Wa(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=wu(e),s=t!==n,c=t===null,l=t===t,u=wu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Ga(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Wa(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ka(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=P(a-o,0),u=O(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function qa(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=P(a-s,0),d=O(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function Ja(e,t){var n=-1,r=e.length;for(t||=O(r);++n<r;)t[n]=e[n];return t}function Ya(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?si(r,c,l):ni(r,c,l)}return r}function Xa(e,t){return Ya(e,zo(e),t)}function Za(e,t){return Ya(e,Bo(e),t)}function Qa(e,t){return function(n,r){var i=q(n)?dn:ii,a=t?t():{};return i(n,e,G(r,2),a)}}function $a(e){return W(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Xo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=A(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function eo(e,t){return function(n,r){if(n==null)return n;if(!Ql(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=A(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function to(e){return function(t,n,r){for(var i=-1,a=A(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function no(e,t,n){var r=t&o,i=ao(e);function a(){return(this&&this!==R&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function ro(e){return function(t){t=Q(t);var r=Yn(t)?or(t):n,i=r?r[0]:t.charAt(0),a=r?Ia(r,1).join(``):t.slice(1);return i[e]()+a}}function io(e){return function(t){return yn(rf(Ad(t).replace(zt,``)),e,``)}}function ao(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=vr(e.prototype),r=e.apply(n,t);return Y(r)?r:n}}function oo(e,t,r){var i=ao(e);function a(){for(var o=arguments.length,s=O(o),c=o,l=Po(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:er(s,l);return o-=u.length,o<r?vo(e,t,lo,a.placeholder,n,s,u,n,n,r-o):un(this&&this!==R&&this instanceof a?i:e,this,s)}return a}function so(e){return function(t,r,i){var a=A(t);if(!Ql(t)){var o=G(r,3);t=$(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function co(e){return ko(function(t){var i=t.length,a=i,o=br.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new ut(r);if(o&&!l&&No(s)==`wrapper`)var l=new br([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=No(s),m=d==`wrapper`?Mo(s):n;l=m&&$o(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[No(m[0])].apply(l,m[3]):s.length==1&&$o(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&q(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function lo(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,ee=y?n:ao(e);function S(){for(var n=arguments.length,o=O(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Po(S),l=Wn(o,c);if(i&&(o=Ka(o,i,a,b)),u&&(o=qa(o,u,d,b)),n-=l,b&&n<g){var f=er(o,c);return vo(e,t,lo,S.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,C=y?m[e]:e;return n=o.length,p?o=ds(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==R&&this instanceof S&&(C=ee||ao(C)),C.apply(m,o)}return S}function uo(e,t){return function(n,r){return Pi(n,e,t(r),{})}}function fo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=wa(r),i=wa(i)):(r=Ca(r),i=Ca(i)),a=e(r,i)}return a}}function po(e){return ko(function(t){return t=B(t,zn(G())),W(function(n){var r=this;return e(t,function(e){return un(e,r,n)})})})}function mo(e,t){t=t===n?` `:wa(t);var r=t.length;if(r<2)return r?da(t,e):t;var i=da(t,Ft(e/ar(t)));return Yn(t)?Ia(or(i),0,e).join(``):i.slice(0,e)}function ho(e,t,n,r){var i=t&o,a=ao(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=O(l+o),d=this&&this!==R&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return un(d,i?n:this,u)}return s}function go(e){return function(t,r,i){return i&&typeof i!=`number`&&Xo(t,r,i)&&(r=i=n),t=Mu(t),r===n?(r=t,t=0):r=Mu(r),i=i===n?t<r?1:-1:Mu(i),ua(t,r,i,e)}}function _o(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Pu(t),n=Pu(n)),e(t,n)}}function vo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],ee=r.apply(n,x);return $o(e)&&ps(ee,x),ee.placeholder=i,gs(ee,e,t)}function yo(e){var t=st[e];return function(e,n){if(e=Pu(e),n=n==null?0:L(Z(n),292),n&&Vt(e)){var r=(Q(e)+`e`).split(`e`);return r=(Q(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var bo=nn&&1/tr(new nn([,-0]))[1]==h?function(e){return new nn(e)}:xf;function xo(e){return function(t){var n=K(t);return n==ie?Qn(t):n==de?nr(t):Ln(t,e(t))}}function So(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new ut(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:P(Z(m),0),h=h===n?h:Z(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Mo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&os(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:P(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var ee=no(e,t,i);else ee=t==c||t==l?oo(e,t,h):(t==u||t==(o|u))&&!f.length?ho(e,t,i,a):lo.apply(n,x);return gs((b?ha:ps)(ee,x),e,t)}function Co(e,t,r,i){return e===n||ql(e,dt[r])&&!N.call(i,r)?t:e}function wo(e,t,r,i,a,o){return Y(e)&&Y(t)&&(o.set(t,e),ea(e,t,n,wo,o),o.delete(t)),e}function To(e){return yu(e)?n:e}function Eo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Hr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!xn(t,function(e,t){if(!Vn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Do(e,t,n,r,i,a,o){switch(n){case ve:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _e:return!(e.byteLength!=t.byteLength||!a(new St(e),new St(t)));case T:case E:case ae:return ql(+e,+t);case ne:return e.name==t.name&&e.message==t.message;case ue:case fe:return e==t+``;case ie:var s=Qn;case de:var c=r&1;if(s||=tr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=Eo(s(e),s(t),r,i,a,o);return o.delete(e),u;case pe:if(gr)return gr.call(e)==gr.call(t)}return!1}function Oo(e,t,r,i,a,o){var s=r&1,c=Ao(e),l=c.length;if(l!=Ao(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:N.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function ko(e){return hs(ls(e,n,Ls),e+``)}function Ao(e){return Di(e,$,zo)}function jo(e){return Di(e,ad,Bo)}var Mo=Cn?function(e){return Cn.get(e)}:xf;function No(e){for(var t=e.name+``,n=Mn[t],r=N.call(Mn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Po(e){return(N.call(V,`placeholder`)?V:e).placeholder}function G(){var e=V.iteratee||mf;return e=e===mf?qi:e,arguments.length?e(arguments[0],arguments[1]):e}function Fo(e,t){var n=e.__data__;return Qo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Io(e){for(var t=$(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,rs(i)]}return t}function Lo(e,t){var r=Jn(e,t);return Ui(r)?r:n}function Ro(e){var t=N.call(e,At),r=e[At];try{e[At]=n;var i=!0}catch{}var a=gt.call(e);return i&&(t?e[At]=r:delete e[At]),a}var zo=Lt?function(e){return e==null?[]:(e=A(e),hn(Lt(e),function(t){return Et.call(e,t)}))}:Af,Bo=Lt?function(e){for(var t=[];e;)vn(t,zo(e)),e=wt(e);return t}:Af,K=Oi;(Qt&&K(new Qt(new ArrayBuffer(1)))!=ve||$t&&K(new $t)!=ie||en&&K(en.resolve())!=ce||nn&&K(new nn)!=de||z&&K(new z)!=he)&&(K=function(e){var t=Oi(e),r=t==se?e.constructor:n,i=r?xs(r):``;if(i)switch(i){case rr:return ve;case lr:return ie;case ur:return ce;case pr:return de;case mr:return he}return t});function Vo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=L(t,e+o);break;case`takeRight`:e=P(e,t-o)}}return{start:e,end:t}}function Ho(e){var t=e.match(Ge);return t?t[1].split(Ke):[]}function Uo(e,t,n){t=Pa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=bs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&uu(i)&&Yo(o,i)&&(q(e)||Xl(e)))}function Wo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&N.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Go(e){return typeof e.constructor==`function`&&!ns(e)?vr(wt(e)):{}}function Ko(e,t,n){var r=e.constructor;switch(t){case _e:return za(e);case T:case E:return new r(+e);case ve:return Ba(e,n);case ye:case be:case xe:case Se:case Ce:case we:case Te:case Ee:case De:return Ua(e,n);case ie:return new r;case ae:case fe:return new r(e);case ue:return Va(e);case de:return new r;case pe:return Ha(e)}}function qo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(We,`{
|
|
15
15
|
/* [wrapped with `+t+`] */
|
|
16
|
-
`)}function Kd(e){return q(e)||dn(e)||!!(Mu&&e&&e[Mu])}function Ct(e,t){var n=typeof e;return t=t??R,!!t&&(n=="number"||n!="symbol"&&ol.test(e))&&e>-1&&e%1==0&&e<t}function Ge(e,t,n){if(!we(n))return!1;var i=typeof t;return(i=="number"?Qe(n)&&Ct(t,n.length):i=="string"&&t in n)?Tt(n[t],e):!1}function Fo(e,t){if(q(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rt(e)?!0:Gc.test(e)||!Bc.test(e)||t!=null&&e in le(t)}function Qd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wo(e){var t=si(e),n=a[t];if(typeof n!="function"||!(t in te.prototype))return!1;if(e===n)return!0;var i=No(n);return!!i&&e===i[0]}function Zd(e){return!!Iu&&Iu in e}var Jd=Pr?Ft:ns;function nr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Mn;return e===n}function Ia(e){return e===e&&!we(e)}function Aa(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in le(n))}}function Xd(e){var t=hi(e,function(i){return n.size===$&&n.clear(),i}),n=t.cache;return t}function Vd(e,t){var n=e[1],i=t[1],u=n|i,c=u<(Q|he|_e),l=i==_e&&n==ne||i==_e&&n==Ne&&e[7].length<=t[8]||i==(_e|Ne)&&t[7].length<=t[8]&&n==ne;if(!(c||l))return e;i&Q&&(e[2]=t[2],u|=n&Q?0:me);var h=t[3];if(h){var m=e[3];e[3]=m?sa(m,h,t[4]):h,e[4]=m?zt(e[3],H):t[4]}return h=t[5],h&&(m=e[5],e[5]=m?ua(m,h,t[6]):h,e[6]=m?zt(e[5],H):t[6]),h=t[7],h&&(e[7]=h),i&_e&&(e[8]=e[8]==null?t[8]:Ye(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}function jd(e){var t=[];if(e!=null)for(var n in le(e))t.push(n);return t}function eg(e){return Fr.call(e)}function Ra(e,t,n){return t=De(t===r?e.length-1:t,0),function(){for(var i=arguments,u=-1,c=De(i.length-t,0),l=v(c);++u<c;)l[u]=i[t+u];u=-1;for(var h=v(t+1);++u<t;)h[u]=i[u];return h[t]=n(l),et(e,this,h)}}function La(e,t){return t.length<2?e:cn(e,ht(t,0,-1))}function tg(e,t){for(var n=e.length,i=Ye(t.length,n),u=Ke(e);i--;){var c=t[i];e[i]=Ct(c,n)?u[c]:r}return e}function Yo(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ma=ba(Ju),rr=mh||function(e,t){return Ce.setTimeout(e,t)},ko=ba(Ad);function Oa(e,t,n){var i=t+"";return ko(e,qd(i,ng(Bd(i),n)))}function ba(e){var t=0,n=0;return function(){var i=Eh(),u=Mr-(i-n);if(n=i,u>0){if(++t>=En)return arguments[0]}else t=0;return e.apply(r,arguments)}}function ai(e,t){var n=-1,i=e.length,u=i-1;for(t=t===r?i:t;++n<t;){var c=Io(n,u),l=e[c];e[c]=e[n],e[n]=l}return e.length=t,e}var xa=Xd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zc,function(n,i,u,c){t.push(u?c.replace(jc,"$1"):i||n)}),t});function Ot(e){if(typeof e=="string"||rt(e))return e;var t=e+"";return t=="0"&&1/e==-D?"-0":t}function hn(e){if(e!=null){try{return Cr.call(e)}catch{}try{return e+""}catch{}}return""}function ng(e,t){return at(Ue,function(n){var i="_."+n[0];t&n[1]&&!Sr(e,i)&&e.push(i)}),e.sort()}function Da(e){if(e instanceof te)return e.clone();var t=new ct(e.__wrapped__,e.__chain__);return t.__actions__=Ke(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function rg(e,t,n){(n?Ge(e,t,n):t===r)?t=1:t=De(Z(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var u=0,c=0,l=v(Gr(i/t));u<i;)l[c++]=ht(e,u,u+=t);return l}function ig(e){for(var t=-1,n=e==null?0:e.length,i=0,u=[];++t<n;){var c=e[t];c&&(u[i++]=c)}return u}function og(){var e=arguments.length;if(!e)return[];for(var t=v(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Gt(q(n)?Ke(n):[n],Fe(t,1))}var sg=X(function(e,t){return ye(e)?Xn(e,Fe(t,1,ye,!0)):[]}),ug=X(function(e,t){var n=dt(t);return ye(n)&&(n=r),ye(e)?Xn(e,Fe(t,1,ye,!0),P(n,2)):[]}),ag=X(function(e,t){var n=dt(t);return ye(n)&&(n=r),ye(e)?Xn(e,Fe(t,1,ye,!0),r,n):[]});function fg(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:Z(t),ht(e,t<0?0:t,i)):[]}function cg(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:Z(t),t=i-t,ht(e,0,t<0?0:t)):[]}function lg(e,t){return e&&e.length?ei(e,P(t,3),!0,!0):[]}function hg(e,t){return e&&e.length?ei(e,P(t,3),!0):[]}function dg(e,t,n,i){var u=e==null?0:e.length;return u?(n&&typeof n!="number"&&Ge(e,t,n)&&(n=0,i=u),od(e,t,n,i)):[]}function Sa(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=n==null?0:Z(n);return u<0&&(u=De(i+u,0)),Ur(e,P(t,3),u)}function Ua(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=i-1;return n!==r&&(u=Z(n),u=n<0?De(i+u,0):Ye(u,i-1)),Ur(e,P(t,3),u,!0)}function $a(e){var t=e==null?0:e.length;return t?Fe(e,1):[]}function gg(e){var t=e==null?0:e.length;return t?Fe(e,D):[]}function pg(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:Z(t),Fe(e,t)):[]}function mg(e){for(var t=-1,n=e==null?0:e.length,i={};++t<n;){var u=e[t];i[u[0]]=u[1]}return i}function Na(e){return e&&e.length?e[0]:r}function _g(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=n==null?0:Z(n);return u<0&&(u=De(i+u,0)),In(e,t,u)}function vg(e){var t=e==null?0:e.length;return t?ht(e,0,-1):[]}var wg=X(function(e){var t=pe(e,Oo);return t.length&&t[0]===e[0]?vo(t):[]}),Eg=X(function(e){var t=dt(e),n=pe(e,Oo);return t===dt(n)?t=r:n.pop(),n.length&&n[0]===e[0]?vo(n,P(t,2)):[]}),Tg=X(function(e){var t=dt(e),n=pe(e,Oo);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?vo(n,r,t):[]});function yg(e,t){return e==null?"":vh.call(e,t)}function dt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function Ig(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var u=i;return n!==r&&(u=Z(n),u=u<0?De(i+u,0):Ye(u,i-1)),t===t?nh(e,t,u):Ur(e,pu,u,!0)}function Ag(e,t){return e&&e.length?qu(e,Z(t)):r}var Rg=X(Pa);function Pa(e,t){return e&&e.length&&t&&t.length?yo(e,t):e}function Lg(e,t,n){return e&&e.length&&t&&t.length?yo(e,t,P(n,2)):e}function Mg(e,t,n){return e&&e.length&&t&&t.length?yo(e,t,r,n):e}var Og=Pt(function(e,t){var n=e==null?0:e.length,i=go(e,t);return Zu(e,pe(t,function(u){return Ct(u,n)?+u:u}).sort(oa)),i});function bg(e,t){var n=[];if(!(e&&e.length))return n;var i=-1,u=[],c=e.length;for(t=P(t,3);++i<c;){var l=e[i];t(l,i,e)&&(n.push(l),u.push(i))}return Zu(e,u),n}function Ho(e){return e==null?e:yh.call(e)}function xg(e,t,n){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&Ge(e,t,n)?(t=0,n=i):(t=t==null?0:Z(t),n=n===r?i:Z(n)),ht(e,t,n)):[]}function Dg(e,t){return jr(e,t)}function Sg(e,t,n){return Ro(e,t,P(n,2))}function Ug(e,t){var n=e==null?0:e.length;if(n){var i=jr(e,t);if(i<n&&Tt(e[i],t))return i}return-1}function $g(e,t){return jr(e,t,!0)}function Ng(e,t,n){return Ro(e,t,P(n,2),!0)}function Pg(e,t){var n=e==null?0:e.length;if(n){var i=jr(e,t,!0)-1;if(Tt(e[i],t))return i}return-1}function Cg(e){return e&&e.length?Xu(e):[]}function Fg(e,t){return e&&e.length?Xu(e,P(t,2)):[]}function Wg(e){var t=e==null?0:e.length;return t?ht(e,1,t):[]}function Yg(e,t,n){return e&&e.length?(t=n||t===r?1:Z(t),ht(e,0,t<0?0:t)):[]}function kg(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:Z(t),t=i-t,ht(e,t<0?0:t,i)):[]}function Hg(e,t){return e&&e.length?ei(e,P(t,3),!1,!0):[]}function Bg(e,t){return e&&e.length?ei(e,P(t,3)):[]}var Gg=X(function(e){return Qt(Fe(e,1,ye,!0))}),zg=X(function(e){var t=dt(e);return ye(t)&&(t=r),Qt(Fe(e,1,ye,!0),P(t,2))}),qg=X(function(e){var t=dt(e);return t=typeof t=="function"?t:r,Qt(Fe(e,1,ye,!0),r,t)});function Kg(e){return e&&e.length?Qt(e):[]}function Qg(e,t){return e&&e.length?Qt(e,P(t,2)):[]}function Zg(e,t){return t=typeof t=="function"?t:r,e&&e.length?Qt(e,r,t):[]}function Bo(e){if(!(e&&e.length))return[];var t=0;return e=Bt(e,function(n){if(ye(n))return t=De(n.length,t),!0}),oo(t,function(n){return pe(e,no(n))})}function Ca(e,t){if(!(e&&e.length))return[];var n=Bo(e);return t==null?n:pe(n,function(i){return et(t,r,i)})}var Jg=X(function(e,t){return ye(e)?Xn(e,t):[]}),Xg=X(function(e){return Mo(Bt(e,ye))}),Vg=X(function(e){var t=dt(e);return ye(t)&&(t=r),Mo(Bt(e,ye),P(t,2))}),jg=X(function(e){var t=dt(e);return t=typeof t=="function"?t:r,Mo(Bt(e,ye),r,t)}),ep=X(Bo);function tp(e,t){return ta(e||[],t||[],Jn)}function np(e,t){return ta(e||[],t||[],er)}var rp=X(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Ca(e,n)});function Fa(e){var t=a(e);return t.__chain__=!0,t}function ip(e,t){return t(e),e}function fi(e,t){return t(e)}var op=Pt(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,u=function(c){return go(c,e)};return t>1||this.__actions__.length||!(i instanceof te)||!Ct(n)?this.thru(u):(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:fi,args:[u],thisArg:r}),new ct(i,this.__chain__).thru(function(c){return t&&!c.length&&c.push(r),c}))});function sp(){return Fa(this)}function up(){return new ct(this.value(),this.__chain__)}function ap(){this.__values__===r&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function fp(){return this}function cp(e){for(var t,n=this;n instanceof Qr;){var i=Da(n);i.__index__=0,i.__values__=r,t?u.__wrapped__=i:t=i;var u=i;n=n.__wrapped__}return u.__wrapped__=e,t}function lp(){var e=this.__wrapped__;if(e instanceof te){var t=e;return this.__actions__.length&&(t=new te(this)),t=t.reverse(),t.__actions__.push({func:fi,args:[Ho],thisArg:r}),new ct(t,this.__chain__)}return this.thru(Ho)}function hp(){return ea(this.__wrapped__,this.__actions__)}var dp=ti(function(e,t,n){fe.call(e,n)?++e[n]:$t(e,n,1)});function gp(e,t,n){var i=q(e)?du:id;return n&&Ge(e,t,n)&&(t=r),i(e,P(t,3))}function pp(e,t){var n=q(e)?Bt:Cu;return n(e,P(t,3))}var mp=la(Sa),_p=la(Ua);function vp(e,t){return Fe(ci(e,t),1)}function wp(e,t){return Fe(ci(e,t),D)}function Ep(e,t,n){return n=n===r?1:Z(n),Fe(ci(e,t),n)}function Wa(e,t){var n=q(e)?at:Kt;return n(e,P(t,3))}function Ya(e,t){var n=q(e)?Wl:Pu;return n(e,P(t,3))}var Tp=ti(function(e,t,n){fe.call(e,n)?e[n].push(t):$t(e,n,[t])});function yp(e,t,n,i){e=Qe(e)?e:Nn(e),n=n&&!i?Z(n):0;var u=e.length;return n<0&&(n=De(u+n,0)),pi(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&In(e,t,n)>-1}var Ip=X(function(e,t,n){var i=-1,u=typeof t=="function",c=Qe(e)?v(e.length):[];return Kt(e,function(l){c[++i]=u?et(t,l,n):Vn(l,t,n)}),c}),Ap=ti(function(e,t,n){$t(e,n,t)});function ci(e,t){var n=q(e)?pe:Bu;return n(e,P(t,3))}function Rp(e,t,n,i){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=i?r:n,q(n)||(n=n==null?[]:[n]),Ku(e,t,n))}var Lp=ti(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Mp(e,t,n){var i=q(e)?eo:_u,u=arguments.length<3;return i(e,P(t,4),n,u,Kt)}function Op(e,t,n){var i=q(e)?Yl:_u,u=arguments.length<3;return i(e,P(t,4),n,u,Pu)}function bp(e,t){var n=q(e)?Bt:Cu;return n(e,di(P(t,3)))}function xp(e){var t=q(e)?Su:yd;return t(e)}function Dp(e,t,n){(n?Ge(e,t,n):t===r)?t=1:t=Z(t);var i=q(e)?jh:Id;return i(e,t)}function Sp(e){var t=q(e)?ed:Rd;return t(e)}function Up(e){if(e==null)return 0;if(Qe(e))return pi(e)?Rn(e):e.length;var t=ke(e);return t==_t||t==vt?e.size:Eo(e).length}function $p(e,t,n){var i=q(e)?to:Ld;return n&&Ge(e,t,n)&&(t=r),i(e,P(t,3))}var Np=X(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ge(e,t[0],t[1])?t=[]:n>2&&Ge(t[0],t[1],t[2])&&(t=[t[0]]),Ku(e,Fe(t,1),[])}),li=ph||function(){return Ce.Date.now()};function Pp(e,t){if(typeof t!="function")throw new ft(g);return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function ka(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Nt(e,_e,r,r,r,r,t)}function Ha(e,t){var n;if(typeof t!="function")throw new ft(g);return e=Z(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Go=X(function(e,t,n){var i=Q;if(n.length){var u=zt(n,Un(Go));i|=ue}return Nt(e,i,t,n,u)}),Ba=X(function(e,t,n){var i=Q|he;if(n.length){var u=zt(n,Un(Ba));i|=ue}return Nt(t,i,e,n,u)});function Ga(e,t,n){t=n?r:t;var i=Nt(e,ne,r,r,r,r,r,t);return i.placeholder=Ga.placeholder,i}function za(e,t,n){t=n?r:t;var i=Nt(e,Le,r,r,r,r,r,t);return i.placeholder=za.placeholder,i}function qa(e,t,n){var i,u,c,l,h,m,E=0,T=!1,I=!1,L=!0;if(typeof e!="function")throw new ft(g);t=gt(t)||0,we(n)&&(T=!!n.leading,I="maxWait"in n,c=I?De(gt(n.maxWait)||0,t):c,L="trailing"in n?!!n.trailing:L);function S(Ie){var yt=i,Yt=u;return i=u=r,E=Ie,l=e.apply(Yt,yt),l}function C(Ie){return E=Ie,h=rr(j,t),T?S(Ie):l}function J(Ie){var yt=Ie-m,Yt=Ie-E,hf=t-yt;return I?Ye(hf,c-Yt):hf}function F(Ie){var yt=Ie-m,Yt=Ie-E;return m===r||yt>=t||yt<0||I&&Yt>=c}function j(){var Ie=li();if(F(Ie))return re(Ie);h=rr(j,J(Ie))}function re(Ie){return h=r,L&&i?S(Ie):(i=u=r,l)}function it(){h!==r&&na(h),E=0,i=m=u=h=r}function ze(){return h===r?l:re(li())}function ot(){var Ie=li(),yt=F(Ie);if(i=arguments,u=this,m=Ie,yt){if(h===r)return C(m);if(I)return na(h),h=rr(j,t),S(m)}return h===r&&(h=rr(j,t)),l}return ot.cancel=it,ot.flush=ze,ot}var Cp=X(function(e,t){return Nu(e,1,t)}),Fp=X(function(e,t,n){return Nu(e,gt(t)||0,n)});function Wp(e){return Nt(e,Pe)}function hi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new ft(g);var n=function(){var i=arguments,u=t?t.apply(this,i):i[0],c=n.cache;if(c.has(u))return c.get(u);var l=e.apply(this,i);return n.cache=c.set(u,l)||c,l};return n.cache=new(hi.Cache||Ut),n}hi.Cache=Ut;function di(e){if(typeof e!="function")throw new ft(g);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Yp(e){return Ha(2,e)}var kp=Md(function(e,t){t=t.length==1&&q(t[0])?pe(t[0],tt(P())):pe(Fe(t,1),tt(P()));var n=t.length;return X(function(i){for(var u=-1,c=Ye(i.length,n);++u<c;)i[u]=t[u].call(this,i[u]);return et(e,this,i)})}),zo=X(function(e,t){var n=zt(t,Un(zo));return Nt(e,ue,r,t,n)}),Ka=X(function(e,t){var n=zt(t,Un(Ka));return Nt(e,Te,r,t,n)}),Hp=Pt(function(e,t){return Nt(e,Ne,r,r,r,t)});function Bp(e,t){if(typeof e!="function")throw new ft(g);return t=t===r?t:Z(t),X(e,t)}function Gp(e,t){if(typeof e!="function")throw new ft(g);return t=t==null?0:De(Z(t),0),X(function(n){var i=n[t],u=Jt(n,0,t);return i&&Gt(u,i),et(e,this,u)})}function zp(e,t,n){var i=!0,u=!0;if(typeof e!="function")throw new ft(g);return we(n)&&(i="leading"in n?!!n.leading:i,u="trailing"in n?!!n.trailing:u),qa(e,t,{leading:i,maxWait:t,trailing:u})}function qp(e){return ka(e,1)}function Kp(e,t){return zo(bo(t),e)}function Qp(){if(!arguments.length)return[];var e=arguments[0];return q(e)?e:[e]}function Zp(e){return lt(e,K)}function Jp(e,t){return t=typeof t=="function"?t:r,lt(e,K,t)}function Xp(e){return lt(e,U|K)}function Vp(e,t){return t=typeof t=="function"?t:r,lt(e,U|K,t)}function jp(e,t){return t==null||$u(e,t,$e(t))}function Tt(e,t){return e===t||e!==e&&t!==t}var em=oi(_o),tm=oi(function(e,t){return e>=t}),dn=Yu((function(){return arguments})())?Yu:function(e){return Ee(e)&&fe.call(e,"callee")&&!Lu.call(e,"callee")},q=v.isArray,nm=uu?tt(uu):cd;function Qe(e){return e!=null&&gi(e.length)&&!Ft(e)}function ye(e){return Ee(e)&&Qe(e)}function rm(e){return e===!0||e===!1||Ee(e)&&Be(e)==mt}var Xt=_h||ns,im=au?tt(au):ld;function om(e){return Ee(e)&&e.nodeType===1&&!ir(e)}function sm(e){if(e==null)return!0;if(Qe(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Xt(e)||$n(e)||dn(e)))return!e.length;var t=ke(e);if(t==_t||t==vt)return!e.size;if(nr(e))return!Eo(e).length;for(var n in e)if(fe.call(e,n))return!1;return!0}function um(e,t){return jn(e,t)}function am(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?jn(e,t,r,n):!!i}function qo(e){if(!Ee(e))return!1;var t=Be(e);return t==je||t==We||typeof e.message=="string"&&typeof e.name=="string"&&!ir(e)}function fm(e){return typeof e=="number"&&Ou(e)}function Ft(e){if(!we(e))return!1;var t=Be(e);return t==Rt||t==rn||t==xt||t==Uc}function Qa(e){return typeof e=="number"&&e==Z(e)}function gi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=R}function we(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ee(e){return e!=null&&typeof e=="object"}var Za=fu?tt(fu):dd;function cm(e,t){return e===t||wo(e,t,Po(t))}function lm(e,t,n){return n=typeof n=="function"?n:r,wo(e,t,Po(t),n)}function hm(e){return Ja(e)&&e!=+e}function dm(e){if(Jd(e))throw new B(_);return ku(e)}function gm(e){return e===null}function pm(e){return e==null}function Ja(e){return typeof e=="number"||Ee(e)&&Be(e)==Wn}function ir(e){if(!Ee(e)||Be(e)!=Dt)return!1;var t=kr(e);if(t===null)return!0;var n=fe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Cr.call(n)==lh}var Ko=cu?tt(cu):gd;function mm(e){return Qa(e)&&e>=-R&&e<=R}var Xa=lu?tt(lu):pd;function pi(e){return typeof e=="string"||!q(e)&&Ee(e)&&Be(e)==kn}function rt(e){return typeof e=="symbol"||Ee(e)&&Be(e)==Or}var $n=hu?tt(hu):md;function _m(e){return e===r}function vm(e){return Ee(e)&&ke(e)==Hn}function wm(e){return Ee(e)&&Be(e)==Nc}var Em=oi(To),Tm=oi(function(e,t){return e<=t});function Va(e){if(!e)return[];if(Qe(e))return pi(e)?wt(e):Ke(e);if(zn&&e[zn])return jl(e[zn]());var t=ke(e),n=t==_t?uo:t==vt?$r:Nn;return n(e)}function Wt(e){if(!e)return e===0?e:0;if(e=gt(e),e===D||e===-D){var t=e<0?-1:1;return t*z}return e===e?e:0}function Z(e){var t=Wt(e),n=t%1;return t===t?n?t-n:t:0}function ja(e){return e?fn(Z(e),0,V):0}function gt(e){if(typeof e=="number")return e;if(rt(e))return Y;if(we(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=we(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vu(e);var n=nl.test(e);return n||il.test(e)?Pl(e.slice(2),n?2:8):tl.test(e)?Y:+e}function ef(e){return Mt(e,Ze(e))}function ym(e){return e?fn(Z(e),-R,R):e===0?e:0}function ae(e){return e==null?"":nt(e)}var Im=Dn(function(e,t){if(nr(t)||Qe(t)){Mt(t,$e(t),e);return}for(var n in t)fe.call(t,n)&&Jn(e,n,t[n])}),tf=Dn(function(e,t){Mt(t,Ze(t),e)}),mi=Dn(function(e,t,n,i){Mt(t,Ze(t),e,i)}),Am=Dn(function(e,t,n,i){Mt(t,$e(t),e,i)}),Rm=Pt(go);function Lm(e,t){var n=xn(e);return t==null?n:Uu(n,t)}var Mm=X(function(e,t){e=le(e);var n=-1,i=t.length,u=i>2?t[2]:r;for(u&&Ge(t[0],t[1],u)&&(i=1);++n<i;)for(var c=t[n],l=Ze(c),h=-1,m=l.length;++h<m;){var E=l[h],T=e[E];(T===r||Tt(T,Mn[E])&&!fe.call(e,E))&&(e[E]=c[E])}return e}),Om=X(function(e){return e.push(r,va),et(nf,r,e)});function bm(e,t){return gu(e,P(t,3),Lt)}function xm(e,t){return gu(e,P(t,3),mo)}function Dm(e,t){return e==null?e:po(e,P(t,3),Ze)}function Sm(e,t){return e==null?e:Fu(e,P(t,3),Ze)}function Um(e,t){return e&&Lt(e,P(t,3))}function $m(e,t){return e&&mo(e,P(t,3))}function Nm(e){return e==null?[]:Xr(e,$e(e))}function Pm(e){return e==null?[]:Xr(e,Ze(e))}function Qo(e,t,n){var i=e==null?r:cn(e,t);return i===r?n:i}function Cm(e,t){return e!=null&&Ta(e,t,sd)}function Zo(e,t){return e!=null&&Ta(e,t,ud)}var Fm=da(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fr.call(t)),e[t]=n},Xo(Je)),Wm=da(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fr.call(t)),fe.call(e,t)?e[t].push(n):e[t]=[n]},P),Ym=X(Vn);function $e(e){return Qe(e)?Du(e):Eo(e)}function Ze(e){return Qe(e)?Du(e,!0):_d(e)}function km(e,t){var n={};return t=P(t,3),Lt(e,function(i,u,c){$t(n,t(i,u,c),i)}),n}function Hm(e,t){var n={};return t=P(t,3),Lt(e,function(i,u,c){$t(n,u,t(i,u,c))}),n}var Bm=Dn(function(e,t,n){Vr(e,t,n)}),nf=Dn(function(e,t,n,i){Vr(e,t,n,i)}),Gm=Pt(function(e,t){var n={};if(e==null)return n;var i=!1;t=pe(t,function(c){return c=Zt(c,e),i||(i=c.length>1),c}),Mt(e,$o(e),n),i&&(n=lt(n,U|N|K,Fd));for(var u=t.length;u--;)Lo(n,t[u]);return n});function zm(e,t){return rf(e,di(P(t)))}var qm=Pt(function(e,t){return e==null?{}:wd(e,t)});function rf(e,t){if(e==null)return{};var n=pe($o(e),function(i){return[i]});return t=P(t),Qu(e,n,function(i,u){return t(i,u[0])})}function Km(e,t,n){t=Zt(t,e);var i=-1,u=t.length;for(u||(u=1,e=r);++i<u;){var c=e==null?r:e[Ot(t[i])];c===r&&(i=u,c=n),e=Ft(c)?c.call(e):c}return e}function Qm(e,t,n){return e==null?e:er(e,t,n)}function Zm(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:er(e,t,n,i)}var of=ma($e),sf=ma(Ze);function Jm(e,t,n){var i=q(e),u=i||Xt(e)||$n(e);if(t=P(t,4),n==null){var c=e&&e.constructor;u?n=i?new c:[]:we(e)?n=Ft(c)?xn(kr(e)):{}:n={}}return(u?at:Lt)(e,function(l,h,m){return t(n,l,h,m)}),n}function Xm(e,t){return e==null?!0:Lo(e,t)}function Vm(e,t,n){return e==null?e:ju(e,t,bo(n))}function jm(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:ju(e,t,bo(n),i)}function Nn(e){return e==null?[]:so(e,$e(e))}function e_(e){return e==null?[]:so(e,Ze(e))}function t_(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=gt(n),n=n===n?n:0),t!==r&&(t=gt(t),t=t===t?t:0),fn(gt(e),t,n)}function n_(e,t,n){return t=Wt(t),n===r?(n=t,t=0):n=Wt(n),e=gt(e),ad(e,t,n)}function r_(e,t,n){if(n&&typeof n!="boolean"&&Ge(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Wt(e),t===r?(t=e,e=0):t=Wt(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var u=bu();return Ye(e+u*(t-e+Nl("1e-"+((u+"").length-1))),t)}return Io(e,t)}var i_=Sn(function(e,t,n){return t=t.toLowerCase(),e+(n?uf(t):t)});function uf(e){return Jo(ae(e).toLowerCase())}function af(e){return e=ae(e),e&&e.replace(sl,Ql).replace(Rl,"")}function o_(e,t,n){e=ae(e),t=nt(t);var i=e.length;n=n===r?i:fn(Z(n),0,i);var u=n;return n-=t.length,n>=0&&e.slice(n,u)==t}function s_(e){return e=ae(e),e&&Yc.test(e)?e.replace(Fs,Zl):e}function u_(e){return e=ae(e),e&&qc.test(e)?e.replace(Gi,"\\$&"):e}var a_=Sn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),f_=Sn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),c_=ca("toLowerCase");function l_(e,t,n){e=ae(e),t=Z(t);var i=t?Rn(e):0;if(!t||i>=t)return e;var u=(t-i)/2;return ii(zr(u),n)+e+ii(Gr(u),n)}function h_(e,t,n){e=ae(e),t=Z(t);var i=t?Rn(e):0;return t&&i<t?e+ii(t-i,n):e}function d_(e,t,n){e=ae(e),t=Z(t);var i=t?Rn(e):0;return t&&i<t?ii(t-i,n)+e:e}function g_(e,t,n){return n||t==null?t=0:t&&(t=+t),Th(ae(e).replace(zi,""),t||0)}function p_(e,t,n){return(n?Ge(e,t,n):t===r)?t=1:t=Z(t),Ao(ae(e),t)}function m_(){var e=arguments,t=ae(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var __=Sn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function v_(e,t,n){return n&&typeof n!="number"&&Ge(e,t,n)&&(t=n=r),n=n===r?V:n>>>0,n?(e=ae(e),e&&(typeof t=="string"||t!=null&&!Ko(t))&&(t=nt(t),!t&&An(e))?Jt(wt(e),0,n):e.split(t,n)):[]}var w_=Sn(function(e,t,n){return e+(n?" ":"")+Jo(t)});function E_(e,t,n){return e=ae(e),n=n==null?0:fn(Z(n),0,e.length),t=nt(t),e.slice(n,n+t.length)==t}function T_(e,t,n){var i=a.templateSettings;n&&Ge(e,t,n)&&(t=r),e=ae(e),t=mi({},t,i,_a);var u=mi({},t.imports,i.imports,_a),c=$e(u),l=so(u,c),h,m,E=0,T=t.interpolate||br,I="__p += '",L=ao((t.escape||br).source+"|"+T.source+"|"+(T===Ws?el:br).source+"|"+(t.evaluate||br).source+"|$","g"),S="//# sourceURL="+(fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xl+"]")+`
|
|
17
|
-
`;e.replace(
|
|
18
|
-
__e(`+
|
|
19
|
-
'`),
|
|
20
|
-
`+
|
|
21
|
-
__p += '`),
|
|
22
|
-
((__t = (`+
|
|
23
|
-
'`),
|
|
24
|
-
`;var
|
|
25
|
-
`+
|
|
16
|
+
`)}function Jo(e){return q(e)||Xl(e)||!!(Ot&&e&&e[Ot])}function Yo(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&tt.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!Y(n))return!1;var r=typeof t;return(r==`number`?Ql(n)&&Yo(t,n.length):r==`string`&&t in n)?ql(n[t],e):!1}function Zo(e,t){if(q(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||wu(e)?!0:ze.test(e)||!Re.test(e)||t!=null&&e in A(t)}function Qo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function $o(e){var t=No(e),n=V[t];if(typeof n!=`function`||!(t in H.prototype))return!1;if(e===n)return!0;var r=Mo(n);return!!r&&e===r[0]}function es(e){return!!ht&&ht in e}var ts=ft?cu:jf;function ns(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||dt)}function rs(e){return e===e&&!Y(e)}function is(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in A(r))}}function as(e){var t=kl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function os(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ka(m,d,t[4]):d,e[4]=m?er(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?qa(m,d,t[6]):d,e[6]=m?er(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:L(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function ss(e){var t=[];if(e!=null)for(var n in A(e))t.push(n);return t}function cs(e){return gt.call(e)}function ls(e,t,r){return t=P(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=P(n.length-t,0),o=O(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=O(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),un(e,this,s)}}function us(e,t){return t.length<2?e:Ei(e,va(t,0,-1))}function ds(e,t){for(var r=e.length,i=L(t.length,r),a=Ja(e);i--;){var o=t[i];e[i]=Yo(o,r)?a[o]:n}return e}function fs(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var ps=_s(ha),ms=Pt||function(e,t){return R.setTimeout(e,t)},hs=_s(ga);function gs(e,t,n){var r=t+``;return hs(e,qo(r,Ss(Ho(r),n)))}function _s(e){var t=0,r=0;return function(){var i=Kt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function vs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=la(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var ys=as(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Be,function(e,n,r,i){t.push(r?i.replace(Ye,`$1`):n||e)}),t});function bs(e){if(typeof e==`string`||wu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function xs(e){if(e!=null){try{return pt.call(e)}catch{}try{return e+``}catch{}}return``}function Ss(e,t){return fn(ee,function(n){var r=`_.`+n[0];t&n[1]&&!gn(e,r)&&e.push(r)}),e.sort()}function Cs(e){if(e instanceof H)return e.clone();var t=new br(e.__wrapped__,e.__chain__);return t.__actions__=Ja(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ws(e,t,r){t=(r?Xo(e,t,r):t===n)?1:P(Z(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=O(Ft(i/t));a<i;)s[o++]=va(e,a,a+=t);return s}function Ts(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Es(){var e=arguments.length;if(!e)return[];for(var t=O(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return vn(q(n)?Ja(n):[n],U(t,1))}var Ds=W(function(e,t){return J(e)?mi(e,U(t,1,J,!0)):[]}),Os=W(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?mi(e,U(t,1,J,!0),G(r,2)):[]}),ks=W(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?mi(e,U(t,1,J,!0),n,r):[]});function As(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),va(e,t<0?0:t,i)):[]}function js(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,va(e,0,t<0?0:t)):[]}function Ms(e,t){return e&&e.length?Oa(e,G(t,3),!0,!0):[]}function Ns(e,t){return e&&e.length?Oa(e,G(t,3),!0):[]}function Ps(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Xo(e,t,n)&&(n=0,r=i),yi(e,t,n,r)):[]}function Fs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=P(r+i,0)),En(e,G(t,3),i)}function Is(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Z(r),a=r<0?P(i+a,0):L(a,i-1)),En(e,G(t,3),a,!0)}function Ls(e){return e!=null&&e.length?U(e,1):[]}function Rs(e){return e!=null&&e.length?U(e,h):[]}function zs(e,t){return e!=null&&e.length?(t=t===n?1:Z(t),U(e,t)):[]}function Bs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Vs(e){return e&&e.length?e[0]:n}function Hs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=P(r+i,0)),Dn(e,t,i)}function Us(e){return e!=null&&e.length?va(e,0,-1):[]}var Ws=W(function(e){var t=B(e,Ma);return t.length&&t[0]===e[0]?Ni(t):[]}),Gs=W(function(e){var t=Js(e),r=B(e,Ma);return t===Js(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ni(r,G(t,2)):[]}),Ks=W(function(e){var t=Js(e),r=B(e,Ma);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ni(r,n,t):[]});function qs(e,t){return e==null?``:Ht.call(e,t)}function Js(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Ys(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Z(r),a=a<0?P(i+a,0):L(a,i-1)),t===t?ir(e,t,a):En(e,kn,a,!0)}function Xs(e,t){return e&&e.length?na(e,Z(t)):n}var Zs=W(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?sa(e,t):e}function $s(e,t,n){return e&&e.length&&t&&t.length?sa(e,t,G(n,2)):e}function ec(e,t,r){return e&&e.length&&t&&t.length?sa(e,t,n,r):e}var tc=ko(function(e,t){var n=e==null?0:e.length,r=ci(e,t);return ca(e,B(t,function(e){return Yo(e,n)?+e:e}).sort(Wa)),r});function nc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=G(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ca(e,i),n}function rc(e){return e==null?e:Zt.call(e)}function ic(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Xo(e,t,r)?(t=0,r=i):(t=t==null?0:Z(t),r=r===n?i:Z(r)),va(e,t,r)):[]}function ac(e,t){return ba(e,t)}function oc(e,t,n){return xa(e,t,G(n,2))}function sc(e,t){var n=e==null?0:e.length;if(n){var r=ba(e,t);if(r<n&&ql(e[r],t))return r}return-1}function cc(e,t){return ba(e,t,!0)}function lc(e,t,n){return xa(e,t,G(n,2),!0)}function uc(e,t){if(e!=null&&e.length){var n=ba(e,t,!0)-1;if(ql(e[n],t))return n}return-1}function dc(e){return e&&e.length?Sa(e):[]}function fc(e,t){return e&&e.length?Sa(e,G(t,2)):[]}function pc(e){var t=e==null?0:e.length;return t?va(e,1,t):[]}function mc(e,t,r){return e&&e.length?(t=r||t===n?1:Z(t),va(e,0,t<0?0:t)):[]}function hc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,va(e,t<0?0:t,i)):[]}function gc(e,t){return e&&e.length?Oa(e,G(t,3),!1,!0):[]}function _c(e,t){return e&&e.length?Oa(e,G(t,3)):[]}var vc=W(function(e){return Ta(U(e,1,J,!0))}),yc=W(function(e){var t=Js(e);return J(t)&&(t=n),Ta(U(e,1,J,!0),G(t,2))}),bc=W(function(e){var t=Js(e);return t=typeof t==`function`?t:n,Ta(U(e,1,J,!0),n,t)});function xc(e){return e&&e.length?Ta(e):[]}function Sc(e,t){return e&&e.length?Ta(e,G(t,2)):[]}function Cc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Ta(e,n,t):[]}function wc(e){if(!(e&&e.length))return[];var t=0;return e=hn(e,function(e){if(J(e))return t=P(e.length,t),!0}),In(t,function(t){return B(e,jn(t))})}function Tc(e,t){if(!(e&&e.length))return[];var r=wc(e);return t==null?r:B(r,function(e){return un(t,n,e)})}var Ec=W(function(e,t){return J(e)?mi(e,t):[]}),Dc=W(function(e){return Aa(hn(e,J))}),Oc=W(function(e){var t=Js(e);return J(t)&&(t=n),Aa(hn(e,J),G(t,2))}),kc=W(function(e){var t=Js(e);return t=typeof t==`function`?t:n,Aa(hn(e,J),n,t)}),Ac=W(wc);function jc(e,t){return ja(e||[],t||[],ni)}function Mc(e,t){return ja(e||[],t||[],ma)}var Nc=W(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Tc(e,r)});function Pc(e){var t=V(e);return t.__chain__=!0,t}function Fc(e,t){return t(e),e}function Ic(e,t){return t(e)}var Lc=ko(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return ci(t,e)};return t>1||this.__actions__.length||!(i instanceof H)||!Yo(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Ic,args:[a],thisArg:n}),new br(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Rc(){return Pc(this)}function zc(){return new br(this.value(),this.__chain__)}function Bc(){this.__values__===n&&(this.__values__=ju(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Vc(){return this}function Hc(e){for(var t,r=this;r instanceof yr;){var i=Cs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Uc(){var e=this.__wrapped__;if(e instanceof H){var t=e;return this.__actions__.length&&(t=new H(this)),t=t.reverse(),t.__actions__.push({func:Ic,args:[rc],thisArg:n}),new br(t,this.__chain__)}return this.thru(rc)}function Wc(){return ka(this.__wrapped__,this.__actions__)}var Gc=Qa(function(e,t,n){N.call(e,n)?++e[n]:si(e,n,1)});function Kc(e,t,r){var i=q(e)?mn:_i;return r&&Xo(e,t,r)&&(t=n),i(e,G(t,3))}function qc(e,t){return(q(e)?hn:bi)(e,G(t,3))}var Jc=so(Fs),Yc=so(Is);function Xc(e,t){return U(al(e,t),1)}function Zc(e,t){return U(al(e,t),h)}function Qc(e,t,r){return r=r===n?1:Z(r),U(al(e,t),r)}function $c(e,t){return(q(e)?fn:hi)(e,G(t,3))}function el(e,t){return(q(e)?pn:gi)(e,G(t,3))}var tl=Qa(function(e,t,n){N.call(e,n)?e[n].push(t):si(e,n,[t])});function nl(e,t,n,r){e=Ql(e)?e:Cd(e),n=n&&!r?Z(n):0;var i=e.length;return n<0&&(n=P(i+n,0)),Cu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Dn(e,t,n)>-1}var rl=W(function(e,t,n){var r=-1,i=typeof t==`function`,a=Ql(e)?O(e.length):[];return hi(e,function(e){a[++r]=i?un(t,e,n):Fi(e,t,n)}),a}),il=Qa(function(e,t,n){si(e,n,t)});function al(e,t){return(q(e)?B:Zi)(e,G(t,3))}function ol(e,t,r,i){return e==null?[]:(q(t)||(t=t==null?[]:[t]),r=i?n:r,q(r)||(r=r==null?[]:[r]),ra(e,t,r))}var sl=Qa(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function cl(e,t,n){var r=q(e)?yn:Nn,i=arguments.length<3;return r(e,G(t,4),n,i,hi)}function ll(e,t,n){var r=q(e)?bn:Nn,i=arguments.length<3;return r(e,G(t,4),n,i,gi)}function ul(e,t){return(q(e)?hn:bi)(e,Al(G(t,3)))}function dl(e){return(q(e)?Qr:fa)(e)}function fl(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),(q(e)?$r:pa)(e,t)}function pl(e){return(q(e)?ei:_a)(e)}function ml(e){if(e==null)return 0;if(Ql(e))return Cu(e)?ar(e):e.length;var t=K(e);return t==ie||t==de?e.size:Ji(e).length}function hl(e,t,r){var i=q(e)?xn:ya;return r&&Xo(e,t,r)&&(t=n),i(e,G(t,3))}var gl=W(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),ra(e,U(t,1),[])}),_l=Nt||function(){return R.Date.now()};function vl(e,t){if(typeof t!=`function`)throw new ut(r);return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function yl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,So(e,f,n,n,n,n,t)}function bl(e,t){var i;if(typeof t!=`function`)throw new ut(r);return e=Z(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var xl=W(function(e,t,n){var r=o;if(n.length){var i=er(n,Po(xl));r|=u}return So(e,r,t,n,i)}),Sl=W(function(e,t,n){var r=o|s;if(n.length){var i=er(n,Po(Sl));r|=u}return So(t,r,e,n,i)});function Cl(e,t,r){t=r?n:t;var i=So(e,c,n,n,n,n,n,t);return i.placeholder=Cl.placeholder,i}function wl(e,t,r){t=r?n:t;var i=So(e,l,n,n,n,n,n,t);return i.placeholder=wl.placeholder,i}function Tl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new ut(r);t=Pu(t)||0,Y(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?P(Pu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ms(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?L(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=_l();if(v(e))return b(e);l=ms(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&La(l),d=0,a=u=o=l=n}function ee(){return l===n?c:b(_l())}function S(){var e=_l(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return La(l),l=ms(y,t),h(u)}return l===n&&(l=ms(y,t)),c}return S.cancel=x,S.flush=ee,S}var El=W(function(e,t){return pi(e,1,t)}),Dl=W(function(e,t,n){return pi(e,Pu(t)||0,n)});function Ol(e){return So(e,m)}function kl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new ut(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(kl.Cache||Ir),n}kl.Cache=Ir;function Al(e){if(typeof e!=`function`)throw new ut(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function jl(e){return bl(2,e)}var Ml=Fa(function(e,t){t=t.length==1&&q(t[0])?B(t[0],zn(G())):B(U(t,1),zn(G()));var n=t.length;return W(function(r){for(var i=-1,a=L(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return un(e,this,r)})}),Nl=W(function(e,t){return So(e,u,n,t,er(t,Po(Nl)))}),Pl=W(function(e,t){return So(e,d,n,t,er(t,Po(Pl)))}),Fl=ko(function(e,t){return So(e,p,n,n,n,t)});function Il(e,t){if(typeof e!=`function`)throw new ut(r);return t=t===n?t:Z(t),W(e,t)}function Ll(e,t){if(typeof e!=`function`)throw new ut(r);return t=t==null?0:P(Z(t),0),W(function(n){var r=n[t],i=Ia(n,0,t);return r&&vn(i,r),un(e,this,i)})}function Rl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new ut(r);return Y(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),Tl(e,t,{leading:i,maxWait:t,trailing:a})}function zl(e){return yl(e,1)}function Bl(e,t){return Nl(Na(t),e)}function Vl(){if(!arguments.length)return[];var e=arguments[0];return q(e)?e:[e]}function Hl(e){return ui(e,4)}function Ul(e,t){return t=typeof t==`function`?t:n,ui(e,4,t)}function Wl(e){return ui(e,5)}function Gl(e,t){return t=typeof t==`function`?t:n,ui(e,5,t)}function Kl(e,t){return t==null||fi(e,t,$(t))}function ql(e,t){return e===t||e!==e&&t!==t}var Jl=_o(ki),Yl=_o(function(e,t){return e>=t}),Xl=Ii(function(){return arguments}())?Ii:function(e){return X(e)&&N.call(e,`callee`)&&!Et.call(e,`callee`)},q=O.isArray,Zl=rn?zn(rn):Li;function Ql(e){return e!=null&&uu(e.length)&&!cu(e)}function J(e){return X(e)&&Ql(e)}function $l(e){return e===!0||e===!1||X(e)&&Oi(e)==T}var eu=Rt||jf,tu=an?zn(an):Ri;function nu(e){return X(e)&&e.nodeType===1&&!yu(e)}function ru(e){if(e==null)return!0;if(Ql(e)&&(q(e)||typeof e==`string`||typeof e.splice==`function`||eu(e)||Tu(e)||Xl(e)))return!e.length;var t=K(e);if(t==ie||t==de)return!e.size;if(ns(e))return!Ji(e).length;for(var n in e)if(N.call(e,n))return!1;return!0}function iu(e,t){return zi(e,t)}function au(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?zi(e,t,n,r):!!i}function ou(e){if(!X(e))return!1;var t=Oi(e);return t==ne||t==te||typeof e.message==`string`&&typeof e.name==`string`&&!yu(e)}function su(e){return typeof e==`number`&&Vt(e)}function cu(e){if(!Y(e))return!1;var t=Oi(e);return t==D||t==re||t==w||t==le}function lu(e){return typeof e==`number`&&e==Z(e)}function uu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function Y(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function X(e){return typeof e==`object`&&!!e}var du=on?zn(on):Vi;function fu(e,t){return e===t||Hi(e,t,Io(t))}function pu(e,t,r){return r=typeof r==`function`?r:n,Hi(e,t,Io(t),r)}function mu(e){return vu(e)&&e!=+e}function hu(e){if(ts(e))throw new at(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Ui(e)}function gu(e){return e===null}function _u(e){return e==null}function vu(e){return typeof e==`number`||X(e)&&Oi(e)==ae}function yu(e){if(!X(e)||Oi(e)!=se)return!1;var t=wt(e);if(t===null)return!0;var n=N.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&pt.call(n)==_t}var bu=sn?zn(sn):Wi;function xu(e){return lu(e)&&e>=-g&&e<=g}var Su=cn?zn(cn):Gi;function Cu(e){return typeof e==`string`||!q(e)&&X(e)&&Oi(e)==fe}function wu(e){return typeof e==`symbol`||X(e)&&Oi(e)==pe}var Tu=ln?zn(ln):Ki;function Eu(e){return e===n}function Du(e){return X(e)&&K(e)==he}function Ou(e){return X(e)&&Oi(e)==ge}var ku=_o(Xi),Au=_o(function(e,t){return e<=t});function ju(e){if(!e)return[];if(Ql(e))return Cu(e)?or(e):Ja(e);if(kt&&e[kt])return Zn(e[kt]());var t=K(e);return(t==ie?Qn:t==de?tr:Cd)(e)}function Mu(e){return e?(e=Pu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Z(e){var t=Mu(e),n=t%1;return t===t?n?t-n:t:0}function Nu(e){return e?li(Z(e),0,y):0}function Pu(e){if(typeof e==`number`)return e;if(wu(e))return v;if(Y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Rn(e);var n=k.test(e);return n||et.test(e)?Xt(e.slice(2),n?2:8):Qe.test(e)?v:+e}function Fu(e){return Ya(e,ad(e))}function Iu(e){return e?li(Z(e),-g,g):e===0?e:0}function Q(e){return e==null?``:wa(e)}var Lu=$a(function(e,t){if(ns(t)||Ql(t)){Ya(t,$(t),e);return}for(var n in t)N.call(t,n)&&ni(e,n,t[n])}),Ru=$a(function(e,t){Ya(t,ad(t),e)}),zu=$a(function(e,t,n,r){Ya(t,ad(t),e,r)}),Bu=$a(function(e,t,n,r){Ya(t,$(t),e,r)}),Vu=ko(ci);function Hu(e,t){var n=vr(e);return t==null?n:ai(n,t)}var Uu=W(function(e,t){e=A(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Xo(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||ql(d,dt[u])&&!N.call(e,u))&&(e[u]=o[u])}return e}),Wu=W(function(e){return e.push(n,wo),un(ld,n,e)});function Gu(e,t){return Tn(e,G(t,3),Ci)}function Ku(e,t){return Tn(e,G(t,3),wi)}function qu(e,t){return e==null?e:xi(e,G(t,3),ad)}function Ju(e,t){return e==null?e:Si(e,G(t,3),ad)}function Yu(e,t){return e&&Ci(e,G(t,3))}function Xu(e,t){return e&&wi(e,G(t,3))}function Zu(e){return e==null?[]:Ti(e,$(e))}function Qu(e){return e==null?[]:Ti(e,ad(e))}function $u(e,t,r){var i=e==null?n:Ei(e,t);return i===n?r:i}function ed(e,t){return e!=null&&Uo(e,t,Ai)}function td(e,t){return e!=null&&Uo(e,t,ji)}var nd=uo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=gt.call(t)),e[t]=n},lf(pf)),rd=uo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=gt.call(t)),N.call(e,t)?e[t].push(n):e[t]=[n]},G),id=W(Fi);function $(e){return Ql(e)?Zr(e):Ji(e)}function ad(e){return Ql(e)?Zr(e,!0):Yi(e)}function od(e,t){var n={};return t=G(t,3),Ci(e,function(e,r,i){si(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=G(t,3),Ci(e,function(e,r,i){si(n,r,t(e,r,i))}),n}var cd=$a(function(e,t,n){ea(e,t,n)}),ld=$a(function(e,t,n,r){ea(e,t,n,r)}),ud=ko(function(e,t){var n={};if(e==null)return n;var r=!1;t=B(t,function(t){return t=Pa(t,e),r||=t.length>1,t}),Ya(e,jo(e),n),r&&(n=ui(n,7,To));for(var i=t.length;i--;)Ea(n,t[i]);return n});function dd(e,t){return pd(e,Al(G(t)))}var fd=ko(function(e,t){return e==null?{}:ia(e,t)});function pd(e,t){if(e==null)return{};var n=B(jo(e),function(e){return[e]});return t=G(t),aa(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=Pa(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[bs(t[i])];o===n&&(i=a,o=r),e=cu(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:ma(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:ma(e,t,r,i)}var _d=xo($),vd=xo(ad);function yd(e,t,n){var r=q(e),i=r||eu(e)||Tu(e);if(t=G(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Y(e)&&cu(a)?vr(wt(e)):{}}return(i?fn:Ci)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||Ea(e,t)}function xd(e,t,n){return e==null?e:Da(e,t,Na(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Da(e,t,Na(r),i)}function Cd(e){return e==null?[]:Bn(e,$(e))}function wd(e){return e==null?[]:Bn(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Pu(r),r=r===r?r:0),t!==n&&(t=Pu(t),t=t===t?t:0),li(Pu(e),t,r)}function Ed(e,t,r){return t=Mu(t),r===n?(r=t,t=0):r=Mu(r),e=Pu(e),Mi(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Xo(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Mu(e),t===n?(t=e,e=0):t=Mu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Jt();return L(e+a*(t-e+Yt(`1e-`+((a+``).length-1))),t)}return la(e,t)}var Od=io(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf(Q(e).toLowerCase())}function Ad(e){return e=Q(e),e&&e.replace(nt,Gn).replace(Bt,``)}function jd(e,t,r){e=Q(e),t=wa(t);var i=e.length;r=r===n?i:li(Z(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=Q(e),e&&Pe.test(e)?e.replace(Me,Kn):e}function Nd(e){return e=Q(e),e&&He.test(e)?e.replace(Ve,`\\$&`):e}var Pd=io(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=io(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=ro(`toLowerCase`);function Ld(e,t,n){e=Q(e),t=Z(t);var r=t?ar(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return mo(It(i),n)+e+mo(Ft(i),n)}function Rd(e,t,n){e=Q(e),t=Z(t);var r=t?ar(e):0;return t&&r<t?e+mo(t-r,n):e}function zd(e,t,n){e=Q(e),t=Z(t);var r=t?ar(e):0;return t&&r<t?mo(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&=+t,qt(Q(e).replace(Ue,``),t||0)}function Vd(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),da(Q(e),t)}function Hd(){var e=arguments,t=Q(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=io(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Xo(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=Q(e),e&&(typeof t==`string`||t!=null&&!bu(t))&&(t=wa(t),!t&&Yn(e))?Ia(or(e),0,r):e.split(t,r)):[]}var Gd=io(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=Q(e),n=n==null?0:li(Z(n),0,e.length),t=wa(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=V.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Q(e),t=zu({},t,i,Co);var a=zu({},t.imports,i.imports,Co),o=$(a),s=Bn(a,o),c,l,u=0,d=t.interpolate||rt,f=`__p += '`,p=ct((t.escape||rt).source+`|`+d.source+`|`+(d===Le?Xe:rt).source+`|`+(t.evaluate||rt).source+`|$`,`g`),m=`//# sourceURL=`+(N.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Gt+`]`)+`
|
|
17
|
+
`;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(it,qn),n&&(c=!0,f+=`' +
|
|
18
|
+
__e(`+n+`) +
|
|
19
|
+
'`),a&&(l=!0,f+=`';
|
|
20
|
+
`+a+`;
|
|
21
|
+
__p += '`),r&&(f+=`' +
|
|
22
|
+
((__t = (`+r+`)) == null ? '' : __t) +
|
|
23
|
+
'`),u=o+t.length,t}),f+=`';
|
|
24
|
+
`;var h=N.call(t,`variable`)&&t.variable;if(!h)f=`with (obj) {
|
|
25
|
+
`+f+`
|
|
26
26
|
}
|
|
27
|
-
`;else if(
|
|
28
|
-
`+(
|
|
29
|
-
`)
|
|
27
|
+
`;else if(Je.test(h))throw new at("Invalid `variable` option passed into `_.template`");f=(l?f.replace(Oe,``):f).replace(ke,`$1`).replace(Ae,`$1;`),f=`function(`+(h||`obj`)+`) {
|
|
28
|
+
`+(h?``:`obj || (obj = {});
|
|
29
|
+
`)+`var __t, __p = ''`+(c?`, __e = _.escape`:``)+(l?`, __j = Array.prototype.join;
|
|
30
30
|
function print() { __p += __j.call(arguments, '') }
|
|
31
31
|
`:`;
|
|
32
|
-
`)+
|
|
33
|
-
}`;var J=cf(function(){return se(c,S+"return "+I).apply(r,l)});if(J.source=I,qo(J))throw J;return J}function y_(e){return ae(e).toLowerCase()}function I_(e){return ae(e).toUpperCase()}function A_(e,t,n){if(e=ae(e),e&&(n||t===r))return vu(e);if(!e||!(t=nt(t)))return e;var i=wt(e),u=wt(t),c=wu(i,u),l=Eu(i,u)+1;return Jt(i,c,l).join("")}function R_(e,t,n){if(e=ae(e),e&&(n||t===r))return e.slice(0,yu(e)+1);if(!e||!(t=nt(t)))return e;var i=wt(e),u=Eu(i,wt(t))+1;return Jt(i,0,u).join("")}function L_(e,t,n){if(e=ae(e),e&&(n||t===r))return e.replace(zi,"");if(!e||!(t=nt(t)))return e;var i=wt(e),u=wu(i,wt(t));return Jt(i,u).join("")}function M_(e,t){var n=ce,i=ie;if(we(t)){var u="separator"in t?t.separator:u;n="length"in t?Z(t.length):n,i="omission"in t?nt(t.omission):i}e=ae(e);var c=e.length;if(An(e)){var l=wt(e);c=l.length}if(n>=c)return e;var h=n-Rn(i);if(h<1)return i;var m=l?Jt(l,0,h).join(""):e.slice(0,h);if(u===r)return m+i;if(l&&(h+=m.length-h),Ko(u)){if(e.slice(h).search(u)){var E,T=m;for(u.global||(u=ao(u.source,ae(Ys.exec(u))+"g")),u.lastIndex=0;E=u.exec(T);)var I=E.index;m=m.slice(0,I===r?h:I)}}else if(e.indexOf(nt(u),h)!=h){var L=m.lastIndexOf(u);L>-1&&(m=m.slice(0,L))}return m+i}function O_(e){return e=ae(e),e&&Wc.test(e)?e.replace(Cs,rh):e}var b_=Sn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Jo=ca("toUpperCase");function ff(e,t,n){return e=ae(e),t=n?r:t,t===r?Vl(e)?sh(e):Bl(e):e.match(t)||[]}var cf=X(function(e,t){try{return et(e,r,t)}catch(n){return qo(n)?n:new B(n)}}),x_=Pt(function(e,t){return at(t,function(n){n=Ot(n),$t(e,n,Go(e[n],e))}),e});function D_(e){var t=e==null?0:e.length,n=P();return e=t?pe(e,function(i){if(typeof i[1]!="function")throw new ft(g);return[n(i[0]),i[1]]}):[],X(function(i){for(var u=-1;++u<t;){var c=e[u];if(et(c[0],this,i))return et(c[1],this,i)}})}function S_(e){return rd(lt(e,U))}function Xo(e){return function(){return e}}function U_(e,t){return e==null||e!==e?t:e}var $_=ha(),N_=ha(!0);function Je(e){return e}function Vo(e){return Hu(typeof e=="function"?e:lt(e,U))}function P_(e){return Gu(lt(e,U))}function C_(e,t){return zu(e,lt(t,U))}var F_=X(function(e,t){return function(n){return Vn(n,e,t)}}),W_=X(function(e,t){return function(n){return Vn(e,n,t)}});function jo(e,t,n){var i=$e(t),u=Xr(t,i);n==null&&!(we(t)&&(u.length||!i.length))&&(n=t,t=e,e=this,u=Xr(t,$e(t)));var c=!(we(n)&&"chain"in n)||!!n.chain,l=Ft(e);return at(u,function(h){var m=t[h];e[h]=m,l&&(e.prototype[h]=function(){var E=this.__chain__;if(c||E){var T=e(this.__wrapped__),I=T.__actions__=Ke(this.__actions__);return I.push({func:m,args:arguments,thisArg:e}),T.__chain__=E,T}return m.apply(e,Gt([this.value()],arguments))})}),e}function Y_(){return Ce._===this&&(Ce._=hh),this}function es(){}function k_(e){return e=Z(e),X(function(t){return qu(t,e)})}var H_=Do(pe),B_=Do(du),G_=Do(to);function lf(e){return Fo(e)?no(Ot(e)):Ed(e)}function z_(e){return function(t){return e==null?r:cn(e,t)}}var q_=ga(),K_=ga(!0);function ts(){return[]}function ns(){return!1}function Q_(){return{}}function Z_(){return""}function J_(){return!0}function X_(e,t){if(e=Z(e),e<1||e>R)return[];var n=V,i=Ye(e,V);t=P(t),e-=V;for(var u=oo(i,t);++n<e;)t(n);return u}function V_(e){return q(e)?pe(e,Ot):rt(e)?[e]:Ke(xa(ae(e)))}function j_(e){var t=++ch;return ae(e)+t}var e0=ri(function(e,t){return e+t},0),t0=So("ceil"),n0=ri(function(e,t){return e/t},1),r0=So("floor");function i0(e){return e&&e.length?Jr(e,Je,_o):r}function o0(e,t){return e&&e.length?Jr(e,P(t,2),_o):r}function s0(e){return mu(e,Je)}function u0(e,t){return mu(e,P(t,2))}function a0(e){return e&&e.length?Jr(e,Je,To):r}function f0(e,t){return e&&e.length?Jr(e,P(t,2),To):r}var c0=ri(function(e,t){return e*t},1),l0=So("round"),h0=ri(function(e,t){return e-t},0);function d0(e){return e&&e.length?io(e,Je):0}function g0(e,t){return e&&e.length?io(e,P(t,2)):0}return a.after=Pp,a.ary=ka,a.assign=Im,a.assignIn=tf,a.assignInWith=mi,a.assignWith=Am,a.at=Rm,a.before=Ha,a.bind=Go,a.bindAll=x_,a.bindKey=Ba,a.castArray=Qp,a.chain=Fa,a.chunk=rg,a.compact=ig,a.concat=og,a.cond=D_,a.conforms=S_,a.constant=Xo,a.countBy=dp,a.create=Lm,a.curry=Ga,a.curryRight=za,a.debounce=qa,a.defaults=Mm,a.defaultsDeep=Om,a.defer=Cp,a.delay=Fp,a.difference=sg,a.differenceBy=ug,a.differenceWith=ag,a.drop=fg,a.dropRight=cg,a.dropRightWhile=lg,a.dropWhile=hg,a.fill=dg,a.filter=pp,a.flatMap=vp,a.flatMapDeep=wp,a.flatMapDepth=Ep,a.flatten=$a,a.flattenDeep=gg,a.flattenDepth=pg,a.flip=Wp,a.flow=$_,a.flowRight=N_,a.fromPairs=mg,a.functions=Nm,a.functionsIn=Pm,a.groupBy=Tp,a.initial=vg,a.intersection=wg,a.intersectionBy=Eg,a.intersectionWith=Tg,a.invert=Fm,a.invertBy=Wm,a.invokeMap=Ip,a.iteratee=Vo,a.keyBy=Ap,a.keys=$e,a.keysIn=Ze,a.map=ci,a.mapKeys=km,a.mapValues=Hm,a.matches=P_,a.matchesProperty=C_,a.memoize=hi,a.merge=Bm,a.mergeWith=nf,a.method=F_,a.methodOf=W_,a.mixin=jo,a.negate=di,a.nthArg=k_,a.omit=Gm,a.omitBy=zm,a.once=Yp,a.orderBy=Rp,a.over=H_,a.overArgs=kp,a.overEvery=B_,a.overSome=G_,a.partial=zo,a.partialRight=Ka,a.partition=Lp,a.pick=qm,a.pickBy=rf,a.property=lf,a.propertyOf=z_,a.pull=Rg,a.pullAll=Pa,a.pullAllBy=Lg,a.pullAllWith=Mg,a.pullAt=Og,a.range=q_,a.rangeRight=K_,a.rearg=Hp,a.reject=bp,a.remove=bg,a.rest=Bp,a.reverse=Ho,a.sampleSize=Dp,a.set=Qm,a.setWith=Zm,a.shuffle=Sp,a.slice=xg,a.sortBy=Np,a.sortedUniq=Cg,a.sortedUniqBy=Fg,a.split=v_,a.spread=Gp,a.tail=Wg,a.take=Yg,a.takeRight=kg,a.takeRightWhile=Hg,a.takeWhile=Bg,a.tap=ip,a.throttle=zp,a.thru=fi,a.toArray=Va,a.toPairs=of,a.toPairsIn=sf,a.toPath=V_,a.toPlainObject=ef,a.transform=Jm,a.unary=qp,a.union=Gg,a.unionBy=zg,a.unionWith=qg,a.uniq=Kg,a.uniqBy=Qg,a.uniqWith=Zg,a.unset=Xm,a.unzip=Bo,a.unzipWith=Ca,a.update=Vm,a.updateWith=jm,a.values=Nn,a.valuesIn=e_,a.without=Jg,a.words=ff,a.wrap=Kp,a.xor=Xg,a.xorBy=Vg,a.xorWith=jg,a.zip=ep,a.zipObject=tp,a.zipObjectDeep=np,a.zipWith=rp,a.entries=of,a.entriesIn=sf,a.extend=tf,a.extendWith=mi,jo(a,a),a.add=e0,a.attempt=cf,a.camelCase=i_,a.capitalize=uf,a.ceil=t0,a.clamp=t_,a.clone=Zp,a.cloneDeep=Xp,a.cloneDeepWith=Vp,a.cloneWith=Jp,a.conformsTo=jp,a.deburr=af,a.defaultTo=U_,a.divide=n0,a.endsWith=o_,a.eq=Tt,a.escape=s_,a.escapeRegExp=u_,a.every=gp,a.find=mp,a.findIndex=Sa,a.findKey=bm,a.findLast=_p,a.findLastIndex=Ua,a.findLastKey=xm,a.floor=r0,a.forEach=Wa,a.forEachRight=Ya,a.forIn=Dm,a.forInRight=Sm,a.forOwn=Um,a.forOwnRight=$m,a.get=Qo,a.gt=em,a.gte=tm,a.has=Cm,a.hasIn=Zo,a.head=Na,a.identity=Je,a.includes=yp,a.indexOf=_g,a.inRange=n_,a.invoke=Ym,a.isArguments=dn,a.isArray=q,a.isArrayBuffer=nm,a.isArrayLike=Qe,a.isArrayLikeObject=ye,a.isBoolean=rm,a.isBuffer=Xt,a.isDate=im,a.isElement=om,a.isEmpty=sm,a.isEqual=um,a.isEqualWith=am,a.isError=qo,a.isFinite=fm,a.isFunction=Ft,a.isInteger=Qa,a.isLength=gi,a.isMap=Za,a.isMatch=cm,a.isMatchWith=lm,a.isNaN=hm,a.isNative=dm,a.isNil=pm,a.isNull=gm,a.isNumber=Ja,a.isObject=we,a.isObjectLike=Ee,a.isPlainObject=ir,a.isRegExp=Ko,a.isSafeInteger=mm,a.isSet=Xa,a.isString=pi,a.isSymbol=rt,a.isTypedArray=$n,a.isUndefined=_m,a.isWeakMap=vm,a.isWeakSet=wm,a.join=yg,a.kebabCase=a_,a.last=dt,a.lastIndexOf=Ig,a.lowerCase=f_,a.lowerFirst=c_,a.lt=Em,a.lte=Tm,a.max=i0,a.maxBy=o0,a.mean=s0,a.meanBy=u0,a.min=a0,a.minBy=f0,a.stubArray=ts,a.stubFalse=ns,a.stubObject=Q_,a.stubString=Z_,a.stubTrue=J_,a.multiply=c0,a.nth=Ag,a.noConflict=Y_,a.noop=es,a.now=li,a.pad=l_,a.padEnd=h_,a.padStart=d_,a.parseInt=g_,a.random=r_,a.reduce=Mp,a.reduceRight=Op,a.repeat=p_,a.replace=m_,a.result=Km,a.round=l0,a.runInContext=p,a.sample=xp,a.size=Up,a.snakeCase=__,a.some=$p,a.sortedIndex=Dg,a.sortedIndexBy=Sg,a.sortedIndexOf=Ug,a.sortedLastIndex=$g,a.sortedLastIndexBy=Ng,a.sortedLastIndexOf=Pg,a.startCase=w_,a.startsWith=E_,a.subtract=h0,a.sum=d0,a.sumBy=g0,a.template=T_,a.times=X_,a.toFinite=Wt,a.toInteger=Z,a.toLength=ja,a.toLower=y_,a.toNumber=gt,a.toSafeInteger=ym,a.toString=ae,a.toUpper=I_,a.trim=A_,a.trimEnd=R_,a.trimStart=L_,a.truncate=M_,a.unescape=O_,a.uniqueId=j_,a.upperCase=b_,a.upperFirst=Jo,a.each=Wa,a.eachRight=Ya,a.first=Na,jo(a,(function(){var e={};return Lt(a,function(t,n){fe.call(a.prototype,n)||(e[n]=t)}),e})(),{chain:!1}),a.VERSION=f,at(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){a[e].placeholder=a}),at(["drop","take"],function(e,t){te.prototype[e]=function(n){n=n===r?1:De(Z(n),0);var i=this.__filtered__&&!t?new te(this):this.clone();return i.__filtered__?i.__takeCount__=Ye(n,i.__takeCount__):i.__views__.push({size:Ye(n,V),type:e+(i.__dir__<0?"Right":"")}),i},te.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),at(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==W||n==M;te.prototype[e]=function(u){var c=this.clone();return c.__iteratees__.push({iteratee:P(u,3),type:n}),c.__filtered__=c.__filtered__||i,c}}),at(["head","last"],function(e,t){var n="take"+(t?"Right":"");te.prototype[e]=function(){return this[n](1).value()[0]}}),at(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");te.prototype[e]=function(){return this.__filtered__?new te(this):this[n](1)}}),te.prototype.compact=function(){return this.filter(Je)},te.prototype.find=function(e){return this.filter(e).head()},te.prototype.findLast=function(e){return this.reverse().find(e)},te.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new te(this):this.map(function(n){return Vn(n,e,t)})}),te.prototype.reject=function(e){return this.filter(di(P(e)))},te.prototype.slice=function(e,t){e=Z(e);var n=this;return n.__filtered__&&(e>0||t<0)?new te(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=Z(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},te.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},te.prototype.toArray=function(){return this.take(V)},Lt(te.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),u=a[i?"take"+(t=="last"?"Right":""):t],c=i||/^find/.test(t);u&&(a.prototype[t]=function(){var l=this.__wrapped__,h=i?[1]:arguments,m=l instanceof te,E=h[0],T=m||q(l),I=function(j){var re=u.apply(a,Gt([j],h));return i&&L?re[0]:re};T&&n&&typeof E=="function"&&E.length!=1&&(m=T=!1);var L=this.__chain__,S=!!this.__actions__.length,C=c&&!L,J=m&&!S;if(!c&&T){l=J?l:new te(this);var F=e.apply(l,h);return F.__actions__.push({func:fi,args:[I],thisArg:r}),new ct(F,L)}return C&&J?e.apply(this,h):(F=this.thru(I),C?i?F.value()[0]:F.value():F)})}),at(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var u=arguments;if(i&&!this.__chain__){var c=this.value();return t.apply(q(c)?c:[],u)}return this[n](function(l){return t.apply(q(l)?l:[],u)})}}),Lt(te.prototype,function(e,t){var n=a[t];if(n){var i=n.name+"";fe.call(bn,i)||(bn[i]=[]),bn[i].push({name:t,func:n})}}),bn[ni(r,he).name]=[{name:"wrapper",func:r}],te.prototype.clone=Oh,te.prototype.reverse=bh,te.prototype.value=xh,a.prototype.at=op,a.prototype.chain=sp,a.prototype.commit=up,a.prototype.next=ap,a.prototype.plant=cp,a.prototype.reverse=lp,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=hp,a.prototype.first=a.prototype.head,zn&&(a.prototype[zn]=fp),a}),Ln=uh();on?((on.exports=Ln)._=Ln,Xi._=Ln):Ce._=Ln}).call(tc)})(Fn,Fn.exports)),Fn.exports}nc();const rc="1.7.0";class Ti{constructor(o){this.debug=!1,this.debug=o?.debug??!1,this.appName=o?.appName,this.appVersion=o?.appVersion}log(o,...r){this.debug&&this.print(o,"info",r)}warn(o,...r){this.print(o,"warn",r)}error(o,...r){this.print(o,"error",r)}print(o,r,f){const g=[`[${["MeltingSpot",this.appName,this.appVersion].filter(Boolean).join(" - ")}] ${o}`];f.length&&g.push(...f),console[r](...g)}}const ic=new Ti({appName:"Core SDK",appVersion:rc}),nn=s=>s.toLowerCase().replace(/[^a-z0-9-]/g,""),oc=["/user"],sc=({deeplink:s,spotId:o})=>{try{const r=new URL(s,"https://unused.com");let f=r.pathname;return r.search&&(f+=r.search),r.hash&&(f+=r.hash),oc.some(d=>f.startsWith(d))||(f=`/spot/${o}/${wf(f)}`),f}catch(r){return ic.warn("Failed to parse deeplink URL",r),null}},uc=[/(^|\.)meltingspot\.io$/i],yi=s=>{let o;try{const _=sr(s);o=new URL(_)}catch{throw new Error(`Invalid baseURL: ${s}`)}const r=o.hostname==="localhost"||o.hostname==="127.0.0.1",f=o.protocol==="https:",d=uc.some(_=>_.test(o.hostname));if(!r&&(!f||!d))throw new Error(`Untrusted baseURL origin: ${o.origin}`);return o.origin},ac={msApiBaseUrl:"https://openapi.meltingspot.io/",msCommunityWebBaseUrl:"https://go.meltingspot.io/",ssoToken:void 0,spotId:"",autoJoin:!1,rootDocument:globalThis.document};class Se{constructor(){this.configuration=ac}static getInstance(){return Se.instance||(Se.instance=new Se),Se.instance}setConfiguration(o){this.configuration={...this.configuration,...o}}static getConfiguration(o={}){return{...Se.getInstance().configuration,...o}}}const Ts="%[a-f0-9]{2}",ys=new RegExp("("+Ts+")|([^%]+?)","gi"),Is=new RegExp("("+Ts+")+","gi");function Ii(s,o){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;o=o||1;const r=s.slice(0,o),f=s.slice(o);return Array.prototype.concat.call([],Ii(r),Ii(f))}function fc(s){try{return decodeURIComponent(s)}catch{let o=s.match(ys)||[];for(let r=1;r<o.length;r++)s=Ii(o,r).join(""),o=s.match(ys)||[];return s}}function cc(s){const o={"%FE%FF":"��","%FF%FE":"��"};let r=Is.exec(s);for(;r;){try{o[r[0]]=decodeURIComponent(r[0])}catch{const d=fc(r[0]);d!==r[0]&&(o[r[0]]=d)}r=Is.exec(s)}o["%C2"]="�";const f=Object.keys(o);for(const d of f)s=s.replace(new RegExp(d,"g"),o[d]);return s}function lc(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return decodeURIComponent(s)}catch{return cc(s)}}function hc(s,o){const r={};if(Array.isArray(o))for(const f of o){const d=Object.getOwnPropertyDescriptor(s,f);d?.enumerable&&Object.defineProperty(r,f,d)}else for(const f of Reflect.ownKeys(s)){const d=Object.getOwnPropertyDescriptor(s,f);if(d.enumerable){const _=s[f];o(f,_,s)&&Object.defineProperty(r,f,d)}}return r}function As(s,o){if(!(typeof s=="string"&&typeof o=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(s===""||o==="")return[];const r=s.indexOf(o);return r===-1?[]:[s.slice(0,r),s.slice(r+o.length)]}const dc=s=>s==null,gc=s=>encodeURIComponent(s).replaceAll(/[!'()*]/g,o=>`%${o.charCodeAt(0).toString(16).toUpperCase()}`),Ai=Symbol("encodeFragmentIdentifier");function pc(s){switch(s.arrayFormat){case"index":return o=>(r,f)=>{const d=r.length;return f===void 0||s.skipNull&&f===null||s.skipEmptyString&&f===""?r:f===null?[...r,[Ae(o,s),"[",d,"]"].join("")]:[...r,[Ae(o,s),"[",Ae(d,s),"]=",Ae(f,s)].join("")]};case"bracket":return o=>(r,f)=>f===void 0||s.skipNull&&f===null||s.skipEmptyString&&f===""?r:f===null?[...r,[Ae(o,s),"[]"].join("")]:[...r,[Ae(o,s),"[]=",Ae(f,s)].join("")];case"colon-list-separator":return o=>(r,f)=>f===void 0||s.skipNull&&f===null||s.skipEmptyString&&f===""?r:f===null?[...r,[Ae(o,s),":list="].join("")]:[...r,[Ae(o,s),":list=",Ae(f,s)].join("")];case"comma":case"separator":case"bracket-separator":{const o=s.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(f,d)=>d===void 0||s.skipNull&&d===null||s.skipEmptyString&&d===""?f:(d=d===null?"":d,f.length===0?[[Ae(r,s),o,Ae(d,s)].join("")]:[[f,Ae(d,s)].join(s.arrayFormatSeparator)])}default:return o=>(r,f)=>f===void 0||s.skipNull&&f===null||s.skipEmptyString&&f===""?r:f===null?[...r,Ae(o,s)]:[...r,[Ae(o,s),"=",Ae(f,s)].join("")]}}function mc(s){let o;switch(s.arrayFormat){case"index":return(r,f,d)=>{if(o=/\[(\d*)]$/.exec(r),r=r.replace(/\[\d*]$/,""),!o){d[r]=f;return}d[r]===void 0&&(d[r]={}),d[r][o[1]]=f};case"bracket":return(r,f,d)=>{if(o=/(\[])$/.exec(r),r=r.replace(/\[]$/,""),!o){d[r]=f;return}if(d[r]===void 0){d[r]=[f];return}d[r]=[...d[r],f]};case"colon-list-separator":return(r,f,d)=>{if(o=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!o){d[r]=f;return}if(d[r]===void 0){d[r]=[f];return}d[r]=[...d[r],f]};case"comma":case"separator":return(r,f,d)=>{const _=typeof f=="string"&&f.includes(s.arrayFormatSeparator),g=typeof f=="string"&&!_&&bt(f,s).includes(s.arrayFormatSeparator);f=g?bt(f,s):f;const y=_||g?f.split(s.arrayFormatSeparator).map(A=>bt(A,s)):f===null?f:bt(f,s);d[r]=y};case"bracket-separator":return(r,f,d)=>{const _=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!_){d[r]=f&&bt(f,s);return}const g=f===null?[]:bt(f,s).split(s.arrayFormatSeparator);if(d[r]===void 0){d[r]=g;return}d[r]=[...d[r],...g]};default:return(r,f,d)=>{if(d[r]===void 0){d[r]=f;return}d[r]=[...[d[r]].flat(),f]}}}function Rs(s){if(typeof s!="string"||s.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ae(s,o){return o.encode?o.strict?gc(s):encodeURIComponent(s):s}function bt(s,o){return o.decode?lc(s):s}function Ls(s){return Array.isArray(s)?s.sort():typeof s=="object"?Ls(Object.keys(s)).sort((o,r)=>Number(o)-Number(r)).map(o=>s[o]):s}function Ms(s){const o=s.indexOf("#");return o!==-1&&(s=s.slice(0,o)),s}function _c(s){let o="";const r=s.indexOf("#");return r!==-1&&(o=s.slice(r)),o}function Os(s,o,r){return r==="string"&&typeof s=="string"?s:typeof r=="function"&&typeof s=="string"?r(s):r==="boolean"&&s===null?!0:r==="boolean"&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")?s.toLowerCase()==="true":r==="boolean"&&s!==null&&(s.toLowerCase()==="1"||s.toLowerCase()==="0")?s.toLowerCase()==="1":r==="string[]"&&o.arrayFormat!=="none"&&typeof s=="string"?[s]:r==="number[]"&&o.arrayFormat!=="none"&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?[Number(s)]:r==="number"&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?Number(s):o.parseBooleans&&s!==null&&(s.toLowerCase()==="true"||s.toLowerCase()==="false")?s.toLowerCase()==="true":o.parseNumbers&&!Number.isNaN(Number(s))&&typeof s=="string"&&s.trim()!==""?Number(s):s}function Ri(s){s=Ms(s);const o=s.indexOf("?");return o===-1?"":s.slice(o+1)}function Li(s,o){o={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...o},Rs(o.arrayFormatSeparator);const r=mc(o),f=Object.create(null);if(typeof s!="string"||(s=s.trim().replace(/^[?#&]/,""),!s))return f;for(const d of s.split("&")){if(d==="")continue;const _=o.decode?d.replaceAll("+"," "):d;let[g,y]=As(_,"=");g===void 0&&(g=_),y=y===void 0?null:["comma","separator","bracket-separator"].includes(o.arrayFormat)?y:bt(y,o),r(bt(g,o),y,f)}for(const[d,_]of Object.entries(f))if(typeof _=="object"&&_!==null&&o.types[d]!=="string")for(const[g,y]of Object.entries(_)){const A=o.types[d]?o.types[d].replace("[]",""):void 0;_[g]=Os(y,o,A)}else typeof _=="object"&&_!==null&&o.types[d]==="string"?f[d]=Object.values(_).join(o.arrayFormatSeparator):f[d]=Os(_,o,o.types[d]);return o.sort===!1?f:(o.sort===!0?Object.keys(f).sort():Object.keys(f).sort(o.sort)).reduce((d,_)=>{const g=f[_];return d[_]=g&&typeof g=="object"&&!Array.isArray(g)?Ls(g):g,d},Object.create(null))}function bs(s,o){if(!s)return"";o={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...o},Rs(o.arrayFormatSeparator);const r=g=>o.skipNull&&dc(s[g])||o.skipEmptyString&&s[g]==="",f=pc(o),d={};for(const[g,y]of Object.entries(s))r(g)||(d[g]=y);const _=Object.keys(d);return o.sort!==!1&&_.sort(o.sort),_.map(g=>{const y=s[g];return y===void 0?"":y===null?Ae(g,o):Array.isArray(y)?y.length===0&&o.arrayFormat==="bracket-separator"?Ae(g,o)+"[]":y.reduce(f(g),[]).join("&"):Ae(g,o)+"="+Ae(y,o)}).filter(g=>g.length>0).join("&")}function xs(s,o){o={decode:!0,...o};let[r,f]=As(s,"#");return r===void 0&&(r=s),{url:r?.split("?")?.[0]??"",query:Li(Ri(s),o),...o&&o.parseFragmentIdentifier&&f?{fragmentIdentifier:bt(f,o)}:{}}}function Ds(s,o){o={encode:!0,strict:!0,[Ai]:!0,...o};const r=Ms(s.url).split("?")[0]||"",f=Ri(s.url),d={...Li(f,{sort:!1,...o}),...s.query};let _=bs(d,o);_&&=`?${_}`;let g=_c(s.url);if(typeof s.fragmentIdentifier=="string"){const y=new URL(r);y.hash=s.fragmentIdentifier,g=o[Ai]?y.hash:`#${s.fragmentIdentifier}`}return`${r}${_}${g}`}function Ss(s,o,r){r={parseFragmentIdentifier:!0,[Ai]:!1,...r};const{url:f,query:d,fragmentIdentifier:_}=xs(s,r);return Ds({url:f,query:hc(d,o),fragmentIdentifier:_},r)}function vc(s,o,r){const f=Array.isArray(o)?d=>!o.includes(d):(d,_)=>!o(d,_);return Ss(s,f,r)}const wc=Object.freeze(Object.defineProperty({__proto__:null,exclude:vc,extract:Ri,parse:Li,parseUrl:xs,pick:Ss,stringify:bs,stringifyUrl:Ds},Symbol.toStringTag,{value:"Module"}));class qe extends Error{constructor(o,r){super(`HTTP Error ${o}${r?`: ${r}`:""}`),this.code=o,this.name="HttpError",Object.setPrototypeOf(this,qe.prototype)}}var Re=(s=>(s.GET="GET",s.PATCH="PATCH",s.POST="POST",s))(Re||{});class Ec{constructor(){this.headers={}}setHeaders(o){this.headers=o}async get(o){try{const r=o.query?`${o.url}?${this.serializeQuery(o.query)}`:o.url,f=await fetch(r,{headers:{...this.headers,...o.headers,"Content-Type":"application/json"},...o.signal?{signal:o.signal}:{}});return f.ok?oe(await f.json()):G(new qe(f.status,await f.text()))}catch(r){const f=r instanceof Error?r.message:"Unknown error";return G(new qe(st.INTERNAL_SERVER_ERROR,f))}}async post(o){try{const r=await fetch(o.url,{method:"POST",headers:{...this.headers,...o.headers,"Content-Type":"application/json"},body:JSON.stringify(o.payload),...o.signal?{signal:o.signal}:{}});return r.ok?oe(await r.json()):G(new qe(r.status,await r.text()))}catch(r){const f=r instanceof Error?r.message:"Unknown error";return G(new qe(st.INTERNAL_SERVER_ERROR,f))}}async patch(o){try{const r=await fetch(o.url,{method:"PATCH",headers:{...this.headers,...o.headers,"Content-Type":"application/json"},body:JSON.stringify(o.payload),...o.signal?{signal:o.signal}:{}});return r.ok?oe(await r.json()):G(new qe(r.status,await r.text()))}catch(r){const f=r instanceof Error?r.message:"Unknown error";return G(new qe(st.INTERNAL_SERVER_ERROR,f))}}serializeQuery(o){if(typeof o=="string")return o;if(typeof o=="object")for(const r in o)o[r]===void 0&&delete o[r];return o=wc.stringify(o,{arrayFormat:"none"}),o}}const Tr={accessToken:{email:"/v1/auth/accessToken/email",sso:{jwt:"/v1/auth/accessToken/sso/jwt"}},refreshAccessToken:"/v1/auth/accessToken~refresh",password:{reset:"/v1/auth/password~reset"}};class Ht extends EventTarget{constructor(){super(),this.accessToken=null,this.refreshToken=null}static getInstance(){return Ht.instance||(Ht.instance=new Ht),Ht.instance}async loginWithPassword(o,r){const f=await this.callApi({endpoint:Tr.accessToken.email,method:"POST",body:{email:o,password:r},withSpotId:!0});if(f.isErr())return G(f.error);const{accessToken:d,refreshToken:_}=f.value;return this.setTokens(d.token,_.token),oe({accessToken:d.token,refreshToken:_.token})}async loginWithSsoToken(o){const r=await this.callApi({endpoint:Tr.accessToken.sso.jwt,method:"POST",body:{token:o},withSpotId:!0});if(r.isErr())return G(r.error);const{accessToken:f,refreshToken:d}=r.value;return this.setTokens(f.token,d.token),oe({accessToken:f.token,refreshToken:d.token})}loginWithAuthTokens(o,r){return this.setTokens(o,r),{accessToken:o,refreshToken:r}}resetPassword(o){return this.callApi({endpoint:Tr.password.reset,method:"POST",body:{email:o}})}async refresh(){const o=await this.callApi({endpoint:Tr.refreshAccessToken,method:"POST",body:{refreshToken:this.refreshToken}});if(o.isErr())return G(o.error);const{accessToken:r,refreshToken:f}=o.value;return this.setTokens(r.token,f.token),oe({accessToken:r.token,refreshToken:f.token})}async logout(){this.setTokens(null,null)}getAccessToken(){return this.accessToken}getRefreshToken(){return this.refreshToken}setTokens(o,r){if(this.accessToken!==o||this.refreshToken!==r){this.accessToken=o,this.refreshToken=r;const f=new CustomEvent("auth:tokens-updated",{detail:{accessToken:o,refreshToken:r}});this.dispatchEvent(f)}}async callApi(o){try{const{spotId:r,msApiBaseUrl:f}=Se.getConfiguration(),d=vi(o.endpoint,f),_={"Content-Type":"application/json",...o.headers};o.withSpotId&&r&&(_[Us.SpotId]=r);const g=await fetch(d,{method:o.method,body:o.body?JSON.stringify(o.body):void 0,headers:_});if(!g.ok)return G(new qe(g.status,g.statusText));if(g.status===st.NO_CONTENT)return oe(void 0);const y=await g.json();return oe(y)}catch(r){return G(new qe(st.INTERNAL_SERVER_ERROR,r instanceof Error?r.message:String(r)))}}}var Us=(s=>(s.Authorization="Authorization",s.SpotId="x-spotid",s))(Us||{});class It{constructor(){this.queue=[],this.isProcessing=!1,this.isPaused=!1,this.authService=Ht.getInstance(),this.httpService=new Ec}static getInstance(){return It.instance||(It.instance=new It),It.instance}static buildAuthenticatedRequest(o){const{msApiBaseUrl:r,spotId:f}=Se.getConfiguration(),d=vi(o,r),_=Ht.getInstance().getAccessToken();if(!_)return G(new Error("Not authenticated"));const g={"Content-Type":"application/json",Authorization:`Bearer ${_}`};return f&&(g["x-spotid"]=f),oe({url:d,headers:g})}static async stream(o,r,f){const{streamTransport:d}=Se.getConfiguration();if(d)return d({endpoint:o,body:r,signal:f});const _=It.buildAuthenticatedRequest(o);if(_.isErr())return G(_.error);const{url:g,headers:y}=_.value;try{const A=await fetch(g,{method:"POST",headers:y,...r!==void 0?{body:JSON.stringify(r)}:{},...f?{signal:f}:{}});if(!A.ok){const $=await A.text();return G(new Error(`HTTP ${A.status}: ${$}`))}return A.body?oe(A.body):G(new Error("Response body is empty"))}catch(A){const $=A instanceof Error?A.message:"Unknown error";return G(A instanceof Error?A:new Error($))}}get pendingCount(){return this.queue.length}enqueue(o){return new Promise(r=>{const f=async()=>{try{const d=await o();r(d)}catch(d){r(G(new qe(st.INTERNAL_SERVER_ERROR,d instanceof Error?d.message:"Unknown error")))}};this.queue.push(f),this.processQueue()})}async processQueue(){if(!this.isProcessing){this.isProcessing=!0;try{for(;!this.isPaused&&this.queue.length>0;){const o=this.queue.shift();if(!o)break;await o()}}finally{this.isProcessing=!1,!this.isPaused&&this.queue.length>0&&Promise.resolve().then(()=>this.processQueue())}}}pauseQueue(){this.isPaused=!0}resumeQueue(){const o=this.isPaused;this.isPaused=!1,o&&this.processQueue()}async call(o){return this.enqueue(async()=>{const r=async()=>{const{spotId:d,msApiBaseUrl:_}=Se.getConfiguration(),g={...o.options?.headers??{}};d&&(g["x-spotid"]=d);const y=this.authService.getAccessToken(),{requiresAuth:A=!0}=o;if(!y&&A)return G(new qe(st.UNAUTHORIZED));y&&(g.Authorization=`Bearer ${y}`);const $=vi(o.endpoint,_);switch(o.method){case Re.GET:return this.httpService.get({...o.options??{},headers:g,url:$});case Re.PATCH:return this.httpService.patch({...o.options??{},headers:g,url:$});case Re.POST:return this.httpService.post({...o.options??{},headers:g,url:$});default:return G(new qe(st.METHOD_NOT_ALLOWED,"Method not allowed"))}};let f=await r();if(f.isErr()&&f.error.code===st.UNAUTHORIZED){const d=await this.authService.refresh();if(d.isErr())return G(new qe(st.UNAUTHORIZED,d.error.message));f=await r()}return f})}}const At={playbooks:"/v1/playbooks",pages:s=>`/v1/playbooks/${s}/pages`,hotspots:(s,o)=>`/v1/playbooks/${s}/pages/${o}/hotspots`,hotspot:(s,o,r)=>`/v1/playbooks/${s}/pages/${o}/hotspots/${r}`,accessibleIntents:(s,o)=>`/v1/playbooks/${s}/pages/${o}/accessibleIntents`,intents:(s,o,r)=>`/v1/playbooks/${s}/pages/${o}/hotspots/${r}/intents`,intent:(s,o,r,f)=>`/v1/playbooks/${s}/pages/${o}/hotspots/${r}/intents/${f}`},yr=50;class gn{static getInstance(){return gn.instance||(gn.instance=new gn),gn.instance}constructor(){this.meltingSpotApi=It.getInstance()}async listPlaybooks(o){const r=await this.meltingSpotApi.call({method:Re.GET,endpoint:At.playbooks,options:{query:{page:o?.page??1,limit:o?.limit??yr,...o?.domain?{"domain[eq]":o.domain}:{}}}});return r.isErr()?G(r.error):oe(r.value)}async listPlaybookPages(o){const r=await this.meltingSpotApi.call({method:Re.GET,endpoint:At.pages(o.playbookId),options:{query:{page:o.page??1,limit:o.limit??yr,...o.url?{"url[eq]":o.url}:{}}}});return r.isErr()?G(r.error):oe(r.value)}async createPlaybookPage(o,r){const f=await this.meltingSpotApi.call({method:Re.POST,endpoint:At.pages(o.playbookId),options:{payload:r}});return f.isErr()?G(f.error):oe(f.value)}async listAccessiblePlaybookIntents(o){const r=await this.meltingSpotApi.call({method:Re.GET,endpoint:At.accessibleIntents(o.playbookId,o.pageId),options:{query:{...o.domain?{domain:o.domain}:{}}}});return r.isErr()?G(r.error):oe(r.value)}async listPlaybookHotspots(o){const r=await this.meltingSpotApi.call({method:Re.GET,endpoint:At.hotspots(o.playbookId,o.pageId),options:{query:{page:o.page??1,limit:o.limit??yr,...o.intentStatus?{"intentStatus[eq]":o.intentStatus}:{},...o.widgetType?{"widgetType[eq]":o.widgetType}:{}}}});return r.isErr()?G(r.error):oe(r.value)}async createPlaybookHotspot(o,r){const f=await this.meltingSpotApi.call({method:Re.POST,endpoint:At.hotspots(o.playbookId,o.pageId),options:{payload:r}});return f.isErr()?G(f.error):oe(f.value)}async updatePlaybookHotspot(o,r){const f=await this.meltingSpotApi.call({method:Re.PATCH,endpoint:At.hotspot(o.playbookId,o.pageId,o.hotspotId),options:{payload:r}});return f.isErr()?G(f.error):oe(f.value)}async listPlaybookIntents(o){const r=await this.meltingSpotApi.call({method:Re.GET,endpoint:At.intents(o.playbookId,o.pageId,o.hotspotId),options:{query:{page:o.page??1,limit:o.limit??yr,...o.status?{"status[eq]":o.status}:{}}}});return r.isErr()?G(r.error):oe(r.value)}async createPlaybookIntent(o,r){const f=await this.meltingSpotApi.call({method:Re.POST,endpoint:At.intents(o.playbookId,o.pageId,o.hotspotId),options:{payload:r}});return f.isErr()?G(f.error):oe(f.value)}async updatePlaybookIntent(o,r){const f=await this.meltingSpotApi.call({method:Re.PATCH,endpoint:At.intent(o.playbookId,o.pageId,o.hotspotId,o.intentId),options:{payload:r}});return f.isErr()?G(f.error):oe(f.value)}}const Tc={me:"/v1/spots/me"},yc=50;class pn{static getInstance(){return pn.instance||(pn.instance=new pn),pn.instance}constructor(){this.meltingSpotApi=It.getInstance()}async listSpotsForMe(o){const r=await this.meltingSpotApi.call({method:Re.GET,endpoint:Tc.me,options:{query:{page:1,limit:yc,...o?.spotMemberRole?{"spotMemberRole[eq]":o.spotMemberRole}:{}}}});return r.isErr()?G(r.error):oe(r.value)}}const Mi={spotMember:{me:"/v1/spotMembers/me",joinFromSso:"/v1/spotMembers~joinFromSso",search:"/v1/spotMembers~search"}};class mn{static getInstance(){return mn.instance||(mn.instance=new mn),mn.instance}constructor(){this.meltingSpotApi=It.getInstance()}async getSpotMemberForMe(){const o=await this.meltingSpotApi.call({method:Re.GET,endpoint:Mi.spotMember.me});return o.isErr()?G(o.error):oe(o.value)}async searchSpotMembers(o){const r={page:o.page,limit:o.limit};o.search&&(r.search=o.search);const f=await this.meltingSpotApi.call({method:Re.GET,endpoint:Mi.spotMember.search,options:{query:r}});return f.isErr()?G(f.error):oe(f.value)}async joinFromSso(o){const r=await this.meltingSpotApi.call({method:Re.POST,endpoint:Mi.spotMember.joinFromSso,options:{payload:{token:o}}});return r.isErr()?G(r.error):oe(r.value)}}const $s={spotMemberSsoToken:"/v1/spotMembers/auth/sso/jwt",previewAccessKey:"/v1/spotMembers/auth/preview/accessKey"};class _n{static getInstance(){return _n.instance||(_n.instance=new _n),_n.instance}constructor(){this.meltingSpotApi=It.getInstance()}async generateSsoToken(){const o=await this.meltingSpotApi.call({method:Re.POST,endpoint:$s.spotMemberSsoToken,options:{payload:{}}});return o.isErr()?G(o.error):oe(o.value.token)}async generatePreviewAccessKey(o){const r=await this.meltingSpotApi.call({method:Re.POST,endpoint:$s.previewAccessKey,options:{payload:{targetSpotMemberId:o.targetSpotMemberId}}});return r.isErr()?G(r.error):oe(r.value)}}class vn{static getInstance(){return vn.instance||(vn.instance=new vn),vn.instance}constructor(){this.spotMemberAuthApiService=_n.getInstance()}async generateSsoToken(){return this.spotMemberAuthApiService.generateSsoToken()}}const Oi=s=>{const o=s.get("utm_source");if(o)return{source:o,medium:s.get("utm_medium")??void 0,campaign:s.get("utm_campaign")??void 0,term:s.get("utm_term")??void 0,content:s.get("utm_content")??void 0}},bi=s=>s?Object.entries(s).reduce((o,[r,f])=>(f!=null&&(o[`utm_${r}`]=f),o),{}):{},Ic=Se.getInstance(),Ac=Ht.getInstance(),Rc=vn.getInstance(),Lc={Playbook:gn.getInstance(),Spot:pn.getInstance(),SpotMember:mn.getInstance()},wn=globalThis;wn.MeltingSpot||(wn.MeltingSpot={}),wn.MeltingSpot.Configuration=Ic,wn.MeltingSpot.Auth=Ac,wn.MeltingSpot.Sso=Rc,wn.MeltingSpot.Api=Lc;const Mc="1.7.0",xi=new Ti({appName:"Embed SDK",appVersion:Mc});class Ir{constructor(o){this.content=o}#e=null;#t=null;set onRemove(o){this.#t=o}inject(o){this.remove();const r=wi({input:o,rootDocument:this.content.rootDocument});this.#e=this.content.iframe,this.#e.classList.add("ms-embed"),r.appendChild(this.#e)}remove(){this.#e&&(this.#e.contentWindow&&this.#t?.(this.#e.contentWindow),this.#e.remove(),this.#e=null)}}class Oc{constructor(o){this.baseURL=yi(o.baseURL),this.spotId=nn(o.spotId),this.authToken=o.authToken??null,this.themeMode=o.themeMode??"auto",this.domain=o.domain??null,this.deeplink=o.deeplink?sc({deeplink:o.deeplink,spotId:this.spotId}):null,this.utmParameters=o.utmParameters??null,this.rootDocument=o.rootDocument}get iframe(){const o=this.authToken&&this.authToken.trim().length>0?"/sso/jwt":"",r=new URL(`/spot/${this.spotId}${o}`,sr(this.baseURL)),f=Ei({url:r,searchParams:{embed:this.spotId,themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,deeplink:this.deeplink,...bi(this.utmParameters)},rootDocument:this.rootDocument});return f.classList.add("ms-spot"),f}}const Di={READY:"meltingspot:ready",ERROR:"meltingspot:error"},Oe=class Oe{static injectSpotInto(o,r){const{onReady:f,onError:d,..._}=r,{spotId:g,rootDocument:y,msCommunityWebBaseUrl:A}=Se.getConfiguration({spotId:_.spotId,rootDocument:_.rootDocument,msCommunityWebBaseUrl:_.baseURL});if(!g)throw xi.error("Spot ID is required"),new Error("Spot ID is not configured. Please set the spotId in the configuration.");const $=new URLSearchParams(window.location.search),H={spotId:g,authToken:_.authToken??$.get("ms_token"),domain:_.domain,deeplink:_.deeplink??$.get("ms_url"),themeMode:_.themeMode,utmParameters:_.utmParameters??Oi($),baseURL:A,rootDocument:y},U=new Ir(new Oc(H));if(U.inject(o),Oe.embeds.push(U),f||d){const N=U.content.iframe.contentWindow;N&&(Oe.iframeCallbacks.set(N,{onReady:f,onError:d}),U.onRemove=K=>{Oe.iframeCallbacks.delete(K)}),Oe.ensureMessageListener()}return xi.log("Spot injected",H,o),U}static clear(){Oe.embeds.forEach(o=>{o.remove()}),Oe.embeds=[],Oe.iframeCallbacks.clear(),Oe.messageListened&&(window.removeEventListener("message",Oe.handleMessageEvent),Oe.messageListened=!1),xi.log("All MeltingSpot embeds cleared")}static handleMessageEvent(o){if(!o.data||typeof o.data!="object"||o.data.type!==Di.READY&&o.data.type!==Di.ERROR)return;const r=o.source,f=Oe.iframeCallbacks.get(r);if(!f)return;const{msCommunityWebBaseUrl:d}=Se.getConfiguration({});if(d)try{const _=new URL(d).origin;if(o.origin!==_)return}catch{}o.data.type===Di.READY?f.onReady?.():f.onError?.(o.data.error)}static ensureMessageListener(){Oe.messageListened||(window.addEventListener("message",Oe.handleMessageEvent),Oe.messageListened=!0)}};Oe.embeds=[],Oe.messageListened=!1,Oe.iframeCallbacks=new Map;let Si=Oe;const Ui=globalThis;Ui.MeltingSpot||(Ui.MeltingSpot={}),Ui.MeltingSpot.Embed=Si;const bc="1.7.0",He=new Ti({appName:"Widget SDK",appVersion:bc});class Ns{constructor(o,r,f){this.content=o,this.rootDocument=r,this.dialogClassname=f,this.dialogElement=null,this.triggerElement=null,this.iframeElement=null,this.currentListener=null}inject({into:o,bind:r,options:f}){this.remove();const d=wi({input:o,rootDocument:this.rootDocument});if(this.dialogElement=Tf(this.rootDocument),this.dialogElement.classList.add(this.dialogClassname),this.dialogElement.onclose=()=>this.#t(),d.appendChild(this.dialogElement),r){this.triggerElement=wi({input:r,rootDocument:this.rootDocument});const _=this.open.bind(this,f);this.currentListener=g=>{g.stopPropagation(),g.preventDefault(),_()},this.triggerElement.addEventListener("click",this.currentListener)}}remove(){this.dialogElement&&(this.dialogElement.remove(),this.dialogElement.onclose=null,this.dialogElement=null),this.triggerElement&&(this.currentListener&&this.triggerElement.removeEventListener("click",this.currentListener),this.triggerElement=null,this.currentListener=null)}open(o){this.dialogElement||this.inject({into:this.rootDocument.body}),this.dialogElement&&(this.#e(),this.dialogElement.showModal())}close(){this.dialogElement&&this.dialogElement.close()}#e(){this.dialogElement&&(this.iframeElement=this.dialogElement.appendChild(this.content.iframe))}#t(){this.iframeElement&&(this.iframeElement.remove(),this.iframeElement=null)}}class Ar extends Ns{constructor(o,r){super(o,r,"ms-drawer")}open(o){const{position:r="right"}=o??{};super.open(o),this.dialogElement&&(this.dialogElement.dataset.position=r)}}class Rr extends Ns{constructor(o,r){super(o,r,"ms-modal")}}class xc{constructor(o){this.baseURL=yi(o.baseURL),this.spotId=nn(o.spotId),this.widgetId=nn(o.widgetId),this.authToken=o.authToken??null,this.themeMode=o.themeMode??"auto",this.domain=o.domain??null,this.utmParameters=o.utmParameters??null,this.rootDocument=o.rootDocument}get iframe(){const o=new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`,sr(this.baseURL)),r=Ei({url:o,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,...bi(this.utmParameters)},rootDocument:this.rootDocument});return r.classList.add("ms-widget"),r}}class Dc{constructor(o){this.baseURL=yi(o.baseURL),this.spotId=nn(o.spotId),this.widgetContentId=nn(o.widgetContentId),this.contentId=nn(o.contentId),this.widgetId=nn(o.widgetId),this.contentType=o.contentType,this.authToken=o.authToken??null,this.themeMode=o.themeMode??"auto",this.domain=o.domain??null,this.utmParameters=o.utmParameters??null,this.rootDocument=o.rootDocument}get iframe(){const o=new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`,sr(this.baseURL));o.searchParams.set("widgetId",this.widgetId);const r=Ei({url:o,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,contentId:this.contentId,contentType:this.contentType,...bi(this.utmParameters)},rootDocument:this.rootDocument});return r.classList.add("ms-widget-content"),r}}const ee=class ee{static injectWidgetInto(o,r){const{spotId:f,rootDocument:d,msCommunityWebBaseUrl:_}=Se.getConfiguration({spotId:r.spotId,rootDocument:r.rootDocument,msCommunityWebBaseUrl:r.baseURL});if(!f)throw He.error("Spot ID is required"),new Error("Spot ID is not configured. Please set the spotId in the configuration.");const{widget:g,args:y}=ee.createWidget({...r,spotId:f,rootDocument:d,baseURL:_}),A=new Ir(g);return A.inject(o),ee.widgets.push(A),He.log("Widget injected",ee.cleanupLoggedArgs(y),o),A}static injectWidgetContentInto(o,r){const{spotId:f,rootDocument:d,msCommunityWebBaseUrl:_}=Se.getConfiguration({spotId:r.spotId,rootDocument:r.rootDocument,msCommunityWebBaseUrl:r.baseURL});if(!f)throw He.error("Spot ID is required"),new Error("Spot ID is not configured. Please set the spotId in the configuration.");const{widgetContent:g,args:y}=ee.createWidgetContent({...r,spotId:f,rootDocument:d,baseURL:_}),A=new Ir(g);return A.inject(o),ee.widgets.push(A),He.log("WidgetContent injected",ee.cleanupLoggedArgs(y),o),A}static bindWidgetModalTo(o,r){return ee.bindEntityModalTo(o,{type:"Widget",data:r})}static bindWidgetDrawerTo(o,r){return ee.bindEntityDrawerTo(o,{type:"Widget",data:r})}static createWidgetDrawer(o){const{widget:r}=ee.createWidget(o);return He.log("Create Widget drawer",{data:ee.cleanupLoggedArgs(o)}),new Ar(r,o.rootDocument??document)}static createWidgetModal(o){const{widget:r}=ee.createWidget(o);return He.log("Create Widget modal",{data:ee.cleanupLoggedArgs(o)}),new Rr(r,o.rootDocument??document)}static createWidgetEmbed(o){const{widget:r}=ee.createWidget(o),f=new Ir(r);return He.log("Create Widget embed",{data:ee.cleanupLoggedArgs(o)}),f}static clear(){ee.widgets.forEach(o=>{o.remove()}),ee.widgets=[],ee.widgetOptions={},He.log("All Widget SDK MeltingSpot elements were cleared")}static bindEntityDrawerTo(o,r){const{spotId:f,rootDocument:d,msCommunityWebBaseUrl:_}=Se.getConfiguration({spotId:r.data.spotId,rootDocument:r.data.rootDocument??document,msCommunityWebBaseUrl:r.data.baseURL});if(!f)throw He.error("Spot ID is required"),new Error("Spot ID is not configured. Please set the spotId in the configuration.");let g,y;switch(r.type){case"Widget":{const U=ee.createWidget({...r.data,spotId:f,rootDocument:d,baseURL:_});g=U.widget,y=U.args}break;case"WidgetContent":{const U=ee.createWidgetContent({...r.data,spotId:f,rootDocument:d,baseURL:_});g=U.widgetContent,y=U.args}}const A=new Ar(g,d),$={position:r.data.position},H=r.data.into??d.body;return A.inject({into:H,bind:o,options:$}),ee.widgets.push(A),He.log("Widget bound to drawer",ee.cleanupLoggedArgs(y),$,H,o),A}static bindEntityModalTo(o,r){const{spotId:f,rootDocument:d,msCommunityWebBaseUrl:_}=Se.getConfiguration({spotId:r.data.spotId,rootDocument:r.data.rootDocument??document,msCommunityWebBaseUrl:r.data.baseURL});if(!f)throw He.error("Spot ID is required"),new Error("Spot ID is not configured. Please set the spotId in the configuration.");let g,y;switch(r.type){case"Widget":{const H=ee.createWidget({...r.data,spotId:f,rootDocument:d,baseURL:_});g=H.widget,y=H.args}break;case"WidgetContent":{const H=ee.createWidgetContent({...r.data,spotId:f,rootDocument:d,baseURL:_});g=H.widgetContent,y=H.args}}const A=new Rr(g,d),$=r.data.into??d.body;return A.inject({into:$,bind:o}),ee.widgets.push(A),He.log("Widget bound to modal",ee.cleanupLoggedArgs(y),$,o),A}static handleMessageEvent(o){if(!o.data||typeof o.data!="object"||o.data.type!=="OpenWidgetContent")return;const r=o.data?.widgetId;if(!r||typeof r!="string"){He.error("widgetId is required in the message event data");return}const f=ee.widgetOptions[r];if(!f){He.error("No widget options found for widgetId",{widgetId:r});return}let d=null;try{d=new URL(f.baseURL).origin}catch{d=null}if(!d||o.origin!==d){He.warn("Ignoring OpenWidgetContent from unexpected origin",{origin:o.origin,expectedOrigin:d});return}const{spotId:_,rootDocument:g,msCommunityWebBaseUrl:y}=Se.getConfiguration({spotId:f.spotId,rootDocument:f.rootDocument??document,msCommunityWebBaseUrl:f.baseURL}),{widgetContent:A}=ee.createWidgetContent({...f,widgetContentId:o.data.widgetContentId,contentType:o.data.contentType,contentId:o.data.contentId,widgetId:r,spotId:_,rootDocument:g,baseURL:y});o.data.openingIn==="Drawer"?new Ar(A,g).open():o.data.openingIn==="Modal"&&new Rr(A,g).open()}static createWidget(o){const r=new URLSearchParams(window.location.search),f={spotId:o.spotId,widgetId:o.widgetId,authToken:o.authToken,themeMode:o.themeMode,domain:o.domain,rootDocument:o.rootDocument,baseURL:o.baseURL,utmParameters:o.utmParameters??Oi(r)};return ee.widgetOptions[f.widgetId]=f,ee.messageListened||(window.addEventListener("message",ee.handleMessageEvent),ee.messageListened=!0),{widget:new xc(f),args:f}}static createWidgetContent(o){const r=new URLSearchParams(window.location.search),f={spotId:o.spotId,contentId:o.contentId,contentType:o.contentType,widgetContentId:o.widgetContentId,widgetId:o.widgetId,authToken:o.authToken,themeMode:o.themeMode,domain:o.domain,rootDocument:o.rootDocument,baseURL:o.baseURL,utmParameters:o.utmParameters??Oi(r)};return{widgetContent:new Dc(f),args:f}}static cleanupLoggedArgs(o){const{authToken:r,...f}=o;return{...f,authToken:r?"***":void 0}}};ee.widgets=[],ee.messageListened=!1,ee.widgetOptions={};let Lr=ee;const $i=globalThis;$i.MeltingSpot||($i.MeltingSpot={}),$i.MeltingSpot.Widget=Lr,kt.Drawer=Ar,kt.Modal=Rr,kt.Widget=Lr,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})}));
|
|
32
|
+
`)+f+`return __p
|
|
33
|
+
}`;var g=af(function(){return ot(o,m+`return `+f).apply(n,s)});if(g.source=f,ou(g))throw g;return g}function Jd(e){return Q(e).toLowerCase()}function Yd(e){return Q(e).toUpperCase()}function Xd(e,t,r){if(e=Q(e),e&&(r||t===n))return Rn(e);if(!e||!(t=wa(t)))return e;var i=or(e),a=or(t);return Ia(i,Hn(i,a),Un(i,a)+1).join(``)}function Zd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.slice(0,sr(e)+1);if(!e||!(t=wa(t)))return e;var i=or(e);return Ia(i,0,Un(i,or(t))+1).join(``)}function Qd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.replace(Ue,``);if(!e||!(t=wa(t)))return e;var i=or(e);return Ia(i,Hn(i,or(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(Y(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Z(t.length):r,i=`omission`in t?wa(t.omission):i}e=Q(e);var o=e.length;if(Yn(e)){var s=or(e);o=s.length}if(r>=o)return e;var c=r-ar(i);if(c<1)return i;var l=s?Ia(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),bu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=ct(a.source,Q(Ze.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(wa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=Q(e),e&&Ne.test(e)?e.replace(je,cr):e}var tf=io(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=ro(`toUpperCase`);function rf(e,t,r){return e=Q(e),t=r?n:t,t===n?Xn(e)?dr(e):wn(e):e.match(t)||[]}var af=W(function(e,t){try{return un(e,n,t)}catch(e){return ou(e)?e:new at(e)}}),of=ko(function(e,t){return fn(t,function(t){t=bs(t),si(e,t,xl(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=G();return e=t?B(e,function(e){if(typeof e[1]!=`function`)throw new ut(r);return[n(e[0]),e[1]]}):[],W(function(n){for(var r=-1;++r<t;){var i=e[r];if(un(i[0],this,n))return un(i[1],this,n)}})}function cf(e){return di(ui(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=co(),ff=co(!0);function pf(e){return e}function mf(e){return qi(typeof e==`function`?e:ui(e,1))}function hf(e){return Qi(ui(e,1))}function gf(e,t){return $i(e,ui(t,1))}var _f=W(function(e,t){return function(n){return Fi(n,e,t)}}),vf=W(function(e,t){return function(n){return Fi(e,n,t)}});function yf(e,t,n){var r=$(t),i=Ti(t,r);n==null&&!(Y(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Ti(t,$(t)));var a=!(Y(n)&&`chain`in n)||!!n.chain,o=cu(e);return fn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ja(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,vn([this.value()],arguments))})}),e}function bf(){return R._===this&&(R._=vt),this}function xf(){}function Sf(e){return e=Z(e),W(function(t){return na(t,e)})}var Cf=po(B),wf=po(mn),Tf=po(xn);function Ef(e){return Zo(e)?jn(bs(e)):oa(e)}function Df(e){return function(t){return e==null?n:Ei(e,t)}}var Of=go(),kf=go(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=Z(e),e<1||e>g)return[];var n=y,r=L(e,y);t=G(t),e-=y;for(var i=In(r,t);++n<e;)t(n);return i}function If(e){return q(e)?B(e,bs):wu(e)?[e]:Ja(ys(Q(e)))}function Lf(e){var t=++mt;return Q(e)+t}var Rf=fo(function(e,t){return e+t},0),zf=yo(`ceil`),Bf=fo(function(e,t){return e/t},1),Vf=yo(`floor`);function Hf(e){return e&&e.length?vi(e,pf,ki):n}function Uf(e,t){return e&&e.length?vi(e,G(t,2),ki):n}function Wf(e){return An(e,pf)}function Gf(e,t){return An(e,G(t,2))}function Kf(e){return e&&e.length?vi(e,pf,Xi):n}function qf(e,t){return e&&e.length?vi(e,G(t,2),Xi):n}var Jf=fo(function(e,t){return e*t},1),Yf=yo(`round`),Xf=fo(function(e,t){return e-t},0);function Zf(e){return e&&e.length?Fn(e,pf):0}function Qf(e,t){return e&&e.length?Fn(e,G(t,2)):0}return V.after=vl,V.ary=yl,V.assign=Lu,V.assignIn=Ru,V.assignInWith=zu,V.assignWith=Bu,V.at=Vu,V.before=bl,V.bind=xl,V.bindAll=of,V.bindKey=Sl,V.castArray=Vl,V.chain=Pc,V.chunk=ws,V.compact=Ts,V.concat=Es,V.cond=sf,V.conforms=cf,V.constant=lf,V.countBy=Gc,V.create=Hu,V.curry=Cl,V.curryRight=wl,V.debounce=Tl,V.defaults=Uu,V.defaultsDeep=Wu,V.defer=El,V.delay=Dl,V.difference=Ds,V.differenceBy=Os,V.differenceWith=ks,V.drop=As,V.dropRight=js,V.dropRightWhile=Ms,V.dropWhile=Ns,V.fill=Ps,V.filter=qc,V.flatMap=Xc,V.flatMapDeep=Zc,V.flatMapDepth=Qc,V.flatten=Ls,V.flattenDeep=Rs,V.flattenDepth=zs,V.flip=Ol,V.flow=df,V.flowRight=ff,V.fromPairs=Bs,V.functions=Zu,V.functionsIn=Qu,V.groupBy=tl,V.initial=Us,V.intersection=Ws,V.intersectionBy=Gs,V.intersectionWith=Ks,V.invert=nd,V.invertBy=rd,V.invokeMap=rl,V.iteratee=mf,V.keyBy=il,V.keys=$,V.keysIn=ad,V.map=al,V.mapKeys=od,V.mapValues=sd,V.matches=hf,V.matchesProperty=gf,V.memoize=kl,V.merge=cd,V.mergeWith=ld,V.method=_f,V.methodOf=vf,V.mixin=yf,V.negate=Al,V.nthArg=Sf,V.omit=ud,V.omitBy=dd,V.once=jl,V.orderBy=ol,V.over=Cf,V.overArgs=Ml,V.overEvery=wf,V.overSome=Tf,V.partial=Nl,V.partialRight=Pl,V.partition=sl,V.pick=fd,V.pickBy=pd,V.property=Ef,V.propertyOf=Df,V.pull=Zs,V.pullAll=Qs,V.pullAllBy=$s,V.pullAllWith=ec,V.pullAt=tc,V.range=Of,V.rangeRight=kf,V.rearg=Fl,V.reject=ul,V.remove=nc,V.rest=Il,V.reverse=rc,V.sampleSize=fl,V.set=hd,V.setWith=gd,V.shuffle=pl,V.slice=ic,V.sortBy=gl,V.sortedUniq=dc,V.sortedUniqBy=fc,V.split=Wd,V.spread=Ll,V.tail=pc,V.take=mc,V.takeRight=hc,V.takeRightWhile=gc,V.takeWhile=_c,V.tap=Fc,V.throttle=Rl,V.thru=Ic,V.toArray=ju,V.toPairs=_d,V.toPairsIn=vd,V.toPath=If,V.toPlainObject=Fu,V.transform=yd,V.unary=zl,V.union=vc,V.unionBy=yc,V.unionWith=bc,V.uniq=xc,V.uniqBy=Sc,V.uniqWith=Cc,V.unset=bd,V.unzip=wc,V.unzipWith=Tc,V.update=xd,V.updateWith=Sd,V.values=Cd,V.valuesIn=wd,V.without=Ec,V.words=rf,V.wrap=Bl,V.xor=Dc,V.xorBy=Oc,V.xorWith=kc,V.zip=Ac,V.zipObject=jc,V.zipObjectDeep=Mc,V.zipWith=Nc,V.entries=_d,V.entriesIn=vd,V.extend=Ru,V.extendWith=zu,yf(V,V),V.add=Rf,V.attempt=af,V.camelCase=Od,V.capitalize=kd,V.ceil=zf,V.clamp=Td,V.clone=Hl,V.cloneDeep=Wl,V.cloneDeepWith=Gl,V.cloneWith=Ul,V.conformsTo=Kl,V.deburr=Ad,V.defaultTo=uf,V.divide=Bf,V.endsWith=jd,V.eq=ql,V.escape=Md,V.escapeRegExp=Nd,V.every=Kc,V.find=Jc,V.findIndex=Fs,V.findKey=Gu,V.findLast=Yc,V.findLastIndex=Is,V.findLastKey=Ku,V.floor=Vf,V.forEach=$c,V.forEachRight=el,V.forIn=qu,V.forInRight=Ju,V.forOwn=Yu,V.forOwnRight=Xu,V.get=$u,V.gt=Jl,V.gte=Yl,V.has=ed,V.hasIn=td,V.head=Vs,V.identity=pf,V.includes=nl,V.indexOf=Hs,V.inRange=Ed,V.invoke=id,V.isArguments=Xl,V.isArray=q,V.isArrayBuffer=Zl,V.isArrayLike=Ql,V.isArrayLikeObject=J,V.isBoolean=$l,V.isBuffer=eu,V.isDate=tu,V.isElement=nu,V.isEmpty=ru,V.isEqual=iu,V.isEqualWith=au,V.isError=ou,V.isFinite=su,V.isFunction=cu,V.isInteger=lu,V.isLength=uu,V.isMap=du,V.isMatch=fu,V.isMatchWith=pu,V.isNaN=mu,V.isNative=hu,V.isNil=_u,V.isNull=gu,V.isNumber=vu,V.isObject=Y,V.isObjectLike=X,V.isPlainObject=yu,V.isRegExp=bu,V.isSafeInteger=xu,V.isSet=Su,V.isString=Cu,V.isSymbol=wu,V.isTypedArray=Tu,V.isUndefined=Eu,V.isWeakMap=Du,V.isWeakSet=Ou,V.join=qs,V.kebabCase=Pd,V.last=Js,V.lastIndexOf=Ys,V.lowerCase=Fd,V.lowerFirst=Id,V.lt=ku,V.lte=Au,V.max=Hf,V.maxBy=Uf,V.mean=Wf,V.meanBy=Gf,V.min=Kf,V.minBy=qf,V.stubArray=Af,V.stubFalse=jf,V.stubObject=Mf,V.stubString=Nf,V.stubTrue=Pf,V.multiply=Jf,V.nth=Xs,V.noConflict=bf,V.noop=xf,V.now=_l,V.pad=Ld,V.padEnd=Rd,V.padStart=zd,V.parseInt=Bd,V.random=Dd,V.reduce=cl,V.reduceRight=ll,V.repeat=Vd,V.replace=Hd,V.result=md,V.round=Yf,V.runInContext=e,V.sample=dl,V.size=ml,V.snakeCase=Ud,V.some=hl,V.sortedIndex=ac,V.sortedIndexBy=oc,V.sortedIndexOf=sc,V.sortedLastIndex=cc,V.sortedLastIndexBy=lc,V.sortedLastIndexOf=uc,V.startCase=Gd,V.startsWith=Kd,V.subtract=Xf,V.sum=Zf,V.sumBy=Qf,V.template=qd,V.times=Ff,V.toFinite=Mu,V.toInteger=Z,V.toLength=Nu,V.toLower=Jd,V.toNumber=Pu,V.toSafeInteger=Iu,V.toString=Q,V.toUpper=Yd,V.trim=Xd,V.trimEnd=Zd,V.trimStart=Qd,V.truncate=$d,V.unescape=ef,V.uniqueId=Lf,V.upperCase=tf,V.upperFirst=nf,V.each=$c,V.eachRight=el,V.first=Vs,yf(V,function(){var e={};return Ci(V,function(t,n){N.call(V.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),V.VERSION=`4.17.21`,fn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){V[e].placeholder=V}),fn([`drop`,`take`],function(e,t){H.prototype[e]=function(r){r=r===n?1:P(Z(r),0);var i=this.__filtered__&&!t?new H(this):this.clone();return i.__filtered__?i.__takeCount__=L(r,i.__takeCount__):i.__views__.push({size:L(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},H.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),fn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;H.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:G(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),fn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);H.prototype[e]=function(){return this[n](1).value()[0]}}),fn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);H.prototype[e]=function(){return this.__filtered__?new H(this):this[n](1)}}),H.prototype.compact=function(){return this.filter(pf)},H.prototype.find=function(e){return this.filter(e).head()},H.prototype.findLast=function(e){return this.reverse().find(e)},H.prototype.invokeMap=W(function(e,t){return typeof e==`function`?new H(this):this.map(function(n){return Fi(n,e,t)})}),H.prototype.reject=function(e){return this.filter(Al(G(e)))},H.prototype.slice=function(e,t){e=Z(e);var r=this;return r.__filtered__&&(e>0||t<0)?new H(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Z(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},H.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},H.prototype.toArray=function(){return this.take(y)},Ci(H.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=V[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(V.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof H,l=s[0],u=c||q(t),d=function(e){var t=a.apply(V,vn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new H(this);var g=e.apply(t,s);return g.__actions__.push({func:Ic,args:[d],thisArg:n}),new br(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),fn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=j[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);V.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(q(i)?i:[],e)}return this[n](function(n){return t.apply(q(n)?n:[],e)})}}),Ci(H.prototype,function(e,t){var n=V[t];if(n){var r=n.name+``;N.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}}),Mn[lo(n,s).name]=[{name:`wrapper`,func:n}],H.prototype.clone=xr,H.prototype.reverse=Sr,H.prototype.value=Cr,V.prototype.at=Lc,V.prototype.chain=Rc,V.prototype.commit=zc,V.prototype.next=Bc,V.prototype.plant=Hc,V.prototype.reverse=Uc,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=Wc,V.prototype.first=V.prototype.head,kt&&(V.prototype[kt]=Vc),V})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(R._=fr,define(function(){return fr})):en?((en.exports=fr)._=fr,$t._=fr):R._=fr}).call(e)}))(),Object.values(function(e){return e.EditMode=`edit-mode`,e.Preview=`preview`,e}({}));var ke=`1.10.0`,Ae=class{constructor(e){this.debug=!1,this.debug=e?.debug??!1,this.appName=e?.appName,this.appVersion=e?.appVersion}log(e,...t){this.debug&&this.print(e,`info`,t)}warn(e,...t){this.print(e,`warn`,t)}error(e,...t){this.print(e,`error`,t)}print(e,t,n){let r=[`[${[`MeltingSpot`,this.appName,this.appVersion].filter(Boolean).join(` - `)}] ${e}`];n.length&&r.push(...n),console[t](...r)}},je=new Ae({appName:`Core SDK`,appVersion:ke}),Me=e=>e.toLowerCase().replace(/[^a-z0-9-]/g,``),Ne=[`/user`],Pe=({deeplink:e,spotId:t})=>{try{let n=new URL(e,`https://unused.com`),r=n.pathname;return n.search&&(r+=n.search),n.hash&&(r+=n.hash),Ne.some(e=>r.startsWith(e))||(r=`/spot/${t}/${ie(r)}`),r}catch(e){return je.warn(`Failed to parse deeplink URL`,e),null}},Fe=[/(^|\.)meltingspot\.io$/i],Ie=e=>{let t;try{let n=oe(e);t=new URL(n)}catch{throw Error(`Invalid baseURL: ${e}`)}let n=t.hostname===`localhost`||t.hostname===`127.0.0.1`,r=t.protocol===`https:`,i=Fe.some(e=>e.test(t.hostname));if(!n&&(!r||!i))throw Error(`Untrusted baseURL origin: ${t.origin}`);return t.origin},Le={msApiBaseUrl:`https://openapi.meltingspot.io/`,msCommunityWebBaseUrl:`https://go.meltingspot.io/`,ssoToken:void 0,spotId:``,autoJoin:!1,rootDocument:globalThis.document},Re=class e{constructor(){this.configuration=Le}static getInstance(){return e.instance||=new e,e.instance}setConfiguration(e){this.configuration={...this.configuration,...e}}static getConfiguration(t={}){return{...e.getInstance().configuration,...t}}},ze=RegExp(`(%[a-f0-9]{2})|([^%]+?)`,`gi`),Be=RegExp(`(%[a-f0-9]{2})+`,`gi`);function Ve(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;let n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],Ve(n),Ve(r))}function He(e){try{return decodeURIComponent(e)}catch{let t=e.match(ze)||[];for(let n=1;n<t.length;n++)e=Ve(t,n).join(``),t=e.match(ze)||[];return e}}function Ue(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},n=Be.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=He(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Be.exec(e)}t[`%C2`]=`�`;let r=Object.keys(t);for(let n of r)e=e.replace(new RegExp(n,`g`),t[n]);return e}function O(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return Ue(e)}}function We(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}function Ge(e,t){if(typeof e!=`string`||typeof t!=`string`)throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}var Ke=c({exclude:()=>lt,extract:()=>it,parse:()=>at,parseUrl:()=>st,pick:()=>ct,stringify:()=>ot,stringifyUrl:()=>A}),qe=e=>e==null,Je=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Ye=Symbol(`encodeFragmentIdentifier`);function Xe(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`[`,i,`]`].join(``)]:[...n,[k(t,e),`[`,k(i,e),`]=`,k(r,e)].join(``)]};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`[]`].join(``)]:[...n,[k(t,e),`[]=`,k(r,e)].join(``)];case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`:list=`].join(``)]:[...n,[k(t,e),`:list=`,k(r,e)].join(``)];case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?[[k(n,e),t,k(i,e)].join(``)]:[[r,k(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,k(t,e)]:[...n,[k(t,e),`=`,k(r,e)].join(``)]}}function Ze(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`comma`:case`separator`:return(t,n,r)=>{let i=typeof n==`string`&&n.includes(e.arrayFormatSeparator),a=typeof n==`string`&&!i&&$e(n,e).includes(e.arrayFormatSeparator);n=a?$e(n,e):n,r[t]=i||a?n.split(e.arrayFormatSeparator).map(t=>$e(t,e)):n===null?n:$e(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&$e(n,e);return}let a=n===null?[]:$e(n,e).split(e.arrayFormatSeparator);if(r[t]===void 0){r[t]=a;return}r[t]=[...r[t],...a]};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}function Qe(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function k(e,t){return t.encode?t.strict?Je(e):encodeURIComponent(e):e}function $e(e,t){return t.decode?O(e):e}function et(e){return Array.isArray(e)?e.sort():typeof e==`object`?et(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function tt(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function nt(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function rt(e,t,n){return n===`string`&&typeof e==`string`?e:typeof n==`function`&&typeof e==`string`?n(e):n===`boolean`&&e===null?!0:n===`boolean`&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:n===`boolean`&&e!==null&&(e.toLowerCase()===`1`||e.toLowerCase()===`0`)?e.toLowerCase()===`1`:n===`string[]`&&t.arrayFormat!==`none`&&typeof e==`string`?[e]:n===`number[]`&&t.arrayFormat!==`none`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?[Number(e)]:n===`number`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):e}function it(e){e=tt(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function at(e,t){t={decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},Qe(t.arrayFormatSeparator);let n=Ze(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return r;for(let i of e.split(`&`)){if(i===``)continue;let e=t.decode?i.replaceAll(`+`,` `):i,[a,o]=Ge(e,`=`);a===void 0&&(a=e),o=o===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?o:$e(o,t),n($e(a,t),o,r)}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n&&t.types[e]!==`string`)for(let[r,i]of Object.entries(n)){let a=t.types[e]?t.types[e].replace(`[]`,``):void 0;n[r]=rt(i,t,a)}else r[e]=typeof n==`object`&&n&&t.types[e]===`string`?Object.values(n).join(t.arrayFormatSeparator):rt(n,t,t.types[e]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?et(n):n,e},Object.create(null))}function ot(e,t){if(!e)return``;t={encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,...t},Qe(t.arrayFormatSeparator);let n=n=>t.skipNull&&qe(e[n])||t.skipEmptyString&&e[n]===``,r=Xe(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];return i===void 0?``:i===null?k(n,t):Array.isArray(i)?i.length===0&&t.arrayFormat===`bracket-separator`?k(n,t)+`[]`:i.reduce(r(n),[]).join(`&`):k(n,t)+`=`+k(i,t)}).filter(e=>e.length>0).join(`&`)}function st(e,t){t={decode:!0,...t};let[n,r]=Ge(e,`#`);return n===void 0&&(n=e),{url:n?.split(`?`)?.[0]??``,query:at(it(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:$e(r,t)}:{}}}function A(e,t){t={encode:!0,strict:!0,[Ye]:!0,...t};let n=tt(e.url).split(`?`)[0]||``,r=ot({...at(it(e.url),{sort:!1,...t}),...e.query},t);r&&=`?${r}`;let i=nt(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n);r.hash=e.fragmentIdentifier,i=t[Ye]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function ct(e,t,n){n={parseFragmentIdentifier:!0,[Ye]:!1,...n};let{url:r,query:i,fragmentIdentifier:a}=st(e,n);return A({url:r,query:We(i,t),fragmentIdentifier:a},n)}function lt(e,t,n){return ct(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var ut=Ke,j=class e extends Error{constructor(t,n){super(`HTTP Error ${t}${n?`: ${n}`:``}`),this.code=t,this.name=`HttpError`,Object.setPrototypeOf(this,e.prototype)}},M=function(e){return e.DELETE=`DELETE`,e.GET=`GET`,e.PATCH=`PATCH`,e.POST=`POST`,e}({}),dt=class{constructor(){this.headers={}}setHeaders(e){this.headers=e}async get(e){try{let t=e.query?`${e.url}?${this.serializeQuery(e.query)}`:e.url,n=await fetch(t,{headers:{...this.headers,...e.headers,"Content-Type":`application/json`},...e.signal?{signal:e.signal}:{}});return n.ok?T(await n.json()):E(new j(n.status,await n.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async post(e){try{let t=await fetch(e.url,{method:`POST`,headers:{...this.headers,...e.headers,"Content-Type":`application/json`},body:JSON.stringify(e.payload),...e.signal?{signal:e.signal}:{}});return t.ok?T(await t.json()):E(new j(t.status,await t.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async delete(e){try{let t=await fetch(e.url,{method:`DELETE`,headers:{...this.headers,...e.headers,Accept:`application/json`},...e.signal?{signal:e.signal}:{}});return t.ok?T(await t.json()):E(new j(t.status,await t.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async patch(e){try{let t=await fetch(e.url,{method:`PATCH`,headers:{...this.headers,...e.headers,"Content-Type":`application/json`},body:JSON.stringify(e.payload),...e.signal?{signal:e.signal}:{}});return t.ok?T(await t.json()):E(new j(t.status,await t.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}serializeQuery(e){if(typeof e==`string`)return e;if(typeof e==`object`)for(let t in e)e[t]===void 0&&delete e[t];return e=ut.stringify(e,{arrayFormat:`none`}),e}},ft={accessToken:{email:`/v1/auth/accessToken/email`,sso:{jwt:`/v1/auth/accessToken/sso/jwt`}},refreshAccessToken:`/v1/auth/accessToken~refresh`,password:{reset:`/v1/auth/password~reset`}},pt=class e extends EventTarget{constructor(){super(),this.accessToken=null,this.refreshToken=null}static getInstance(){return e.instance||=new e,e.instance}async loginWithPassword(e,t){let n=await this.callApi({endpoint:ft.accessToken.email,method:`POST`,body:{email:e,password:t},withSpotId:!0});if(n.isErr())return E(n.error);let{accessToken:r,refreshToken:i}=n.value;return this.setTokens(r.token,i.token),T({accessToken:r.token,refreshToken:i.token})}async loginWithSsoToken(e){let t=await this.callApi({endpoint:ft.accessToken.sso.jwt,method:`POST`,body:{token:e},withSpotId:!0});if(t.isErr())return E(t.error);let{accessToken:n,refreshToken:r}=t.value;return this.setTokens(n.token,r.token),T({accessToken:n.token,refreshToken:r.token})}loginWithAuthTokens(e,t){return this.setTokens(e,t),{accessToken:e,refreshToken:t}}resetPassword(e){return this.callApi({endpoint:ft.password.reset,method:`POST`,body:{email:e}})}async refresh(){let e=await this.callApi({endpoint:ft.refreshAccessToken,method:`POST`,body:{refreshToken:this.refreshToken}});if(e.isErr())return E(e.error);let{accessToken:t,refreshToken:n}=e.value;return this.setTokens(t.token,n.token),T({accessToken:t.token,refreshToken:n.token})}async logout(){this.setTokens(null,null)}getAccessToken(){return this.accessToken}getRefreshToken(){return this.refreshToken}setTokens(e,t){if(this.accessToken!==e||this.refreshToken!==t){this.accessToken=e,this.refreshToken=t;let n=new CustomEvent(`auth:tokens-updated`,{detail:{accessToken:e,refreshToken:t}});this.dispatchEvent(n)}}async callApi(e){try{let{spotId:t,msApiBaseUrl:n}=Re.getConfiguration(),r=se(e.endpoint,n),i={"Content-Type":`application/json`,...e.headers};e.withSpotId&&t&&(i[N.SpotId]=t);let a=await fetch(r,{method:e.method,body:e.body?JSON.stringify(e.body):void 0,headers:i});return a.ok?a.status===D.NO_CONTENT?T(void 0):T(await a.json()):E(new j(a.status,a.statusText))}catch(e){return E(new j(D.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:String(e)))}}},N=function(e){return e.Authorization=`Authorization`,e.SpotId=`x-spotid`,e}({}),mt=class e{static getInstance(){return e.instance||=new e,e.instance}static buildAuthenticatedRequest(e){let{msApiBaseUrl:t,spotId:n}=Re.getConfiguration(),r=se(e,t),i=pt.getInstance().getAccessToken();if(!i)return E(Error(`Not authenticated`));let a={"Content-Type":`application/json`,Authorization:`Bearer ${i}`};return n&&(a[`x-spotid`]=n),T({url:r,headers:a})}static async stream(t,n,r){let{streamTransport:i}=Re.getConfiguration();if(i)return i({endpoint:t,body:n,signal:r});let a=e.buildAuthenticatedRequest(t);if(a.isErr())return E(a.error);let{url:o,headers:s}=a.value;try{let e=await fetch(o,{method:`POST`,headers:s,...n===void 0?{}:{body:JSON.stringify(n)},...r?{signal:r}:{}});if(!e.ok){let t=await e.text();return E(Error(`HTTP ${e.status}: ${t}`))}return e.body?T(e.body):E(Error(`Response body is empty`))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(e instanceof Error?e:Error(t))}}get pendingCount(){return this.queue.length}constructor(){this.queue=[],this.isProcessing=!1,this.isPaused=!1,this.authService=pt.getInstance(),this.httpService=new dt}enqueue(e){return new Promise(t=>{this.queue.push(async()=>{try{t(await e())}catch(e){t(E(new j(D.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:`Unknown error`)))}}),this.processQueue()})}async processQueue(){if(!this.isProcessing){this.isProcessing=!0;try{for(;!this.isPaused&&this.queue.length>0;){let e=this.queue.shift();if(!e)break;await e()}}finally{this.isProcessing=!1,!this.isPaused&&this.queue.length>0&&Promise.resolve().then(()=>this.processQueue())}}}pauseQueue(){this.isPaused=!0}resumeQueue(){let e=this.isPaused;this.isPaused=!1,e&&this.processQueue()}async call(e){return this.enqueue(async()=>{let t=async()=>{let{spotId:t,msApiBaseUrl:n}=Re.getConfiguration(),r={...e.options?.headers??{}};t&&(r[`x-spotid`]=t);let i=this.authService.getAccessToken(),{requiresAuth:a=!0}=e;if(!i&&a)return E(new j(D.UNAUTHORIZED));i&&(r.Authorization=`Bearer ${i}`);let o=se(e.endpoint,n);switch(e.method){case M.DELETE:return this.httpService.delete({...e.options??{},headers:r,url:o});case M.GET:return this.httpService.get({...e.options??{},headers:r,url:o});case M.PATCH:return this.httpService.patch({...e.options??{},headers:r,url:o});case M.POST:return this.httpService.post({...e.options??{},headers:r,url:o});default:return E(new j(D.METHOD_NOT_ALLOWED,`Method not allowed`))}},n=await t();if(n.isErr()&&n.error.code===D.UNAUTHORIZED){let e=await this.authService.refresh();if(e.isErr())return E(new j(D.UNAUTHORIZED,e.error.message));n=await t()}return n})}},ht={playbooks:`/v1/playbooks`,pages:e=>`/v1/playbooks/${e}/pages`,hotspots:(e,t)=>`/v1/playbooks/${e}/pages/${t}/hotspots`,hotspot:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}`,accessibleIntents:(e,t)=>`/v1/playbooks/${e}/pages/${t}/accessibleIntents`,intents:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents`,intent:(e,t,n,r)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents/${r}`},gt=50,_t=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async listPlaybooks(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.playbooks,options:{query:{page:e?.page??1,limit:e?.limit??gt,...e?.domain?{"domain[eq]":e.domain}:{}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookPages(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.pages(e.playbookId),options:{query:{page:e.page??1,limit:e.limit??gt,...e.url?{"url[eq]":e.url}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookPage(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:ht.pages(e.playbookId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listAccessiblePlaybookIntents(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.accessibleIntents(e.playbookId,e.pageId),options:{query:{...e.domain?{domain:e.domain}:{}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookHotspots(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.hotspots(e.playbookId,e.pageId),options:{query:{page:e.page??1,limit:e.limit??gt,...e.intentStatus?{"intentStatus[eq]":e.intentStatus}:{},...e.widgetType?{"widgetType[eq]":e.widgetType}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:ht.hotspots(e.playbookId,e.pageId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async updatePlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:M.PATCH,endpoint:ht.hotspot(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listPlaybookIntents(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.intents(e.playbookId,e.pageId,e.hotspotId),options:{query:{page:e.page??1,limit:e.limit??gt,...e.status?{"status[eq]":e.status}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:ht.intents(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async updatePlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:M.PATCH,endpoint:ht.intent(e.playbookId,e.pageId,e.hotspotId,e.intentId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}},vt={me:`/v1/spots/me`},yt=50,bt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async listSpotsForMe(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:vt.me,options:{query:{page:1,limit:yt,...e?.spotMemberRole?{"spotMemberRole[eq]":e.spotMemberRole}:{}}}});return t.isErr()?E(t.error):T(t.value)}},xt={spotMember:{me:`/v1/spotMembers/me`,joinFromSso:`/v1/spotMembers~joinFromSso`,search:`/v1/spotMembers~search`}},St=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async getSpotMemberForMe(){let e=await this.meltingSpotApi.call({method:M.GET,endpoint:xt.spotMember.me});return e.isErr()?E(e.error):T(e.value)}async searchSpotMembers(e){let t={page:e.page,limit:e.limit};e.search&&(t.search=e.search);let n=await this.meltingSpotApi.call({method:M.GET,endpoint:xt.spotMember.search,options:{query:t}});return n.isErr()?E(n.error):T(n.value)}async joinFromSso(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:xt.spotMember.joinFromSso,options:{payload:{token:e}}});return t.isErr()?E(t.error):T(t.value)}},Ct={spotMemberSsoToken:`/v1/spotMembers/auth/sso/jwt`,previewAccessKey:`/v1/spotMembers/auth/preview/accessKey`},wt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async generateSsoToken(){let e=await this.meltingSpotApi.call({method:M.POST,endpoint:Ct.spotMemberSsoToken,options:{payload:{}}});return e.isErr()?E(e.error):T(e.value.token)}async generatePreviewAccessKey(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:Ct.previewAccessKey,options:{payload:{targetSpotMemberId:e.targetSpotMemberId}}});return t.isErr()?E(t.error):T(t.value)}},Tt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.spotMemberAuthApiService=wt.getInstance()}async generateSsoToken(){return this.spotMemberAuthApiService.generateSsoToken()}},Et=e=>{let t=e.get(`utm_source`);if(t)return{source:t,medium:e.get(`utm_medium`)??void 0,campaign:e.get(`utm_campaign`)??void 0,term:e.get(`utm_term`)??void 0,content:e.get(`utm_content`)??void 0}},Dt=e=>e?Object.entries(e).reduce((e,[t,n])=>(n!=null&&(e[`utm_${t}`]=n),e),{}):{},Ot=Re.getInstance(),kt=pt.getInstance(),At=Tt.getInstance(),jt={Playbook:_t.getInstance(),Spot:bt.getInstance(),SpotMember:St.getInstance()},Mt=globalThis;Mt.MeltingSpot||={},Mt.MeltingSpot.Configuration=Ot,Mt.MeltingSpot.Auth=kt,Mt.MeltingSpot.Sso=At,Mt.MeltingSpot.Api=jt;var Nt=new Ae({appName:`Embed SDK`,appVersion:`1.10.0`}),Pt=class{#e=null;#t=null;constructor(e){this.content=e}set onRemove(e){this.#t=e}inject(e){this.remove();let t=ce({input:e,rootDocument:this.content.rootDocument});this.#e=this.content.iframe,this.#e.classList.add(`ms-embed`),t.appendChild(this.#e)}remove(){this.#e&&=(this.#e.contentWindow&&this.#t?.(this.#e.contentWindow),this.#e.remove(),null)}},Ft=class{constructor(e){this.baseURL=Ie(e.baseURL),this.spotId=Me(e.spotId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.deeplink=e.deeplink?Pe({deeplink:e.deeplink,spotId:this.spotId}):null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=this.authToken&&this.authToken.trim().length>0?`/sso/jwt`:``,t=de({url:new URL(`/spot/${this.spotId}${e}`,oe(this.baseURL)),searchParams:{embed:this.spotId,themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,deeplink:this.deeplink,...Dt(this.utmParameters)},rootDocument:this.rootDocument});return t.classList.add(`ms-spot`),t}},It={READY:`meltingspot:ready`,ERROR:`meltingspot:error`,PREFILL_DRAFT:`meltingspot:prefillDraft`},Lt=class e{static{this.embeds=[]}static{this.messageListened=!1}static{this.iframeCallbacks=new Map}static injectSpotInto(t,n){let{onReady:r,onError:i,...a}=n,{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=Re.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw Nt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let l=new URLSearchParams(window.location.search),u={spotId:o,authToken:a.authToken??l.get(`ms_token`),domain:a.domain,deeplink:a.deeplink??l.get(`ms_url`),themeMode:a.themeMode,utmParameters:a.utmParameters??Et(l),baseURL:c,rootDocument:s},d=new Pt(new Ft(u));if(d.inject(t),e.embeds.push(d),r||i){let t=d.content.iframe.contentWindow;t&&(e.iframeCallbacks.set(t,{onReady:r,onError:i}),d.onRemove=t=>{e.iframeCallbacks.delete(t)}),e.ensureMessageListener()}return Nt.log(`Spot injected`,u,t),d}static clear(){e.embeds.forEach(e=>{e.remove()}),e.embeds=[],e.iframeCallbacks.clear(),e.messageListened&&=(window.removeEventListener(`message`,e.handleMessageEvent),!1),Nt.log(`All MeltingSpot embeds cleared`)}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==It.READY&&t.data.type!==It.ERROR)return;let n=t.source,r=e.iframeCallbacks.get(n);if(!r)return;let{msCommunityWebBaseUrl:i}=Re.getConfiguration({});if(i)try{let e=new URL(i).origin;if(t.origin!==e)return}catch{}t.data.type===It.READY?r.onReady?.():r.onError?.(t.data.error)}static ensureMessageListener(){e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0)}},Rt=globalThis;Rt.MeltingSpot||={},Rt.MeltingSpot.Embed=Lt;var zt=new Ae({appName:`Widget SDK`,appVersion:`1.10.0`}),Bt=class{constructor(e,t,n){this.content=e,this.rootDocument=t,this.dialogClassname=n,this.dialogElement=null,this.triggerElement=null,this.iframeElement=null,this.currentListener=null}inject({into:e,bind:t,options:n}){this.remove();let r=ce({input:e,rootDocument:this.rootDocument});if(this.dialogElement=le(this.rootDocument),this.dialogElement.classList.add(this.dialogClassname),this.dialogElement.onclose=()=>this.#t(),r.appendChild(this.dialogElement),t){this.triggerElement=ce({input:t,rootDocument:this.rootDocument});let e=this.open.bind(this,n);this.currentListener=t=>{t.stopPropagation(),t.preventDefault(),e()},this.triggerElement.addEventListener(`click`,this.currentListener)}}remove(){this.dialogElement&&=(this.dialogElement.remove(),this.dialogElement.onclose=null,null),this.triggerElement&&(this.currentListener&&this.triggerElement.removeEventListener(`click`,this.currentListener),this.triggerElement=null,this.currentListener=null)}open(e){this.dialogElement||this.inject({into:this.rootDocument.body}),this.dialogElement&&(this.#e(),this.dialogElement.showModal())}close(){this.dialogElement&&this.dialogElement.close()}#e(){this.dialogElement&&(this.iframeElement=this.dialogElement.appendChild(this.content.iframe))}#t(){this.iframeElement&&=(this.iframeElement.remove(),null)}},Vt=class extends Bt{constructor(e,t){super(e,t,`ms-drawer`)}open(e){let{position:t=`right`}=e??{};super.open(e),this.dialogElement&&(this.dialogElement.dataset.position=t)}},Ht=class extends Bt{constructor(e,t){super(e,t,`ms-modal`)}},Ut=class{constructor(e){this.baseURL=Ie(e.baseURL),this.spotId=Me(e.spotId),this.widgetId=Me(e.widgetId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=de({url:new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`,oe(this.baseURL)),searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,...Dt(this.utmParameters)},rootDocument:this.rootDocument});return e.classList.add(`ms-widget`),e}},P=class{constructor(e){this.baseURL=Ie(e.baseURL),this.spotId=Me(e.spotId),this.widgetContentId=Me(e.widgetContentId),this.contentId=Me(e.contentId),this.widgetId=Me(e.widgetId),this.contentType=e.contentType,this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`,oe(this.baseURL));e.searchParams.set(`widgetId`,this.widgetId);let t=de({url:e,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,contentId:this.contentId,contentType:this.contentType,...Dt(this.utmParameters)},rootDocument:this.rootDocument});return t.classList.add(`ms-widget-content`),t}},Wt=class e{static{this.widgets=[]}static{this.messageListened=!1}static{this.widgetOptions={}}static injectWidgetInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widget:o,args:s}=e.createWidget({...n,spotId:r,rootDocument:i,baseURL:a}),c=new Pt(o);return c.inject(t),e.widgets.push(c),zt.log(`Widget injected`,e.cleanupLoggedArgs(s),t),c}static injectWidgetContentInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widgetContent:o,args:s}=e.createWidgetContent({...n,spotId:r,rootDocument:i,baseURL:a}),c=new Pt(o);return c.inject(t),e.widgets.push(c),zt.log(`WidgetContent injected`,e.cleanupLoggedArgs(s),t),c}static bindWidgetModalTo(t,n){return e.bindEntityModalTo(t,{type:`Widget`,data:n})}static bindWidgetDrawerTo(t,n){return e.bindEntityDrawerTo(t,{type:`Widget`,data:n})}static createWidgetDrawer(t){let{widget:n}=e.createWidget(t);return zt.log(`Create Widget drawer`,{data:e.cleanupLoggedArgs(t)}),new Vt(n,t.rootDocument??document)}static createWidgetModal(t){let{widget:n}=e.createWidget(t);return zt.log(`Create Widget modal`,{data:e.cleanupLoggedArgs(t)}),new Ht(n,t.rootDocument??document)}static createWidgetEmbed(t){let{widget:n}=e.createWidget(t),r=new Pt(n);return zt.log(`Create Widget embed`,{data:e.cleanupLoggedArgs(t)}),r}static clear(){e.widgets.forEach(e=>{e.remove()}),e.widgets=[],e.widgetOptions={},zt.log(`All Widget SDK MeltingSpot elements were cleared`)}static bindEntityDrawerTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new Vt(o,i),l={position:n.data.position},u=n.data.into??i.body;return c.inject({into:u,bind:t,options:l}),e.widgets.push(c),zt.log(`Widget bound to drawer`,e.cleanupLoggedArgs(s),l,u,t),c}static bindEntityModalTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new Ht(o,i),l=n.data.into??i.body;return c.inject({into:l,bind:t}),e.widgets.push(c),zt.log(`Widget bound to modal`,e.cleanupLoggedArgs(s),l,t),c}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==`OpenWidgetContent`)return;let n=t.data?.widgetId;if(!n||typeof n!=`string`){zt.error(`widgetId is required in the message event data`);return}let r=e.widgetOptions[n];if(!r){zt.error(`No widget options found for widgetId`,{widgetId:n});return}let i=null;try{i=new URL(r.baseURL).origin}catch{i=null}if(!i||t.origin!==i){zt.warn(`Ignoring OpenWidgetContent from unexpected origin`,{origin:t.origin,expectedOrigin:i});return}let{spotId:a,rootDocument:o,msCommunityWebBaseUrl:s}=Re.getConfiguration({spotId:r.spotId,rootDocument:r.rootDocument??document,msCommunityWebBaseUrl:r.baseURL}),{widgetContent:c}=e.createWidgetContent({...r,widgetContentId:t.data.widgetContentId,contentType:t.data.contentType,contentId:t.data.contentId,widgetId:n,spotId:a,rootDocument:o,baseURL:s});t.data.openingIn===`Drawer`?new Vt(c,o).open():t.data.openingIn===`Modal`&&new Ht(c,o).open()}static createWidget(t){let n=new URLSearchParams(window.location.search),r={spotId:t.spotId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??Et(n)};return e.widgetOptions[r.widgetId]=r,e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0),{widget:new Ut(r),args:r}}static createWidgetContent(e){let t=new URLSearchParams(window.location.search),n={spotId:e.spotId,contentId:e.contentId,contentType:e.contentType,widgetContentId:e.widgetContentId,widgetId:e.widgetId,authToken:e.authToken,themeMode:e.themeMode,domain:e.domain,rootDocument:e.rootDocument,baseURL:e.baseURL,utmParameters:e.utmParameters??Et(t)};return{widgetContent:new P(n),args:n}}static cleanupLoggedArgs(e){let{authToken:t,...n}=e;return{...n,authToken:t?`***`:void 0}}},Gt=globalThis;Gt.MeltingSpot||={},Gt.MeltingSpot.Widget=Wt,e.Drawer=Vt,e.Modal=Ht,e.Widget=Wt});
|