@everymatrix/cashier-session-expiration-modal 1.77.20 → 1.77.22

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.
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierSessionExpirationModal-negwAlZX.cjs")).then(({default:t})=>{!customElements.get("cashier-session-expiration-modal")&&customElements.define("cashier-session-expiration-modal",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierSessionExpirationModal-DqNHgUjj.cjs")).then(({default:t})=>{!customElements.get("cashier-session-expiration-modal")&&customElements.define("cashier-session-expiration-modal",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierSessionExpirationModal-BhM5U6bJ.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierSessionExpirationModal-ge0R8xm0.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-session-expiration-modal") && customElements.define("cashier-session-expiration-modal", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierSessionExpirationModal-E2PX0m2X.js";
1
+ import { C as n } from "../components/CashierSessionExpirationModal-BAFxIrEq.js";
2
2
  function i(s) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-session-expiration-modal",
3
- "version": "1.77.20",
3
+ "version": "1.77.22",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-session-expiration-modal.cjs",
6
6
  "module": "esnext/cashier-session-expiration-modal.js",
@@ -1,22 +0,0 @@
1
- "use strict";var Zi=Object.defineProperty,qi=Object.defineProperties;var Ji=Object.getOwnPropertyDescriptors;var rr=Object.getOwnPropertySymbols;var Qi=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable;var sn=(e,t,n)=>t in e?Zi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ir=(e,t)=>{for(var n in t||(t={}))Qi.call(t,n)&&sn(e,n,t[n]);if(rr)for(var n of rr(t))Ki.call(t,n)&&sn(e,n,t[n]);return e},or=(e,t)=>qi(e,Ji(t));var _e=(e,t,n)=>(sn(e,typeof t!="symbol"?t+"":t,n),n);var sr=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{u(n.next(c))}catch(l){i(l)}},a=c=>{try{u(n.throw(c))}catch(l){i(l)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,a);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function de(){}const Yr=e=>e;function eo(e,t){for(const n in t)e[n]=t[n];return e}function Zr(e){return e()}function ar(){return Object.create(null)}function Ie(e){e.forEach(Zr)}function Xt(e){return typeof e=="function"}function qr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let At;function ur(e,t){return e===t?!0:(At||(At=document.createElement("a")),At.href=t,e===At.href)}function to(e){return Object.keys(e).length===0}function Jr(e,...t){if(e==null){for(const r of t)r(void 0);return de}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function lr(e,t,n){e.$$.on_destroy.push(Jr(t,n))}function Nt(e,t,n,r){if(e){const i=Qr(e,t,n,r);return e[0](i)}}function Qr(e,t,n,r){return e[1]&&r?eo(n.ctx.slice(),e[1](r(t))):n.ctx}function Ht(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],a=Math.max(t.dirty.length,i.length);for(let u=0;u<a;u+=1)o[u]=t.dirty[u]|i[u];return o}return t.dirty|i}return t.dirty}function It(e,t,n,r,i,o){if(i){const a=Qr(t,n,r,o);e.p(a,i)}}function Rt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let r=0;r<n;r++)t[r]=-1;return t}return-1}const Kr=typeof window!="undefined";let no=Kr?()=>window.performance.now():()=>Date.now(),Nn=Kr?e=>requestAnimationFrame(e):de;const Ve=new Set;function ei(e){Ve.forEach(t=>{t.c(e)||(Ve.delete(t),t.f())}),Ve.size!==0&&Nn(ei)}function ro(e){let t;return Ve.size===0&&Nn(ei),{promise:new Promise(n=>{Ve.add(t={c:e,f:n})}),abort(){Ve.delete(t)}}}function J(e,t){e.appendChild(t)}function io(e,t,n){const r=Hn(e);if(!r.getElementById(t)){const i=re("style");i.id=t,i.textContent=n,ti(r,i)}}function Hn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function oo(e){const t=re("style");return t.textContent="/* empty */",ti(Hn(e),t),t.sheet}function ti(e,t){return J(e.head||e,t),t.sheet}function Ce(e,t,n){e.insertBefore(t,n||null)}function Ee(e){e.parentNode&&e.parentNode.removeChild(e)}function re(e){return document.createElement(e)}function cr(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Ke(e){return document.createTextNode(e)}function ht(){return Ke(" ")}function ni(){return Ke("")}function kt(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function V(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function so(e){return Array.from(e.childNodes)}function Yt(e,t){t=""+t,e.data!==t&&(e.data=t)}let Ot;function ao(){if(Ot===void 0){Ot=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){Ot=!0}}return Ot}function uo(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const r=re("iframe");r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1;const i=ao();let o;return i?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=kt(window,"message",a=>{a.source===r.contentWindow&&t()})):(r.src="about:blank",r.onload=()=>{o=kt(r.contentWindow,"resize",t),t()}),J(e,r),()=>{(i||o&&r.contentWindow)&&o(),Ee(r)}}function lo(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function co(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const Ft=new Map;let Gt=0;function fo(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function ho(e,t){const n={stylesheet:oo(t),rules:{}};return Ft.set(e,n),n}function fr(e,t,n,r,i,o,a,u=0){const c=16.666/r;let l=`{
2
- `;for(let C=0;C<=1;C+=c){const G=t+(n-t)*o(C);l+=C*100+`%{${a(G,1-G)}}
3
- `}const f=l+`100% {${a(n,1-n)}}
4
- }`,_=`__svelte_${fo(f)}_${u}`,y=Hn(e),{stylesheet:M,rules:b}=Ft.get(y)||ho(y,e);b[_]||(b[_]=!0,M.insertRule(`@keyframes ${_} ${f}`,M.cssRules.length));const d=e.style.animation||"";return e.style.animation=`${d?`${d}, `:""}${_} ${r}ms linear ${i}ms 1 both`,Gt+=1,_}function mo(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?o=>o.indexOf(t)<0:o=>o.indexOf("__svelte")===-1),i=n.length-r.length;i&&(e.style.animation=r.join(", "),Gt-=i,Gt||po())}function po(){Nn(()=>{Gt||(Ft.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&Ee(t)}),Ft.clear())})}let pt;function dt(e){pt=e}function ri(){if(!pt)throw new Error("Function called outside component initialization");return pt}function go(e){ri().$$.on_mount.push(e)}function _o(e){ri().$$.on_destroy.push(e)}const We=[],jt=[];let Xe=[];const hr=[],bo=Promise.resolve();let yn=!1;function Eo(){yn||(yn=!0,bo.then(le))}function Ye(e){Xe.push(e)}const an=new Set;let je=0;function le(){if(je!==0)return;const e=pt;do{try{for(;je<We.length;){const t=We[je];je++,dt(t),yo(t.$$)}}catch(t){throw We.length=0,je=0,t}for(dt(null),We.length=0,je=0;jt.length;)jt.pop()();for(let t=0;t<Xe.length;t+=1){const n=Xe[t];an.has(n)||(an.add(n),n())}Xe.length=0}while(We.length);for(;hr.length;)hr.pop()();yn=!1,an.clear(),dt(e)}function yo(e){if(e.fragment!==null){e.update(),Ie(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ye)}}function xo(e){const t=[],n=[];Xe.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Xe=t}let ot;function To(){return ot||(ot=Promise.resolve(),ot.then(()=>{ot=null})),ot}function un(e,t,n){e.dispatchEvent(lo(`${t?"intro":"outro"}${n}`))}const Pt=new Set;let Me;function ii(){Me={r:0,c:[],p:Me}}function oi(){Me.r||Ie(Me.c),Me=Me.p}function we(e,t){e&&e.i&&(Pt.delete(e),e.i(t))}function Ne(e,t,n,r){if(e&&e.o){if(Pt.has(e))return;Pt.add(e),Me.c.push(()=>{Pt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const vo={duration:0};function mr(e,t,n,r){let o=t(e,n,{direction:"both"}),a=r?0:1,u=null,c=null,l=null,f;function _(){l&&mo(e,l)}function y(b,d){const C=b.b-a;return d*=Math.abs(C),{a,b:b.b,d:C,duration:d,start:b.start,end:b.start+d,group:b.group}}function M(b){const{delay:d=0,duration:C=300,easing:G=Yr,tick:$=de,css:w}=o||vo,H={start:no()+d,b};b||(H.group=Me,Me.r+=1),"inert"in e&&(b?f!==void 0&&(e.inert=f):(f=e.inert,e.inert=!0)),u||c?c=H:(w&&(_(),l=fr(e,a,b,C,d,G,w)),b&&$(0,1),u=y(H,C),Ye(()=>un(e,b,"start")),ro(P=>{if(c&&P>c.start&&(u=y(c,C),c=null,un(e,u.b,"start"),w&&(_(),l=fr(e,a,u.b,u.duration,0,G,o.css))),u){if(P>=u.end)$(a=u.b,1-a),un(e,u.b,"end"),c||(u.b?_():--u.group.r||Ie(u.group.c)),u=null;else if(P>=u.start){const F=P-u.start;a=u.a+u.d*G(F/u.duration),$(a,1-a)}}return!!(u||c)}))}return{run(b){Xt(o)?To().then(()=>{o=o({direction:b?"in":"out"}),M(b)}):M(b)},end(){_(),u=c=null}}}function So(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),Ye(()=>{const o=e.$$.on_mount.map(Zr).filter(Xt);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ie(o),e.$$.on_mount=[]}),i.forEach(Ye)}function wo(e,t){const n=e.$$;n.fragment!==null&&(xo(n.after_update),Ie(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ao(e,t){e.$$.dirty[0]===-1&&(We.push(e),Eo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Oo(e,t,n,r,i,o,a=null,u=[-1]){const c=pt;dt(e);const l=e.$$={fragment:null,ctx:[],props:o,update:de,not_equal:i,bound:ar(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:ar(),dirty:u,skip_bound:!1,root:t.target||c.$$.root};a&&a(l.root);let f=!1;if(l.ctx=n?n(e,t.props||{},(_,y,...M)=>{const b=M.length?M[0]:y;return l.ctx&&i(l.ctx[_],l.ctx[_]=b)&&(!l.skip_bound&&l.bound[_]&&l.bound[_](b),f&&Ao(e,_)),y}):[],l.update(),f=!0,Ie(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const _=so(t.target);l.fragment&&l.fragment.l(_),_.forEach(Ee)}else l.fragment&&l.fragment.c();t.intro&&we(e.$$.fragment),So(e,t.target,t.anchor),le()}dt(c)}let si;typeof HTMLElement=="function"&&(si=class extends HTMLElement{constructor(t,n,r){super();_e(this,"$$ctor");_e(this,"$$s");_e(this,"$$c");_e(this,"$$cn",!1);_e(this,"$$d",{});_e(this,"$$r",!1);_e(this,"$$p_d",{});_e(this,"$$l",{});_e(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return sr(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let a;return{c:function(){a=re("slot"),o!=="default"&&V(a,"name",o)},m:function(l,f){Ce(l,a,f)},d:function(l){l&&Ee(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=co(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Dt(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:or(ir({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=Dt(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const u=this.$$c.$on(o,a);this.$$l_u.set(a,u)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Dt(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Dt(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Mo(e,t,n,r,i,o){let a=class extends si{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(a.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var l;c=Dt(u,c,t),this.$$d[u]=c,(l=this.$$c)==null||l.$set({[u]:c})}})}),r.forEach(u=>{Object.defineProperty(a.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),e.element=a,a}class Co{constructor(){_e(this,"$$");_e(this,"$$set")}$destroy(){wo(this,1),this.$destroy=de}$on(t,n){if(!Xt(n))return de;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!to(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Lo="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Lo);function dr(e,{delay:t=0,duration:n=400,easing:r=Yr}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:o=>`opacity: ${o*i}`}}const ze=[];function No(e,t){return{subscribe:bt(e,t).subscribe}}function bt(e,t=de){let n;const r=new Set;function i(u){if(qr(e,u)&&(e=u,n)){const c=!ze.length;for(const l of r)l[1](),ze.push(l,e);if(c){for(let l=0;l<ze.length;l+=2)ze[l][0](ze[l+1]);ze.length=0}}}function o(u){i(u(e))}function a(u,c=de){const l=[u,c];return r.add(l),r.size===1&&(n=t(i,o)||de),u(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:a}}function et(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return No(n,(a,u)=>{let c=!1;const l=[];let f=0,_=de;const y=()=>{if(f)return;_();const b=t(r?l[0]:l,a,u);o?a(b):_=Xt(b)?b:de},M=i.map((b,d)=>Jr(b,C=>{l[d]=C,f&=~(1<<d),c&&y()},()=>{f|=1<<d}));return c=!0,y(),function(){Ie(M),_(),c=!1}})}var ai=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function In(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ho=function(t){return Io(t)&&!Ro(t)};function Io(e){return!!e&&typeof e=="object"}function Ro(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Bo(e)}var Po=typeof Symbol=="function"&&Symbol.for,Do=Po?Symbol.for("react.element"):60103;function Bo(e){return e.$$typeof===Do}function $o(e){return Array.isArray(e)?[]:{}}function gt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ze($o(e),e,t):e}function Uo(e,t,n){return e.concat(t).map(function(r){return gt(r,n)})}function ko(e,t){if(!t.customMerge)return Ze;var n=t.customMerge(e);return typeof n=="function"?n:Ze}function Fo(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function pr(e){return Object.keys(e).concat(Fo(e))}function ui(e,t){try{return t in e}catch(n){return!1}}function Go(e,t){return ui(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function jo(e,t,n){var r={};return n.isMergeableObject(e)&&pr(e).forEach(function(i){r[i]=gt(e[i],n)}),pr(t).forEach(function(i){Go(e,i)||(ui(e,i)&&n.isMergeableObject(t[i])?r[i]=ko(i,n)(e[i],t[i],n):r[i]=gt(t[i],n))}),r}function Ze(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Uo,n.isMergeableObject=n.isMergeableObject||Ho,n.cloneUnlessOtherwiseSpecified=gt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):jo(e,t,n):gt(t,n)}Ze.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Ze(r,i,n)},{})};var zo=Ze,Wo=zo;const Vo=In(Wo);/*! *****************************************************************************
5
- Copyright (c) Microsoft Corporation.
6
-
7
- Permission to use, copy, modify, and/or distribute this software for any
8
- purpose with or without fee is hereby granted.
9
-
10
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
- PERFORMANCE OF THIS SOFTWARE.
17
- ***************************************************************************** */var xn=function(e,t){return xn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},xn(e,t)};function Zt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var k=function(){return k=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},k.apply(this,arguments)};function Xo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ln(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}function cn(e,t){var n=t&&t.cache?t.cache:es,r=t&&t.serializer?t.serializer:Qo,i=t&&t.strategy?t.strategy:qo;return i(e,{cache:n,serializer:r})}function Yo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Zo(e,t,n,r){var i=Yo(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function li(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function ci(e,t,n,r,i){return n.bind(t,e,r,i)}function qo(e,t){var n=e.length===1?Zo:li;return ci(e,this,n,t.cache.create(),t.serializer)}function Jo(e,t){return ci(e,this,li,t.cache.create(),t.serializer)}var Qo=function(){return JSON.stringify(arguments)},Ko=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),es={create:function(){return new Ko}},fn={variadic:Jo},D;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(D||(D={}));var Y;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Y||(Y={}));var qe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(qe||(qe={}));function gr(e){return e.type===Y.literal}function ts(e){return e.type===Y.argument}function fi(e){return e.type===Y.number}function hi(e){return e.type===Y.date}function mi(e){return e.type===Y.time}function di(e){return e.type===Y.select}function pi(e){return e.type===Y.plural}function ns(e){return e.type===Y.pound}function gi(e){return e.type===Y.tag}function _i(e){return!!(e&&typeof e=="object"&&e.type===qe.number)}function Tn(e){return!!(e&&typeof e=="object"&&e.type===qe.dateTime)}var bi=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,rs=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function is(e){var t={};return e.replace(rs,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var os=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ss(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(os).filter(function(y){return y.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var u=a[0],c=a.slice(1),l=0,f=c;l<f.length;l++){var _=f[l];if(_.length===0)throw new Error("Invalid number skeleton")}n.push({stem:u,options:c})}return n}function as(e){return e.replace(/^(.*?)-/,"")}var _r=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ei=/^(@+)?(\+|#+)?[rs]?$/g,us=/(\*)(0+)|(#+)(0+)|(0+)/g,yi=/^(0+)$/;function br(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ei,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function xi(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ls(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!yi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Er(e){var t={},n=xi(e);return n||t}function cs(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=as(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=k(k(k({},t),{notation:"scientific"}),i.options.reduce(function(c,l){return k(k({},c),Er(l))},{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),i.options.reduce(function(c,l){return k(k({},c),Er(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(us,function(c,l,f,_,y,M){if(l)t.minimumIntegerDigits=f.length;else{if(_&&y)throw new Error("We currently do not support maximum integer digits");if(M)throw new Error("We currently do not support exact integer digits")}return""});continue}if(yi.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(_r.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(_r,function(c,l,f,_,y,M){return f==="*"?t.minimumFractionDigits=l.length:_&&_[0]==="#"?t.maximumFractionDigits=_.length:y&&M?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+M.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=k(k({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=k(k({},t),br(o)));continue}if(Ei.test(i.stem)){t=k(k({},t),br(i.stem));continue}var a=xi(i.stem);a&&(t=k(k({},t),a));var u=ls(i.stem);u&&(t=k(k({},t),u))}return t}var Mt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function fs(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(o&1),u=o<2?1:3+(o>>1),c="a",l=hs(t);for((l=="H"||l=="k")&&(u=0);u-- >0;)n+=c;for(;a-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function hs(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Mt[r||""]||Mt[n||""]||Mt["".concat(n,"-001")]||Mt["001"];return i[0]}var hn,ms=new RegExp("^".concat(bi.source,"*")),ds=new RegExp("".concat(bi.source,"*$"));function B(e,t){return{start:e,end:t}}var ps=!!String.prototype.startsWith&&"_a".startsWith("a",1),gs=!!String.fromCodePoint,_s=!!Object.fromEntries,bs=!!String.prototype.codePointAt,Es=!!String.prototype.trimStart,ys=!!String.prototype.trimEnd,xs=!!Number.isSafeInteger,Ts=xs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},vn=!0;try{var vs=vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vn=((hn=vs.exec("a"))===null||hn===void 0?void 0:hn[0])==="a"}catch(e){vn=!1}var yr=ps?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Sn=gs?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},xr=_s?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],a=o[0],u=o[1];n[a]=u}return n},Ti=bs?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Ss=Es?function(t){return t.trimStart()}:function(t){return t.replace(ms,"")},ws=ys?function(t){return t.trimEnd()}:function(t){return t.replace(ds,"")};function vi(e,t){return new RegExp(e,t)}var wn;if(vn){var Tr=vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wn=function(t,n){var r;Tr.lastIndex=n;var i=Tr.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else wn=function(t,n){for(var r=[];;){var i=Ti(t,n);if(i===void 0||Si(i)||Cs(i))break;r.push(i),n+=i>=65536?2:1}return Sn.apply(void 0,r)};var As=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var u=this.clonePosition();this.bump(),i.push({type:Y.pound,location:B(u,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(D.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&An(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Y.literal,value:"<".concat(i,"/>"),location:B(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var a=o.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!An(this.char()))return this.error(D.INVALID_TAG,B(u,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(D.UNMATCHED_CLOSING_TAG,B(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Y.tag,value:i,children:a,location:B(r,this.clonePosition())},err:null}:this.error(D.INVALID_TAG,B(u,this.clonePosition())))}else return this.error(D.UNCLOSED_TAG,B(r,this.clonePosition()))}else return this.error(D.INVALID_TAG,B(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ms(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var u=this.tryParseLeftAngleBracket();if(u){i+=u;continue}break}var c=B(r,this.clonePosition());return{val:{type:Y.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Os(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Sn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Sn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(D.EMPTY_ARGUMENT,B(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(D.MALFORMED_ARGUMENT,B(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Y.argument,value:i,location:B(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(D.MALFORMED_ARGUMENT,B(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=wn(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=B(t,o);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,a=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(D.EXPECT_ARGUMENT_TYPE,B(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var y=ws(_.val);if(y.length===0)return this.error(D.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var M=B(f,this.clonePosition());l={style:y,styleLocation:M}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var d=B(i,this.clonePosition());if(l&&yr(l==null?void 0:l.style,"::",0)){var C=Ss(l.style.slice(2));if(u==="number"){var _=this.parseNumberSkeletonFromString(C,l.styleLocation);return _.err?_:{val:{type:Y.number,value:r,location:d,style:_.val},err:null}}else{if(C.length===0)return this.error(D.EXPECT_DATE_TIME_SKELETON,d);var G=C;this.locale&&(G=fs(C,this.locale));var y={type:qe.dateTime,pattern:G,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?is(G):{}},$=u==="date"?Y.date:Y.time;return{val:{type:$,value:r,location:d,style:y},err:null}}}return{val:{type:u==="number"?Y.number:u==="date"?Y.date:Y.time,value:r,location:d,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS,B(w,k({},w)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),P=0;if(u!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),H=this.parseIdentifierIfPossible(),P=_.val}var F=this.tryParsePluralOrSelectOptions(t,u,n,H);if(F.err)return F;var b=this.tryParseArgumentClose(i);if(b.err)return b;var Z=B(i,this.clonePosition());return u==="select"?{val:{type:Y.select,value:r,options:xr(F.val),location:Z},err:null}:{val:{type:Y.plural,value:r,options:xr(F.val),offset:P,pluralType:u==="plural"?"cardinal":"ordinal",location:Z},err:null}}default:return this.error(D.INVALID_ARGUMENT_TYPE,B(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(D.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=ss(t)}catch(i){return this.error(D.INVALID_NUMBER_SKELETON,n)}return{val:{type:qe.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?cs(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,a=!1,u=[],c=new Set,l=i.value,f=i.location;;){if(l.length===0){var _=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR,D.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;f=B(_,this.clonePosition()),l=this.message.slice(_.offset,this.offset())}else break}if(c.has(l))return this.error(n==="select"?D.DUPLICATE_SELECT_ARGUMENT_SELECTOR:D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var M=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(t+1,n,r);if(b.err)return b;var d=this.tryParseArgumentClose(M);if(d.err)return d;u.push([l,{value:b.val,location:B(M,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,f=o.location}return u.length===0?this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR:D.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(D.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,a=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)o=!0,a=a*10+(u-48),this.bump();else break}var c=B(i,this.clonePosition());return o?(a*=r,Ts(a)?{val:a,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Ti(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(yr(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Si(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function An(e){return e>=97&&e<=122||e>=65&&e<=90}function Os(e){return An(e)||e===47}function Ms(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Si(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Cs(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function On(e){e.forEach(function(t){if(delete t.location,di(t)||pi(t))for(var n in t.options)delete t.options[n].location,On(t.options[n].value);else fi(t)&&_i(t.style)||(hi(t)||mi(t))&&Tn(t.style)?delete t.style.location:gi(t)&&On(t.children)})}function Ls(e,t){t===void 0&&(t={}),t=k({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new As(e,t).parse();if(n.err){var r=SyntaxError(D[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||On(n.val),n.val}var Je;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Je||(Je={}));var qt=function(e){Zt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),vr=function(e){Zt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Je.INVALID_VALUE,o)||this}return t}(qt),Ns=function(e){Zt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Je.INVALID_VALUE,i)||this}return t}(qt),Hs=function(e){Zt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Je.MISSING_VALUE,r)||this}return t}(qt),ce;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ce||(ce={}));function Is(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ce.literal||n.type!==ce.literal?t.push(n):r.value+=n.value,t},[])}function Rs(e){return typeof e=="function"}function Bt(e,t,n,r,i,o,a){if(e.length===1&&gr(e[0]))return[{type:ce.literal,value:e[0].value}];for(var u=[],c=0,l=e;c<l.length;c++){var f=l[c];if(gr(f)){u.push({type:ce.literal,value:f.value});continue}if(ns(f)){typeof o=="number"&&u.push({type:ce.literal,value:n.getNumberFormat(t).format(o)});continue}var _=f.value;if(!(i&&_ in i))throw new Hs(_,a);var y=i[_];if(ts(f)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),u.push({type:typeof y=="string"?ce.literal:ce.object,value:y});continue}if(hi(f)){var M=typeof f.style=="string"?r.date[f.style]:Tn(f.style)?f.style.parsedOptions:void 0;u.push({type:ce.literal,value:n.getDateTimeFormat(t,M).format(y)});continue}if(mi(f)){var M=typeof f.style=="string"?r.time[f.style]:Tn(f.style)?f.style.parsedOptions:r.time.medium;u.push({type:ce.literal,value:n.getDateTimeFormat(t,M).format(y)});continue}if(fi(f)){var M=typeof f.style=="string"?r.number[f.style]:_i(f.style)?f.style.parsedOptions:void 0;M&&M.scale&&(y=y*(M.scale||1)),u.push({type:ce.literal,value:n.getNumberFormat(t,M).format(y)});continue}if(gi(f)){var b=f.children,d=f.value,C=i[d];if(!Rs(C))throw new Ns(d,"function",a);var G=Bt(b,t,n,r,i,o),$=C(G.map(function(P){return P.value}));Array.isArray($)||($=[$]),u.push.apply(u,$.map(function(P){return{type:typeof P=="string"?ce.literal:ce.object,value:P}}))}if(di(f)){var w=f.options[y]||f.options.other;if(!w)throw new vr(f.value,y,Object.keys(f.options),a);u.push.apply(u,Bt(w.value,t,n,r,i));continue}if(pi(f)){var w=f.options["=".concat(y)];if(!w){if(!Intl.PluralRules)throw new qt(`Intl.PluralRules is not available in this environment.
18
- Try polyfilling it using "@formatjs/intl-pluralrules"
19
- `,Je.MISSING_INTL_API,a);var H=n.getPluralRules(t,{type:f.pluralType}).select(y-(f.offset||0));w=f.options[H]||f.options.other}if(!w)throw new vr(f.value,y,Object.keys(f.options),a);u.push.apply(u,Bt(w.value,t,n,r,i,y-(f.offset||0)));continue}}return Is(u)}function Ps(e,t){return t?k(k(k({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=k(k({},e[r]),t[r]||{}),n},{})):e}function Ds(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Ps(e[r],t[r]),n},k({},e)):e}function mn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Bs(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:cn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ln([void 0],n,!1)))},{cache:mn(e.number),strategy:fn.variadic}),getDateTimeFormat:cn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ln([void 0],n,!1)))},{cache:mn(e.dateTime),strategy:fn.variadic}),getPluralRules:cn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ln([void 0],n,!1)))},{cache:mn(e.pluralRules),strategy:fn.variadic})}}var wi=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=o.formatToParts(c);if(l.length===1)return l[0].value;var f=l.reduce(function(_,y){return!_.length||y.type!==ce.literal||typeof _[_.length-1]!="string"?_.push(y.value):_[_.length-1]+=y.value,_},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return Bt(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var u=Xo(a,["formatters"]);this.ast=e.__parse(t,k(k({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ds(e.formats,r),this.formatters=i&&i.formatters||Bs(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Ls,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function $s(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const He={},Us=(e,t,n)=>n&&(t in He||(He[t]={}),e in He[t]||(He[t][e]=n),n),Ai=(e,t)=>{if(t==null)return;if(t in He&&e in He[t])return He[t][e];const n=yt(t);for(let r=0;r<n.length;r++){const i=n[r],o=Fs(i,e);if(o)return Us(e,t,o)}};let Rn;const Et=bt({});function ks(e){return Rn[e]||null}function Oi(e){return e in Rn}function Fs(e,t){if(!Oi(e))return null;const n=ks(e);return $s(n,t)}function Gs(e){if(e==null)return;const t=yt(e);for(let n=0;n<t.length;n++){const r=t[n];if(Oi(r))return r}}function Mi(e,...t){delete He[e],Et.update(n=>(n[e]=Vo.all([n[e]||{},...t]),n))}et([Et],([e])=>Object.keys(e));Et.subscribe(e=>Rn=e);const $t={};function js(e,t){$t[e].delete(t),$t[e].size===0&&delete $t[e]}function Ci(e){return $t[e]}function zs(e){return yt(e).map(t=>{const n=Ci(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function zt(e){return e==null?!1:yt(e).some(t=>{var n;return(n=Ci(t))==null?void 0:n.size})}function Ws(e,t){return Promise.all(t.map(r=>(js(e,r),r().then(i=>i.default||i)))).then(r=>Mi(e,...r))}const st={};function Li(e){if(!zt(e))return e in st?st[e]:Promise.resolve();const t=zs(e);return st[e]=Promise.all(t.map(([n,r])=>Ws(n,r))).then(()=>{if(zt(e))return Li(e);delete st[e]}),st[e]}var Sr=Object.getOwnPropertySymbols,Vs=Object.prototype.hasOwnProperty,Xs=Object.prototype.propertyIsEnumerable,Ys=(e,t)=>{var n={};for(var r in e)Vs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Sr)for(var r of Sr(e))t.indexOf(r)<0&&Xs.call(e,r)&&(n[r]=e[r]);return n};const Zs={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function qs({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${yt(e).join('", "')}".${zt(Re())?`
20
-
21
- Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Js={fallbackLocale:null,loadingDelay:200,formats:Zs,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},mt=Js;function Qe(){return mt}function Qs(e){const t=e,{formats:n}=t,r=Ys(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{wi.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(o){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=qs:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(mt,r,{initialLocale:i}),n&&("number"in n&&Object.assign(mt.formats.number,n.number),"date"in n&&Object.assign(mt.formats.date,n.date),"time"in n&&Object.assign(mt.formats.time,n.time)),Be.set(i)}const dn=bt(!1);var Ks=Object.defineProperty,ea=Object.defineProperties,ta=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,na=Object.prototype.hasOwnProperty,ra=Object.prototype.propertyIsEnumerable,Ar=(e,t,n)=>t in e?Ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ia=(e,t)=>{for(var n in t||(t={}))na.call(t,n)&&Ar(e,n,t[n]);if(wr)for(var n of wr(t))ra.call(t,n)&&Ar(e,n,t[n]);return e},oa=(e,t)=>ea(e,ta(t));let Mn;const Wt=bt(null);function Or(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function yt(e,t=Qe().fallbackLocale){const n=Or(e);return t?[...new Set([...n,...Or(t)])]:n}function Re(){return Mn!=null?Mn:void 0}Wt.subscribe(e=>{Mn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const sa=e=>{if(e&&Gs(e)&&zt(e)){const{loadingDelay:t}=Qe();let n;return typeof window!="undefined"&&Re()!=null&&t?n=window.setTimeout(()=>dn.set(!0),t):dn.set(!0),Li(e).then(()=>{Wt.set(e)}).finally(()=>{clearTimeout(n),dn.set(!1)})}return Wt.set(e)},Be=oa(ia({},Wt),{set:sa}),Jt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var aa=Object.defineProperty,Vt=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,Mr=(e,t,n)=>t in e?aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pn=(e,t)=>{for(var n in t||(t={}))Ni.call(t,n)&&Mr(e,n,t[n]);if(Vt)for(var n of Vt(t))Hi.call(t,n)&&Mr(e,n,t[n]);return e},tt=(e,t)=>{var n={};for(var r in e)Ni.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Vt)for(var r of Vt(e))t.indexOf(r)<0&&Hi.call(e,r)&&(n[r]=e[r]);return n};const _t=(e,t)=>{const{formats:n}=Qe();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ua=Jt(e=>{var t=e,{locale:n,format:r}=t,i=tt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=_t("number",r)),new Intl.NumberFormat(n,i)}),la=Jt(e=>{var t=e,{locale:n,format:r}=t,i=tt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=_t("date",r):Object.keys(i).length===0&&(i=_t("date","short")),new Intl.DateTimeFormat(n,i)}),ca=Jt(e=>{var t=e,{locale:n,format:r}=t,i=tt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=_t("time",r):Object.keys(i).length===0&&(i=_t("time","short")),new Intl.DateTimeFormat(n,i)}),fa=(e={})=>{var t=e,{locale:n=Re()}=t,r=tt(t,["locale"]);return ua(Pn({locale:n},r))},ha=(e={})=>{var t=e,{locale:n=Re()}=t,r=tt(t,["locale"]);return la(Pn({locale:n},r))},ma=(e={})=>{var t=e,{locale:n=Re()}=t,r=tt(t,["locale"]);return ca(Pn({locale:n},r))},da=Jt((e,t=Re())=>new wi(e,t,Qe().formats,{ignoreTag:Qe().ignoreTag})),pa=(e,t={})=>{var n,r,i,o;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:u,locale:c=Re(),default:l}=a;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Ai(e,c);if(!f)f=(o=(i=(r=(n=Qe()).handleMissingMessage)==null?void 0:r.call(n,{locale:c,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!u)return f;let _=f;try{_=da(f,c).format(u)}catch(y){y instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,y.message)}return _},ga=(e,t)=>ma(t).format(e),_a=(e,t)=>ha(t).format(e),ba=(e,t)=>fa(t).format(e),Ea=(e,t=Re())=>Ai(e,t),ya=et([Be,Et],()=>pa);et([Be],()=>ga);et([Be],()=>_a);et([Be],()=>ba);et([Be,Et],()=>Ea);function Cr(e,t){Mi(e,t)}function xa(e){Qs({fallbackLocale:"en"}),Be.set(e)}const Lr={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME..."},"en-us":{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Ii,setPrototypeOf:Nr,isFrozen:Ta,getPrototypeOf:va,getOwnPropertyDescriptor:Sa}=Object;let{freeze:fe,seal:be,create:Ri}=Object,{apply:Cn,construct:Ln}=typeof Reflect!="undefined"&&Reflect;fe||(fe=function(t){return t});be||(be=function(t){return t});Cn||(Cn=function(t,n,r){return t.apply(n,r)});Ln||(Ln=function(t,n){return new t(...n)});const Ct=pe(Array.prototype.forEach),Hr=pe(Array.prototype.pop),at=pe(Array.prototype.push),Ut=pe(String.prototype.toLowerCase),pn=pe(String.prototype.toString),Ir=pe(String.prototype.match),ut=pe(String.prototype.replace),wa=pe(String.prototype.indexOf),Aa=pe(String.prototype.trim),Te=pe(Object.prototype.hasOwnProperty),ue=pe(RegExp.prototype.test),lt=Oa(TypeError);function pe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Cn(e,t,r)}}function Oa(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ln(e,n)}}function R(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ut;Nr&&Nr(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Ta(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Ma(e){for(let t=0;t<e.length;t++)Te(e,t)||(e[t]=null);return e}function De(e){const t=Ri(null);for(const[n,r]of Ii(e))Te(e,n)&&(Array.isArray(r)?t[n]=Ma(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=De(r):t[n]=r);return t}function ct(e,t){for(;e!==null;){const r=Sa(e,t);if(r){if(r.get)return pe(r.get);if(typeof r.value=="function")return pe(r.value)}e=va(e)}function n(){return null}return n}const Rr=fe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gn=fe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_n=fe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ca=fe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),bn=fe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),La=fe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pr=fe(["#text"]),Dr=fe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),En=fe(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Br=fe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Lt=fe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Na=be(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ha=be(/<%[\w\W]*|[\w\W]*%>/gm),Ia=be(/\${[\w\W]*}/gm),Ra=be(/^data-[\-\w.\u00B7-\uFFFF]/),Pa=be(/^aria-[\-\w]+$/),Pi=be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Da=be(/^(?:\w+script|data):/i),Ba=be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Di=be(/^html$/i),$a=be(/^[a-z][.\w]*(-[.\w]+)+$/i);var $r=Object.freeze({__proto__:null,MUSTACHE_EXPR:Na,ERB_EXPR:Ha,TMPLIT_EXPR:Ia,DATA_ATTR:Ra,ARIA_ATTR:Pa,IS_ALLOWED_URI:Pi,IS_SCRIPT_OR_DATA:Da,ATTR_WHITESPACE:Ba,DOCTYPE_NAME:Di,CUSTOM_ELEMENT:$a});const ft={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ua=function(){return typeof window=="undefined"?null:window},ka=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Bi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ua();const t=A=>Bi(A);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==ft.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:u,Element:c,NodeFilter:l,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:_,DOMParser:y,trustedTypes:M}=e,b=c.prototype,d=ct(b,"cloneNode"),C=ct(b,"remove"),G=ct(b,"nextSibling"),$=ct(b,"childNodes"),w=ct(b,"parentNode");if(typeof a=="function"){const A=n.createElement("template");A.content&&A.content.ownerDocument&&(n=A.content.ownerDocument)}let H,P="";const{implementation:F,createNodeIterator:Z,createDocumentFragment:X,getElementsByTagName:Q}=n,{importNode:j}=r;let O={};t.isSupported=typeof Ii=="function"&&typeof w=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:te,ERB_EXPR:he,TMPLIT_EXPR:v,DATA_ATTR:E,ARIA_ATTR:g,IS_SCRIPT_OR_DATA:T,ATTR_WHITESPACE:h,CUSTOM_ELEMENT:x}=$r;let{IS_ALLOWED_URI:L}=$r,N=null;const z=R({},[...Rr,...gn,..._n,...bn,...Pr]);let I=null;const q=R({},[...Dr,...En,...Br,...Lt]);let m=Object.seal(Ri(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,ee=null,K=!0,ye=!0,ie=!1,xe=!0,ge=!1,Le=!0,Pe=!1,Qt=!1,Kt=!1,$e=!1,xt=!1,Tt=!1,Dn=!0,Bn=!1;const Fi="user-content-";let en=!0,nt=!1,Ue={},ke=null;const $n=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Un=null;const kn=R({},["audio","video","img","source","image","track"]);let tn=null;const Fn=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let Fe=Ae,nn=!1,rn=null;const Gi=R({},[vt,St,Ae],pn);let rt=null;const ji=["application/xhtml+xml","text/html"],zi="text/html";let ne=null,Ge=null;const Wi=n.createElement("form"),Gn=function(s){return s instanceof RegExp||s instanceof Function},on=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ge&&Ge===s)){if((!s||typeof s!="object")&&(s={}),s=De(s),rt=ji.indexOf(s.PARSER_MEDIA_TYPE)===-1?zi:s.PARSER_MEDIA_TYPE,ne=rt==="application/xhtml+xml"?pn:Ut,N=Te(s,"ALLOWED_TAGS")?R({},s.ALLOWED_TAGS,ne):z,I=Te(s,"ALLOWED_ATTR")?R({},s.ALLOWED_ATTR,ne):q,rn=Te(s,"ALLOWED_NAMESPACES")?R({},s.ALLOWED_NAMESPACES,pn):Gi,tn=Te(s,"ADD_URI_SAFE_ATTR")?R(De(Fn),s.ADD_URI_SAFE_ATTR,ne):Fn,Un=Te(s,"ADD_DATA_URI_TAGS")?R(De(kn),s.ADD_DATA_URI_TAGS,ne):kn,ke=Te(s,"FORBID_CONTENTS")?R({},s.FORBID_CONTENTS,ne):$n,U=Te(s,"FORBID_TAGS")?R({},s.FORBID_TAGS,ne):{},ee=Te(s,"FORBID_ATTR")?R({},s.FORBID_ATTR,ne):{},Ue=Te(s,"USE_PROFILES")?s.USE_PROFILES:!1,K=s.ALLOW_ARIA_ATTR!==!1,ye=s.ALLOW_DATA_ATTR!==!1,ie=s.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=s.SAFE_FOR_TEMPLATES||!1,Le=s.SAFE_FOR_XML!==!1,Pe=s.WHOLE_DOCUMENT||!1,$e=s.RETURN_DOM||!1,xt=s.RETURN_DOM_FRAGMENT||!1,Tt=s.RETURN_TRUSTED_TYPE||!1,Kt=s.FORCE_BODY||!1,Dn=s.SANITIZE_DOM!==!1,Bn=s.SANITIZE_NAMED_PROPS||!1,en=s.KEEP_CONTENT!==!1,nt=s.IN_PLACE||!1,L=s.ALLOWED_URI_REGEXP||Pi,Fe=s.NAMESPACE||Ae,m=s.CUSTOM_ELEMENT_HANDLING||{},s.CUSTOM_ELEMENT_HANDLING&&Gn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&Gn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(ye=!1),xt&&($e=!0),Ue&&(N=R({},Pr),I=[],Ue.html===!0&&(R(N,Rr),R(I,Dr)),Ue.svg===!0&&(R(N,gn),R(I,En),R(I,Lt)),Ue.svgFilters===!0&&(R(N,_n),R(I,En),R(I,Lt)),Ue.mathMl===!0&&(R(N,bn),R(I,Br),R(I,Lt))),s.ADD_TAGS&&(N===z&&(N=De(N)),R(N,s.ADD_TAGS,ne)),s.ADD_ATTR&&(I===q&&(I=De(I)),R(I,s.ADD_ATTR,ne)),s.ADD_URI_SAFE_ATTR&&R(tn,s.ADD_URI_SAFE_ATTR,ne),s.FORBID_CONTENTS&&(ke===$n&&(ke=De(ke)),R(ke,s.FORBID_CONTENTS,ne)),en&&(N["#text"]=!0),Pe&&R(N,["html","head","body"]),N.table&&(R(N,["tbody"]),delete U.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=s.TRUSTED_TYPES_POLICY,P=H.createHTML("")}else H===void 0&&(H=ka(M,i)),H!==null&&typeof P=="string"&&(P=H.createHTML(""));fe&&fe(s),Ge=s}},jn=R({},["mi","mo","mn","ms","mtext"]),zn=R({},["foreignobject","annotation-xml"]),Vi=R({},["title","style","font","a","script"]),Wn=R({},[...gn,..._n,...Ca]),Vn=R({},[...bn,...La]),Xi=function(s){let p=w(s);(!p||!p.tagName)&&(p={namespaceURI:Fe,tagName:"template"});const S=Ut(s.tagName),W=Ut(p.tagName);return rn[s.namespaceURI]?s.namespaceURI===St?p.namespaceURI===Ae?S==="svg":p.namespaceURI===vt?S==="svg"&&(W==="annotation-xml"||jn[W]):!!Wn[S]:s.namespaceURI===vt?p.namespaceURI===Ae?S==="math":p.namespaceURI===St?S==="math"&&zn[W]:!!Vn[S]:s.namespaceURI===Ae?p.namespaceURI===St&&!zn[W]||p.namespaceURI===vt&&!jn[W]?!1:!Vn[S]&&(Vi[S]||!Wn[S]):!!(rt==="application/xhtml+xml"&&rn[s.namespaceURI]):!1},ve=function(s){at(t.removed,{element:s});try{w(s).removeChild(s)}catch(p){C(s)}},wt=function(s,p){try{at(t.removed,{attribute:p.getAttributeNode(s),from:p})}catch(S){at(t.removed,{attribute:null,from:p})}if(p.removeAttribute(s),s==="is"&&!I[s])if($e||xt)try{ve(p)}catch(S){}else try{p.setAttribute(s,"")}catch(S){}},Xn=function(s){let p=null,S=null;if(Kt)s="<remove></remove>"+s;else{const oe=Ir(s,/^[\r\n\t ]+/);S=oe&&oe[0]}rt==="application/xhtml+xml"&&Fe===Ae&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");const W=H?H.createHTML(s):s;if(Fe===Ae)try{p=new y().parseFromString(W,rt)}catch(oe){}if(!p||!p.documentElement){p=F.createDocument(Fe,"template",null);try{p.documentElement.innerHTML=nn?P:W}catch(oe){}}const se=p.body||p.documentElement;return s&&S&&se.insertBefore(n.createTextNode(S),se.childNodes[0]||null),Fe===Ae?Q.call(p,Pe?"html":"body")[0]:Pe?p.documentElement:se},Yn=function(s){return Z.call(s.ownerDocument||s,s,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Zn=function(s){return s instanceof _&&(typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||!(s.attributes instanceof f)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function")},qn=function(s){return typeof u=="function"&&s instanceof u},Oe=function(s,p,S){O[s]&&Ct(O[s],W=>{W.call(t,p,S,Ge)})},Jn=function(s){let p=null;if(Oe("beforeSanitizeElements",s,null),Zn(s))return ve(s),!0;const S=ne(s.nodeName);if(Oe("uponSanitizeElement",s,{tagName:S,allowedTags:N}),s.hasChildNodes()&&!qn(s.firstElementChild)&&ue(/<[/\w]/g,s.innerHTML)&&ue(/<[/\w]/g,s.textContent)||s.nodeType===ft.progressingInstruction||Le&&s.nodeType===ft.comment&&ue(/<[/\w]/g,s.data))return ve(s),!0;if(!N[S]||U[S]){if(!U[S]&&Kn(S)&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,S)||m.tagNameCheck instanceof Function&&m.tagNameCheck(S)))return!1;if(en&&!ke[S]){const W=w(s)||s.parentNode,se=$(s)||s.childNodes;if(se&&W){const oe=se.length;for(let me=oe-1;me>=0;--me){const Se=d(se[me],!0);Se.__removalCount=(s.__removalCount||0)+1,W.insertBefore(Se,G(s))}}}return ve(s),!0}return s instanceof c&&!Xi(s)||(S==="noscript"||S==="noembed"||S==="noframes")&&ue(/<\/no(script|embed|frames)/i,s.innerHTML)?(ve(s),!0):(ge&&s.nodeType===ft.text&&(p=s.textContent,Ct([te,he,v],W=>{p=ut(p,W," ")}),s.textContent!==p&&(at(t.removed,{element:s.cloneNode()}),s.textContent=p)),Oe("afterSanitizeElements",s,null),!1)},Qn=function(s,p,S){if(Dn&&(p==="id"||p==="name")&&(S in n||S in Wi))return!1;if(!(ye&&!ee[p]&&ue(E,p))){if(!(K&&ue(g,p))){if(!I[p]||ee[p]){if(!(Kn(s)&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,s)||m.tagNameCheck instanceof Function&&m.tagNameCheck(s))&&(m.attributeNameCheck instanceof RegExp&&ue(m.attributeNameCheck,p)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(p))||p==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,S)||m.tagNameCheck instanceof Function&&m.tagNameCheck(S))))return!1}else if(!tn[p]){if(!ue(L,ut(S,h,""))){if(!((p==="src"||p==="xlink:href"||p==="href")&&s!=="script"&&wa(S,"data:")===0&&Un[s])){if(!(ie&&!ue(T,ut(S,h,"")))){if(S)return!1}}}}}}return!0},Kn=function(s){return s!=="annotation-xml"&&Ir(s,x)},er=function(s){Oe("beforeSanitizeAttributes",s,null);const{attributes:p}=s;if(!p)return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:I};let W=p.length;for(;W--;){const se=p[W],{name:oe,namespaceURI:me,value:Se}=se,it=ne(oe);let ae=oe==="value"?Se:Aa(Se);if(S.attrName=it,S.attrValue=ae,S.keepAttr=!0,S.forceKeepAttr=void 0,Oe("uponSanitizeAttribute",s,S),ae=S.attrValue,Le&&ue(/((--!?|])>)|<\/(style|title)/i,ae)){wt(oe,s);continue}if(S.forceKeepAttr||(wt(oe,s),!S.keepAttr))continue;if(!xe&&ue(/\/>/i,ae)){wt(oe,s);continue}ge&&Ct([te,he,v],nr=>{ae=ut(ae,nr," ")});const tr=ne(s.nodeName);if(Qn(tr,it,ae)){if(Bn&&(it==="id"||it==="name")&&(wt(oe,s),ae=Fi+ae),H&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!me)switch(M.getAttributeType(tr,it)){case"TrustedHTML":{ae=H.createHTML(ae);break}case"TrustedScriptURL":{ae=H.createScriptURL(ae);break}}try{me?s.setAttributeNS(me,oe,ae):s.setAttribute(oe,ae),Zn(s)?ve(s):Hr(t.removed)}catch(nr){}}}Oe("afterSanitizeAttributes",s,null)},Yi=function A(s){let p=null;const S=Yn(s);for(Oe("beforeSanitizeShadowDOM",s,null);p=S.nextNode();)Oe("uponSanitizeShadowNode",p,null),!Jn(p)&&(p.content instanceof o&&A(p.content),er(p));Oe("afterSanitizeShadowDOM",s,null)};return t.sanitize=function(A){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,S=null,W=null,se=null;if(nn=!A,nn&&(A="<!-->"),typeof A!="string"&&!qn(A))if(typeof A.toString=="function"){if(A=A.toString(),typeof A!="string")throw lt("dirty is not a string, aborting")}else throw lt("toString is not a function");if(!t.isSupported)return A;if(Qt||on(s),t.removed=[],typeof A=="string"&&(nt=!1),nt){if(A.nodeName){const Se=ne(A.nodeName);if(!N[Se]||U[Se])throw lt("root node is forbidden and cannot be sanitized in-place")}}else if(A instanceof u)p=Xn("<!---->"),S=p.ownerDocument.importNode(A,!0),S.nodeType===ft.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?p=S:p.appendChild(S);else{if(!$e&&!ge&&!Pe&&A.indexOf("<")===-1)return H&&Tt?H.createHTML(A):A;if(p=Xn(A),!p)return $e?null:Tt?P:""}p&&Kt&&ve(p.firstChild);const oe=Yn(nt?A:p);for(;W=oe.nextNode();)Jn(W)||(W.content instanceof o&&Yi(W.content),er(W));if(nt)return A;if($e){if(xt)for(se=X.call(p.ownerDocument);p.firstChild;)se.appendChild(p.firstChild);else se=p;return(I.shadowroot||I.shadowrootmode)&&(se=j.call(r,se,!0)),se}let me=Pe?p.outerHTML:p.innerHTML;return Pe&&N["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&ue(Di,p.ownerDocument.doctype.name)&&(me="<!DOCTYPE "+p.ownerDocument.doctype.name+`>
22
- `+me),ge&&Ct([te,he,v],Se=>{me=ut(me,Se," ")}),H&&Tt?H.createHTML(me):me},t.setConfig=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};on(A),Qt=!0},t.clearConfig=function(){Ge=null,Qt=!1},t.isValidAttribute=function(A,s,p){Ge||on({});const S=ne(A),W=ne(s);return Qn(S,W,p)},t.addHook=function(A,s){typeof s=="function"&&(O[A]=O[A]||[],at(O[A],s))},t.removeHook=function(A){if(O[A])return Hr(O[A])},t.removeHooks=function(A){O[A]&&(O[A]=[])},t.removeAllHooks=function(){O={}},t}var Ur=Bi(),$i={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ai,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",l="day",f="week",_="month",y="quarter",M="year",b="date",d="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,G=/\[([^\]]+)]|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,$={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(v){var E=["th","st","nd","rd"],g=v%100;return"["+v+(E[(g-20)%10]||E[g]||E[0])+"]"}},w=function(v,E,g){var T=String(v);return!T||T.length>=E?v:""+Array(E+1-T.length).join(g)+v},H={s:w,z:function(v){var E=-v.utcOffset(),g=Math.abs(E),T=Math.floor(g/60),h=g%60;return(E<=0?"+":"-")+w(T,2,"0")+":"+w(h,2,"0")},m:function v(E,g){if(E.date()<g.date())return-v(g,E);var T=12*(g.year()-E.year())+(g.month()-E.month()),h=E.clone().add(T,_),x=g-h<0,L=E.clone().add(T+(x?-1:1),_);return+(-(T+(g-h)/(x?h-L:L-h))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:_,y:M,w:f,d:l,D:b,h:c,m:u,s:a,ms:o,Q:y}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},P="en",F={};F[P]=$;var Z="$isDayjsObject",X=function(v){return v instanceof te||!(!v||!v[Z])},Q=function v(E,g,T){var h;if(!E)return P;if(typeof E=="string"){var x=E.toLowerCase();F[x]&&(h=x),g&&(F[x]=g,h=x);var L=E.split("-");if(!h&&L.length>1)return v(L[0])}else{var N=E.name;F[N]=E,h=N}return!T&&h&&(P=h),h||!T&&P},j=function(v,E){if(X(v))return v.clone();var g=typeof E=="object"?E:{};return g.date=v,g.args=arguments,new te(g)},O=H;O.l=Q,O.i=X,O.w=function(v,E){return j(v,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var te=function(){function v(g){this.$L=Q(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[Z]=!0}var E=v.prototype;return E.parse=function(g){this.$d=function(T){var h=T.date,x=T.utc;if(h===null)return new Date(NaN);if(O.u(h))return new Date;if(h instanceof Date)return new Date(h);if(typeof h=="string"&&!/Z$/i.test(h)){var L=h.match(C);if(L){var N=L[2]-1||0,z=(L[7]||"0").substring(0,3);return x?new Date(Date.UTC(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)):new Date(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)}}return new Date(h)}(g),this.init()},E.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},E.$utils=function(){return O},E.isValid=function(){return this.$d.toString()!==d},E.isSame=function(g,T){var h=j(g);return this.startOf(T)<=h&&h<=this.endOf(T)},E.isAfter=function(g,T){return j(g)<this.startOf(T)},E.isBefore=function(g,T){return this.endOf(T)<j(g)},E.$g=function(g,T,h){return O.u(g)?this[T]:this.set(h,g)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(g,T){var h=this,x=!!O.u(T)||T,L=O.p(g),N=function(ye,ie){var xe=O.w(h.$u?Date.UTC(h.$y,ie,ye):new Date(h.$y,ie,ye),h);return x?xe:xe.endOf(l)},z=function(ye,ie){return O.w(h.toDate()[ye].apply(h.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(ie)),h)},I=this.$W,q=this.$M,m=this.$D,U="set"+(this.$u?"UTC":"");switch(L){case M:return x?N(1,0):N(31,11);case _:return x?N(1,q):N(0,q+1);case f:var ee=this.$locale().weekStart||0,K=(I<ee?I+7:I)-ee;return N(x?m-K:m+(6-K),q);case l:case b:return z(U+"Hours",0);case c:return z(U+"Minutes",1);case u:return z(U+"Seconds",2);case a:return z(U+"Milliseconds",3);default:return this.clone()}},E.endOf=function(g){return this.startOf(g,!1)},E.$set=function(g,T){var h,x=O.p(g),L="set"+(this.$u?"UTC":""),N=(h={},h[l]=L+"Date",h[b]=L+"Date",h[_]=L+"Month",h[M]=L+"FullYear",h[c]=L+"Hours",h[u]=L+"Minutes",h[a]=L+"Seconds",h[o]=L+"Milliseconds",h)[x],z=x===l?this.$D+(T-this.$W):T;if(x===_||x===M){var I=this.clone().set(b,1);I.$d[N](z),I.init(),this.$d=I.set(b,Math.min(this.$D,I.daysInMonth())).$d}else N&&this.$d[N](z);return this.init(),this},E.set=function(g,T){return this.clone().$set(g,T)},E.get=function(g){return this[O.p(g)]()},E.add=function(g,T){var h,x=this;g=Number(g);var L=O.p(T),N=function(q){var m=j(x);return O.w(m.date(m.date()+Math.round(q*g)),x)};if(L===_)return this.set(_,this.$M+g);if(L===M)return this.set(M,this.$y+g);if(L===l)return N(1);if(L===f)return N(7);var z=(h={},h[u]=r,h[c]=i,h[a]=n,h)[L]||1,I=this.$d.getTime()+g*z;return O.w(I,this)},E.subtract=function(g,T){return this.add(-1*g,T)},E.format=function(g){var T=this,h=this.$locale();if(!this.isValid())return h.invalidDate||d;var x=g||"YYYY-MM-DDTHH:mm:ssZ",L=O.z(this),N=this.$H,z=this.$m,I=this.$M,q=h.weekdays,m=h.months,U=h.meridiem,ee=function(ie,xe,ge,Le){return ie&&(ie[xe]||ie(T,x))||ge[xe].slice(0,Le)},K=function(ie){return O.s(N%12||12,ie,"0")},ye=U||function(ie,xe,ge){var Le=ie<12?"AM":"PM";return ge?Le.toLowerCase():Le};return x.replace(G,function(ie,xe){return xe||function(ge){switch(ge){case"YY":return String(T.$y).slice(-2);case"YYYY":return O.s(T.$y,4,"0");case"M":return I+1;case"MM":return O.s(I+1,2,"0");case"MMM":return ee(h.monthsShort,I,m,3);case"MMMM":return ee(m,I);case"D":return T.$D;case"DD":return O.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return ee(h.weekdaysMin,T.$W,q,2);case"ddd":return ee(h.weekdaysShort,T.$W,q,3);case"dddd":return q[T.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return ye(N,z,!0);case"A":return ye(N,z,!1);case"m":return String(z);case"mm":return O.s(z,2,"0");case"s":return String(T.$s);case"ss":return O.s(T.$s,2,"0");case"SSS":return O.s(T.$ms,3,"0");case"Z":return L}return null}(ie)||L.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(g,T,h){var x,L=this,N=O.p(T),z=j(g),I=(z.utcOffset()-this.utcOffset())*r,q=this-z,m=function(){return O.m(L,z)};switch(N){case M:x=m()/12;break;case _:x=m();break;case y:x=m()/3;break;case f:x=(q-I)/6048e5;break;case l:x=(q-I)/864e5;break;case c:x=q/i;break;case u:x=q/r;break;case a:x=q/n;break;default:x=q}return h?x:O.a(x)},E.daysInMonth=function(){return this.endOf(_).$D},E.$locale=function(){return F[this.$L]},E.locale=function(g,T){if(!g)return this.$L;var h=this.clone(),x=Q(g,T,!0);return x&&(h.$L=x),h},E.clone=function(){return O.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},v}(),he=te.prototype;return j.prototype=he,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",l],["$M",_],["$y",M],["$D",b]].forEach(function(v){he[v[1]]=function(E){return this.$g(E,v[0],v[1])}}),j.extend=function(v,E){return v.$i||(v(E,te,j),v.$i=!0),j},j.locale=Q,j.isDayjs=X,j.unix=function(v){return j(1e3*v)},j.en=F[P],j.Ls=F,j.p={},j})})($i);var Fa=$i.exports;const kr=In(Fa);var Ui={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ai,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,a,u){var c=a.prototype;u.utc=function(d){var C={date:d,utc:!0,args:arguments};return new a(C)},c.utc=function(d){var C=u(this.toDate(),{locale:this.$L,utc:!0});return d?C.add(this.utcOffset(),n):C},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var l=c.parse;c.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),l.call(this,d)};var f=c.init;c.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else f.call(this)};var _=c.utcOffset;c.utcOffset=function(d,C){var G=this.$utils().u;if(G(d))return this.$u?0:G(this.$offset)?_.call(this):this.$offset;if(typeof d=="string"&&(d=function(P){P===void 0&&(P="");var F=P.match(r);if(!F)return null;var Z=(""+F[0]).match(i)||["-",0,0],X=Z[0],Q=60*+Z[1]+ +Z[2];return Q===0?0:X==="+"?Q:-Q}(d),d===null))return this;var $=Math.abs(d)<=16?60*d:d,w=this;if(C)return w.$offset=$,w.$u=d===0,w;if(d!==0){var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add($+H,n)).$offset=$,w.$x.$localOffset=H}else w=this.utc();return w};var y=c.format;c.format=function(d){var C=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,C)},c.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var M=c.toDate;c.toDate=function(d){return d==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var b=c.diff;c.diff=function(d,C,G){if(d&&this.$u===d.$u)return b.call(this,d,C,G);var $=this.local(),w=u(d).local();return b.call($,w,C,G)}}})})(Ui);var Ga=Ui.exports;const ja=In(Ga);let Fr=bt(null);function za(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Wa(e,t){const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Va(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}function Xa(e){io(e,"svelte-878602","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #3854FF)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}")}const Ya=e=>({}),Gr=e=>({}),Za=e=>({}),jr=e=>({}),qa=e=>({}),zr=e=>({}),Ja=e=>({}),Wr=e=>({class:"CashierSessionExpirationIcon"});function Vr(e){let t,n,r,i,o,a=e[8]("sessionExpirationHeader")+"",u,c,l,f,_,y,M,b,d,C,G,$,w,H,P;const F=e[22].icon,Z=Nt(F,e,e[21],Wr),X=Z||Qa(e),Q=e[22].title,j=Nt(Q,e,e[21],zr),O=j||Ka(e),te=e[22].text,he=Nt(te,e,e[21],jr),v=he||eu(e),E=[nu,tu],g=[];function T(h,x){return h[6]?0:1}return d=T(e),C=g[d]=E[d](e),{c(){t=re("div"),n=re("div"),r=re("div"),i=re("div"),o=re("div"),u=Ke(a),c=ht(),l=re("div"),f=re("div"),X&&X.c(),_=ht(),O&&O.c(),y=ht(),v&&v.c(),M=ht(),b=re("button"),C.c(),V(o,"class","CashierSessionExpirationModalHeaderTitle"),V(i,"class","CashierSessionExpirationModalHeader"),V(b,"type","button"),b.disabled=e[6],V(b,"class","CashierSessionExpirationButton"),V(f,"class","CashierSessionExpiration"),V(l,"class","CashierSessionExpirationModalContainer"),V(r,"class","CashierSessionExpirationModalWrapper"),V(n,"class","CashierSessionExpirationModalWindow"),V(n,"id","CashierSessionExpirationModal"),Ye(()=>e[24].call(n))},m(h,x){Ce(h,t,x),J(t,n),J(n,r),J(r,i),J(i,o),J(o,u),J(r,c),J(r,l),J(l,f),X&&X.m(f,null),J(f,_),O&&O.m(f,null),J(f,y),v&&v.m(f,null),J(f,M),J(f,b),g[d].m(b,null),e[23](f),G=uo(n,e[24].bind(n)),e[25](t),w=!0,H||(P=[kt(b,"click",e[9]),kt(n,"click",e[10])],H=!0)},p(h,x){e=h,(!w||x[0]&256)&&a!==(a=e[8]("sessionExpirationHeader")+"")&&Yt(u,a),Z?Z.p&&(!w||x[0]&2097152)&&It(Z,F,e,e[21],w?Ht(F,e[21],x,Ja):Rt(e[21]),Wr):X&&X.p&&(!w||x[0]&8)&&X.p(e,w?x:[-1,-1]),j?j.p&&(!w||x[0]&2097152)&&It(j,Q,e,e[21],w?Ht(Q,e[21],x,qa):Rt(e[21]),zr):O&&O.p&&(!w||x[0]&256)&&O.p(e,w?x:[-1,-1]),he?he.p&&(!w||x[0]&2097152)&&It(he,te,e,e[21],w?Ht(te,e[21],x,Za):Rt(e[21]),jr):v&&v.p&&(!w||x[0]&384)&&v.p(e,w?x:[-1,-1]);let L=d;d=T(e),d===L?g[d].p(e,x):(ii(),Ne(g[L],1,1,()=>{g[L]=null}),oi(),C=g[d],C?C.p(e,x):(C=g[d]=E[d](e),C.c()),we(C,1),C.m(b,null)),(!w||x[0]&64)&&(b.disabled=e[6])},i(h){w||(we(X,h),we(O,h),we(v,h),we(C),h&&Ye(()=>{w&&($||($=mr(n,dr,{duration:e[2]},!0)),$.run(1))}),w=!0)},o(h){Ne(X,h),Ne(O,h),Ne(v,h),Ne(C),h&&($||($=mr(n,dr,{duration:e[2]},!1)),$.run(0)),w=!1},d(h){h&&Ee(t),X&&X.d(h),O&&O.d(h),v&&v.d(h),g[d].d(),e[23](null),G(),h&&$&&$.end(),e[25](null),H=!1,Ie(P)}}}function Xr(e){let t,n;return{c(){t=re("img"),ur(t.src,n=`${e[3]}/set-timeout-icon.png`)||V(t,"src",n),V(t,"width","300px"),V(t,"alt","error")},m(r,i){Ce(r,t,i)},p(r,i){i[0]&8&&!ur(t.src,n=`${r[3]}/set-timeout-icon.png`)&&V(t,"src",n)},d(r){r&&Ee(t)}}}function Qa(e){let t,n=e[3]&&Xr(e);return{c(){n&&n.c(),t=ni()},m(r,i){n&&n.m(r,i),Ce(r,t,i)},p(r,i){r[3]?n?n.p(r,i):(n=Xr(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){r&&Ee(t),n&&n.d(r)}}}function Ka(e){let t,n=e[8]("sessionExpirationTitle")+"",r;return{c(){t=re("span"),r=Ke(n),V(t,"class","CashierSessionExpirationTitle")},m(i,o){Ce(i,t,o),J(t,r)},p(i,o){o[0]&256&&n!==(n=i[8]("sessionExpirationTitle")+"")&&Yt(r,n)},d(i){i&&Ee(t)}}}function eu(e){let t,n=Ur.sanitize(e[8]("sessionExpirationGeneralText",{values:{second:e[7]}}))+"";return{c(){t=re("span"),V(t,"class","CashierSessionExpirationText")},m(r,i){Ce(r,t,i),t.innerHTML=n},p(r,i){i[0]&384&&n!==(n=Ur.sanitize(r[8]("sessionExpirationGeneralText",{values:{second:r[7]}}))+"")&&(t.innerHTML=n)},d(r){r&&Ee(t)}}}function tu(e){let t;const n=e[22].button,r=Nt(n,e,e[21],Gr),i=r||ru(e);return{c(){i&&i.c()},m(o,a){i&&i.m(o,a),t=!0},p(o,a){r?r.p&&(!t||a[0]&2097152)&&It(r,n,o,o[21],t?Ht(n,o[21],a,Ya):Rt(o[21]),Gr):i&&i.p&&(!t||a[0]&256)&&i.p(o,t?a:[-1,-1])},i(o){t||(we(i,o),t=!0)},o(o){Ne(i,o),t=!1},d(o){i&&i.d(o)}}}function nu(e){let t,n,r,i,o,a=e[8]("sessionExpirationLoadingButton")+"",u;return{c(){t=re("div"),n=cr("svg"),r=cr("path"),i=ht(),o=re("span"),u=Ke(a),V(r,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),V(r,"fill","white"),V(n,"class","CashierSessionExpirationButtonSpinner"),V(n,"xmlns","http://www.w3.org/2000/svg"),V(n,"width","15"),V(n,"height","14"),V(n,"viewBox","0 0 15 14"),V(n,"fill","none"),V(o,"class","CashierSessionExpirationButtonText")},m(c,l){Ce(c,t,l),J(t,n),J(n,r),J(t,i),J(t,o),J(o,u)},p(c,l){l[0]&256&&a!==(a=c[8]("sessionExpirationLoadingButton")+"")&&Yt(u,a)},i:de,o:de,d(c){c&&Ee(t)}}}function ru(e){let t,n=e[8]("sessionExpirationGeneralButton")+"",r;return{c(){t=re("span"),r=Ke(n),V(t,"class","CashierSessionExpirationButtonText")},m(i,o){Ce(i,t,o),J(t,r)},p(i,o){o[0]&256&&n!==(n=i[8]("sessionExpirationGeneralButton")+"")&&Yt(r,n)},d(i){i&&Ee(t)}}}function iu(e){let t,n,r=e[5]&&Vr(e);return{c(){r&&r.c(),t=ni()},m(i,o){r&&r.m(i,o),Ce(i,t,o),n=!0},p(i,o){i[5]?r?(r.p(i,o),o[0]&32&&we(r,1)):(r=Vr(i),r.c(),we(r,1),r.m(t.parentNode,t)):r&&(ii(),Ne(r,1,1,()=>{r=null}),oi())},i(i){n||(we(r),n=!0)},o(i){Ne(r),n=!1},d(i){i&&Ee(t),r&&r.d(i)}}}const ou=90;function su(e,t,n){let r,i;lr(e,Fr,m=>n(20,r=m)),lr(e,ya,m=>n(8,i=m));let{$$slots:o={},$$scope:a}=t;kr.extend(ja);let{clientstyling:u=""}=t,{clientstylingurl:c=""}=t,{width:l}=t,{height:f}=t,{duration:_=200}=t,{assetsurl:y=""}=t,{lang:M="en"}=t,{translationurl:b=""}=t,{endpoint:d}=t,{currency:C}=t,{customerid:G}=t,{selectedpaymentmethodname:$}=t,{mbsource:w=""}=t,H,P=!1,F=!1,Z,X,Q,j,O;var te;(function(m){m.PlayerSessionIsNotValid="PlayerSessionIsNotValid",m.Success="Success",m.JwtTokenError="JwtTokenError"})(te||(te={}));const he=m=>{m.data.type==="StartSessionCountdown"&&(j=m.data.paymentMethodName)},v=m=>{try{return JSON.parse(atob(m.split(".")[1]))}catch(U){return null}},E=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:O},window.location.href)},g=m=>{n(5,P=!1);const U=v(m);U&&(X=U==null?void 0:U.exp,n(7,Z=X),Q&&clearInterval(Q),Q=setInterval(()=>{const ee=Math.floor(new Date().getTime()/1e3);n(7,Z=X-ee),Z<=ou&&n(5,P=!0),ee>=X&&(T(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},T=()=>{n(7,Z=0),n(5,P=!1),clearInterval(Q)},h=()=>{if(F)return;const m=new URL(`${d}/v1/player/${G}/payment/GetPaymentMethod`),U=new Headers;n(6,F=!0),U.append("accept","application/json"),U.append("Content-Type","application/json"),U.append("X-Client-Request-Timestamp",kr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const ee={method:"POST",mode:"cors",headers:U,body:JSON.stringify({PaymentMethodName:j||$,Currency:C,XPaymentSessionToken:r})};fetch(m,ee).then(K=>K.json()).then(K=>{if(K.error){window.postMessage({type:"ShowSessionError",error:K.error},window.location.href),T();return}if(K.ResponseCode===te.PlayerSessionIsNotValid||K.ResponseCode===te.JwtTokenError){O=K.ResponseCode,T(),E();return}if(K.ResponseCode!==te.Success){O=K.ResponseCode,T();return}K.XPaymentSessionToken&&Fr.set(K.XPaymentSessionToken)}).finally(()=>n(6,F=!1))},x=m=>{const U=m.currentTarget;m.target===U&&h()},L=()=>{fetch(b).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ee=>{Cr(ee,U[ee])})}).catch(U=>{console.log(U)})};Object.keys(Lr).forEach(m=>{Cr(m,Lr[m])});const N=()=>{xa(M)};go(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he)})),_o(()=>{clearInterval(Q)});function z(m){jt[m?"unshift":"push"](()=>{H=m,n(4,H)})}function I(){l=this.clientWidth,f=this.clientHeight,n(0,l),n(1,f)}function q(m){jt[m?"unshift":"push"](()=>{H=m,n(4,H)})}return e.$$set=m=>{"clientstyling"in m&&n(11,u=m.clientstyling),"clientstylingurl"in m&&n(12,c=m.clientstylingurl),"width"in m&&n(0,l=m.width),"height"in m&&n(1,f=m.height),"duration"in m&&n(2,_=m.duration),"assetsurl"in m&&n(3,y=m.assetsurl),"lang"in m&&n(13,M=m.lang),"translationurl"in m&&n(14,b=m.translationurl),"endpoint"in m&&n(15,d=m.endpoint),"currency"in m&&n(16,C=m.currency),"customerid"in m&&n(17,G=m.customerid),"selectedpaymentmethodname"in m&&n(18,$=m.selectedpaymentmethodname),"mbsource"in m&&n(19,w=m.mbsource),"$$scope"in m&&n(21,a=m.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&1048576&&g(r),e.$$.dirty[0]&8192&&M&&N(),e.$$.dirty[0]&2064&&u&&H&&za(H,u),e.$$.dirty[0]&4112&&c&&H&&Wa(H,c),e.$$.dirty[0]&524304&&w&&H&&Va(H,`${w}.Style`),e.$$.dirty[0]&16384&&b&&L()},[l,f,_,y,H,P,F,Z,i,h,x,u,c,M,b,d,C,G,$,w,r,a,o,z,I,q]}class ki extends Co{constructor(t){super(),Oo(this,t,su,iu,qr,{clientstyling:11,clientstylingurl:12,width:0,height:1,duration:2,assetsurl:3,lang:13,translationurl:14,endpoint:15,currency:16,customerid:17,selectedpaymentmethodname:18,mbsource:19},Xa,[-1,-1])}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),le()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),le()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),le()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),le()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),le()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(t){this.$$set({assetsurl:t}),le()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),le()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),le()}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),le()}get currency(){return this.$$.ctx[16]}set currency(t){this.$$set({currency:t}),le()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),le()}get selectedpaymentmethodname(){return this.$$.ctx[18]}set selectedpaymentmethodname(t){this.$$set({selectedpaymentmethodname:t}),le()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),le()}}Mo(ki,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=ki;